]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/gdi_wrap.cpp
Some ifdef's to correct compile problems on wxMac
[wxWidgets.git] / wxPython / src / msw / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(bool)
346 SWIG_PyObj_AsBool(PyObject *obj)
347 {
348 return PyObject_IsTrue(obj) ? true : false;
349 }
350
351
352 SWIGSTATIC(unsigned char)
353 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
354 {
355 return numeric_cast(unsigned char,
356 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
357 }
358
359 PyObject *wxColour_Get(wxColour *self){
360 PyObject* rv = PyTuple_New(3);
361 int red = -1;
362 int green = -1;
363 int blue = -1;
364 if (self->Ok()) {
365 red = self->Red();
366 green = self->Green();
367 blue = self->Blue();
368 }
369 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
370 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
371 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
372 return rv;
373 }
374
375 SWIGSTATIC(int)
376 SWIG_PyObj_AsInt(PyObject *obj)
377 {
378 return numeric_cast(int,
379 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
380 }
381
382
383 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
384 PyObject* o2;
385 PyObject* o3;
386
387 if (!target) {
388 target = o;
389 } else if (target == Py_None) {
390 Py_DECREF(Py_None);
391 target = o;
392 } else {
393 if (!PyTuple_Check(target)) {
394 o2 = target;
395 target = PyTuple_New(1);
396 PyTuple_SetItem(target, 0, o2);
397 }
398 o3 = PyTuple_New(1);
399 PyTuple_SetItem(o3, 0, o);
400
401 o2 = target;
402 target = PySequence_Concat(o2, o3);
403 Py_DECREF(o2);
404 Py_DECREF(o3);
405 }
406 return target;
407 }
408
409 PyObject *wxPen_GetDashes(wxPen *self){
410 wxDash* dashes;
411 int count = self->GetDashes(&dashes);
412 wxPyBeginBlockThreads();
413 PyObject* retval = PyList_New(0);
414 for (int x=0; x<count; x++)
415 PyList_Append(retval, PyInt_FromLong(dashes[x]));
416 wxPyEndBlockThreads();
417 return retval;
418 }
419
420 wxPyPen::~wxPyPen()
421 {
422 if (m_dash)
423 delete [] m_dash;
424 }
425
426 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
427 {
428 if (m_dash)
429 delete [] m_dash;
430 m_dash = new wxDash[nb_dashes];
431 for (int i=0; i<nb_dashes; i++) {
432 m_dash[i] = dash[i];
433 }
434 wxPen::SetDashes(nb_dashes, m_dash);
435 }
436
437
438 #include <wx/image.h>
439
440 static char** ConvertListOfStrings(PyObject* listOfStrings) {
441 char** cArray = NULL;
442 int count;
443
444 if (!PyList_Check(listOfStrings)) {
445 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
446 return NULL;
447 }
448 count = PyList_Size(listOfStrings);
449 cArray = new char*[count];
450
451 for(int x=0; x<count; x++) {
452 // TODO: Need some validation and error checking here
453 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
454 }
455 return cArray;
456 }
457
458
459 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
460 char** cArray = NULL;
461 wxBitmap* bmp;
462
463 cArray = ConvertListOfStrings(listOfStrings);
464 if (! cArray)
465 return NULL;
466 bmp = new wxBitmap(cArray);
467 delete [] cArray;
468 return bmp;
469 }
470 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
471 char* buf;
472 int length;
473 PyString_AsStringAndSize(bits, &buf, &length);
474 return new wxBitmap(buf, width, height, depth);
475 }
476
477 SWIGSTATIC(long)
478 SWIG_PyObj_AsLong(PyObject * obj)
479 {
480 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
481 }
482
483 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
484 wxMask *mask = new wxMask(*self, colour);
485 self->SetMask(mask);
486 }
487
488 #include <wx/iconbndl.h>
489
490 wxIcon *new_wxIcon(wxBitmap const &bmp){
491 wxIcon* icon = new wxIcon();
492 icon->CopyFromBitmap(bmp);
493 return icon;
494 }
495 wxIcon *new_wxIcon(PyObject *listOfStrings){
496 char** cArray = NULL;
497 wxIcon* icon;
498
499 cArray = ConvertListOfStrings(listOfStrings);
500 if (! cArray)
501 return NULL;
502 icon = new wxIcon(cArray);
503 delete [] cArray;
504 return icon;
505 }
506 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
507
508 return new wxIconLocation(*filename, num);
509
510
511
512 }
513 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
514
515 self->SetIndex(num);
516
517
518
519 }
520 int wxIconLocation_GetIndex(wxIconLocation *self){
521
522 return self->GetIndex();
523
524
525
526 }
527 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
528
529
530
531
532 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
533
534 }
535 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
536 char* bitsbuf;
537 char* maskbuf = NULL;
538 int length;
539 PyString_AsStringAndSize(bits, &bitsbuf, &length);
540 if (maskBits)
541 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
542 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
543 }
544
545
546 void wxRegionIterator_Next(wxRegionIterator *self){
547 (*self) ++;
548 }
549 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
550 return self->operator bool();
551 }
552
553 #include <wx/fontutil.h>
554 #include <wx/fontmap.h>
555 #include <wx/fontenum.h>
556
557 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
558 return self->ToString();
559 }
560
561 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
562 { wxPyRaiseNotImplemented(); return NULL; }
563
564 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
565 { wxPyRaiseNotImplemented(); return False; }
566
567
568 SWIGSTATIC(PyObject* )
569 SWIG_PyObj_FromUnsignedLong(unsigned long value)
570 {
571 return (value > (unsigned long)(LONG_MAX)) ?
572 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
573 }
574
575 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
576 wxFontEncoding alt_enc;
577 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
578 return PyInt_FromLong(alt_enc);
579 else {
580 Py_INCREF(Py_None);
581 return Py_None;
582 }
583 }
584 wxFont *new_wxFont(wxString const &info){
585 wxNativeFontInfo nfi;
586 nfi.FromString(info);
587 return new wxFont(nfi);
588 }
589 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
590 return wxFont::New(pointSize, family, flags, face, encoding);
591 }
592
593 class wxPyFontEnumerator : public wxFontEnumerator {
594 public:
595 wxPyFontEnumerator() {}
596 ~wxPyFontEnumerator() {}
597
598 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
599 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
600
601 PYPRIVATE;
602 };
603
604 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
605 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
606
607
608 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
609 wxArrayString* arr = self->GetEncodings();
610 return wxArrayString2PyList_helper(*arr);
611 }
612 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
613 wxArrayString* arr = self->GetFacenames();
614 return wxArrayString2PyList_helper(*arr);
615 }
616
617
618
619 #include "wx/wxPython/pydrawxxx.h"
620
621 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
622 wxColour col;
623 self->GetPixel(x, y, &col);
624 return col;
625 }
626 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
627 wxColour col;
628 self->GetPixel(pt, &col);
629 return col;
630 }
631
632 SWIGSTATIC(double)
633 SWIG_PyObj_AsDouble(PyObject *obj)
634 {
635 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
636 #if HAVE_LONG_LONG
637 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
638 #else
639 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
640 #endif
641 if (PyErr_Occurred()) {
642 PyErr_Clear();
643 PyErr_SetString(PyExc_TypeError, "a double is expected");
644 }
645 }
646
647 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
648 wxRect rv;
649 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
650 return rv;
651 }
652 wxRect wxDC_GetClippingRect(wxDC *self){
653 wxRect rect;
654 self->GetClippingBox(rect);
655 return rect;
656 }
657 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
658 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
659 }
660 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
661 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
662 }
663 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
664 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
665 }
666 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
667 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
668 }
669 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
670 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
671 }
672 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
673 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
674 }
675
676 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
677 *x1 = dc->MinX();
678 *y1 = dc->MinY();
679 *x2 = dc->MaxX();
680 *y2 = dc->MaxY();
681 }
682
683
684 #include <wx/dcps.h>
685
686
687 #include <wx/metafile.h>
688
689
690
691 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
692 self->AddColour(name, wxColour(red, green, blue));
693 }
694
695 #include <wx/effects.h>
696
697 #ifdef __cplusplus
698 extern "C" {
699 #endif
700 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
701 PyObject *resultobj;
702 wxGDIObject *result;
703 char *kwnames[] = {
704 NULL
705 };
706
707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
708 {
709 PyThreadState* __tstate = wxPyBeginAllowThreads();
710 result = (wxGDIObject *)new wxGDIObject();
711
712 wxPyEndAllowThreads(__tstate);
713 if (PyErr_Occurred()) SWIG_fail;
714 }
715 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
716 return resultobj;
717 fail:
718 return NULL;
719 }
720
721
722 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
723 PyObject *resultobj;
724 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
725 PyObject * obj0 = 0 ;
726 char *kwnames[] = {
727 (char *) "self", NULL
728 };
729
730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
732 {
733 PyThreadState* __tstate = wxPyBeginAllowThreads();
734 delete arg1;
735
736 wxPyEndAllowThreads(__tstate);
737 if (PyErr_Occurred()) SWIG_fail;
738 }
739 Py_INCREF(Py_None); resultobj = Py_None;
740 return resultobj;
741 fail:
742 return NULL;
743 }
744
745
746 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
747 PyObject *resultobj;
748 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
749 bool result;
750 PyObject * obj0 = 0 ;
751 char *kwnames[] = {
752 (char *) "self", NULL
753 };
754
755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
757 {
758 PyThreadState* __tstate = wxPyBeginAllowThreads();
759 result = (bool)(arg1)->GetVisible();
760
761 wxPyEndAllowThreads(__tstate);
762 if (PyErr_Occurred()) SWIG_fail;
763 }
764 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
765 return resultobj;
766 fail:
767 return NULL;
768 }
769
770
771 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
772 PyObject *resultobj;
773 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
774 bool arg2 ;
775 PyObject * obj0 = 0 ;
776 PyObject * obj1 = 0 ;
777 char *kwnames[] = {
778 (char *) "self",(char *) "visible", NULL
779 };
780
781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
783 {
784 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
785 if (PyErr_Occurred()) SWIG_fail;
786 }
787 {
788 PyThreadState* __tstate = wxPyBeginAllowThreads();
789 (arg1)->SetVisible(arg2);
790
791 wxPyEndAllowThreads(__tstate);
792 if (PyErr_Occurred()) SWIG_fail;
793 }
794 Py_INCREF(Py_None); resultobj = Py_None;
795 return resultobj;
796 fail:
797 return NULL;
798 }
799
800
801 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
802 PyObject *resultobj;
803 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
804 bool result;
805 PyObject * obj0 = 0 ;
806 char *kwnames[] = {
807 (char *) "self", NULL
808 };
809
810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
811 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
812 {
813 PyThreadState* __tstate = wxPyBeginAllowThreads();
814 result = (bool)(arg1)->IsNull();
815
816 wxPyEndAllowThreads(__tstate);
817 if (PyErr_Occurred()) SWIG_fail;
818 }
819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
820 return resultobj;
821 fail:
822 return NULL;
823 }
824
825
826 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
827 PyObject *obj;
828 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
829 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
830 Py_INCREF(obj);
831 return Py_BuildValue((char *)"");
832 }
833 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
834 PyObject *resultobj;
835 unsigned char arg1 = (unsigned char) 0 ;
836 unsigned char arg2 = (unsigned char) 0 ;
837 unsigned char arg3 = (unsigned char) 0 ;
838 wxColour *result;
839 PyObject * obj0 = 0 ;
840 PyObject * obj1 = 0 ;
841 PyObject * obj2 = 0 ;
842 char *kwnames[] = {
843 (char *) "red",(char *) "green",(char *) "blue", NULL
844 };
845
846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
847 if (obj0) {
848 {
849 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
850 if (PyErr_Occurred()) SWIG_fail;
851 }
852 }
853 if (obj1) {
854 {
855 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
856 if (PyErr_Occurred()) SWIG_fail;
857 }
858 }
859 if (obj2) {
860 {
861 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
862 if (PyErr_Occurred()) SWIG_fail;
863 }
864 }
865 {
866 PyThreadState* __tstate = wxPyBeginAllowThreads();
867 result = (wxColour *)new wxColour(arg1,arg2,arg3);
868
869 wxPyEndAllowThreads(__tstate);
870 if (PyErr_Occurred()) SWIG_fail;
871 }
872 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
873 return resultobj;
874 fail:
875 return NULL;
876 }
877
878
879 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
880 PyObject *resultobj;
881 wxColour *arg1 = (wxColour *) 0 ;
882 PyObject * obj0 = 0 ;
883 char *kwnames[] = {
884 (char *) "self", NULL
885 };
886
887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
888 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
889 {
890 PyThreadState* __tstate = wxPyBeginAllowThreads();
891 delete arg1;
892
893 wxPyEndAllowThreads(__tstate);
894 if (PyErr_Occurred()) SWIG_fail;
895 }
896 Py_INCREF(Py_None); resultobj = Py_None;
897 return resultobj;
898 fail:
899 return NULL;
900 }
901
902
903 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
904 PyObject *resultobj;
905 wxString *arg1 = 0 ;
906 wxColour *result;
907 bool temp1 = False ;
908 PyObject * obj0 = 0 ;
909 char *kwnames[] = {
910 (char *) "colorName", NULL
911 };
912
913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
914 {
915 arg1 = wxString_in_helper(obj0);
916 if (arg1 == NULL) SWIG_fail;
917 temp1 = True;
918 }
919 {
920 PyThreadState* __tstate = wxPyBeginAllowThreads();
921 result = (wxColour *)new wxColour((wxString const &)*arg1);
922
923 wxPyEndAllowThreads(__tstate);
924 if (PyErr_Occurred()) SWIG_fail;
925 }
926 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
927 {
928 if (temp1)
929 delete arg1;
930 }
931 return resultobj;
932 fail:
933 {
934 if (temp1)
935 delete arg1;
936 }
937 return NULL;
938 }
939
940
941 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
942 PyObject *resultobj;
943 unsigned long arg1 ;
944 wxColour *result;
945 PyObject * obj0 = 0 ;
946 char *kwnames[] = {
947 (char *) "colRGB", NULL
948 };
949
950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
951 {
952 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
953 if (PyErr_Occurred()) SWIG_fail;
954 }
955 {
956 PyThreadState* __tstate = wxPyBeginAllowThreads();
957 result = (wxColour *)new wxColour(arg1);
958
959 wxPyEndAllowThreads(__tstate);
960 if (PyErr_Occurred()) SWIG_fail;
961 }
962 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
963 return resultobj;
964 fail:
965 return NULL;
966 }
967
968
969 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
970 PyObject *resultobj;
971 wxColour *arg1 = (wxColour *) 0 ;
972 unsigned char result;
973 PyObject * obj0 = 0 ;
974 char *kwnames[] = {
975 (char *) "self", NULL
976 };
977
978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
980 {
981 PyThreadState* __tstate = wxPyBeginAllowThreads();
982 result = (unsigned char)(arg1)->Red();
983
984 wxPyEndAllowThreads(__tstate);
985 if (PyErr_Occurred()) SWIG_fail;
986 }
987 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
988 return resultobj;
989 fail:
990 return NULL;
991 }
992
993
994 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
995 PyObject *resultobj;
996 wxColour *arg1 = (wxColour *) 0 ;
997 unsigned char result;
998 PyObject * obj0 = 0 ;
999 char *kwnames[] = {
1000 (char *) "self", NULL
1001 };
1002
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1005 {
1006 PyThreadState* __tstate = wxPyBeginAllowThreads();
1007 result = (unsigned char)(arg1)->Green();
1008
1009 wxPyEndAllowThreads(__tstate);
1010 if (PyErr_Occurred()) SWIG_fail;
1011 }
1012 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1013 return resultobj;
1014 fail:
1015 return NULL;
1016 }
1017
1018
1019 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1020 PyObject *resultobj;
1021 wxColour *arg1 = (wxColour *) 0 ;
1022 unsigned char result;
1023 PyObject * obj0 = 0 ;
1024 char *kwnames[] = {
1025 (char *) "self", NULL
1026 };
1027
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1030 {
1031 PyThreadState* __tstate = wxPyBeginAllowThreads();
1032 result = (unsigned char)(arg1)->Blue();
1033
1034 wxPyEndAllowThreads(__tstate);
1035 if (PyErr_Occurred()) SWIG_fail;
1036 }
1037 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1038 return resultobj;
1039 fail:
1040 return NULL;
1041 }
1042
1043
1044 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1045 PyObject *resultobj;
1046 wxColour *arg1 = (wxColour *) 0 ;
1047 bool result;
1048 PyObject * obj0 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "self", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1055 {
1056 PyThreadState* __tstate = wxPyBeginAllowThreads();
1057 result = (bool)(arg1)->Ok();
1058
1059 wxPyEndAllowThreads(__tstate);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1063 return resultobj;
1064 fail:
1065 return NULL;
1066 }
1067
1068
1069 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1070 PyObject *resultobj;
1071 wxColour *arg1 = (wxColour *) 0 ;
1072 unsigned char arg2 ;
1073 unsigned char arg3 ;
1074 unsigned char arg4 ;
1075 PyObject * obj0 = 0 ;
1076 PyObject * obj1 = 0 ;
1077 PyObject * obj2 = 0 ;
1078 PyObject * obj3 = 0 ;
1079 char *kwnames[] = {
1080 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1081 };
1082
1083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1085 {
1086 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1087 if (PyErr_Occurred()) SWIG_fail;
1088 }
1089 {
1090 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1091 if (PyErr_Occurred()) SWIG_fail;
1092 }
1093 {
1094 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1095 if (PyErr_Occurred()) SWIG_fail;
1096 }
1097 {
1098 PyThreadState* __tstate = wxPyBeginAllowThreads();
1099 (arg1)->Set(arg2,arg3,arg4);
1100
1101 wxPyEndAllowThreads(__tstate);
1102 if (PyErr_Occurred()) SWIG_fail;
1103 }
1104 Py_INCREF(Py_None); resultobj = Py_None;
1105 return resultobj;
1106 fail:
1107 return NULL;
1108 }
1109
1110
1111 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1112 PyObject *resultobj;
1113 wxColour *arg1 = (wxColour *) 0 ;
1114 unsigned long arg2 ;
1115 PyObject * obj0 = 0 ;
1116 PyObject * obj1 = 0 ;
1117 char *kwnames[] = {
1118 (char *) "self",(char *) "colRGB", NULL
1119 };
1120
1121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1122 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1123 {
1124 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
1127 {
1128 PyThreadState* __tstate = wxPyBeginAllowThreads();
1129 (arg1)->Set(arg2);
1130
1131 wxPyEndAllowThreads(__tstate);
1132 if (PyErr_Occurred()) SWIG_fail;
1133 }
1134 Py_INCREF(Py_None); resultobj = Py_None;
1135 return resultobj;
1136 fail:
1137 return NULL;
1138 }
1139
1140
1141 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1142 PyObject *resultobj;
1143 wxColour *arg1 = (wxColour *) 0 ;
1144 wxColour *arg2 = 0 ;
1145 bool result;
1146 wxColour temp2 ;
1147 PyObject * obj0 = 0 ;
1148 PyObject * obj1 = 0 ;
1149 char *kwnames[] = {
1150 (char *) "self",(char *) "colour", NULL
1151 };
1152
1153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1154 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1155 {
1156 arg2 = &temp2;
1157 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1158 }
1159 {
1160 PyThreadState* __tstate = wxPyBeginAllowThreads();
1161 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1162
1163 wxPyEndAllowThreads(__tstate);
1164 if (PyErr_Occurred()) SWIG_fail;
1165 }
1166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1167 return resultobj;
1168 fail:
1169 return NULL;
1170 }
1171
1172
1173 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1174 PyObject *resultobj;
1175 wxColour *arg1 = (wxColour *) 0 ;
1176 wxColour *arg2 = 0 ;
1177 bool result;
1178 wxColour temp2 ;
1179 PyObject * obj0 = 0 ;
1180 PyObject * obj1 = 0 ;
1181 char *kwnames[] = {
1182 (char *) "self",(char *) "colour", NULL
1183 };
1184
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1187 {
1188 arg2 = &temp2;
1189 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1190 }
1191 {
1192 PyThreadState* __tstate = wxPyBeginAllowThreads();
1193 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1194
1195 wxPyEndAllowThreads(__tstate);
1196 if (PyErr_Occurred()) SWIG_fail;
1197 }
1198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1199 return resultobj;
1200 fail:
1201 return NULL;
1202 }
1203
1204
1205 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1206 PyObject *resultobj;
1207 wxColour *arg1 = (wxColour *) 0 ;
1208 wxString *arg2 = 0 ;
1209 bool temp2 = False ;
1210 PyObject * obj0 = 0 ;
1211 PyObject * obj1 = 0 ;
1212 char *kwnames[] = {
1213 (char *) "self",(char *) "colourName", NULL
1214 };
1215
1216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1218 {
1219 arg2 = wxString_in_helper(obj1);
1220 if (arg2 == NULL) SWIG_fail;
1221 temp2 = True;
1222 }
1223 {
1224 PyThreadState* __tstate = wxPyBeginAllowThreads();
1225 (arg1)->InitFromName((wxString const &)*arg2);
1226
1227 wxPyEndAllowThreads(__tstate);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 Py_INCREF(Py_None); resultobj = Py_None;
1231 {
1232 if (temp2)
1233 delete arg2;
1234 }
1235 return resultobj;
1236 fail:
1237 {
1238 if (temp2)
1239 delete arg2;
1240 }
1241 return NULL;
1242 }
1243
1244
1245 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1246 PyObject *resultobj;
1247 wxColour *arg1 = (wxColour *) 0 ;
1248 PyObject *result;
1249 PyObject * obj0 = 0 ;
1250 char *kwnames[] = {
1251 (char *) "self", NULL
1252 };
1253
1254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1256 {
1257 PyThreadState* __tstate = wxPyBeginAllowThreads();
1258 result = (PyObject *)wxColour_Get(arg1);
1259
1260 wxPyEndAllowThreads(__tstate);
1261 if (PyErr_Occurred()) SWIG_fail;
1262 }
1263 resultobj = result;
1264 return resultobj;
1265 fail:
1266 return NULL;
1267 }
1268
1269
1270 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1271 PyObject *obj;
1272 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1273 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1274 Py_INCREF(obj);
1275 return Py_BuildValue((char *)"");
1276 }
1277 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1278 PyObject *resultobj;
1279 int arg1 ;
1280 unsigned char *arg2 = (unsigned char *) 0 ;
1281 unsigned char *arg3 = (unsigned char *) 0 ;
1282 unsigned char *arg4 = (unsigned char *) 0 ;
1283 wxPalette *result;
1284 PyObject * obj0 = 0 ;
1285 PyObject * obj1 = 0 ;
1286 PyObject * obj2 = 0 ;
1287 PyObject * obj3 = 0 ;
1288 char *kwnames[] = {
1289 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1290 };
1291
1292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1293 {
1294 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 }
1297 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1298 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1299 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1300 {
1301 PyThreadState* __tstate = wxPyBeginAllowThreads();
1302 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1303
1304 wxPyEndAllowThreads(__tstate);
1305 if (PyErr_Occurred()) SWIG_fail;
1306 }
1307 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1308 return resultobj;
1309 fail:
1310 return NULL;
1311 }
1312
1313
1314 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1315 PyObject *resultobj;
1316 wxPalette *arg1 = (wxPalette *) 0 ;
1317 PyObject * obj0 = 0 ;
1318 char *kwnames[] = {
1319 (char *) "self", NULL
1320 };
1321
1322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1324 {
1325 PyThreadState* __tstate = wxPyBeginAllowThreads();
1326 delete arg1;
1327
1328 wxPyEndAllowThreads(__tstate);
1329 if (PyErr_Occurred()) SWIG_fail;
1330 }
1331 Py_INCREF(Py_None); resultobj = Py_None;
1332 return resultobj;
1333 fail:
1334 return NULL;
1335 }
1336
1337
1338 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1339 PyObject *resultobj;
1340 wxPalette *arg1 = (wxPalette *) 0 ;
1341 byte arg2 ;
1342 byte arg3 ;
1343 byte arg4 ;
1344 int result;
1345 PyObject * obj0 = 0 ;
1346 PyObject * obj1 = 0 ;
1347 PyObject * obj2 = 0 ;
1348 PyObject * obj3 = 0 ;
1349 char *kwnames[] = {
1350 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1351 };
1352
1353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1355 {
1356 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1357 if (PyErr_Occurred()) SWIG_fail;
1358 }
1359 {
1360 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1361 if (PyErr_Occurred()) SWIG_fail;
1362 }
1363 {
1364 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 }
1367 {
1368 PyThreadState* __tstate = wxPyBeginAllowThreads();
1369 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1370
1371 wxPyEndAllowThreads(__tstate);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 resultobj = SWIG_PyObj_FromInt((int)result);
1375 return resultobj;
1376 fail:
1377 return NULL;
1378 }
1379
1380
1381 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject *resultobj;
1383 wxPalette *arg1 = (wxPalette *) 0 ;
1384 int arg2 ;
1385 byte *arg3 = (byte *) 0 ;
1386 byte *arg4 = (byte *) 0 ;
1387 byte *arg5 = (byte *) 0 ;
1388 bool result;
1389 byte temp3 ;
1390 byte temp4 ;
1391 byte temp5 ;
1392 PyObject * obj0 = 0 ;
1393 PyObject * obj1 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "self",(char *) "pixel", NULL
1396 };
1397
1398 arg3 = &temp3;
1399 arg4 = &temp4;
1400 arg5 = &temp5;
1401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1402 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1403 {
1404 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1405 if (PyErr_Occurred()) SWIG_fail;
1406 }
1407 {
1408 PyThreadState* __tstate = wxPyBeginAllowThreads();
1409 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1410
1411 wxPyEndAllowThreads(__tstate);
1412 if (PyErr_Occurred()) SWIG_fail;
1413 }
1414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1415 {
1416 PyObject *o = PyInt_FromLong((long) (*arg3));
1417 resultobj = t_output_helper(resultobj,o);
1418 }
1419 {
1420 PyObject *o = PyInt_FromLong((long) (*arg4));
1421 resultobj = t_output_helper(resultobj,o);
1422 }
1423 {
1424 PyObject *o = PyInt_FromLong((long) (*arg5));
1425 resultobj = t_output_helper(resultobj,o);
1426 }
1427 return resultobj;
1428 fail:
1429 return NULL;
1430 }
1431
1432
1433 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1434 PyObject *resultobj;
1435 wxPalette *arg1 = (wxPalette *) 0 ;
1436 bool result;
1437 PyObject * obj0 = 0 ;
1438 char *kwnames[] = {
1439 (char *) "self", NULL
1440 };
1441
1442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1444 {
1445 PyThreadState* __tstate = wxPyBeginAllowThreads();
1446 result = (bool)(arg1)->Ok();
1447
1448 wxPyEndAllowThreads(__tstate);
1449 if (PyErr_Occurred()) SWIG_fail;
1450 }
1451 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1452 return resultobj;
1453 fail:
1454 return NULL;
1455 }
1456
1457
1458 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1459 PyObject *obj;
1460 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1461 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1462 Py_INCREF(obj);
1463 return Py_BuildValue((char *)"");
1464 }
1465 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1466 PyObject *resultobj;
1467 wxColour *arg1 = 0 ;
1468 int arg2 = (int) 1 ;
1469 int arg3 = (int) wxSOLID ;
1470 wxPen *result;
1471 wxColour temp1 ;
1472 PyObject * obj0 = 0 ;
1473 PyObject * obj1 = 0 ;
1474 PyObject * obj2 = 0 ;
1475 char *kwnames[] = {
1476 (char *) "colour",(char *) "width",(char *) "style", NULL
1477 };
1478
1479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1480 {
1481 arg1 = &temp1;
1482 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1483 }
1484 if (obj1) {
1485 {
1486 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1487 if (PyErr_Occurred()) SWIG_fail;
1488 }
1489 }
1490 if (obj2) {
1491 {
1492 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1493 if (PyErr_Occurred()) SWIG_fail;
1494 }
1495 }
1496 {
1497 PyThreadState* __tstate = wxPyBeginAllowThreads();
1498 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1499
1500 wxPyEndAllowThreads(__tstate);
1501 if (PyErr_Occurred()) SWIG_fail;
1502 }
1503 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1504 return resultobj;
1505 fail:
1506 return NULL;
1507 }
1508
1509
1510 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1511 PyObject *resultobj;
1512 wxPen *arg1 = (wxPen *) 0 ;
1513 PyObject * obj0 = 0 ;
1514 char *kwnames[] = {
1515 (char *) "self", NULL
1516 };
1517
1518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1520 {
1521 PyThreadState* __tstate = wxPyBeginAllowThreads();
1522 delete arg1;
1523
1524 wxPyEndAllowThreads(__tstate);
1525 if (PyErr_Occurred()) SWIG_fail;
1526 }
1527 Py_INCREF(Py_None); resultobj = Py_None;
1528 return resultobj;
1529 fail:
1530 return NULL;
1531 }
1532
1533
1534 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1535 PyObject *resultobj;
1536 wxPen *arg1 = (wxPen *) 0 ;
1537 int result;
1538 PyObject * obj0 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "self", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1545 {
1546 PyThreadState* __tstate = wxPyBeginAllowThreads();
1547 result = (int)(arg1)->GetCap();
1548
1549 wxPyEndAllowThreads(__tstate);
1550 if (PyErr_Occurred()) SWIG_fail;
1551 }
1552 resultobj = SWIG_PyObj_FromInt((int)result);
1553 return resultobj;
1554 fail:
1555 return NULL;
1556 }
1557
1558
1559 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1560 PyObject *resultobj;
1561 wxPen *arg1 = (wxPen *) 0 ;
1562 wxColour result;
1563 PyObject * obj0 = 0 ;
1564 char *kwnames[] = {
1565 (char *) "self", NULL
1566 };
1567
1568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1570 {
1571 PyThreadState* __tstate = wxPyBeginAllowThreads();
1572 result = (arg1)->GetColour();
1573
1574 wxPyEndAllowThreads(__tstate);
1575 if (PyErr_Occurred()) SWIG_fail;
1576 }
1577 {
1578 wxColour * resultptr;
1579 resultptr = new wxColour((wxColour &) result);
1580 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1581 }
1582 return resultobj;
1583 fail:
1584 return NULL;
1585 }
1586
1587
1588 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1589 PyObject *resultobj;
1590 wxPen *arg1 = (wxPen *) 0 ;
1591 int result;
1592 PyObject * obj0 = 0 ;
1593 char *kwnames[] = {
1594 (char *) "self", NULL
1595 };
1596
1597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1599 {
1600 PyThreadState* __tstate = wxPyBeginAllowThreads();
1601 result = (int)(arg1)->GetJoin();
1602
1603 wxPyEndAllowThreads(__tstate);
1604 if (PyErr_Occurred()) SWIG_fail;
1605 }
1606 resultobj = SWIG_PyObj_FromInt((int)result);
1607 return resultobj;
1608 fail:
1609 return NULL;
1610 }
1611
1612
1613 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject *resultobj;
1615 wxPen *arg1 = (wxPen *) 0 ;
1616 int result;
1617 PyObject * obj0 = 0 ;
1618 char *kwnames[] = {
1619 (char *) "self", NULL
1620 };
1621
1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1624 {
1625 PyThreadState* __tstate = wxPyBeginAllowThreads();
1626 result = (int)(arg1)->GetStyle();
1627
1628 wxPyEndAllowThreads(__tstate);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 }
1631 resultobj = SWIG_PyObj_FromInt((int)result);
1632 return resultobj;
1633 fail:
1634 return NULL;
1635 }
1636
1637
1638 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1639 PyObject *resultobj;
1640 wxPen *arg1 = (wxPen *) 0 ;
1641 int result;
1642 PyObject * obj0 = 0 ;
1643 char *kwnames[] = {
1644 (char *) "self", NULL
1645 };
1646
1647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1649 {
1650 PyThreadState* __tstate = wxPyBeginAllowThreads();
1651 result = (int)(arg1)->GetWidth();
1652
1653 wxPyEndAllowThreads(__tstate);
1654 if (PyErr_Occurred()) SWIG_fail;
1655 }
1656 resultobj = SWIG_PyObj_FromInt((int)result);
1657 return resultobj;
1658 fail:
1659 return NULL;
1660 }
1661
1662
1663 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1664 PyObject *resultobj;
1665 wxPen *arg1 = (wxPen *) 0 ;
1666 bool result;
1667 PyObject * obj0 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "self", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1674 {
1675 PyThreadState* __tstate = wxPyBeginAllowThreads();
1676 result = (bool)(arg1)->Ok();
1677
1678 wxPyEndAllowThreads(__tstate);
1679 if (PyErr_Occurred()) SWIG_fail;
1680 }
1681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1682 return resultobj;
1683 fail:
1684 return NULL;
1685 }
1686
1687
1688 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1689 PyObject *resultobj;
1690 wxPen *arg1 = (wxPen *) 0 ;
1691 int arg2 ;
1692 PyObject * obj0 = 0 ;
1693 PyObject * obj1 = 0 ;
1694 char *kwnames[] = {
1695 (char *) "self",(char *) "cap_style", NULL
1696 };
1697
1698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1700 {
1701 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1702 if (PyErr_Occurred()) SWIG_fail;
1703 }
1704 {
1705 PyThreadState* __tstate = wxPyBeginAllowThreads();
1706 (arg1)->SetCap(arg2);
1707
1708 wxPyEndAllowThreads(__tstate);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 }
1711 Py_INCREF(Py_None); resultobj = Py_None;
1712 return resultobj;
1713 fail:
1714 return NULL;
1715 }
1716
1717
1718 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1719 PyObject *resultobj;
1720 wxPen *arg1 = (wxPen *) 0 ;
1721 wxColour *arg2 = 0 ;
1722 wxColour temp2 ;
1723 PyObject * obj0 = 0 ;
1724 PyObject * obj1 = 0 ;
1725 char *kwnames[] = {
1726 (char *) "self",(char *) "colour", NULL
1727 };
1728
1729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1730 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1731 {
1732 arg2 = &temp2;
1733 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1734 }
1735 {
1736 PyThreadState* __tstate = wxPyBeginAllowThreads();
1737 (arg1)->SetColour(*arg2);
1738
1739 wxPyEndAllowThreads(__tstate);
1740 if (PyErr_Occurred()) SWIG_fail;
1741 }
1742 Py_INCREF(Py_None); resultobj = Py_None;
1743 return resultobj;
1744 fail:
1745 return NULL;
1746 }
1747
1748
1749 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1750 PyObject *resultobj;
1751 wxPen *arg1 = (wxPen *) 0 ;
1752 int arg2 ;
1753 PyObject * obj0 = 0 ;
1754 PyObject * obj1 = 0 ;
1755 char *kwnames[] = {
1756 (char *) "self",(char *) "join_style", NULL
1757 };
1758
1759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1761 {
1762 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1763 if (PyErr_Occurred()) SWIG_fail;
1764 }
1765 {
1766 PyThreadState* __tstate = wxPyBeginAllowThreads();
1767 (arg1)->SetJoin(arg2);
1768
1769 wxPyEndAllowThreads(__tstate);
1770 if (PyErr_Occurred()) SWIG_fail;
1771 }
1772 Py_INCREF(Py_None); resultobj = Py_None;
1773 return resultobj;
1774 fail:
1775 return NULL;
1776 }
1777
1778
1779 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1780 PyObject *resultobj;
1781 wxPen *arg1 = (wxPen *) 0 ;
1782 int arg2 ;
1783 PyObject * obj0 = 0 ;
1784 PyObject * obj1 = 0 ;
1785 char *kwnames[] = {
1786 (char *) "self",(char *) "style", NULL
1787 };
1788
1789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1791 {
1792 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1793 if (PyErr_Occurred()) SWIG_fail;
1794 }
1795 {
1796 PyThreadState* __tstate = wxPyBeginAllowThreads();
1797 (arg1)->SetStyle(arg2);
1798
1799 wxPyEndAllowThreads(__tstate);
1800 if (PyErr_Occurred()) SWIG_fail;
1801 }
1802 Py_INCREF(Py_None); resultobj = Py_None;
1803 return resultobj;
1804 fail:
1805 return NULL;
1806 }
1807
1808
1809 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1810 PyObject *resultobj;
1811 wxPen *arg1 = (wxPen *) 0 ;
1812 int arg2 ;
1813 PyObject * obj0 = 0 ;
1814 PyObject * obj1 = 0 ;
1815 char *kwnames[] = {
1816 (char *) "self",(char *) "width", NULL
1817 };
1818
1819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1821 {
1822 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1823 if (PyErr_Occurred()) SWIG_fail;
1824 }
1825 {
1826 PyThreadState* __tstate = wxPyBeginAllowThreads();
1827 (arg1)->SetWidth(arg2);
1828
1829 wxPyEndAllowThreads(__tstate);
1830 if (PyErr_Occurred()) SWIG_fail;
1831 }
1832 Py_INCREF(Py_None); resultobj = Py_None;
1833 return resultobj;
1834 fail:
1835 return NULL;
1836 }
1837
1838
1839 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1840 PyObject *resultobj;
1841 wxPen *arg1 = (wxPen *) 0 ;
1842 int arg2 ;
1843 wxDash *arg3 = (wxDash *) 0 ;
1844 PyObject * obj0 = 0 ;
1845 PyObject * obj1 = 0 ;
1846 char *kwnames[] = {
1847 (char *) "self",(char *) "dashes", NULL
1848 };
1849
1850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1851 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1852 {
1853 arg2 = PyList_Size(obj1);
1854 arg3 = (wxDash*)byte_LIST_helper(obj1);
1855 if (arg3 == NULL) SWIG_fail;
1856 }
1857 {
1858 PyThreadState* __tstate = wxPyBeginAllowThreads();
1859 (arg1)->SetDashes(arg2,arg3);
1860
1861 wxPyEndAllowThreads(__tstate);
1862 if (PyErr_Occurred()) SWIG_fail;
1863 }
1864 Py_INCREF(Py_None); resultobj = Py_None;
1865 {
1866 if (arg3) delete [] arg3;
1867 }
1868 return resultobj;
1869 fail:
1870 {
1871 if (arg3) delete [] arg3;
1872 }
1873 return NULL;
1874 }
1875
1876
1877 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1878 PyObject *resultobj;
1879 wxPen *arg1 = (wxPen *) 0 ;
1880 PyObject *result;
1881 PyObject * obj0 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "self", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1888 {
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 result = (PyObject *)wxPen_GetDashes(arg1);
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) SWIG_fail;
1894 }
1895 resultobj = result;
1896 return resultobj;
1897 fail:
1898 return NULL;
1899 }
1900
1901
1902 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 int result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1913 {
1914 PyThreadState* __tstate = wxPyBeginAllowThreads();
1915 result = (int)((wxPen const *)arg1)->GetDashCount();
1916
1917 wxPyEndAllowThreads(__tstate);
1918 if (PyErr_Occurred()) SWIG_fail;
1919 }
1920 resultobj = SWIG_PyObj_FromInt((int)result);
1921 return resultobj;
1922 fail:
1923 return NULL;
1924 }
1925
1926
1927 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1928 PyObject *resultobj;
1929 wxPen *arg1 = (wxPen *) 0 ;
1930 wxBitmap *result;
1931 PyObject * obj0 = 0 ;
1932 char *kwnames[] = {
1933 (char *) "self", NULL
1934 };
1935
1936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
1937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1938 {
1939 PyThreadState* __tstate = wxPyBeginAllowThreads();
1940 result = (wxBitmap *)(arg1)->GetStipple();
1941
1942 wxPyEndAllowThreads(__tstate);
1943 if (PyErr_Occurred()) SWIG_fail;
1944 }
1945 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
1946 return resultobj;
1947 fail:
1948 return NULL;
1949 }
1950
1951
1952 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
1953 PyObject *resultobj;
1954 wxPen *arg1 = (wxPen *) 0 ;
1955 wxBitmap *arg2 = 0 ;
1956 PyObject * obj0 = 0 ;
1957 PyObject * obj1 = 0 ;
1958 char *kwnames[] = {
1959 (char *) "self",(char *) "stipple", NULL
1960 };
1961
1962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
1963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1964 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1965 if (arg2 == NULL) {
1966 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1967 }
1968 {
1969 PyThreadState* __tstate = wxPyBeginAllowThreads();
1970 (arg1)->SetStipple(*arg2);
1971
1972 wxPyEndAllowThreads(__tstate);
1973 if (PyErr_Occurred()) SWIG_fail;
1974 }
1975 Py_INCREF(Py_None); resultobj = Py_None;
1976 return resultobj;
1977 fail:
1978 return NULL;
1979 }
1980
1981
1982 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1983 PyObject *obj;
1984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1985 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1986 Py_INCREF(obj);
1987 return Py_BuildValue((char *)"");
1988 }
1989 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1990 PyObject *resultobj;
1991 wxColour *arg1 = 0 ;
1992 int arg2 = (int) 1 ;
1993 int arg3 = (int) wxSOLID ;
1994 wxPyPen *result;
1995 wxColour temp1 ;
1996 PyObject * obj0 = 0 ;
1997 PyObject * obj1 = 0 ;
1998 PyObject * obj2 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "colour",(char *) "width",(char *) "style", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2004 {
2005 arg1 = &temp1;
2006 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2007 }
2008 if (obj1) {
2009 {
2010 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2011 if (PyErr_Occurred()) SWIG_fail;
2012 }
2013 }
2014 if (obj2) {
2015 {
2016 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2017 if (PyErr_Occurred()) SWIG_fail;
2018 }
2019 }
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2028 return resultobj;
2029 fail:
2030 return NULL;
2031 }
2032
2033
2034 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2035 PyObject *resultobj;
2036 wxPyPen *arg1 = (wxPyPen *) 0 ;
2037 PyObject * obj0 = 0 ;
2038 char *kwnames[] = {
2039 (char *) "self", NULL
2040 };
2041
2042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2044 {
2045 PyThreadState* __tstate = wxPyBeginAllowThreads();
2046 delete arg1;
2047
2048 wxPyEndAllowThreads(__tstate);
2049 if (PyErr_Occurred()) SWIG_fail;
2050 }
2051 Py_INCREF(Py_None); resultobj = Py_None;
2052 return resultobj;
2053 fail:
2054 return NULL;
2055 }
2056
2057
2058 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2059 PyObject *resultobj;
2060 wxPyPen *arg1 = (wxPyPen *) 0 ;
2061 int arg2 ;
2062 wxDash *arg3 = (wxDash *) 0 ;
2063 PyObject * obj0 = 0 ;
2064 PyObject * obj1 = 0 ;
2065 char *kwnames[] = {
2066 (char *) "self",(char *) "dashes", NULL
2067 };
2068
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2071 {
2072 arg2 = PyList_Size(obj1);
2073 arg3 = (wxDash*)byte_LIST_helper(obj1);
2074 if (arg3 == NULL) SWIG_fail;
2075 }
2076 {
2077 PyThreadState* __tstate = wxPyBeginAllowThreads();
2078 (arg1)->SetDashes(arg2,arg3);
2079
2080 wxPyEndAllowThreads(__tstate);
2081 if (PyErr_Occurred()) SWIG_fail;
2082 }
2083 Py_INCREF(Py_None); resultobj = Py_None;
2084 {
2085 if (arg3) delete [] arg3;
2086 }
2087 return resultobj;
2088 fail:
2089 {
2090 if (arg3) delete [] arg3;
2091 }
2092 return NULL;
2093 }
2094
2095
2096 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2097 PyObject *obj;
2098 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2099 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2100 Py_INCREF(obj);
2101 return Py_BuildValue((char *)"");
2102 }
2103 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2104 PyObject *resultobj;
2105 wxColour *arg1 = 0 ;
2106 int arg2 = (int) wxSOLID ;
2107 wxBrush *result;
2108 wxColour temp1 ;
2109 PyObject * obj0 = 0 ;
2110 PyObject * obj1 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "colour",(char *) "style", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2116 {
2117 arg1 = &temp1;
2118 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2119 }
2120 if (obj1) {
2121 {
2122 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 }
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 }
2133 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2134 return resultobj;
2135 fail:
2136 return NULL;
2137 }
2138
2139
2140 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2141 PyObject *resultobj;
2142 wxBrush *arg1 = (wxBrush *) 0 ;
2143 PyObject * obj0 = 0 ;
2144 char *kwnames[] = {
2145 (char *) "self", NULL
2146 };
2147
2148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2150 {
2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
2152 delete arg1;
2153
2154 wxPyEndAllowThreads(__tstate);
2155 if (PyErr_Occurred()) SWIG_fail;
2156 }
2157 Py_INCREF(Py_None); resultobj = Py_None;
2158 return resultobj;
2159 fail:
2160 return NULL;
2161 }
2162
2163
2164 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject *resultobj;
2166 wxBrush *arg1 = (wxBrush *) 0 ;
2167 wxColour *arg2 = 0 ;
2168 wxColour temp2 ;
2169 PyObject * obj0 = 0 ;
2170 PyObject * obj1 = 0 ;
2171 char *kwnames[] = {
2172 (char *) "self",(char *) "col", NULL
2173 };
2174
2175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2176 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2177 {
2178 arg2 = &temp2;
2179 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2180 }
2181 {
2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
2183 (arg1)->SetColour((wxColour const &)*arg2);
2184
2185 wxPyEndAllowThreads(__tstate);
2186 if (PyErr_Occurred()) SWIG_fail;
2187 }
2188 Py_INCREF(Py_None); resultobj = Py_None;
2189 return resultobj;
2190 fail:
2191 return NULL;
2192 }
2193
2194
2195 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject *resultobj;
2197 wxBrush *arg1 = (wxBrush *) 0 ;
2198 int arg2 ;
2199 PyObject * obj0 = 0 ;
2200 PyObject * obj1 = 0 ;
2201 char *kwnames[] = {
2202 (char *) "self",(char *) "style", NULL
2203 };
2204
2205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2207 {
2208 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2209 if (PyErr_Occurred()) SWIG_fail;
2210 }
2211 {
2212 PyThreadState* __tstate = wxPyBeginAllowThreads();
2213 (arg1)->SetStyle(arg2);
2214
2215 wxPyEndAllowThreads(__tstate);
2216 if (PyErr_Occurred()) SWIG_fail;
2217 }
2218 Py_INCREF(Py_None); resultobj = Py_None;
2219 return resultobj;
2220 fail:
2221 return NULL;
2222 }
2223
2224
2225 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2226 PyObject *resultobj;
2227 wxBrush *arg1 = (wxBrush *) 0 ;
2228 wxBitmap *arg2 = 0 ;
2229 PyObject * obj0 = 0 ;
2230 PyObject * obj1 = 0 ;
2231 char *kwnames[] = {
2232 (char *) "self",(char *) "stipple", NULL
2233 };
2234
2235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2237 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2238 if (arg2 == NULL) {
2239 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2240 }
2241 {
2242 PyThreadState* __tstate = wxPyBeginAllowThreads();
2243 (arg1)->SetStipple((wxBitmap const &)*arg2);
2244
2245 wxPyEndAllowThreads(__tstate);
2246 if (PyErr_Occurred()) SWIG_fail;
2247 }
2248 Py_INCREF(Py_None); resultobj = Py_None;
2249 return resultobj;
2250 fail:
2251 return NULL;
2252 }
2253
2254
2255 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2256 PyObject *resultobj;
2257 wxBrush *arg1 = (wxBrush *) 0 ;
2258 wxColour result;
2259 PyObject * obj0 = 0 ;
2260 char *kwnames[] = {
2261 (char *) "self", NULL
2262 };
2263
2264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2265 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2266 {
2267 PyThreadState* __tstate = wxPyBeginAllowThreads();
2268 result = ((wxBrush const *)arg1)->GetColour();
2269
2270 wxPyEndAllowThreads(__tstate);
2271 if (PyErr_Occurred()) SWIG_fail;
2272 }
2273 {
2274 wxColour * resultptr;
2275 resultptr = new wxColour((wxColour &) result);
2276 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2277 }
2278 return resultobj;
2279 fail:
2280 return NULL;
2281 }
2282
2283
2284 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2285 PyObject *resultobj;
2286 wxBrush *arg1 = (wxBrush *) 0 ;
2287 int result;
2288 PyObject * obj0 = 0 ;
2289 char *kwnames[] = {
2290 (char *) "self", NULL
2291 };
2292
2293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2295 {
2296 PyThreadState* __tstate = wxPyBeginAllowThreads();
2297 result = (int)((wxBrush const *)arg1)->GetStyle();
2298
2299 wxPyEndAllowThreads(__tstate);
2300 if (PyErr_Occurred()) SWIG_fail;
2301 }
2302 resultobj = SWIG_PyObj_FromInt((int)result);
2303 return resultobj;
2304 fail:
2305 return NULL;
2306 }
2307
2308
2309 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2310 PyObject *resultobj;
2311 wxBrush *arg1 = (wxBrush *) 0 ;
2312 wxBitmap *result;
2313 PyObject * obj0 = 0 ;
2314 char *kwnames[] = {
2315 (char *) "self", NULL
2316 };
2317
2318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2320 {
2321 PyThreadState* __tstate = wxPyBeginAllowThreads();
2322 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2323
2324 wxPyEndAllowThreads(__tstate);
2325 if (PyErr_Occurred()) SWIG_fail;
2326 }
2327 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2328 return resultobj;
2329 fail:
2330 return NULL;
2331 }
2332
2333
2334 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2335 PyObject *resultobj;
2336 wxBrush *arg1 = (wxBrush *) 0 ;
2337 bool result;
2338 PyObject * obj0 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2345 {
2346 PyThreadState* __tstate = wxPyBeginAllowThreads();
2347 result = (bool)(arg1)->Ok();
2348
2349 wxPyEndAllowThreads(__tstate);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 }
2352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2353 return resultobj;
2354 fail:
2355 return NULL;
2356 }
2357
2358
2359 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2360 PyObject *obj;
2361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2362 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2363 Py_INCREF(obj);
2364 return Py_BuildValue((char *)"");
2365 }
2366 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject *resultobj;
2368 wxString *arg1 = 0 ;
2369 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2370 wxBitmap *result;
2371 bool temp1 = False ;
2372 PyObject * obj0 = 0 ;
2373 PyObject * obj1 = 0 ;
2374 char *kwnames[] = {
2375 (char *) "name",(char *) "type", NULL
2376 };
2377
2378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2379 {
2380 arg1 = wxString_in_helper(obj0);
2381 if (arg1 == NULL) SWIG_fail;
2382 temp1 = True;
2383 }
2384 if (obj1) {
2385 {
2386 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 }
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2398 {
2399 if (temp1)
2400 delete arg1;
2401 }
2402 return resultobj;
2403 fail:
2404 {
2405 if (temp1)
2406 delete arg1;
2407 }
2408 return NULL;
2409 }
2410
2411
2412 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2413 PyObject *resultobj;
2414 wxBitmap *arg1 = (wxBitmap *) 0 ;
2415 PyObject * obj0 = 0 ;
2416 char *kwnames[] = {
2417 (char *) "self", NULL
2418 };
2419
2420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2422 {
2423 PyThreadState* __tstate = wxPyBeginAllowThreads();
2424 delete arg1;
2425
2426 wxPyEndAllowThreads(__tstate);
2427 if (PyErr_Occurred()) SWIG_fail;
2428 }
2429 Py_INCREF(Py_None); resultobj = Py_None;
2430 return resultobj;
2431 fail:
2432 return NULL;
2433 }
2434
2435
2436 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2437 PyObject *resultobj;
2438 int arg1 ;
2439 int arg2 ;
2440 int arg3 = (int) -1 ;
2441 wxBitmap *result;
2442 PyObject * obj0 = 0 ;
2443 PyObject * obj1 = 0 ;
2444 PyObject * obj2 = 0 ;
2445 char *kwnames[] = {
2446 (char *) "width",(char *) "height",(char *) "depth", NULL
2447 };
2448
2449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2450 {
2451 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2452 if (PyErr_Occurred()) SWIG_fail;
2453 }
2454 {
2455 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
2458 if (obj2) {
2459 {
2460 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 }
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxIcon *arg1 = 0 ;
2481 wxBitmap *result;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "icon", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2489 if (arg1 == NULL) {
2490 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2491 }
2492 {
2493 PyThreadState* __tstate = wxPyBeginAllowThreads();
2494 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2495
2496 wxPyEndAllowThreads(__tstate);
2497 if (PyErr_Occurred()) SWIG_fail;
2498 }
2499 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2500 return resultobj;
2501 fail:
2502 return NULL;
2503 }
2504
2505
2506 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject *resultobj;
2508 wxImage *arg1 = 0 ;
2509 int arg2 = (int) -1 ;
2510 wxBitmap *result;
2511 PyObject * obj0 = 0 ;
2512 PyObject * obj1 = 0 ;
2513 char *kwnames[] = {
2514 (char *) "image",(char *) "depth", NULL
2515 };
2516
2517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2519 if (arg1 == NULL) {
2520 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2521 }
2522 if (obj1) {
2523 {
2524 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2525 if (PyErr_Occurred()) SWIG_fail;
2526 }
2527 }
2528 {
2529 PyThreadState* __tstate = wxPyBeginAllowThreads();
2530 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2531
2532 wxPyEndAllowThreads(__tstate);
2533 if (PyErr_Occurred()) SWIG_fail;
2534 }
2535 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2536 return resultobj;
2537 fail:
2538 return NULL;
2539 }
2540
2541
2542 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2543 PyObject *resultobj;
2544 PyObject *arg1 = (PyObject *) 0 ;
2545 wxBitmap *result;
2546 PyObject * obj0 = 0 ;
2547 char *kwnames[] = {
2548 (char *) "listOfStrings", NULL
2549 };
2550
2551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2552 arg1 = obj0;
2553 {
2554 PyThreadState* __tstate = wxPyBeginAllowThreads();
2555 result = (wxBitmap *)new_wxBitmap(arg1);
2556
2557 wxPyEndAllowThreads(__tstate);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 }
2560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2561 return resultobj;
2562 fail:
2563 return NULL;
2564 }
2565
2566
2567 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2568 PyObject *resultobj;
2569 PyObject *arg1 = (PyObject *) 0 ;
2570 int arg2 ;
2571 int arg3 ;
2572 int arg4 = (int) 1 ;
2573 wxBitmap *result;
2574 PyObject * obj0 = 0 ;
2575 PyObject * obj1 = 0 ;
2576 PyObject * obj2 = 0 ;
2577 PyObject * obj3 = 0 ;
2578 char *kwnames[] = {
2579 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2580 };
2581
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2583 arg1 = obj0;
2584 {
2585 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 {
2589 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 if (obj3) {
2593 {
2594 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 }
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
2605 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2606 return resultobj;
2607 fail:
2608 return NULL;
2609 }
2610
2611
2612 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject *resultobj;
2614 wxBitmap *arg1 = (wxBitmap *) 0 ;
2615 wxPalette *arg2 = 0 ;
2616 PyObject * obj0 = 0 ;
2617 PyObject * obj1 = 0 ;
2618 char *kwnames[] = {
2619 (char *) "self",(char *) "palette", NULL
2620 };
2621
2622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2624 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2625 if (arg2 == NULL) {
2626 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2627 }
2628 {
2629 PyThreadState* __tstate = wxPyBeginAllowThreads();
2630 (arg1)->SetPalette(*arg2);
2631
2632 wxPyEndAllowThreads(__tstate);
2633 if (PyErr_Occurred()) SWIG_fail;
2634 }
2635 Py_INCREF(Py_None); resultobj = Py_None;
2636 return resultobj;
2637 fail:
2638 return NULL;
2639 }
2640
2641
2642 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2643 PyObject *resultobj;
2644 wxBitmap *arg1 = (wxBitmap *) 0 ;
2645 long result;
2646 PyObject * obj0 = 0 ;
2647 char *kwnames[] = {
2648 (char *) "self", NULL
2649 };
2650
2651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2653 {
2654 PyThreadState* __tstate = wxPyBeginAllowThreads();
2655 result = (long)(arg1)->GetHandle();
2656
2657 wxPyEndAllowThreads(__tstate);
2658 if (PyErr_Occurred()) SWIG_fail;
2659 }
2660 resultobj = SWIG_PyObj_FromLong((long)result);
2661 return resultobj;
2662 fail:
2663 return NULL;
2664 }
2665
2666
2667 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2668 PyObject *resultobj;
2669 wxBitmap *arg1 = (wxBitmap *) 0 ;
2670 long arg2 ;
2671 PyObject * obj0 = 0 ;
2672 PyObject * obj1 = 0 ;
2673 char *kwnames[] = {
2674 (char *) "self",(char *) "handle", NULL
2675 };
2676
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2679 {
2680 arg2 = (long) SWIG_PyObj_AsLong(obj1);
2681 if (PyErr_Occurred()) SWIG_fail;
2682 }
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 (arg1)->SetHandle(arg2);
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 Py_INCREF(Py_None); resultobj = Py_None;
2691 return resultobj;
2692 fail:
2693 return NULL;
2694 }
2695
2696
2697 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2698 PyObject *resultobj;
2699 wxBitmap *arg1 = (wxBitmap *) 0 ;
2700 bool result;
2701 PyObject * obj0 = 0 ;
2702 char *kwnames[] = {
2703 (char *) "self", NULL
2704 };
2705
2706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2708 {
2709 PyThreadState* __tstate = wxPyBeginAllowThreads();
2710 result = (bool)(arg1)->Ok();
2711
2712 wxPyEndAllowThreads(__tstate);
2713 if (PyErr_Occurred()) SWIG_fail;
2714 }
2715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2716 return resultobj;
2717 fail:
2718 return NULL;
2719 }
2720
2721
2722 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject *resultobj;
2724 wxBitmap *arg1 = (wxBitmap *) 0 ;
2725 int result;
2726 PyObject * obj0 = 0 ;
2727 char *kwnames[] = {
2728 (char *) "self", NULL
2729 };
2730
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2733 {
2734 PyThreadState* __tstate = wxPyBeginAllowThreads();
2735 result = (int)(arg1)->GetWidth();
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) SWIG_fail;
2739 }
2740 resultobj = SWIG_PyObj_FromInt((int)result);
2741 return resultobj;
2742 fail:
2743 return NULL;
2744 }
2745
2746
2747 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2748 PyObject *resultobj;
2749 wxBitmap *arg1 = (wxBitmap *) 0 ;
2750 int result;
2751 PyObject * obj0 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "self", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2757 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2758 {
2759 PyThreadState* __tstate = wxPyBeginAllowThreads();
2760 result = (int)(arg1)->GetHeight();
2761
2762 wxPyEndAllowThreads(__tstate);
2763 if (PyErr_Occurred()) SWIG_fail;
2764 }
2765 resultobj = SWIG_PyObj_FromInt((int)result);
2766 return resultobj;
2767 fail:
2768 return NULL;
2769 }
2770
2771
2772 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2773 PyObject *resultobj;
2774 wxBitmap *arg1 = (wxBitmap *) 0 ;
2775 int result;
2776 PyObject * obj0 = 0 ;
2777 char *kwnames[] = {
2778 (char *) "self", NULL
2779 };
2780
2781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2783 {
2784 PyThreadState* __tstate = wxPyBeginAllowThreads();
2785 result = (int)(arg1)->GetDepth();
2786
2787 wxPyEndAllowThreads(__tstate);
2788 if (PyErr_Occurred()) SWIG_fail;
2789 }
2790 resultobj = SWIG_PyObj_FromInt((int)result);
2791 return resultobj;
2792 fail:
2793 return NULL;
2794 }
2795
2796
2797 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2798 PyObject *resultobj;
2799 wxBitmap *arg1 = (wxBitmap *) 0 ;
2800 SwigValueWrapper< wxImage > result;
2801 PyObject * obj0 = 0 ;
2802 char *kwnames[] = {
2803 (char *) "self", NULL
2804 };
2805
2806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2808 {
2809 PyThreadState* __tstate = wxPyBeginAllowThreads();
2810 result = ((wxBitmap const *)arg1)->ConvertToImage();
2811
2812 wxPyEndAllowThreads(__tstate);
2813 if (PyErr_Occurred()) SWIG_fail;
2814 }
2815 {
2816 wxImage * resultptr;
2817 resultptr = new wxImage((wxImage &) result);
2818 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2819 }
2820 return resultobj;
2821 fail:
2822 return NULL;
2823 }
2824
2825
2826 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2827 PyObject *resultobj;
2828 wxBitmap *arg1 = (wxBitmap *) 0 ;
2829 wxMask *result;
2830 PyObject * obj0 = 0 ;
2831 char *kwnames[] = {
2832 (char *) "self", NULL
2833 };
2834
2835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2837 {
2838 PyThreadState* __tstate = wxPyBeginAllowThreads();
2839 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2840
2841 wxPyEndAllowThreads(__tstate);
2842 if (PyErr_Occurred()) SWIG_fail;
2843 }
2844 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2845 return resultobj;
2846 fail:
2847 return NULL;
2848 }
2849
2850
2851 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2852 PyObject *resultobj;
2853 wxBitmap *arg1 = (wxBitmap *) 0 ;
2854 wxMask *arg2 = (wxMask *) 0 ;
2855 PyObject * obj0 = 0 ;
2856 PyObject * obj1 = 0 ;
2857 char *kwnames[] = {
2858 (char *) "self",(char *) "mask", NULL
2859 };
2860
2861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2862 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2863 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2864 {
2865 PyThreadState* __tstate = wxPyBeginAllowThreads();
2866 (arg1)->SetMask(arg2);
2867
2868 wxPyEndAllowThreads(__tstate);
2869 if (PyErr_Occurred()) SWIG_fail;
2870 }
2871 Py_INCREF(Py_None); resultobj = Py_None;
2872 return resultobj;
2873 fail:
2874 return NULL;
2875 }
2876
2877
2878 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2879 PyObject *resultobj;
2880 wxBitmap *arg1 = (wxBitmap *) 0 ;
2881 wxColour *arg2 = 0 ;
2882 wxColour temp2 ;
2883 PyObject * obj0 = 0 ;
2884 PyObject * obj1 = 0 ;
2885 char *kwnames[] = {
2886 (char *) "self",(char *) "colour", NULL
2887 };
2888
2889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2890 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2891 {
2892 arg2 = &temp2;
2893 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2894 }
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 Py_INCREF(Py_None); resultobj = Py_None;
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 wxBitmap *arg1 = (wxBitmap *) 0 ;
2912 wxRect *arg2 = 0 ;
2913 SwigValueWrapper< wxBitmap > result;
2914 wxRect temp2 ;
2915 PyObject * obj0 = 0 ;
2916 PyObject * obj1 = 0 ;
2917 char *kwnames[] = {
2918 (char *) "self",(char *) "rect", NULL
2919 };
2920
2921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2923 {
2924 arg2 = &temp2;
2925 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2926 }
2927 {
2928 PyThreadState* __tstate = wxPyBeginAllowThreads();
2929 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2930
2931 wxPyEndAllowThreads(__tstate);
2932 if (PyErr_Occurred()) SWIG_fail;
2933 }
2934 {
2935 wxBitmap * resultptr;
2936 resultptr = new wxBitmap((wxBitmap &) result);
2937 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2938 }
2939 return resultobj;
2940 fail:
2941 return NULL;
2942 }
2943
2944
2945 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2946 PyObject *resultobj;
2947 wxBitmap *arg1 = (wxBitmap *) 0 ;
2948 wxString *arg2 = 0 ;
2949 int arg3 ;
2950 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2951 bool result;
2952 bool temp2 = False ;
2953 PyObject * obj0 = 0 ;
2954 PyObject * obj1 = 0 ;
2955 PyObject * obj2 = 0 ;
2956 PyObject * obj3 = 0 ;
2957 char *kwnames[] = {
2958 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2959 };
2960
2961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2963 {
2964 arg2 = wxString_in_helper(obj1);
2965 if (arg2 == NULL) SWIG_fail;
2966 temp2 = True;
2967 }
2968 {
2969 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2970 if (PyErr_Occurred()) SWIG_fail;
2971 }
2972 if (obj3) {
2973 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2974 }
2975 {
2976 PyThreadState* __tstate = wxPyBeginAllowThreads();
2977 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2978
2979 wxPyEndAllowThreads(__tstate);
2980 if (PyErr_Occurred()) SWIG_fail;
2981 }
2982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2983 {
2984 if (temp2)
2985 delete arg2;
2986 }
2987 return resultobj;
2988 fail:
2989 {
2990 if (temp2)
2991 delete arg2;
2992 }
2993 return NULL;
2994 }
2995
2996
2997 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2998 PyObject *resultobj;
2999 wxBitmap *arg1 = (wxBitmap *) 0 ;
3000 wxString *arg2 = 0 ;
3001 int arg3 ;
3002 bool result;
3003 bool temp2 = False ;
3004 PyObject * obj0 = 0 ;
3005 PyObject * obj1 = 0 ;
3006 PyObject * obj2 = 0 ;
3007 char *kwnames[] = {
3008 (char *) "self",(char *) "name",(char *) "type", NULL
3009 };
3010
3011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3013 {
3014 arg2 = wxString_in_helper(obj1);
3015 if (arg2 == NULL) SWIG_fail;
3016 temp2 = True;
3017 }
3018 {
3019 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3020 if (PyErr_Occurred()) SWIG_fail;
3021 }
3022 {
3023 PyThreadState* __tstate = wxPyBeginAllowThreads();
3024 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3025
3026 wxPyEndAllowThreads(__tstate);
3027 if (PyErr_Occurred()) SWIG_fail;
3028 }
3029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3030 {
3031 if (temp2)
3032 delete arg2;
3033 }
3034 return resultobj;
3035 fail:
3036 {
3037 if (temp2)
3038 delete arg2;
3039 }
3040 return NULL;
3041 }
3042
3043
3044 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject *resultobj;
3046 wxBitmap *arg1 = (wxBitmap *) 0 ;
3047 wxIcon *arg2 = 0 ;
3048 bool result;
3049 PyObject * obj0 = 0 ;
3050 PyObject * obj1 = 0 ;
3051 char *kwnames[] = {
3052 (char *) "self",(char *) "icon", NULL
3053 };
3054
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3056 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3057 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3058 if (arg2 == NULL) {
3059 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3060 }
3061 {
3062 PyThreadState* __tstate = wxPyBeginAllowThreads();
3063 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3064
3065 wxPyEndAllowThreads(__tstate);
3066 if (PyErr_Occurred()) SWIG_fail;
3067 }
3068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3069 return resultobj;
3070 fail:
3071 return NULL;
3072 }
3073
3074
3075 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3076 PyObject *resultobj;
3077 wxBitmap *arg1 = (wxBitmap *) 0 ;
3078 int arg2 ;
3079 PyObject * obj0 = 0 ;
3080 PyObject * obj1 = 0 ;
3081 char *kwnames[] = {
3082 (char *) "self",(char *) "height", NULL
3083 };
3084
3085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3087 {
3088 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3089 if (PyErr_Occurred()) SWIG_fail;
3090 }
3091 {
3092 PyThreadState* __tstate = wxPyBeginAllowThreads();
3093 (arg1)->SetHeight(arg2);
3094
3095 wxPyEndAllowThreads(__tstate);
3096 if (PyErr_Occurred()) SWIG_fail;
3097 }
3098 Py_INCREF(Py_None); resultobj = Py_None;
3099 return resultobj;
3100 fail:
3101 return NULL;
3102 }
3103
3104
3105 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3106 PyObject *resultobj;
3107 wxBitmap *arg1 = (wxBitmap *) 0 ;
3108 int arg2 ;
3109 PyObject * obj0 = 0 ;
3110 PyObject * obj1 = 0 ;
3111 char *kwnames[] = {
3112 (char *) "self",(char *) "width", NULL
3113 };
3114
3115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3117 {
3118 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 {
3122 PyThreadState* __tstate = wxPyBeginAllowThreads();
3123 (arg1)->SetWidth(arg2);
3124
3125 wxPyEndAllowThreads(__tstate);
3126 if (PyErr_Occurred()) SWIG_fail;
3127 }
3128 Py_INCREF(Py_None); resultobj = Py_None;
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3136 PyObject *resultobj;
3137 wxBitmap *arg1 = (wxBitmap *) 0 ;
3138 int arg2 ;
3139 PyObject * obj0 = 0 ;
3140 PyObject * obj1 = 0 ;
3141 char *kwnames[] = {
3142 (char *) "self",(char *) "depth", NULL
3143 };
3144
3145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3147 {
3148 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 {
3152 PyThreadState* __tstate = wxPyBeginAllowThreads();
3153 (arg1)->SetDepth(arg2);
3154
3155 wxPyEndAllowThreads(__tstate);
3156 if (PyErr_Occurred()) SWIG_fail;
3157 }
3158 Py_INCREF(Py_None); resultobj = Py_None;
3159 return resultobj;
3160 fail:
3161 return NULL;
3162 }
3163
3164
3165 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3166 PyObject *resultobj;
3167 wxBitmap *arg1 = (wxBitmap *) 0 ;
3168 wxCursor *arg2 = 0 ;
3169 bool result;
3170 PyObject * obj0 = 0 ;
3171 PyObject * obj1 = 0 ;
3172 char *kwnames[] = {
3173 (char *) "self",(char *) "cursor", NULL
3174 };
3175
3176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3177 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3178 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3179 if (arg2 == NULL) {
3180 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3181 }
3182 {
3183 PyThreadState* __tstate = wxPyBeginAllowThreads();
3184 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3185
3186 wxPyEndAllowThreads(__tstate);
3187 if (PyErr_Occurred()) SWIG_fail;
3188 }
3189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3190 return resultobj;
3191 fail:
3192 return NULL;
3193 }
3194
3195
3196 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3197 PyObject *resultobj;
3198 wxBitmap *arg1 = (wxBitmap *) 0 ;
3199 int result;
3200 PyObject * obj0 = 0 ;
3201 char *kwnames[] = {
3202 (char *) "self", NULL
3203 };
3204
3205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3206 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3207 {
3208 PyThreadState* __tstate = wxPyBeginAllowThreads();
3209 result = (int)(arg1)->GetQuality();
3210
3211 wxPyEndAllowThreads(__tstate);
3212 if (PyErr_Occurred()) SWIG_fail;
3213 }
3214 resultobj = SWIG_PyObj_FromInt((int)result);
3215 return resultobj;
3216 fail:
3217 return NULL;
3218 }
3219
3220
3221 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3222 PyObject *resultobj;
3223 wxBitmap *arg1 = (wxBitmap *) 0 ;
3224 int arg2 ;
3225 PyObject * obj0 = 0 ;
3226 PyObject * obj1 = 0 ;
3227 char *kwnames[] = {
3228 (char *) "self",(char *) "q", NULL
3229 };
3230
3231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3232 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3233 {
3234 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3235 if (PyErr_Occurred()) SWIG_fail;
3236 }
3237 {
3238 PyThreadState* __tstate = wxPyBeginAllowThreads();
3239 (arg1)->SetQuality(arg2);
3240
3241 wxPyEndAllowThreads(__tstate);
3242 if (PyErr_Occurred()) SWIG_fail;
3243 }
3244 Py_INCREF(Py_None); resultobj = Py_None;
3245 return resultobj;
3246 fail:
3247 return NULL;
3248 }
3249
3250
3251 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3252 PyObject *obj;
3253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3254 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3255 Py_INCREF(obj);
3256 return Py_BuildValue((char *)"");
3257 }
3258 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3259 PyObject *resultobj;
3260 wxBitmap *arg1 = 0 ;
3261 wxMask *result;
3262 PyObject * obj0 = 0 ;
3263 char *kwnames[] = {
3264 (char *) "bitmap", NULL
3265 };
3266
3267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3268 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3269 if (arg1 == NULL) {
3270 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3271 }
3272 {
3273 PyThreadState* __tstate = wxPyBeginAllowThreads();
3274 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3275
3276 wxPyEndAllowThreads(__tstate);
3277 if (PyErr_Occurred()) SWIG_fail;
3278 }
3279 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3280 return resultobj;
3281 fail:
3282 return NULL;
3283 }
3284
3285
3286 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3287 PyObject *resultobj;
3288 wxBitmap *arg1 = 0 ;
3289 wxColour *arg2 = 0 ;
3290 wxMask *result;
3291 wxColour temp2 ;
3292 PyObject * obj0 = 0 ;
3293 PyObject * obj1 = 0 ;
3294 char *kwnames[] = {
3295 (char *) "bitmap",(char *) "colour", NULL
3296 };
3297
3298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3300 if (arg1 == NULL) {
3301 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3302 }
3303 {
3304 arg2 = &temp2;
3305 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3306 }
3307 {
3308 PyThreadState* __tstate = wxPyBeginAllowThreads();
3309 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3310
3311 wxPyEndAllowThreads(__tstate);
3312 if (PyErr_Occurred()) SWIG_fail;
3313 }
3314 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3315 return resultobj;
3316 fail:
3317 return NULL;
3318 }
3319
3320
3321 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3322 PyObject *obj;
3323 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3324 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3325 Py_INCREF(obj);
3326 return Py_BuildValue((char *)"");
3327 }
3328 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 wxString *arg1 = 0 ;
3331 int arg2 ;
3332 int arg3 = (int) -1 ;
3333 int arg4 = (int) -1 ;
3334 wxIcon *result;
3335 bool temp1 = False ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 PyObject * obj2 = 0 ;
3339 PyObject * obj3 = 0 ;
3340 char *kwnames[] = {
3341 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3342 };
3343
3344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3345 {
3346 arg1 = wxString_in_helper(obj0);
3347 if (arg1 == NULL) SWIG_fail;
3348 temp1 = True;
3349 }
3350 {
3351 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 if (obj2) {
3355 {
3356 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3357 if (PyErr_Occurred()) SWIG_fail;
3358 }
3359 }
3360 if (obj3) {
3361 {
3362 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3363 if (PyErr_Occurred()) SWIG_fail;
3364 }
3365 }
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3374 {
3375 if (temp1)
3376 delete arg1;
3377 }
3378 return resultobj;
3379 fail:
3380 {
3381 if (temp1)
3382 delete arg1;
3383 }
3384 return NULL;
3385 }
3386
3387
3388 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3389 PyObject *resultobj;
3390 wxIcon *arg1 = (wxIcon *) 0 ;
3391 PyObject * obj0 = 0 ;
3392 char *kwnames[] = {
3393 (char *) "self", NULL
3394 };
3395
3396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3398 {
3399 PyThreadState* __tstate = wxPyBeginAllowThreads();
3400 delete arg1;
3401
3402 wxPyEndAllowThreads(__tstate);
3403 if (PyErr_Occurred()) SWIG_fail;
3404 }
3405 Py_INCREF(Py_None); resultobj = Py_None;
3406 return resultobj;
3407 fail:
3408 return NULL;
3409 }
3410
3411
3412 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3413 PyObject *resultobj;
3414 wxIcon *result;
3415 char *kwnames[] = {
3416 NULL
3417 };
3418
3419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3420 {
3421 PyThreadState* __tstate = wxPyBeginAllowThreads();
3422 result = (wxIcon *)new wxIcon();
3423
3424 wxPyEndAllowThreads(__tstate);
3425 if (PyErr_Occurred()) SWIG_fail;
3426 }
3427 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3428 return resultobj;
3429 fail:
3430 return NULL;
3431 }
3432
3433
3434 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3435 PyObject *resultobj;
3436 wxIconLocation *arg1 = 0 ;
3437 wxIcon *result;
3438 PyObject * obj0 = 0 ;
3439 char *kwnames[] = {
3440 (char *) "loc", NULL
3441 };
3442
3443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3445 if (arg1 == NULL) {
3446 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3447 }
3448 {
3449 PyThreadState* __tstate = wxPyBeginAllowThreads();
3450 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3451
3452 wxPyEndAllowThreads(__tstate);
3453 if (PyErr_Occurred()) SWIG_fail;
3454 }
3455 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3456 return resultobj;
3457 fail:
3458 return NULL;
3459 }
3460
3461
3462 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3463 PyObject *resultobj;
3464 wxBitmap *arg1 = 0 ;
3465 wxIcon *result;
3466 PyObject * obj0 = 0 ;
3467 char *kwnames[] = {
3468 (char *) "bmp", NULL
3469 };
3470
3471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3473 if (arg1 == NULL) {
3474 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3475 }
3476 {
3477 PyThreadState* __tstate = wxPyBeginAllowThreads();
3478 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3479
3480 wxPyEndAllowThreads(__tstate);
3481 if (PyErr_Occurred()) SWIG_fail;
3482 }
3483 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3484 return resultobj;
3485 fail:
3486 return NULL;
3487 }
3488
3489
3490 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject *resultobj;
3492 PyObject *arg1 = (PyObject *) 0 ;
3493 wxIcon *result;
3494 PyObject * obj0 = 0 ;
3495 char *kwnames[] = {
3496 (char *) "listOfStrings", NULL
3497 };
3498
3499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3500 arg1 = obj0;
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 result = (wxIcon *)new_wxIcon(arg1);
3504
3505 wxPyEndAllowThreads(__tstate);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3509 return resultobj;
3510 fail:
3511 return NULL;
3512 }
3513
3514
3515 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3516 PyObject *resultobj;
3517 wxIcon *arg1 = (wxIcon *) 0 ;
3518 wxString *arg2 = 0 ;
3519 int arg3 ;
3520 bool result;
3521 bool temp2 = False ;
3522 PyObject * obj0 = 0 ;
3523 PyObject * obj1 = 0 ;
3524 PyObject * obj2 = 0 ;
3525 char *kwnames[] = {
3526 (char *) "self",(char *) "name",(char *) "type", NULL
3527 };
3528
3529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3531 {
3532 arg2 = wxString_in_helper(obj1);
3533 if (arg2 == NULL) SWIG_fail;
3534 temp2 = True;
3535 }
3536 {
3537 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3538 if (PyErr_Occurred()) SWIG_fail;
3539 }
3540 {
3541 PyThreadState* __tstate = wxPyBeginAllowThreads();
3542 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3543
3544 wxPyEndAllowThreads(__tstate);
3545 if (PyErr_Occurred()) SWIG_fail;
3546 }
3547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3548 {
3549 if (temp2)
3550 delete arg2;
3551 }
3552 return resultobj;
3553 fail:
3554 {
3555 if (temp2)
3556 delete arg2;
3557 }
3558 return NULL;
3559 }
3560
3561
3562 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3563 PyObject *resultobj;
3564 wxIcon *arg1 = (wxIcon *) 0 ;
3565 long result;
3566 PyObject * obj0 = 0 ;
3567 char *kwnames[] = {
3568 (char *) "self", NULL
3569 };
3570
3571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3573 {
3574 PyThreadState* __tstate = wxPyBeginAllowThreads();
3575 result = (long)(arg1)->GetHandle();
3576
3577 wxPyEndAllowThreads(__tstate);
3578 if (PyErr_Occurred()) SWIG_fail;
3579 }
3580 resultobj = SWIG_PyObj_FromLong((long)result);
3581 return resultobj;
3582 fail:
3583 return NULL;
3584 }
3585
3586
3587 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3588 PyObject *resultobj;
3589 wxIcon *arg1 = (wxIcon *) 0 ;
3590 long arg2 ;
3591 PyObject * obj0 = 0 ;
3592 PyObject * obj1 = 0 ;
3593 char *kwnames[] = {
3594 (char *) "self",(char *) "handle", NULL
3595 };
3596
3597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3599 {
3600 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3601 if (PyErr_Occurred()) SWIG_fail;
3602 }
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 (arg1)->SetHandle(arg2);
3606
3607 wxPyEndAllowThreads(__tstate);
3608 if (PyErr_Occurred()) SWIG_fail;
3609 }
3610 Py_INCREF(Py_None); resultobj = Py_None;
3611 return resultobj;
3612 fail:
3613 return NULL;
3614 }
3615
3616
3617 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3618 PyObject *resultobj;
3619 wxIcon *arg1 = (wxIcon *) 0 ;
3620 bool result;
3621 PyObject * obj0 = 0 ;
3622 char *kwnames[] = {
3623 (char *) "self", NULL
3624 };
3625
3626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3627 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3628 {
3629 PyThreadState* __tstate = wxPyBeginAllowThreads();
3630 result = (bool)(arg1)->Ok();
3631
3632 wxPyEndAllowThreads(__tstate);
3633 if (PyErr_Occurred()) SWIG_fail;
3634 }
3635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3636 return resultobj;
3637 fail:
3638 return NULL;
3639 }
3640
3641
3642 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3643 PyObject *resultobj;
3644 wxIcon *arg1 = (wxIcon *) 0 ;
3645 int result;
3646 PyObject * obj0 = 0 ;
3647 char *kwnames[] = {
3648 (char *) "self", NULL
3649 };
3650
3651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3653 {
3654 PyThreadState* __tstate = wxPyBeginAllowThreads();
3655 result = (int)(arg1)->GetWidth();
3656
3657 wxPyEndAllowThreads(__tstate);
3658 if (PyErr_Occurred()) SWIG_fail;
3659 }
3660 resultobj = SWIG_PyObj_FromInt((int)result);
3661 return resultobj;
3662 fail:
3663 return NULL;
3664 }
3665
3666
3667 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3668 PyObject *resultobj;
3669 wxIcon *arg1 = (wxIcon *) 0 ;
3670 int result;
3671 PyObject * obj0 = 0 ;
3672 char *kwnames[] = {
3673 (char *) "self", NULL
3674 };
3675
3676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3678 {
3679 PyThreadState* __tstate = wxPyBeginAllowThreads();
3680 result = (int)(arg1)->GetHeight();
3681
3682 wxPyEndAllowThreads(__tstate);
3683 if (PyErr_Occurred()) SWIG_fail;
3684 }
3685 resultobj = SWIG_PyObj_FromInt((int)result);
3686 return resultobj;
3687 fail:
3688 return NULL;
3689 }
3690
3691
3692 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3693 PyObject *resultobj;
3694 wxIcon *arg1 = (wxIcon *) 0 ;
3695 int result;
3696 PyObject * obj0 = 0 ;
3697 char *kwnames[] = {
3698 (char *) "self", NULL
3699 };
3700
3701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3703 {
3704 PyThreadState* __tstate = wxPyBeginAllowThreads();
3705 result = (int)(arg1)->GetDepth();
3706
3707 wxPyEndAllowThreads(__tstate);
3708 if (PyErr_Occurred()) SWIG_fail;
3709 }
3710 resultobj = SWIG_PyObj_FromInt((int)result);
3711 return resultobj;
3712 fail:
3713 return NULL;
3714 }
3715
3716
3717 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj;
3719 wxIcon *arg1 = (wxIcon *) 0 ;
3720 int arg2 ;
3721 PyObject * obj0 = 0 ;
3722 PyObject * obj1 = 0 ;
3723 char *kwnames[] = {
3724 (char *) "self",(char *) "w", NULL
3725 };
3726
3727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3729 {
3730 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 {
3734 PyThreadState* __tstate = wxPyBeginAllowThreads();
3735 (arg1)->SetWidth(arg2);
3736
3737 wxPyEndAllowThreads(__tstate);
3738 if (PyErr_Occurred()) SWIG_fail;
3739 }
3740 Py_INCREF(Py_None); resultobj = Py_None;
3741 return resultobj;
3742 fail:
3743 return NULL;
3744 }
3745
3746
3747 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3748 PyObject *resultobj;
3749 wxIcon *arg1 = (wxIcon *) 0 ;
3750 int arg2 ;
3751 PyObject * obj0 = 0 ;
3752 PyObject * obj1 = 0 ;
3753 char *kwnames[] = {
3754 (char *) "self",(char *) "h", NULL
3755 };
3756
3757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3759 {
3760 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3761 if (PyErr_Occurred()) SWIG_fail;
3762 }
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 (arg1)->SetHeight(arg2);
3766
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 Py_INCREF(Py_None); resultobj = Py_None;
3771 return resultobj;
3772 fail:
3773 return NULL;
3774 }
3775
3776
3777 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj;
3779 wxIcon *arg1 = (wxIcon *) 0 ;
3780 int arg2 ;
3781 PyObject * obj0 = 0 ;
3782 PyObject * obj1 = 0 ;
3783 char *kwnames[] = {
3784 (char *) "self",(char *) "d", NULL
3785 };
3786
3787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3789 {
3790 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 {
3794 PyThreadState* __tstate = wxPyBeginAllowThreads();
3795 (arg1)->SetDepth(arg2);
3796
3797 wxPyEndAllowThreads(__tstate);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 }
3800 Py_INCREF(Py_None); resultobj = Py_None;
3801 return resultobj;
3802 fail:
3803 return NULL;
3804 }
3805
3806
3807 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3808 PyObject *resultobj;
3809 wxIcon *arg1 = (wxIcon *) 0 ;
3810 wxSize *arg2 = 0 ;
3811 wxSize temp2 ;
3812 PyObject * obj0 = 0 ;
3813 PyObject * obj1 = 0 ;
3814 char *kwnames[] = {
3815 (char *) "self",(char *) "size", NULL
3816 };
3817
3818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
3819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3820 {
3821 arg2 = &temp2;
3822 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3823 }
3824 {
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 (arg1)->SetSize((wxSize const &)*arg2);
3827
3828 wxPyEndAllowThreads(__tstate);
3829 if (PyErr_Occurred()) SWIG_fail;
3830 }
3831 Py_INCREF(Py_None); resultobj = Py_None;
3832 return resultobj;
3833 fail:
3834 return NULL;
3835 }
3836
3837
3838 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3839 PyObject *resultobj;
3840 wxIcon *arg1 = (wxIcon *) 0 ;
3841 wxBitmap *arg2 = 0 ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 char *kwnames[] = {
3845 (char *) "self",(char *) "bmp", NULL
3846 };
3847
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3850 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3851 if (arg2 == NULL) {
3852 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3853 }
3854 {
3855 PyThreadState* __tstate = wxPyBeginAllowThreads();
3856 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3857
3858 wxPyEndAllowThreads(__tstate);
3859 if (PyErr_Occurred()) SWIG_fail;
3860 }
3861 Py_INCREF(Py_None); resultobj = Py_None;
3862 return resultobj;
3863 fail:
3864 return NULL;
3865 }
3866
3867
3868 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3869 PyObject *obj;
3870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3871 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3872 Py_INCREF(obj);
3873 return Py_BuildValue((char *)"");
3874 }
3875 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3876 PyObject *resultobj;
3877 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3878 int arg2 = (int) 0 ;
3879 wxIconLocation *result;
3880 bool temp1 = False ;
3881 PyObject * obj0 = 0 ;
3882 PyObject * obj1 = 0 ;
3883 char *kwnames[] = {
3884 (char *) "filename",(char *) "num", NULL
3885 };
3886
3887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3888 if (obj0) {
3889 {
3890 arg1 = wxString_in_helper(obj0);
3891 if (arg1 == NULL) SWIG_fail;
3892 temp1 = True;
3893 }
3894 }
3895 if (obj1) {
3896 {
3897 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3898 if (PyErr_Occurred()) SWIG_fail;
3899 }
3900 }
3901 {
3902 PyThreadState* __tstate = wxPyBeginAllowThreads();
3903 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3904
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3909 {
3910 if (temp1)
3911 delete arg1;
3912 }
3913 return resultobj;
3914 fail:
3915 {
3916 if (temp1)
3917 delete arg1;
3918 }
3919 return NULL;
3920 }
3921
3922
3923 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3924 PyObject *resultobj;
3925 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3926 PyObject * obj0 = 0 ;
3927 char *kwnames[] = {
3928 (char *) "self", NULL
3929 };
3930
3931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3933 {
3934 PyThreadState* __tstate = wxPyBeginAllowThreads();
3935 delete arg1;
3936
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 Py_INCREF(Py_None); resultobj = Py_None;
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3948 PyObject *resultobj;
3949 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3950 bool result;
3951 PyObject * obj0 = 0 ;
3952 char *kwnames[] = {
3953 (char *) "self", NULL
3954 };
3955
3956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3958 {
3959 PyThreadState* __tstate = wxPyBeginAllowThreads();
3960 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3961
3962 wxPyEndAllowThreads(__tstate);
3963 if (PyErr_Occurred()) SWIG_fail;
3964 }
3965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3966 return resultobj;
3967 fail:
3968 return NULL;
3969 }
3970
3971
3972 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3973 PyObject *resultobj;
3974 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3975 wxString *arg2 = 0 ;
3976 bool temp2 = False ;
3977 PyObject * obj0 = 0 ;
3978 PyObject * obj1 = 0 ;
3979 char *kwnames[] = {
3980 (char *) "self",(char *) "filename", NULL
3981 };
3982
3983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3985 {
3986 arg2 = wxString_in_helper(obj1);
3987 if (arg2 == NULL) SWIG_fail;
3988 temp2 = True;
3989 }
3990 {
3991 PyThreadState* __tstate = wxPyBeginAllowThreads();
3992 (arg1)->SetFileName((wxString const &)*arg2);
3993
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 Py_INCREF(Py_None); resultobj = Py_None;
3998 {
3999 if (temp2)
4000 delete arg2;
4001 }
4002 return resultobj;
4003 fail:
4004 {
4005 if (temp2)
4006 delete arg2;
4007 }
4008 return NULL;
4009 }
4010
4011
4012 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4013 PyObject *resultobj;
4014 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4015 wxString *result;
4016 PyObject * obj0 = 0 ;
4017 char *kwnames[] = {
4018 (char *) "self", NULL
4019 };
4020
4021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4022 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4023 {
4024 PyThreadState* __tstate = wxPyBeginAllowThreads();
4025 {
4026 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4027 result = (wxString *) &_result_ref;
4028 }
4029
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 {
4034 #if wxUSE_UNICODE
4035 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4036 #else
4037 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4038 #endif
4039 }
4040 return resultobj;
4041 fail:
4042 return NULL;
4043 }
4044
4045
4046 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4047 PyObject *resultobj;
4048 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4049 int arg2 ;
4050 PyObject * obj0 = 0 ;
4051 PyObject * obj1 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "self",(char *) "num", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4057 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4058 {
4059 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 {
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 wxIconLocation_SetIndex(arg1,arg2);
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 Py_INCREF(Py_None); resultobj = Py_None;
4070 return resultobj;
4071 fail:
4072 return NULL;
4073 }
4074
4075
4076 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4077 PyObject *resultobj;
4078 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4079 int result;
4080 PyObject * obj0 = 0 ;
4081 char *kwnames[] = {
4082 (char *) "self", NULL
4083 };
4084
4085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4086 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (int)wxIconLocation_GetIndex(arg1);
4090
4091 wxPyEndAllowThreads(__tstate);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 resultobj = SWIG_PyObj_FromInt((int)result);
4095 return resultobj;
4096 fail:
4097 return NULL;
4098 }
4099
4100
4101 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4102 PyObject *obj;
4103 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4104 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4105 Py_INCREF(obj);
4106 return Py_BuildValue((char *)"");
4107 }
4108 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4109 PyObject *resultobj;
4110 wxIconBundle *result;
4111 char *kwnames[] = {
4112 NULL
4113 };
4114
4115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4116 {
4117 PyThreadState* __tstate = wxPyBeginAllowThreads();
4118 result = (wxIconBundle *)new wxIconBundle();
4119
4120 wxPyEndAllowThreads(__tstate);
4121 if (PyErr_Occurred()) SWIG_fail;
4122 }
4123 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4124 return resultobj;
4125 fail:
4126 return NULL;
4127 }
4128
4129
4130 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4131 PyObject *resultobj;
4132 wxString *arg1 = 0 ;
4133 long arg2 ;
4134 wxIconBundle *result;
4135 bool temp1 = False ;
4136 PyObject * obj0 = 0 ;
4137 PyObject * obj1 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "file",(char *) "type", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4143 {
4144 arg1 = wxString_in_helper(obj0);
4145 if (arg1 == NULL) SWIG_fail;
4146 temp1 = True;
4147 }
4148 {
4149 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4150 if (PyErr_Occurred()) SWIG_fail;
4151 }
4152 {
4153 PyThreadState* __tstate = wxPyBeginAllowThreads();
4154 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4155
4156 wxPyEndAllowThreads(__tstate);
4157 if (PyErr_Occurred()) SWIG_fail;
4158 }
4159 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4160 {
4161 if (temp1)
4162 delete arg1;
4163 }
4164 return resultobj;
4165 fail:
4166 {
4167 if (temp1)
4168 delete arg1;
4169 }
4170 return NULL;
4171 }
4172
4173
4174 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxIcon *arg1 = 0 ;
4177 wxIconBundle *result;
4178 PyObject * obj0 = 0 ;
4179 char *kwnames[] = {
4180 (char *) "icon", NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4185 if (arg1 == NULL) {
4186 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4187 }
4188 {
4189 PyThreadState* __tstate = wxPyBeginAllowThreads();
4190 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4191
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj;
4204 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4205 PyObject * obj0 = 0 ;
4206 char *kwnames[] = {
4207 (char *) "self", NULL
4208 };
4209
4210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 delete arg1;
4215
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) SWIG_fail;
4218 }
4219 Py_INCREF(Py_None); resultobj = Py_None;
4220 return resultobj;
4221 fail:
4222 return NULL;
4223 }
4224
4225
4226 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4227 PyObject *resultobj;
4228 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4229 wxIcon *arg2 = 0 ;
4230 PyObject * obj0 = 0 ;
4231 PyObject * obj1 = 0 ;
4232 char *kwnames[] = {
4233 (char *) "self",(char *) "icon", NULL
4234 };
4235
4236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4238 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4239 if (arg2 == NULL) {
4240 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4241 }
4242 {
4243 PyThreadState* __tstate = wxPyBeginAllowThreads();
4244 (arg1)->AddIcon((wxIcon const &)*arg2);
4245
4246 wxPyEndAllowThreads(__tstate);
4247 if (PyErr_Occurred()) SWIG_fail;
4248 }
4249 Py_INCREF(Py_None); resultobj = Py_None;
4250 return resultobj;
4251 fail:
4252 return NULL;
4253 }
4254
4255
4256 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4257 PyObject *resultobj;
4258 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4259 wxString *arg2 = 0 ;
4260 long arg3 ;
4261 bool temp2 = False ;
4262 PyObject * obj0 = 0 ;
4263 PyObject * obj1 = 0 ;
4264 PyObject * obj2 = 0 ;
4265 char *kwnames[] = {
4266 (char *) "self",(char *) "file",(char *) "type", NULL
4267 };
4268
4269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4271 {
4272 arg2 = wxString_in_helper(obj1);
4273 if (arg2 == NULL) SWIG_fail;
4274 temp2 = True;
4275 }
4276 {
4277 arg3 = (long) SWIG_PyObj_AsLong(obj2);
4278 if (PyErr_Occurred()) SWIG_fail;
4279 }
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4283
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 Py_INCREF(Py_None); resultobj = Py_None;
4288 {
4289 if (temp2)
4290 delete arg2;
4291 }
4292 return resultobj;
4293 fail:
4294 {
4295 if (temp2)
4296 delete arg2;
4297 }
4298 return NULL;
4299 }
4300
4301
4302 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject *resultobj;
4304 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4305 wxSize *arg2 = 0 ;
4306 wxIcon *result;
4307 wxSize temp2 ;
4308 PyObject * obj0 = 0 ;
4309 PyObject * obj1 = 0 ;
4310 char *kwnames[] = {
4311 (char *) "self",(char *) "size", NULL
4312 };
4313
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4316 {
4317 arg2 = &temp2;
4318 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4319 }
4320 {
4321 PyThreadState* __tstate = wxPyBeginAllowThreads();
4322 {
4323 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4324 result = (wxIcon *) &_result_ref;
4325 }
4326
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4331 return resultobj;
4332 fail:
4333 return NULL;
4334 }
4335
4336
4337 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4338 PyObject *obj;
4339 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4340 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4341 Py_INCREF(obj);
4342 return Py_BuildValue((char *)"");
4343 }
4344 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4345 PyObject *resultobj;
4346 wxString *arg1 = (wxString *) 0 ;
4347 long arg2 ;
4348 int arg3 = (int) 0 ;
4349 int arg4 = (int) 0 ;
4350 wxCursor *result;
4351 bool temp1 = False ;
4352 PyObject * obj0 = 0 ;
4353 PyObject * obj1 = 0 ;
4354 PyObject * obj2 = 0 ;
4355 PyObject * obj3 = 0 ;
4356 char *kwnames[] = {
4357 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4361 {
4362 arg1 = wxString_in_helper(obj0);
4363 if (arg1 == NULL) SWIG_fail;
4364 temp1 = True;
4365 }
4366 {
4367 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4368 if (PyErr_Occurred()) SWIG_fail;
4369 }
4370 if (obj2) {
4371 {
4372 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4373 if (PyErr_Occurred()) SWIG_fail;
4374 }
4375 }
4376 if (obj3) {
4377 {
4378 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4379 if (PyErr_Occurred()) SWIG_fail;
4380 }
4381 }
4382 {
4383 PyThreadState* __tstate = wxPyBeginAllowThreads();
4384 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4385
4386 wxPyEndAllowThreads(__tstate);
4387 if (PyErr_Occurred()) SWIG_fail;
4388 }
4389 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4390 {
4391 if (temp1)
4392 delete arg1;
4393 }
4394 return resultobj;
4395 fail:
4396 {
4397 if (temp1)
4398 delete arg1;
4399 }
4400 return NULL;
4401 }
4402
4403
4404 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4405 PyObject *resultobj;
4406 wxCursor *arg1 = (wxCursor *) 0 ;
4407 PyObject * obj0 = 0 ;
4408 char *kwnames[] = {
4409 (char *) "self", NULL
4410 };
4411
4412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4414 {
4415 PyThreadState* __tstate = wxPyBeginAllowThreads();
4416 delete arg1;
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 Py_INCREF(Py_None); resultobj = Py_None;
4422 return resultobj;
4423 fail:
4424 return NULL;
4425 }
4426
4427
4428 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4429 PyObject *resultobj;
4430 int arg1 ;
4431 wxCursor *result;
4432 PyObject * obj0 = 0 ;
4433 char *kwnames[] = {
4434 (char *) "id", NULL
4435 };
4436
4437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4438 {
4439 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 {
4443 PyThreadState* __tstate = wxPyBeginAllowThreads();
4444 result = (wxCursor *)new wxCursor(arg1);
4445
4446 wxPyEndAllowThreads(__tstate);
4447 if (PyErr_Occurred()) SWIG_fail;
4448 }
4449 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4450 return resultobj;
4451 fail:
4452 return NULL;
4453 }
4454
4455
4456 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4457 PyObject *resultobj;
4458 wxImage *arg1 = 0 ;
4459 wxCursor *result;
4460 PyObject * obj0 = 0 ;
4461 char *kwnames[] = {
4462 (char *) "image", NULL
4463 };
4464
4465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4466 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4467 if (arg1 == NULL) {
4468 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4469 }
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4473
4474 wxPyEndAllowThreads(__tstate);
4475 if (PyErr_Occurred()) SWIG_fail;
4476 }
4477 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4478 return resultobj;
4479 fail:
4480 return NULL;
4481 }
4482
4483
4484 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj;
4486 PyObject *arg1 = (PyObject *) 0 ;
4487 int arg2 ;
4488 int arg3 ;
4489 int arg4 = (int) -1 ;
4490 int arg5 = (int) -1 ;
4491 PyObject *arg6 = (PyObject *) 0 ;
4492 wxCursor *result;
4493 PyObject * obj0 = 0 ;
4494 PyObject * obj1 = 0 ;
4495 PyObject * obj2 = 0 ;
4496 PyObject * obj3 = 0 ;
4497 PyObject * obj4 = 0 ;
4498 PyObject * obj5 = 0 ;
4499 char *kwnames[] = {
4500 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4501 };
4502
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4504 arg1 = obj0;
4505 {
4506 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4507 if (PyErr_Occurred()) SWIG_fail;
4508 }
4509 {
4510 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4511 if (PyErr_Occurred()) SWIG_fail;
4512 }
4513 if (obj3) {
4514 {
4515 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 }
4519 if (obj4) {
4520 {
4521 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4522 if (PyErr_Occurred()) SWIG_fail;
4523 }
4524 }
4525 if (obj5) {
4526 arg6 = obj5;
4527 }
4528 {
4529 PyThreadState* __tstate = wxPyBeginAllowThreads();
4530 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4531
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4536 return resultobj;
4537 fail:
4538 return NULL;
4539 }
4540
4541
4542 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4543 PyObject *resultobj;
4544 wxCursor *arg1 = (wxCursor *) 0 ;
4545 long result;
4546 PyObject * obj0 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "self", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 result = (long)(arg1)->GetHandle();
4556
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 resultobj = SWIG_PyObj_FromLong((long)result);
4561 return resultobj;
4562 fail:
4563 return NULL;
4564 }
4565
4566
4567 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4568 PyObject *resultobj;
4569 wxCursor *arg1 = (wxCursor *) 0 ;
4570 long arg2 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char *kwnames[] = {
4574 (char *) "self",(char *) "handle", NULL
4575 };
4576
4577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4579 {
4580 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4581 if (PyErr_Occurred()) SWIG_fail;
4582 }
4583 {
4584 PyThreadState* __tstate = wxPyBeginAllowThreads();
4585 (arg1)->SetHandle(arg2);
4586
4587 wxPyEndAllowThreads(__tstate);
4588 if (PyErr_Occurred()) SWIG_fail;
4589 }
4590 Py_INCREF(Py_None); resultobj = Py_None;
4591 return resultobj;
4592 fail:
4593 return NULL;
4594 }
4595
4596
4597 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4598 PyObject *resultobj;
4599 wxCursor *arg1 = (wxCursor *) 0 ;
4600 bool result;
4601 PyObject * obj0 = 0 ;
4602 char *kwnames[] = {
4603 (char *) "self", NULL
4604 };
4605
4606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4608 {
4609 PyThreadState* __tstate = wxPyBeginAllowThreads();
4610 result = (bool)(arg1)->Ok();
4611
4612 wxPyEndAllowThreads(__tstate);
4613 if (PyErr_Occurred()) SWIG_fail;
4614 }
4615 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4616 return resultobj;
4617 fail:
4618 return NULL;
4619 }
4620
4621
4622 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4623 PyObject *resultobj;
4624 wxCursor *arg1 = (wxCursor *) 0 ;
4625 int result;
4626 PyObject * obj0 = 0 ;
4627 char *kwnames[] = {
4628 (char *) "self", NULL
4629 };
4630
4631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4633 {
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 result = (int)(arg1)->GetWidth();
4636
4637 wxPyEndAllowThreads(__tstate);
4638 if (PyErr_Occurred()) SWIG_fail;
4639 }
4640 resultobj = SWIG_PyObj_FromInt((int)result);
4641 return resultobj;
4642 fail:
4643 return NULL;
4644 }
4645
4646
4647 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 wxCursor *arg1 = (wxCursor *) 0 ;
4650 int result;
4651 PyObject * obj0 = 0 ;
4652 char *kwnames[] = {
4653 (char *) "self", NULL
4654 };
4655
4656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4658 {
4659 PyThreadState* __tstate = wxPyBeginAllowThreads();
4660 result = (int)(arg1)->GetHeight();
4661
4662 wxPyEndAllowThreads(__tstate);
4663 if (PyErr_Occurred()) SWIG_fail;
4664 }
4665 resultobj = SWIG_PyObj_FromInt((int)result);
4666 return resultobj;
4667 fail:
4668 return NULL;
4669 }
4670
4671
4672 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4673 PyObject *resultobj;
4674 wxCursor *arg1 = (wxCursor *) 0 ;
4675 int result;
4676 PyObject * obj0 = 0 ;
4677 char *kwnames[] = {
4678 (char *) "self", NULL
4679 };
4680
4681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
4682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4683 {
4684 PyThreadState* __tstate = wxPyBeginAllowThreads();
4685 result = (int)(arg1)->GetDepth();
4686
4687 wxPyEndAllowThreads(__tstate);
4688 if (PyErr_Occurred()) SWIG_fail;
4689 }
4690 resultobj = SWIG_PyObj_FromInt((int)result);
4691 return resultobj;
4692 fail:
4693 return NULL;
4694 }
4695
4696
4697 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4698 PyObject *resultobj;
4699 wxCursor *arg1 = (wxCursor *) 0 ;
4700 int arg2 ;
4701 PyObject * obj0 = 0 ;
4702 PyObject * obj1 = 0 ;
4703 char *kwnames[] = {
4704 (char *) "self",(char *) "w", NULL
4705 };
4706
4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4709 {
4710 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4711 if (PyErr_Occurred()) SWIG_fail;
4712 }
4713 {
4714 PyThreadState* __tstate = wxPyBeginAllowThreads();
4715 (arg1)->SetWidth(arg2);
4716
4717 wxPyEndAllowThreads(__tstate);
4718 if (PyErr_Occurred()) SWIG_fail;
4719 }
4720 Py_INCREF(Py_None); resultobj = Py_None;
4721 return resultobj;
4722 fail:
4723 return NULL;
4724 }
4725
4726
4727 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4728 PyObject *resultobj;
4729 wxCursor *arg1 = (wxCursor *) 0 ;
4730 int arg2 ;
4731 PyObject * obj0 = 0 ;
4732 PyObject * obj1 = 0 ;
4733 char *kwnames[] = {
4734 (char *) "self",(char *) "h", NULL
4735 };
4736
4737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4739 {
4740 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4741 if (PyErr_Occurred()) SWIG_fail;
4742 }
4743 {
4744 PyThreadState* __tstate = wxPyBeginAllowThreads();
4745 (arg1)->SetHeight(arg2);
4746
4747 wxPyEndAllowThreads(__tstate);
4748 if (PyErr_Occurred()) SWIG_fail;
4749 }
4750 Py_INCREF(Py_None); resultobj = Py_None;
4751 return resultobj;
4752 fail:
4753 return NULL;
4754 }
4755
4756
4757 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4758 PyObject *resultobj;
4759 wxCursor *arg1 = (wxCursor *) 0 ;
4760 int arg2 ;
4761 PyObject * obj0 = 0 ;
4762 PyObject * obj1 = 0 ;
4763 char *kwnames[] = {
4764 (char *) "self",(char *) "d", NULL
4765 };
4766
4767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4768 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4769 {
4770 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 (arg1)->SetDepth(arg2);
4776
4777 wxPyEndAllowThreads(__tstate);
4778 if (PyErr_Occurred()) SWIG_fail;
4779 }
4780 Py_INCREF(Py_None); resultobj = Py_None;
4781 return resultobj;
4782 fail:
4783 return NULL;
4784 }
4785
4786
4787 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4788 PyObject *resultobj;
4789 wxCursor *arg1 = (wxCursor *) 0 ;
4790 wxSize *arg2 = 0 ;
4791 wxSize temp2 ;
4792 PyObject * obj0 = 0 ;
4793 PyObject * obj1 = 0 ;
4794 char *kwnames[] = {
4795 (char *) "self",(char *) "size", NULL
4796 };
4797
4798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
4799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4800 {
4801 arg2 = &temp2;
4802 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4803 }
4804 {
4805 PyThreadState* __tstate = wxPyBeginAllowThreads();
4806 (arg1)->SetSize((wxSize const &)*arg2);
4807
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 Py_INCREF(Py_None); resultobj = Py_None;
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4819 PyObject *obj;
4820 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4821 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4822 Py_INCREF(obj);
4823 return Py_BuildValue((char *)"");
4824 }
4825 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4826 PyObject *resultobj;
4827 int arg1 = (int) 0 ;
4828 int arg2 = (int) 0 ;
4829 int arg3 = (int) 0 ;
4830 int arg4 = (int) 0 ;
4831 wxRegion *result;
4832 PyObject * obj0 = 0 ;
4833 PyObject * obj1 = 0 ;
4834 PyObject * obj2 = 0 ;
4835 PyObject * obj3 = 0 ;
4836 char *kwnames[] = {
4837 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4838 };
4839
4840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4841 if (obj0) {
4842 {
4843 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 }
4847 if (obj1) {
4848 {
4849 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 }
4853 if (obj2) {
4854 {
4855 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4856 if (PyErr_Occurred()) SWIG_fail;
4857 }
4858 }
4859 if (obj3) {
4860 {
4861 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4862 if (PyErr_Occurred()) SWIG_fail;
4863 }
4864 }
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4868
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj;
4881 wxBitmap *arg1 = 0 ;
4882 wxColour const &arg2_defvalue = wxNullColour ;
4883 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4884 int arg3 = (int) 0 ;
4885 wxRegion *result;
4886 wxColour temp2 ;
4887 PyObject * obj0 = 0 ;
4888 PyObject * obj1 = 0 ;
4889 PyObject * obj2 = 0 ;
4890 char *kwnames[] = {
4891 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4892 };
4893
4894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4896 if (arg1 == NULL) {
4897 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4898 }
4899 if (obj1) {
4900 {
4901 arg2 = &temp2;
4902 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4903 }
4904 }
4905 if (obj2) {
4906 {
4907 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 }
4911 {
4912 PyThreadState* __tstate = wxPyBeginAllowThreads();
4913 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4914
4915 wxPyEndAllowThreads(__tstate);
4916 if (PyErr_Occurred()) SWIG_fail;
4917 }
4918 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4919 return resultobj;
4920 fail:
4921 return NULL;
4922 }
4923
4924
4925 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4926 PyObject *resultobj;
4927 int arg1 ;
4928 wxPoint *arg2 = (wxPoint *) 0 ;
4929 int arg3 = (int) wxWINDING_RULE ;
4930 wxRegion *result;
4931 PyObject * obj0 = 0 ;
4932 PyObject * obj1 = 0 ;
4933 char *kwnames[] = {
4934 (char *) "points",(char *) "fillStyle", NULL
4935 };
4936
4937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4938 {
4939 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4940 if (arg2 == NULL) SWIG_fail;
4941 }
4942 if (obj1) {
4943 {
4944 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4945 if (PyErr_Occurred()) SWIG_fail;
4946 }
4947 }
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4951
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4956 {
4957 if (arg2) delete [] arg2;
4958 }
4959 return resultobj;
4960 fail:
4961 {
4962 if (arg2) delete [] arg2;
4963 }
4964 return NULL;
4965 }
4966
4967
4968 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4969 PyObject *resultobj;
4970 wxRegion *arg1 = (wxRegion *) 0 ;
4971 PyObject * obj0 = 0 ;
4972 char *kwnames[] = {
4973 (char *) "self", NULL
4974 };
4975
4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4978 {
4979 PyThreadState* __tstate = wxPyBeginAllowThreads();
4980 delete arg1;
4981
4982 wxPyEndAllowThreads(__tstate);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 Py_INCREF(Py_None); resultobj = Py_None;
4986 return resultobj;
4987 fail:
4988 return NULL;
4989 }
4990
4991
4992 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4993 PyObject *resultobj;
4994 wxRegion *arg1 = (wxRegion *) 0 ;
4995 PyObject * obj0 = 0 ;
4996 char *kwnames[] = {
4997 (char *) "self", NULL
4998 };
4999
5000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 (arg1)->Clear();
5005
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 }
5009 Py_INCREF(Py_None); resultobj = Py_None;
5010 return resultobj;
5011 fail:
5012 return NULL;
5013 }
5014
5015
5016 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5017 PyObject *resultobj;
5018 wxRegion *arg1 = (wxRegion *) 0 ;
5019 int arg2 ;
5020 int arg3 ;
5021 bool result;
5022 PyObject * obj0 = 0 ;
5023 PyObject * obj1 = 0 ;
5024 PyObject * obj2 = 0 ;
5025 char *kwnames[] = {
5026 (char *) "self",(char *) "x",(char *) "y", NULL
5027 };
5028
5029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5030 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5031 {
5032 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 {
5036 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 {
5040 PyThreadState* __tstate = wxPyBeginAllowThreads();
5041 result = (bool)(arg1)->Offset(arg2,arg3);
5042
5043 wxPyEndAllowThreads(__tstate);
5044 if (PyErr_Occurred()) SWIG_fail;
5045 }
5046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5047 return resultobj;
5048 fail:
5049 return NULL;
5050 }
5051
5052
5053 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5054 PyObject *resultobj;
5055 wxRegion *arg1 = (wxRegion *) 0 ;
5056 int arg2 ;
5057 int arg3 ;
5058 int result;
5059 PyObject * obj0 = 0 ;
5060 PyObject * obj1 = 0 ;
5061 PyObject * obj2 = 0 ;
5062 char *kwnames[] = {
5063 (char *) "self",(char *) "x",(char *) "y", NULL
5064 };
5065
5066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5068 {
5069 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 {
5073 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5074 if (PyErr_Occurred()) SWIG_fail;
5075 }
5076 {
5077 PyThreadState* __tstate = wxPyBeginAllowThreads();
5078 result = (int)(arg1)->Contains(arg2,arg3);
5079
5080 wxPyEndAllowThreads(__tstate);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 }
5083 resultobj = SWIG_PyObj_FromInt((int)result);
5084 return resultobj;
5085 fail:
5086 return NULL;
5087 }
5088
5089
5090 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5091 PyObject *resultobj;
5092 wxRegion *arg1 = (wxRegion *) 0 ;
5093 wxPoint *arg2 = 0 ;
5094 int result;
5095 wxPoint temp2 ;
5096 PyObject * obj0 = 0 ;
5097 PyObject * obj1 = 0 ;
5098 char *kwnames[] = {
5099 (char *) "self",(char *) "pt", NULL
5100 };
5101
5102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5104 {
5105 arg2 = &temp2;
5106 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5107 }
5108 {
5109 PyThreadState* __tstate = wxPyBeginAllowThreads();
5110 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5111
5112 wxPyEndAllowThreads(__tstate);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 }
5115 resultobj = SWIG_PyObj_FromInt((int)result);
5116 return resultobj;
5117 fail:
5118 return NULL;
5119 }
5120
5121
5122 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5123 PyObject *resultobj;
5124 wxRegion *arg1 = (wxRegion *) 0 ;
5125 wxRect *arg2 = 0 ;
5126 int result;
5127 wxRect temp2 ;
5128 PyObject * obj0 = 0 ;
5129 PyObject * obj1 = 0 ;
5130 char *kwnames[] = {
5131 (char *) "self",(char *) "rect", NULL
5132 };
5133
5134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5135 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5136 {
5137 arg2 = &temp2;
5138 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5139 }
5140 {
5141 PyThreadState* __tstate = wxPyBeginAllowThreads();
5142 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5143
5144 wxPyEndAllowThreads(__tstate);
5145 if (PyErr_Occurred()) SWIG_fail;
5146 }
5147 resultobj = SWIG_PyObj_FromInt((int)result);
5148 return resultobj;
5149 fail:
5150 return NULL;
5151 }
5152
5153
5154 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5155 PyObject *resultobj;
5156 wxRegion *arg1 = (wxRegion *) 0 ;
5157 int arg2 ;
5158 int arg3 ;
5159 int arg4 ;
5160 int arg5 ;
5161 int result;
5162 PyObject * obj0 = 0 ;
5163 PyObject * obj1 = 0 ;
5164 PyObject * obj2 = 0 ;
5165 PyObject * obj3 = 0 ;
5166 PyObject * obj4 = 0 ;
5167 char *kwnames[] = {
5168 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5169 };
5170
5171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5173 {
5174 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 {
5178 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 {
5182 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5183 if (PyErr_Occurred()) SWIG_fail;
5184 }
5185 {
5186 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5187 if (PyErr_Occurred()) SWIG_fail;
5188 }
5189 {
5190 PyThreadState* __tstate = wxPyBeginAllowThreads();
5191 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5192
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 resultobj = SWIG_PyObj_FromInt((int)result);
5197 return resultobj;
5198 fail:
5199 return NULL;
5200 }
5201
5202
5203 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5204 PyObject *resultobj;
5205 wxRegion *arg1 = (wxRegion *) 0 ;
5206 wxRect result;
5207 PyObject * obj0 = 0 ;
5208 char *kwnames[] = {
5209 (char *) "self", NULL
5210 };
5211
5212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5214 {
5215 PyThreadState* __tstate = wxPyBeginAllowThreads();
5216 result = (arg1)->GetBox();
5217
5218 wxPyEndAllowThreads(__tstate);
5219 if (PyErr_Occurred()) SWIG_fail;
5220 }
5221 {
5222 wxRect * resultptr;
5223 resultptr = new wxRect((wxRect &) result);
5224 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5225 }
5226 return resultobj;
5227 fail:
5228 return NULL;
5229 }
5230
5231
5232 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5233 PyObject *resultobj;
5234 wxRegion *arg1 = (wxRegion *) 0 ;
5235 int arg2 ;
5236 int arg3 ;
5237 int arg4 ;
5238 int arg5 ;
5239 bool result;
5240 PyObject * obj0 = 0 ;
5241 PyObject * obj1 = 0 ;
5242 PyObject * obj2 = 0 ;
5243 PyObject * obj3 = 0 ;
5244 PyObject * obj4 = 0 ;
5245 char *kwnames[] = {
5246 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5247 };
5248
5249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5251 {
5252 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 {
5256 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5257 if (PyErr_Occurred()) SWIG_fail;
5258 }
5259 {
5260 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5261 if (PyErr_Occurred()) SWIG_fail;
5262 }
5263 {
5264 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 {
5268 PyThreadState* __tstate = wxPyBeginAllowThreads();
5269 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5270
5271 wxPyEndAllowThreads(__tstate);
5272 if (PyErr_Occurred()) SWIG_fail;
5273 }
5274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5275 return resultobj;
5276 fail:
5277 return NULL;
5278 }
5279
5280
5281 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5282 PyObject *resultobj;
5283 wxRegion *arg1 = (wxRegion *) 0 ;
5284 wxRect *arg2 = 0 ;
5285 bool result;
5286 wxRect temp2 ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char *kwnames[] = {
5290 (char *) "self",(char *) "rect", NULL
5291 };
5292
5293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5295 {
5296 arg2 = &temp2;
5297 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5298 }
5299 {
5300 PyThreadState* __tstate = wxPyBeginAllowThreads();
5301 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5302
5303 wxPyEndAllowThreads(__tstate);
5304 if (PyErr_Occurred()) SWIG_fail;
5305 }
5306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5307 return resultobj;
5308 fail:
5309 return NULL;
5310 }
5311
5312
5313 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5314 PyObject *resultobj;
5315 wxRegion *arg1 = (wxRegion *) 0 ;
5316 wxRegion *arg2 = 0 ;
5317 bool result;
5318 PyObject * obj0 = 0 ;
5319 PyObject * obj1 = 0 ;
5320 char *kwnames[] = {
5321 (char *) "self",(char *) "region", NULL
5322 };
5323
5324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5326 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5327 if (arg2 == NULL) {
5328 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5329 }
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5333
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5338 return resultobj;
5339 fail:
5340 return NULL;
5341 }
5342
5343
5344 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj;
5346 wxRegion *arg1 = (wxRegion *) 0 ;
5347 bool result;
5348 PyObject * obj0 = 0 ;
5349 char *kwnames[] = {
5350 (char *) "self", NULL
5351 };
5352
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (bool)(arg1)->IsEmpty();
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5363 return resultobj;
5364 fail:
5365 return NULL;
5366 }
5367
5368
5369 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject *resultobj;
5371 wxRegion *arg1 = (wxRegion *) 0 ;
5372 int arg2 ;
5373 int arg3 ;
5374 int arg4 ;
5375 int arg5 ;
5376 bool result;
5377 PyObject * obj0 = 0 ;
5378 PyObject * obj1 = 0 ;
5379 PyObject * obj2 = 0 ;
5380 PyObject * obj3 = 0 ;
5381 PyObject * obj4 = 0 ;
5382 char *kwnames[] = {
5383 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5384 };
5385
5386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5388 {
5389 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5390 if (PyErr_Occurred()) SWIG_fail;
5391 }
5392 {
5393 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5394 if (PyErr_Occurred()) SWIG_fail;
5395 }
5396 {
5397 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 {
5401 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5407
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5412 return resultobj;
5413 fail:
5414 return NULL;
5415 }
5416
5417
5418 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5419 PyObject *resultobj;
5420 wxRegion *arg1 = (wxRegion *) 0 ;
5421 wxRect *arg2 = 0 ;
5422 bool result;
5423 wxRect temp2 ;
5424 PyObject * obj0 = 0 ;
5425 PyObject * obj1 = 0 ;
5426 char *kwnames[] = {
5427 (char *) "self",(char *) "rect", NULL
5428 };
5429
5430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5432 {
5433 arg2 = &temp2;
5434 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5435 }
5436 {
5437 PyThreadState* __tstate = wxPyBeginAllowThreads();
5438 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5439
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj;
5452 wxRegion *arg1 = (wxRegion *) 0 ;
5453 wxRegion *arg2 = 0 ;
5454 bool result;
5455 PyObject * obj0 = 0 ;
5456 PyObject * obj1 = 0 ;
5457 char *kwnames[] = {
5458 (char *) "self",(char *) "region", NULL
5459 };
5460
5461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5462 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5463 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5464 if (arg2 == NULL) {
5465 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5466 }
5467 {
5468 PyThreadState* __tstate = wxPyBeginAllowThreads();
5469 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5470
5471 wxPyEndAllowThreads(__tstate);
5472 if (PyErr_Occurred()) SWIG_fail;
5473 }
5474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5475 return resultobj;
5476 fail:
5477 return NULL;
5478 }
5479
5480
5481 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5482 PyObject *resultobj;
5483 wxRegion *arg1 = (wxRegion *) 0 ;
5484 int arg2 ;
5485 int arg3 ;
5486 int arg4 ;
5487 int arg5 ;
5488 bool result;
5489 PyObject * obj0 = 0 ;
5490 PyObject * obj1 = 0 ;
5491 PyObject * obj2 = 0 ;
5492 PyObject * obj3 = 0 ;
5493 PyObject * obj4 = 0 ;
5494 char *kwnames[] = {
5495 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5496 };
5497
5498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5500 {
5501 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 {
5505 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5506 if (PyErr_Occurred()) SWIG_fail;
5507 }
5508 {
5509 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5510 if (PyErr_Occurred()) SWIG_fail;
5511 }
5512 {
5513 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5514 if (PyErr_Occurred()) SWIG_fail;
5515 }
5516 {
5517 PyThreadState* __tstate = wxPyBeginAllowThreads();
5518 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5519
5520 wxPyEndAllowThreads(__tstate);
5521 if (PyErr_Occurred()) SWIG_fail;
5522 }
5523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5524 return resultobj;
5525 fail:
5526 return NULL;
5527 }
5528
5529
5530 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5531 PyObject *resultobj;
5532 wxRegion *arg1 = (wxRegion *) 0 ;
5533 wxRect *arg2 = 0 ;
5534 bool result;
5535 wxRect temp2 ;
5536 PyObject * obj0 = 0 ;
5537 PyObject * obj1 = 0 ;
5538 char *kwnames[] = {
5539 (char *) "self",(char *) "rect", NULL
5540 };
5541
5542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5544 {
5545 arg2 = &temp2;
5546 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5547 }
5548 {
5549 PyThreadState* __tstate = wxPyBeginAllowThreads();
5550 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5551
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj;
5564 wxRegion *arg1 = (wxRegion *) 0 ;
5565 wxRegion *arg2 = 0 ;
5566 bool result;
5567 PyObject * obj0 = 0 ;
5568 PyObject * obj1 = 0 ;
5569 char *kwnames[] = {
5570 (char *) "self",(char *) "region", NULL
5571 };
5572
5573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5575 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5576 if (arg2 == NULL) {
5577 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5578 }
5579 {
5580 PyThreadState* __tstate = wxPyBeginAllowThreads();
5581 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5582
5583 wxPyEndAllowThreads(__tstate);
5584 if (PyErr_Occurred()) SWIG_fail;
5585 }
5586 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5587 return resultobj;
5588 fail:
5589 return NULL;
5590 }
5591
5592
5593 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5594 PyObject *resultobj;
5595 wxRegion *arg1 = (wxRegion *) 0 ;
5596 int arg2 ;
5597 int arg3 ;
5598 int arg4 ;
5599 int arg5 ;
5600 bool result;
5601 PyObject * obj0 = 0 ;
5602 PyObject * obj1 = 0 ;
5603 PyObject * obj2 = 0 ;
5604 PyObject * obj3 = 0 ;
5605 PyObject * obj4 = 0 ;
5606 char *kwnames[] = {
5607 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5608 };
5609
5610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5611 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5612 {
5613 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 {
5617 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 {
5621 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 }
5624 {
5625 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5626 if (PyErr_Occurred()) SWIG_fail;
5627 }
5628 {
5629 PyThreadState* __tstate = wxPyBeginAllowThreads();
5630 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5631
5632 wxPyEndAllowThreads(__tstate);
5633 if (PyErr_Occurred()) SWIG_fail;
5634 }
5635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5636 return resultobj;
5637 fail:
5638 return NULL;
5639 }
5640
5641
5642 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5643 PyObject *resultobj;
5644 wxRegion *arg1 = (wxRegion *) 0 ;
5645 wxRect *arg2 = 0 ;
5646 bool result;
5647 wxRect temp2 ;
5648 PyObject * obj0 = 0 ;
5649 PyObject * obj1 = 0 ;
5650 char *kwnames[] = {
5651 (char *) "self",(char *) "rect", NULL
5652 };
5653
5654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5656 {
5657 arg2 = &temp2;
5658 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5659 }
5660 {
5661 PyThreadState* __tstate = wxPyBeginAllowThreads();
5662 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5663
5664 wxPyEndAllowThreads(__tstate);
5665 if (PyErr_Occurred()) SWIG_fail;
5666 }
5667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5668 return resultobj;
5669 fail:
5670 return NULL;
5671 }
5672
5673
5674 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5675 PyObject *resultobj;
5676 wxRegion *arg1 = (wxRegion *) 0 ;
5677 wxRegion *arg2 = 0 ;
5678 bool result;
5679 PyObject * obj0 = 0 ;
5680 PyObject * obj1 = 0 ;
5681 char *kwnames[] = {
5682 (char *) "self",(char *) "region", NULL
5683 };
5684
5685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5687 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5688 if (arg2 == NULL) {
5689 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5690 }
5691 {
5692 PyThreadState* __tstate = wxPyBeginAllowThreads();
5693 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5694
5695 wxPyEndAllowThreads(__tstate);
5696 if (PyErr_Occurred()) SWIG_fail;
5697 }
5698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5699 return resultobj;
5700 fail:
5701 return NULL;
5702 }
5703
5704
5705 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5706 PyObject *resultobj;
5707 wxRegion *arg1 = (wxRegion *) 0 ;
5708 SwigValueWrapper< wxBitmap > result;
5709 PyObject * obj0 = 0 ;
5710 char *kwnames[] = {
5711 (char *) "self", NULL
5712 };
5713
5714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 result = (arg1)->ConvertToBitmap();
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 {
5724 wxBitmap * resultptr;
5725 resultptr = new wxBitmap((wxBitmap &) result);
5726 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5727 }
5728 return resultobj;
5729 fail:
5730 return NULL;
5731 }
5732
5733
5734 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj;
5736 wxRegion *arg1 = (wxRegion *) 0 ;
5737 wxBitmap *arg2 = 0 ;
5738 wxColour const &arg3_defvalue = wxNullColour ;
5739 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5740 int arg4 = (int) 0 ;
5741 bool result;
5742 wxColour temp3 ;
5743 PyObject * obj0 = 0 ;
5744 PyObject * obj1 = 0 ;
5745 PyObject * obj2 = 0 ;
5746 PyObject * obj3 = 0 ;
5747 char *kwnames[] = {
5748 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5749 };
5750
5751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5753 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5754 if (arg2 == NULL) {
5755 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5756 }
5757 if (obj2) {
5758 {
5759 arg3 = &temp3;
5760 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5761 }
5762 }
5763 if (obj3) {
5764 {
5765 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5766 if (PyErr_Occurred()) SWIG_fail;
5767 }
5768 }
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5777 return resultobj;
5778 fail:
5779 return NULL;
5780 }
5781
5782
5783 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5784 PyObject *obj;
5785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5786 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5787 Py_INCREF(obj);
5788 return Py_BuildValue((char *)"");
5789 }
5790 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5791 PyObject *resultobj;
5792 wxRegion *arg1 = 0 ;
5793 wxRegionIterator *result;
5794 PyObject * obj0 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "region", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5801 if (arg1 == NULL) {
5802 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5803 }
5804 {
5805 PyThreadState* __tstate = wxPyBeginAllowThreads();
5806 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5807
5808 wxPyEndAllowThreads(__tstate);
5809 if (PyErr_Occurred()) SWIG_fail;
5810 }
5811 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5812 return resultobj;
5813 fail:
5814 return NULL;
5815 }
5816
5817
5818 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5819 PyObject *resultobj;
5820 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5821 PyObject * obj0 = 0 ;
5822 char *kwnames[] = {
5823 (char *) "self", NULL
5824 };
5825
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5828 {
5829 PyThreadState* __tstate = wxPyBeginAllowThreads();
5830 delete arg1;
5831
5832 wxPyEndAllowThreads(__tstate);
5833 if (PyErr_Occurred()) SWIG_fail;
5834 }
5835 Py_INCREF(Py_None); resultobj = Py_None;
5836 return resultobj;
5837 fail:
5838 return NULL;
5839 }
5840
5841
5842 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5843 PyObject *resultobj;
5844 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5845 int result;
5846 PyObject * obj0 = 0 ;
5847 char *kwnames[] = {
5848 (char *) "self", NULL
5849 };
5850
5851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = (int)(arg1)->GetX();
5856
5857 wxPyEndAllowThreads(__tstate);
5858 if (PyErr_Occurred()) SWIG_fail;
5859 }
5860 resultobj = SWIG_PyObj_FromInt((int)result);
5861 return resultobj;
5862 fail:
5863 return NULL;
5864 }
5865
5866
5867 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5868 PyObject *resultobj;
5869 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5870 int result;
5871 PyObject * obj0 = 0 ;
5872 char *kwnames[] = {
5873 (char *) "self", NULL
5874 };
5875
5876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5878 {
5879 PyThreadState* __tstate = wxPyBeginAllowThreads();
5880 result = (int)(arg1)->GetY();
5881
5882 wxPyEndAllowThreads(__tstate);
5883 if (PyErr_Occurred()) SWIG_fail;
5884 }
5885 resultobj = SWIG_PyObj_FromInt((int)result);
5886 return resultobj;
5887 fail:
5888 return NULL;
5889 }
5890
5891
5892 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5893 PyObject *resultobj;
5894 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5895 int result;
5896 PyObject * obj0 = 0 ;
5897 char *kwnames[] = {
5898 (char *) "self", NULL
5899 };
5900
5901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5903 {
5904 PyThreadState* __tstate = wxPyBeginAllowThreads();
5905 result = (int)(arg1)->GetW();
5906
5907 wxPyEndAllowThreads(__tstate);
5908 if (PyErr_Occurred()) SWIG_fail;
5909 }
5910 resultobj = SWIG_PyObj_FromInt((int)result);
5911 return resultobj;
5912 fail:
5913 return NULL;
5914 }
5915
5916
5917 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5918 PyObject *resultobj;
5919 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5920 int result;
5921 PyObject * obj0 = 0 ;
5922 char *kwnames[] = {
5923 (char *) "self", NULL
5924 };
5925
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5928 {
5929 PyThreadState* __tstate = wxPyBeginAllowThreads();
5930 result = (int)(arg1)->GetWidth();
5931
5932 wxPyEndAllowThreads(__tstate);
5933 if (PyErr_Occurred()) SWIG_fail;
5934 }
5935 resultobj = SWIG_PyObj_FromInt((int)result);
5936 return resultobj;
5937 fail:
5938 return NULL;
5939 }
5940
5941
5942 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5943 PyObject *resultobj;
5944 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5945 int result;
5946 PyObject * obj0 = 0 ;
5947 char *kwnames[] = {
5948 (char *) "self", NULL
5949 };
5950
5951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5952 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 result = (int)(arg1)->GetH();
5956
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 resultobj = SWIG_PyObj_FromInt((int)result);
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5968 PyObject *resultobj;
5969 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5970 int result;
5971 PyObject * obj0 = 0 ;
5972 char *kwnames[] = {
5973 (char *) "self", NULL
5974 };
5975
5976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5978 {
5979 PyThreadState* __tstate = wxPyBeginAllowThreads();
5980 result = (int)(arg1)->GetHeight();
5981
5982 wxPyEndAllowThreads(__tstate);
5983 if (PyErr_Occurred()) SWIG_fail;
5984 }
5985 resultobj = SWIG_PyObj_FromInt((int)result);
5986 return resultobj;
5987 fail:
5988 return NULL;
5989 }
5990
5991
5992 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5993 PyObject *resultobj;
5994 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5995 wxRect result;
5996 PyObject * obj0 = 0 ;
5997 char *kwnames[] = {
5998 (char *) "self", NULL
5999 };
6000
6001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6003 {
6004 PyThreadState* __tstate = wxPyBeginAllowThreads();
6005 result = (arg1)->GetRect();
6006
6007 wxPyEndAllowThreads(__tstate);
6008 if (PyErr_Occurred()) SWIG_fail;
6009 }
6010 {
6011 wxRect * resultptr;
6012 resultptr = new wxRect((wxRect &) result);
6013 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
6014 }
6015 return resultobj;
6016 fail:
6017 return NULL;
6018 }
6019
6020
6021 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6022 PyObject *resultobj;
6023 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6024 bool result;
6025 PyObject * obj0 = 0 ;
6026 char *kwnames[] = {
6027 (char *) "self", NULL
6028 };
6029
6030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6032 {
6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
6034 result = (bool)(arg1)->HaveRects();
6035
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6047 PyObject *resultobj;
6048 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6049 PyObject * obj0 = 0 ;
6050 char *kwnames[] = {
6051 (char *) "self", NULL
6052 };
6053
6054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6056 {
6057 PyThreadState* __tstate = wxPyBeginAllowThreads();
6058 (arg1)->Reset();
6059
6060 wxPyEndAllowThreads(__tstate);
6061 if (PyErr_Occurred()) SWIG_fail;
6062 }
6063 Py_INCREF(Py_None); resultobj = Py_None;
6064 return resultobj;
6065 fail:
6066 return NULL;
6067 }
6068
6069
6070 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj;
6072 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6073 PyObject * obj0 = 0 ;
6074 char *kwnames[] = {
6075 (char *) "self", NULL
6076 };
6077
6078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6080 {
6081 PyThreadState* __tstate = wxPyBeginAllowThreads();
6082 wxRegionIterator_Next(arg1);
6083
6084 wxPyEndAllowThreads(__tstate);
6085 if (PyErr_Occurred()) SWIG_fail;
6086 }
6087 Py_INCREF(Py_None); resultobj = Py_None;
6088 return resultobj;
6089 fail:
6090 return NULL;
6091 }
6092
6093
6094 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6095 PyObject *resultobj;
6096 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6097 bool result;
6098 PyObject * obj0 = 0 ;
6099 char *kwnames[] = {
6100 (char *) "self", NULL
6101 };
6102
6103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6104 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 result = (bool)wxRegionIterator___nonzero__(arg1);
6108
6109 wxPyEndAllowThreads(__tstate);
6110 if (PyErr_Occurred()) SWIG_fail;
6111 }
6112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6113 return resultobj;
6114 fail:
6115 return NULL;
6116 }
6117
6118
6119 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6120 PyObject *obj;
6121 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6122 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6123 Py_INCREF(obj);
6124 return Py_BuildValue((char *)"");
6125 }
6126 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6127 PyObject *resultobj;
6128 wxNativeFontInfo *result;
6129 char *kwnames[] = {
6130 NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6137
6138 wxPyEndAllowThreads(__tstate);
6139 if (PyErr_Occurred()) SWIG_fail;
6140 }
6141 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
6142 return resultobj;
6143 fail:
6144 return NULL;
6145 }
6146
6147
6148 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6149 PyObject *resultobj;
6150 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6151 PyObject * obj0 = 0 ;
6152 char *kwnames[] = {
6153 (char *) "self", NULL
6154 };
6155
6156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6158 {
6159 PyThreadState* __tstate = wxPyBeginAllowThreads();
6160 delete arg1;
6161
6162 wxPyEndAllowThreads(__tstate);
6163 if (PyErr_Occurred()) SWIG_fail;
6164 }
6165 Py_INCREF(Py_None); resultobj = Py_None;
6166 return resultobj;
6167 fail:
6168 return NULL;
6169 }
6170
6171
6172 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject *resultobj;
6174 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6175 PyObject * obj0 = 0 ;
6176 char *kwnames[] = {
6177 (char *) "self", NULL
6178 };
6179
6180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 (arg1)->Init();
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 Py_INCREF(Py_None); resultobj = Py_None;
6190 return resultobj;
6191 fail:
6192 return NULL;
6193 }
6194
6195
6196 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj;
6198 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6199 wxFont *arg2 = 0 ;
6200 PyObject * obj0 = 0 ;
6201 PyObject * obj1 = 0 ;
6202 char *kwnames[] = {
6203 (char *) "self",(char *) "font", NULL
6204 };
6205
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6208 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6209 if (arg2 == NULL) {
6210 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6211 }
6212 {
6213 PyThreadState* __tstate = wxPyBeginAllowThreads();
6214 (arg1)->InitFromFont((wxFont const &)*arg2);
6215
6216 wxPyEndAllowThreads(__tstate);
6217 if (PyErr_Occurred()) SWIG_fail;
6218 }
6219 Py_INCREF(Py_None); resultobj = Py_None;
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6227 PyObject *resultobj;
6228 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6229 int result;
6230 PyObject * obj0 = 0 ;
6231 char *kwnames[] = {
6232 (char *) "self", NULL
6233 };
6234
6235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6237 {
6238 PyThreadState* __tstate = wxPyBeginAllowThreads();
6239 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6240
6241 wxPyEndAllowThreads(__tstate);
6242 if (PyErr_Occurred()) SWIG_fail;
6243 }
6244 resultobj = SWIG_PyObj_FromInt((int)result);
6245 return resultobj;
6246 fail:
6247 return NULL;
6248 }
6249
6250
6251 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6252 PyObject *resultobj;
6253 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6254 int result;
6255 PyObject * obj0 = 0 ;
6256 char *kwnames[] = {
6257 (char *) "self", NULL
6258 };
6259
6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6262 {
6263 PyThreadState* __tstate = wxPyBeginAllowThreads();
6264 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6265
6266 wxPyEndAllowThreads(__tstate);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 resultobj = SWIG_PyObj_FromInt((int)result);
6270 return resultobj;
6271 fail:
6272 return NULL;
6273 }
6274
6275
6276 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6277 PyObject *resultobj;
6278 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6279 int result;
6280 PyObject * obj0 = 0 ;
6281 char *kwnames[] = {
6282 (char *) "self", NULL
6283 };
6284
6285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6287 {
6288 PyThreadState* __tstate = wxPyBeginAllowThreads();
6289 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6290
6291 wxPyEndAllowThreads(__tstate);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 }
6294 resultobj = SWIG_PyObj_FromInt((int)result);
6295 return resultobj;
6296 fail:
6297 return NULL;
6298 }
6299
6300
6301 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6302 PyObject *resultobj;
6303 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6304 bool result;
6305 PyObject * obj0 = 0 ;
6306 char *kwnames[] = {
6307 (char *) "self", NULL
6308 };
6309
6310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6312 {
6313 PyThreadState* __tstate = wxPyBeginAllowThreads();
6314 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6315
6316 wxPyEndAllowThreads(__tstate);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 }
6319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6320 return resultobj;
6321 fail:
6322 return NULL;
6323 }
6324
6325
6326 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6327 PyObject *resultobj;
6328 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6329 wxString result;
6330 PyObject * obj0 = 0 ;
6331 char *kwnames[] = {
6332 (char *) "self", NULL
6333 };
6334
6335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6337 {
6338 PyThreadState* __tstate = wxPyBeginAllowThreads();
6339 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6340
6341 wxPyEndAllowThreads(__tstate);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 }
6344 {
6345 #if wxUSE_UNICODE
6346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6347 #else
6348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6349 #endif
6350 }
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj;
6359 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6360 int result;
6361 PyObject * obj0 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6368 {
6369 PyThreadState* __tstate = wxPyBeginAllowThreads();
6370 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6371
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_PyObj_FromInt((int)result);
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6383 PyObject *resultobj;
6384 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6385 int result;
6386 PyObject * obj0 = 0 ;
6387 char *kwnames[] = {
6388 (char *) "self", NULL
6389 };
6390
6391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6392 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6393 {
6394 PyThreadState* __tstate = wxPyBeginAllowThreads();
6395 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6396
6397 wxPyEndAllowThreads(__tstate);
6398 if (PyErr_Occurred()) SWIG_fail;
6399 }
6400 resultobj = SWIG_PyObj_FromInt((int)result);
6401 return resultobj;
6402 fail:
6403 return NULL;
6404 }
6405
6406
6407 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6408 PyObject *resultobj;
6409 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6410 int arg2 ;
6411 PyObject * obj0 = 0 ;
6412 PyObject * obj1 = 0 ;
6413 char *kwnames[] = {
6414 (char *) "self",(char *) "pointsize", NULL
6415 };
6416
6417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6419 {
6420 arg2 = (int) SWIG_PyObj_AsInt(obj1);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 {
6424 PyThreadState* __tstate = wxPyBeginAllowThreads();
6425 (arg1)->SetPointSize(arg2);
6426
6427 wxPyEndAllowThreads(__tstate);
6428 if (PyErr_Occurred()) SWIG_fail;
6429 }
6430 Py_INCREF(Py_None); resultobj = Py_None;
6431 return resultobj;
6432 fail:
6433 return NULL;
6434 }
6435
6436
6437 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6438 PyObject *resultobj;
6439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6440 int arg2 ;
6441 PyObject * obj0 = 0 ;
6442 PyObject * obj1 = 0 ;
6443 char *kwnames[] = {
6444 (char *) "self",(char *) "style", NULL
6445 };
6446
6447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6449 {
6450 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 {
6454 PyThreadState* __tstate = wxPyBeginAllowThreads();
6455 (arg1)->SetStyle((wxFontStyle )arg2);
6456
6457 wxPyEndAllowThreads(__tstate);
6458 if (PyErr_Occurred()) SWIG_fail;
6459 }
6460 Py_INCREF(Py_None); resultobj = Py_None;
6461 return resultobj;
6462 fail:
6463 return NULL;
6464 }
6465
6466
6467 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6468 PyObject *resultobj;
6469 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6470 int arg2 ;
6471 PyObject * obj0 = 0 ;
6472 PyObject * obj1 = 0 ;
6473 char *kwnames[] = {
6474 (char *) "self",(char *) "weight", NULL
6475 };
6476
6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6479 {
6480 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 {
6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
6485 (arg1)->SetWeight((wxFontWeight )arg2);
6486
6487 wxPyEndAllowThreads(__tstate);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 Py_INCREF(Py_None); resultobj = Py_None;
6491 return resultobj;
6492 fail:
6493 return NULL;
6494 }
6495
6496
6497 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6498 PyObject *resultobj;
6499 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6500 bool arg2 ;
6501 PyObject * obj0 = 0 ;
6502 PyObject * obj1 = 0 ;
6503 char *kwnames[] = {
6504 (char *) "self",(char *) "underlined", NULL
6505 };
6506
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6509 {
6510 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
6511 if (PyErr_Occurred()) SWIG_fail;
6512 }
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 (arg1)->SetUnderlined(arg2);
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 Py_INCREF(Py_None); resultobj = Py_None;
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6530 wxString arg2 ;
6531 PyObject * obj0 = 0 ;
6532 PyObject * obj1 = 0 ;
6533 char *kwnames[] = {
6534 (char *) "self",(char *) "facename", NULL
6535 };
6536
6537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6539 {
6540 wxString* sptr = wxString_in_helper(obj1);
6541 if (sptr == NULL) SWIG_fail;
6542 arg2 = *sptr;
6543 delete sptr;
6544 }
6545 {
6546 PyThreadState* __tstate = wxPyBeginAllowThreads();
6547 (arg1)->SetFaceName(arg2);
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_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6560 PyObject *resultobj;
6561 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6562 int arg2 ;
6563 PyObject * obj0 = 0 ;
6564 PyObject * obj1 = 0 ;
6565 char *kwnames[] = {
6566 (char *) "self",(char *) "family", NULL
6567 };
6568
6569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6571 {
6572 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6573 if (PyErr_Occurred()) SWIG_fail;
6574 }
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 (arg1)->SetFamily((wxFontFamily )arg2);
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 Py_INCREF(Py_None); resultobj = Py_None;
6583 return resultobj;
6584 fail:
6585 return NULL;
6586 }
6587
6588
6589 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj;
6591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6592 int arg2 ;
6593 PyObject * obj0 = 0 ;
6594 PyObject * obj1 = 0 ;
6595 char *kwnames[] = {
6596 (char *) "self",(char *) "encoding", NULL
6597 };
6598
6599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6601 {
6602 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6603 if (PyErr_Occurred()) SWIG_fail;
6604 }
6605 {
6606 PyThreadState* __tstate = wxPyBeginAllowThreads();
6607 (arg1)->SetEncoding((wxFontEncoding )arg2);
6608
6609 wxPyEndAllowThreads(__tstate);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 Py_INCREF(Py_None); resultobj = Py_None;
6613 return resultobj;
6614 fail:
6615 return NULL;
6616 }
6617
6618
6619 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6620 PyObject *resultobj;
6621 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6622 wxString *arg2 = 0 ;
6623 bool result;
6624 bool temp2 = False ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 char *kwnames[] = {
6628 (char *) "self",(char *) "s", NULL
6629 };
6630
6631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6633 {
6634 arg2 = wxString_in_helper(obj1);
6635 if (arg2 == NULL) SWIG_fail;
6636 temp2 = True;
6637 }
6638 {
6639 PyThreadState* __tstate = wxPyBeginAllowThreads();
6640 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6641
6642 wxPyEndAllowThreads(__tstate);
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6646 {
6647 if (temp2)
6648 delete arg2;
6649 }
6650 return resultobj;
6651 fail:
6652 {
6653 if (temp2)
6654 delete arg2;
6655 }
6656 return NULL;
6657 }
6658
6659
6660 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6661 PyObject *resultobj;
6662 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6663 wxString result;
6664 PyObject * obj0 = 0 ;
6665 char *kwnames[] = {
6666 (char *) "self", NULL
6667 };
6668
6669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6671 {
6672 PyThreadState* __tstate = wxPyBeginAllowThreads();
6673 result = ((wxNativeFontInfo const *)arg1)->ToString();
6674
6675 wxPyEndAllowThreads(__tstate);
6676 if (PyErr_Occurred()) SWIG_fail;
6677 }
6678 {
6679 #if wxUSE_UNICODE
6680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6681 #else
6682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6683 #endif
6684 }
6685 return resultobj;
6686 fail:
6687 return NULL;
6688 }
6689
6690
6691 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6692 PyObject *resultobj;
6693 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6694 wxString result;
6695 PyObject * obj0 = 0 ;
6696 char *kwnames[] = {
6697 (char *) "self", NULL
6698 };
6699
6700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6702 {
6703 PyThreadState* __tstate = wxPyBeginAllowThreads();
6704 result = wxNativeFontInfo___str__(arg1);
6705
6706 wxPyEndAllowThreads(__tstate);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 #if wxUSE_UNICODE
6711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6712 #else
6713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6714 #endif
6715 }
6716 return resultobj;
6717 fail:
6718 return NULL;
6719 }
6720
6721
6722 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6723 PyObject *resultobj;
6724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6725 wxString *arg2 = 0 ;
6726 bool result;
6727 bool temp2 = False ;
6728 PyObject * obj0 = 0 ;
6729 PyObject * obj1 = 0 ;
6730 char *kwnames[] = {
6731 (char *) "self",(char *) "s", NULL
6732 };
6733
6734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6736 {
6737 arg2 = wxString_in_helper(obj1);
6738 if (arg2 == NULL) SWIG_fail;
6739 temp2 = True;
6740 }
6741 {
6742 PyThreadState* __tstate = wxPyBeginAllowThreads();
6743 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6744
6745 wxPyEndAllowThreads(__tstate);
6746 if (PyErr_Occurred()) SWIG_fail;
6747 }
6748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6749 {
6750 if (temp2)
6751 delete arg2;
6752 }
6753 return resultobj;
6754 fail:
6755 {
6756 if (temp2)
6757 delete arg2;
6758 }
6759 return NULL;
6760 }
6761
6762
6763 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6764 PyObject *resultobj;
6765 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6766 wxString result;
6767 PyObject * obj0 = 0 ;
6768 char *kwnames[] = {
6769 (char *) "self", NULL
6770 };
6771
6772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6773 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6774 {
6775 PyThreadState* __tstate = wxPyBeginAllowThreads();
6776 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6777
6778 wxPyEndAllowThreads(__tstate);
6779 if (PyErr_Occurred()) SWIG_fail;
6780 }
6781 {
6782 #if wxUSE_UNICODE
6783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6784 #else
6785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6786 #endif
6787 }
6788 return resultobj;
6789 fail:
6790 return NULL;
6791 }
6792
6793
6794 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6795 PyObject *obj;
6796 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6797 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6798 Py_INCREF(obj);
6799 return Py_BuildValue((char *)"");
6800 }
6801 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6802 PyObject *resultobj;
6803 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6804 wxString *arg2 = (wxString *) 0 ;
6805 bool temp2 = False ;
6806 PyObject * obj0 = 0 ;
6807 PyObject * obj1 = 0 ;
6808 char *kwnames[] = {
6809 (char *) "self",(char *) "facename", NULL
6810 };
6811
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6814 {
6815 arg2 = wxString_in_helper(obj1);
6816 if (arg2 == NULL) SWIG_fail;
6817 temp2 = True;
6818 }
6819 if (arg1) (arg1)->facename = *arg2;
6820
6821 Py_INCREF(Py_None); resultobj = Py_None;
6822 {
6823 if (temp2)
6824 delete arg2;
6825 }
6826 return resultobj;
6827 fail:
6828 {
6829 if (temp2)
6830 delete arg2;
6831 }
6832 return NULL;
6833 }
6834
6835
6836 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6837 PyObject *resultobj;
6838 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6839 wxString *result;
6840 PyObject * obj0 = 0 ;
6841 char *kwnames[] = {
6842 (char *) "self", NULL
6843 };
6844
6845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6847 result = (wxString *)& ((arg1)->facename);
6848
6849 {
6850 #if wxUSE_UNICODE
6851 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6852 #else
6853 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6854 #endif
6855 }
6856 return resultobj;
6857 fail:
6858 return NULL;
6859 }
6860
6861
6862 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6863 PyObject *resultobj;
6864 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6865 int arg2 ;
6866 PyObject * obj0 = 0 ;
6867 PyObject * obj1 = 0 ;
6868 char *kwnames[] = {
6869 (char *) "self",(char *) "encoding", NULL
6870 };
6871
6872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6873 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6874 {
6875 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6876 if (PyErr_Occurred()) SWIG_fail;
6877 }
6878 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6879
6880 Py_INCREF(Py_None); resultobj = Py_None;
6881 return resultobj;
6882 fail:
6883 return NULL;
6884 }
6885
6886
6887 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6888 PyObject *resultobj;
6889 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6890 int result;
6891 PyObject * obj0 = 0 ;
6892 char *kwnames[] = {
6893 (char *) "self", NULL
6894 };
6895
6896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6898 result = (int) ((arg1)->encoding);
6899
6900 resultobj = SWIG_PyObj_FromInt((int)result);
6901 return resultobj;
6902 fail:
6903 return NULL;
6904 }
6905
6906
6907 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6908 PyObject *resultobj;
6909 wxNativeEncodingInfo *result;
6910 char *kwnames[] = {
6911 NULL
6912 };
6913
6914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6923 return resultobj;
6924 fail:
6925 return NULL;
6926 }
6927
6928
6929 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6930 PyObject *resultobj;
6931 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6932 PyObject * obj0 = 0 ;
6933 char *kwnames[] = {
6934 (char *) "self", NULL
6935 };
6936
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 delete arg1;
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 Py_INCREF(Py_None); resultobj = Py_None;
6947 return resultobj;
6948 fail:
6949 return NULL;
6950 }
6951
6952
6953 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6954 PyObject *resultobj;
6955 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6956 wxString *arg2 = 0 ;
6957 bool result;
6958 bool temp2 = False ;
6959 PyObject * obj0 = 0 ;
6960 PyObject * obj1 = 0 ;
6961 char *kwnames[] = {
6962 (char *) "self",(char *) "s", NULL
6963 };
6964
6965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6967 {
6968 arg2 = wxString_in_helper(obj1);
6969 if (arg2 == NULL) SWIG_fail;
6970 temp2 = True;
6971 }
6972 {
6973 PyThreadState* __tstate = wxPyBeginAllowThreads();
6974 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6975
6976 wxPyEndAllowThreads(__tstate);
6977 if (PyErr_Occurred()) SWIG_fail;
6978 }
6979 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6980 {
6981 if (temp2)
6982 delete arg2;
6983 }
6984 return resultobj;
6985 fail:
6986 {
6987 if (temp2)
6988 delete arg2;
6989 }
6990 return NULL;
6991 }
6992
6993
6994 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6995 PyObject *resultobj;
6996 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6997 wxString result;
6998 PyObject * obj0 = 0 ;
6999 char *kwnames[] = {
7000 (char *) "self", NULL
7001 };
7002
7003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7005 {
7006 PyThreadState* __tstate = wxPyBeginAllowThreads();
7007 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7008
7009 wxPyEndAllowThreads(__tstate);
7010 if (PyErr_Occurred()) SWIG_fail;
7011 }
7012 {
7013 #if wxUSE_UNICODE
7014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7015 #else
7016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7017 #endif
7018 }
7019 return resultobj;
7020 fail:
7021 return NULL;
7022 }
7023
7024
7025 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7026 PyObject *obj;
7027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7028 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7029 Py_INCREF(obj);
7030 return Py_BuildValue((char *)"");
7031 }
7032 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7033 PyObject *resultobj;
7034 int arg1 ;
7035 wxNativeEncodingInfo *result;
7036 PyObject * obj0 = 0 ;
7037 char *kwnames[] = {
7038 (char *) "encoding", NULL
7039 };
7040
7041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7042 {
7043 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7044 if (PyErr_Occurred()) SWIG_fail;
7045 }
7046 {
7047 PyThreadState* __tstate = wxPyBeginAllowThreads();
7048 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7049
7050 wxPyEndAllowThreads(__tstate);
7051 if (PyErr_Occurred()) SWIG_fail;
7052 }
7053 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
7054 return resultobj;
7055 fail:
7056 return NULL;
7057 }
7058
7059
7060 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7061 PyObject *resultobj;
7062 wxNativeEncodingInfo *arg1 = 0 ;
7063 bool result;
7064 PyObject * obj0 = 0 ;
7065 char *kwnames[] = {
7066 (char *) "info", NULL
7067 };
7068
7069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7071 if (arg1 == NULL) {
7072 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7073 }
7074 {
7075 PyThreadState* __tstate = wxPyBeginAllowThreads();
7076 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7077
7078 wxPyEndAllowThreads(__tstate);
7079 if (PyErr_Occurred()) SWIG_fail;
7080 }
7081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7089 PyObject *resultobj;
7090 wxFontMapper *result;
7091 char *kwnames[] = {
7092 NULL
7093 };
7094
7095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7096 {
7097 PyThreadState* __tstate = wxPyBeginAllowThreads();
7098 result = (wxFontMapper *)new wxFontMapper();
7099
7100 wxPyEndAllowThreads(__tstate);
7101 if (PyErr_Occurred()) SWIG_fail;
7102 }
7103 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
7104 return resultobj;
7105 fail:
7106 return NULL;
7107 }
7108
7109
7110 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7111 PyObject *resultobj;
7112 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "self", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 delete arg1;
7123
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 Py_INCREF(Py_None); resultobj = Py_None;
7128 return resultobj;
7129 fail:
7130 return NULL;
7131 }
7132
7133
7134 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7135 PyObject *resultobj;
7136 wxFontMapper *result;
7137 char *kwnames[] = {
7138 NULL
7139 };
7140
7141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 result = (wxFontMapper *)wxFontMapper::Get();
7145
7146 wxPyEndAllowThreads(__tstate);
7147 if (PyErr_Occurred()) SWIG_fail;
7148 }
7149 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7150 return resultobj;
7151 fail:
7152 return NULL;
7153 }
7154
7155
7156 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7157 PyObject *resultobj;
7158 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7159 wxFontMapper *result;
7160 PyObject * obj0 = 0 ;
7161 char *kwnames[] = {
7162 (char *) "mapper", NULL
7163 };
7164
7165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7166 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7182 PyObject *resultobj;
7183 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7184 wxString *arg2 = 0 ;
7185 bool arg3 = (bool) True ;
7186 int result;
7187 bool temp2 = False ;
7188 PyObject * obj0 = 0 ;
7189 PyObject * obj1 = 0 ;
7190 PyObject * obj2 = 0 ;
7191 char *kwnames[] = {
7192 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7193 };
7194
7195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7197 {
7198 arg2 = wxString_in_helper(obj1);
7199 if (arg2 == NULL) SWIG_fail;
7200 temp2 = True;
7201 }
7202 if (obj2) {
7203 {
7204 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
7205 if (PyErr_Occurred()) SWIG_fail;
7206 }
7207 }
7208 {
7209 PyThreadState* __tstate = wxPyBeginAllowThreads();
7210 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7211
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_PyObj_FromInt((int)result);
7216 {
7217 if (temp2)
7218 delete arg2;
7219 }
7220 return resultobj;
7221 fail:
7222 {
7223 if (temp2)
7224 delete arg2;
7225 }
7226 return NULL;
7227 }
7228
7229
7230 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj;
7232 size_t result;
7233 char *kwnames[] = {
7234 NULL
7235 };
7236
7237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7238 {
7239 PyThreadState* __tstate = wxPyBeginAllowThreads();
7240 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7241
7242 wxPyEndAllowThreads(__tstate);
7243 if (PyErr_Occurred()) SWIG_fail;
7244 }
7245 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
7246 return resultobj;
7247 fail:
7248 return NULL;
7249 }
7250
7251
7252 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7253 PyObject *resultobj;
7254 size_t arg1 ;
7255 int result;
7256 PyObject * obj0 = 0 ;
7257 char *kwnames[] = {
7258 (char *) "n", NULL
7259 };
7260
7261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7262 {
7263 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 {
7267 PyThreadState* __tstate = wxPyBeginAllowThreads();
7268 result = (int)wxFontMapper::GetEncoding(arg1);
7269
7270 wxPyEndAllowThreads(__tstate);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 resultobj = SWIG_PyObj_FromInt((int)result);
7274 return resultobj;
7275 fail:
7276 return NULL;
7277 }
7278
7279
7280 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7281 PyObject *resultobj;
7282 int arg1 ;
7283 wxString result;
7284 PyObject * obj0 = 0 ;
7285 char *kwnames[] = {
7286 (char *) "encoding", NULL
7287 };
7288
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7290 {
7291 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 {
7295 PyThreadState* __tstate = wxPyBeginAllowThreads();
7296 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7297
7298 wxPyEndAllowThreads(__tstate);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 {
7302 #if wxUSE_UNICODE
7303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7304 #else
7305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7306 #endif
7307 }
7308 return resultobj;
7309 fail:
7310 return NULL;
7311 }
7312
7313
7314 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7315 PyObject *resultobj;
7316 int arg1 ;
7317 wxString result;
7318 PyObject * obj0 = 0 ;
7319 char *kwnames[] = {
7320 (char *) "encoding", NULL
7321 };
7322
7323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7324 {
7325 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
7326 if (PyErr_Occurred()) SWIG_fail;
7327 }
7328 {
7329 PyThreadState* __tstate = wxPyBeginAllowThreads();
7330 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7331
7332 wxPyEndAllowThreads(__tstate);
7333 if (PyErr_Occurred()) SWIG_fail;
7334 }
7335 {
7336 #if wxUSE_UNICODE
7337 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7338 #else
7339 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7340 #endif
7341 }
7342 return resultobj;
7343 fail:
7344 return NULL;
7345 }
7346
7347
7348 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7349 PyObject *resultobj;
7350 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7351 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7352 PyObject * obj0 = 0 ;
7353 PyObject * obj1 = 0 ;
7354 char *kwnames[] = {
7355 (char *) "self",(char *) "config", NULL
7356 };
7357
7358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7359 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7360 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 (arg1)->SetConfig(arg2);
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 Py_INCREF(Py_None); resultobj = Py_None;
7369 return resultobj;
7370 fail:
7371 return NULL;
7372 }
7373
7374
7375 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7376 PyObject *resultobj;
7377 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7378 wxString *arg2 = 0 ;
7379 bool temp2 = False ;
7380 PyObject * obj0 = 0 ;
7381 PyObject * obj1 = 0 ;
7382 char *kwnames[] = {
7383 (char *) "self",(char *) "prefix", NULL
7384 };
7385
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7388 {
7389 arg2 = wxString_in_helper(obj1);
7390 if (arg2 == NULL) SWIG_fail;
7391 temp2 = True;
7392 }
7393 {
7394 PyThreadState* __tstate = wxPyBeginAllowThreads();
7395 (arg1)->SetConfigPath((wxString const &)*arg2);
7396
7397 wxPyEndAllowThreads(__tstate);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 Py_INCREF(Py_None); resultobj = Py_None;
7401 {
7402 if (temp2)
7403 delete arg2;
7404 }
7405 return resultobj;
7406 fail:
7407 {
7408 if (temp2)
7409 delete arg2;
7410 }
7411 return NULL;
7412 }
7413
7414
7415 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7416 PyObject *resultobj;
7417 wxString result;
7418 char *kwnames[] = {
7419 NULL
7420 };
7421
7422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7423 {
7424 PyThreadState* __tstate = wxPyBeginAllowThreads();
7425 result = wxFontMapper::GetDefaultConfigPath();
7426
7427 wxPyEndAllowThreads(__tstate);
7428 if (PyErr_Occurred()) SWIG_fail;
7429 }
7430 {
7431 #if wxUSE_UNICODE
7432 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7433 #else
7434 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7435 #endif
7436 }
7437 return resultobj;
7438 fail:
7439 return NULL;
7440 }
7441
7442
7443 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7444 PyObject *resultobj;
7445 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7446 int arg2 ;
7447 wxString const &arg3_defvalue = wxPyEmptyString ;
7448 wxString *arg3 = (wxString *) &arg3_defvalue ;
7449 bool arg4 = (bool) True ;
7450 PyObject *result;
7451 bool temp3 = False ;
7452 PyObject * obj0 = 0 ;
7453 PyObject * obj1 = 0 ;
7454 PyObject * obj2 = 0 ;
7455 PyObject * obj3 = 0 ;
7456 char *kwnames[] = {
7457 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7458 };
7459
7460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7462 {
7463 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7464 if (PyErr_Occurred()) SWIG_fail;
7465 }
7466 if (obj2) {
7467 {
7468 arg3 = wxString_in_helper(obj2);
7469 if (arg3 == NULL) SWIG_fail;
7470 temp3 = True;
7471 }
7472 }
7473 if (obj3) {
7474 {
7475 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 }
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 resultobj = result;
7487 {
7488 if (temp3)
7489 delete arg3;
7490 }
7491 return resultobj;
7492 fail:
7493 {
7494 if (temp3)
7495 delete arg3;
7496 }
7497 return NULL;
7498 }
7499
7500
7501 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject *resultobj;
7503 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7504 int arg2 ;
7505 wxString const &arg3_defvalue = wxPyEmptyString ;
7506 wxString *arg3 = (wxString *) &arg3_defvalue ;
7507 bool result;
7508 bool temp3 = False ;
7509 PyObject * obj0 = 0 ;
7510 PyObject * obj1 = 0 ;
7511 PyObject * obj2 = 0 ;
7512 char *kwnames[] = {
7513 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7514 };
7515
7516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7518 {
7519 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 if (obj2) {
7523 {
7524 arg3 = wxString_in_helper(obj2);
7525 if (arg3 == NULL) SWIG_fail;
7526 temp3 = True;
7527 }
7528 }
7529 {
7530 PyThreadState* __tstate = wxPyBeginAllowThreads();
7531 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7532
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7537 {
7538 if (temp3)
7539 delete arg3;
7540 }
7541 return resultobj;
7542 fail:
7543 {
7544 if (temp3)
7545 delete arg3;
7546 }
7547 return NULL;
7548 }
7549
7550
7551 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7552 PyObject *resultobj;
7553 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7554 wxWindow *arg2 = (wxWindow *) 0 ;
7555 PyObject * obj0 = 0 ;
7556 PyObject * obj1 = 0 ;
7557 char *kwnames[] = {
7558 (char *) "self",(char *) "parent", NULL
7559 };
7560
7561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7563 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 (arg1)->SetDialogParent(arg2);
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 Py_INCREF(Py_None); resultobj = Py_None;
7572 return resultobj;
7573 fail:
7574 return NULL;
7575 }
7576
7577
7578 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7579 PyObject *resultobj;
7580 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7581 wxString *arg2 = 0 ;
7582 bool temp2 = False ;
7583 PyObject * obj0 = 0 ;
7584 PyObject * obj1 = 0 ;
7585 char *kwnames[] = {
7586 (char *) "self",(char *) "title", NULL
7587 };
7588
7589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7591 {
7592 arg2 = wxString_in_helper(obj1);
7593 if (arg2 == NULL) SWIG_fail;
7594 temp2 = True;
7595 }
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 (arg1)->SetDialogTitle((wxString const &)*arg2);
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 Py_INCREF(Py_None); resultobj = Py_None;
7604 {
7605 if (temp2)
7606 delete arg2;
7607 }
7608 return resultobj;
7609 fail:
7610 {
7611 if (temp2)
7612 delete arg2;
7613 }
7614 return NULL;
7615 }
7616
7617
7618 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7619 PyObject *obj;
7620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7621 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7622 Py_INCREF(obj);
7623 return Py_BuildValue((char *)"");
7624 }
7625 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7626 PyObject *resultobj;
7627 int arg1 ;
7628 int arg2 ;
7629 int arg3 ;
7630 int arg4 ;
7631 bool arg5 = (bool) False ;
7632 wxString const &arg6_defvalue = wxPyEmptyString ;
7633 wxString *arg6 = (wxString *) &arg6_defvalue ;
7634 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7635 wxFont *result;
7636 bool temp6 = False ;
7637 PyObject * obj0 = 0 ;
7638 PyObject * obj1 = 0 ;
7639 PyObject * obj2 = 0 ;
7640 PyObject * obj3 = 0 ;
7641 PyObject * obj4 = 0 ;
7642 PyObject * obj5 = 0 ;
7643 PyObject * obj6 = 0 ;
7644 char *kwnames[] = {
7645 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7646 };
7647
7648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7649 {
7650 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 {
7654 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7655 if (PyErr_Occurred()) SWIG_fail;
7656 }
7657 {
7658 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7659 if (PyErr_Occurred()) SWIG_fail;
7660 }
7661 {
7662 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 if (obj4) {
7666 {
7667 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7668 if (PyErr_Occurred()) SWIG_fail;
7669 }
7670 }
7671 if (obj5) {
7672 {
7673 arg6 = wxString_in_helper(obj5);
7674 if (arg6 == NULL) SWIG_fail;
7675 temp6 = True;
7676 }
7677 }
7678 if (obj6) {
7679 {
7680 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 }
7684 {
7685 PyThreadState* __tstate = wxPyBeginAllowThreads();
7686 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7687
7688 wxPyEndAllowThreads(__tstate);
7689 if (PyErr_Occurred()) SWIG_fail;
7690 }
7691 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7692 {
7693 if (temp6)
7694 delete arg6;
7695 }
7696 return resultobj;
7697 fail:
7698 {
7699 if (temp6)
7700 delete arg6;
7701 }
7702 return NULL;
7703 }
7704
7705
7706 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7707 PyObject *resultobj;
7708 wxFont *arg1 = (wxFont *) 0 ;
7709 PyObject * obj0 = 0 ;
7710 char *kwnames[] = {
7711 (char *) "self", NULL
7712 };
7713
7714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7715 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 delete arg1;
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_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7731 PyObject *resultobj;
7732 wxNativeFontInfo *arg1 = 0 ;
7733 wxFont *result;
7734 PyObject * obj0 = 0 ;
7735 char *kwnames[] = {
7736 (char *) "info", NULL
7737 };
7738
7739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7741 if (arg1 == NULL) {
7742 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7743 }
7744 {
7745 PyThreadState* __tstate = wxPyBeginAllowThreads();
7746 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7747
7748 wxPyEndAllowThreads(__tstate);
7749 if (PyErr_Occurred()) SWIG_fail;
7750 }
7751 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7752 return resultobj;
7753 fail:
7754 return NULL;
7755 }
7756
7757
7758 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7759 PyObject *resultobj;
7760 wxString *arg1 = 0 ;
7761 wxFont *result;
7762 bool temp1 = False ;
7763 PyObject * obj0 = 0 ;
7764 char *kwnames[] = {
7765 (char *) "info", NULL
7766 };
7767
7768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7769 {
7770 arg1 = wxString_in_helper(obj0);
7771 if (arg1 == NULL) SWIG_fail;
7772 temp1 = True;
7773 }
7774 {
7775 PyThreadState* __tstate = wxPyBeginAllowThreads();
7776 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7777
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7782 {
7783 if (temp1)
7784 delete arg1;
7785 }
7786 return resultobj;
7787 fail:
7788 {
7789 if (temp1)
7790 delete arg1;
7791 }
7792 return NULL;
7793 }
7794
7795
7796 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7797 PyObject *resultobj;
7798 int arg1 ;
7799 int arg2 ;
7800 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7801 wxString const &arg4_defvalue = wxPyEmptyString ;
7802 wxString *arg4 = (wxString *) &arg4_defvalue ;
7803 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7804 wxFont *result;
7805 bool temp4 = False ;
7806 PyObject * obj0 = 0 ;
7807 PyObject * obj1 = 0 ;
7808 PyObject * obj2 = 0 ;
7809 PyObject * obj3 = 0 ;
7810 PyObject * obj4 = 0 ;
7811 char *kwnames[] = {
7812 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7813 };
7814
7815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7816 {
7817 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 {
7821 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 if (obj2) {
7825 {
7826 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 }
7830 if (obj3) {
7831 {
7832 arg4 = wxString_in_helper(obj3);
7833 if (arg4 == NULL) SWIG_fail;
7834 temp4 = True;
7835 }
7836 }
7837 if (obj4) {
7838 {
7839 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7840 if (PyErr_Occurred()) SWIG_fail;
7841 }
7842 }
7843 {
7844 PyThreadState* __tstate = wxPyBeginAllowThreads();
7845 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7846
7847 wxPyEndAllowThreads(__tstate);
7848 if (PyErr_Occurred()) SWIG_fail;
7849 }
7850 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7851 {
7852 if (temp4)
7853 delete arg4;
7854 }
7855 return resultobj;
7856 fail:
7857 {
7858 if (temp4)
7859 delete arg4;
7860 }
7861 return NULL;
7862 }
7863
7864
7865 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7866 PyObject *resultobj;
7867 wxFont *arg1 = (wxFont *) 0 ;
7868 bool result;
7869 PyObject * obj0 = 0 ;
7870 char *kwnames[] = {
7871 (char *) "self", NULL
7872 };
7873
7874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 result = (bool)((wxFont const *)arg1)->Ok();
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7884 return resultobj;
7885 fail:
7886 return NULL;
7887 }
7888
7889
7890 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7891 PyObject *resultobj;
7892 wxFont *arg1 = (wxFont *) 0 ;
7893 wxFont *arg2 = 0 ;
7894 bool result;
7895 PyObject * obj0 = 0 ;
7896 PyObject * obj1 = 0 ;
7897 char *kwnames[] = {
7898 (char *) "self",(char *) "font", NULL
7899 };
7900
7901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7903 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7904 if (arg2 == NULL) {
7905 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7906 }
7907 {
7908 PyThreadState* __tstate = wxPyBeginAllowThreads();
7909 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7910
7911 wxPyEndAllowThreads(__tstate);
7912 if (PyErr_Occurred()) SWIG_fail;
7913 }
7914 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7915 return resultobj;
7916 fail:
7917 return NULL;
7918 }
7919
7920
7921 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7922 PyObject *resultobj;
7923 wxFont *arg1 = (wxFont *) 0 ;
7924 wxFont *arg2 = 0 ;
7925 bool result;
7926 PyObject * obj0 = 0 ;
7927 PyObject * obj1 = 0 ;
7928 char *kwnames[] = {
7929 (char *) "self",(char *) "font", NULL
7930 };
7931
7932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7934 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7935 if (arg2 == NULL) {
7936 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7937 }
7938 {
7939 PyThreadState* __tstate = wxPyBeginAllowThreads();
7940 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7941
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj;
7954 wxFont *arg1 = (wxFont *) 0 ;
7955 int result;
7956 PyObject * obj0 = 0 ;
7957 char *kwnames[] = {
7958 (char *) "self", NULL
7959 };
7960
7961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7963 {
7964 PyThreadState* __tstate = wxPyBeginAllowThreads();
7965 result = (int)((wxFont const *)arg1)->GetPointSize();
7966
7967 wxPyEndAllowThreads(__tstate);
7968 if (PyErr_Occurred()) SWIG_fail;
7969 }
7970 resultobj = SWIG_PyObj_FromInt((int)result);
7971 return resultobj;
7972 fail:
7973 return NULL;
7974 }
7975
7976
7977 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7978 PyObject *resultobj;
7979 wxFont *arg1 = (wxFont *) 0 ;
7980 int result;
7981 PyObject * obj0 = 0 ;
7982 char *kwnames[] = {
7983 (char *) "self", NULL
7984 };
7985
7986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7988 {
7989 PyThreadState* __tstate = wxPyBeginAllowThreads();
7990 result = (int)((wxFont const *)arg1)->GetFamily();
7991
7992 wxPyEndAllowThreads(__tstate);
7993 if (PyErr_Occurred()) SWIG_fail;
7994 }
7995 resultobj = SWIG_PyObj_FromInt((int)result);
7996 return resultobj;
7997 fail:
7998 return NULL;
7999 }
8000
8001
8002 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj;
8004 wxFont *arg1 = (wxFont *) 0 ;
8005 int result;
8006 PyObject * obj0 = 0 ;
8007 char *kwnames[] = {
8008 (char *) "self", NULL
8009 };
8010
8011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8013 {
8014 PyThreadState* __tstate = wxPyBeginAllowThreads();
8015 result = (int)((wxFont const *)arg1)->GetStyle();
8016
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_PyObj_FromInt((int)result);
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8028 PyObject *resultobj;
8029 wxFont *arg1 = (wxFont *) 0 ;
8030 int result;
8031 PyObject * obj0 = 0 ;
8032 char *kwnames[] = {
8033 (char *) "self", NULL
8034 };
8035
8036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8038 {
8039 PyThreadState* __tstate = wxPyBeginAllowThreads();
8040 result = (int)((wxFont const *)arg1)->GetWeight();
8041
8042 wxPyEndAllowThreads(__tstate);
8043 if (PyErr_Occurred()) SWIG_fail;
8044 }
8045 resultobj = SWIG_PyObj_FromInt((int)result);
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxFont *arg1 = (wxFont *) 0 ;
8055 bool result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8078 PyObject *resultobj;
8079 wxFont *arg1 = (wxFont *) 0 ;
8080 wxString result;
8081 PyObject * obj0 = 0 ;
8082 char *kwnames[] = {
8083 (char *) "self", NULL
8084 };
8085
8086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8088 {
8089 PyThreadState* __tstate = wxPyBeginAllowThreads();
8090 result = ((wxFont const *)arg1)->GetFaceName();
8091
8092 wxPyEndAllowThreads(__tstate);
8093 if (PyErr_Occurred()) SWIG_fail;
8094 }
8095 {
8096 #if wxUSE_UNICODE
8097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8098 #else
8099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8100 #endif
8101 }
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxFont *arg1 = (wxFont *) 0 ;
8111 int result;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 result = (int)((wxFont const *)arg1)->GetEncoding();
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 resultobj = SWIG_PyObj_FromInt((int)result);
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxFont *arg1 = (wxFont *) 0 ;
8136 wxNativeFontInfo *result;
8137 PyObject * obj0 = 0 ;
8138 char *kwnames[] = {
8139 (char *) "self", NULL
8140 };
8141
8142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
8152 return resultobj;
8153 fail:
8154 return NULL;
8155 }
8156
8157
8158 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8159 PyObject *resultobj;
8160 wxFont *arg1 = (wxFont *) 0 ;
8161 bool result;
8162 PyObject * obj0 = 0 ;
8163 char *kwnames[] = {
8164 (char *) "self", NULL
8165 };
8166
8167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8168 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8169 {
8170 PyThreadState* __tstate = wxPyBeginAllowThreads();
8171 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8172
8173 wxPyEndAllowThreads(__tstate);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8177 return resultobj;
8178 fail:
8179 return NULL;
8180 }
8181
8182
8183 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8184 PyObject *resultobj;
8185 wxFont *arg1 = (wxFont *) 0 ;
8186 wxString result;
8187 PyObject * obj0 = 0 ;
8188 char *kwnames[] = {
8189 (char *) "self", NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8193 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8194 {
8195 PyThreadState* __tstate = wxPyBeginAllowThreads();
8196 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8197
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 {
8202 #if wxUSE_UNICODE
8203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8204 #else
8205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8206 #endif
8207 }
8208 return resultobj;
8209 fail:
8210 return NULL;
8211 }
8212
8213
8214 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8215 PyObject *resultobj;
8216 wxFont *arg1 = (wxFont *) 0 ;
8217 wxString result;
8218 PyObject * obj0 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8225 {
8226 PyThreadState* __tstate = wxPyBeginAllowThreads();
8227 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8228
8229 wxPyEndAllowThreads(__tstate);
8230 if (PyErr_Occurred()) SWIG_fail;
8231 }
8232 {
8233 #if wxUSE_UNICODE
8234 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8235 #else
8236 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8237 #endif
8238 }
8239 return resultobj;
8240 fail:
8241 return NULL;
8242 }
8243
8244
8245 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8246 PyObject *resultobj;
8247 wxFont *arg1 = (wxFont *) 0 ;
8248 int arg2 ;
8249 PyObject * obj0 = 0 ;
8250 PyObject * obj1 = 0 ;
8251 char *kwnames[] = {
8252 (char *) "self",(char *) "pointSize", NULL
8253 };
8254
8255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8256 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8257 {
8258 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8259 if (PyErr_Occurred()) SWIG_fail;
8260 }
8261 {
8262 PyThreadState* __tstate = wxPyBeginAllowThreads();
8263 (arg1)->SetPointSize(arg2);
8264
8265 wxPyEndAllowThreads(__tstate);
8266 if (PyErr_Occurred()) SWIG_fail;
8267 }
8268 Py_INCREF(Py_None); resultobj = Py_None;
8269 return resultobj;
8270 fail:
8271 return NULL;
8272 }
8273
8274
8275 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8276 PyObject *resultobj;
8277 wxFont *arg1 = (wxFont *) 0 ;
8278 int arg2 ;
8279 PyObject * obj0 = 0 ;
8280 PyObject * obj1 = 0 ;
8281 char *kwnames[] = {
8282 (char *) "self",(char *) "family", NULL
8283 };
8284
8285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8287 {
8288 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 (arg1)->SetFamily(arg2);
8294
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) SWIG_fail;
8297 }
8298 Py_INCREF(Py_None); resultobj = Py_None;
8299 return resultobj;
8300 fail:
8301 return NULL;
8302 }
8303
8304
8305 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8306 PyObject *resultobj;
8307 wxFont *arg1 = (wxFont *) 0 ;
8308 int arg2 ;
8309 PyObject * obj0 = 0 ;
8310 PyObject * obj1 = 0 ;
8311 char *kwnames[] = {
8312 (char *) "self",(char *) "style", NULL
8313 };
8314
8315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8316 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8317 {
8318 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8319 if (PyErr_Occurred()) SWIG_fail;
8320 }
8321 {
8322 PyThreadState* __tstate = wxPyBeginAllowThreads();
8323 (arg1)->SetStyle(arg2);
8324
8325 wxPyEndAllowThreads(__tstate);
8326 if (PyErr_Occurred()) SWIG_fail;
8327 }
8328 Py_INCREF(Py_None); resultobj = Py_None;
8329 return resultobj;
8330 fail:
8331 return NULL;
8332 }
8333
8334
8335 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8336 PyObject *resultobj;
8337 wxFont *arg1 = (wxFont *) 0 ;
8338 int arg2 ;
8339 PyObject * obj0 = 0 ;
8340 PyObject * obj1 = 0 ;
8341 char *kwnames[] = {
8342 (char *) "self",(char *) "weight", NULL
8343 };
8344
8345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8347 {
8348 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8349 if (PyErr_Occurred()) SWIG_fail;
8350 }
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 (arg1)->SetWeight(arg2);
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 Py_INCREF(Py_None); resultobj = Py_None;
8359 return resultobj;
8360 fail:
8361 return NULL;
8362 }
8363
8364
8365 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj;
8367 wxFont *arg1 = (wxFont *) 0 ;
8368 wxString *arg2 = 0 ;
8369 bool temp2 = False ;
8370 PyObject * obj0 = 0 ;
8371 PyObject * obj1 = 0 ;
8372 char *kwnames[] = {
8373 (char *) "self",(char *) "faceName", NULL
8374 };
8375
8376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8378 {
8379 arg2 = wxString_in_helper(obj1);
8380 if (arg2 == NULL) SWIG_fail;
8381 temp2 = True;
8382 }
8383 {
8384 PyThreadState* __tstate = wxPyBeginAllowThreads();
8385 (arg1)->SetFaceName((wxString const &)*arg2);
8386
8387 wxPyEndAllowThreads(__tstate);
8388 if (PyErr_Occurred()) SWIG_fail;
8389 }
8390 Py_INCREF(Py_None); resultobj = Py_None;
8391 {
8392 if (temp2)
8393 delete arg2;
8394 }
8395 return resultobj;
8396 fail:
8397 {
8398 if (temp2)
8399 delete arg2;
8400 }
8401 return NULL;
8402 }
8403
8404
8405 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8406 PyObject *resultobj;
8407 wxFont *arg1 = (wxFont *) 0 ;
8408 bool arg2 ;
8409 PyObject * obj0 = 0 ;
8410 PyObject * obj1 = 0 ;
8411 char *kwnames[] = {
8412 (char *) "self",(char *) "underlined", NULL
8413 };
8414
8415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8417 {
8418 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 (arg1)->SetUnderlined(arg2);
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 Py_INCREF(Py_None); resultobj = Py_None;
8429 return resultobj;
8430 fail:
8431 return NULL;
8432 }
8433
8434
8435 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8436 PyObject *resultobj;
8437 wxFont *arg1 = (wxFont *) 0 ;
8438 int arg2 ;
8439 PyObject * obj0 = 0 ;
8440 PyObject * obj1 = 0 ;
8441 char *kwnames[] = {
8442 (char *) "self",(char *) "encoding", NULL
8443 };
8444
8445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8447 {
8448 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 {
8452 PyThreadState* __tstate = wxPyBeginAllowThreads();
8453 (arg1)->SetEncoding((wxFontEncoding )arg2);
8454
8455 wxPyEndAllowThreads(__tstate);
8456 if (PyErr_Occurred()) SWIG_fail;
8457 }
8458 Py_INCREF(Py_None); resultobj = Py_None;
8459 return resultobj;
8460 fail:
8461 return NULL;
8462 }
8463
8464
8465 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8466 PyObject *resultobj;
8467 wxFont *arg1 = (wxFont *) 0 ;
8468 wxNativeFontInfo *arg2 = 0 ;
8469 PyObject * obj0 = 0 ;
8470 PyObject * obj1 = 0 ;
8471 char *kwnames[] = {
8472 (char *) "self",(char *) "info", NULL
8473 };
8474
8475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8477 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8478 if (arg2 == NULL) {
8479 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
8480 }
8481 {
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8484
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 Py_INCREF(Py_None); resultobj = Py_None;
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8496 PyObject *resultobj;
8497 wxFont *arg1 = (wxFont *) 0 ;
8498 wxString *arg2 = 0 ;
8499 bool temp2 = False ;
8500 PyObject * obj0 = 0 ;
8501 PyObject * obj1 = 0 ;
8502 char *kwnames[] = {
8503 (char *) "self",(char *) "info", NULL
8504 };
8505
8506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8508 {
8509 arg2 = wxString_in_helper(obj1);
8510 if (arg2 == NULL) SWIG_fail;
8511 temp2 = True;
8512 }
8513 {
8514 PyThreadState* __tstate = wxPyBeginAllowThreads();
8515 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8516
8517 wxPyEndAllowThreads(__tstate);
8518 if (PyErr_Occurred()) SWIG_fail;
8519 }
8520 Py_INCREF(Py_None); resultobj = Py_None;
8521 {
8522 if (temp2)
8523 delete arg2;
8524 }
8525 return resultobj;
8526 fail:
8527 {
8528 if (temp2)
8529 delete arg2;
8530 }
8531 return NULL;
8532 }
8533
8534
8535 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8536 PyObject *resultobj;
8537 wxFont *arg1 = (wxFont *) 0 ;
8538 wxString *arg2 = 0 ;
8539 bool temp2 = False ;
8540 PyObject * obj0 = 0 ;
8541 PyObject * obj1 = 0 ;
8542 char *kwnames[] = {
8543 (char *) "self",(char *) "info", NULL
8544 };
8545
8546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8548 {
8549 arg2 = wxString_in_helper(obj1);
8550 if (arg2 == NULL) SWIG_fail;
8551 temp2 = True;
8552 }
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8556
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 Py_INCREF(Py_None); resultobj = Py_None;
8561 {
8562 if (temp2)
8563 delete arg2;
8564 }
8565 return resultobj;
8566 fail:
8567 {
8568 if (temp2)
8569 delete arg2;
8570 }
8571 return NULL;
8572 }
8573
8574
8575 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8576 PyObject *resultobj;
8577 wxFont *arg1 = (wxFont *) 0 ;
8578 wxString result;
8579 PyObject * obj0 = 0 ;
8580 char *kwnames[] = {
8581 (char *) "self", NULL
8582 };
8583
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8586 {
8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
8588 result = ((wxFont const *)arg1)->GetFamilyString();
8589
8590 wxPyEndAllowThreads(__tstate);
8591 if (PyErr_Occurred()) SWIG_fail;
8592 }
8593 {
8594 #if wxUSE_UNICODE
8595 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8596 #else
8597 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8598 #endif
8599 }
8600 return resultobj;
8601 fail:
8602 return NULL;
8603 }
8604
8605
8606 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8607 PyObject *resultobj;
8608 wxFont *arg1 = (wxFont *) 0 ;
8609 wxString result;
8610 PyObject * obj0 = 0 ;
8611 char *kwnames[] = {
8612 (char *) "self", NULL
8613 };
8614
8615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8616 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8617 {
8618 PyThreadState* __tstate = wxPyBeginAllowThreads();
8619 result = ((wxFont const *)arg1)->GetStyleString();
8620
8621 wxPyEndAllowThreads(__tstate);
8622 if (PyErr_Occurred()) SWIG_fail;
8623 }
8624 {
8625 #if wxUSE_UNICODE
8626 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8627 #else
8628 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8629 #endif
8630 }
8631 return resultobj;
8632 fail:
8633 return NULL;
8634 }
8635
8636
8637 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8638 PyObject *resultobj;
8639 wxFont *arg1 = (wxFont *) 0 ;
8640 wxString result;
8641 PyObject * obj0 = 0 ;
8642 char *kwnames[] = {
8643 (char *) "self", NULL
8644 };
8645
8646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8648 {
8649 PyThreadState* __tstate = wxPyBeginAllowThreads();
8650 result = ((wxFont const *)arg1)->GetWeightString();
8651
8652 wxPyEndAllowThreads(__tstate);
8653 if (PyErr_Occurred()) SWIG_fail;
8654 }
8655 {
8656 #if wxUSE_UNICODE
8657 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8658 #else
8659 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8660 #endif
8661 }
8662 return resultobj;
8663 fail:
8664 return NULL;
8665 }
8666
8667
8668 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8669 PyObject *resultobj;
8670 wxFont *arg1 = (wxFont *) 0 ;
8671 bool arg2 = (bool) True ;
8672 PyObject * obj0 = 0 ;
8673 PyObject * obj1 = 0 ;
8674 char *kwnames[] = {
8675 (char *) "self",(char *) "no", NULL
8676 };
8677
8678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8680 if (obj1) {
8681 {
8682 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 }
8686 {
8687 PyThreadState* __tstate = wxPyBeginAllowThreads();
8688 (arg1)->SetNoAntiAliasing(arg2);
8689
8690 wxPyEndAllowThreads(__tstate);
8691 if (PyErr_Occurred()) SWIG_fail;
8692 }
8693 Py_INCREF(Py_None); resultobj = Py_None;
8694 return resultobj;
8695 fail:
8696 return NULL;
8697 }
8698
8699
8700 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8701 PyObject *resultobj;
8702 wxFont *arg1 = (wxFont *) 0 ;
8703 bool result;
8704 PyObject * obj0 = 0 ;
8705 char *kwnames[] = {
8706 (char *) "self", NULL
8707 };
8708
8709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8711 {
8712 PyThreadState* __tstate = wxPyBeginAllowThreads();
8713 result = (bool)(arg1)->GetNoAntiAliasing();
8714
8715 wxPyEndAllowThreads(__tstate);
8716 if (PyErr_Occurred()) SWIG_fail;
8717 }
8718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8719 return resultobj;
8720 fail:
8721 return NULL;
8722 }
8723
8724
8725 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj;
8727 int result;
8728 char *kwnames[] = {
8729 NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8733 {
8734 PyThreadState* __tstate = wxPyBeginAllowThreads();
8735 result = (int)wxFont::GetDefaultEncoding();
8736
8737 wxPyEndAllowThreads(__tstate);
8738 if (PyErr_Occurred()) SWIG_fail;
8739 }
8740 resultobj = SWIG_PyObj_FromInt((int)result);
8741 return resultobj;
8742 fail:
8743 return NULL;
8744 }
8745
8746
8747 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8748 PyObject *resultobj;
8749 int arg1 ;
8750 PyObject * obj0 = 0 ;
8751 char *kwnames[] = {
8752 (char *) "encoding", NULL
8753 };
8754
8755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8756 {
8757 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8758 if (PyErr_Occurred()) SWIG_fail;
8759 }
8760 {
8761 PyThreadState* __tstate = wxPyBeginAllowThreads();
8762 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8763
8764 wxPyEndAllowThreads(__tstate);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 }
8767 Py_INCREF(Py_None); resultobj = Py_None;
8768 return resultobj;
8769 fail:
8770 return NULL;
8771 }
8772
8773
8774 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8775 PyObject *obj;
8776 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8777 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8778 Py_INCREF(obj);
8779 return Py_BuildValue((char *)"");
8780 }
8781 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8782 PyObject *resultobj;
8783 wxPyFontEnumerator *result;
8784 char *kwnames[] = {
8785 NULL
8786 };
8787
8788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8789 {
8790 PyThreadState* __tstate = wxPyBeginAllowThreads();
8791 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8792
8793 wxPyEndAllowThreads(__tstate);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 }
8796 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8797 return resultobj;
8798 fail:
8799 return NULL;
8800 }
8801
8802
8803 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8804 PyObject *resultobj;
8805 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8806 PyObject * obj0 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 delete arg1;
8816
8817 wxPyEndAllowThreads(__tstate);
8818 if (PyErr_Occurred()) SWIG_fail;
8819 }
8820 Py_INCREF(Py_None); resultobj = Py_None;
8821 return resultobj;
8822 fail:
8823 return NULL;
8824 }
8825
8826
8827 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8828 PyObject *resultobj;
8829 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8830 PyObject *arg2 = (PyObject *) 0 ;
8831 PyObject *arg3 = (PyObject *) 0 ;
8832 bool arg4 ;
8833 PyObject * obj0 = 0 ;
8834 PyObject * obj1 = 0 ;
8835 PyObject * obj2 = 0 ;
8836 PyObject * obj3 = 0 ;
8837 char *kwnames[] = {
8838 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8839 };
8840
8841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8843 arg2 = obj1;
8844 arg3 = obj2;
8845 {
8846 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 {
8850 PyThreadState* __tstate = wxPyBeginAllowThreads();
8851 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8852
8853 wxPyEndAllowThreads(__tstate);
8854 if (PyErr_Occurred()) SWIG_fail;
8855 }
8856 Py_INCREF(Py_None); resultobj = Py_None;
8857 return resultobj;
8858 fail:
8859 return NULL;
8860 }
8861
8862
8863 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8864 PyObject *resultobj;
8865 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8866 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8867 bool arg3 = (bool) False ;
8868 bool result;
8869 PyObject * obj0 = 0 ;
8870 PyObject * obj1 = 0 ;
8871 PyObject * obj2 = 0 ;
8872 char *kwnames[] = {
8873 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8874 };
8875
8876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8878 if (obj1) {
8879 {
8880 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8881 if (PyErr_Occurred()) SWIG_fail;
8882 }
8883 }
8884 if (obj2) {
8885 {
8886 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8887 if (PyErr_Occurred()) SWIG_fail;
8888 }
8889 }
8890 {
8891 PyThreadState* __tstate = wxPyBeginAllowThreads();
8892 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8893
8894 wxPyEndAllowThreads(__tstate);
8895 if (PyErr_Occurred()) SWIG_fail;
8896 }
8897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8898 return resultobj;
8899 fail:
8900 return NULL;
8901 }
8902
8903
8904 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj;
8906 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8907 wxString const &arg2_defvalue = wxPyEmptyString ;
8908 wxString *arg2 = (wxString *) &arg2_defvalue ;
8909 bool result;
8910 bool temp2 = False ;
8911 PyObject * obj0 = 0 ;
8912 PyObject * obj1 = 0 ;
8913 char *kwnames[] = {
8914 (char *) "self",(char *) "facename", NULL
8915 };
8916
8917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8918 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8919 if (obj1) {
8920 {
8921 arg2 = wxString_in_helper(obj1);
8922 if (arg2 == NULL) SWIG_fail;
8923 temp2 = True;
8924 }
8925 }
8926 {
8927 PyThreadState* __tstate = wxPyBeginAllowThreads();
8928 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8929
8930 wxPyEndAllowThreads(__tstate);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 }
8933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8934 {
8935 if (temp2)
8936 delete arg2;
8937 }
8938 return resultobj;
8939 fail:
8940 {
8941 if (temp2)
8942 delete arg2;
8943 }
8944 return NULL;
8945 }
8946
8947
8948 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8949 PyObject *resultobj;
8950 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8951 PyObject *result;
8952 PyObject * obj0 = 0 ;
8953 char *kwnames[] = {
8954 (char *) "self", NULL
8955 };
8956
8957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8959 {
8960 PyThreadState* __tstate = wxPyBeginAllowThreads();
8961 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8962
8963 wxPyEndAllowThreads(__tstate);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 }
8966 resultobj = result;
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8974 PyObject *resultobj;
8975 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8976 PyObject *result;
8977 PyObject * obj0 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8984 {
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8987
8988 wxPyEndAllowThreads(__tstate);
8989 if (PyErr_Occurred()) SWIG_fail;
8990 }
8991 resultobj = result;
8992 return resultobj;
8993 fail:
8994 return NULL;
8995 }
8996
8997
8998 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8999 PyObject *obj;
9000 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9001 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9002 Py_INCREF(obj);
9003 return Py_BuildValue((char *)"");
9004 }
9005 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9006 PyObject *resultobj;
9007 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9008 int arg2 ;
9009 PyObject * obj0 = 0 ;
9010 PyObject * obj1 = 0 ;
9011 char *kwnames[] = {
9012 (char *) "self",(char *) "Language", NULL
9013 };
9014
9015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9017 {
9018 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9019 if (PyErr_Occurred()) SWIG_fail;
9020 }
9021 if (arg1) (arg1)->Language = arg2;
9022
9023 Py_INCREF(Py_None); resultobj = Py_None;
9024 return resultobj;
9025 fail:
9026 return NULL;
9027 }
9028
9029
9030 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9031 PyObject *resultobj;
9032 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9033 int result;
9034 PyObject * obj0 = 0 ;
9035 char *kwnames[] = {
9036 (char *) "self", NULL
9037 };
9038
9039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9041 result = (int) ((arg1)->Language);
9042
9043 resultobj = SWIG_PyObj_FromInt((int)result);
9044 return resultobj;
9045 fail:
9046 return NULL;
9047 }
9048
9049
9050 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9051 PyObject *resultobj;
9052 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9053 wxString *arg2 = (wxString *) 0 ;
9054 bool temp2 = False ;
9055 PyObject * obj0 = 0 ;
9056 PyObject * obj1 = 0 ;
9057 char *kwnames[] = {
9058 (char *) "self",(char *) "CanonicalName", NULL
9059 };
9060
9061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9062 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9063 {
9064 arg2 = wxString_in_helper(obj1);
9065 if (arg2 == NULL) SWIG_fail;
9066 temp2 = True;
9067 }
9068 if (arg1) (arg1)->CanonicalName = *arg2;
9069
9070 Py_INCREF(Py_None); resultobj = Py_None;
9071 {
9072 if (temp2)
9073 delete arg2;
9074 }
9075 return resultobj;
9076 fail:
9077 {
9078 if (temp2)
9079 delete arg2;
9080 }
9081 return NULL;
9082 }
9083
9084
9085 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj;
9087 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9088 wxString *result;
9089 PyObject * obj0 = 0 ;
9090 char *kwnames[] = {
9091 (char *) "self", NULL
9092 };
9093
9094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9095 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9096 result = (wxString *)& ((arg1)->CanonicalName);
9097
9098 {
9099 #if wxUSE_UNICODE
9100 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9101 #else
9102 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9103 #endif
9104 }
9105 return resultobj;
9106 fail:
9107 return NULL;
9108 }
9109
9110
9111 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj;
9113 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9114 wxString *arg2 = (wxString *) 0 ;
9115 bool temp2 = False ;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 char *kwnames[] = {
9119 (char *) "self",(char *) "Description", NULL
9120 };
9121
9122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9124 {
9125 arg2 = wxString_in_helper(obj1);
9126 if (arg2 == NULL) SWIG_fail;
9127 temp2 = True;
9128 }
9129 if (arg1) (arg1)->Description = *arg2;
9130
9131 Py_INCREF(Py_None); resultobj = Py_None;
9132 {
9133 if (temp2)
9134 delete arg2;
9135 }
9136 return resultobj;
9137 fail:
9138 {
9139 if (temp2)
9140 delete arg2;
9141 }
9142 return NULL;
9143 }
9144
9145
9146 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj;
9148 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9149 wxString *result;
9150 PyObject * obj0 = 0 ;
9151 char *kwnames[] = {
9152 (char *) "self", NULL
9153 };
9154
9155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9157 result = (wxString *)& ((arg1)->Description);
9158
9159 {
9160 #if wxUSE_UNICODE
9161 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9162 #else
9163 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9164 #endif
9165 }
9166 return resultobj;
9167 fail:
9168 return NULL;
9169 }
9170
9171
9172 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9173 PyObject *obj;
9174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9175 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9176 Py_INCREF(obj);
9177 return Py_BuildValue((char *)"");
9178 }
9179 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject *resultobj;
9181 int arg1 = (int) wxLANGUAGE_DEFAULT ;
9182 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9183 wxLocale *result;
9184 PyObject * obj0 = 0 ;
9185 PyObject * obj1 = 0 ;
9186 char *kwnames[] = {
9187 (char *) "language",(char *) "flags", NULL
9188 };
9189
9190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9191 if (obj0) {
9192 {
9193 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9194 if (PyErr_Occurred()) SWIG_fail;
9195 }
9196 }
9197 if (obj1) {
9198 {
9199 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 }
9203 {
9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
9205 result = (wxLocale *)new wxLocale(arg1,arg2);
9206
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
9211 return resultobj;
9212 fail:
9213 return NULL;
9214 }
9215
9216
9217 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj;
9219 wxLocale *arg1 = (wxLocale *) 0 ;
9220 PyObject * obj0 = 0 ;
9221 char *kwnames[] = {
9222 (char *) "self", NULL
9223 };
9224
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 delete arg1;
9230
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 Py_INCREF(Py_None); resultobj = Py_None;
9235 return resultobj;
9236 fail:
9237 return NULL;
9238 }
9239
9240
9241 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9242 PyObject *resultobj;
9243 wxLocale *arg1 = (wxLocale *) 0 ;
9244 wxString *arg2 = 0 ;
9245 wxString const &arg3_defvalue = wxPyEmptyString ;
9246 wxString *arg3 = (wxString *) &arg3_defvalue ;
9247 wxString const &arg4_defvalue = wxPyEmptyString ;
9248 wxString *arg4 = (wxString *) &arg4_defvalue ;
9249 bool arg5 = (bool) True ;
9250 bool arg6 = (bool) False ;
9251 bool result;
9252 bool temp2 = False ;
9253 bool temp3 = False ;
9254 bool temp4 = False ;
9255 PyObject * obj0 = 0 ;
9256 PyObject * obj1 = 0 ;
9257 PyObject * obj2 = 0 ;
9258 PyObject * obj3 = 0 ;
9259 PyObject * obj4 = 0 ;
9260 PyObject * obj5 = 0 ;
9261 char *kwnames[] = {
9262 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9263 };
9264
9265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9266 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9267 {
9268 arg2 = wxString_in_helper(obj1);
9269 if (arg2 == NULL) SWIG_fail;
9270 temp2 = True;
9271 }
9272 if (obj2) {
9273 {
9274 arg3 = wxString_in_helper(obj2);
9275 if (arg3 == NULL) SWIG_fail;
9276 temp3 = True;
9277 }
9278 }
9279 if (obj3) {
9280 {
9281 arg4 = wxString_in_helper(obj3);
9282 if (arg4 == NULL) SWIG_fail;
9283 temp4 = True;
9284 }
9285 }
9286 if (obj4) {
9287 {
9288 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
9289 if (PyErr_Occurred()) SWIG_fail;
9290 }
9291 }
9292 if (obj5) {
9293 {
9294 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
9295 if (PyErr_Occurred()) SWIG_fail;
9296 }
9297 }
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9306 {
9307 if (temp2)
9308 delete arg2;
9309 }
9310 {
9311 if (temp3)
9312 delete arg3;
9313 }
9314 {
9315 if (temp4)
9316 delete arg4;
9317 }
9318 return resultobj;
9319 fail:
9320 {
9321 if (temp2)
9322 delete arg2;
9323 }
9324 {
9325 if (temp3)
9326 delete arg3;
9327 }
9328 {
9329 if (temp4)
9330 delete arg4;
9331 }
9332 return NULL;
9333 }
9334
9335
9336 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9337 PyObject *resultobj;
9338 wxLocale *arg1 = (wxLocale *) 0 ;
9339 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9340 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9341 bool result;
9342 PyObject * obj0 = 0 ;
9343 PyObject * obj1 = 0 ;
9344 PyObject * obj2 = 0 ;
9345 char *kwnames[] = {
9346 (char *) "self",(char *) "language",(char *) "flags", NULL
9347 };
9348
9349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9351 if (obj1) {
9352 {
9353 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 }
9357 if (obj2) {
9358 {
9359 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9360 if (PyErr_Occurred()) SWIG_fail;
9361 }
9362 }
9363 {
9364 PyThreadState* __tstate = wxPyBeginAllowThreads();
9365 result = (bool)(arg1)->Init(arg2,arg3);
9366
9367 wxPyEndAllowThreads(__tstate);
9368 if (PyErr_Occurred()) SWIG_fail;
9369 }
9370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9371 return resultobj;
9372 fail:
9373 return NULL;
9374 }
9375
9376
9377 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9378 PyObject *resultobj;
9379 int result;
9380 char *kwnames[] = {
9381 NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 result = (int)wxLocale::GetSystemLanguage();
9388
9389 wxPyEndAllowThreads(__tstate);
9390 if (PyErr_Occurred()) SWIG_fail;
9391 }
9392 resultobj = SWIG_PyObj_FromInt((int)result);
9393 return resultobj;
9394 fail:
9395 return NULL;
9396 }
9397
9398
9399 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9400 PyObject *resultobj;
9401 int result;
9402 char *kwnames[] = {
9403 NULL
9404 };
9405
9406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9407 {
9408 PyThreadState* __tstate = wxPyBeginAllowThreads();
9409 result = (int)wxLocale::GetSystemEncoding();
9410
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 }
9414 resultobj = SWIG_PyObj_FromInt((int)result);
9415 return resultobj;
9416 fail:
9417 return NULL;
9418 }
9419
9420
9421 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9422 PyObject *resultobj;
9423 wxString result;
9424 char *kwnames[] = {
9425 NULL
9426 };
9427
9428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = wxLocale::GetSystemEncodingName();
9432
9433 wxPyEndAllowThreads(__tstate);
9434 if (PyErr_Occurred()) SWIG_fail;
9435 }
9436 {
9437 #if wxUSE_UNICODE
9438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9439 #else
9440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9441 #endif
9442 }
9443 return resultobj;
9444 fail:
9445 return NULL;
9446 }
9447
9448
9449 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9450 PyObject *resultobj;
9451 wxLocale *arg1 = (wxLocale *) 0 ;
9452 bool result;
9453 PyObject * obj0 = 0 ;
9454 char *kwnames[] = {
9455 (char *) "self", NULL
9456 };
9457
9458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9459 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9460 {
9461 PyThreadState* __tstate = wxPyBeginAllowThreads();
9462 result = (bool)((wxLocale const *)arg1)->IsOk();
9463
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9468 return resultobj;
9469 fail:
9470 return NULL;
9471 }
9472
9473
9474 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9475 PyObject *resultobj;
9476 wxLocale *arg1 = (wxLocale *) 0 ;
9477 wxString result;
9478 PyObject * obj0 = 0 ;
9479 char *kwnames[] = {
9480 (char *) "self", NULL
9481 };
9482
9483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9485 {
9486 PyThreadState* __tstate = wxPyBeginAllowThreads();
9487 result = ((wxLocale const *)arg1)->GetLocale();
9488
9489 wxPyEndAllowThreads(__tstate);
9490 if (PyErr_Occurred()) SWIG_fail;
9491 }
9492 {
9493 #if wxUSE_UNICODE
9494 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9495 #else
9496 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9497 #endif
9498 }
9499 return resultobj;
9500 fail:
9501 return NULL;
9502 }
9503
9504
9505 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9506 PyObject *resultobj;
9507 wxLocale *arg1 = (wxLocale *) 0 ;
9508 int result;
9509 PyObject * obj0 = 0 ;
9510 char *kwnames[] = {
9511 (char *) "self", NULL
9512 };
9513
9514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9516 {
9517 PyThreadState* __tstate = wxPyBeginAllowThreads();
9518 result = (int)((wxLocale const *)arg1)->GetLanguage();
9519
9520 wxPyEndAllowThreads(__tstate);
9521 if (PyErr_Occurred()) SWIG_fail;
9522 }
9523 resultobj = SWIG_PyObj_FromInt((int)result);
9524 return resultobj;
9525 fail:
9526 return NULL;
9527 }
9528
9529
9530 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9531 PyObject *resultobj;
9532 wxLocale *arg1 = (wxLocale *) 0 ;
9533 wxString result;
9534 PyObject * obj0 = 0 ;
9535 char *kwnames[] = {
9536 (char *) "self", NULL
9537 };
9538
9539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9541 {
9542 PyThreadState* __tstate = wxPyBeginAllowThreads();
9543 result = ((wxLocale const *)arg1)->GetSysName();
9544
9545 wxPyEndAllowThreads(__tstate);
9546 if (PyErr_Occurred()) SWIG_fail;
9547 }
9548 {
9549 #if wxUSE_UNICODE
9550 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9551 #else
9552 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9553 #endif
9554 }
9555 return resultobj;
9556 fail:
9557 return NULL;
9558 }
9559
9560
9561 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9562 PyObject *resultobj;
9563 wxLocale *arg1 = (wxLocale *) 0 ;
9564 wxString result;
9565 PyObject * obj0 = 0 ;
9566 char *kwnames[] = {
9567 (char *) "self", NULL
9568 };
9569
9570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9571 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9572 {
9573 PyThreadState* __tstate = wxPyBeginAllowThreads();
9574 result = ((wxLocale const *)arg1)->GetCanonicalName();
9575
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 {
9580 #if wxUSE_UNICODE
9581 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9582 #else
9583 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9584 #endif
9585 }
9586 return resultobj;
9587 fail:
9588 return NULL;
9589 }
9590
9591
9592 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9593 PyObject *resultobj;
9594 wxString *arg1 = 0 ;
9595 bool temp1 = False ;
9596 PyObject * obj0 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "prefix", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9602 {
9603 arg1 = wxString_in_helper(obj0);
9604 if (arg1 == NULL) SWIG_fail;
9605 temp1 = True;
9606 }
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9610
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 Py_INCREF(Py_None); resultobj = Py_None;
9615 {
9616 if (temp1)
9617 delete arg1;
9618 }
9619 return resultobj;
9620 fail:
9621 {
9622 if (temp1)
9623 delete arg1;
9624 }
9625 return NULL;
9626 }
9627
9628
9629 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9630 PyObject *resultobj;
9631 wxLocale *arg1 = (wxLocale *) 0 ;
9632 wxString *arg2 = 0 ;
9633 bool result;
9634 bool temp2 = False ;
9635 PyObject * obj0 = 0 ;
9636 PyObject * obj1 = 0 ;
9637 char *kwnames[] = {
9638 (char *) "self",(char *) "szDomain", NULL
9639 };
9640
9641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9643 {
9644 arg2 = wxString_in_helper(obj1);
9645 if (arg2 == NULL) SWIG_fail;
9646 temp2 = True;
9647 }
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9656 {
9657 if (temp2)
9658 delete arg2;
9659 }
9660 return resultobj;
9661 fail:
9662 {
9663 if (temp2)
9664 delete arg2;
9665 }
9666 return NULL;
9667 }
9668
9669
9670 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9671 PyObject *resultobj;
9672 wxLocale *arg1 = (wxLocale *) 0 ;
9673 wxString *arg2 = 0 ;
9674 bool result;
9675 bool temp2 = False ;
9676 PyObject * obj0 = 0 ;
9677 PyObject * obj1 = 0 ;
9678 char *kwnames[] = {
9679 (char *) "self",(char *) "szDomain", NULL
9680 };
9681
9682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9684 {
9685 arg2 = wxString_in_helper(obj1);
9686 if (arg2 == NULL) SWIG_fail;
9687 temp2 = True;
9688 }
9689 {
9690 PyThreadState* __tstate = wxPyBeginAllowThreads();
9691 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9692
9693 wxPyEndAllowThreads(__tstate);
9694 if (PyErr_Occurred()) SWIG_fail;
9695 }
9696 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9697 {
9698 if (temp2)
9699 delete arg2;
9700 }
9701 return resultobj;
9702 fail:
9703 {
9704 if (temp2)
9705 delete arg2;
9706 }
9707 return NULL;
9708 }
9709
9710
9711 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9712 PyObject *resultobj;
9713 int arg1 ;
9714 wxLanguageInfo *result;
9715 PyObject * obj0 = 0 ;
9716 char *kwnames[] = {
9717 (char *) "lang", NULL
9718 };
9719
9720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9721 {
9722 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9723 if (PyErr_Occurred()) SWIG_fail;
9724 }
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9728
9729 wxPyEndAllowThreads(__tstate);
9730 if (PyErr_Occurred()) SWIG_fail;
9731 }
9732 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9733 return resultobj;
9734 fail:
9735 return NULL;
9736 }
9737
9738
9739 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9740 PyObject *resultobj;
9741 int arg1 ;
9742 wxString result;
9743 PyObject * obj0 = 0 ;
9744 char *kwnames[] = {
9745 (char *) "lang", NULL
9746 };
9747
9748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9749 {
9750 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9751 if (PyErr_Occurred()) SWIG_fail;
9752 }
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 result = wxLocale::GetLanguageName(arg1);
9756
9757 wxPyEndAllowThreads(__tstate);
9758 if (PyErr_Occurred()) SWIG_fail;
9759 }
9760 {
9761 #if wxUSE_UNICODE
9762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9763 #else
9764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9765 #endif
9766 }
9767 return resultobj;
9768 fail:
9769 return NULL;
9770 }
9771
9772
9773 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9774 PyObject *resultobj;
9775 wxString *arg1 = 0 ;
9776 wxLanguageInfo *result;
9777 bool temp1 = False ;
9778 PyObject * obj0 = 0 ;
9779 char *kwnames[] = {
9780 (char *) "locale", NULL
9781 };
9782
9783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9784 {
9785 arg1 = wxString_in_helper(obj0);
9786 if (arg1 == NULL) SWIG_fail;
9787 temp1 = True;
9788 }
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9792
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9797 {
9798 if (temp1)
9799 delete arg1;
9800 }
9801 return resultobj;
9802 fail:
9803 {
9804 if (temp1)
9805 delete arg1;
9806 }
9807 return NULL;
9808 }
9809
9810
9811 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj;
9813 wxLanguageInfo *arg1 = 0 ;
9814 PyObject * obj0 = 0 ;
9815 char *kwnames[] = {
9816 (char *) "info", NULL
9817 };
9818
9819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9821 if (arg1 == NULL) {
9822 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9823 }
9824 {
9825 PyThreadState* __tstate = wxPyBeginAllowThreads();
9826 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9827
9828 wxPyEndAllowThreads(__tstate);
9829 if (PyErr_Occurred()) SWIG_fail;
9830 }
9831 Py_INCREF(Py_None); resultobj = Py_None;
9832 return resultobj;
9833 fail:
9834 return NULL;
9835 }
9836
9837
9838 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9839 PyObject *resultobj;
9840 wxLocale *arg1 = (wxLocale *) 0 ;
9841 wxString *arg2 = 0 ;
9842 wxString const &arg3_defvalue = wxPyEmptyString ;
9843 wxString *arg3 = (wxString *) &arg3_defvalue ;
9844 wxString result;
9845 bool temp2 = False ;
9846 bool temp3 = False ;
9847 PyObject * obj0 = 0 ;
9848 PyObject * obj1 = 0 ;
9849 PyObject * obj2 = 0 ;
9850 char *kwnames[] = {
9851 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9852 };
9853
9854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9856 {
9857 arg2 = wxString_in_helper(obj1);
9858 if (arg2 == NULL) SWIG_fail;
9859 temp2 = True;
9860 }
9861 if (obj2) {
9862 {
9863 arg3 = wxString_in_helper(obj2);
9864 if (arg3 == NULL) SWIG_fail;
9865 temp3 = True;
9866 }
9867 }
9868 {
9869 PyThreadState* __tstate = wxPyBeginAllowThreads();
9870 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9871
9872 wxPyEndAllowThreads(__tstate);
9873 if (PyErr_Occurred()) SWIG_fail;
9874 }
9875 {
9876 #if wxUSE_UNICODE
9877 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9878 #else
9879 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9880 #endif
9881 }
9882 {
9883 if (temp2)
9884 delete arg2;
9885 }
9886 {
9887 if (temp3)
9888 delete arg3;
9889 }
9890 return resultobj;
9891 fail:
9892 {
9893 if (temp2)
9894 delete arg2;
9895 }
9896 {
9897 if (temp3)
9898 delete arg3;
9899 }
9900 return NULL;
9901 }
9902
9903
9904 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9905 PyObject *resultobj;
9906 wxLocale *arg1 = (wxLocale *) 0 ;
9907 wxString *result;
9908 PyObject * obj0 = 0 ;
9909 char *kwnames[] = {
9910 (char *) "self", NULL
9911 };
9912
9913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9915 {
9916 PyThreadState* __tstate = wxPyBeginAllowThreads();
9917 {
9918 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9919 result = (wxString *) &_result_ref;
9920 }
9921
9922 wxPyEndAllowThreads(__tstate);
9923 if (PyErr_Occurred()) SWIG_fail;
9924 }
9925 {
9926 #if wxUSE_UNICODE
9927 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9928 #else
9929 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9930 #endif
9931 }
9932 return resultobj;
9933 fail:
9934 return NULL;
9935 }
9936
9937
9938 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9939 PyObject *obj;
9940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9941 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9942 Py_INCREF(obj);
9943 return Py_BuildValue((char *)"");
9944 }
9945 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9946 PyObject *resultobj;
9947 wxLocale *result;
9948 char *kwnames[] = {
9949 NULL
9950 };
9951
9952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9953 {
9954 PyThreadState* __tstate = wxPyBeginAllowThreads();
9955 result = (wxLocale *)wxGetLocale();
9956
9957 wxPyEndAllowThreads(__tstate);
9958 if (PyErr_Occurred()) SWIG_fail;
9959 }
9960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9961 return resultobj;
9962 fail:
9963 return NULL;
9964 }
9965
9966
9967 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9968 PyObject *resultobj;
9969 wxString *arg1 = 0 ;
9970 wxString result;
9971 bool temp1 = False ;
9972 PyObject * obj0 = 0 ;
9973
9974 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9975 {
9976 arg1 = wxString_in_helper(obj0);
9977 if (arg1 == NULL) SWIG_fail;
9978 temp1 = True;
9979 }
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = wxGetTranslation((wxString const &)*arg1);
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 {
9988 #if wxUSE_UNICODE
9989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9990 #else
9991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9992 #endif
9993 }
9994 {
9995 if (temp1)
9996 delete arg1;
9997 }
9998 return resultobj;
9999 fail:
10000 {
10001 if (temp1)
10002 delete arg1;
10003 }
10004 return NULL;
10005 }
10006
10007
10008 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10009 PyObject *resultobj;
10010 wxString *arg1 = 0 ;
10011 wxString *arg2 = 0 ;
10012 size_t arg3 ;
10013 wxString result;
10014 bool temp1 = False ;
10015 bool temp2 = False ;
10016 PyObject * obj0 = 0 ;
10017 PyObject * obj1 = 0 ;
10018 PyObject * obj2 = 0 ;
10019
10020 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10021 {
10022 arg1 = wxString_in_helper(obj0);
10023 if (arg1 == NULL) SWIG_fail;
10024 temp1 = True;
10025 }
10026 {
10027 arg2 = wxString_in_helper(obj1);
10028 if (arg2 == NULL) SWIG_fail;
10029 temp2 = True;
10030 }
10031 {
10032 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
10033 if (PyErr_Occurred()) SWIG_fail;
10034 }
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10038
10039 wxPyEndAllowThreads(__tstate);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 }
10042 {
10043 #if wxUSE_UNICODE
10044 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10045 #else
10046 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10047 #endif
10048 }
10049 {
10050 if (temp1)
10051 delete arg1;
10052 }
10053 {
10054 if (temp2)
10055 delete arg2;
10056 }
10057 return resultobj;
10058 fail:
10059 {
10060 if (temp1)
10061 delete arg1;
10062 }
10063 {
10064 if (temp2)
10065 delete arg2;
10066 }
10067 return NULL;
10068 }
10069
10070
10071 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10072 int argc;
10073 PyObject *argv[4];
10074 int ii;
10075
10076 argc = PyObject_Length(args);
10077 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10078 argv[ii] = PyTuple_GetItem(args,ii);
10079 }
10080 if (argc == 1) {
10081 int _v;
10082 {
10083 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10084 }
10085 if (_v) {
10086 return _wrap_GetTranslation__SWIG_0(self,args);
10087 }
10088 }
10089 if (argc == 3) {
10090 int _v;
10091 {
10092 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10093 }
10094 if (_v) {
10095 {
10096 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10097 }
10098 if (_v) {
10099 {
10100 SWIG_PyObj_AsUnsignedLong(argv[2]);
10101 if (PyErr_Occurred()) {
10102 _v = 0;
10103 PyErr_Clear();
10104 } else {
10105 _v = 1;
10106 }
10107 }
10108 if (_v) {
10109 return _wrap_GetTranslation__SWIG_1(self,args);
10110 }
10111 }
10112 }
10113 }
10114
10115 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10116 return NULL;
10117 }
10118
10119
10120 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10121 PyObject *resultobj;
10122 wxEncodingConverter *result;
10123 char *kwnames[] = {
10124 NULL
10125 };
10126
10127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10128 {
10129 PyThreadState* __tstate = wxPyBeginAllowThreads();
10130 result = (wxEncodingConverter *)new wxEncodingConverter();
10131
10132 wxPyEndAllowThreads(__tstate);
10133 if (PyErr_Occurred()) SWIG_fail;
10134 }
10135 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
10136 return resultobj;
10137 fail:
10138 return NULL;
10139 }
10140
10141
10142 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10145 PyObject * obj0 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10152 {
10153 PyThreadState* __tstate = wxPyBeginAllowThreads();
10154 delete arg1;
10155
10156 wxPyEndAllowThreads(__tstate);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 }
10159 Py_INCREF(Py_None); resultobj = Py_None;
10160 return resultobj;
10161 fail:
10162 return NULL;
10163 }
10164
10165
10166 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10167 PyObject *resultobj;
10168 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10169 int arg2 ;
10170 int arg3 ;
10171 int arg4 = (int) wxCONVERT_STRICT ;
10172 bool result;
10173 PyObject * obj0 = 0 ;
10174 PyObject * obj1 = 0 ;
10175 PyObject * obj2 = 0 ;
10176 PyObject * obj3 = 0 ;
10177 char *kwnames[] = {
10178 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10179 };
10180
10181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10182 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10183 {
10184 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 }
10187 {
10188 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 if (obj3) {
10192 {
10193 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 }
10196 }
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10200
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10205 return resultobj;
10206 fail:
10207 return NULL;
10208 }
10209
10210
10211 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10212 PyObject *resultobj;
10213 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10214 wxString *arg2 = 0 ;
10215 wxString result;
10216 bool temp2 = False ;
10217 PyObject * obj0 = 0 ;
10218 PyObject * obj1 = 0 ;
10219 char *kwnames[] = {
10220 (char *) "self",(char *) "input", NULL
10221 };
10222
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10225 {
10226 arg2 = wxString_in_helper(obj1);
10227 if (arg2 == NULL) SWIG_fail;
10228 temp2 = True;
10229 }
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = (arg1)->Convert((wxString const &)*arg2);
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 {
10238 #if wxUSE_UNICODE
10239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10240 #else
10241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10242 #endif
10243 }
10244 {
10245 if (temp2)
10246 delete arg2;
10247 }
10248 return resultobj;
10249 fail:
10250 {
10251 if (temp2)
10252 delete arg2;
10253 }
10254 return NULL;
10255 }
10256
10257
10258 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10259 PyObject *resultobj;
10260 int arg1 ;
10261 int arg2 = (int) wxPLATFORM_CURRENT ;
10262 wxFontEncodingArray result;
10263 PyObject * obj0 = 0 ;
10264 PyObject * obj1 = 0 ;
10265 char *kwnames[] = {
10266 (char *) "enc",(char *) "platform", NULL
10267 };
10268
10269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10270 {
10271 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 if (obj1) {
10275 {
10276 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10277 if (PyErr_Occurred()) SWIG_fail;
10278 }
10279 }
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10283
10284 wxPyEndAllowThreads(__tstate);
10285 if (PyErr_Occurred()) SWIG_fail;
10286 }
10287 {
10288 resultobj = PyList_New(0);
10289 for (size_t i=0; i < (&result)->GetCount(); i++) {
10290 PyObject* number = PyInt_FromLong((&result)->Item(i));
10291 PyList_Append(resultobj, number);
10292 Py_DECREF(number);
10293 }
10294 }
10295 return resultobj;
10296 fail:
10297 return NULL;
10298 }
10299
10300
10301 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10302 PyObject *resultobj;
10303 int arg1 ;
10304 wxFontEncodingArray result;
10305 PyObject * obj0 = 0 ;
10306 char *kwnames[] = {
10307 (char *) "enc", NULL
10308 };
10309
10310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10311 {
10312 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10313 if (PyErr_Occurred()) SWIG_fail;
10314 }
10315 {
10316 PyThreadState* __tstate = wxPyBeginAllowThreads();
10317 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10318
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 {
10323 resultobj = PyList_New(0);
10324 for (size_t i=0; i < (&result)->GetCount(); i++) {
10325 PyObject* number = PyInt_FromLong((&result)->Item(i));
10326 PyList_Append(resultobj, number);
10327 Py_DECREF(number);
10328 }
10329 }
10330 return resultobj;
10331 fail:
10332 return NULL;
10333 }
10334
10335
10336 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10337 PyObject *resultobj;
10338 int arg1 ;
10339 int arg2 ;
10340 bool result;
10341 PyObject * obj0 = 0 ;
10342 PyObject * obj1 = 0 ;
10343 char *kwnames[] = {
10344 (char *) "encIn",(char *) "encOut", NULL
10345 };
10346
10347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10348 {
10349 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 {
10353 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
10354 if (PyErr_Occurred()) SWIG_fail;
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10359
10360 wxPyEndAllowThreads(__tstate);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 }
10363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10364 return resultobj;
10365 fail:
10366 return NULL;
10367 }
10368
10369
10370 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10371 PyObject *obj;
10372 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10373 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10374 Py_INCREF(obj);
10375 return Py_BuildValue((char *)"");
10376 }
10377 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10378 PyObject *resultobj;
10379 wxDC *arg1 = (wxDC *) 0 ;
10380 PyObject * obj0 = 0 ;
10381 char *kwnames[] = {
10382 (char *) "self", NULL
10383 };
10384
10385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 delete arg1;
10390
10391 wxPyEndAllowThreads(__tstate);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 Py_INCREF(Py_None); resultobj = Py_None;
10395 return resultobj;
10396 fail:
10397 return NULL;
10398 }
10399
10400
10401 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10402 PyObject *resultobj;
10403 wxDC *arg1 = (wxDC *) 0 ;
10404 PyObject * obj0 = 0 ;
10405 char *kwnames[] = {
10406 (char *) "self", NULL
10407 };
10408
10409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10411 {
10412 PyThreadState* __tstate = wxPyBeginAllowThreads();
10413 (arg1)->BeginDrawing();
10414
10415 wxPyEndAllowThreads(__tstate);
10416 if (PyErr_Occurred()) SWIG_fail;
10417 }
10418 Py_INCREF(Py_None); resultobj = Py_None;
10419 return resultobj;
10420 fail:
10421 return NULL;
10422 }
10423
10424
10425 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10426 PyObject *resultobj;
10427 wxDC *arg1 = (wxDC *) 0 ;
10428 PyObject * obj0 = 0 ;
10429 char *kwnames[] = {
10430 (char *) "self", NULL
10431 };
10432
10433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10434 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10435 {
10436 PyThreadState* __tstate = wxPyBeginAllowThreads();
10437 (arg1)->EndDrawing();
10438
10439 wxPyEndAllowThreads(__tstate);
10440 if (PyErr_Occurred()) SWIG_fail;
10441 }
10442 Py_INCREF(Py_None); resultobj = Py_None;
10443 return resultobj;
10444 fail:
10445 return NULL;
10446 }
10447
10448
10449 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10450 PyObject *resultobj;
10451 wxDC *arg1 = (wxDC *) 0 ;
10452 int arg2 ;
10453 int arg3 ;
10454 wxColour *arg4 = 0 ;
10455 int arg5 = (int) wxFLOOD_SURFACE ;
10456 bool result;
10457 wxColour temp4 ;
10458 PyObject * obj0 = 0 ;
10459 PyObject * obj1 = 0 ;
10460 PyObject * obj2 = 0 ;
10461 PyObject * obj3 = 0 ;
10462 PyObject * obj4 = 0 ;
10463 char *kwnames[] = {
10464 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10465 };
10466
10467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10469 {
10470 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 {
10474 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 {
10478 arg4 = &temp4;
10479 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10480 }
10481 if (obj4) {
10482 {
10483 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10484 if (PyErr_Occurred()) SWIG_fail;
10485 }
10486 }
10487 {
10488 PyThreadState* __tstate = wxPyBeginAllowThreads();
10489 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10490
10491 wxPyEndAllowThreads(__tstate);
10492 if (PyErr_Occurred()) SWIG_fail;
10493 }
10494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10495 return resultobj;
10496 fail:
10497 return NULL;
10498 }
10499
10500
10501 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10502 PyObject *resultobj;
10503 wxDC *arg1 = (wxDC *) 0 ;
10504 wxPoint *arg2 = 0 ;
10505 wxColour *arg3 = 0 ;
10506 int arg4 = (int) wxFLOOD_SURFACE ;
10507 bool result;
10508 wxPoint temp2 ;
10509 wxColour temp3 ;
10510 PyObject * obj0 = 0 ;
10511 PyObject * obj1 = 0 ;
10512 PyObject * obj2 = 0 ;
10513 PyObject * obj3 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10516 };
10517
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10520 {
10521 arg2 = &temp2;
10522 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10523 }
10524 {
10525 arg3 = &temp3;
10526 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10527 }
10528 if (obj3) {
10529 {
10530 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10531 if (PyErr_Occurred()) SWIG_fail;
10532 }
10533 }
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10537
10538 wxPyEndAllowThreads(__tstate);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 }
10541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10542 return resultobj;
10543 fail:
10544 return NULL;
10545 }
10546
10547
10548 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10549 PyObject *resultobj;
10550 wxDC *arg1 = (wxDC *) 0 ;
10551 int arg2 ;
10552 int arg3 ;
10553 wxColour result;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 PyObject * obj2 = 0 ;
10557 char *kwnames[] = {
10558 (char *) "self",(char *) "x",(char *) "y", NULL
10559 };
10560
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10562 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10563 {
10564 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 {
10568 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10574
10575 wxPyEndAllowThreads(__tstate);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 {
10579 wxColour * resultptr;
10580 resultptr = new wxColour((wxColour &) result);
10581 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10582 }
10583 return resultobj;
10584 fail:
10585 return NULL;
10586 }
10587
10588
10589 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10590 PyObject *resultobj;
10591 wxDC *arg1 = (wxDC *) 0 ;
10592 wxPoint *arg2 = 0 ;
10593 wxColour result;
10594 wxPoint temp2 ;
10595 PyObject * obj0 = 0 ;
10596 PyObject * obj1 = 0 ;
10597 char *kwnames[] = {
10598 (char *) "self",(char *) "pt", NULL
10599 };
10600
10601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10603 {
10604 arg2 = &temp2;
10605 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10606 }
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10610
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 {
10615 wxColour * resultptr;
10616 resultptr = new wxColour((wxColour &) result);
10617 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10618 }
10619 return resultobj;
10620 fail:
10621 return NULL;
10622 }
10623
10624
10625 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10626 PyObject *resultobj;
10627 wxDC *arg1 = (wxDC *) 0 ;
10628 int arg2 ;
10629 int arg3 ;
10630 int arg4 ;
10631 int arg5 ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 PyObject * obj2 = 0 ;
10635 PyObject * obj3 = 0 ;
10636 PyObject * obj4 = 0 ;
10637 char *kwnames[] = {
10638 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10639 };
10640
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10642 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10643 {
10644 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 {
10648 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10649 if (PyErr_Occurred()) SWIG_fail;
10650 }
10651 {
10652 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 }
10655 {
10656 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10657 if (PyErr_Occurred()) SWIG_fail;
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10662
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 Py_INCREF(Py_None); resultobj = Py_None;
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj;
10675 wxDC *arg1 = (wxDC *) 0 ;
10676 wxPoint *arg2 = 0 ;
10677 wxPoint *arg3 = 0 ;
10678 wxPoint temp2 ;
10679 wxPoint temp3 ;
10680 PyObject * obj0 = 0 ;
10681 PyObject * obj1 = 0 ;
10682 PyObject * obj2 = 0 ;
10683 char *kwnames[] = {
10684 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10685 };
10686
10687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10688 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10689 {
10690 arg2 = &temp2;
10691 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10692 }
10693 {
10694 arg3 = &temp3;
10695 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10696 }
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10700
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 Py_INCREF(Py_None); resultobj = Py_None;
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj;
10713 wxDC *arg1 = (wxDC *) 0 ;
10714 int arg2 ;
10715 int arg3 ;
10716 PyObject * obj0 = 0 ;
10717 PyObject * obj1 = 0 ;
10718 PyObject * obj2 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self",(char *) "x",(char *) "y", NULL
10721 };
10722
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10725 {
10726 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 }
10729 {
10730 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 }
10733 {
10734 PyThreadState* __tstate = wxPyBeginAllowThreads();
10735 (arg1)->CrossHair(arg2,arg3);
10736
10737 wxPyEndAllowThreads(__tstate);
10738 if (PyErr_Occurred()) SWIG_fail;
10739 }
10740 Py_INCREF(Py_None); resultobj = Py_None;
10741 return resultobj;
10742 fail:
10743 return NULL;
10744 }
10745
10746
10747 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10748 PyObject *resultobj;
10749 wxDC *arg1 = (wxDC *) 0 ;
10750 wxPoint *arg2 = 0 ;
10751 wxPoint temp2 ;
10752 PyObject * obj0 = 0 ;
10753 PyObject * obj1 = 0 ;
10754 char *kwnames[] = {
10755 (char *) "self",(char *) "pt", NULL
10756 };
10757
10758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10760 {
10761 arg2 = &temp2;
10762 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10763 }
10764 {
10765 PyThreadState* __tstate = wxPyBeginAllowThreads();
10766 (arg1)->CrossHair((wxPoint const &)*arg2);
10767
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 Py_INCREF(Py_None); resultobj = Py_None;
10772 return resultobj;
10773 fail:
10774 return NULL;
10775 }
10776
10777
10778 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10779 PyObject *resultobj;
10780 wxDC *arg1 = (wxDC *) 0 ;
10781 int arg2 ;
10782 int arg3 ;
10783 int arg4 ;
10784 int arg5 ;
10785 int arg6 ;
10786 int arg7 ;
10787 PyObject * obj0 = 0 ;
10788 PyObject * obj1 = 0 ;
10789 PyObject * obj2 = 0 ;
10790 PyObject * obj3 = 0 ;
10791 PyObject * obj4 = 0 ;
10792 PyObject * obj5 = 0 ;
10793 PyObject * obj6 = 0 ;
10794 char *kwnames[] = {
10795 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10796 };
10797
10798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10799 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10800 {
10801 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 {
10805 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 {
10809 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
10812 {
10813 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 }
10816 {
10817 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10818 if (PyErr_Occurred()) SWIG_fail;
10819 }
10820 {
10821 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 PyThreadState* __tstate = wxPyBeginAllowThreads();
10826 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10827
10828 wxPyEndAllowThreads(__tstate);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 }
10831 Py_INCREF(Py_None); resultobj = Py_None;
10832 return resultobj;
10833 fail:
10834 return NULL;
10835 }
10836
10837
10838 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10839 PyObject *resultobj;
10840 wxDC *arg1 = (wxDC *) 0 ;
10841 wxPoint *arg2 = 0 ;
10842 wxPoint *arg3 = 0 ;
10843 wxPoint *arg4 = 0 ;
10844 wxPoint temp2 ;
10845 wxPoint temp3 ;
10846 wxPoint temp4 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 PyObject * obj2 = 0 ;
10850 PyObject * obj3 = 0 ;
10851 char *kwnames[] = {
10852 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10853 };
10854
10855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10857 {
10858 arg2 = &temp2;
10859 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10860 }
10861 {
10862 arg3 = &temp3;
10863 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10864 }
10865 {
10866 arg4 = &temp4;
10867 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10868 }
10869 {
10870 PyThreadState* __tstate = wxPyBeginAllowThreads();
10871 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10872
10873 wxPyEndAllowThreads(__tstate);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 }
10876 Py_INCREF(Py_None); resultobj = Py_None;
10877 return resultobj;
10878 fail:
10879 return NULL;
10880 }
10881
10882
10883 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10884 PyObject *resultobj;
10885 wxDC *arg1 = (wxDC *) 0 ;
10886 int arg2 ;
10887 int arg3 ;
10888 int arg4 ;
10889 int arg5 ;
10890 PyObject * obj0 = 0 ;
10891 PyObject * obj1 = 0 ;
10892 PyObject * obj2 = 0 ;
10893 PyObject * obj3 = 0 ;
10894 PyObject * obj4 = 0 ;
10895 char *kwnames[] = {
10896 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10897 };
10898
10899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10901 {
10902 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10903 if (PyErr_Occurred()) SWIG_fail;
10904 }
10905 {
10906 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10907 if (PyErr_Occurred()) SWIG_fail;
10908 }
10909 {
10910 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 }
10913 {
10914 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
10917 {
10918 PyThreadState* __tstate = wxPyBeginAllowThreads();
10919 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10920
10921 wxPyEndAllowThreads(__tstate);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 }
10924 Py_INCREF(Py_None); resultobj = Py_None;
10925 return resultobj;
10926 fail:
10927 return NULL;
10928 }
10929
10930
10931 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj;
10933 wxDC *arg1 = (wxDC *) 0 ;
10934 wxRect *arg2 = 0 ;
10935 wxRect temp2 ;
10936 PyObject * obj0 = 0 ;
10937 PyObject * obj1 = 0 ;
10938 char *kwnames[] = {
10939 (char *) "self",(char *) "rect", NULL
10940 };
10941
10942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10943 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10944 {
10945 arg2 = &temp2;
10946 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10951
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 Py_INCREF(Py_None); resultobj = Py_None;
10956 return resultobj;
10957 fail:
10958 return NULL;
10959 }
10960
10961
10962 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10963 PyObject *resultobj;
10964 wxDC *arg1 = (wxDC *) 0 ;
10965 int arg2 ;
10966 int arg3 ;
10967 int arg4 ;
10968 int arg5 ;
10969 double arg6 ;
10970 double arg7 ;
10971 PyObject * obj0 = 0 ;
10972 PyObject * obj1 = 0 ;
10973 PyObject * obj2 = 0 ;
10974 PyObject * obj3 = 0 ;
10975 PyObject * obj4 = 0 ;
10976 PyObject * obj5 = 0 ;
10977 PyObject * obj6 = 0 ;
10978 char *kwnames[] = {
10979 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10980 };
10981
10982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10984 {
10985 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 {
10989 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10990 if (PyErr_Occurred()) SWIG_fail;
10991 }
10992 {
10993 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 {
10997 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 {
11001 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 {
11005 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
11006 if (PyErr_Occurred()) SWIG_fail;
11007 }
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11011
11012 wxPyEndAllowThreads(__tstate);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 }
11015 Py_INCREF(Py_None); resultobj = Py_None;
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj;
11024 wxDC *arg1 = (wxDC *) 0 ;
11025 wxPoint *arg2 = 0 ;
11026 wxSize *arg3 = 0 ;
11027 double arg4 ;
11028 double arg5 ;
11029 wxPoint temp2 ;
11030 wxSize temp3 ;
11031 PyObject * obj0 = 0 ;
11032 PyObject * obj1 = 0 ;
11033 PyObject * obj2 = 0 ;
11034 PyObject * obj3 = 0 ;
11035 PyObject * obj4 = 0 ;
11036 char *kwnames[] = {
11037 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11038 };
11039
11040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11042 {
11043 arg2 = &temp2;
11044 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11045 }
11046 {
11047 arg3 = &temp3;
11048 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11049 }
11050 {
11051 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11052 if (PyErr_Occurred()) SWIG_fail;
11053 }
11054 {
11055 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11056 if (PyErr_Occurred()) SWIG_fail;
11057 }
11058 {
11059 PyThreadState* __tstate = wxPyBeginAllowThreads();
11060 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11061
11062 wxPyEndAllowThreads(__tstate);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 }
11065 Py_INCREF(Py_None); resultobj = Py_None;
11066 return resultobj;
11067 fail:
11068 return NULL;
11069 }
11070
11071
11072 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11073 PyObject *resultobj;
11074 wxDC *arg1 = (wxDC *) 0 ;
11075 int arg2 ;
11076 int arg3 ;
11077 PyObject * obj0 = 0 ;
11078 PyObject * obj1 = 0 ;
11079 PyObject * obj2 = 0 ;
11080 char *kwnames[] = {
11081 (char *) "self",(char *) "x",(char *) "y", NULL
11082 };
11083
11084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
11085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11086 {
11087 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11088 if (PyErr_Occurred()) SWIG_fail;
11089 }
11090 {
11091 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 (arg1)->DrawPoint(arg2,arg3);
11097
11098 wxPyEndAllowThreads(__tstate);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 }
11101 Py_INCREF(Py_None); resultobj = Py_None;
11102 return resultobj;
11103 fail:
11104 return NULL;
11105 }
11106
11107
11108 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11109 PyObject *resultobj;
11110 wxDC *arg1 = (wxDC *) 0 ;
11111 wxPoint *arg2 = 0 ;
11112 wxPoint temp2 ;
11113 PyObject * obj0 = 0 ;
11114 PyObject * obj1 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "self",(char *) "pt", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
11120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11121 {
11122 arg2 = &temp2;
11123 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11124 }
11125 {
11126 PyThreadState* __tstate = wxPyBeginAllowThreads();
11127 (arg1)->DrawPoint((wxPoint const &)*arg2);
11128
11129 wxPyEndAllowThreads(__tstate);
11130 if (PyErr_Occurred()) SWIG_fail;
11131 }
11132 Py_INCREF(Py_None); resultobj = Py_None;
11133 return resultobj;
11134 fail:
11135 return NULL;
11136 }
11137
11138
11139 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11140 PyObject *resultobj;
11141 wxDC *arg1 = (wxDC *) 0 ;
11142 int arg2 ;
11143 int arg3 ;
11144 int arg4 ;
11145 int arg5 ;
11146 PyObject * obj0 = 0 ;
11147 PyObject * obj1 = 0 ;
11148 PyObject * obj2 = 0 ;
11149 PyObject * obj3 = 0 ;
11150 PyObject * obj4 = 0 ;
11151 char *kwnames[] = {
11152 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11153 };
11154
11155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11157 {
11158 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 {
11162 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 {
11166 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 {
11174 PyThreadState* __tstate = wxPyBeginAllowThreads();
11175 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11176
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 Py_INCREF(Py_None); resultobj = Py_None;
11181 return resultobj;
11182 fail:
11183 return NULL;
11184 }
11185
11186
11187 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11188 PyObject *resultobj;
11189 wxDC *arg1 = (wxDC *) 0 ;
11190 wxPoint *arg2 = 0 ;
11191 wxSize *arg3 = 0 ;
11192 wxPoint temp2 ;
11193 wxSize temp3 ;
11194 PyObject * obj0 = 0 ;
11195 PyObject * obj1 = 0 ;
11196 PyObject * obj2 = 0 ;
11197 char *kwnames[] = {
11198 (char *) "self",(char *) "pt",(char *) "sz", NULL
11199 };
11200
11201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11202 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11203 {
11204 arg2 = &temp2;
11205 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11206 }
11207 {
11208 arg3 = &temp3;
11209 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11210 }
11211 {
11212 PyThreadState* __tstate = wxPyBeginAllowThreads();
11213 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11214
11215 wxPyEndAllowThreads(__tstate);
11216 if (PyErr_Occurred()) SWIG_fail;
11217 }
11218 Py_INCREF(Py_None); resultobj = Py_None;
11219 return resultobj;
11220 fail:
11221 return NULL;
11222 }
11223
11224
11225 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11226 PyObject *resultobj;
11227 wxDC *arg1 = (wxDC *) 0 ;
11228 wxRect *arg2 = 0 ;
11229 wxRect temp2 ;
11230 PyObject * obj0 = 0 ;
11231 PyObject * obj1 = 0 ;
11232 char *kwnames[] = {
11233 (char *) "self",(char *) "rect", NULL
11234 };
11235
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11238 {
11239 arg2 = &temp2;
11240 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11241 }
11242 {
11243 PyThreadState* __tstate = wxPyBeginAllowThreads();
11244 (arg1)->DrawRectangle((wxRect const &)*arg2);
11245
11246 wxPyEndAllowThreads(__tstate);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 }
11249 Py_INCREF(Py_None); resultobj = Py_None;
11250 return resultobj;
11251 fail:
11252 return NULL;
11253 }
11254
11255
11256 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11257 PyObject *resultobj;
11258 wxDC *arg1 = (wxDC *) 0 ;
11259 int arg2 ;
11260 int arg3 ;
11261 int arg4 ;
11262 int arg5 ;
11263 double arg6 ;
11264 PyObject * obj0 = 0 ;
11265 PyObject * obj1 = 0 ;
11266 PyObject * obj2 = 0 ;
11267 PyObject * obj3 = 0 ;
11268 PyObject * obj4 = 0 ;
11269 PyObject * obj5 = 0 ;
11270 char *kwnames[] = {
11271 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11272 };
11273
11274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11276 {
11277 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 {
11281 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 {
11285 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11286 if (PyErr_Occurred()) SWIG_fail;
11287 }
11288 {
11289 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 {
11293 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 PyThreadState* __tstate = wxPyBeginAllowThreads();
11298 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11299
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 Py_INCREF(Py_None); resultobj = Py_None;
11304 return resultobj;
11305 fail:
11306 return NULL;
11307 }
11308
11309
11310 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11311 PyObject *resultobj;
11312 wxDC *arg1 = (wxDC *) 0 ;
11313 wxPoint *arg2 = 0 ;
11314 wxSize *arg3 = 0 ;
11315 double arg4 ;
11316 wxPoint temp2 ;
11317 wxSize temp3 ;
11318 PyObject * obj0 = 0 ;
11319 PyObject * obj1 = 0 ;
11320 PyObject * obj2 = 0 ;
11321 PyObject * obj3 = 0 ;
11322 char *kwnames[] = {
11323 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11324 };
11325
11326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11327 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11328 {
11329 arg2 = &temp2;
11330 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11331 }
11332 {
11333 arg3 = &temp3;
11334 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11335 }
11336 {
11337 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11338 if (PyErr_Occurred()) SWIG_fail;
11339 }
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11343
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 Py_INCREF(Py_None); resultobj = Py_None;
11348 return resultobj;
11349 fail:
11350 return NULL;
11351 }
11352
11353
11354 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11355 PyObject *resultobj;
11356 wxDC *arg1 = (wxDC *) 0 ;
11357 wxRect *arg2 = 0 ;
11358 double arg3 ;
11359 wxRect temp2 ;
11360 PyObject * obj0 = 0 ;
11361 PyObject * obj1 = 0 ;
11362 PyObject * obj2 = 0 ;
11363 char *kwnames[] = {
11364 (char *) "self",(char *) "r",(char *) "radius", NULL
11365 };
11366
11367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11368 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11369 {
11370 arg2 = &temp2;
11371 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11372 }
11373 {
11374 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
11375 if (PyErr_Occurred()) SWIG_fail;
11376 }
11377 {
11378 PyThreadState* __tstate = wxPyBeginAllowThreads();
11379 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11380
11381 wxPyEndAllowThreads(__tstate);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 Py_INCREF(Py_None); resultobj = Py_None;
11385 return resultobj;
11386 fail:
11387 return NULL;
11388 }
11389
11390
11391 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11392 PyObject *resultobj;
11393 wxDC *arg1 = (wxDC *) 0 ;
11394 int arg2 ;
11395 int arg3 ;
11396 int arg4 ;
11397 PyObject * obj0 = 0 ;
11398 PyObject * obj1 = 0 ;
11399 PyObject * obj2 = 0 ;
11400 PyObject * obj3 = 0 ;
11401 char *kwnames[] = {
11402 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11403 };
11404
11405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11407 {
11408 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11409 if (PyErr_Occurred()) SWIG_fail;
11410 }
11411 {
11412 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 {
11416 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11417 if (PyErr_Occurred()) SWIG_fail;
11418 }
11419 {
11420 PyThreadState* __tstate = wxPyBeginAllowThreads();
11421 (arg1)->DrawCircle(arg2,arg3,arg4);
11422
11423 wxPyEndAllowThreads(__tstate);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 Py_INCREF(Py_None); resultobj = Py_None;
11427 return resultobj;
11428 fail:
11429 return NULL;
11430 }
11431
11432
11433 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11434 PyObject *resultobj;
11435 wxDC *arg1 = (wxDC *) 0 ;
11436 wxPoint *arg2 = 0 ;
11437 int arg3 ;
11438 wxPoint temp2 ;
11439 PyObject * obj0 = 0 ;
11440 PyObject * obj1 = 0 ;
11441 PyObject * obj2 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self",(char *) "pt",(char *) "radius", NULL
11444 };
11445
11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
11447 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11448 {
11449 arg2 = &temp2;
11450 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11451 }
11452 {
11453 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 }
11456 {
11457 PyThreadState* __tstate = wxPyBeginAllowThreads();
11458 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11459
11460 wxPyEndAllowThreads(__tstate);
11461 if (PyErr_Occurred()) SWIG_fail;
11462 }
11463 Py_INCREF(Py_None); resultobj = Py_None;
11464 return resultobj;
11465 fail:
11466 return NULL;
11467 }
11468
11469
11470 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11471 PyObject *resultobj;
11472 wxDC *arg1 = (wxDC *) 0 ;
11473 int arg2 ;
11474 int arg3 ;
11475 int arg4 ;
11476 int arg5 ;
11477 PyObject * obj0 = 0 ;
11478 PyObject * obj1 = 0 ;
11479 PyObject * obj2 = 0 ;
11480 PyObject * obj3 = 0 ;
11481 PyObject * obj4 = 0 ;
11482 char *kwnames[] = {
11483 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11484 };
11485
11486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11488 {
11489 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 }
11492 {
11493 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 }
11496 {
11497 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11498 if (PyErr_Occurred()) SWIG_fail;
11499 }
11500 {
11501 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 {
11505 PyThreadState* __tstate = wxPyBeginAllowThreads();
11506 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11507
11508 wxPyEndAllowThreads(__tstate);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 Py_INCREF(Py_None); resultobj = Py_None;
11512 return resultobj;
11513 fail:
11514 return NULL;
11515 }
11516
11517
11518 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11519 PyObject *resultobj;
11520 wxDC *arg1 = (wxDC *) 0 ;
11521 wxPoint *arg2 = 0 ;
11522 wxSize *arg3 = 0 ;
11523 wxPoint temp2 ;
11524 wxSize temp3 ;
11525 PyObject * obj0 = 0 ;
11526 PyObject * obj1 = 0 ;
11527 PyObject * obj2 = 0 ;
11528 char *kwnames[] = {
11529 (char *) "self",(char *) "pt",(char *) "sz", NULL
11530 };
11531
11532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11533 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11534 {
11535 arg2 = &temp2;
11536 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11537 }
11538 {
11539 arg3 = &temp3;
11540 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11541 }
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11545
11546 wxPyEndAllowThreads(__tstate);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 Py_INCREF(Py_None); resultobj = Py_None;
11550 return resultobj;
11551 fail:
11552 return NULL;
11553 }
11554
11555
11556 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11557 PyObject *resultobj;
11558 wxDC *arg1 = (wxDC *) 0 ;
11559 wxRect *arg2 = 0 ;
11560 wxRect temp2 ;
11561 PyObject * obj0 = 0 ;
11562 PyObject * obj1 = 0 ;
11563 char *kwnames[] = {
11564 (char *) "self",(char *) "rect", NULL
11565 };
11566
11567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11568 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11569 {
11570 arg2 = &temp2;
11571 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11572 }
11573 {
11574 PyThreadState* __tstate = wxPyBeginAllowThreads();
11575 (arg1)->DrawEllipse((wxRect const &)*arg2);
11576
11577 wxPyEndAllowThreads(__tstate);
11578 if (PyErr_Occurred()) SWIG_fail;
11579 }
11580 Py_INCREF(Py_None); resultobj = Py_None;
11581 return resultobj;
11582 fail:
11583 return NULL;
11584 }
11585
11586
11587 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11588 PyObject *resultobj;
11589 wxDC *arg1 = (wxDC *) 0 ;
11590 wxIcon *arg2 = 0 ;
11591 int arg3 ;
11592 int arg4 ;
11593 PyObject * obj0 = 0 ;
11594 PyObject * obj1 = 0 ;
11595 PyObject * obj2 = 0 ;
11596 PyObject * obj3 = 0 ;
11597 char *kwnames[] = {
11598 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11599 };
11600
11601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11602 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11603 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11604 if (arg2 == NULL) {
11605 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11606 }
11607 {
11608 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11609 if (PyErr_Occurred()) SWIG_fail;
11610 }
11611 {
11612 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11613 if (PyErr_Occurred()) SWIG_fail;
11614 }
11615 {
11616 PyThreadState* __tstate = wxPyBeginAllowThreads();
11617 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11618
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 Py_INCREF(Py_None); resultobj = Py_None;
11623 return resultobj;
11624 fail:
11625 return NULL;
11626 }
11627
11628
11629 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11630 PyObject *resultobj;
11631 wxDC *arg1 = (wxDC *) 0 ;
11632 wxIcon *arg2 = 0 ;
11633 wxPoint *arg3 = 0 ;
11634 wxPoint temp3 ;
11635 PyObject * obj0 = 0 ;
11636 PyObject * obj1 = 0 ;
11637 PyObject * obj2 = 0 ;
11638 char *kwnames[] = {
11639 (char *) "self",(char *) "icon",(char *) "pt", NULL
11640 };
11641
11642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11644 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11645 if (arg2 == NULL) {
11646 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11647 }
11648 {
11649 arg3 = &temp3;
11650 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11651 }
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11655
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
11659 Py_INCREF(Py_None); resultobj = Py_None;
11660 return resultobj;
11661 fail:
11662 return NULL;
11663 }
11664
11665
11666 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11667 PyObject *resultobj;
11668 wxDC *arg1 = (wxDC *) 0 ;
11669 wxBitmap *arg2 = 0 ;
11670 int arg3 ;
11671 int arg4 ;
11672 bool arg5 = (bool) False ;
11673 PyObject * obj0 = 0 ;
11674 PyObject * obj1 = 0 ;
11675 PyObject * obj2 = 0 ;
11676 PyObject * obj3 = 0 ;
11677 PyObject * obj4 = 0 ;
11678 char *kwnames[] = {
11679 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11680 };
11681
11682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11684 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11685 if (arg2 == NULL) {
11686 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11687 }
11688 {
11689 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 {
11693 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11694 if (PyErr_Occurred()) SWIG_fail;
11695 }
11696 if (obj4) {
11697 {
11698 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 }
11701 }
11702 {
11703 PyThreadState* __tstate = wxPyBeginAllowThreads();
11704 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11705
11706 wxPyEndAllowThreads(__tstate);
11707 if (PyErr_Occurred()) SWIG_fail;
11708 }
11709 Py_INCREF(Py_None); resultobj = Py_None;
11710 return resultobj;
11711 fail:
11712 return NULL;
11713 }
11714
11715
11716 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11717 PyObject *resultobj;
11718 wxDC *arg1 = (wxDC *) 0 ;
11719 wxBitmap *arg2 = 0 ;
11720 wxPoint *arg3 = 0 ;
11721 bool arg4 = (bool) False ;
11722 wxPoint temp3 ;
11723 PyObject * obj0 = 0 ;
11724 PyObject * obj1 = 0 ;
11725 PyObject * obj2 = 0 ;
11726 PyObject * obj3 = 0 ;
11727 char *kwnames[] = {
11728 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11729 };
11730
11731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11733 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11734 if (arg2 == NULL) {
11735 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11736 }
11737 {
11738 arg3 = &temp3;
11739 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11740 }
11741 if (obj3) {
11742 {
11743 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 }
11746 }
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11750
11751 wxPyEndAllowThreads(__tstate);
11752 if (PyErr_Occurred()) SWIG_fail;
11753 }
11754 Py_INCREF(Py_None); resultobj = Py_None;
11755 return resultobj;
11756 fail:
11757 return NULL;
11758 }
11759
11760
11761 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11762 PyObject *resultobj;
11763 wxDC *arg1 = (wxDC *) 0 ;
11764 wxString *arg2 = 0 ;
11765 int arg3 ;
11766 int arg4 ;
11767 bool temp2 = False ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 PyObject * obj3 = 0 ;
11772 char *kwnames[] = {
11773 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11774 };
11775
11776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11778 {
11779 arg2 = wxString_in_helper(obj1);
11780 if (arg2 == NULL) SWIG_fail;
11781 temp2 = True;
11782 }
11783 {
11784 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11785 if (PyErr_Occurred()) SWIG_fail;
11786 }
11787 {
11788 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 {
11792 PyThreadState* __tstate = wxPyBeginAllowThreads();
11793 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11794
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 Py_INCREF(Py_None); resultobj = Py_None;
11799 {
11800 if (temp2)
11801 delete arg2;
11802 }
11803 return resultobj;
11804 fail:
11805 {
11806 if (temp2)
11807 delete arg2;
11808 }
11809 return NULL;
11810 }
11811
11812
11813 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11814 PyObject *resultobj;
11815 wxDC *arg1 = (wxDC *) 0 ;
11816 wxString *arg2 = 0 ;
11817 wxPoint *arg3 = 0 ;
11818 bool temp2 = False ;
11819 wxPoint temp3 ;
11820 PyObject * obj0 = 0 ;
11821 PyObject * obj1 = 0 ;
11822 PyObject * obj2 = 0 ;
11823 char *kwnames[] = {
11824 (char *) "self",(char *) "text",(char *) "pt", NULL
11825 };
11826
11827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11828 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11829 {
11830 arg2 = wxString_in_helper(obj1);
11831 if (arg2 == NULL) SWIG_fail;
11832 temp2 = True;
11833 }
11834 {
11835 arg3 = &temp3;
11836 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11837 }
11838 {
11839 PyThreadState* __tstate = wxPyBeginAllowThreads();
11840 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11841
11842 wxPyEndAllowThreads(__tstate);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 Py_INCREF(Py_None); resultobj = Py_None;
11846 {
11847 if (temp2)
11848 delete arg2;
11849 }
11850 return resultobj;
11851 fail:
11852 {
11853 if (temp2)
11854 delete arg2;
11855 }
11856 return NULL;
11857 }
11858
11859
11860 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11861 PyObject *resultobj;
11862 wxDC *arg1 = (wxDC *) 0 ;
11863 wxString *arg2 = 0 ;
11864 int arg3 ;
11865 int arg4 ;
11866 double arg5 ;
11867 bool temp2 = False ;
11868 PyObject * obj0 = 0 ;
11869 PyObject * obj1 = 0 ;
11870 PyObject * obj2 = 0 ;
11871 PyObject * obj3 = 0 ;
11872 PyObject * obj4 = 0 ;
11873 char *kwnames[] = {
11874 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11875 };
11876
11877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11879 {
11880 arg2 = wxString_in_helper(obj1);
11881 if (arg2 == NULL) SWIG_fail;
11882 temp2 = True;
11883 }
11884 {
11885 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 {
11889 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11890 if (PyErr_Occurred()) SWIG_fail;
11891 }
11892 {
11893 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 }
11896 {
11897 PyThreadState* __tstate = wxPyBeginAllowThreads();
11898 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11899
11900 wxPyEndAllowThreads(__tstate);
11901 if (PyErr_Occurred()) SWIG_fail;
11902 }
11903 Py_INCREF(Py_None); resultobj = Py_None;
11904 {
11905 if (temp2)
11906 delete arg2;
11907 }
11908 return resultobj;
11909 fail:
11910 {
11911 if (temp2)
11912 delete arg2;
11913 }
11914 return NULL;
11915 }
11916
11917
11918 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11919 PyObject *resultobj;
11920 wxDC *arg1 = (wxDC *) 0 ;
11921 wxString *arg2 = 0 ;
11922 wxPoint *arg3 = 0 ;
11923 double arg4 ;
11924 bool temp2 = False ;
11925 wxPoint temp3 ;
11926 PyObject * obj0 = 0 ;
11927 PyObject * obj1 = 0 ;
11928 PyObject * obj2 = 0 ;
11929 PyObject * obj3 = 0 ;
11930 char *kwnames[] = {
11931 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11932 };
11933
11934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11935 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11936 {
11937 arg2 = wxString_in_helper(obj1);
11938 if (arg2 == NULL) SWIG_fail;
11939 temp2 = True;
11940 }
11941 {
11942 arg3 = &temp3;
11943 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11944 }
11945 {
11946 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
11949 {
11950 PyThreadState* __tstate = wxPyBeginAllowThreads();
11951 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11952
11953 wxPyEndAllowThreads(__tstate);
11954 if (PyErr_Occurred()) SWIG_fail;
11955 }
11956 Py_INCREF(Py_None); resultobj = Py_None;
11957 {
11958 if (temp2)
11959 delete arg2;
11960 }
11961 return resultobj;
11962 fail:
11963 {
11964 if (temp2)
11965 delete arg2;
11966 }
11967 return NULL;
11968 }
11969
11970
11971 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11972 PyObject *resultobj;
11973 wxDC *arg1 = (wxDC *) 0 ;
11974 int arg2 ;
11975 int arg3 ;
11976 int arg4 ;
11977 int arg5 ;
11978 wxDC *arg6 = (wxDC *) 0 ;
11979 int arg7 ;
11980 int arg8 ;
11981 int arg9 = (int) wxCOPY ;
11982 bool arg10 = (bool) False ;
11983 int arg11 = (int) -1 ;
11984 int arg12 = (int) -1 ;
11985 bool result;
11986 PyObject * obj0 = 0 ;
11987 PyObject * obj1 = 0 ;
11988 PyObject * obj2 = 0 ;
11989 PyObject * obj3 = 0 ;
11990 PyObject * obj4 = 0 ;
11991 PyObject * obj5 = 0 ;
11992 PyObject * obj6 = 0 ;
11993 PyObject * obj7 = 0 ;
11994 PyObject * obj8 = 0 ;
11995 PyObject * obj9 = 0 ;
11996 PyObject * obj10 = 0 ;
11997 PyObject * obj11 = 0 ;
11998 char *kwnames[] = {
11999 (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
12000 };
12001
12002 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;
12003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12004 {
12005 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12006 if (PyErr_Occurred()) SWIG_fail;
12007 }
12008 {
12009 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12010 if (PyErr_Occurred()) SWIG_fail;
12011 }
12012 {
12013 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12014 if (PyErr_Occurred()) SWIG_fail;
12015 }
12016 {
12017 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12021 {
12022 arg7 = (int) SWIG_PyObj_AsInt(obj6);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 {
12026 arg8 = (int) SWIG_PyObj_AsInt(obj7);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 if (obj8) {
12030 {
12031 arg9 = (int) SWIG_PyObj_AsInt(obj8);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 }
12035 if (obj9) {
12036 {
12037 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 }
12041 if (obj10) {
12042 {
12043 arg11 = (int) SWIG_PyObj_AsInt(obj10);
12044 if (PyErr_Occurred()) SWIG_fail;
12045 }
12046 }
12047 if (obj11) {
12048 {
12049 arg12 = (int) SWIG_PyObj_AsInt(obj11);
12050 if (PyErr_Occurred()) SWIG_fail;
12051 }
12052 }
12053 {
12054 PyThreadState* __tstate = wxPyBeginAllowThreads();
12055 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12056
12057 wxPyEndAllowThreads(__tstate);
12058 if (PyErr_Occurred()) SWIG_fail;
12059 }
12060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12061 return resultobj;
12062 fail:
12063 return NULL;
12064 }
12065
12066
12067 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12068 PyObject *resultobj;
12069 wxDC *arg1 = (wxDC *) 0 ;
12070 wxPoint *arg2 = 0 ;
12071 wxSize *arg3 = 0 ;
12072 wxDC *arg4 = (wxDC *) 0 ;
12073 wxPoint *arg5 = 0 ;
12074 int arg6 = (int) wxCOPY ;
12075 bool arg7 = (bool) False ;
12076 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12077 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12078 bool result;
12079 wxPoint temp2 ;
12080 wxSize temp3 ;
12081 wxPoint temp5 ;
12082 wxPoint temp8 ;
12083 PyObject * obj0 = 0 ;
12084 PyObject * obj1 = 0 ;
12085 PyObject * obj2 = 0 ;
12086 PyObject * obj3 = 0 ;
12087 PyObject * obj4 = 0 ;
12088 PyObject * obj5 = 0 ;
12089 PyObject * obj6 = 0 ;
12090 PyObject * obj7 = 0 ;
12091 char *kwnames[] = {
12092 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12093 };
12094
12095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12097 {
12098 arg2 = &temp2;
12099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12100 }
12101 {
12102 arg3 = &temp3;
12103 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12104 }
12105 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12106 {
12107 arg5 = &temp5;
12108 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12109 }
12110 if (obj5) {
12111 {
12112 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 }
12116 if (obj6) {
12117 {
12118 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 }
12122 if (obj7) {
12123 {
12124 arg8 = &temp8;
12125 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12126 }
12127 }
12128 {
12129 PyThreadState* __tstate = wxPyBeginAllowThreads();
12130 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12131
12132 wxPyEndAllowThreads(__tstate);
12133 if (PyErr_Occurred()) SWIG_fail;
12134 }
12135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12136 return resultobj;
12137 fail:
12138 return NULL;
12139 }
12140
12141
12142 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj;
12144 wxDC *arg1 = (wxDC *) 0 ;
12145 int arg2 ;
12146 wxPoint *arg3 = (wxPoint *) 0 ;
12147 int arg4 = (int) 0 ;
12148 int arg5 = (int) 0 ;
12149 PyObject * obj0 = 0 ;
12150 PyObject * obj1 = 0 ;
12151 PyObject * obj2 = 0 ;
12152 PyObject * obj3 = 0 ;
12153 char *kwnames[] = {
12154 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12155 };
12156
12157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12158 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12159 {
12160 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12161 if (arg3 == NULL) SWIG_fail;
12162 }
12163 if (obj2) {
12164 {
12165 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12166 if (PyErr_Occurred()) SWIG_fail;
12167 }
12168 }
12169 if (obj3) {
12170 {
12171 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12172 if (PyErr_Occurred()) SWIG_fail;
12173 }
12174 }
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12178
12179 wxPyEndAllowThreads(__tstate);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 Py_INCREF(Py_None); resultobj = Py_None;
12183 {
12184 if (arg3) delete [] arg3;
12185 }
12186 return resultobj;
12187 fail:
12188 {
12189 if (arg3) delete [] arg3;
12190 }
12191 return NULL;
12192 }
12193
12194
12195 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12196 PyObject *resultobj;
12197 wxDC *arg1 = (wxDC *) 0 ;
12198 int arg2 ;
12199 wxPoint *arg3 = (wxPoint *) 0 ;
12200 int arg4 = (int) 0 ;
12201 int arg5 = (int) 0 ;
12202 int arg6 = (int) wxODDEVEN_RULE ;
12203 PyObject * obj0 = 0 ;
12204 PyObject * obj1 = 0 ;
12205 PyObject * obj2 = 0 ;
12206 PyObject * obj3 = 0 ;
12207 PyObject * obj4 = 0 ;
12208 char *kwnames[] = {
12209 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12210 };
12211
12212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12213 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12214 {
12215 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12216 if (arg3 == NULL) SWIG_fail;
12217 }
12218 if (obj2) {
12219 {
12220 arg4 = (int) SWIG_PyObj_AsInt(obj2);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 }
12224 if (obj3) {
12225 {
12226 arg5 = (int) SWIG_PyObj_AsInt(obj3);
12227 if (PyErr_Occurred()) SWIG_fail;
12228 }
12229 }
12230 if (obj4) {
12231 {
12232 arg6 = (int) SWIG_PyObj_AsInt(obj4);
12233 if (PyErr_Occurred()) SWIG_fail;
12234 }
12235 }
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12239
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 Py_INCREF(Py_None); resultobj = Py_None;
12244 {
12245 if (arg3) delete [] arg3;
12246 }
12247 return resultobj;
12248 fail:
12249 {
12250 if (arg3) delete [] arg3;
12251 }
12252 return NULL;
12253 }
12254
12255
12256 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12257 PyObject *resultobj;
12258 wxDC *arg1 = (wxDC *) 0 ;
12259 wxString *arg2 = 0 ;
12260 wxRect *arg3 = 0 ;
12261 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12262 int arg5 = (int) -1 ;
12263 bool temp2 = False ;
12264 wxRect temp3 ;
12265 PyObject * obj0 = 0 ;
12266 PyObject * obj1 = 0 ;
12267 PyObject * obj2 = 0 ;
12268 PyObject * obj3 = 0 ;
12269 PyObject * obj4 = 0 ;
12270 char *kwnames[] = {
12271 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12272 };
12273
12274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12276 {
12277 arg2 = wxString_in_helper(obj1);
12278 if (arg2 == NULL) SWIG_fail;
12279 temp2 = True;
12280 }
12281 {
12282 arg3 = &temp3;
12283 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12284 }
12285 if (obj3) {
12286 {
12287 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12288 if (PyErr_Occurred()) SWIG_fail;
12289 }
12290 }
12291 if (obj4) {
12292 {
12293 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 }
12297 {
12298 PyThreadState* __tstate = wxPyBeginAllowThreads();
12299 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12300
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 Py_INCREF(Py_None); resultobj = Py_None;
12305 {
12306 if (temp2)
12307 delete arg2;
12308 }
12309 return resultobj;
12310 fail:
12311 {
12312 if (temp2)
12313 delete arg2;
12314 }
12315 return NULL;
12316 }
12317
12318
12319 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12320 PyObject *resultobj;
12321 wxDC *arg1 = (wxDC *) 0 ;
12322 wxString *arg2 = 0 ;
12323 wxBitmap *arg3 = 0 ;
12324 wxRect *arg4 = 0 ;
12325 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12326 int arg6 = (int) -1 ;
12327 wxRect result;
12328 bool temp2 = False ;
12329 wxRect temp4 ;
12330 PyObject * obj0 = 0 ;
12331 PyObject * obj1 = 0 ;
12332 PyObject * obj2 = 0 ;
12333 PyObject * obj3 = 0 ;
12334 PyObject * obj4 = 0 ;
12335 PyObject * obj5 = 0 ;
12336 char *kwnames[] = {
12337 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12338 };
12339
12340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12342 {
12343 arg2 = wxString_in_helper(obj1);
12344 if (arg2 == NULL) SWIG_fail;
12345 temp2 = True;
12346 }
12347 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12348 if (arg3 == NULL) {
12349 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12350 }
12351 {
12352 arg4 = &temp4;
12353 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12354 }
12355 if (obj4) {
12356 {
12357 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12358 if (PyErr_Occurred()) SWIG_fail;
12359 }
12360 }
12361 if (obj5) {
12362 {
12363 arg6 = (int) SWIG_PyObj_AsInt(obj5);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 }
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12370
12371 wxPyEndAllowThreads(__tstate);
12372 if (PyErr_Occurred()) SWIG_fail;
12373 }
12374 {
12375 wxRect * resultptr;
12376 resultptr = new wxRect((wxRect &) result);
12377 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12378 }
12379 {
12380 if (temp2)
12381 delete arg2;
12382 }
12383 return resultobj;
12384 fail:
12385 {
12386 if (temp2)
12387 delete arg2;
12388 }
12389 return NULL;
12390 }
12391
12392
12393 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12394 PyObject *resultobj;
12395 wxDC *arg1 = (wxDC *) 0 ;
12396 int arg2 ;
12397 wxPoint *arg3 = (wxPoint *) 0 ;
12398 PyObject * obj0 = 0 ;
12399 PyObject * obj1 = 0 ;
12400 char *kwnames[] = {
12401 (char *) "self",(char *) "points", NULL
12402 };
12403
12404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12405 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12406 {
12407 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12408 if (arg3 == NULL) SWIG_fail;
12409 }
12410 {
12411 PyThreadState* __tstate = wxPyBeginAllowThreads();
12412 (arg1)->DrawSpline(arg2,arg3);
12413
12414 wxPyEndAllowThreads(__tstate);
12415 if (PyErr_Occurred()) SWIG_fail;
12416 }
12417 Py_INCREF(Py_None); resultobj = Py_None;
12418 {
12419 if (arg3) delete [] arg3;
12420 }
12421 return resultobj;
12422 fail:
12423 {
12424 if (arg3) delete [] arg3;
12425 }
12426 return NULL;
12427 }
12428
12429
12430 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12431 PyObject *resultobj;
12432 wxDC *arg1 = (wxDC *) 0 ;
12433 PyObject * obj0 = 0 ;
12434 char *kwnames[] = {
12435 (char *) "self", NULL
12436 };
12437
12438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12440 {
12441 PyThreadState* __tstate = wxPyBeginAllowThreads();
12442 (arg1)->Clear();
12443
12444 wxPyEndAllowThreads(__tstate);
12445 if (PyErr_Occurred()) SWIG_fail;
12446 }
12447 Py_INCREF(Py_None); resultobj = Py_None;
12448 return resultobj;
12449 fail:
12450 return NULL;
12451 }
12452
12453
12454 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12455 PyObject *resultobj;
12456 wxDC *arg1 = (wxDC *) 0 ;
12457 wxString *arg2 = 0 ;
12458 bool result;
12459 bool temp2 = False ;
12460 PyObject * obj0 = 0 ;
12461 PyObject * obj1 = 0 ;
12462 char *kwnames[] = {
12463 (char *) "self",(char *) "message", NULL
12464 };
12465
12466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12468 {
12469 arg2 = wxString_in_helper(obj1);
12470 if (arg2 == NULL) SWIG_fail;
12471 temp2 = True;
12472 }
12473 {
12474 PyThreadState* __tstate = wxPyBeginAllowThreads();
12475 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12476
12477 wxPyEndAllowThreads(__tstate);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12481 {
12482 if (temp2)
12483 delete arg2;
12484 }
12485 return resultobj;
12486 fail:
12487 {
12488 if (temp2)
12489 delete arg2;
12490 }
12491 return NULL;
12492 }
12493
12494
12495 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12496 PyObject *resultobj;
12497 wxDC *arg1 = (wxDC *) 0 ;
12498 PyObject * obj0 = 0 ;
12499 char *kwnames[] = {
12500 (char *) "self", NULL
12501 };
12502
12503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12505 {
12506 PyThreadState* __tstate = wxPyBeginAllowThreads();
12507 (arg1)->EndDoc();
12508
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 Py_INCREF(Py_None); resultobj = Py_None;
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12520 PyObject *resultobj;
12521 wxDC *arg1 = (wxDC *) 0 ;
12522 PyObject * obj0 = 0 ;
12523 char *kwnames[] = {
12524 (char *) "self", NULL
12525 };
12526
12527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12529 {
12530 PyThreadState* __tstate = wxPyBeginAllowThreads();
12531 (arg1)->StartPage();
12532
12533 wxPyEndAllowThreads(__tstate);
12534 if (PyErr_Occurred()) SWIG_fail;
12535 }
12536 Py_INCREF(Py_None); resultobj = Py_None;
12537 return resultobj;
12538 fail:
12539 return NULL;
12540 }
12541
12542
12543 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12544 PyObject *resultobj;
12545 wxDC *arg1 = (wxDC *) 0 ;
12546 PyObject * obj0 = 0 ;
12547 char *kwnames[] = {
12548 (char *) "self", NULL
12549 };
12550
12551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->EndPage();
12556
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
12560 Py_INCREF(Py_None); resultobj = Py_None;
12561 return resultobj;
12562 fail:
12563 return NULL;
12564 }
12565
12566
12567 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj;
12569 wxDC *arg1 = (wxDC *) 0 ;
12570 wxFont *arg2 = 0 ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 char *kwnames[] = {
12574 (char *) "self",(char *) "font", NULL
12575 };
12576
12577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12579 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12580 if (arg2 == NULL) {
12581 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12582 }
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 (arg1)->SetFont((wxFont const &)*arg2);
12586
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 Py_INCREF(Py_None); resultobj = Py_None;
12591 return resultobj;
12592 fail:
12593 return NULL;
12594 }
12595
12596
12597 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12598 PyObject *resultobj;
12599 wxDC *arg1 = (wxDC *) 0 ;
12600 wxPen *arg2 = 0 ;
12601 PyObject * obj0 = 0 ;
12602 PyObject * obj1 = 0 ;
12603 char *kwnames[] = {
12604 (char *) "self",(char *) "pen", NULL
12605 };
12606
12607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12609 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12610 if (arg2 == NULL) {
12611 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12612 }
12613 {
12614 PyThreadState* __tstate = wxPyBeginAllowThreads();
12615 (arg1)->SetPen((wxPen const &)*arg2);
12616
12617 wxPyEndAllowThreads(__tstate);
12618 if (PyErr_Occurred()) SWIG_fail;
12619 }
12620 Py_INCREF(Py_None); resultobj = Py_None;
12621 return resultobj;
12622 fail:
12623 return NULL;
12624 }
12625
12626
12627 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12628 PyObject *resultobj;
12629 wxDC *arg1 = (wxDC *) 0 ;
12630 wxBrush *arg2 = 0 ;
12631 PyObject * obj0 = 0 ;
12632 PyObject * obj1 = 0 ;
12633 char *kwnames[] = {
12634 (char *) "self",(char *) "brush", NULL
12635 };
12636
12637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12638 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12639 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12640 if (arg2 == NULL) {
12641 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12642 }
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 (arg1)->SetBrush((wxBrush const &)*arg2);
12646
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 Py_INCREF(Py_None); resultobj = Py_None;
12651 return resultobj;
12652 fail:
12653 return NULL;
12654 }
12655
12656
12657 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12658 PyObject *resultobj;
12659 wxDC *arg1 = (wxDC *) 0 ;
12660 wxBrush *arg2 = 0 ;
12661 PyObject * obj0 = 0 ;
12662 PyObject * obj1 = 0 ;
12663 char *kwnames[] = {
12664 (char *) "self",(char *) "brush", NULL
12665 };
12666
12667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12668 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12669 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12670 if (arg2 == NULL) {
12671 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12672 }
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 (arg1)->SetBackground((wxBrush const &)*arg2);
12676
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 Py_INCREF(Py_None); resultobj = Py_None;
12681 return resultobj;
12682 fail:
12683 return NULL;
12684 }
12685
12686
12687 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12688 PyObject *resultobj;
12689 wxDC *arg1 = (wxDC *) 0 ;
12690 int arg2 ;
12691 PyObject * obj0 = 0 ;
12692 PyObject * obj1 = 0 ;
12693 char *kwnames[] = {
12694 (char *) "self",(char *) "mode", NULL
12695 };
12696
12697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12699 {
12700 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12701 if (PyErr_Occurred()) SWIG_fail;
12702 }
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 (arg1)->SetBackgroundMode(arg2);
12706
12707 wxPyEndAllowThreads(__tstate);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
12710 Py_INCREF(Py_None); resultobj = Py_None;
12711 return resultobj;
12712 fail:
12713 return NULL;
12714 }
12715
12716
12717 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12718 PyObject *resultobj;
12719 wxDC *arg1 = (wxDC *) 0 ;
12720 wxPalette *arg2 = 0 ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char *kwnames[] = {
12724 (char *) "self",(char *) "palette", NULL
12725 };
12726
12727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12729 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12730 if (arg2 == NULL) {
12731 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12732 }
12733 {
12734 PyThreadState* __tstate = wxPyBeginAllowThreads();
12735 (arg1)->SetPalette((wxPalette const &)*arg2);
12736
12737 wxPyEndAllowThreads(__tstate);
12738 if (PyErr_Occurred()) SWIG_fail;
12739 }
12740 Py_INCREF(Py_None); resultobj = Py_None;
12741 return resultobj;
12742 fail:
12743 return NULL;
12744 }
12745
12746
12747 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12748 PyObject *resultobj;
12749 wxDC *arg1 = (wxDC *) 0 ;
12750 int arg2 ;
12751 int arg3 ;
12752 int arg4 ;
12753 int arg5 ;
12754 PyObject * obj0 = 0 ;
12755 PyObject * obj1 = 0 ;
12756 PyObject * obj2 = 0 ;
12757 PyObject * obj3 = 0 ;
12758 PyObject * obj4 = 0 ;
12759 char *kwnames[] = {
12760 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12761 };
12762
12763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12765 {
12766 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12767 if (PyErr_Occurred()) SWIG_fail;
12768 }
12769 {
12770 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12771 if (PyErr_Occurred()) SWIG_fail;
12772 }
12773 {
12774 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 {
12778 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12779 if (PyErr_Occurred()) SWIG_fail;
12780 }
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12784
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 Py_INCREF(Py_None); resultobj = Py_None;
12789 return resultobj;
12790 fail:
12791 return NULL;
12792 }
12793
12794
12795 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12796 PyObject *resultobj;
12797 wxDC *arg1 = (wxDC *) 0 ;
12798 wxPoint *arg2 = 0 ;
12799 wxSize *arg3 = 0 ;
12800 wxPoint temp2 ;
12801 wxSize temp3 ;
12802 PyObject * obj0 = 0 ;
12803 PyObject * obj1 = 0 ;
12804 PyObject * obj2 = 0 ;
12805 char *kwnames[] = {
12806 (char *) "self",(char *) "pt",(char *) "sz", NULL
12807 };
12808
12809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12810 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12811 {
12812 arg2 = &temp2;
12813 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12814 }
12815 {
12816 arg3 = &temp3;
12817 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12818 }
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12822
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 Py_INCREF(Py_None); resultobj = Py_None;
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj;
12835 wxDC *arg1 = (wxDC *) 0 ;
12836 wxRect *arg2 = 0 ;
12837 wxRect temp2 ;
12838 PyObject * obj0 = 0 ;
12839 PyObject * obj1 = 0 ;
12840 char *kwnames[] = {
12841 (char *) "self",(char *) "rect", NULL
12842 };
12843
12844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12846 {
12847 arg2 = &temp2;
12848 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12849 }
12850 {
12851 PyThreadState* __tstate = wxPyBeginAllowThreads();
12852 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12853
12854 wxPyEndAllowThreads(__tstate);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 Py_INCREF(Py_None); resultobj = Py_None;
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj;
12866 wxDC *arg1 = (wxDC *) 0 ;
12867 wxRegion *arg2 = 0 ;
12868 PyObject * obj0 = 0 ;
12869 PyObject * obj1 = 0 ;
12870 char *kwnames[] = {
12871 (char *) "self",(char *) "region", NULL
12872 };
12873
12874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12876 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12877 if (arg2 == NULL) {
12878 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12879 }
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12883
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 Py_INCREF(Py_None); resultobj = Py_None;
12888 return resultobj;
12889 fail:
12890 return NULL;
12891 }
12892
12893
12894 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj;
12896 wxDC *arg1 = (wxDC *) 0 ;
12897 PyObject * obj0 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self", NULL
12900 };
12901
12902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12904 {
12905 PyThreadState* __tstate = wxPyBeginAllowThreads();
12906 (arg1)->DestroyClippingRegion();
12907
12908 wxPyEndAllowThreads(__tstate);
12909 if (PyErr_Occurred()) SWIG_fail;
12910 }
12911 Py_INCREF(Py_None); resultobj = Py_None;
12912 return resultobj;
12913 fail:
12914 return NULL;
12915 }
12916
12917
12918 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12919 PyObject *resultobj;
12920 wxDC *arg1 = (wxDC *) 0 ;
12921 int *arg2 = (int *) 0 ;
12922 int *arg3 = (int *) 0 ;
12923 int *arg4 = (int *) 0 ;
12924 int *arg5 = (int *) 0 ;
12925 int temp2 ;
12926 int temp3 ;
12927 int temp4 ;
12928 int temp5 ;
12929 PyObject * obj0 = 0 ;
12930 char *kwnames[] = {
12931 (char *) "self", NULL
12932 };
12933
12934 arg2 = &temp2;
12935 arg3 = &temp3;
12936 arg4 = &temp4;
12937 arg5 = &temp5;
12938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12940 {
12941 PyThreadState* __tstate = wxPyBeginAllowThreads();
12942 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12943
12944 wxPyEndAllowThreads(__tstate);
12945 if (PyErr_Occurred()) SWIG_fail;
12946 }
12947 Py_INCREF(Py_None); resultobj = Py_None;
12948 {
12949 PyObject *o = PyInt_FromLong((long) (*arg2));
12950 resultobj = t_output_helper(resultobj,o);
12951 }
12952 {
12953 PyObject *o = PyInt_FromLong((long) (*arg3));
12954 resultobj = t_output_helper(resultobj,o);
12955 }
12956 {
12957 PyObject *o = PyInt_FromLong((long) (*arg4));
12958 resultobj = t_output_helper(resultobj,o);
12959 }
12960 {
12961 PyObject *o = PyInt_FromLong((long) (*arg5));
12962 resultobj = t_output_helper(resultobj,o);
12963 }
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj;
12972 wxDC *arg1 = (wxDC *) 0 ;
12973 wxRect result;
12974 PyObject * obj0 = 0 ;
12975 char *kwnames[] = {
12976 (char *) "self", NULL
12977 };
12978
12979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 result = wxDC_GetClippingRect(arg1);
12984
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 {
12989 wxRect * resultptr;
12990 resultptr = new wxRect((wxRect &) result);
12991 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12992 }
12993 return resultobj;
12994 fail:
12995 return NULL;
12996 }
12997
12998
12999 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13000 PyObject *resultobj;
13001 wxDC *arg1 = (wxDC *) 0 ;
13002 int result;
13003 PyObject * obj0 = 0 ;
13004 char *kwnames[] = {
13005 (char *) "self", NULL
13006 };
13007
13008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13010 {
13011 PyThreadState* __tstate = wxPyBeginAllowThreads();
13012 result = (int)((wxDC const *)arg1)->GetCharHeight();
13013
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = SWIG_PyObj_FromInt((int)result);
13018 return resultobj;
13019 fail:
13020 return NULL;
13021 }
13022
13023
13024 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj;
13026 wxDC *arg1 = (wxDC *) 0 ;
13027 int result;
13028 PyObject * obj0 = 0 ;
13029 char *kwnames[] = {
13030 (char *) "self", NULL
13031 };
13032
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13034 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13035 {
13036 PyThreadState* __tstate = wxPyBeginAllowThreads();
13037 result = (int)((wxDC const *)arg1)->GetCharWidth();
13038
13039 wxPyEndAllowThreads(__tstate);
13040 if (PyErr_Occurred()) SWIG_fail;
13041 }
13042 resultobj = SWIG_PyObj_FromInt((int)result);
13043 return resultobj;
13044 fail:
13045 return NULL;
13046 }
13047
13048
13049 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13050 PyObject *resultobj;
13051 wxDC *arg1 = (wxDC *) 0 ;
13052 wxString *arg2 = 0 ;
13053 int *arg3 = (int *) 0 ;
13054 int *arg4 = (int *) 0 ;
13055 bool temp2 = False ;
13056 int temp3 ;
13057 int temp4 ;
13058 PyObject * obj0 = 0 ;
13059 PyObject * obj1 = 0 ;
13060 char *kwnames[] = {
13061 (char *) "self",(char *) "string", NULL
13062 };
13063
13064 arg3 = &temp3;
13065 arg4 = &temp4;
13066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13068 {
13069 arg2 = wxString_in_helper(obj1);
13070 if (arg2 == NULL) SWIG_fail;
13071 temp2 = True;
13072 }
13073 {
13074 PyThreadState* __tstate = wxPyBeginAllowThreads();
13075 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13076
13077 wxPyEndAllowThreads(__tstate);
13078 if (PyErr_Occurred()) SWIG_fail;
13079 }
13080 Py_INCREF(Py_None); resultobj = Py_None;
13081 {
13082 PyObject *o = PyInt_FromLong((long) (*arg3));
13083 resultobj = t_output_helper(resultobj,o);
13084 }
13085 {
13086 PyObject *o = PyInt_FromLong((long) (*arg4));
13087 resultobj = t_output_helper(resultobj,o);
13088 }
13089 {
13090 if (temp2)
13091 delete arg2;
13092 }
13093 return resultobj;
13094 fail:
13095 {
13096 if (temp2)
13097 delete arg2;
13098 }
13099 return NULL;
13100 }
13101
13102
13103 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13104 PyObject *resultobj;
13105 wxDC *arg1 = (wxDC *) 0 ;
13106 wxString *arg2 = 0 ;
13107 int *arg3 = (int *) 0 ;
13108 int *arg4 = (int *) 0 ;
13109 int *arg5 = (int *) 0 ;
13110 int *arg6 = (int *) 0 ;
13111 wxFont *arg7 = (wxFont *) NULL ;
13112 bool temp2 = False ;
13113 int temp3 ;
13114 int temp4 ;
13115 int temp5 ;
13116 int temp6 ;
13117 PyObject * obj0 = 0 ;
13118 PyObject * obj1 = 0 ;
13119 PyObject * obj2 = 0 ;
13120 char *kwnames[] = {
13121 (char *) "self",(char *) "string",(char *) "font", NULL
13122 };
13123
13124 arg3 = &temp3;
13125 arg4 = &temp4;
13126 arg5 = &temp5;
13127 arg6 = &temp6;
13128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13129 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13130 {
13131 arg2 = wxString_in_helper(obj1);
13132 if (arg2 == NULL) SWIG_fail;
13133 temp2 = True;
13134 }
13135 if (obj2) {
13136 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13137 }
13138 {
13139 PyThreadState* __tstate = wxPyBeginAllowThreads();
13140 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13141
13142 wxPyEndAllowThreads(__tstate);
13143 if (PyErr_Occurred()) SWIG_fail;
13144 }
13145 Py_INCREF(Py_None); resultobj = Py_None;
13146 {
13147 PyObject *o = PyInt_FromLong((long) (*arg3));
13148 resultobj = t_output_helper(resultobj,o);
13149 }
13150 {
13151 PyObject *o = PyInt_FromLong((long) (*arg4));
13152 resultobj = t_output_helper(resultobj,o);
13153 }
13154 {
13155 PyObject *o = PyInt_FromLong((long) (*arg5));
13156 resultobj = t_output_helper(resultobj,o);
13157 }
13158 {
13159 PyObject *o = PyInt_FromLong((long) (*arg6));
13160 resultobj = t_output_helper(resultobj,o);
13161 }
13162 {
13163 if (temp2)
13164 delete arg2;
13165 }
13166 return resultobj;
13167 fail:
13168 {
13169 if (temp2)
13170 delete arg2;
13171 }
13172 return NULL;
13173 }
13174
13175
13176 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13177 PyObject *resultobj;
13178 wxDC *arg1 = (wxDC *) 0 ;
13179 wxString *arg2 = 0 ;
13180 int *arg3 = (int *) 0 ;
13181 int *arg4 = (int *) 0 ;
13182 int *arg5 = (int *) 0 ;
13183 wxFont *arg6 = (wxFont *) NULL ;
13184 bool temp2 = False ;
13185 int temp3 ;
13186 int temp4 ;
13187 int temp5 ;
13188 PyObject * obj0 = 0 ;
13189 PyObject * obj1 = 0 ;
13190 PyObject * obj2 = 0 ;
13191 char *kwnames[] = {
13192 (char *) "self",(char *) "text",(char *) "font", NULL
13193 };
13194
13195 arg3 = &temp3;
13196 arg4 = &temp4;
13197 arg5 = &temp5;
13198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13200 {
13201 arg2 = wxString_in_helper(obj1);
13202 if (arg2 == NULL) SWIG_fail;
13203 temp2 = True;
13204 }
13205 if (obj2) {
13206 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13207 }
13208 {
13209 PyThreadState* __tstate = wxPyBeginAllowThreads();
13210 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13211
13212 wxPyEndAllowThreads(__tstate);
13213 if (PyErr_Occurred()) SWIG_fail;
13214 }
13215 Py_INCREF(Py_None); resultobj = Py_None;
13216 {
13217 PyObject *o = PyInt_FromLong((long) (*arg3));
13218 resultobj = t_output_helper(resultobj,o);
13219 }
13220 {
13221 PyObject *o = PyInt_FromLong((long) (*arg4));
13222 resultobj = t_output_helper(resultobj,o);
13223 }
13224 {
13225 PyObject *o = PyInt_FromLong((long) (*arg5));
13226 resultobj = t_output_helper(resultobj,o);
13227 }
13228 {
13229 if (temp2)
13230 delete arg2;
13231 }
13232 return resultobj;
13233 fail:
13234 {
13235 if (temp2)
13236 delete arg2;
13237 }
13238 return NULL;
13239 }
13240
13241
13242 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj;
13244 wxDC *arg1 = (wxDC *) 0 ;
13245 wxSize result;
13246 PyObject * obj0 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 result = (arg1)->GetSize();
13256
13257 wxPyEndAllowThreads(__tstate);
13258 if (PyErr_Occurred()) SWIG_fail;
13259 }
13260 {
13261 wxSize * resultptr;
13262 resultptr = new wxSize((wxSize &) result);
13263 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13264 }
13265 return resultobj;
13266 fail:
13267 return NULL;
13268 }
13269
13270
13271 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13272 PyObject *resultobj;
13273 wxDC *arg1 = (wxDC *) 0 ;
13274 int *arg2 = (int *) 0 ;
13275 int *arg3 = (int *) 0 ;
13276 int temp2 ;
13277 int temp3 ;
13278 PyObject * obj0 = 0 ;
13279 char *kwnames[] = {
13280 (char *) "self", NULL
13281 };
13282
13283 arg2 = &temp2;
13284 arg3 = &temp3;
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13287 {
13288 PyThreadState* __tstate = wxPyBeginAllowThreads();
13289 (arg1)->GetSize(arg2,arg3);
13290
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 Py_INCREF(Py_None); resultobj = Py_None;
13295 {
13296 PyObject *o = PyInt_FromLong((long) (*arg2));
13297 resultobj = t_output_helper(resultobj,o);
13298 }
13299 {
13300 PyObject *o = PyInt_FromLong((long) (*arg3));
13301 resultobj = t_output_helper(resultobj,o);
13302 }
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13310 PyObject *resultobj;
13311 wxDC *arg1 = (wxDC *) 0 ;
13312 wxSize result;
13313 PyObject * obj0 = 0 ;
13314 char *kwnames[] = {
13315 (char *) "self", NULL
13316 };
13317
13318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13320 {
13321 PyThreadState* __tstate = wxPyBeginAllowThreads();
13322 result = ((wxDC const *)arg1)->GetSizeMM();
13323
13324 wxPyEndAllowThreads(__tstate);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 }
13327 {
13328 wxSize * resultptr;
13329 resultptr = new wxSize((wxSize &) result);
13330 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13331 }
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj;
13340 wxDC *arg1 = (wxDC *) 0 ;
13341 int *arg2 = (int *) 0 ;
13342 int *arg3 = (int *) 0 ;
13343 int temp2 ;
13344 int temp3 ;
13345 PyObject * obj0 = 0 ;
13346 char *kwnames[] = {
13347 (char *) "self", NULL
13348 };
13349
13350 arg2 = &temp2;
13351 arg3 = &temp3;
13352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13353 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13354 {
13355 PyThreadState* __tstate = wxPyBeginAllowThreads();
13356 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13357
13358 wxPyEndAllowThreads(__tstate);
13359 if (PyErr_Occurred()) SWIG_fail;
13360 }
13361 Py_INCREF(Py_None); resultobj = Py_None;
13362 {
13363 PyObject *o = PyInt_FromLong((long) (*arg2));
13364 resultobj = t_output_helper(resultobj,o);
13365 }
13366 {
13367 PyObject *o = PyInt_FromLong((long) (*arg3));
13368 resultobj = t_output_helper(resultobj,o);
13369 }
13370 return resultobj;
13371 fail:
13372 return NULL;
13373 }
13374
13375
13376 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13377 PyObject *resultobj;
13378 wxDC *arg1 = (wxDC *) 0 ;
13379 int arg2 ;
13380 int result;
13381 PyObject * obj0 = 0 ;
13382 PyObject * obj1 = 0 ;
13383 char *kwnames[] = {
13384 (char *) "self",(char *) "x", NULL
13385 };
13386
13387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13389 {
13390 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 {
13394 PyThreadState* __tstate = wxPyBeginAllowThreads();
13395 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13396
13397 wxPyEndAllowThreads(__tstate);
13398 if (PyErr_Occurred()) SWIG_fail;
13399 }
13400 resultobj = SWIG_PyObj_FromInt((int)result);
13401 return resultobj;
13402 fail:
13403 return NULL;
13404 }
13405
13406
13407 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13408 PyObject *resultobj;
13409 wxDC *arg1 = (wxDC *) 0 ;
13410 int arg2 ;
13411 int result;
13412 PyObject * obj0 = 0 ;
13413 PyObject * obj1 = 0 ;
13414 char *kwnames[] = {
13415 (char *) "self",(char *) "y", NULL
13416 };
13417
13418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13420 {
13421 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13422 if (PyErr_Occurred()) SWIG_fail;
13423 }
13424 {
13425 PyThreadState* __tstate = wxPyBeginAllowThreads();
13426 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13427
13428 wxPyEndAllowThreads(__tstate);
13429 if (PyErr_Occurred()) SWIG_fail;
13430 }
13431 resultobj = SWIG_PyObj_FromInt((int)result);
13432 return resultobj;
13433 fail:
13434 return NULL;
13435 }
13436
13437
13438 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13439 PyObject *resultobj;
13440 wxDC *arg1 = (wxDC *) 0 ;
13441 int arg2 ;
13442 int result;
13443 PyObject * obj0 = 0 ;
13444 PyObject * obj1 = 0 ;
13445 char *kwnames[] = {
13446 (char *) "self",(char *) "x", NULL
13447 };
13448
13449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13450 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13451 {
13452 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13453 if (PyErr_Occurred()) SWIG_fail;
13454 }
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13458
13459 wxPyEndAllowThreads(__tstate);
13460 if (PyErr_Occurred()) SWIG_fail;
13461 }
13462 resultobj = SWIG_PyObj_FromInt((int)result);
13463 return resultobj;
13464 fail:
13465 return NULL;
13466 }
13467
13468
13469 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13470 PyObject *resultobj;
13471 wxDC *arg1 = (wxDC *) 0 ;
13472 int arg2 ;
13473 int result;
13474 PyObject * obj0 = 0 ;
13475 PyObject * obj1 = 0 ;
13476 char *kwnames[] = {
13477 (char *) "self",(char *) "y", NULL
13478 };
13479
13480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13482 {
13483 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 resultobj = SWIG_PyObj_FromInt((int)result);
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxDC *arg1 = (wxDC *) 0 ;
13503 int arg2 ;
13504 int result;
13505 PyObject * obj0 = 0 ;
13506 PyObject * obj1 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self",(char *) "x", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13513 {
13514 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13515 if (PyErr_Occurred()) SWIG_fail;
13516 }
13517 {
13518 PyThreadState* __tstate = wxPyBeginAllowThreads();
13519 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13520
13521 wxPyEndAllowThreads(__tstate);
13522 if (PyErr_Occurred()) SWIG_fail;
13523 }
13524 resultobj = SWIG_PyObj_FromInt((int)result);
13525 return resultobj;
13526 fail:
13527 return NULL;
13528 }
13529
13530
13531 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13532 PyObject *resultobj;
13533 wxDC *arg1 = (wxDC *) 0 ;
13534 int arg2 ;
13535 int result;
13536 PyObject * obj0 = 0 ;
13537 PyObject * obj1 = 0 ;
13538 char *kwnames[] = {
13539 (char *) "self",(char *) "y", NULL
13540 };
13541
13542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13544 {
13545 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13546 if (PyErr_Occurred()) SWIG_fail;
13547 }
13548 {
13549 PyThreadState* __tstate = wxPyBeginAllowThreads();
13550 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13551
13552 wxPyEndAllowThreads(__tstate);
13553 if (PyErr_Occurred()) SWIG_fail;
13554 }
13555 resultobj = SWIG_PyObj_FromInt((int)result);
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxDC *arg1 = (wxDC *) 0 ;
13565 int arg2 ;
13566 int result;
13567 PyObject * obj0 = 0 ;
13568 PyObject * obj1 = 0 ;
13569 char *kwnames[] = {
13570 (char *) "self",(char *) "x", NULL
13571 };
13572
13573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13575 {
13576 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 {
13580 PyThreadState* __tstate = wxPyBeginAllowThreads();
13581 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13582
13583 wxPyEndAllowThreads(__tstate);
13584 if (PyErr_Occurred()) SWIG_fail;
13585 }
13586 resultobj = SWIG_PyObj_FromInt((int)result);
13587 return resultobj;
13588 fail:
13589 return NULL;
13590 }
13591
13592
13593 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13594 PyObject *resultobj;
13595 wxDC *arg1 = (wxDC *) 0 ;
13596 int arg2 ;
13597 int result;
13598 PyObject * obj0 = 0 ;
13599 PyObject * obj1 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self",(char *) "y", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13606 {
13607 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13613
13614 wxPyEndAllowThreads(__tstate);
13615 if (PyErr_Occurred()) SWIG_fail;
13616 }
13617 resultobj = SWIG_PyObj_FromInt((int)result);
13618 return resultobj;
13619 fail:
13620 return NULL;
13621 }
13622
13623
13624 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13625 PyObject *resultobj;
13626 wxDC *arg1 = (wxDC *) 0 ;
13627 bool result;
13628 PyObject * obj0 = 0 ;
13629 char *kwnames[] = {
13630 (char *) "self", NULL
13631 };
13632
13633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13635 {
13636 PyThreadState* __tstate = wxPyBeginAllowThreads();
13637 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13638
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj;
13651 wxDC *arg1 = (wxDC *) 0 ;
13652 bool result;
13653 PyObject * obj0 = 0 ;
13654 char *kwnames[] = {
13655 (char *) "self", NULL
13656 };
13657
13658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13660 {
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13663
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13668 return resultobj;
13669 fail:
13670 return NULL;
13671 }
13672
13673
13674 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13675 PyObject *resultobj;
13676 wxDC *arg1 = (wxDC *) 0 ;
13677 int result;
13678 PyObject * obj0 = 0 ;
13679 char *kwnames[] = {
13680 (char *) "self", NULL
13681 };
13682
13683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 result = (int)((wxDC const *)arg1)->GetDepth();
13688
13689 wxPyEndAllowThreads(__tstate);
13690 if (PyErr_Occurred()) SWIG_fail;
13691 }
13692 resultobj = SWIG_PyObj_FromInt((int)result);
13693 return resultobj;
13694 fail:
13695 return NULL;
13696 }
13697
13698
13699 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13700 PyObject *resultobj;
13701 wxDC *arg1 = (wxDC *) 0 ;
13702 wxSize result;
13703 PyObject * obj0 = 0 ;
13704 char *kwnames[] = {
13705 (char *) "self", NULL
13706 };
13707
13708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13709 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 result = ((wxDC const *)arg1)->GetPPI();
13713
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 {
13718 wxSize * resultptr;
13719 resultptr = new wxSize((wxSize &) result);
13720 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13721 }
13722 return resultobj;
13723 fail:
13724 return NULL;
13725 }
13726
13727
13728 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13729 PyObject *resultobj;
13730 wxDC *arg1 = (wxDC *) 0 ;
13731 bool result;
13732 PyObject * obj0 = 0 ;
13733 char *kwnames[] = {
13734 (char *) "self", NULL
13735 };
13736
13737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13739 {
13740 PyThreadState* __tstate = wxPyBeginAllowThreads();
13741 result = (bool)((wxDC const *)arg1)->Ok();
13742
13743 wxPyEndAllowThreads(__tstate);
13744 if (PyErr_Occurred()) SWIG_fail;
13745 }
13746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13747 return resultobj;
13748 fail:
13749 return NULL;
13750 }
13751
13752
13753 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13754 PyObject *resultobj;
13755 wxDC *arg1 = (wxDC *) 0 ;
13756 int result;
13757 PyObject * obj0 = 0 ;
13758 char *kwnames[] = {
13759 (char *) "self", NULL
13760 };
13761
13762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13764 {
13765 PyThreadState* __tstate = wxPyBeginAllowThreads();
13766 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13767
13768 wxPyEndAllowThreads(__tstate);
13769 if (PyErr_Occurred()) SWIG_fail;
13770 }
13771 resultobj = SWIG_PyObj_FromInt((int)result);
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj;
13780 wxDC *arg1 = (wxDC *) 0 ;
13781 wxBrush *result;
13782 PyObject * obj0 = 0 ;
13783 char *kwnames[] = {
13784 (char *) "self", NULL
13785 };
13786
13787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13789 {
13790 PyThreadState* __tstate = wxPyBeginAllowThreads();
13791 {
13792 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13793 result = (wxBrush *) &_result_ref;
13794 }
13795
13796 wxPyEndAllowThreads(__tstate);
13797 if (PyErr_Occurred()) SWIG_fail;
13798 }
13799 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13800 return resultobj;
13801 fail:
13802 return NULL;
13803 }
13804
13805
13806 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13807 PyObject *resultobj;
13808 wxDC *arg1 = (wxDC *) 0 ;
13809 wxBrush *result;
13810 PyObject * obj0 = 0 ;
13811 char *kwnames[] = {
13812 (char *) "self", NULL
13813 };
13814
13815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13817 {
13818 PyThreadState* __tstate = wxPyBeginAllowThreads();
13819 {
13820 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13821 result = (wxBrush *) &_result_ref;
13822 }
13823
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13828 return resultobj;
13829 fail:
13830 return NULL;
13831 }
13832
13833
13834 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13835 PyObject *resultobj;
13836 wxDC *arg1 = (wxDC *) 0 ;
13837 wxFont *result;
13838 PyObject * obj0 = 0 ;
13839 char *kwnames[] = {
13840 (char *) "self", NULL
13841 };
13842
13843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13845 {
13846 PyThreadState* __tstate = wxPyBeginAllowThreads();
13847 {
13848 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13849 result = (wxFont *) &_result_ref;
13850 }
13851
13852 wxPyEndAllowThreads(__tstate);
13853 if (PyErr_Occurred()) SWIG_fail;
13854 }
13855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13856 return resultobj;
13857 fail:
13858 return NULL;
13859 }
13860
13861
13862 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13863 PyObject *resultobj;
13864 wxDC *arg1 = (wxDC *) 0 ;
13865 wxPen *result;
13866 PyObject * obj0 = 0 ;
13867 char *kwnames[] = {
13868 (char *) "self", NULL
13869 };
13870
13871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13872 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13873 {
13874 PyThreadState* __tstate = wxPyBeginAllowThreads();
13875 {
13876 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13877 result = (wxPen *) &_result_ref;
13878 }
13879
13880 wxPyEndAllowThreads(__tstate);
13881 if (PyErr_Occurred()) SWIG_fail;
13882 }
13883 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13884 return resultobj;
13885 fail:
13886 return NULL;
13887 }
13888
13889
13890 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13891 PyObject *resultobj;
13892 wxDC *arg1 = (wxDC *) 0 ;
13893 wxColour *result;
13894 PyObject * obj0 = 0 ;
13895 char *kwnames[] = {
13896 (char *) "self", NULL
13897 };
13898
13899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13900 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13901 {
13902 PyThreadState* __tstate = wxPyBeginAllowThreads();
13903 {
13904 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13905 result = (wxColour *) &_result_ref;
13906 }
13907
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13912 return resultobj;
13913 fail:
13914 return NULL;
13915 }
13916
13917
13918 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13919 PyObject *resultobj;
13920 wxDC *arg1 = (wxDC *) 0 ;
13921 wxColour *result;
13922 PyObject * obj0 = 0 ;
13923 char *kwnames[] = {
13924 (char *) "self", NULL
13925 };
13926
13927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13928 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 {
13932 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13933 result = (wxColour *) &_result_ref;
13934 }
13935
13936 wxPyEndAllowThreads(__tstate);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13940 return resultobj;
13941 fail:
13942 return NULL;
13943 }
13944
13945
13946 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13947 PyObject *resultobj;
13948 wxDC *arg1 = (wxDC *) 0 ;
13949 wxColour *arg2 = 0 ;
13950 wxColour temp2 ;
13951 PyObject * obj0 = 0 ;
13952 PyObject * obj1 = 0 ;
13953 char *kwnames[] = {
13954 (char *) "self",(char *) "colour", NULL
13955 };
13956
13957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13958 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13959 {
13960 arg2 = &temp2;
13961 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13962 }
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 (arg1)->SetTextForeground((wxColour const &)*arg2);
13966
13967 wxPyEndAllowThreads(__tstate);
13968 if (PyErr_Occurred()) SWIG_fail;
13969 }
13970 Py_INCREF(Py_None); resultobj = Py_None;
13971 return resultobj;
13972 fail:
13973 return NULL;
13974 }
13975
13976
13977 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13978 PyObject *resultobj;
13979 wxDC *arg1 = (wxDC *) 0 ;
13980 wxColour *arg2 = 0 ;
13981 wxColour temp2 ;
13982 PyObject * obj0 = 0 ;
13983 PyObject * obj1 = 0 ;
13984 char *kwnames[] = {
13985 (char *) "self",(char *) "colour", NULL
13986 };
13987
13988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13990 {
13991 arg2 = &temp2;
13992 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13993 }
13994 {
13995 PyThreadState* __tstate = wxPyBeginAllowThreads();
13996 (arg1)->SetTextBackground((wxColour const &)*arg2);
13997
13998 wxPyEndAllowThreads(__tstate);
13999 if (PyErr_Occurred()) SWIG_fail;
14000 }
14001 Py_INCREF(Py_None); resultobj = Py_None;
14002 return resultobj;
14003 fail:
14004 return NULL;
14005 }
14006
14007
14008 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14009 PyObject *resultobj;
14010 wxDC *arg1 = (wxDC *) 0 ;
14011 int result;
14012 PyObject * obj0 = 0 ;
14013 char *kwnames[] = {
14014 (char *) "self", NULL
14015 };
14016
14017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14019 {
14020 PyThreadState* __tstate = wxPyBeginAllowThreads();
14021 result = (int)((wxDC const *)arg1)->GetMapMode();
14022
14023 wxPyEndAllowThreads(__tstate);
14024 if (PyErr_Occurred()) SWIG_fail;
14025 }
14026 resultobj = SWIG_PyObj_FromInt((int)result);
14027 return resultobj;
14028 fail:
14029 return NULL;
14030 }
14031
14032
14033 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14034 PyObject *resultobj;
14035 wxDC *arg1 = (wxDC *) 0 ;
14036 int arg2 ;
14037 PyObject * obj0 = 0 ;
14038 PyObject * obj1 = 0 ;
14039 char *kwnames[] = {
14040 (char *) "self",(char *) "mode", NULL
14041 };
14042
14043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14044 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14045 {
14046 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 (arg1)->SetMapMode(arg2);
14052
14053 wxPyEndAllowThreads(__tstate);
14054 if (PyErr_Occurred()) SWIG_fail;
14055 }
14056 Py_INCREF(Py_None); resultobj = Py_None;
14057 return resultobj;
14058 fail:
14059 return NULL;
14060 }
14061
14062
14063 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14064 PyObject *resultobj;
14065 wxDC *arg1 = (wxDC *) 0 ;
14066 double *arg2 = (double *) 0 ;
14067 double *arg3 = (double *) 0 ;
14068 double temp2 ;
14069 double temp3 ;
14070 PyObject * obj0 = 0 ;
14071 char *kwnames[] = {
14072 (char *) "self", NULL
14073 };
14074
14075 arg2 = &temp2;
14076 arg3 = &temp3;
14077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14079 {
14080 PyThreadState* __tstate = wxPyBeginAllowThreads();
14081 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14082
14083 wxPyEndAllowThreads(__tstate);
14084 if (PyErr_Occurred()) SWIG_fail;
14085 }
14086 Py_INCREF(Py_None); resultobj = Py_None;
14087 {
14088 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14089 resultobj = t_output_helper(resultobj,o);
14090 }
14091 {
14092 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14093 resultobj = t_output_helper(resultobj,o);
14094 }
14095 return resultobj;
14096 fail:
14097 return NULL;
14098 }
14099
14100
14101 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14102 PyObject *resultobj;
14103 wxDC *arg1 = (wxDC *) 0 ;
14104 double arg2 ;
14105 double arg3 ;
14106 PyObject * obj0 = 0 ;
14107 PyObject * obj1 = 0 ;
14108 PyObject * obj2 = 0 ;
14109 char *kwnames[] = {
14110 (char *) "self",(char *) "x",(char *) "y", NULL
14111 };
14112
14113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14114 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14115 {
14116 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 {
14120 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14121 if (PyErr_Occurred()) SWIG_fail;
14122 }
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 (arg1)->SetUserScale(arg2,arg3);
14126
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 Py_INCREF(Py_None); resultobj = Py_None;
14131 return resultobj;
14132 fail:
14133 return NULL;
14134 }
14135
14136
14137 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxDC *arg1 = (wxDC *) 0 ;
14140 double *arg2 = (double *) 0 ;
14141 double *arg3 = (double *) 0 ;
14142 double temp2 ;
14143 double temp3 ;
14144 PyObject * obj0 = 0 ;
14145 char *kwnames[] = {
14146 (char *) "self", NULL
14147 };
14148
14149 arg2 = &temp2;
14150 arg3 = &temp3;
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 (arg1)->GetLogicalScale(arg2,arg3);
14156
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 Py_INCREF(Py_None); resultobj = Py_None;
14161 {
14162 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14163 resultobj = t_output_helper(resultobj,o);
14164 }
14165 {
14166 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14167 resultobj = t_output_helper(resultobj,o);
14168 }
14169 return resultobj;
14170 fail:
14171 return NULL;
14172 }
14173
14174
14175 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14176 PyObject *resultobj;
14177 wxDC *arg1 = (wxDC *) 0 ;
14178 double arg2 ;
14179 double arg3 ;
14180 PyObject * obj0 = 0 ;
14181 PyObject * obj1 = 0 ;
14182 PyObject * obj2 = 0 ;
14183 char *kwnames[] = {
14184 (char *) "self",(char *) "x",(char *) "y", NULL
14185 };
14186
14187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14189 {
14190 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
14191 if (PyErr_Occurred()) SWIG_fail;
14192 }
14193 {
14194 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 {
14198 PyThreadState* __tstate = wxPyBeginAllowThreads();
14199 (arg1)->SetLogicalScale(arg2,arg3);
14200
14201 wxPyEndAllowThreads(__tstate);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 }
14204 Py_INCREF(Py_None); resultobj = Py_None;
14205 return resultobj;
14206 fail:
14207 return NULL;
14208 }
14209
14210
14211 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14212 PyObject *resultobj;
14213 wxDC *arg1 = (wxDC *) 0 ;
14214 wxPoint result;
14215 PyObject * obj0 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self", NULL
14218 };
14219
14220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14225
14226 wxPyEndAllowThreads(__tstate);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 {
14230 wxPoint * resultptr;
14231 resultptr = new wxPoint((wxPoint &) result);
14232 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14233 }
14234 return resultobj;
14235 fail:
14236 return NULL;
14237 }
14238
14239
14240 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14241 PyObject *resultobj;
14242 wxDC *arg1 = (wxDC *) 0 ;
14243 int *arg2 = (int *) 0 ;
14244 int *arg3 = (int *) 0 ;
14245 int temp2 ;
14246 int temp3 ;
14247 PyObject * obj0 = 0 ;
14248 char *kwnames[] = {
14249 (char *) "self", NULL
14250 };
14251
14252 arg2 = &temp2;
14253 arg3 = &temp3;
14254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14255 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14256 {
14257 PyThreadState* __tstate = wxPyBeginAllowThreads();
14258 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14259
14260 wxPyEndAllowThreads(__tstate);
14261 if (PyErr_Occurred()) SWIG_fail;
14262 }
14263 Py_INCREF(Py_None); resultobj = Py_None;
14264 {
14265 PyObject *o = PyInt_FromLong((long) (*arg2));
14266 resultobj = t_output_helper(resultobj,o);
14267 }
14268 {
14269 PyObject *o = PyInt_FromLong((long) (*arg3));
14270 resultobj = t_output_helper(resultobj,o);
14271 }
14272 return resultobj;
14273 fail:
14274 return NULL;
14275 }
14276
14277
14278 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14279 PyObject *resultobj;
14280 wxDC *arg1 = (wxDC *) 0 ;
14281 int arg2 ;
14282 int arg3 ;
14283 PyObject * obj0 = 0 ;
14284 PyObject * obj1 = 0 ;
14285 PyObject * obj2 = 0 ;
14286 char *kwnames[] = {
14287 (char *) "self",(char *) "x",(char *) "y", NULL
14288 };
14289
14290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14292 {
14293 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 {
14297 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14298 if (PyErr_Occurred()) SWIG_fail;
14299 }
14300 {
14301 PyThreadState* __tstate = wxPyBeginAllowThreads();
14302 (arg1)->SetLogicalOrigin(arg2,arg3);
14303
14304 wxPyEndAllowThreads(__tstate);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 Py_INCREF(Py_None); resultobj = Py_None;
14308 return resultobj;
14309 fail:
14310 return NULL;
14311 }
14312
14313
14314 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14315 PyObject *resultobj;
14316 wxDC *arg1 = (wxDC *) 0 ;
14317 wxPoint result;
14318 PyObject * obj0 = 0 ;
14319 char *kwnames[] = {
14320 (char *) "self", NULL
14321 };
14322
14323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14324 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14325 {
14326 PyThreadState* __tstate = wxPyBeginAllowThreads();
14327 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14328
14329 wxPyEndAllowThreads(__tstate);
14330 if (PyErr_Occurred()) SWIG_fail;
14331 }
14332 {
14333 wxPoint * resultptr;
14334 resultptr = new wxPoint((wxPoint &) result);
14335 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
14336 }
14337 return resultobj;
14338 fail:
14339 return NULL;
14340 }
14341
14342
14343 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14344 PyObject *resultobj;
14345 wxDC *arg1 = (wxDC *) 0 ;
14346 int *arg2 = (int *) 0 ;
14347 int *arg3 = (int *) 0 ;
14348 int temp2 ;
14349 int temp3 ;
14350 PyObject * obj0 = 0 ;
14351 char *kwnames[] = {
14352 (char *) "self", NULL
14353 };
14354
14355 arg2 = &temp2;
14356 arg3 = &temp3;
14357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14358 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14362
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 Py_INCREF(Py_None); resultobj = Py_None;
14367 {
14368 PyObject *o = PyInt_FromLong((long) (*arg2));
14369 resultobj = t_output_helper(resultobj,o);
14370 }
14371 {
14372 PyObject *o = PyInt_FromLong((long) (*arg3));
14373 resultobj = t_output_helper(resultobj,o);
14374 }
14375 return resultobj;
14376 fail:
14377 return NULL;
14378 }
14379
14380
14381 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14382 PyObject *resultobj;
14383 wxDC *arg1 = (wxDC *) 0 ;
14384 int arg2 ;
14385 int arg3 ;
14386 PyObject * obj0 = 0 ;
14387 PyObject * obj1 = 0 ;
14388 PyObject * obj2 = 0 ;
14389 char *kwnames[] = {
14390 (char *) "self",(char *) "x",(char *) "y", NULL
14391 };
14392
14393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14395 {
14396 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14397 if (PyErr_Occurred()) SWIG_fail;
14398 }
14399 {
14400 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 }
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 (arg1)->SetDeviceOrigin(arg2,arg3);
14406
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 Py_INCREF(Py_None); resultobj = Py_None;
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14418 PyObject *resultobj;
14419 wxDC *arg1 = (wxDC *) 0 ;
14420 bool arg2 ;
14421 bool arg3 ;
14422 PyObject * obj0 = 0 ;
14423 PyObject * obj1 = 0 ;
14424 PyObject * obj2 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14431 {
14432 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 {
14436 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 (arg1)->SetAxisOrientation(arg2,arg3);
14442
14443 wxPyEndAllowThreads(__tstate);
14444 if (PyErr_Occurred()) SWIG_fail;
14445 }
14446 Py_INCREF(Py_None); resultobj = Py_None;
14447 return resultobj;
14448 fail:
14449 return NULL;
14450 }
14451
14452
14453 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14454 PyObject *resultobj;
14455 wxDC *arg1 = (wxDC *) 0 ;
14456 int result;
14457 PyObject * obj0 = 0 ;
14458 char *kwnames[] = {
14459 (char *) "self", NULL
14460 };
14461
14462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14464 {
14465 PyThreadState* __tstate = wxPyBeginAllowThreads();
14466 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14467
14468 wxPyEndAllowThreads(__tstate);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 }
14471 resultobj = SWIG_PyObj_FromInt((int)result);
14472 return resultobj;
14473 fail:
14474 return NULL;
14475 }
14476
14477
14478 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14479 PyObject *resultobj;
14480 wxDC *arg1 = (wxDC *) 0 ;
14481 int arg2 ;
14482 PyObject * obj0 = 0 ;
14483 PyObject * obj1 = 0 ;
14484 char *kwnames[] = {
14485 (char *) "self",(char *) "function", NULL
14486 };
14487
14488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14490 {
14491 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 (arg1)->SetLogicalFunction(arg2);
14497
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 Py_INCREF(Py_None); resultobj = Py_None;
14502 return resultobj;
14503 fail:
14504 return NULL;
14505 }
14506
14507
14508 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj;
14510 wxDC *arg1 = (wxDC *) 0 ;
14511 bool arg2 ;
14512 PyObject * obj0 = 0 ;
14513 PyObject * obj1 = 0 ;
14514 char *kwnames[] = {
14515 (char *) "self",(char *) "opt", NULL
14516 };
14517
14518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14519 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14520 {
14521 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 (arg1)->SetOptimization(arg2);
14527
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 Py_INCREF(Py_None); resultobj = Py_None;
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj;
14540 wxDC *arg1 = (wxDC *) 0 ;
14541 bool result;
14542 PyObject * obj0 = 0 ;
14543 char *kwnames[] = {
14544 (char *) "self", NULL
14545 };
14546
14547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14548 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 result = (bool)(arg1)->GetOptimization();
14552
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj;
14565 wxDC *arg1 = (wxDC *) 0 ;
14566 int arg2 ;
14567 int arg3 ;
14568 PyObject * obj0 = 0 ;
14569 PyObject * obj1 = 0 ;
14570 PyObject * obj2 = 0 ;
14571 char *kwnames[] = {
14572 (char *) "self",(char *) "x",(char *) "y", NULL
14573 };
14574
14575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14577 {
14578 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14579 if (PyErr_Occurred()) SWIG_fail;
14580 }
14581 {
14582 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14583 if (PyErr_Occurred()) SWIG_fail;
14584 }
14585 {
14586 PyThreadState* __tstate = wxPyBeginAllowThreads();
14587 (arg1)->CalcBoundingBox(arg2,arg3);
14588
14589 wxPyEndAllowThreads(__tstate);
14590 if (PyErr_Occurred()) SWIG_fail;
14591 }
14592 Py_INCREF(Py_None); resultobj = Py_None;
14593 return resultobj;
14594 fail:
14595 return NULL;
14596 }
14597
14598
14599 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14600 PyObject *resultobj;
14601 wxDC *arg1 = (wxDC *) 0 ;
14602 PyObject * obj0 = 0 ;
14603 char *kwnames[] = {
14604 (char *) "self", NULL
14605 };
14606
14607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14609 {
14610 PyThreadState* __tstate = wxPyBeginAllowThreads();
14611 (arg1)->ResetBoundingBox();
14612
14613 wxPyEndAllowThreads(__tstate);
14614 if (PyErr_Occurred()) SWIG_fail;
14615 }
14616 Py_INCREF(Py_None); resultobj = Py_None;
14617 return resultobj;
14618 fail:
14619 return NULL;
14620 }
14621
14622
14623 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14624 PyObject *resultobj;
14625 wxDC *arg1 = (wxDC *) 0 ;
14626 int result;
14627 PyObject * obj0 = 0 ;
14628 char *kwnames[] = {
14629 (char *) "self", NULL
14630 };
14631
14632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14634 {
14635 PyThreadState* __tstate = wxPyBeginAllowThreads();
14636 result = (int)((wxDC const *)arg1)->MinX();
14637
14638 wxPyEndAllowThreads(__tstate);
14639 if (PyErr_Occurred()) SWIG_fail;
14640 }
14641 resultobj = SWIG_PyObj_FromInt((int)result);
14642 return resultobj;
14643 fail:
14644 return NULL;
14645 }
14646
14647
14648 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14649 PyObject *resultobj;
14650 wxDC *arg1 = (wxDC *) 0 ;
14651 int result;
14652 PyObject * obj0 = 0 ;
14653 char *kwnames[] = {
14654 (char *) "self", NULL
14655 };
14656
14657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14659 {
14660 PyThreadState* __tstate = wxPyBeginAllowThreads();
14661 result = (int)((wxDC const *)arg1)->MaxX();
14662
14663 wxPyEndAllowThreads(__tstate);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 resultobj = SWIG_PyObj_FromInt((int)result);
14667 return resultobj;
14668 fail:
14669 return NULL;
14670 }
14671
14672
14673 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj;
14675 wxDC *arg1 = (wxDC *) 0 ;
14676 int result;
14677 PyObject * obj0 = 0 ;
14678 char *kwnames[] = {
14679 (char *) "self", NULL
14680 };
14681
14682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 result = (int)((wxDC const *)arg1)->MinY();
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 resultobj = SWIG_PyObj_FromInt((int)result);
14692 return resultobj;
14693 fail:
14694 return NULL;
14695 }
14696
14697
14698 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14699 PyObject *resultobj;
14700 wxDC *arg1 = (wxDC *) 0 ;
14701 int result;
14702 PyObject * obj0 = 0 ;
14703 char *kwnames[] = {
14704 (char *) "self", NULL
14705 };
14706
14707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14708 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14709 {
14710 PyThreadState* __tstate = wxPyBeginAllowThreads();
14711 result = (int)((wxDC const *)arg1)->MaxY();
14712
14713 wxPyEndAllowThreads(__tstate);
14714 if (PyErr_Occurred()) SWIG_fail;
14715 }
14716 resultobj = SWIG_PyObj_FromInt((int)result);
14717 return resultobj;
14718 fail:
14719 return NULL;
14720 }
14721
14722
14723 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14724 PyObject *resultobj;
14725 wxDC *arg1 = (wxDC *) 0 ;
14726 int *arg2 = (int *) 0 ;
14727 int *arg3 = (int *) 0 ;
14728 int *arg4 = (int *) 0 ;
14729 int *arg5 = (int *) 0 ;
14730 int temp2 ;
14731 int temp3 ;
14732 int temp4 ;
14733 int temp5 ;
14734 PyObject * obj0 = 0 ;
14735 char *kwnames[] = {
14736 (char *) "self", NULL
14737 };
14738
14739 arg2 = &temp2;
14740 arg3 = &temp3;
14741 arg4 = &temp4;
14742 arg5 = &temp5;
14743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 Py_INCREF(Py_None); resultobj = Py_None;
14753 {
14754 PyObject *o = PyInt_FromLong((long) (*arg2));
14755 resultobj = t_output_helper(resultobj,o);
14756 }
14757 {
14758 PyObject *o = PyInt_FromLong((long) (*arg3));
14759 resultobj = t_output_helper(resultobj,o);
14760 }
14761 {
14762 PyObject *o = PyInt_FromLong((long) (*arg4));
14763 resultobj = t_output_helper(resultobj,o);
14764 }
14765 {
14766 PyObject *o = PyInt_FromLong((long) (*arg5));
14767 resultobj = t_output_helper(resultobj,o);
14768 }
14769 return resultobj;
14770 fail:
14771 return NULL;
14772 }
14773
14774
14775 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14776 PyObject *resultobj;
14777 wxDC *arg1 = (wxDC *) 0 ;
14778 PyObject *arg2 = (PyObject *) 0 ;
14779 PyObject *arg3 = (PyObject *) 0 ;
14780 PyObject *arg4 = (PyObject *) 0 ;
14781 PyObject *result;
14782 PyObject * obj0 = 0 ;
14783 PyObject * obj1 = 0 ;
14784 PyObject * obj2 = 0 ;
14785 PyObject * obj3 = 0 ;
14786 char *kwnames[] = {
14787 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14788 };
14789
14790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14792 arg2 = obj1;
14793 arg3 = obj2;
14794 arg4 = obj3;
14795 {
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14798
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 resultobj = result;
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxDC *arg1 = (wxDC *) 0 ;
14812 PyObject *arg2 = (PyObject *) 0 ;
14813 PyObject *arg3 = (PyObject *) 0 ;
14814 PyObject *arg4 = (PyObject *) 0 ;
14815 PyObject *result;
14816 PyObject * obj0 = 0 ;
14817 PyObject * obj1 = 0 ;
14818 PyObject * obj2 = 0 ;
14819 PyObject * obj3 = 0 ;
14820 char *kwnames[] = {
14821 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14822 };
14823
14824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14825 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14826 arg2 = obj1;
14827 arg3 = obj2;
14828 arg4 = obj3;
14829 {
14830 PyThreadState* __tstate = wxPyBeginAllowThreads();
14831 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14832
14833 wxPyEndAllowThreads(__tstate);
14834 if (PyErr_Occurred()) SWIG_fail;
14835 }
14836 resultobj = result;
14837 return resultobj;
14838 fail:
14839 return NULL;
14840 }
14841
14842
14843 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14844 PyObject *resultobj;
14845 wxDC *arg1 = (wxDC *) 0 ;
14846 PyObject *arg2 = (PyObject *) 0 ;
14847 PyObject *arg3 = (PyObject *) 0 ;
14848 PyObject *arg4 = (PyObject *) 0 ;
14849 PyObject *result;
14850 PyObject * obj0 = 0 ;
14851 PyObject * obj1 = 0 ;
14852 PyObject * obj2 = 0 ;
14853 PyObject * obj3 = 0 ;
14854 char *kwnames[] = {
14855 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14856 };
14857
14858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14859 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14860 arg2 = obj1;
14861 arg3 = obj2;
14862 arg4 = obj3;
14863 {
14864 PyThreadState* __tstate = wxPyBeginAllowThreads();
14865 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14866
14867 wxPyEndAllowThreads(__tstate);
14868 if (PyErr_Occurred()) SWIG_fail;
14869 }
14870 resultobj = result;
14871 return resultobj;
14872 fail:
14873 return NULL;
14874 }
14875
14876
14877 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14878 PyObject *resultobj;
14879 wxDC *arg1 = (wxDC *) 0 ;
14880 PyObject *arg2 = (PyObject *) 0 ;
14881 PyObject *arg3 = (PyObject *) 0 ;
14882 PyObject *arg4 = (PyObject *) 0 ;
14883 PyObject *result;
14884 PyObject * obj0 = 0 ;
14885 PyObject * obj1 = 0 ;
14886 PyObject * obj2 = 0 ;
14887 PyObject * obj3 = 0 ;
14888 char *kwnames[] = {
14889 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14890 };
14891
14892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14894 arg2 = obj1;
14895 arg3 = obj2;
14896 arg4 = obj3;
14897 {
14898 PyThreadState* __tstate = wxPyBeginAllowThreads();
14899 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14900
14901 wxPyEndAllowThreads(__tstate);
14902 if (PyErr_Occurred()) SWIG_fail;
14903 }
14904 resultobj = result;
14905 return resultobj;
14906 fail:
14907 return NULL;
14908 }
14909
14910
14911 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj;
14913 wxDC *arg1 = (wxDC *) 0 ;
14914 PyObject *arg2 = (PyObject *) 0 ;
14915 PyObject *arg3 = (PyObject *) 0 ;
14916 PyObject *arg4 = (PyObject *) 0 ;
14917 PyObject *result;
14918 PyObject * obj0 = 0 ;
14919 PyObject * obj1 = 0 ;
14920 PyObject * obj2 = 0 ;
14921 PyObject * obj3 = 0 ;
14922 char *kwnames[] = {
14923 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14924 };
14925
14926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14928 arg2 = obj1;
14929 arg3 = obj2;
14930 arg4 = obj3;
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14934
14935 wxPyEndAllowThreads(__tstate);
14936 if (PyErr_Occurred()) SWIG_fail;
14937 }
14938 resultobj = result;
14939 return resultobj;
14940 fail:
14941 return NULL;
14942 }
14943
14944
14945 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxDC *arg1 = (wxDC *) 0 ;
14948 PyObject *arg2 = (PyObject *) 0 ;
14949 PyObject *arg3 = (PyObject *) 0 ;
14950 PyObject *arg4 = (PyObject *) 0 ;
14951 PyObject *arg5 = (PyObject *) 0 ;
14952 PyObject *result;
14953 PyObject * obj0 = 0 ;
14954 PyObject * obj1 = 0 ;
14955 PyObject * obj2 = 0 ;
14956 PyObject * obj3 = 0 ;
14957 PyObject * obj4 = 0 ;
14958 char *kwnames[] = {
14959 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14960 };
14961
14962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14964 arg2 = obj1;
14965 arg3 = obj2;
14966 arg4 = obj3;
14967 arg5 = obj4;
14968 {
14969 PyThreadState* __tstate = wxPyBeginAllowThreads();
14970 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14971
14972 wxPyEndAllowThreads(__tstate);
14973 if (PyErr_Occurred()) SWIG_fail;
14974 }
14975 resultobj = result;
14976 return resultobj;
14977 fail:
14978 return NULL;
14979 }
14980
14981
14982 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14983 PyObject *obj;
14984 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14985 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14986 Py_INCREF(obj);
14987 return Py_BuildValue((char *)"");
14988 }
14989 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14990 PyObject *resultobj;
14991 wxMemoryDC *result;
14992 char *kwnames[] = {
14993 NULL
14994 };
14995
14996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14997 {
14998 PyThreadState* __tstate = wxPyBeginAllowThreads();
14999 result = (wxMemoryDC *)new wxMemoryDC();
15000
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15005 return resultobj;
15006 fail:
15007 return NULL;
15008 }
15009
15010
15011 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15012 PyObject *resultobj;
15013 wxDC *arg1 = (wxDC *) 0 ;
15014 wxMemoryDC *result;
15015 PyObject * obj0 = 0 ;
15016 char *kwnames[] = {
15017 (char *) "oldDC", NULL
15018 };
15019
15020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15021 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15022 {
15023 PyThreadState* __tstate = wxPyBeginAllowThreads();
15024 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15025
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
15030 return resultobj;
15031 fail:
15032 return NULL;
15033 }
15034
15035
15036 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15037 PyObject *resultobj;
15038 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15039 wxBitmap *arg2 = 0 ;
15040 PyObject * obj0 = 0 ;
15041 PyObject * obj1 = 0 ;
15042 char *kwnames[] = {
15043 (char *) "self",(char *) "bitmap", NULL
15044 };
15045
15046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15048 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15049 if (arg2 == NULL) {
15050 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15051 }
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 (arg1)->SelectObject((wxBitmap const &)*arg2);
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 Py_INCREF(Py_None); resultobj = Py_None;
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15067 PyObject *obj;
15068 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15069 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15070 Py_INCREF(obj);
15071 return Py_BuildValue((char *)"");
15072 }
15073 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15074 PyObject *resultobj;
15075 wxDC *arg1 = (wxDC *) 0 ;
15076 wxBitmap *arg2 = 0 ;
15077 wxBufferedDC *result;
15078 PyObject * obj0 = 0 ;
15079 PyObject * obj1 = 0 ;
15080 char *kwnames[] = {
15081 (char *) "dc",(char *) "buffer", NULL
15082 };
15083
15084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
15085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15086 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15087 if (arg2 == NULL) {
15088 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15089 }
15090 {
15091 PyThreadState* __tstate = wxPyBeginAllowThreads();
15092 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15093
15094 wxPyEndAllowThreads(__tstate);
15095 if (PyErr_Occurred()) SWIG_fail;
15096 }
15097 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15098 return resultobj;
15099 fail:
15100 return NULL;
15101 }
15102
15103
15104 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
15105 PyObject *resultobj;
15106 wxDC *arg1 = (wxDC *) 0 ;
15107 wxSize *arg2 = 0 ;
15108 wxBufferedDC *result;
15109 wxSize temp2 ;
15110 PyObject * obj0 = 0 ;
15111 PyObject * obj1 = 0 ;
15112 char *kwnames[] = {
15113 (char *) "dc",(char *) "area", NULL
15114 };
15115
15116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
15117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15118 {
15119 arg2 = &temp2;
15120 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15121 }
15122 {
15123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15124 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15125
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
15130 return resultobj;
15131 fail:
15132 return NULL;
15133 }
15134
15135
15136 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15137 PyObject *resultobj;
15138 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15139 PyObject * obj0 = 0 ;
15140 char *kwnames[] = {
15141 (char *) "self", NULL
15142 };
15143
15144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15146 {
15147 PyThreadState* __tstate = wxPyBeginAllowThreads();
15148 (arg1)->UnMask();
15149
15150 wxPyEndAllowThreads(__tstate);
15151 if (PyErr_Occurred()) SWIG_fail;
15152 }
15153 Py_INCREF(Py_None); resultobj = Py_None;
15154 return resultobj;
15155 fail:
15156 return NULL;
15157 }
15158
15159
15160 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15161 PyObject *obj;
15162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15163 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15164 Py_INCREF(obj);
15165 return Py_BuildValue((char *)"");
15166 }
15167 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15168 PyObject *resultobj;
15169 wxWindow *arg1 = (wxWindow *) 0 ;
15170 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15171 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15172 wxBufferedPaintDC *result;
15173 PyObject * obj0 = 0 ;
15174 PyObject * obj1 = 0 ;
15175 char *kwnames[] = {
15176 (char *) "window",(char *) "buffer", NULL
15177 };
15178
15179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15180 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15181 if (obj1) {
15182 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15183 if (arg2 == NULL) {
15184 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15185 }
15186 }
15187 {
15188 PyThreadState* __tstate = wxPyBeginAllowThreads();
15189 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15190
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
15195 return resultobj;
15196 fail:
15197 return NULL;
15198 }
15199
15200
15201 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15202 PyObject *obj;
15203 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15204 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15205 Py_INCREF(obj);
15206 return Py_BuildValue((char *)"");
15207 }
15208 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15209 PyObject *resultobj;
15210 wxScreenDC *result;
15211 char *kwnames[] = {
15212 NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = (wxScreenDC *)new wxScreenDC();
15219
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
15224 return resultobj;
15225 fail:
15226 return NULL;
15227 }
15228
15229
15230 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15231 PyObject *resultobj;
15232 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15233 wxWindow *arg2 = (wxWindow *) 0 ;
15234 bool result;
15235 PyObject * obj0 = 0 ;
15236 PyObject * obj1 = 0 ;
15237 char *kwnames[] = {
15238 (char *) "self",(char *) "window", NULL
15239 };
15240
15241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15243 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15244 {
15245 PyThreadState* __tstate = wxPyBeginAllowThreads();
15246 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15247
15248 wxPyEndAllowThreads(__tstate);
15249 if (PyErr_Occurred()) SWIG_fail;
15250 }
15251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15252 return resultobj;
15253 fail:
15254 return NULL;
15255 }
15256
15257
15258 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15259 PyObject *resultobj;
15260 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15261 wxRect *arg2 = (wxRect *) NULL ;
15262 bool result;
15263 PyObject * obj0 = 0 ;
15264 PyObject * obj1 = 0 ;
15265 char *kwnames[] = {
15266 (char *) "self",(char *) "rect", NULL
15267 };
15268
15269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15271 if (obj1) {
15272 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15273 }
15274 {
15275 PyThreadState* __tstate = wxPyBeginAllowThreads();
15276 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15277
15278 wxPyEndAllowThreads(__tstate);
15279 if (PyErr_Occurred()) SWIG_fail;
15280 }
15281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15282 return resultobj;
15283 fail:
15284 return NULL;
15285 }
15286
15287
15288 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15289 PyObject *resultobj;
15290 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15291 bool result;
15292 PyObject * obj0 = 0 ;
15293 char *kwnames[] = {
15294 (char *) "self", NULL
15295 };
15296
15297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15299 {
15300 PyThreadState* __tstate = wxPyBeginAllowThreads();
15301 result = (bool)(arg1)->EndDrawingOnTop();
15302
15303 wxPyEndAllowThreads(__tstate);
15304 if (PyErr_Occurred()) SWIG_fail;
15305 }
15306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15307 return resultobj;
15308 fail:
15309 return NULL;
15310 }
15311
15312
15313 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15314 PyObject *obj;
15315 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15316 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15317 Py_INCREF(obj);
15318 return Py_BuildValue((char *)"");
15319 }
15320 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj;
15322 wxWindow *arg1 = (wxWindow *) 0 ;
15323 wxClientDC *result;
15324 PyObject * obj0 = 0 ;
15325 char *kwnames[] = {
15326 (char *) "win", NULL
15327 };
15328
15329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15330 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = (wxClientDC *)new wxClientDC(arg1);
15334
15335 wxPyEndAllowThreads(__tstate);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15339 return resultobj;
15340 fail:
15341 return NULL;
15342 }
15343
15344
15345 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15346 PyObject *obj;
15347 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15348 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15349 Py_INCREF(obj);
15350 return Py_BuildValue((char *)"");
15351 }
15352 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15353 PyObject *resultobj;
15354 wxWindow *arg1 = (wxWindow *) 0 ;
15355 wxPaintDC *result;
15356 PyObject * obj0 = 0 ;
15357 char *kwnames[] = {
15358 (char *) "win", NULL
15359 };
15360
15361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15363 {
15364 PyThreadState* __tstate = wxPyBeginAllowThreads();
15365 result = (wxPaintDC *)new wxPaintDC(arg1);
15366
15367 wxPyEndAllowThreads(__tstate);
15368 if (PyErr_Occurred()) SWIG_fail;
15369 }
15370 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15371 return resultobj;
15372 fail:
15373 return NULL;
15374 }
15375
15376
15377 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15378 PyObject *obj;
15379 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15380 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15381 Py_INCREF(obj);
15382 return Py_BuildValue((char *)"");
15383 }
15384 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxWindow *arg1 = (wxWindow *) 0 ;
15387 wxWindowDC *result;
15388 PyObject * obj0 = 0 ;
15389 char *kwnames[] = {
15390 (char *) "win", NULL
15391 };
15392
15393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15395 {
15396 PyThreadState* __tstate = wxPyBeginAllowThreads();
15397 result = (wxWindowDC *)new wxWindowDC(arg1);
15398
15399 wxPyEndAllowThreads(__tstate);
15400 if (PyErr_Occurred()) SWIG_fail;
15401 }
15402 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15403 return resultobj;
15404 fail:
15405 return NULL;
15406 }
15407
15408
15409 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15410 PyObject *obj;
15411 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15412 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15413 Py_INCREF(obj);
15414 return Py_BuildValue((char *)"");
15415 }
15416 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15417 PyObject *resultobj;
15418 wxDC *arg1 = 0 ;
15419 bool arg2 ;
15420 wxMirrorDC *result;
15421 PyObject * obj0 = 0 ;
15422 PyObject * obj1 = 0 ;
15423 char *kwnames[] = {
15424 (char *) "dc",(char *) "mirror", NULL
15425 };
15426
15427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15428 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15429 if (arg1 == NULL) {
15430 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15431 }
15432 {
15433 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15434 if (PyErr_Occurred()) SWIG_fail;
15435 }
15436 {
15437 PyThreadState* __tstate = wxPyBeginAllowThreads();
15438 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15439
15440 wxPyEndAllowThreads(__tstate);
15441 if (PyErr_Occurred()) SWIG_fail;
15442 }
15443 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15444 return resultobj;
15445 fail:
15446 return NULL;
15447 }
15448
15449
15450 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15451 PyObject *obj;
15452 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15453 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15454 Py_INCREF(obj);
15455 return Py_BuildValue((char *)"");
15456 }
15457 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15458 PyObject *resultobj;
15459 wxPrintData *arg1 = 0 ;
15460 wxPostScriptDC *result;
15461 PyObject * obj0 = 0 ;
15462 char *kwnames[] = {
15463 (char *) "printData", NULL
15464 };
15465
15466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15467 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15468 if (arg1 == NULL) {
15469 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15470 }
15471 {
15472 PyThreadState* __tstate = wxPyBeginAllowThreads();
15473 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15474
15475 wxPyEndAllowThreads(__tstate);
15476 if (PyErr_Occurred()) SWIG_fail;
15477 }
15478 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15479 return resultobj;
15480 fail:
15481 return NULL;
15482 }
15483
15484
15485 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15486 PyObject *resultobj;
15487 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15488 wxPrintData *result;
15489 PyObject * obj0 = 0 ;
15490 char *kwnames[] = {
15491 (char *) "self", NULL
15492 };
15493
15494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15496 {
15497 PyThreadState* __tstate = wxPyBeginAllowThreads();
15498 {
15499 wxPrintData &_result_ref = (arg1)->GetPrintData();
15500 result = (wxPrintData *) &_result_ref;
15501 }
15502
15503 wxPyEndAllowThreads(__tstate);
15504 if (PyErr_Occurred()) SWIG_fail;
15505 }
15506 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15507 return resultobj;
15508 fail:
15509 return NULL;
15510 }
15511
15512
15513 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15514 PyObject *resultobj;
15515 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15516 wxPrintData *arg2 = 0 ;
15517 PyObject * obj0 = 0 ;
15518 PyObject * obj1 = 0 ;
15519 char *kwnames[] = {
15520 (char *) "self",(char *) "data", NULL
15521 };
15522
15523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15525 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15526 if (arg2 == NULL) {
15527 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15528 }
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15532
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 Py_INCREF(Py_None); resultobj = Py_None;
15537 return resultobj;
15538 fail:
15539 return NULL;
15540 }
15541
15542
15543 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj;
15545 int arg1 ;
15546 PyObject * obj0 = 0 ;
15547 char *kwnames[] = {
15548 (char *) "ppi", NULL
15549 };
15550
15551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15552 {
15553 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 {
15557 PyThreadState* __tstate = wxPyBeginAllowThreads();
15558 wxPostScriptDC::SetResolution(arg1);
15559
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 Py_INCREF(Py_None); resultobj = Py_None;
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj;
15572 int result;
15573 char *kwnames[] = {
15574 NULL
15575 };
15576
15577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15578 {
15579 PyThreadState* __tstate = wxPyBeginAllowThreads();
15580 result = (int)wxPostScriptDC::GetResolution();
15581
15582 wxPyEndAllowThreads(__tstate);
15583 if (PyErr_Occurred()) SWIG_fail;
15584 }
15585 resultobj = SWIG_PyObj_FromInt((int)result);
15586 return resultobj;
15587 fail:
15588 return NULL;
15589 }
15590
15591
15592 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15593 PyObject *obj;
15594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15595 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15596 Py_INCREF(obj);
15597 return Py_BuildValue((char *)"");
15598 }
15599 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15600 PyObject *resultobj;
15601 wxString const &arg1_defvalue = wxPyEmptyString ;
15602 wxString *arg1 = (wxString *) &arg1_defvalue ;
15603 wxMetaFile *result;
15604 bool temp1 = False ;
15605 PyObject * obj0 = 0 ;
15606 char *kwnames[] = {
15607 (char *) "filename", NULL
15608 };
15609
15610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15611 if (obj0) {
15612 {
15613 arg1 = wxString_in_helper(obj0);
15614 if (arg1 == NULL) SWIG_fail;
15615 temp1 = True;
15616 }
15617 }
15618 {
15619 PyThreadState* __tstate = wxPyBeginAllowThreads();
15620 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15621
15622 wxPyEndAllowThreads(__tstate);
15623 if (PyErr_Occurred()) SWIG_fail;
15624 }
15625 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15626 {
15627 if (temp1)
15628 delete arg1;
15629 }
15630 return resultobj;
15631 fail:
15632 {
15633 if (temp1)
15634 delete arg1;
15635 }
15636 return NULL;
15637 }
15638
15639
15640 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15641 PyObject *resultobj;
15642 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15643 PyObject * obj0 = 0 ;
15644 char *kwnames[] = {
15645 (char *) "self", NULL
15646 };
15647
15648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15650 {
15651 PyThreadState* __tstate = wxPyBeginAllowThreads();
15652 delete arg1;
15653
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 Py_INCREF(Py_None); resultobj = Py_None;
15658 return resultobj;
15659 fail:
15660 return NULL;
15661 }
15662
15663
15664 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15665 PyObject *resultobj;
15666 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15667 bool result;
15668 PyObject * obj0 = 0 ;
15669 char *kwnames[] = {
15670 (char *) "self", NULL
15671 };
15672
15673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15675 {
15676 PyThreadState* __tstate = wxPyBeginAllowThreads();
15677 result = (bool)(arg1)->Ok();
15678
15679 wxPyEndAllowThreads(__tstate);
15680 if (PyErr_Occurred()) SWIG_fail;
15681 }
15682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15683 return resultobj;
15684 fail:
15685 return NULL;
15686 }
15687
15688
15689 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15690 PyObject *resultobj;
15691 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15692 int arg2 = (int) 0 ;
15693 int arg3 = (int) 0 ;
15694 bool result;
15695 PyObject * obj0 = 0 ;
15696 PyObject * obj1 = 0 ;
15697 PyObject * obj2 = 0 ;
15698 char *kwnames[] = {
15699 (char *) "self",(char *) "width",(char *) "height", NULL
15700 };
15701
15702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15704 if (obj1) {
15705 {
15706 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15707 if (PyErr_Occurred()) SWIG_fail;
15708 }
15709 }
15710 if (obj2) {
15711 {
15712 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
15715 }
15716 {
15717 PyThreadState* __tstate = wxPyBeginAllowThreads();
15718 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15719
15720 wxPyEndAllowThreads(__tstate);
15721 if (PyErr_Occurred()) SWIG_fail;
15722 }
15723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15724 return resultobj;
15725 fail:
15726 return NULL;
15727 }
15728
15729
15730 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15731 PyObject *resultobj;
15732 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15733 wxSize result;
15734 PyObject * obj0 = 0 ;
15735 char *kwnames[] = {
15736 (char *) "self", NULL
15737 };
15738
15739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15740 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15741 {
15742 PyThreadState* __tstate = wxPyBeginAllowThreads();
15743 result = (arg1)->GetSize();
15744
15745 wxPyEndAllowThreads(__tstate);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 {
15749 wxSize * resultptr;
15750 resultptr = new wxSize((wxSize &) result);
15751 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
15752 }
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj;
15761 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15762 int result;
15763 PyObject * obj0 = 0 ;
15764 char *kwnames[] = {
15765 (char *) "self", NULL
15766 };
15767
15768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15769 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15770 {
15771 PyThreadState* __tstate = wxPyBeginAllowThreads();
15772 result = (int)(arg1)->GetWidth();
15773
15774 wxPyEndAllowThreads(__tstate);
15775 if (PyErr_Occurred()) SWIG_fail;
15776 }
15777 resultobj = SWIG_PyObj_FromInt((int)result);
15778 return resultobj;
15779 fail:
15780 return NULL;
15781 }
15782
15783
15784 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15785 PyObject *resultobj;
15786 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15787 int result;
15788 PyObject * obj0 = 0 ;
15789 char *kwnames[] = {
15790 (char *) "self", NULL
15791 };
15792
15793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 result = (int)(arg1)->GetHeight();
15798
15799 wxPyEndAllowThreads(__tstate);
15800 if (PyErr_Occurred()) SWIG_fail;
15801 }
15802 resultobj = SWIG_PyObj_FromInt((int)result);
15803 return resultobj;
15804 fail:
15805 return NULL;
15806 }
15807
15808
15809 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
15810 PyObject *resultobj;
15811 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15812 wxString *result;
15813 PyObject * obj0 = 0 ;
15814 char *kwnames[] = {
15815 (char *) "self", NULL
15816 };
15817
15818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
15819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFile,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15820 {
15821 PyThreadState* __tstate = wxPyBeginAllowThreads();
15822 {
15823 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
15824 result = (wxString *) &_result_ref;
15825 }
15826
15827 wxPyEndAllowThreads(__tstate);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 {
15831 #if wxUSE_UNICODE
15832 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15833 #else
15834 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15835 #endif
15836 }
15837 return resultobj;
15838 fail:
15839 return NULL;
15840 }
15841
15842
15843 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15844 PyObject *obj;
15845 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15846 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15847 Py_INCREF(obj);
15848 return Py_BuildValue((char *)"");
15849 }
15850 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15851 PyObject *resultobj;
15852 wxString const &arg1_defvalue = wxPyEmptyString ;
15853 wxString *arg1 = (wxString *) &arg1_defvalue ;
15854 int arg2 = (int) 0 ;
15855 int arg3 = (int) 0 ;
15856 wxString const &arg4_defvalue = wxPyEmptyString ;
15857 wxString *arg4 = (wxString *) &arg4_defvalue ;
15858 wxMetaFileDC *result;
15859 bool temp1 = False ;
15860 bool temp4 = False ;
15861 PyObject * obj0 = 0 ;
15862 PyObject * obj1 = 0 ;
15863 PyObject * obj2 = 0 ;
15864 PyObject * obj3 = 0 ;
15865 char *kwnames[] = {
15866 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15867 };
15868
15869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15870 if (obj0) {
15871 {
15872 arg1 = wxString_in_helper(obj0);
15873 if (arg1 == NULL) SWIG_fail;
15874 temp1 = True;
15875 }
15876 }
15877 if (obj1) {
15878 {
15879 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15880 if (PyErr_Occurred()) SWIG_fail;
15881 }
15882 }
15883 if (obj2) {
15884 {
15885 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 }
15889 if (obj3) {
15890 {
15891 arg4 = wxString_in_helper(obj3);
15892 if (arg4 == NULL) SWIG_fail;
15893 temp4 = True;
15894 }
15895 }
15896 {
15897 PyThreadState* __tstate = wxPyBeginAllowThreads();
15898 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15899
15900 wxPyEndAllowThreads(__tstate);
15901 if (PyErr_Occurred()) SWIG_fail;
15902 }
15903 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15904 {
15905 if (temp1)
15906 delete arg1;
15907 }
15908 {
15909 if (temp4)
15910 delete arg4;
15911 }
15912 return resultobj;
15913 fail:
15914 {
15915 if (temp1)
15916 delete arg1;
15917 }
15918 {
15919 if (temp4)
15920 delete arg4;
15921 }
15922 return NULL;
15923 }
15924
15925
15926 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
15927 PyObject *resultobj;
15928 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
15929 wxMetaFile *result;
15930 PyObject * obj0 = 0 ;
15931 char *kwnames[] = {
15932 (char *) "self", NULL
15933 };
15934
15935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
15936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMetaFileDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15937 {
15938 PyThreadState* __tstate = wxPyBeginAllowThreads();
15939 result = (wxMetaFile *)(arg1)->Close();
15940
15941 wxPyEndAllowThreads(__tstate);
15942 if (PyErr_Occurred()) SWIG_fail;
15943 }
15944 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 0);
15945 return resultobj;
15946 fail:
15947 return NULL;
15948 }
15949
15950
15951 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15952 PyObject *obj;
15953 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15954 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15955 Py_INCREF(obj);
15956 return Py_BuildValue((char *)"");
15957 }
15958 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15959 PyObject *resultobj;
15960 wxPrintData *arg1 = 0 ;
15961 wxPrinterDC *result;
15962 PyObject * obj0 = 0 ;
15963 char *kwnames[] = {
15964 (char *) "printData", NULL
15965 };
15966
15967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15969 if (arg1 == NULL) {
15970 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15971 }
15972 {
15973 PyThreadState* __tstate = wxPyBeginAllowThreads();
15974 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15975
15976 wxPyEndAllowThreads(__tstate);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15980 return resultobj;
15981 fail:
15982 return NULL;
15983 }
15984
15985
15986 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15987 PyObject *obj;
15988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15989 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15990 Py_INCREF(obj);
15991 return Py_BuildValue((char *)"");
15992 }
15993 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15994 PyObject *resultobj;
15995 int arg1 ;
15996 int arg2 ;
15997 int arg3 = (int) True ;
15998 int arg4 = (int) 1 ;
15999 wxImageList *result;
16000 PyObject * obj0 = 0 ;
16001 PyObject * obj1 = 0 ;
16002 PyObject * obj2 = 0 ;
16003 PyObject * obj3 = 0 ;
16004 char *kwnames[] = {
16005 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16006 };
16007
16008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16009 {
16010 arg1 = (int) SWIG_PyObj_AsInt(obj0);
16011 if (PyErr_Occurred()) SWIG_fail;
16012 }
16013 {
16014 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16015 if (PyErr_Occurred()) SWIG_fail;
16016 }
16017 if (obj2) {
16018 {
16019 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 }
16023 if (obj3) {
16024 {
16025 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 }
16029 {
16030 PyThreadState* __tstate = wxPyBeginAllowThreads();
16031 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16032
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 {
16037 resultobj = wxPyMake_wxObject(result);
16038 }
16039 return resultobj;
16040 fail:
16041 return NULL;
16042 }
16043
16044
16045 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16046 PyObject *resultobj;
16047 wxImageList *arg1 = (wxImageList *) 0 ;
16048 PyObject * obj0 = 0 ;
16049 char *kwnames[] = {
16050 (char *) "self", NULL
16051 };
16052
16053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 delete arg1;
16058
16059 wxPyEndAllowThreads(__tstate);
16060 if (PyErr_Occurred()) SWIG_fail;
16061 }
16062 Py_INCREF(Py_None); resultobj = Py_None;
16063 return resultobj;
16064 fail:
16065 return NULL;
16066 }
16067
16068
16069 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16070 PyObject *resultobj;
16071 wxImageList *arg1 = (wxImageList *) 0 ;
16072 wxBitmap *arg2 = 0 ;
16073 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16074 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16075 int result;
16076 PyObject * obj0 = 0 ;
16077 PyObject * obj1 = 0 ;
16078 PyObject * obj2 = 0 ;
16079 char *kwnames[] = {
16080 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16081 };
16082
16083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16084 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16085 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16086 if (arg2 == NULL) {
16087 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16088 }
16089 if (obj2) {
16090 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16091 if (arg3 == NULL) {
16092 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16093 }
16094 }
16095 {
16096 PyThreadState* __tstate = wxPyBeginAllowThreads();
16097 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16098
16099 wxPyEndAllowThreads(__tstate);
16100 if (PyErr_Occurred()) SWIG_fail;
16101 }
16102 resultobj = SWIG_PyObj_FromInt((int)result);
16103 return resultobj;
16104 fail:
16105 return NULL;
16106 }
16107
16108
16109 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16110 PyObject *resultobj;
16111 wxImageList *arg1 = (wxImageList *) 0 ;
16112 wxBitmap *arg2 = 0 ;
16113 wxColour *arg3 = 0 ;
16114 int result;
16115 wxColour temp3 ;
16116 PyObject * obj0 = 0 ;
16117 PyObject * obj1 = 0 ;
16118 PyObject * obj2 = 0 ;
16119 char *kwnames[] = {
16120 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16121 };
16122
16123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16125 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16126 if (arg2 == NULL) {
16127 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16128 }
16129 {
16130 arg3 = &temp3;
16131 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16132 }
16133 {
16134 PyThreadState* __tstate = wxPyBeginAllowThreads();
16135 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16136
16137 wxPyEndAllowThreads(__tstate);
16138 if (PyErr_Occurred()) SWIG_fail;
16139 }
16140 resultobj = SWIG_PyObj_FromInt((int)result);
16141 return resultobj;
16142 fail:
16143 return NULL;
16144 }
16145
16146
16147 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16148 PyObject *resultobj;
16149 wxImageList *arg1 = (wxImageList *) 0 ;
16150 wxIcon *arg2 = 0 ;
16151 int result;
16152 PyObject * obj0 = 0 ;
16153 PyObject * obj1 = 0 ;
16154 char *kwnames[] = {
16155 (char *) "self",(char *) "icon", NULL
16156 };
16157
16158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16160 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16161 if (arg2 == NULL) {
16162 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16163 }
16164 {
16165 PyThreadState* __tstate = wxPyBeginAllowThreads();
16166 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16167
16168 wxPyEndAllowThreads(__tstate);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 }
16171 resultobj = SWIG_PyObj_FromInt((int)result);
16172 return resultobj;
16173 fail:
16174 return NULL;
16175 }
16176
16177
16178 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16179 PyObject *resultobj;
16180 wxImageList *arg1 = (wxImageList *) 0 ;
16181 int arg2 ;
16182 wxBitmap *arg3 = 0 ;
16183 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16184 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16185 bool result;
16186 PyObject * obj0 = 0 ;
16187 PyObject * obj1 = 0 ;
16188 PyObject * obj2 = 0 ;
16189 PyObject * obj3 = 0 ;
16190 char *kwnames[] = {
16191 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16192 };
16193
16194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16195 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16196 {
16197 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16198 if (PyErr_Occurred()) SWIG_fail;
16199 }
16200 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16201 if (arg3 == NULL) {
16202 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16203 }
16204 if (obj3) {
16205 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16206 if (arg4 == NULL) {
16207 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16208 }
16209 }
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16213
16214 wxPyEndAllowThreads(__tstate);
16215 if (PyErr_Occurred()) SWIG_fail;
16216 }
16217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16218 return resultobj;
16219 fail:
16220 return NULL;
16221 }
16222
16223
16224 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16225 PyObject *resultobj;
16226 wxImageList *arg1 = (wxImageList *) 0 ;
16227 int arg2 ;
16228 wxDC *arg3 = 0 ;
16229 int arg4 ;
16230 int arg5 ;
16231 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16232 bool arg7 = (bool) (bool)False ;
16233 bool result;
16234 PyObject * obj0 = 0 ;
16235 PyObject * obj1 = 0 ;
16236 PyObject * obj2 = 0 ;
16237 PyObject * obj3 = 0 ;
16238 PyObject * obj4 = 0 ;
16239 PyObject * obj5 = 0 ;
16240 PyObject * obj6 = 0 ;
16241 char *kwnames[] = {
16242 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16243 };
16244
16245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16247 {
16248 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16252 if (arg3 == NULL) {
16253 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
16254 }
16255 {
16256 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16257 if (PyErr_Occurred()) SWIG_fail;
16258 }
16259 {
16260 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16261 if (PyErr_Occurred()) SWIG_fail;
16262 }
16263 if (obj5) {
16264 {
16265 arg6 = (int) SWIG_PyObj_AsInt(obj5);
16266 if (PyErr_Occurred()) SWIG_fail;
16267 }
16268 }
16269 if (obj6) {
16270 {
16271 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 }
16275 {
16276 PyThreadState* __tstate = wxPyBeginAllowThreads();
16277 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16278
16279 wxPyEndAllowThreads(__tstate);
16280 if (PyErr_Occurred()) SWIG_fail;
16281 }
16282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16283 return resultobj;
16284 fail:
16285 return NULL;
16286 }
16287
16288
16289 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16290 PyObject *resultobj;
16291 wxImageList *arg1 = (wxImageList *) 0 ;
16292 int result;
16293 PyObject * obj0 = 0 ;
16294 char *kwnames[] = {
16295 (char *) "self", NULL
16296 };
16297
16298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16299 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16300 {
16301 PyThreadState* __tstate = wxPyBeginAllowThreads();
16302 result = (int)(arg1)->GetImageCount();
16303
16304 wxPyEndAllowThreads(__tstate);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 resultobj = SWIG_PyObj_FromInt((int)result);
16308 return resultobj;
16309 fail:
16310 return NULL;
16311 }
16312
16313
16314 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16315 PyObject *resultobj;
16316 wxImageList *arg1 = (wxImageList *) 0 ;
16317 int arg2 ;
16318 bool result;
16319 PyObject * obj0 = 0 ;
16320 PyObject * obj1 = 0 ;
16321 char *kwnames[] = {
16322 (char *) "self",(char *) "index", NULL
16323 };
16324
16325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16327 {
16328 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16329 if (PyErr_Occurred()) SWIG_fail;
16330 }
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = (bool)(arg1)->Remove(arg2);
16334
16335 wxPyEndAllowThreads(__tstate);
16336 if (PyErr_Occurred()) SWIG_fail;
16337 }
16338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16339 return resultobj;
16340 fail:
16341 return NULL;
16342 }
16343
16344
16345 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16346 PyObject *resultobj;
16347 wxImageList *arg1 = (wxImageList *) 0 ;
16348 bool result;
16349 PyObject * obj0 = 0 ;
16350 char *kwnames[] = {
16351 (char *) "self", NULL
16352 };
16353
16354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16356 {
16357 PyThreadState* __tstate = wxPyBeginAllowThreads();
16358 result = (bool)(arg1)->RemoveAll();
16359
16360 wxPyEndAllowThreads(__tstate);
16361 if (PyErr_Occurred()) SWIG_fail;
16362 }
16363 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16364 return resultobj;
16365 fail:
16366 return NULL;
16367 }
16368
16369
16370 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj;
16372 wxImageList *arg1 = (wxImageList *) 0 ;
16373 int arg2 ;
16374 int *arg3 = 0 ;
16375 int *arg4 = 0 ;
16376 int temp3 ;
16377 int temp4 ;
16378 PyObject * obj0 = 0 ;
16379 PyObject * obj1 = 0 ;
16380 char *kwnames[] = {
16381 (char *) "self",(char *) "index", NULL
16382 };
16383
16384 arg3 = &temp3;
16385 arg4 = &temp4;
16386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16387 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16388 {
16389 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16390 if (PyErr_Occurred()) SWIG_fail;
16391 }
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 (arg1)->GetSize(arg2,*arg3,*arg4);
16395
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 Py_INCREF(Py_None); resultobj = Py_None;
16400 {
16401 PyObject *o = PyInt_FromLong((long) (*arg3));
16402 resultobj = t_output_helper(resultobj,o);
16403 }
16404 {
16405 PyObject *o = PyInt_FromLong((long) (*arg4));
16406 resultobj = t_output_helper(resultobj,o);
16407 }
16408 return resultobj;
16409 fail:
16410 return NULL;
16411 }
16412
16413
16414 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16415 PyObject *obj;
16416 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16417 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16418 Py_INCREF(obj);
16419 return Py_BuildValue((char *)"");
16420 }
16421 static int _wrap_NORMAL_FONT_set(PyObject *) {
16422 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16423 return 1;
16424 }
16425
16426
16427 static PyObject *_wrap_NORMAL_FONT_get() {
16428 PyObject *pyobj;
16429
16430 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
16431 return pyobj;
16432 }
16433
16434
16435 static int _wrap_SMALL_FONT_set(PyObject *) {
16436 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16437 return 1;
16438 }
16439
16440
16441 static PyObject *_wrap_SMALL_FONT_get() {
16442 PyObject *pyobj;
16443
16444 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
16445 return pyobj;
16446 }
16447
16448
16449 static int _wrap_ITALIC_FONT_set(PyObject *) {
16450 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16451 return 1;
16452 }
16453
16454
16455 static PyObject *_wrap_ITALIC_FONT_get() {
16456 PyObject *pyobj;
16457
16458 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
16459 return pyobj;
16460 }
16461
16462
16463 static int _wrap_SWISS_FONT_set(PyObject *) {
16464 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16465 return 1;
16466 }
16467
16468
16469 static PyObject *_wrap_SWISS_FONT_get() {
16470 PyObject *pyobj;
16471
16472 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
16473 return pyobj;
16474 }
16475
16476
16477 static int _wrap_RED_PEN_set(PyObject *) {
16478 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16479 return 1;
16480 }
16481
16482
16483 static PyObject *_wrap_RED_PEN_get() {
16484 PyObject *pyobj;
16485
16486 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
16487 return pyobj;
16488 }
16489
16490
16491 static int _wrap_CYAN_PEN_set(PyObject *) {
16492 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16493 return 1;
16494 }
16495
16496
16497 static PyObject *_wrap_CYAN_PEN_get() {
16498 PyObject *pyobj;
16499
16500 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
16501 return pyobj;
16502 }
16503
16504
16505 static int _wrap_GREEN_PEN_set(PyObject *) {
16506 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16507 return 1;
16508 }
16509
16510
16511 static PyObject *_wrap_GREEN_PEN_get() {
16512 PyObject *pyobj;
16513
16514 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
16515 return pyobj;
16516 }
16517
16518
16519 static int _wrap_BLACK_PEN_set(PyObject *) {
16520 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16521 return 1;
16522 }
16523
16524
16525 static PyObject *_wrap_BLACK_PEN_get() {
16526 PyObject *pyobj;
16527
16528 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
16529 return pyobj;
16530 }
16531
16532
16533 static int _wrap_WHITE_PEN_set(PyObject *) {
16534 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16535 return 1;
16536 }
16537
16538
16539 static PyObject *_wrap_WHITE_PEN_get() {
16540 PyObject *pyobj;
16541
16542 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
16543 return pyobj;
16544 }
16545
16546
16547 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
16548 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16549 return 1;
16550 }
16551
16552
16553 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16554 PyObject *pyobj;
16555
16556 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16557 return pyobj;
16558 }
16559
16560
16561 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
16562 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16563 return 1;
16564 }
16565
16566
16567 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16568 PyObject *pyobj;
16569
16570 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16571 return pyobj;
16572 }
16573
16574
16575 static int _wrap_GREY_PEN_set(PyObject *) {
16576 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16577 return 1;
16578 }
16579
16580
16581 static PyObject *_wrap_GREY_PEN_get() {
16582 PyObject *pyobj;
16583
16584 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16585 return pyobj;
16586 }
16587
16588
16589 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
16590 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16591 return 1;
16592 }
16593
16594
16595 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16596 PyObject *pyobj;
16597
16598 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16599 return pyobj;
16600 }
16601
16602
16603 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
16604 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16605 return 1;
16606 }
16607
16608
16609 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16610 PyObject *pyobj;
16611
16612 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16613 return pyobj;
16614 }
16615
16616
16617 static int _wrap_BLUE_BRUSH_set(PyObject *) {
16618 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16619 return 1;
16620 }
16621
16622
16623 static PyObject *_wrap_BLUE_BRUSH_get() {
16624 PyObject *pyobj;
16625
16626 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16627 return pyobj;
16628 }
16629
16630
16631 static int _wrap_GREEN_BRUSH_set(PyObject *) {
16632 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16633 return 1;
16634 }
16635
16636
16637 static PyObject *_wrap_GREEN_BRUSH_get() {
16638 PyObject *pyobj;
16639
16640 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16641 return pyobj;
16642 }
16643
16644
16645 static int _wrap_WHITE_BRUSH_set(PyObject *) {
16646 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16647 return 1;
16648 }
16649
16650
16651 static PyObject *_wrap_WHITE_BRUSH_get() {
16652 PyObject *pyobj;
16653
16654 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16655 return pyobj;
16656 }
16657
16658
16659 static int _wrap_BLACK_BRUSH_set(PyObject *) {
16660 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16661 return 1;
16662 }
16663
16664
16665 static PyObject *_wrap_BLACK_BRUSH_get() {
16666 PyObject *pyobj;
16667
16668 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16669 return pyobj;
16670 }
16671
16672
16673 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
16674 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16675 return 1;
16676 }
16677
16678
16679 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16680 PyObject *pyobj;
16681
16682 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16683 return pyobj;
16684 }
16685
16686
16687 static int _wrap_CYAN_BRUSH_set(PyObject *) {
16688 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16689 return 1;
16690 }
16691
16692
16693 static PyObject *_wrap_CYAN_BRUSH_get() {
16694 PyObject *pyobj;
16695
16696 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16697 return pyobj;
16698 }
16699
16700
16701 static int _wrap_RED_BRUSH_set(PyObject *) {
16702 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16703 return 1;
16704 }
16705
16706
16707 static PyObject *_wrap_RED_BRUSH_get() {
16708 PyObject *pyobj;
16709
16710 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
16711 return pyobj;
16712 }
16713
16714
16715 static int _wrap_GREY_BRUSH_set(PyObject *) {
16716 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16717 return 1;
16718 }
16719
16720
16721 static PyObject *_wrap_GREY_BRUSH_get() {
16722 PyObject *pyobj;
16723
16724 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16725 return pyobj;
16726 }
16727
16728
16729 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
16730 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16731 return 1;
16732 }
16733
16734
16735 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16736 PyObject *pyobj;
16737
16738 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16739 return pyobj;
16740 }
16741
16742
16743 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
16744 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16745 return 1;
16746 }
16747
16748
16749 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16750 PyObject *pyobj;
16751
16752 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16753 return pyobj;
16754 }
16755
16756
16757 static int _wrap_BLACK_set(PyObject *) {
16758 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16759 return 1;
16760 }
16761
16762
16763 static PyObject *_wrap_BLACK_get() {
16764 PyObject *pyobj;
16765
16766 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
16767 return pyobj;
16768 }
16769
16770
16771 static int _wrap_WHITE_set(PyObject *) {
16772 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16773 return 1;
16774 }
16775
16776
16777 static PyObject *_wrap_WHITE_get() {
16778 PyObject *pyobj;
16779
16780 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
16781 return pyobj;
16782 }
16783
16784
16785 static int _wrap_RED_set(PyObject *) {
16786 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16787 return 1;
16788 }
16789
16790
16791 static PyObject *_wrap_RED_get() {
16792 PyObject *pyobj;
16793
16794 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
16795 return pyobj;
16796 }
16797
16798
16799 static int _wrap_BLUE_set(PyObject *) {
16800 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16801 return 1;
16802 }
16803
16804
16805 static PyObject *_wrap_BLUE_get() {
16806 PyObject *pyobj;
16807
16808 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16809 return pyobj;
16810 }
16811
16812
16813 static int _wrap_GREEN_set(PyObject *) {
16814 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16815 return 1;
16816 }
16817
16818
16819 static PyObject *_wrap_GREEN_get() {
16820 PyObject *pyobj;
16821
16822 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16823 return pyobj;
16824 }
16825
16826
16827 static int _wrap_CYAN_set(PyObject *) {
16828 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16829 return 1;
16830 }
16831
16832
16833 static PyObject *_wrap_CYAN_get() {
16834 PyObject *pyobj;
16835
16836 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16837 return pyobj;
16838 }
16839
16840
16841 static int _wrap_LIGHT_GREY_set(PyObject *) {
16842 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16843 return 1;
16844 }
16845
16846
16847 static PyObject *_wrap_LIGHT_GREY_get() {
16848 PyObject *pyobj;
16849
16850 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16851 return pyobj;
16852 }
16853
16854
16855 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16856 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16857 return 1;
16858 }
16859
16860
16861 static PyObject *_wrap_STANDARD_CURSOR_get() {
16862 PyObject *pyobj;
16863
16864 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16865 return pyobj;
16866 }
16867
16868
16869 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16870 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16871 return 1;
16872 }
16873
16874
16875 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16876 PyObject *pyobj;
16877
16878 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16879 return pyobj;
16880 }
16881
16882
16883 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16884 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16885 return 1;
16886 }
16887
16888
16889 static PyObject *_wrap_CROSS_CURSOR_get() {
16890 PyObject *pyobj;
16891
16892 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16893 return pyobj;
16894 }
16895
16896
16897 static int _wrap_NullBitmap_set(PyObject *) {
16898 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16899 return 1;
16900 }
16901
16902
16903 static PyObject *_wrap_NullBitmap_get() {
16904 PyObject *pyobj;
16905
16906 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16907 return pyobj;
16908 }
16909
16910
16911 static int _wrap_NullIcon_set(PyObject *) {
16912 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16913 return 1;
16914 }
16915
16916
16917 static PyObject *_wrap_NullIcon_get() {
16918 PyObject *pyobj;
16919
16920 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16921 return pyobj;
16922 }
16923
16924
16925 static int _wrap_NullCursor_set(PyObject *) {
16926 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16927 return 1;
16928 }
16929
16930
16931 static PyObject *_wrap_NullCursor_get() {
16932 PyObject *pyobj;
16933
16934 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16935 return pyobj;
16936 }
16937
16938
16939 static int _wrap_NullPen_set(PyObject *) {
16940 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16941 return 1;
16942 }
16943
16944
16945 static PyObject *_wrap_NullPen_get() {
16946 PyObject *pyobj;
16947
16948 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16949 return pyobj;
16950 }
16951
16952
16953 static int _wrap_NullBrush_set(PyObject *) {
16954 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16955 return 1;
16956 }
16957
16958
16959 static PyObject *_wrap_NullBrush_get() {
16960 PyObject *pyobj;
16961
16962 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16963 return pyobj;
16964 }
16965
16966
16967 static int _wrap_NullPalette_set(PyObject *) {
16968 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16969 return 1;
16970 }
16971
16972
16973 static PyObject *_wrap_NullPalette_get() {
16974 PyObject *pyobj;
16975
16976 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16977 return pyobj;
16978 }
16979
16980
16981 static int _wrap_NullFont_set(PyObject *) {
16982 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16983 return 1;
16984 }
16985
16986
16987 static PyObject *_wrap_NullFont_get() {
16988 PyObject *pyobj;
16989
16990 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16991 return pyobj;
16992 }
16993
16994
16995 static int _wrap_NullColour_set(PyObject *) {
16996 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16997 return 1;
16998 }
16999
17000
17001 static PyObject *_wrap_NullColour_get() {
17002 PyObject *pyobj;
17003
17004 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
17005 return pyobj;
17006 }
17007
17008
17009 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17010 PyObject *resultobj;
17011 wxPenList *arg1 = (wxPenList *) 0 ;
17012 wxPen *arg2 = (wxPen *) 0 ;
17013 PyObject * obj0 = 0 ;
17014 PyObject * obj1 = 0 ;
17015 char *kwnames[] = {
17016 (char *) "self",(char *) "pen", NULL
17017 };
17018
17019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17021 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17022 {
17023 PyThreadState* __tstate = wxPyBeginAllowThreads();
17024 (arg1)->AddPen(arg2);
17025
17026 wxPyEndAllowThreads(__tstate);
17027 if (PyErr_Occurred()) SWIG_fail;
17028 }
17029 Py_INCREF(Py_None); resultobj = Py_None;
17030 return resultobj;
17031 fail:
17032 return NULL;
17033 }
17034
17035
17036 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17037 PyObject *resultobj;
17038 wxPenList *arg1 = (wxPenList *) 0 ;
17039 wxColour *arg2 = 0 ;
17040 int arg3 ;
17041 int arg4 ;
17042 wxPen *result;
17043 wxColour temp2 ;
17044 PyObject * obj0 = 0 ;
17045 PyObject * obj1 = 0 ;
17046 PyObject * obj2 = 0 ;
17047 PyObject * obj3 = 0 ;
17048 char *kwnames[] = {
17049 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17050 };
17051
17052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17054 {
17055 arg2 = &temp2;
17056 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17057 }
17058 {
17059 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17060 if (PyErr_Occurred()) SWIG_fail;
17061 }
17062 {
17063 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17064 if (PyErr_Occurred()) SWIG_fail;
17065 }
17066 {
17067 PyThreadState* __tstate = wxPyBeginAllowThreads();
17068 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17069
17070 wxPyEndAllowThreads(__tstate);
17071 if (PyErr_Occurred()) SWIG_fail;
17072 }
17073 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
17074 return resultobj;
17075 fail:
17076 return NULL;
17077 }
17078
17079
17080 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17081 PyObject *resultobj;
17082 wxPenList *arg1 = (wxPenList *) 0 ;
17083 wxPen *arg2 = (wxPen *) 0 ;
17084 PyObject * obj0 = 0 ;
17085 PyObject * obj1 = 0 ;
17086 char *kwnames[] = {
17087 (char *) "self",(char *) "pen", NULL
17088 };
17089
17090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17092 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17093 {
17094 PyThreadState* __tstate = wxPyBeginAllowThreads();
17095 (arg1)->RemovePen(arg2);
17096
17097 wxPyEndAllowThreads(__tstate);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 }
17100 Py_INCREF(Py_None); resultobj = Py_None;
17101 return resultobj;
17102 fail:
17103 return NULL;
17104 }
17105
17106
17107 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17108 PyObject *resultobj;
17109 wxPenList *arg1 = (wxPenList *) 0 ;
17110 int result;
17111 PyObject * obj0 = 0 ;
17112 char *kwnames[] = {
17113 (char *) "self", NULL
17114 };
17115
17116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17118 {
17119 PyThreadState* __tstate = wxPyBeginAllowThreads();
17120 result = (int)(arg1)->GetCount();
17121
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 resultobj = SWIG_PyObj_FromInt((int)result);
17126 return resultobj;
17127 fail:
17128 return NULL;
17129 }
17130
17131
17132 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17133 PyObject *obj;
17134 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17135 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17136 Py_INCREF(obj);
17137 return Py_BuildValue((char *)"");
17138 }
17139 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17140 PyObject *resultobj;
17141 wxBrushList *arg1 = (wxBrushList *) 0 ;
17142 wxBrush *arg2 = (wxBrush *) 0 ;
17143 PyObject * obj0 = 0 ;
17144 PyObject * obj1 = 0 ;
17145 char *kwnames[] = {
17146 (char *) "self",(char *) "brush", NULL
17147 };
17148
17149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17150 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17151 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17152 {
17153 PyThreadState* __tstate = wxPyBeginAllowThreads();
17154 (arg1)->AddBrush(arg2);
17155
17156 wxPyEndAllowThreads(__tstate);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 }
17159 Py_INCREF(Py_None); resultobj = Py_None;
17160 return resultobj;
17161 fail:
17162 return NULL;
17163 }
17164
17165
17166 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17167 PyObject *resultobj;
17168 wxBrushList *arg1 = (wxBrushList *) 0 ;
17169 wxColour *arg2 = 0 ;
17170 int arg3 ;
17171 wxBrush *result;
17172 wxColour temp2 ;
17173 PyObject * obj0 = 0 ;
17174 PyObject * obj1 = 0 ;
17175 PyObject * obj2 = 0 ;
17176 char *kwnames[] = {
17177 (char *) "self",(char *) "colour",(char *) "style", NULL
17178 };
17179
17180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17182 {
17183 arg2 = &temp2;
17184 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17185 }
17186 {
17187 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17188 if (PyErr_Occurred()) SWIG_fail;
17189 }
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17193
17194 wxPyEndAllowThreads(__tstate);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
17198 return resultobj;
17199 fail:
17200 return NULL;
17201 }
17202
17203
17204 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17205 PyObject *resultobj;
17206 wxBrushList *arg1 = (wxBrushList *) 0 ;
17207 wxBrush *arg2 = (wxBrush *) 0 ;
17208 PyObject * obj0 = 0 ;
17209 PyObject * obj1 = 0 ;
17210 char *kwnames[] = {
17211 (char *) "self",(char *) "brush", NULL
17212 };
17213
17214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17215 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17216 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17217 {
17218 PyThreadState* __tstate = wxPyBeginAllowThreads();
17219 (arg1)->RemoveBrush(arg2);
17220
17221 wxPyEndAllowThreads(__tstate);
17222 if (PyErr_Occurred()) SWIG_fail;
17223 }
17224 Py_INCREF(Py_None); resultobj = Py_None;
17225 return resultobj;
17226 fail:
17227 return NULL;
17228 }
17229
17230
17231 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17232 PyObject *resultobj;
17233 wxBrushList *arg1 = (wxBrushList *) 0 ;
17234 int result;
17235 PyObject * obj0 = 0 ;
17236 char *kwnames[] = {
17237 (char *) "self", NULL
17238 };
17239
17240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17242 {
17243 PyThreadState* __tstate = wxPyBeginAllowThreads();
17244 result = (int)(arg1)->GetCount();
17245
17246 wxPyEndAllowThreads(__tstate);
17247 if (PyErr_Occurred()) SWIG_fail;
17248 }
17249 resultobj = SWIG_PyObj_FromInt((int)result);
17250 return resultobj;
17251 fail:
17252 return NULL;
17253 }
17254
17255
17256 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17257 PyObject *obj;
17258 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17259 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17260 Py_INCREF(obj);
17261 return Py_BuildValue((char *)"");
17262 }
17263 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17264 PyObject *resultobj;
17265 wxColourDatabase *result;
17266 char *kwnames[] = {
17267 NULL
17268 };
17269
17270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17271 {
17272 PyThreadState* __tstate = wxPyBeginAllowThreads();
17273 result = (wxColourDatabase *)new wxColourDatabase();
17274
17275 wxPyEndAllowThreads(__tstate);
17276 if (PyErr_Occurred()) SWIG_fail;
17277 }
17278 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
17279 return resultobj;
17280 fail:
17281 return NULL;
17282 }
17283
17284
17285 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17286 PyObject *resultobj;
17287 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17288 PyObject * obj0 = 0 ;
17289 char *kwnames[] = {
17290 (char *) "self", NULL
17291 };
17292
17293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 delete arg1;
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 Py_INCREF(Py_None); resultobj = Py_None;
17303 return resultobj;
17304 fail:
17305 return NULL;
17306 }
17307
17308
17309 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17310 PyObject *resultobj;
17311 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17312 wxString *arg2 = 0 ;
17313 wxColour result;
17314 bool temp2 = False ;
17315 PyObject * obj0 = 0 ;
17316 PyObject * obj1 = 0 ;
17317 char *kwnames[] = {
17318 (char *) "self",(char *) "name", NULL
17319 };
17320
17321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17323 {
17324 arg2 = wxString_in_helper(obj1);
17325 if (arg2 == NULL) SWIG_fail;
17326 temp2 = True;
17327 }
17328 {
17329 PyThreadState* __tstate = wxPyBeginAllowThreads();
17330 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17331
17332 wxPyEndAllowThreads(__tstate);
17333 if (PyErr_Occurred()) SWIG_fail;
17334 }
17335 {
17336 wxColour * resultptr;
17337 resultptr = new wxColour((wxColour &) result);
17338 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17339 }
17340 {
17341 if (temp2)
17342 delete arg2;
17343 }
17344 return resultobj;
17345 fail:
17346 {
17347 if (temp2)
17348 delete arg2;
17349 }
17350 return NULL;
17351 }
17352
17353
17354 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj;
17356 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17357 wxColour *arg2 = 0 ;
17358 wxString result;
17359 wxColour temp2 ;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 char *kwnames[] = {
17363 (char *) "self",(char *) "colour", NULL
17364 };
17365
17366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17367 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17368 {
17369 arg2 = &temp2;
17370 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17371 }
17372 {
17373 PyThreadState* __tstate = wxPyBeginAllowThreads();
17374 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17375
17376 wxPyEndAllowThreads(__tstate);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 {
17380 #if wxUSE_UNICODE
17381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17382 #else
17383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17384 #endif
17385 }
17386 return resultobj;
17387 fail:
17388 return NULL;
17389 }
17390
17391
17392 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj;
17394 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17395 wxString *arg2 = 0 ;
17396 wxColour *arg3 = 0 ;
17397 bool temp2 = False ;
17398 wxColour temp3 ;
17399 PyObject * obj0 = 0 ;
17400 PyObject * obj1 = 0 ;
17401 PyObject * obj2 = 0 ;
17402 char *kwnames[] = {
17403 (char *) "self",(char *) "name",(char *) "colour", NULL
17404 };
17405
17406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17407 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17408 {
17409 arg2 = wxString_in_helper(obj1);
17410 if (arg2 == NULL) SWIG_fail;
17411 temp2 = True;
17412 }
17413 {
17414 arg3 = &temp3;
17415 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17416 }
17417 {
17418 PyThreadState* __tstate = wxPyBeginAllowThreads();
17419 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17420
17421 wxPyEndAllowThreads(__tstate);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 }
17424 Py_INCREF(Py_None); resultobj = Py_None;
17425 {
17426 if (temp2)
17427 delete arg2;
17428 }
17429 return resultobj;
17430 fail:
17431 {
17432 if (temp2)
17433 delete arg2;
17434 }
17435 return NULL;
17436 }
17437
17438
17439 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17440 PyObject *resultobj;
17441 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17442 wxString *arg2 = 0 ;
17443 int arg3 ;
17444 int arg4 ;
17445 int arg5 ;
17446 bool temp2 = False ;
17447 PyObject * obj0 = 0 ;
17448 PyObject * obj1 = 0 ;
17449 PyObject * obj2 = 0 ;
17450 PyObject * obj3 = 0 ;
17451 PyObject * obj4 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17458 {
17459 arg2 = wxString_in_helper(obj1);
17460 if (arg2 == NULL) SWIG_fail;
17461 temp2 = True;
17462 }
17463 {
17464 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17465 if (PyErr_Occurred()) SWIG_fail;
17466 }
17467 {
17468 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17469 if (PyErr_Occurred()) SWIG_fail;
17470 }
17471 {
17472 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17473 if (PyErr_Occurred()) SWIG_fail;
17474 }
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17478
17479 wxPyEndAllowThreads(__tstate);
17480 if (PyErr_Occurred()) SWIG_fail;
17481 }
17482 Py_INCREF(Py_None); resultobj = Py_None;
17483 {
17484 if (temp2)
17485 delete arg2;
17486 }
17487 return resultobj;
17488 fail:
17489 {
17490 if (temp2)
17491 delete arg2;
17492 }
17493 return NULL;
17494 }
17495
17496
17497 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17498 PyObject *obj;
17499 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17500 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17501 Py_INCREF(obj);
17502 return Py_BuildValue((char *)"");
17503 }
17504 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17505 PyObject *resultobj;
17506 wxFontList *arg1 = (wxFontList *) 0 ;
17507 wxFont *arg2 = (wxFont *) 0 ;
17508 PyObject * obj0 = 0 ;
17509 PyObject * obj1 = 0 ;
17510 char *kwnames[] = {
17511 (char *) "self",(char *) "font", NULL
17512 };
17513
17514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17516 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17517 {
17518 PyThreadState* __tstate = wxPyBeginAllowThreads();
17519 (arg1)->AddFont(arg2);
17520
17521 wxPyEndAllowThreads(__tstate);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 }
17524 Py_INCREF(Py_None); resultobj = Py_None;
17525 return resultobj;
17526 fail:
17527 return NULL;
17528 }
17529
17530
17531 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17532 PyObject *resultobj;
17533 wxFontList *arg1 = (wxFontList *) 0 ;
17534 int arg2 ;
17535 int arg3 ;
17536 int arg4 ;
17537 int arg5 ;
17538 bool arg6 = (bool) False ;
17539 wxString const &arg7_defvalue = wxPyEmptyString ;
17540 wxString *arg7 = (wxString *) &arg7_defvalue ;
17541 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17542 wxFont *result;
17543 bool temp7 = False ;
17544 PyObject * obj0 = 0 ;
17545 PyObject * obj1 = 0 ;
17546 PyObject * obj2 = 0 ;
17547 PyObject * obj3 = 0 ;
17548 PyObject * obj4 = 0 ;
17549 PyObject * obj5 = 0 ;
17550 PyObject * obj6 = 0 ;
17551 PyObject * obj7 = 0 ;
17552 char *kwnames[] = {
17553 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17554 };
17555
17556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17557 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17558 {
17559 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17560 if (PyErr_Occurred()) SWIG_fail;
17561 }
17562 {
17563 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17564 if (PyErr_Occurred()) SWIG_fail;
17565 }
17566 {
17567 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17568 if (PyErr_Occurred()) SWIG_fail;
17569 }
17570 {
17571 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17572 if (PyErr_Occurred()) SWIG_fail;
17573 }
17574 if (obj5) {
17575 {
17576 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 }
17579 }
17580 if (obj6) {
17581 {
17582 arg7 = wxString_in_helper(obj6);
17583 if (arg7 == NULL) SWIG_fail;
17584 temp7 = True;
17585 }
17586 }
17587 if (obj7) {
17588 {
17589 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17590 if (PyErr_Occurred()) SWIG_fail;
17591 }
17592 }
17593 {
17594 PyThreadState* __tstate = wxPyBeginAllowThreads();
17595 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17596
17597 wxPyEndAllowThreads(__tstate);
17598 if (PyErr_Occurred()) SWIG_fail;
17599 }
17600 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17601 {
17602 if (temp7)
17603 delete arg7;
17604 }
17605 return resultobj;
17606 fail:
17607 {
17608 if (temp7)
17609 delete arg7;
17610 }
17611 return NULL;
17612 }
17613
17614
17615 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17616 PyObject *resultobj;
17617 wxFontList *arg1 = (wxFontList *) 0 ;
17618 wxFont *arg2 = (wxFont *) 0 ;
17619 PyObject * obj0 = 0 ;
17620 PyObject * obj1 = 0 ;
17621 char *kwnames[] = {
17622 (char *) "self",(char *) "font", NULL
17623 };
17624
17625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17626 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17627 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17628 {
17629 PyThreadState* __tstate = wxPyBeginAllowThreads();
17630 (arg1)->RemoveFont(arg2);
17631
17632 wxPyEndAllowThreads(__tstate);
17633 if (PyErr_Occurred()) SWIG_fail;
17634 }
17635 Py_INCREF(Py_None); resultobj = Py_None;
17636 return resultobj;
17637 fail:
17638 return NULL;
17639 }
17640
17641
17642 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17643 PyObject *resultobj;
17644 wxFontList *arg1 = (wxFontList *) 0 ;
17645 int result;
17646 PyObject * obj0 = 0 ;
17647 char *kwnames[] = {
17648 (char *) "self", NULL
17649 };
17650
17651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17652 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17653 {
17654 PyThreadState* __tstate = wxPyBeginAllowThreads();
17655 result = (int)(arg1)->GetCount();
17656
17657 wxPyEndAllowThreads(__tstate);
17658 if (PyErr_Occurred()) SWIG_fail;
17659 }
17660 resultobj = SWIG_PyObj_FromInt((int)result);
17661 return resultobj;
17662 fail:
17663 return NULL;
17664 }
17665
17666
17667 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17668 PyObject *obj;
17669 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17670 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17671 Py_INCREF(obj);
17672 return Py_BuildValue((char *)"");
17673 }
17674 static int _wrap_TheFontList_set(PyObject *) {
17675 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17676 return 1;
17677 }
17678
17679
17680 static PyObject *_wrap_TheFontList_get() {
17681 PyObject *pyobj;
17682
17683 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17684 return pyobj;
17685 }
17686
17687
17688 static int _wrap_ThePenList_set(PyObject *) {
17689 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17690 return 1;
17691 }
17692
17693
17694 static PyObject *_wrap_ThePenList_get() {
17695 PyObject *pyobj;
17696
17697 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17698 return pyobj;
17699 }
17700
17701
17702 static int _wrap_TheBrushList_set(PyObject *) {
17703 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17704 return 1;
17705 }
17706
17707
17708 static PyObject *_wrap_TheBrushList_get() {
17709 PyObject *pyobj;
17710
17711 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
17712 return pyobj;
17713 }
17714
17715
17716 static int _wrap_TheColourDatabase_set(PyObject *) {
17717 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17718 return 1;
17719 }
17720
17721
17722 static PyObject *_wrap_TheColourDatabase_get() {
17723 PyObject *pyobj;
17724
17725 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
17726 return pyobj;
17727 }
17728
17729
17730 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17731 PyObject *resultobj;
17732 wxEffects *result;
17733 char *kwnames[] = {
17734 NULL
17735 };
17736
17737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17738 {
17739 PyThreadState* __tstate = wxPyBeginAllowThreads();
17740 result = (wxEffects *)new wxEffects();
17741
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
17746 return resultobj;
17747 fail:
17748 return NULL;
17749 }
17750
17751
17752 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17753 PyObject *resultobj;
17754 wxEffects *arg1 = (wxEffects *) 0 ;
17755 wxColour result;
17756 PyObject * obj0 = 0 ;
17757 char *kwnames[] = {
17758 (char *) "self", NULL
17759 };
17760
17761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17763 {
17764 PyThreadState* __tstate = wxPyBeginAllowThreads();
17765 result = ((wxEffects const *)arg1)->GetHighlightColour();
17766
17767 wxPyEndAllowThreads(__tstate);
17768 if (PyErr_Occurred()) SWIG_fail;
17769 }
17770 {
17771 wxColour * resultptr;
17772 resultptr = new wxColour((wxColour &) result);
17773 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17774 }
17775 return resultobj;
17776 fail:
17777 return NULL;
17778 }
17779
17780
17781 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17782 PyObject *resultobj;
17783 wxEffects *arg1 = (wxEffects *) 0 ;
17784 wxColour result;
17785 PyObject * obj0 = 0 ;
17786 char *kwnames[] = {
17787 (char *) "self", NULL
17788 };
17789
17790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17792 {
17793 PyThreadState* __tstate = wxPyBeginAllowThreads();
17794 result = ((wxEffects const *)arg1)->GetLightShadow();
17795
17796 wxPyEndAllowThreads(__tstate);
17797 if (PyErr_Occurred()) SWIG_fail;
17798 }
17799 {
17800 wxColour * resultptr;
17801 resultptr = new wxColour((wxColour &) result);
17802 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17803 }
17804 return resultobj;
17805 fail:
17806 return NULL;
17807 }
17808
17809
17810 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17811 PyObject *resultobj;
17812 wxEffects *arg1 = (wxEffects *) 0 ;
17813 wxColour result;
17814 PyObject * obj0 = 0 ;
17815 char *kwnames[] = {
17816 (char *) "self", NULL
17817 };
17818
17819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17820 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17821 {
17822 PyThreadState* __tstate = wxPyBeginAllowThreads();
17823 result = ((wxEffects const *)arg1)->GetFaceColour();
17824
17825 wxPyEndAllowThreads(__tstate);
17826 if (PyErr_Occurred()) SWIG_fail;
17827 }
17828 {
17829 wxColour * resultptr;
17830 resultptr = new wxColour((wxColour &) result);
17831 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17832 }
17833 return resultobj;
17834 fail:
17835 return NULL;
17836 }
17837
17838
17839 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17840 PyObject *resultobj;
17841 wxEffects *arg1 = (wxEffects *) 0 ;
17842 wxColour result;
17843 PyObject * obj0 = 0 ;
17844 char *kwnames[] = {
17845 (char *) "self", NULL
17846 };
17847
17848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17849 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17850 {
17851 PyThreadState* __tstate = wxPyBeginAllowThreads();
17852 result = ((wxEffects const *)arg1)->GetMediumShadow();
17853
17854 wxPyEndAllowThreads(__tstate);
17855 if (PyErr_Occurred()) SWIG_fail;
17856 }
17857 {
17858 wxColour * resultptr;
17859 resultptr = new wxColour((wxColour &) result);
17860 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17861 }
17862 return resultobj;
17863 fail:
17864 return NULL;
17865 }
17866
17867
17868 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17869 PyObject *resultobj;
17870 wxEffects *arg1 = (wxEffects *) 0 ;
17871 wxColour result;
17872 PyObject * obj0 = 0 ;
17873 char *kwnames[] = {
17874 (char *) "self", NULL
17875 };
17876
17877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17879 {
17880 PyThreadState* __tstate = wxPyBeginAllowThreads();
17881 result = ((wxEffects const *)arg1)->GetDarkShadow();
17882
17883 wxPyEndAllowThreads(__tstate);
17884 if (PyErr_Occurred()) SWIG_fail;
17885 }
17886 {
17887 wxColour * resultptr;
17888 resultptr = new wxColour((wxColour &) result);
17889 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17890 }
17891 return resultobj;
17892 fail:
17893 return NULL;
17894 }
17895
17896
17897 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17898 PyObject *resultobj;
17899 wxEffects *arg1 = (wxEffects *) 0 ;
17900 wxColour *arg2 = 0 ;
17901 wxColour temp2 ;
17902 PyObject * obj0 = 0 ;
17903 PyObject * obj1 = 0 ;
17904 char *kwnames[] = {
17905 (char *) "self",(char *) "c", NULL
17906 };
17907
17908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17909 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17910 {
17911 arg2 = &temp2;
17912 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17913 }
17914 {
17915 PyThreadState* __tstate = wxPyBeginAllowThreads();
17916 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17917
17918 wxPyEndAllowThreads(__tstate);
17919 if (PyErr_Occurred()) SWIG_fail;
17920 }
17921 Py_INCREF(Py_None); resultobj = Py_None;
17922 return resultobj;
17923 fail:
17924 return NULL;
17925 }
17926
17927
17928 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17929 PyObject *resultobj;
17930 wxEffects *arg1 = (wxEffects *) 0 ;
17931 wxColour *arg2 = 0 ;
17932 wxColour temp2 ;
17933 PyObject * obj0 = 0 ;
17934 PyObject * obj1 = 0 ;
17935 char *kwnames[] = {
17936 (char *) "self",(char *) "c", NULL
17937 };
17938
17939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17940 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17941 {
17942 arg2 = &temp2;
17943 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17944 }
17945 {
17946 PyThreadState* __tstate = wxPyBeginAllowThreads();
17947 (arg1)->SetLightShadow((wxColour const &)*arg2);
17948
17949 wxPyEndAllowThreads(__tstate);
17950 if (PyErr_Occurred()) SWIG_fail;
17951 }
17952 Py_INCREF(Py_None); resultobj = Py_None;
17953 return resultobj;
17954 fail:
17955 return NULL;
17956 }
17957
17958
17959 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17960 PyObject *resultobj;
17961 wxEffects *arg1 = (wxEffects *) 0 ;
17962 wxColour *arg2 = 0 ;
17963 wxColour temp2 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 char *kwnames[] = {
17967 (char *) "self",(char *) "c", NULL
17968 };
17969
17970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17972 {
17973 arg2 = &temp2;
17974 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17975 }
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 (arg1)->SetFaceColour((wxColour const &)*arg2);
17979
17980 wxPyEndAllowThreads(__tstate);
17981 if (PyErr_Occurred()) SWIG_fail;
17982 }
17983 Py_INCREF(Py_None); resultobj = Py_None;
17984 return resultobj;
17985 fail:
17986 return NULL;
17987 }
17988
17989
17990 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17991 PyObject *resultobj;
17992 wxEffects *arg1 = (wxEffects *) 0 ;
17993 wxColour *arg2 = 0 ;
17994 wxColour temp2 ;
17995 PyObject * obj0 = 0 ;
17996 PyObject * obj1 = 0 ;
17997 char *kwnames[] = {
17998 (char *) "self",(char *) "c", NULL
17999 };
18000
18001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18003 {
18004 arg2 = &temp2;
18005 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18006 }
18007 {
18008 PyThreadState* __tstate = wxPyBeginAllowThreads();
18009 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18010
18011 wxPyEndAllowThreads(__tstate);
18012 if (PyErr_Occurred()) SWIG_fail;
18013 }
18014 Py_INCREF(Py_None); resultobj = Py_None;
18015 return resultobj;
18016 fail:
18017 return NULL;
18018 }
18019
18020
18021 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj;
18023 wxEffects *arg1 = (wxEffects *) 0 ;
18024 wxColour *arg2 = 0 ;
18025 wxColour temp2 ;
18026 PyObject * obj0 = 0 ;
18027 PyObject * obj1 = 0 ;
18028 char *kwnames[] = {
18029 (char *) "self",(char *) "c", NULL
18030 };
18031
18032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18034 {
18035 arg2 = &temp2;
18036 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18037 }
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18041
18042 wxPyEndAllowThreads(__tstate);
18043 if (PyErr_Occurred()) SWIG_fail;
18044 }
18045 Py_INCREF(Py_None); resultobj = Py_None;
18046 return resultobj;
18047 fail:
18048 return NULL;
18049 }
18050
18051
18052 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18053 PyObject *resultobj;
18054 wxEffects *arg1 = (wxEffects *) 0 ;
18055 wxColour *arg2 = 0 ;
18056 wxColour *arg3 = 0 ;
18057 wxColour *arg4 = 0 ;
18058 wxColour *arg5 = 0 ;
18059 wxColour *arg6 = 0 ;
18060 wxColour temp2 ;
18061 wxColour temp3 ;
18062 wxColour temp4 ;
18063 wxColour temp5 ;
18064 wxColour temp6 ;
18065 PyObject * obj0 = 0 ;
18066 PyObject * obj1 = 0 ;
18067 PyObject * obj2 = 0 ;
18068 PyObject * obj3 = 0 ;
18069 PyObject * obj4 = 0 ;
18070 PyObject * obj5 = 0 ;
18071 char *kwnames[] = {
18072 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18073 };
18074
18075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18077 {
18078 arg2 = &temp2;
18079 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18080 }
18081 {
18082 arg3 = &temp3;
18083 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18084 }
18085 {
18086 arg4 = &temp4;
18087 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18088 }
18089 {
18090 arg5 = &temp5;
18091 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18092 }
18093 {
18094 arg6 = &temp6;
18095 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18096 }
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18100
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 Py_INCREF(Py_None); resultobj = Py_None;
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxEffects *arg1 = (wxEffects *) 0 ;
18114 wxDC *arg2 = 0 ;
18115 wxRect *arg3 = 0 ;
18116 int arg4 = (int) 1 ;
18117 wxRect temp3 ;
18118 PyObject * obj0 = 0 ;
18119 PyObject * obj1 = 0 ;
18120 PyObject * obj2 = 0 ;
18121 PyObject * obj3 = 0 ;
18122 char *kwnames[] = {
18123 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18124 };
18125
18126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18128 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18129 if (arg2 == NULL) {
18130 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18131 }
18132 {
18133 arg3 = &temp3;
18134 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18135 }
18136 if (obj3) {
18137 {
18138 arg4 = (int) SWIG_PyObj_AsInt(obj3);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 }
18142 {
18143 PyThreadState* __tstate = wxPyBeginAllowThreads();
18144 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18145
18146 wxPyEndAllowThreads(__tstate);
18147 if (PyErr_Occurred()) SWIG_fail;
18148 }
18149 Py_INCREF(Py_None); resultobj = Py_None;
18150 return resultobj;
18151 fail:
18152 return NULL;
18153 }
18154
18155
18156 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18157 PyObject *resultobj;
18158 wxEffects *arg1 = (wxEffects *) 0 ;
18159 wxRect *arg2 = 0 ;
18160 wxDC *arg3 = 0 ;
18161 wxBitmap *arg4 = 0 ;
18162 bool result;
18163 wxRect temp2 ;
18164 PyObject * obj0 = 0 ;
18165 PyObject * obj1 = 0 ;
18166 PyObject * obj2 = 0 ;
18167 PyObject * obj3 = 0 ;
18168 char *kwnames[] = {
18169 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18170 };
18171
18172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18174 {
18175 arg2 = &temp2;
18176 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18177 }
18178 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18179 if (arg3 == NULL) {
18180 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18181 }
18182 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
18183 if (arg4 == NULL) {
18184 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
18185 }
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18189
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18201 PyObject *obj;
18202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18203 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18204 Py_INCREF(obj);
18205 return Py_BuildValue((char *)"");
18206 }
18207 static PyMethodDef SwigMethods[] = {
18208 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18214 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18221 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18229 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18231 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18235 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18254 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
18258 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18268 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18297 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18300 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18319 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18327 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18335 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18351 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18378 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18392 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18416 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18425 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18444 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18481 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18489 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18496 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18518 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18520 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18528 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18653 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18657 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18661 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18663 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18668 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18670 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18672 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18674 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18676 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18682 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18691 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18694 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18696 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18708 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18713 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18718 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18725 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18730 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18745 { NULL, NULL }
18746 };
18747
18748
18749 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18750
18751 static void *_p_wxControlTo_p_wxWindow(void *x) {
18752 return (void *)((wxWindow *) ((wxControl *) x));
18753 }
18754 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18755 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18756 }
18757 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18758 return (void *)((wxWindow *) ((wxMenuBar *) x));
18759 }
18760 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18761 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18762 }
18763 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18764 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18765 }
18766 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18767 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18768 }
18769 static void *_p_wxPenTo_p_wxObject(void *x) {
18770 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18771 }
18772 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18773 return (void *)((wxObject *) ((wxRegionIterator *) x));
18774 }
18775 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18776 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18777 }
18778 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18779 return (void *)((wxObject *) ((wxSizerItem *) x));
18780 }
18781 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18782 return (void *)((wxObject *) ((wxColourDatabase *) x));
18783 }
18784 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18785 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18786 }
18787 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18788 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18789 }
18790 static void *_p_wxIconTo_p_wxObject(void *x) {
18791 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18792 }
18793 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18794 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18795 }
18796 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18797 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18798 }
18799 static void *_p_wxSizerTo_p_wxObject(void *x) {
18800 return (void *)((wxObject *) ((wxSizer *) x));
18801 }
18802 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18803 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18804 }
18805 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18806 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18807 }
18808 static void *_p_wxPenListTo_p_wxObject(void *x) {
18809 return (void *)((wxObject *) ((wxPenList *) x));
18810 }
18811 static void *_p_wxEventTo_p_wxObject(void *x) {
18812 return (void *)((wxObject *) ((wxEvent *) x));
18813 }
18814 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18815 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18816 }
18817 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18818 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18819 }
18820 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18821 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18822 }
18823 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18824 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18825 }
18826 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18827 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18828 }
18829 static void *_p_wxDCTo_p_wxObject(void *x) {
18830 return (void *)((wxObject *) ((wxDC *) x));
18831 }
18832 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18833 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18834 }
18835 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18836 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18837 }
18838 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18839 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18840 }
18841 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18842 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18843 }
18844 static void *_p_wxControlTo_p_wxObject(void *x) {
18845 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18846 }
18847 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18848 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18849 }
18850 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18851 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18852 }
18853 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18854 return (void *)((wxObject *) ((wxFSFile *) x));
18855 }
18856 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18857 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18858 }
18859 static void *_p_wxRegionTo_p_wxObject(void *x) {
18860 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18861 }
18862 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18863 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18864 }
18865 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18866 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18867 }
18868 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) ((wxGDIObject *) x));
18870 }
18871 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) ((wxEffects *) x));
18873 }
18874 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18876 }
18877 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18879 }
18880 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18882 }
18883 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18885 }
18886 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) ((wxMenuItem *) x));
18888 }
18889 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18891 }
18892 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18894 }
18895 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18897 }
18898 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18900 }
18901 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18903 }
18904 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18906 }
18907 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18909 }
18910 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18912 }
18913 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18915 }
18916 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18918 }
18919 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18921 }
18922 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18924 }
18925 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18927 }
18928 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18930 }
18931 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18933 }
18934 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18936 }
18937 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18939 }
18940 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18942 }
18943 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) ((wxImageHandler *) x));
18945 }
18946 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18948 }
18949 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) ((wxEvtHandler *) x));
18951 }
18952 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18954 }
18955 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18957 }
18958 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18960 }
18961 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18963 }
18964 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18966 }
18967 static void *_p_wxImageTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) ((wxImage *) x));
18969 }
18970 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18972 }
18973 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18975 }
18976 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18978 }
18979 static void *_p_wxImageListTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) ((wxImageList *) x));
18981 }
18982 static void *_p_wxCursorTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18984 }
18985 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18987 }
18988 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18990 }
18991 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18993 }
18994 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18996 }
18997 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18999 }
19000 static void *_p_wxWindowTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19002 }
19003 static void *_p_wxMenuTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19005 }
19006 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19008 }
19009 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19011 }
19012 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) ((wxBrushList *) x));
19014 }
19015 static void *_p_wxPyPenTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
19017 }
19018 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) ((wxFileSystem *) x));
19020 }
19021 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19023 }
19024 static void *_p_wxMaskTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) ((wxMask *) x));
19026 }
19027 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19029 }
19030 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19032 }
19033 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19035 }
19036 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19038 }
19039 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19041 }
19042 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19044 }
19045 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19047 }
19048 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19050 }
19051 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19053 }
19054 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19056 }
19057 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19059 }
19060 static void *_p_wxFontTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19062 }
19063 static void *_p_wxBrushTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19065 }
19066 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) ((wxMetaFile *) x));
19068 }
19069 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19071 }
19072 static void *_p_wxColourTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) ((wxColour *) x));
19074 }
19075 static void *_p_wxFontListTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) ((wxFontList *) x));
19077 }
19078 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19080 }
19081 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19083 }
19084 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19085 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19086 }
19087 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19088 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19089 }
19090 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19091 return (void *)((wxDC *) ((wxScreenDC *) x));
19092 }
19093 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19094 return (void *)((wxDC *) ((wxMirrorDC *) x));
19095 }
19096 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19097 return (void *)((wxDC *) ((wxMemoryDC *) x));
19098 }
19099 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19100 return (void *)((wxDC *) ((wxWindowDC *) x));
19101 }
19102 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19103 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19104 }
19105 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19106 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19107 }
19108 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19109 return (void *)((wxDC *) ((wxClientDC *) x));
19110 }
19111 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19112 return (void *)((wxDC *) ((wxPaintDC *) x));
19113 }
19114 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19115 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19116 }
19117 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19118 return (void *)((wxDC *) ((wxPrinterDC *) x));
19119 }
19120 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
19121 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
19122 }
19123 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19124 return (void *)((wxGDIObject *) ((wxIcon *) x));
19125 }
19126 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19127 return (void *)((wxGDIObject *) ((wxPalette *) x));
19128 }
19129 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19130 return (void *)((wxGDIObject *) ((wxPen *) x));
19131 }
19132 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19133 return (void *)((wxGDIObject *) ((wxFont *) x));
19134 }
19135 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19136 return (void *)((wxGDIObject *) ((wxCursor *) x));
19137 }
19138 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19139 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19140 }
19141 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19142 return (void *)((wxGDIObject *) ((wxRegion *) x));
19143 }
19144 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19145 return (void *)((wxGDIObject *) ((wxBrush *) x));
19146 }
19147 static void *_p_wxPyPenTo_p_wxPen(void *x) {
19148 return (void *)((wxPen *) ((wxPyPen *) x));
19149 }
19150 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
19151 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
19152 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
19153 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}};
19154 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
19155 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19156 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
19157 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
19158 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
19159 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
19160 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
19161 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
19162 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
19163 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}};
19164 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
19165 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
19166 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}};
19167 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
19168 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
19169 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
19170 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
19171 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
19172 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}};
19173 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
19174 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
19175 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
19176 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
19177 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
19178 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
19179 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
19180 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
19181 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
19182 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
19183 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
19184 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
19185 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
19186 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}};
19187 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
19188 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
19189 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
19190 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
19191 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
19192 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
19193 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
19194 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
19195 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
19196 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
19197 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
19198 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
19199 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
19200 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
19201 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
19202 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
19203 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
19204 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
19205 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
19206
19207 static swig_type_info *swig_types_initial[] = {
19208 _swigt__p_wxPostScriptDC,
19209 _swigt__p_wxBrush,
19210 _swigt__p_wxColour,
19211 _swigt__p_wxDC,
19212 _swigt__p_wxMirrorDC,
19213 _swigt__p_byte,
19214 _swigt__p_wxPyFontEnumerator,
19215 _swigt__p_char,
19216 _swigt__p_wxIconLocation,
19217 _swigt__p_wxImage,
19218 _swigt__p_wxMetaFileDC,
19219 _swigt__p_wxMask,
19220 _swigt__p_wxFont,
19221 _swigt__p_wxWindow,
19222 _swigt__p_wxSize,
19223 _swigt__p_double,
19224 _swigt__p_wxMemoryDC,
19225 _swigt__p_wxFontMapper,
19226 _swigt__p_wxEffects,
19227 _swigt__p_wxNativeEncodingInfo,
19228 _swigt__p_wxPalette,
19229 _swigt__p_wxBitmap,
19230 _swigt__p_wxObject,
19231 _swigt__p_wxRegionIterator,
19232 _swigt__p_wxRect,
19233 _swigt__p_wxString,
19234 _swigt__p_wxPrinterDC,
19235 _swigt__p_wxIconBundle,
19236 _swigt__p_wxPoint,
19237 _swigt__p_wxDash,
19238 _swigt__p_wxScreenDC,
19239 _swigt__p_wxCursor,
19240 _swigt__p_wxClientDC,
19241 _swigt__p_wxBufferedDC,
19242 _swigt__p_wxImageList,
19243 _swigt__p_unsigned_char,
19244 _swigt__p_wxGDIObject,
19245 _swigt__p_wxIcon,
19246 _swigt__p_wxLocale,
19247 _swigt__p_wxRegion,
19248 _swigt__p_wxLanguageInfo,
19249 _swigt__p_wxConfigBase,
19250 _swigt__p_wxWindowDC,
19251 _swigt__p_wxPrintData,
19252 _swigt__p_wxBrushList,
19253 _swigt__p_wxFontList,
19254 _swigt__p_wxPen,
19255 _swigt__p_wxBufferedPaintDC,
19256 _swigt__p_wxPaintDC,
19257 _swigt__p_wxPenList,
19258 _swigt__p_wxPyPen,
19259 _swigt__p_int,
19260 _swigt__p_wxMetaFile,
19261 _swigt__p_wxNativeFontInfo,
19262 _swigt__p_wxEncodingConverter,
19263 _swigt__p_wxColourDatabase,
19264 0
19265 };
19266
19267
19268 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19269
19270 static swig_const_info swig_const_table[] = {
19271 {0}};
19272
19273 #ifdef __cplusplus
19274 }
19275 #endif
19276
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 SWIGEXPORT(void) SWIG_init(void) {
19281 static PyObject *SWIG_globals = 0;
19282 static int typeinit = 0;
19283 PyObject *m, *d;
19284 int i;
19285 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19286 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19287 d = PyModule_GetDict(m);
19288
19289 if (!typeinit) {
19290 for (i = 0; swig_types_initial[i]; i++) {
19291 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19292 }
19293 typeinit = 1;
19294 }
19295 SWIG_InstallConstants(d,swig_const_table);
19296
19297 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
19298 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
19299 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
19300 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
19301 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
19302 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
19303 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
19304 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
19305 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
19306 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
19307 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
19308 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
19309 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
19310 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
19311 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
19312 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
19313 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
19314 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
19315 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
19316 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
19317 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
19318 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
19319 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
19320 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
19321 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
19322 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
19323 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19324 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
19325 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19326 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
19327 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
19328 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
19329 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
19330 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
19331 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
19332 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
19333 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
19334 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
19335 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
19336 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
19337 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
19338 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
19339 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
19340 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
19341 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
19342 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
19343 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
19344 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19345 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
19346 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19347 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
19348 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
19349 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
19350 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
19351 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
19352 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
19353 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
19354 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
19355 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
19356 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
19357 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
19358 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
19359 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
19360 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
19361 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
19362 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
19363 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
19364 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
19365 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
19366 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
19367 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
19368 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
19369 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
19370 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
19371 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
19372 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
19373 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
19374 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
19375 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
19376 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19377 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
19378 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
19379 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
19380 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
19381 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19382 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19383 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19384 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
19385 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
19386 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
19387 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
19388 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
19389 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
19390 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19391 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
19392 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
19393 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
19394 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
19395 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19396 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19397 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
19398 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19399 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
19400 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19401 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19402 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19403 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19404 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
19405 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
19406 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
19407 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
19408 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
19409 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
19410 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
19411 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
19412 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
19413 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19414 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
19415 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
19416 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
19417 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
19418 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
19419 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
19420 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
19421 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
19422 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19423
19424 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19425
19426 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
19427 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
19428 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19429 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
19430 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
19431 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
19432 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
19433 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
19434 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19435 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19436 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19437 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19438 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19439 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19440 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19441 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19442 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19443 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19444 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19445 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19446 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19447 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19448 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19449 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19450 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19451 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
19452 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
19453 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
19454 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
19455 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19456 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19457 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
19458 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
19459 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
19460 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
19461 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
19462 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
19463 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
19464 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
19465 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
19466 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
19467 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
19468 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
19469 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
19470 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19471 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19472 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19473 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19474 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19475 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19476 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
19477 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
19478 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
19479 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
19480 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
19481 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19482 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
19483 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19484 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
19485 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19486 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19487 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19488 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19489 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19490 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19491 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19492 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19493 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19494 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19495 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19496 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19497 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19498 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
19499 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
19500 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
19501 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
19502 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
19503 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
19504 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
19505 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19506 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19507 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19508 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19509 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19510 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
19511 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
19512 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
19513 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
19514 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19515 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19516 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19517 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19518 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19519 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
19520 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
19521 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
19522 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
19523 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
19524 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
19525 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
19526 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
19528 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
19529 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
19530 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
19531 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
19532 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
19533 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
19534 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
19535 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19536 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
19537 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
19538 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
19539 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
19540 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19541 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
19542 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
19543 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
19544 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
19545 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
19546 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
19547 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
19548 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
19549 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
19550 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
19551 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
19552 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
19553 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
19554 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
19555 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
19556 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
19557 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
19558 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19559 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19560 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
19561 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
19562 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
19563 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
19564 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19565 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
19566 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
19567 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
19568 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19569 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19570 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19571 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
19572 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
19573 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
19574 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
19575 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
19576 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
19577 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19578 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
19579 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
19580 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19581 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
19582 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19583 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19584 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19585 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19586 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19587 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19588 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19589 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19590 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19591 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19592 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19593 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19594 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19595 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19596 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19597 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19598 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19599 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19600 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19601 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19602 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19603 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19604 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19605 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19606 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19607 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19608 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19609 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19610 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19611 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19612 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19613 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19614 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19615 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19616 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19617 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19618 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19619 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19620 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19621 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19622 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19623 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19624 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19625 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19626 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19627 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19628 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19629 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19630 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19631 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19632 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19633 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19634 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19635 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19636 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19637 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19638 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19639 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19640 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19641 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19642 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19643 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19644 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19645 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19646 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19647 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19648 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19649 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19650 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19651 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19652 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19653 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19654 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19655 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19656 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19657 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19658 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19659 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19660 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19661 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19662 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19663 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19664 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19665 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19666 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19667 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19668 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19669 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19670 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19671 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19672 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19673 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19674 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19675 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19676 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19677 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19678 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19679 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19680 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19681 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19682 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19683 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19684 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19685 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19686 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19687 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19688 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19689 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19690 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19691 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19692 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19693 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19694 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19695 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19696 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19697 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19698 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19699 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19700 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19701 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19702 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19703 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19704 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19705 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19706 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19707 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19708 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19709 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19710 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19711 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19712 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19713 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19723 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19724 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19725 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19726
19727 // Work around a chicken/egg problem in drawlist.cpp
19728 wxPyDrawList_SetAPIPtr();
19729
19730 }
19731