]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/gdi_wrap.cpp
Added some more docstrings, and also a few little tweaks along the way.
[wxWidgets.git] / wxPython / src / gtk / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(bool)
346 SWIG_PyObj_AsBool(PyObject *obj)
347 {
348 return PyObject_IsTrue(obj) ? true : false;
349 }
350
351
352 SWIGSTATIC(unsigned char)
353 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
354 {
355 return numeric_cast(unsigned char,
356 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
357 }
358
359 PyObject *wxColour_Get(wxColour *self){
360 PyObject* rv = PyTuple_New(3);
361 int red = -1;
362 int green = -1;
363 int blue = -1;
364 if (self->Ok()) {
365 red = self->Red();
366 green = self->Green();
367 blue = self->Blue();
368 }
369 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
370 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
371 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
372 return rv;
373 }
374
375 SWIGSTATIC(int)
376 SWIG_PyObj_AsInt(PyObject *obj)
377 {
378 return numeric_cast(int,
379 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
380 }
381
382
383 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
384 PyObject* o2;
385 PyObject* o3;
386
387 if (!target) {
388 target = o;
389 } else if (target == Py_None) {
390 Py_DECREF(Py_None);
391 target = o;
392 } else {
393 if (!PyTuple_Check(target)) {
394 o2 = target;
395 target = PyTuple_New(1);
396 PyTuple_SetItem(target, 0, o2);
397 }
398 o3 = PyTuple_New(1);
399 PyTuple_SetItem(o3, 0, o);
400
401 o2 = target;
402 target = PySequence_Concat(o2, o3);
403 Py_DECREF(o2);
404 Py_DECREF(o3);
405 }
406 return target;
407 }
408
409 PyObject *wxPen_GetDashes(wxPen *self){
410 wxDash* dashes;
411 int count = self->GetDashes(&dashes);
412 wxPyBeginBlockThreads();
413 PyObject* retval = PyList_New(0);
414 for (int x=0; x<count; x++)
415 PyList_Append(retval, PyInt_FromLong(dashes[x]));
416 wxPyEndBlockThreads();
417 return retval;
418 }
419
420 wxPyPen::~wxPyPen()
421 {
422 if (m_dash)
423 delete [] m_dash;
424 }
425
426 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
427 {
428 if (m_dash)
429 delete [] m_dash;
430 m_dash = new wxDash[nb_dashes];
431 for (int i=0; i<nb_dashes; i++) {
432 m_dash[i] = dash[i];
433 }
434 wxPen::SetDashes(nb_dashes, m_dash);
435 }
436
437
438 #include <wx/image.h>
439
440 static char** ConvertListOfStrings(PyObject* listOfStrings) {
441 char** cArray = NULL;
442 int count;
443
444 if (!PyList_Check(listOfStrings)) {
445 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
446 return NULL;
447 }
448 count = PyList_Size(listOfStrings);
449 cArray = new char*[count];
450
451 for(int x=0; x<count; x++) {
452 // TODO: Need some validation and error checking here
453 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
454 }
455 return cArray;
456 }
457
458
459 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
460 char** cArray = NULL;
461 wxBitmap* bmp;
462
463 cArray = ConvertListOfStrings(listOfStrings);
464 if (! cArray)
465 return NULL;
466 bmp = new wxBitmap(cArray);
467 delete [] cArray;
468 return bmp;
469 }
470 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
471 char* buf;
472 int length;
473 PyString_AsStringAndSize(bits, &buf, &length);
474 return new wxBitmap(buf, width, height, depth);
475 }
476 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
477 wxMask *mask = new wxMask(*self, colour);
478 self->SetMask(mask);
479 }
480 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
481 if ( !colour.Ok() )
482 return new wxMask(bitmap, *wxBLACK);
483 else
484 return new wxMask(bitmap, colour);
485 }
486
487 #include <wx/iconbndl.h>
488
489 wxIcon *new_wxIcon(wxBitmap const &bmp){
490 wxIcon* icon = new wxIcon();
491 icon->CopyFromBitmap(bmp);
492 return icon;
493 }
494 wxIcon *new_wxIcon(PyObject *listOfStrings){
495 char** cArray = NULL;
496 wxIcon* icon;
497
498 cArray = ConvertListOfStrings(listOfStrings);
499 if (! cArray)
500 return NULL;
501 icon = new wxIcon(cArray);
502 delete [] cArray;
503 return icon;
504 }
505 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
506
507
508
509 return new wxIconLocation(*filename);
510
511 }
512 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
513
514
515
516 // do nothing
517
518 }
519 int wxIconLocation_GetIndex(wxIconLocation *self){
520
521
522
523 return -1;
524
525 }
526
527 SWIGSTATIC(long)
528 SWIG_PyObj_AsLong(PyObject * obj)
529 {
530 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
531 }
532
533 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
534
535 wxCHECK_MSG(False, NULL,
536 wxT("wxCursor constructor not implemented for wxGTK, use wxStockCursor, wxCursorFromImage, or wxCursorFromBits instead."));
537
538
539
540 }
541 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
542 char* bitsbuf;
543 char* maskbuf = NULL;
544 int length;
545 PyString_AsStringAndSize(bits, &bitsbuf, &length);
546 if (maskBits)
547 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
548 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
549 }
550
551
552 void wxRegionIterator_Next(wxRegionIterator *self){
553 (*self) ++;
554 }
555 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
556 return self->operator bool();
557 }
558
559 #include <wx/fontutil.h>
560 #include <wx/fontmap.h>
561 #include <wx/fontenum.h>
562
563 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
564 return self->ToString();
565 }
566
567 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
568 static wxNativeEncodingInfo info;
569 if ( wxGetNativeFontEncoding(encoding, &info) )
570 return &info;
571 else
572 return NULL;
573 }
574
575
576 SWIGSTATIC(PyObject* )
577 SWIG_PyObj_FromUnsignedLong(unsigned long value)
578 {
579 return (value > (unsigned long)(LONG_MAX)) ?
580 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
581 }
582
583 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
584 wxFontEncoding alt_enc;
585 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
586 return PyInt_FromLong(alt_enc);
587 else {
588 Py_INCREF(Py_None);
589 return Py_None;
590 }
591 }
592 wxFont *new_wxFont(wxString const &info){
593 wxNativeFontInfo nfi;
594 nfi.FromString(info);
595 return new wxFont(nfi);
596 }
597 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
598 return wxFont::New(pointSize, family, flags, face, encoding);
599 }
600
601 class wxPyFontEnumerator : public wxFontEnumerator {
602 public:
603 wxPyFontEnumerator() {}
604 ~wxPyFontEnumerator() {}
605
606 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
607 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
608
609 PYPRIVATE;
610 };
611
612 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
613 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
614
615
616 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
617 wxArrayString* arr = self->GetEncodings();
618 return wxArrayString2PyList_helper(*arr);
619 }
620 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
621 wxArrayString* arr = self->GetFacenames();
622 return wxArrayString2PyList_helper(*arr);
623 }
624
625
626
627 #include "wx/wxPython/pydrawxxx.h"
628
629 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
630 wxColour col;
631 self->GetPixel(x, y, &col);
632 return col;
633 }
634 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
635 wxColour col;
636 self->GetPixel(pt, &col);
637 return col;
638 }
639
640 SWIGSTATIC(double)
641 SWIG_PyObj_AsDouble(PyObject *obj)
642 {
643 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
644 #if HAVE_LONG_LONG
645 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
646 #else
647 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
648 #endif
649 if (PyErr_Occurred()) {
650 PyErr_Clear();
651 PyErr_SetString(PyExc_TypeError, "a double is expected");
652 }
653 }
654
655 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
656 wxRect rv;
657 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
658 return rv;
659 }
660 wxRect wxDC_GetClippingRect(wxDC *self){
661 wxRect rect;
662 self->GetClippingBox(rect);
663 return rect;
664 }
665 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
666 wxArrayInt widths;
667 self->GetPartialTextExtents(text, widths);
668 return widths;
669 }
670 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
671 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
672 }
673 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
674 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
675 }
676 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
677 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
678 }
679 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
680 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
681 }
682 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
683 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
684 }
685 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
686 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
687 }
688
689 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
690 *x1 = dc->MinX();
691 *y1 = dc->MinY();
692 *x2 = dc->MaxX();
693 *y2 = dc->MaxY();
694 }
695
696
697 #include <wx/dcps.h>
698
699
700 class wxMetaFile : public wxObject {
701 public:
702 wxMetaFile(const wxString&)
703 { wxPyRaiseNotImplemented(); }
704 };
705
706 class wxMetaFileDC : public wxClientDC {
707 public:
708 wxMetaFileDC(const wxString&, int, int, const wxString&)
709 { wxPyRaiseNotImplemented(); }
710 };
711
712
713
714 class wxPrinterDC : public wxClientDC {
715 public:
716 wxPrinterDC(const wxPrintData&)
717 { wxPyRaiseNotImplemented(); }
718
719 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
720 // { wxPyRaiseNotImplemented(); }
721 };
722
723
724
725 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
726 self->AddColour(name, wxColour(red, green, blue));
727 }
728
729 #include <wx/effects.h>
730
731 #ifdef __cplusplus
732 extern "C" {
733 #endif
734 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject *resultobj;
736 wxGDIObject *result;
737 char *kwnames[] = {
738 NULL
739 };
740
741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
742 {
743 PyThreadState* __tstate = wxPyBeginAllowThreads();
744 result = (wxGDIObject *)new wxGDIObject();
745
746 wxPyEndAllowThreads(__tstate);
747 if (PyErr_Occurred()) SWIG_fail;
748 }
749 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
750 return resultobj;
751 fail:
752 return NULL;
753 }
754
755
756 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
757 PyObject *resultobj;
758 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
759 PyObject * obj0 = 0 ;
760 char *kwnames[] = {
761 (char *) "self", NULL
762 };
763
764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
766 {
767 PyThreadState* __tstate = wxPyBeginAllowThreads();
768 delete arg1;
769
770 wxPyEndAllowThreads(__tstate);
771 if (PyErr_Occurred()) SWIG_fail;
772 }
773 Py_INCREF(Py_None); resultobj = Py_None;
774 return resultobj;
775 fail:
776 return NULL;
777 }
778
779
780 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject *resultobj;
782 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
783 bool result;
784 PyObject * obj0 = 0 ;
785 char *kwnames[] = {
786 (char *) "self", NULL
787 };
788
789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
791 {
792 PyThreadState* __tstate = wxPyBeginAllowThreads();
793 result = (bool)(arg1)->GetVisible();
794
795 wxPyEndAllowThreads(__tstate);
796 if (PyErr_Occurred()) SWIG_fail;
797 }
798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
799 return resultobj;
800 fail:
801 return NULL;
802 }
803
804
805 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
806 PyObject *resultobj;
807 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
808 bool arg2 ;
809 PyObject * obj0 = 0 ;
810 PyObject * obj1 = 0 ;
811 char *kwnames[] = {
812 (char *) "self",(char *) "visible", NULL
813 };
814
815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
817 {
818 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
819 if (PyErr_Occurred()) SWIG_fail;
820 }
821 {
822 PyThreadState* __tstate = wxPyBeginAllowThreads();
823 (arg1)->SetVisible(arg2);
824
825 wxPyEndAllowThreads(__tstate);
826 if (PyErr_Occurred()) SWIG_fail;
827 }
828 Py_INCREF(Py_None); resultobj = Py_None;
829 return resultobj;
830 fail:
831 return NULL;
832 }
833
834
835 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
836 PyObject *resultobj;
837 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
838 bool result;
839 PyObject * obj0 = 0 ;
840 char *kwnames[] = {
841 (char *) "self", NULL
842 };
843
844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
846 {
847 PyThreadState* __tstate = wxPyBeginAllowThreads();
848 result = (bool)(arg1)->IsNull();
849
850 wxPyEndAllowThreads(__tstate);
851 if (PyErr_Occurred()) SWIG_fail;
852 }
853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
854 return resultobj;
855 fail:
856 return NULL;
857 }
858
859
860 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
861 PyObject *obj;
862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
863 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
864 Py_INCREF(obj);
865 return Py_BuildValue((char *)"");
866 }
867 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
868 PyObject *resultobj;
869 unsigned char arg1 = (unsigned char) 0 ;
870 unsigned char arg2 = (unsigned char) 0 ;
871 unsigned char arg3 = (unsigned char) 0 ;
872 wxColour *result;
873 PyObject * obj0 = 0 ;
874 PyObject * obj1 = 0 ;
875 PyObject * obj2 = 0 ;
876 char *kwnames[] = {
877 (char *) "red",(char *) "green",(char *) "blue", NULL
878 };
879
880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
881 if (obj0) {
882 {
883 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
884 if (PyErr_Occurred()) SWIG_fail;
885 }
886 }
887 if (obj1) {
888 {
889 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
890 if (PyErr_Occurred()) SWIG_fail;
891 }
892 }
893 if (obj2) {
894 {
895 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
896 if (PyErr_Occurred()) SWIG_fail;
897 }
898 }
899 {
900 PyThreadState* __tstate = wxPyBeginAllowThreads();
901 result = (wxColour *)new wxColour(arg1,arg2,arg3);
902
903 wxPyEndAllowThreads(__tstate);
904 if (PyErr_Occurred()) SWIG_fail;
905 }
906 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
907 return resultobj;
908 fail:
909 return NULL;
910 }
911
912
913 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
914 PyObject *resultobj;
915 wxColour *arg1 = (wxColour *) 0 ;
916 PyObject * obj0 = 0 ;
917 char *kwnames[] = {
918 (char *) "self", NULL
919 };
920
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
923 {
924 PyThreadState* __tstate = wxPyBeginAllowThreads();
925 delete arg1;
926
927 wxPyEndAllowThreads(__tstate);
928 if (PyErr_Occurred()) SWIG_fail;
929 }
930 Py_INCREF(Py_None); resultobj = Py_None;
931 return resultobj;
932 fail:
933 return NULL;
934 }
935
936
937 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
938 PyObject *resultobj;
939 wxString *arg1 = 0 ;
940 wxColour *result;
941 bool temp1 = False ;
942 PyObject * obj0 = 0 ;
943 char *kwnames[] = {
944 (char *) "colorName", NULL
945 };
946
947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
948 {
949 arg1 = wxString_in_helper(obj0);
950 if (arg1 == NULL) SWIG_fail;
951 temp1 = True;
952 }
953 {
954 PyThreadState* __tstate = wxPyBeginAllowThreads();
955 result = (wxColour *)new wxColour((wxString const &)*arg1);
956
957 wxPyEndAllowThreads(__tstate);
958 if (PyErr_Occurred()) SWIG_fail;
959 }
960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
961 {
962 if (temp1)
963 delete arg1;
964 }
965 return resultobj;
966 fail:
967 {
968 if (temp1)
969 delete arg1;
970 }
971 return NULL;
972 }
973
974
975 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
976 PyObject *resultobj;
977 unsigned long arg1 ;
978 wxColour *result;
979 PyObject * obj0 = 0 ;
980 char *kwnames[] = {
981 (char *) "colRGB", NULL
982 };
983
984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
985 {
986 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
987 if (PyErr_Occurred()) SWIG_fail;
988 }
989 {
990 PyThreadState* __tstate = wxPyBeginAllowThreads();
991 result = (wxColour *)new wxColour(arg1);
992
993 wxPyEndAllowThreads(__tstate);
994 if (PyErr_Occurred()) SWIG_fail;
995 }
996 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
997 return resultobj;
998 fail:
999 return NULL;
1000 }
1001
1002
1003 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1004 PyObject *resultobj;
1005 wxColour *arg1 = (wxColour *) 0 ;
1006 unsigned char result;
1007 PyObject * obj0 = 0 ;
1008 char *kwnames[] = {
1009 (char *) "self", NULL
1010 };
1011
1012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1014 {
1015 PyThreadState* __tstate = wxPyBeginAllowThreads();
1016 result = (unsigned char)(arg1)->Red();
1017
1018 wxPyEndAllowThreads(__tstate);
1019 if (PyErr_Occurred()) SWIG_fail;
1020 }
1021 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1022 return resultobj;
1023 fail:
1024 return NULL;
1025 }
1026
1027
1028 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1029 PyObject *resultobj;
1030 wxColour *arg1 = (wxColour *) 0 ;
1031 unsigned char result;
1032 PyObject * obj0 = 0 ;
1033 char *kwnames[] = {
1034 (char *) "self", NULL
1035 };
1036
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1039 {
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 result = (unsigned char)(arg1)->Green();
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) SWIG_fail;
1045 }
1046 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1047 return resultobj;
1048 fail:
1049 return NULL;
1050 }
1051
1052
1053 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1054 PyObject *resultobj;
1055 wxColour *arg1 = (wxColour *) 0 ;
1056 unsigned char result;
1057 PyObject * obj0 = 0 ;
1058 char *kwnames[] = {
1059 (char *) "self", NULL
1060 };
1061
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1064 {
1065 PyThreadState* __tstate = wxPyBeginAllowThreads();
1066 result = (unsigned char)(arg1)->Blue();
1067
1068 wxPyEndAllowThreads(__tstate);
1069 if (PyErr_Occurred()) SWIG_fail;
1070 }
1071 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1072 return resultobj;
1073 fail:
1074 return NULL;
1075 }
1076
1077
1078 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1079 PyObject *resultobj;
1080 wxColour *arg1 = (wxColour *) 0 ;
1081 bool result;
1082 PyObject * obj0 = 0 ;
1083 char *kwnames[] = {
1084 (char *) "self", NULL
1085 };
1086
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1089 {
1090 PyThreadState* __tstate = wxPyBeginAllowThreads();
1091 result = (bool)(arg1)->Ok();
1092
1093 wxPyEndAllowThreads(__tstate);
1094 if (PyErr_Occurred()) SWIG_fail;
1095 }
1096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1097 return resultobj;
1098 fail:
1099 return NULL;
1100 }
1101
1102
1103 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1104 PyObject *resultobj;
1105 wxColour *arg1 = (wxColour *) 0 ;
1106 unsigned char arg2 ;
1107 unsigned char arg3 ;
1108 unsigned char arg4 ;
1109 PyObject * obj0 = 0 ;
1110 PyObject * obj1 = 0 ;
1111 PyObject * obj2 = 0 ;
1112 PyObject * obj3 = 0 ;
1113 char *kwnames[] = {
1114 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1115 };
1116
1117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1119 {
1120 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1121 if (PyErr_Occurred()) SWIG_fail;
1122 }
1123 {
1124 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
1127 {
1128 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 }
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 (arg1)->Set(arg2,arg3,arg4);
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 Py_INCREF(Py_None); resultobj = Py_None;
1139 return resultobj;
1140 fail:
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxColour *arg1 = (wxColour *) 0 ;
1148 unsigned long arg2 ;
1149 PyObject * obj0 = 0 ;
1150 PyObject * obj1 = 0 ;
1151 char *kwnames[] = {
1152 (char *) "self",(char *) "colRGB", NULL
1153 };
1154
1155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1157 {
1158 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 }
1161 {
1162 PyThreadState* __tstate = wxPyBeginAllowThreads();
1163 (arg1)->Set(arg2);
1164
1165 wxPyEndAllowThreads(__tstate);
1166 if (PyErr_Occurred()) SWIG_fail;
1167 }
1168 Py_INCREF(Py_None); resultobj = Py_None;
1169 return resultobj;
1170 fail:
1171 return NULL;
1172 }
1173
1174
1175 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1176 PyObject *resultobj;
1177 wxColour *arg1 = (wxColour *) 0 ;
1178 wxColour *arg2 = 0 ;
1179 bool result;
1180 wxColour temp2 ;
1181 PyObject * obj0 = 0 ;
1182 PyObject * obj1 = 0 ;
1183 char *kwnames[] = {
1184 (char *) "self",(char *) "colour", NULL
1185 };
1186
1187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1189 {
1190 arg2 = &temp2;
1191 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1192 }
1193 {
1194 PyThreadState* __tstate = wxPyBeginAllowThreads();
1195 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1196
1197 wxPyEndAllowThreads(__tstate);
1198 if (PyErr_Occurred()) SWIG_fail;
1199 }
1200 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1201 return resultobj;
1202 fail:
1203 return NULL;
1204 }
1205
1206
1207 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1208 PyObject *resultobj;
1209 wxColour *arg1 = (wxColour *) 0 ;
1210 wxColour *arg2 = 0 ;
1211 bool result;
1212 wxColour temp2 ;
1213 PyObject * obj0 = 0 ;
1214 PyObject * obj1 = 0 ;
1215 char *kwnames[] = {
1216 (char *) "self",(char *) "colour", NULL
1217 };
1218
1219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1221 {
1222 arg2 = &temp2;
1223 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1224 }
1225 {
1226 PyThreadState* __tstate = wxPyBeginAllowThreads();
1227 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1228
1229 wxPyEndAllowThreads(__tstate);
1230 if (PyErr_Occurred()) SWIG_fail;
1231 }
1232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1233 return resultobj;
1234 fail:
1235 return NULL;
1236 }
1237
1238
1239 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1240 PyObject *resultobj;
1241 wxColour *arg1 = (wxColour *) 0 ;
1242 wxString *arg2 = 0 ;
1243 bool temp2 = False ;
1244 PyObject * obj0 = 0 ;
1245 PyObject * obj1 = 0 ;
1246 char *kwnames[] = {
1247 (char *) "self",(char *) "colourName", NULL
1248 };
1249
1250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1252 {
1253 arg2 = wxString_in_helper(obj1);
1254 if (arg2 == NULL) SWIG_fail;
1255 temp2 = True;
1256 }
1257 {
1258 PyThreadState* __tstate = wxPyBeginAllowThreads();
1259 (arg1)->InitFromName((wxString const &)*arg2);
1260
1261 wxPyEndAllowThreads(__tstate);
1262 if (PyErr_Occurred()) SWIG_fail;
1263 }
1264 Py_INCREF(Py_None); resultobj = Py_None;
1265 {
1266 if (temp2)
1267 delete arg2;
1268 }
1269 return resultobj;
1270 fail:
1271 {
1272 if (temp2)
1273 delete arg2;
1274 }
1275 return NULL;
1276 }
1277
1278
1279 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1280 PyObject *resultobj;
1281 wxColour *arg1 = (wxColour *) 0 ;
1282 PyObject *result;
1283 PyObject * obj0 = 0 ;
1284 char *kwnames[] = {
1285 (char *) "self", NULL
1286 };
1287
1288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1290 {
1291 PyThreadState* __tstate = wxPyBeginAllowThreads();
1292 result = (PyObject *)wxColour_Get(arg1);
1293
1294 wxPyEndAllowThreads(__tstate);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 }
1297 resultobj = result;
1298 return resultobj;
1299 fail:
1300 return NULL;
1301 }
1302
1303
1304 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1305 PyObject *obj;
1306 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1307 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1308 Py_INCREF(obj);
1309 return Py_BuildValue((char *)"");
1310 }
1311 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1312 PyObject *resultobj;
1313 int arg1 ;
1314 unsigned char *arg2 = (unsigned char *) 0 ;
1315 unsigned char *arg3 = (unsigned char *) 0 ;
1316 unsigned char *arg4 = (unsigned char *) 0 ;
1317 wxPalette *result;
1318 PyObject * obj0 = 0 ;
1319 PyObject * obj1 = 0 ;
1320 PyObject * obj2 = 0 ;
1321 PyObject * obj3 = 0 ;
1322 char *kwnames[] = {
1323 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1324 };
1325
1326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1327 {
1328 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1329 if (PyErr_Occurred()) SWIG_fail;
1330 }
1331 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1332 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1333 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1334 {
1335 PyThreadState* __tstate = wxPyBeginAllowThreads();
1336 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1337
1338 wxPyEndAllowThreads(__tstate);
1339 if (PyErr_Occurred()) SWIG_fail;
1340 }
1341 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1342 return resultobj;
1343 fail:
1344 return NULL;
1345 }
1346
1347
1348 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject *resultobj;
1350 wxPalette *arg1 = (wxPalette *) 0 ;
1351 PyObject * obj0 = 0 ;
1352 char *kwnames[] = {
1353 (char *) "self", NULL
1354 };
1355
1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1358 {
1359 PyThreadState* __tstate = wxPyBeginAllowThreads();
1360 delete arg1;
1361
1362 wxPyEndAllowThreads(__tstate);
1363 if (PyErr_Occurred()) SWIG_fail;
1364 }
1365 Py_INCREF(Py_None); resultobj = Py_None;
1366 return resultobj;
1367 fail:
1368 return NULL;
1369 }
1370
1371
1372 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1373 PyObject *resultobj;
1374 wxPalette *arg1 = (wxPalette *) 0 ;
1375 byte arg2 ;
1376 byte arg3 ;
1377 byte arg4 ;
1378 int result;
1379 PyObject * obj0 = 0 ;
1380 PyObject * obj1 = 0 ;
1381 PyObject * obj2 = 0 ;
1382 PyObject * obj3 = 0 ;
1383 char *kwnames[] = {
1384 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1385 };
1386
1387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1389 {
1390 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1391 if (PyErr_Occurred()) SWIG_fail;
1392 }
1393 {
1394 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
1397 {
1398 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 {
1402 PyThreadState* __tstate = wxPyBeginAllowThreads();
1403 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1404
1405 wxPyEndAllowThreads(__tstate);
1406 if (PyErr_Occurred()) SWIG_fail;
1407 }
1408 resultobj = SWIG_PyObj_FromInt((int)result);
1409 return resultobj;
1410 fail:
1411 return NULL;
1412 }
1413
1414
1415 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1416 PyObject *resultobj;
1417 wxPalette *arg1 = (wxPalette *) 0 ;
1418 int arg2 ;
1419 byte *arg3 = (byte *) 0 ;
1420 byte *arg4 = (byte *) 0 ;
1421 byte *arg5 = (byte *) 0 ;
1422 bool result;
1423 byte temp3 ;
1424 byte temp4 ;
1425 byte temp5 ;
1426 PyObject * obj0 = 0 ;
1427 PyObject * obj1 = 0 ;
1428 char *kwnames[] = {
1429 (char *) "self",(char *) "pixel", NULL
1430 };
1431
1432 arg3 = &temp3;
1433 arg4 = &temp4;
1434 arg5 = &temp5;
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1437 {
1438 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 {
1442 PyThreadState* __tstate = wxPyBeginAllowThreads();
1443 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1444
1445 wxPyEndAllowThreads(__tstate);
1446 if (PyErr_Occurred()) SWIG_fail;
1447 }
1448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1449 {
1450 PyObject *o = PyInt_FromLong((long) (*arg3));
1451 resultobj = t_output_helper(resultobj,o);
1452 }
1453 {
1454 PyObject *o = PyInt_FromLong((long) (*arg4));
1455 resultobj = t_output_helper(resultobj,o);
1456 }
1457 {
1458 PyObject *o = PyInt_FromLong((long) (*arg5));
1459 resultobj = t_output_helper(resultobj,o);
1460 }
1461 return resultobj;
1462 fail:
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1468 PyObject *resultobj;
1469 wxPalette *arg1 = (wxPalette *) 0 ;
1470 bool result;
1471 PyObject * obj0 = 0 ;
1472 char *kwnames[] = {
1473 (char *) "self", NULL
1474 };
1475
1476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1478 {
1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
1480 result = (bool)(arg1)->Ok();
1481
1482 wxPyEndAllowThreads(__tstate);
1483 if (PyErr_Occurred()) SWIG_fail;
1484 }
1485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1486 return resultobj;
1487 fail:
1488 return NULL;
1489 }
1490
1491
1492 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1493 PyObject *obj;
1494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1495 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1496 Py_INCREF(obj);
1497 return Py_BuildValue((char *)"");
1498 }
1499 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 wxColour *arg1 = 0 ;
1502 int arg2 = (int) 1 ;
1503 int arg3 = (int) wxSOLID ;
1504 wxPen *result;
1505 wxColour temp1 ;
1506 PyObject * obj0 = 0 ;
1507 PyObject * obj1 = 0 ;
1508 PyObject * obj2 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "colour",(char *) "width",(char *) "style", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1514 {
1515 arg1 = &temp1;
1516 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1517 }
1518 if (obj1) {
1519 {
1520 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1521 if (PyErr_Occurred()) SWIG_fail;
1522 }
1523 }
1524 if (obj2) {
1525 {
1526 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1527 if (PyErr_Occurred()) SWIG_fail;
1528 }
1529 }
1530 {
1531 PyThreadState* __tstate = wxPyBeginAllowThreads();
1532 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1533
1534 wxPyEndAllowThreads(__tstate);
1535 if (PyErr_Occurred()) SWIG_fail;
1536 }
1537 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1538 return resultobj;
1539 fail:
1540 return NULL;
1541 }
1542
1543
1544 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1545 PyObject *resultobj;
1546 wxPen *arg1 = (wxPen *) 0 ;
1547 PyObject * obj0 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "self", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 delete arg1;
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 Py_INCREF(Py_None); resultobj = Py_None;
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 wxPen *arg1 = (wxPen *) 0 ;
1571 int result;
1572 PyObject * obj0 = 0 ;
1573 char *kwnames[] = {
1574 (char *) "self", NULL
1575 };
1576
1577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1579 {
1580 PyThreadState* __tstate = wxPyBeginAllowThreads();
1581 result = (int)(arg1)->GetCap();
1582
1583 wxPyEndAllowThreads(__tstate);
1584 if (PyErr_Occurred()) SWIG_fail;
1585 }
1586 resultobj = SWIG_PyObj_FromInt((int)result);
1587 return resultobj;
1588 fail:
1589 return NULL;
1590 }
1591
1592
1593 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject *resultobj;
1595 wxPen *arg1 = (wxPen *) 0 ;
1596 wxColour result;
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 result = (arg1)->GetColour();
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 }
1611 {
1612 wxColour * resultptr;
1613 resultptr = new wxColour((wxColour &) result);
1614 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1615 }
1616 return resultobj;
1617 fail:
1618 return NULL;
1619 }
1620
1621
1622 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject *resultobj;
1624 wxPen *arg1 = (wxPen *) 0 ;
1625 int result;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1633 {
1634 PyThreadState* __tstate = wxPyBeginAllowThreads();
1635 result = (int)(arg1)->GetJoin();
1636
1637 wxPyEndAllowThreads(__tstate);
1638 if (PyErr_Occurred()) SWIG_fail;
1639 }
1640 resultobj = SWIG_PyObj_FromInt((int)result);
1641 return resultobj;
1642 fail:
1643 return NULL;
1644 }
1645
1646
1647 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1648 PyObject *resultobj;
1649 wxPen *arg1 = (wxPen *) 0 ;
1650 int result;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 result = (int)(arg1)->GetStyle();
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
1665 resultobj = SWIG_PyObj_FromInt((int)result);
1666 return resultobj;
1667 fail:
1668 return NULL;
1669 }
1670
1671
1672 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject *resultobj;
1674 wxPen *arg1 = (wxPen *) 0 ;
1675 int result;
1676 PyObject * obj0 = 0 ;
1677 char *kwnames[] = {
1678 (char *) "self", NULL
1679 };
1680
1681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1683 {
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 result = (int)(arg1)->GetWidth();
1686
1687 wxPyEndAllowThreads(__tstate);
1688 if (PyErr_Occurred()) SWIG_fail;
1689 }
1690 resultobj = SWIG_PyObj_FromInt((int)result);
1691 return resultobj;
1692 fail:
1693 return NULL;
1694 }
1695
1696
1697 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 wxPen *arg1 = (wxPen *) 0 ;
1700 bool result;
1701 PyObject * obj0 = 0 ;
1702 char *kwnames[] = {
1703 (char *) "self", NULL
1704 };
1705
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1708 {
1709 PyThreadState* __tstate = wxPyBeginAllowThreads();
1710 result = (bool)(arg1)->Ok();
1711
1712 wxPyEndAllowThreads(__tstate);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 }
1715 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1716 return resultobj;
1717 fail:
1718 return NULL;
1719 }
1720
1721
1722 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject *resultobj;
1724 wxPen *arg1 = (wxPen *) 0 ;
1725 int arg2 ;
1726 PyObject * obj0 = 0 ;
1727 PyObject * obj1 = 0 ;
1728 char *kwnames[] = {
1729 (char *) "self",(char *) "cap_style", NULL
1730 };
1731
1732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1734 {
1735 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 {
1739 PyThreadState* __tstate = wxPyBeginAllowThreads();
1740 (arg1)->SetCap(arg2);
1741
1742 wxPyEndAllowThreads(__tstate);
1743 if (PyErr_Occurred()) SWIG_fail;
1744 }
1745 Py_INCREF(Py_None); resultobj = Py_None;
1746 return resultobj;
1747 fail:
1748 return NULL;
1749 }
1750
1751
1752 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1753 PyObject *resultobj;
1754 wxPen *arg1 = (wxPen *) 0 ;
1755 wxColour *arg2 = 0 ;
1756 wxColour temp2 ;
1757 PyObject * obj0 = 0 ;
1758 PyObject * obj1 = 0 ;
1759 char *kwnames[] = {
1760 (char *) "self",(char *) "colour", NULL
1761 };
1762
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1765 {
1766 arg2 = &temp2;
1767 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1768 }
1769 {
1770 PyThreadState* __tstate = wxPyBeginAllowThreads();
1771 (arg1)->SetColour(*arg2);
1772
1773 wxPyEndAllowThreads(__tstate);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 }
1776 Py_INCREF(Py_None); resultobj = Py_None;
1777 return resultobj;
1778 fail:
1779 return NULL;
1780 }
1781
1782
1783 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1784 PyObject *resultobj;
1785 wxPen *arg1 = (wxPen *) 0 ;
1786 int arg2 ;
1787 PyObject * obj0 = 0 ;
1788 PyObject * obj1 = 0 ;
1789 char *kwnames[] = {
1790 (char *) "self",(char *) "join_style", NULL
1791 };
1792
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1795 {
1796 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 {
1800 PyThreadState* __tstate = wxPyBeginAllowThreads();
1801 (arg1)->SetJoin(arg2);
1802
1803 wxPyEndAllowThreads(__tstate);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 Py_INCREF(Py_None); resultobj = Py_None;
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxPen *arg1 = (wxPen *) 0 ;
1816 int arg2 ;
1817 PyObject * obj0 = 0 ;
1818 PyObject * obj1 = 0 ;
1819 char *kwnames[] = {
1820 (char *) "self",(char *) "style", NULL
1821 };
1822
1823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1825 {
1826 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 {
1830 PyThreadState* __tstate = wxPyBeginAllowThreads();
1831 (arg1)->SetStyle(arg2);
1832
1833 wxPyEndAllowThreads(__tstate);
1834 if (PyErr_Occurred()) SWIG_fail;
1835 }
1836 Py_INCREF(Py_None); resultobj = Py_None;
1837 return resultobj;
1838 fail:
1839 return NULL;
1840 }
1841
1842
1843 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1844 PyObject *resultobj;
1845 wxPen *arg1 = (wxPen *) 0 ;
1846 int arg2 ;
1847 PyObject * obj0 = 0 ;
1848 PyObject * obj1 = 0 ;
1849 char *kwnames[] = {
1850 (char *) "self",(char *) "width", NULL
1851 };
1852
1853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1855 {
1856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1857 if (PyErr_Occurred()) SWIG_fail;
1858 }
1859 {
1860 PyThreadState* __tstate = wxPyBeginAllowThreads();
1861 (arg1)->SetWidth(arg2);
1862
1863 wxPyEndAllowThreads(__tstate);
1864 if (PyErr_Occurred()) SWIG_fail;
1865 }
1866 Py_INCREF(Py_None); resultobj = Py_None;
1867 return resultobj;
1868 fail:
1869 return NULL;
1870 }
1871
1872
1873 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1874 PyObject *resultobj;
1875 wxPen *arg1 = (wxPen *) 0 ;
1876 int arg2 ;
1877 wxDash *arg3 = (wxDash *) 0 ;
1878 PyObject * obj0 = 0 ;
1879 PyObject * obj1 = 0 ;
1880 char *kwnames[] = {
1881 (char *) "self",(char *) "dashes", NULL
1882 };
1883
1884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1886 {
1887 arg2 = PyList_Size(obj1);
1888 arg3 = (wxDash*)byte_LIST_helper(obj1);
1889 if (arg3 == NULL) SWIG_fail;
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 (arg1)->SetDashes(arg2,arg3);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 Py_INCREF(Py_None); resultobj = Py_None;
1899 {
1900 if (arg3) delete [] arg3;
1901 }
1902 return resultobj;
1903 fail:
1904 {
1905 if (arg3) delete [] arg3;
1906 }
1907 return NULL;
1908 }
1909
1910
1911 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject *resultobj;
1913 wxPen *arg1 = (wxPen *) 0 ;
1914 PyObject *result;
1915 PyObject * obj0 = 0 ;
1916 char *kwnames[] = {
1917 (char *) "self", NULL
1918 };
1919
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1922 {
1923 PyThreadState* __tstate = wxPyBeginAllowThreads();
1924 result = (PyObject *)wxPen_GetDashes(arg1);
1925
1926 wxPyEndAllowThreads(__tstate);
1927 if (PyErr_Occurred()) SWIG_fail;
1928 }
1929 resultobj = result;
1930 return resultobj;
1931 fail:
1932 return NULL;
1933 }
1934
1935
1936 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1937 PyObject *resultobj;
1938 wxPen *arg1 = (wxPen *) 0 ;
1939 wxPen *arg2 = 0 ;
1940 bool result;
1941 PyObject * obj0 = 0 ;
1942 PyObject * obj1 = 0 ;
1943 char *kwnames[] = {
1944 (char *) "self",(char *) "pen", NULL
1945 };
1946
1947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
1948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1949 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1950 if (arg2 == NULL) {
1951 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
1952 }
1953 {
1954 PyThreadState* __tstate = wxPyBeginAllowThreads();
1955 result = (bool)(arg1)->operator ==((wxPen const &)*arg2);
1956
1957 wxPyEndAllowThreads(__tstate);
1958 if (PyErr_Occurred()) SWIG_fail;
1959 }
1960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1961 return resultobj;
1962 fail:
1963 return NULL;
1964 }
1965
1966
1967 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
1968 PyObject *resultobj;
1969 wxPen *arg1 = (wxPen *) 0 ;
1970 int result;
1971 PyObject * obj0 = 0 ;
1972 char *kwnames[] = {
1973 (char *) "self", NULL
1974 };
1975
1976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
1977 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1978 {
1979 PyThreadState* __tstate = wxPyBeginAllowThreads();
1980 result = (int)((wxPen const *)arg1)->GetDashCount();
1981
1982 wxPyEndAllowThreads(__tstate);
1983 if (PyErr_Occurred()) SWIG_fail;
1984 }
1985 resultobj = SWIG_PyObj_FromInt((int)result);
1986 return resultobj;
1987 fail:
1988 return NULL;
1989 }
1990
1991
1992 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1993 PyObject *obj;
1994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1995 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1996 Py_INCREF(obj);
1997 return Py_BuildValue((char *)"");
1998 }
1999 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2000 PyObject *resultobj;
2001 wxColour *arg1 = 0 ;
2002 int arg2 = (int) 1 ;
2003 int arg3 = (int) wxSOLID ;
2004 wxPyPen *result;
2005 wxColour temp1 ;
2006 PyObject * obj0 = 0 ;
2007 PyObject * obj1 = 0 ;
2008 PyObject * obj2 = 0 ;
2009 char *kwnames[] = {
2010 (char *) "colour",(char *) "width",(char *) "style", NULL
2011 };
2012
2013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
2014 {
2015 arg1 = &temp1;
2016 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2017 }
2018 if (obj1) {
2019 {
2020 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2021 if (PyErr_Occurred()) SWIG_fail;
2022 }
2023 }
2024 if (obj2) {
2025 {
2026 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2027 if (PyErr_Occurred()) SWIG_fail;
2028 }
2029 }
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
2038 return resultobj;
2039 fail:
2040 return NULL;
2041 }
2042
2043
2044 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
2045 PyObject *resultobj;
2046 wxPyPen *arg1 = (wxPyPen *) 0 ;
2047 PyObject * obj0 = 0 ;
2048 char *kwnames[] = {
2049 (char *) "self", NULL
2050 };
2051
2052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
2053 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2054 {
2055 PyThreadState* __tstate = wxPyBeginAllowThreads();
2056 delete arg1;
2057
2058 wxPyEndAllowThreads(__tstate);
2059 if (PyErr_Occurred()) SWIG_fail;
2060 }
2061 Py_INCREF(Py_None); resultobj = Py_None;
2062 return resultobj;
2063 fail:
2064 return NULL;
2065 }
2066
2067
2068 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2069 PyObject *resultobj;
2070 wxPyPen *arg1 = (wxPyPen *) 0 ;
2071 int arg2 ;
2072 wxDash *arg3 = (wxDash *) 0 ;
2073 PyObject * obj0 = 0 ;
2074 PyObject * obj1 = 0 ;
2075 char *kwnames[] = {
2076 (char *) "self",(char *) "dashes", NULL
2077 };
2078
2079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2081 {
2082 arg2 = PyList_Size(obj1);
2083 arg3 = (wxDash*)byte_LIST_helper(obj1);
2084 if (arg3 == NULL) SWIG_fail;
2085 }
2086 {
2087 PyThreadState* __tstate = wxPyBeginAllowThreads();
2088 (arg1)->SetDashes(arg2,arg3);
2089
2090 wxPyEndAllowThreads(__tstate);
2091 if (PyErr_Occurred()) SWIG_fail;
2092 }
2093 Py_INCREF(Py_None); resultobj = Py_None;
2094 {
2095 if (arg3) delete [] arg3;
2096 }
2097 return resultobj;
2098 fail:
2099 {
2100 if (arg3) delete [] arg3;
2101 }
2102 return NULL;
2103 }
2104
2105
2106 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2107 PyObject *obj;
2108 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2109 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2110 Py_INCREF(obj);
2111 return Py_BuildValue((char *)"");
2112 }
2113 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2114 PyObject *resultobj;
2115 wxColour *arg1 = 0 ;
2116 int arg2 = (int) wxSOLID ;
2117 wxBrush *result;
2118 wxColour temp1 ;
2119 PyObject * obj0 = 0 ;
2120 PyObject * obj1 = 0 ;
2121 char *kwnames[] = {
2122 (char *) "colour",(char *) "style", NULL
2123 };
2124
2125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2126 {
2127 arg1 = &temp1;
2128 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2129 }
2130 if (obj1) {
2131 {
2132 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2133 if (PyErr_Occurred()) SWIG_fail;
2134 }
2135 }
2136 {
2137 PyThreadState* __tstate = wxPyBeginAllowThreads();
2138 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2139
2140 wxPyEndAllowThreads(__tstate);
2141 if (PyErr_Occurred()) SWIG_fail;
2142 }
2143 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2144 return resultobj;
2145 fail:
2146 return NULL;
2147 }
2148
2149
2150 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2151 PyObject *resultobj;
2152 wxBrush *arg1 = (wxBrush *) 0 ;
2153 PyObject * obj0 = 0 ;
2154 char *kwnames[] = {
2155 (char *) "self", NULL
2156 };
2157
2158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2160 {
2161 PyThreadState* __tstate = wxPyBeginAllowThreads();
2162 delete arg1;
2163
2164 wxPyEndAllowThreads(__tstate);
2165 if (PyErr_Occurred()) SWIG_fail;
2166 }
2167 Py_INCREF(Py_None); resultobj = Py_None;
2168 return resultobj;
2169 fail:
2170 return NULL;
2171 }
2172
2173
2174 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2175 PyObject *resultobj;
2176 wxBrush *arg1 = (wxBrush *) 0 ;
2177 wxColour *arg2 = 0 ;
2178 wxColour temp2 ;
2179 PyObject * obj0 = 0 ;
2180 PyObject * obj1 = 0 ;
2181 char *kwnames[] = {
2182 (char *) "self",(char *) "col", NULL
2183 };
2184
2185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2186 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2187 {
2188 arg2 = &temp2;
2189 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2190 }
2191 {
2192 PyThreadState* __tstate = wxPyBeginAllowThreads();
2193 (arg1)->SetColour((wxColour const &)*arg2);
2194
2195 wxPyEndAllowThreads(__tstate);
2196 if (PyErr_Occurred()) SWIG_fail;
2197 }
2198 Py_INCREF(Py_None); resultobj = Py_None;
2199 return resultobj;
2200 fail:
2201 return NULL;
2202 }
2203
2204
2205 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2206 PyObject *resultobj;
2207 wxBrush *arg1 = (wxBrush *) 0 ;
2208 int arg2 ;
2209 PyObject * obj0 = 0 ;
2210 PyObject * obj1 = 0 ;
2211 char *kwnames[] = {
2212 (char *) "self",(char *) "style", NULL
2213 };
2214
2215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2216 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2217 {
2218 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2219 if (PyErr_Occurred()) SWIG_fail;
2220 }
2221 {
2222 PyThreadState* __tstate = wxPyBeginAllowThreads();
2223 (arg1)->SetStyle(arg2);
2224
2225 wxPyEndAllowThreads(__tstate);
2226 if (PyErr_Occurred()) SWIG_fail;
2227 }
2228 Py_INCREF(Py_None); resultobj = Py_None;
2229 return resultobj;
2230 fail:
2231 return NULL;
2232 }
2233
2234
2235 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2236 PyObject *resultobj;
2237 wxBrush *arg1 = (wxBrush *) 0 ;
2238 wxBitmap *arg2 = 0 ;
2239 PyObject * obj0 = 0 ;
2240 PyObject * obj1 = 0 ;
2241 char *kwnames[] = {
2242 (char *) "self",(char *) "stipple", NULL
2243 };
2244
2245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2246 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2247 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2248 if (arg2 == NULL) {
2249 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2250 }
2251 {
2252 PyThreadState* __tstate = wxPyBeginAllowThreads();
2253 (arg1)->SetStipple((wxBitmap const &)*arg2);
2254
2255 wxPyEndAllowThreads(__tstate);
2256 if (PyErr_Occurred()) SWIG_fail;
2257 }
2258 Py_INCREF(Py_None); resultobj = Py_None;
2259 return resultobj;
2260 fail:
2261 return NULL;
2262 }
2263
2264
2265 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2266 PyObject *resultobj;
2267 wxBrush *arg1 = (wxBrush *) 0 ;
2268 wxColour result;
2269 PyObject * obj0 = 0 ;
2270 char *kwnames[] = {
2271 (char *) "self", NULL
2272 };
2273
2274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2275 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2276 {
2277 PyThreadState* __tstate = wxPyBeginAllowThreads();
2278 result = ((wxBrush const *)arg1)->GetColour();
2279
2280 wxPyEndAllowThreads(__tstate);
2281 if (PyErr_Occurred()) SWIG_fail;
2282 }
2283 {
2284 wxColour * resultptr;
2285 resultptr = new wxColour((wxColour &) result);
2286 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2287 }
2288 return resultobj;
2289 fail:
2290 return NULL;
2291 }
2292
2293
2294 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2295 PyObject *resultobj;
2296 wxBrush *arg1 = (wxBrush *) 0 ;
2297 int result;
2298 PyObject * obj0 = 0 ;
2299 char *kwnames[] = {
2300 (char *) "self", NULL
2301 };
2302
2303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2305 {
2306 PyThreadState* __tstate = wxPyBeginAllowThreads();
2307 result = (int)((wxBrush const *)arg1)->GetStyle();
2308
2309 wxPyEndAllowThreads(__tstate);
2310 if (PyErr_Occurred()) SWIG_fail;
2311 }
2312 resultobj = SWIG_PyObj_FromInt((int)result);
2313 return resultobj;
2314 fail:
2315 return NULL;
2316 }
2317
2318
2319 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2320 PyObject *resultobj;
2321 wxBrush *arg1 = (wxBrush *) 0 ;
2322 wxBitmap *result;
2323 PyObject * obj0 = 0 ;
2324 char *kwnames[] = {
2325 (char *) "self", NULL
2326 };
2327
2328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2330 {
2331 PyThreadState* __tstate = wxPyBeginAllowThreads();
2332 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2333
2334 wxPyEndAllowThreads(__tstate);
2335 if (PyErr_Occurred()) SWIG_fail;
2336 }
2337 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2338 return resultobj;
2339 fail:
2340 return NULL;
2341 }
2342
2343
2344 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2345 PyObject *resultobj;
2346 wxBrush *arg1 = (wxBrush *) 0 ;
2347 bool result;
2348 PyObject * obj0 = 0 ;
2349 char *kwnames[] = {
2350 (char *) "self", NULL
2351 };
2352
2353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2355 {
2356 PyThreadState* __tstate = wxPyBeginAllowThreads();
2357 result = (bool)(arg1)->Ok();
2358
2359 wxPyEndAllowThreads(__tstate);
2360 if (PyErr_Occurred()) SWIG_fail;
2361 }
2362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2363 return resultobj;
2364 fail:
2365 return NULL;
2366 }
2367
2368
2369 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2370 PyObject *obj;
2371 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2372 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2373 Py_INCREF(obj);
2374 return Py_BuildValue((char *)"");
2375 }
2376 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2377 PyObject *resultobj;
2378 wxString *arg1 = 0 ;
2379 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2380 wxBitmap *result;
2381 bool temp1 = False ;
2382 PyObject * obj0 = 0 ;
2383 PyObject * obj1 = 0 ;
2384 char *kwnames[] = {
2385 (char *) "name",(char *) "type", NULL
2386 };
2387
2388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2389 {
2390 arg1 = wxString_in_helper(obj0);
2391 if (arg1 == NULL) SWIG_fail;
2392 temp1 = True;
2393 }
2394 if (obj1) {
2395 {
2396 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2397 if (PyErr_Occurred()) SWIG_fail;
2398 }
2399 }
2400 {
2401 PyThreadState* __tstate = wxPyBeginAllowThreads();
2402 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2403
2404 wxPyEndAllowThreads(__tstate);
2405 if (PyErr_Occurred()) SWIG_fail;
2406 }
2407 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2408 {
2409 if (temp1)
2410 delete arg1;
2411 }
2412 return resultobj;
2413 fail:
2414 {
2415 if (temp1)
2416 delete arg1;
2417 }
2418 return NULL;
2419 }
2420
2421
2422 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2423 PyObject *resultobj;
2424 wxBitmap *arg1 = (wxBitmap *) 0 ;
2425 PyObject * obj0 = 0 ;
2426 char *kwnames[] = {
2427 (char *) "self", NULL
2428 };
2429
2430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2432 {
2433 PyThreadState* __tstate = wxPyBeginAllowThreads();
2434 delete arg1;
2435
2436 wxPyEndAllowThreads(__tstate);
2437 if (PyErr_Occurred()) SWIG_fail;
2438 }
2439 Py_INCREF(Py_None); resultobj = Py_None;
2440 return resultobj;
2441 fail:
2442 return NULL;
2443 }
2444
2445
2446 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2447 PyObject *resultobj;
2448 int arg1 ;
2449 int arg2 ;
2450 int arg3 = (int) -1 ;
2451 wxBitmap *result;
2452 PyObject * obj0 = 0 ;
2453 PyObject * obj1 = 0 ;
2454 PyObject * obj2 = 0 ;
2455 char *kwnames[] = {
2456 (char *) "width",(char *) "height",(char *) "depth", NULL
2457 };
2458
2459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2460 {
2461 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2462 if (PyErr_Occurred()) SWIG_fail;
2463 }
2464 {
2465 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2466 if (PyErr_Occurred()) SWIG_fail;
2467 }
2468 if (obj2) {
2469 {
2470 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2471 if (PyErr_Occurred()) SWIG_fail;
2472 }
2473 }
2474 {
2475 PyThreadState* __tstate = wxPyBeginAllowThreads();
2476 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2477
2478 wxPyEndAllowThreads(__tstate);
2479 if (PyErr_Occurred()) SWIG_fail;
2480 }
2481 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2482 return resultobj;
2483 fail:
2484 return NULL;
2485 }
2486
2487
2488 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2489 PyObject *resultobj;
2490 wxIcon *arg1 = 0 ;
2491 wxBitmap *result;
2492 PyObject * obj0 = 0 ;
2493 char *kwnames[] = {
2494 (char *) "icon", NULL
2495 };
2496
2497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2498 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2499 if (arg1 == NULL) {
2500 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2501 }
2502 {
2503 PyThreadState* __tstate = wxPyBeginAllowThreads();
2504 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2505
2506 wxPyEndAllowThreads(__tstate);
2507 if (PyErr_Occurred()) SWIG_fail;
2508 }
2509 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2510 return resultobj;
2511 fail:
2512 return NULL;
2513 }
2514
2515
2516 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject *resultobj;
2518 wxImage *arg1 = 0 ;
2519 int arg2 = (int) -1 ;
2520 wxBitmap *result;
2521 PyObject * obj0 = 0 ;
2522 PyObject * obj1 = 0 ;
2523 char *kwnames[] = {
2524 (char *) "image",(char *) "depth", NULL
2525 };
2526
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2529 if (arg1 == NULL) {
2530 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2531 }
2532 if (obj1) {
2533 {
2534 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 }
2537 }
2538 {
2539 PyThreadState* __tstate = wxPyBeginAllowThreads();
2540 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2541
2542 wxPyEndAllowThreads(__tstate);
2543 if (PyErr_Occurred()) SWIG_fail;
2544 }
2545 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2546 return resultobj;
2547 fail:
2548 return NULL;
2549 }
2550
2551
2552 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2553 PyObject *resultobj;
2554 PyObject *arg1 = (PyObject *) 0 ;
2555 wxBitmap *result;
2556 PyObject * obj0 = 0 ;
2557 char *kwnames[] = {
2558 (char *) "listOfStrings", NULL
2559 };
2560
2561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2562 arg1 = obj0;
2563 {
2564 PyThreadState* __tstate = wxPyBeginAllowThreads();
2565 result = (wxBitmap *)new_wxBitmap(arg1);
2566
2567 wxPyEndAllowThreads(__tstate);
2568 if (PyErr_Occurred()) SWIG_fail;
2569 }
2570 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2571 return resultobj;
2572 fail:
2573 return NULL;
2574 }
2575
2576
2577 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2578 PyObject *resultobj;
2579 PyObject *arg1 = (PyObject *) 0 ;
2580 int arg2 ;
2581 int arg3 ;
2582 int arg4 = (int) 1 ;
2583 wxBitmap *result;
2584 PyObject * obj0 = 0 ;
2585 PyObject * obj1 = 0 ;
2586 PyObject * obj2 = 0 ;
2587 PyObject * obj3 = 0 ;
2588 char *kwnames[] = {
2589 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2590 };
2591
2592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2593 arg1 = obj0;
2594 {
2595 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2596 if (PyErr_Occurred()) SWIG_fail;
2597 }
2598 {
2599 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2600 if (PyErr_Occurred()) SWIG_fail;
2601 }
2602 if (obj3) {
2603 {
2604 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2605 if (PyErr_Occurred()) SWIG_fail;
2606 }
2607 }
2608 {
2609 PyThreadState* __tstate = wxPyBeginAllowThreads();
2610 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2611
2612 wxPyEndAllowThreads(__tstate);
2613 if (PyErr_Occurred()) SWIG_fail;
2614 }
2615 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2616 return resultobj;
2617 fail:
2618 return NULL;
2619 }
2620
2621
2622 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2623 PyObject *resultobj;
2624 wxBitmap *arg1 = (wxBitmap *) 0 ;
2625 bool result;
2626 PyObject * obj0 = 0 ;
2627 char *kwnames[] = {
2628 (char *) "self", NULL
2629 };
2630
2631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2633 {
2634 PyThreadState* __tstate = wxPyBeginAllowThreads();
2635 result = (bool)(arg1)->Ok();
2636
2637 wxPyEndAllowThreads(__tstate);
2638 if (PyErr_Occurred()) SWIG_fail;
2639 }
2640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2641 return resultobj;
2642 fail:
2643 return NULL;
2644 }
2645
2646
2647 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2648 PyObject *resultobj;
2649 wxBitmap *arg1 = (wxBitmap *) 0 ;
2650 int result;
2651 PyObject * obj0 = 0 ;
2652 char *kwnames[] = {
2653 (char *) "self", NULL
2654 };
2655
2656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2658 {
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (int)(arg1)->GetWidth();
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 resultobj = SWIG_PyObj_FromInt((int)result);
2666 return resultobj;
2667 fail:
2668 return NULL;
2669 }
2670
2671
2672 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject *resultobj;
2674 wxBitmap *arg1 = (wxBitmap *) 0 ;
2675 int result;
2676 PyObject * obj0 = 0 ;
2677 char *kwnames[] = {
2678 (char *) "self", NULL
2679 };
2680
2681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2683 {
2684 PyThreadState* __tstate = wxPyBeginAllowThreads();
2685 result = (int)(arg1)->GetHeight();
2686
2687 wxPyEndAllowThreads(__tstate);
2688 if (PyErr_Occurred()) SWIG_fail;
2689 }
2690 resultobj = SWIG_PyObj_FromInt((int)result);
2691 return resultobj;
2692 fail:
2693 return NULL;
2694 }
2695
2696
2697 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2698 PyObject *resultobj;
2699 wxBitmap *arg1 = (wxBitmap *) 0 ;
2700 int result;
2701 PyObject * obj0 = 0 ;
2702 char *kwnames[] = {
2703 (char *) "self", NULL
2704 };
2705
2706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",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 = (int)(arg1)->GetDepth();
2711
2712 wxPyEndAllowThreads(__tstate);
2713 if (PyErr_Occurred()) SWIG_fail;
2714 }
2715 resultobj = SWIG_PyObj_FromInt((int)result);
2716 return resultobj;
2717 fail:
2718 return NULL;
2719 }
2720
2721
2722 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject *resultobj;
2724 wxBitmap *arg1 = (wxBitmap *) 0 ;
2725 SwigValueWrapper< wxImage > result;
2726 PyObject * obj0 = 0 ;
2727 char *kwnames[] = {
2728 (char *) "self", NULL
2729 };
2730
2731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",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 = ((wxBitmap const *)arg1)->ConvertToImage();
2736
2737 wxPyEndAllowThreads(__tstate);
2738 if (PyErr_Occurred()) SWIG_fail;
2739 }
2740 {
2741 wxImage * resultptr;
2742 resultptr = new wxImage((wxImage &) result);
2743 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2744 }
2745 return resultobj;
2746 fail:
2747 return NULL;
2748 }
2749
2750
2751 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2752 PyObject *resultobj;
2753 wxBitmap *arg1 = (wxBitmap *) 0 ;
2754 wxMask *result;
2755 PyObject * obj0 = 0 ;
2756 char *kwnames[] = {
2757 (char *) "self", NULL
2758 };
2759
2760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2762 {
2763 PyThreadState* __tstate = wxPyBeginAllowThreads();
2764 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2765
2766 wxPyEndAllowThreads(__tstate);
2767 if (PyErr_Occurred()) SWIG_fail;
2768 }
2769 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2770 return resultobj;
2771 fail:
2772 return NULL;
2773 }
2774
2775
2776 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2777 PyObject *resultobj;
2778 wxBitmap *arg1 = (wxBitmap *) 0 ;
2779 wxMask *arg2 = (wxMask *) 0 ;
2780 PyObject * obj0 = 0 ;
2781 PyObject * obj1 = 0 ;
2782 char *kwnames[] = {
2783 (char *) "self",(char *) "mask", NULL
2784 };
2785
2786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2787 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2788 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2789 {
2790 PyThreadState* __tstate = wxPyBeginAllowThreads();
2791 (arg1)->SetMask(arg2);
2792
2793 wxPyEndAllowThreads(__tstate);
2794 if (PyErr_Occurred()) SWIG_fail;
2795 }
2796 Py_INCREF(Py_None); resultobj = Py_None;
2797 return resultobj;
2798 fail:
2799 return NULL;
2800 }
2801
2802
2803 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2804 PyObject *resultobj;
2805 wxBitmap *arg1 = (wxBitmap *) 0 ;
2806 wxColour *arg2 = 0 ;
2807 wxColour temp2 ;
2808 PyObject * obj0 = 0 ;
2809 PyObject * obj1 = 0 ;
2810 char *kwnames[] = {
2811 (char *) "self",(char *) "colour", NULL
2812 };
2813
2814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2816 {
2817 arg2 = &temp2;
2818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2819 }
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 Py_INCREF(Py_None); resultobj = Py_None;
2828 return resultobj;
2829 fail:
2830 return NULL;
2831 }
2832
2833
2834 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2835 PyObject *resultobj;
2836 wxBitmap *arg1 = (wxBitmap *) 0 ;
2837 wxRect *arg2 = 0 ;
2838 SwigValueWrapper< wxBitmap > result;
2839 wxRect temp2 ;
2840 PyObject * obj0 = 0 ;
2841 PyObject * obj1 = 0 ;
2842 char *kwnames[] = {
2843 (char *) "self",(char *) "rect", NULL
2844 };
2845
2846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2848 {
2849 arg2 = &temp2;
2850 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2851 }
2852 {
2853 PyThreadState* __tstate = wxPyBeginAllowThreads();
2854 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2855
2856 wxPyEndAllowThreads(__tstate);
2857 if (PyErr_Occurred()) SWIG_fail;
2858 }
2859 {
2860 wxBitmap * resultptr;
2861 resultptr = new wxBitmap((wxBitmap &) result);
2862 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2863 }
2864 return resultobj;
2865 fail:
2866 return NULL;
2867 }
2868
2869
2870 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject *resultobj;
2872 wxBitmap *arg1 = (wxBitmap *) 0 ;
2873 wxString *arg2 = 0 ;
2874 int arg3 ;
2875 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2876 bool result;
2877 bool temp2 = False ;
2878 PyObject * obj0 = 0 ;
2879 PyObject * obj1 = 0 ;
2880 PyObject * obj2 = 0 ;
2881 PyObject * obj3 = 0 ;
2882 char *kwnames[] = {
2883 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2884 };
2885
2886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2888 {
2889 arg2 = wxString_in_helper(obj1);
2890 if (arg2 == NULL) SWIG_fail;
2891 temp2 = True;
2892 }
2893 {
2894 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 if (obj3) {
2898 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2899 }
2900 {
2901 PyThreadState* __tstate = wxPyBeginAllowThreads();
2902 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2903
2904 wxPyEndAllowThreads(__tstate);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 }
2907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2908 {
2909 if (temp2)
2910 delete arg2;
2911 }
2912 return resultobj;
2913 fail:
2914 {
2915 if (temp2)
2916 delete arg2;
2917 }
2918 return NULL;
2919 }
2920
2921
2922 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2923 PyObject *resultobj;
2924 wxBitmap *arg1 = (wxBitmap *) 0 ;
2925 wxString *arg2 = 0 ;
2926 int arg3 ;
2927 bool result;
2928 bool temp2 = False ;
2929 PyObject * obj0 = 0 ;
2930 PyObject * obj1 = 0 ;
2931 PyObject * obj2 = 0 ;
2932 char *kwnames[] = {
2933 (char *) "self",(char *) "name",(char *) "type", NULL
2934 };
2935
2936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2937 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2938 {
2939 arg2 = wxString_in_helper(obj1);
2940 if (arg2 == NULL) SWIG_fail;
2941 temp2 = True;
2942 }
2943 {
2944 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2945 if (PyErr_Occurred()) SWIG_fail;
2946 }
2947 {
2948 PyThreadState* __tstate = wxPyBeginAllowThreads();
2949 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2950
2951 wxPyEndAllowThreads(__tstate);
2952 if (PyErr_Occurred()) SWIG_fail;
2953 }
2954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2955 {
2956 if (temp2)
2957 delete arg2;
2958 }
2959 return resultobj;
2960 fail:
2961 {
2962 if (temp2)
2963 delete arg2;
2964 }
2965 return NULL;
2966 }
2967
2968
2969 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2970 PyObject *resultobj;
2971 wxBitmap *arg1 = (wxBitmap *) 0 ;
2972 wxIcon *arg2 = 0 ;
2973 bool result;
2974 PyObject * obj0 = 0 ;
2975 PyObject * obj1 = 0 ;
2976 char *kwnames[] = {
2977 (char *) "self",(char *) "icon", NULL
2978 };
2979
2980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2982 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2983 if (arg2 == NULL) {
2984 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2985 }
2986 {
2987 PyThreadState* __tstate = wxPyBeginAllowThreads();
2988 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2989
2990 wxPyEndAllowThreads(__tstate);
2991 if (PyErr_Occurred()) SWIG_fail;
2992 }
2993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2994 return resultobj;
2995 fail:
2996 return NULL;
2997 }
2998
2999
3000 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3001 PyObject *resultobj;
3002 wxBitmap *arg1 = (wxBitmap *) 0 ;
3003 int arg2 ;
3004 PyObject * obj0 = 0 ;
3005 PyObject * obj1 = 0 ;
3006 char *kwnames[] = {
3007 (char *) "self",(char *) "height", NULL
3008 };
3009
3010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3012 {
3013 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3014 if (PyErr_Occurred()) SWIG_fail;
3015 }
3016 {
3017 PyThreadState* __tstate = wxPyBeginAllowThreads();
3018 (arg1)->SetHeight(arg2);
3019
3020 wxPyEndAllowThreads(__tstate);
3021 if (PyErr_Occurred()) SWIG_fail;
3022 }
3023 Py_INCREF(Py_None); resultobj = Py_None;
3024 return resultobj;
3025 fail:
3026 return NULL;
3027 }
3028
3029
3030 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3031 PyObject *resultobj;
3032 wxBitmap *arg1 = (wxBitmap *) 0 ;
3033 int arg2 ;
3034 PyObject * obj0 = 0 ;
3035 PyObject * obj1 = 0 ;
3036 char *kwnames[] = {
3037 (char *) "self",(char *) "width", NULL
3038 };
3039
3040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3042 {
3043 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 {
3047 PyThreadState* __tstate = wxPyBeginAllowThreads();
3048 (arg1)->SetWidth(arg2);
3049
3050 wxPyEndAllowThreads(__tstate);
3051 if (PyErr_Occurred()) SWIG_fail;
3052 }
3053 Py_INCREF(Py_None); resultobj = Py_None;
3054 return resultobj;
3055 fail:
3056 return NULL;
3057 }
3058
3059
3060 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3061 PyObject *resultobj;
3062 wxBitmap *arg1 = (wxBitmap *) 0 ;
3063 int arg2 ;
3064 PyObject * obj0 = 0 ;
3065 PyObject * obj1 = 0 ;
3066 char *kwnames[] = {
3067 (char *) "self",(char *) "depth", NULL
3068 };
3069
3070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3071 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3072 {
3073 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3074 if (PyErr_Occurred()) SWIG_fail;
3075 }
3076 {
3077 PyThreadState* __tstate = wxPyBeginAllowThreads();
3078 (arg1)->SetDepth(arg2);
3079
3080 wxPyEndAllowThreads(__tstate);
3081 if (PyErr_Occurred()) SWIG_fail;
3082 }
3083 Py_INCREF(Py_None); resultobj = Py_None;
3084 return resultobj;
3085 fail:
3086 return NULL;
3087 }
3088
3089
3090 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3091 PyObject *obj;
3092 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3093 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3094 Py_INCREF(obj);
3095 return Py_BuildValue((char *)"");
3096 }
3097 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3098 PyObject *resultobj;
3099 wxBitmap *arg1 = 0 ;
3100 wxColour const &arg2_defvalue = wxNullColour ;
3101 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3102 wxMask *result;
3103 wxColour temp2 ;
3104 PyObject * obj0 = 0 ;
3105 PyObject * obj1 = 0 ;
3106 char *kwnames[] = {
3107 (char *) "bitmap",(char *) "colour", NULL
3108 };
3109
3110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3112 if (arg1 == NULL) {
3113 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3114 }
3115 if (obj1) {
3116 {
3117 arg2 = &temp2;
3118 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3119 }
3120 }
3121 {
3122 PyThreadState* __tstate = wxPyBeginAllowThreads();
3123 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3124
3125 wxPyEndAllowThreads(__tstate);
3126 if (PyErr_Occurred()) SWIG_fail;
3127 }
3128 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3129 return resultobj;
3130 fail:
3131 return NULL;
3132 }
3133
3134
3135 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3136 PyObject *obj;
3137 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3138 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3139 Py_INCREF(obj);
3140 return Py_BuildValue((char *)"");
3141 }
3142 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3143 PyObject *resultobj;
3144 wxString *arg1 = 0 ;
3145 int arg2 ;
3146 int arg3 = (int) -1 ;
3147 int arg4 = (int) -1 ;
3148 wxIcon *result;
3149 bool temp1 = False ;
3150 PyObject * obj0 = 0 ;
3151 PyObject * obj1 = 0 ;
3152 PyObject * obj2 = 0 ;
3153 PyObject * obj3 = 0 ;
3154 char *kwnames[] = {
3155 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3156 };
3157
3158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3159 {
3160 arg1 = wxString_in_helper(obj0);
3161 if (arg1 == NULL) SWIG_fail;
3162 temp1 = True;
3163 }
3164 {
3165 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3166 if (PyErr_Occurred()) SWIG_fail;
3167 }
3168 if (obj2) {
3169 {
3170 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3171 if (PyErr_Occurred()) SWIG_fail;
3172 }
3173 }
3174 if (obj3) {
3175 {
3176 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3177 if (PyErr_Occurred()) SWIG_fail;
3178 }
3179 }
3180 {
3181 PyThreadState* __tstate = wxPyBeginAllowThreads();
3182 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3183
3184 wxPyEndAllowThreads(__tstate);
3185 if (PyErr_Occurred()) SWIG_fail;
3186 }
3187 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3188 {
3189 if (temp1)
3190 delete arg1;
3191 }
3192 return resultobj;
3193 fail:
3194 {
3195 if (temp1)
3196 delete arg1;
3197 }
3198 return NULL;
3199 }
3200
3201
3202 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3203 PyObject *resultobj;
3204 wxIcon *arg1 = (wxIcon *) 0 ;
3205 PyObject * obj0 = 0 ;
3206 char *kwnames[] = {
3207 (char *) "self", NULL
3208 };
3209
3210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3212 {
3213 PyThreadState* __tstate = wxPyBeginAllowThreads();
3214 delete arg1;
3215
3216 wxPyEndAllowThreads(__tstate);
3217 if (PyErr_Occurred()) SWIG_fail;
3218 }
3219 Py_INCREF(Py_None); resultobj = Py_None;
3220 return resultobj;
3221 fail:
3222 return NULL;
3223 }
3224
3225
3226 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3227 PyObject *resultobj;
3228 wxIcon *result;
3229 char *kwnames[] = {
3230 NULL
3231 };
3232
3233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3234 {
3235 PyThreadState* __tstate = wxPyBeginAllowThreads();
3236 result = (wxIcon *)new wxIcon();
3237
3238 wxPyEndAllowThreads(__tstate);
3239 if (PyErr_Occurred()) SWIG_fail;
3240 }
3241 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3242 return resultobj;
3243 fail:
3244 return NULL;
3245 }
3246
3247
3248 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3249 PyObject *resultobj;
3250 wxIconLocation *arg1 = 0 ;
3251 wxIcon *result;
3252 PyObject * obj0 = 0 ;
3253 char *kwnames[] = {
3254 (char *) "loc", NULL
3255 };
3256
3257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3259 if (arg1 == NULL) {
3260 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3261 }
3262 {
3263 PyThreadState* __tstate = wxPyBeginAllowThreads();
3264 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3265
3266 wxPyEndAllowThreads(__tstate);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3270 return resultobj;
3271 fail:
3272 return NULL;
3273 }
3274
3275
3276 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3277 PyObject *resultobj;
3278 wxBitmap *arg1 = 0 ;
3279 wxIcon *result;
3280 PyObject * obj0 = 0 ;
3281 char *kwnames[] = {
3282 (char *) "bmp", NULL
3283 };
3284
3285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3287 if (arg1 == NULL) {
3288 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3289 }
3290 {
3291 PyThreadState* __tstate = wxPyBeginAllowThreads();
3292 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3293
3294 wxPyEndAllowThreads(__tstate);
3295 if (PyErr_Occurred()) SWIG_fail;
3296 }
3297 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3298 return resultobj;
3299 fail:
3300 return NULL;
3301 }
3302
3303
3304 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3305 PyObject *resultobj;
3306 PyObject *arg1 = (PyObject *) 0 ;
3307 wxIcon *result;
3308 PyObject * obj0 = 0 ;
3309 char *kwnames[] = {
3310 (char *) "listOfStrings", NULL
3311 };
3312
3313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3314 arg1 = obj0;
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 result = (wxIcon *)new_wxIcon(arg1);
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 }
3322 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3323 return resultobj;
3324 fail:
3325 return NULL;
3326 }
3327
3328
3329 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3330 PyObject *resultobj;
3331 wxIcon *arg1 = (wxIcon *) 0 ;
3332 wxString *arg2 = 0 ;
3333 int arg3 ;
3334 bool result;
3335 bool temp2 = False ;
3336 PyObject * obj0 = 0 ;
3337 PyObject * obj1 = 0 ;
3338 PyObject * obj2 = 0 ;
3339 char *kwnames[] = {
3340 (char *) "self",(char *) "name",(char *) "type", NULL
3341 };
3342
3343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3345 {
3346 arg2 = wxString_in_helper(obj1);
3347 if (arg2 == NULL) SWIG_fail;
3348 temp2 = True;
3349 }
3350 {
3351 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
3352 if (PyErr_Occurred()) SWIG_fail;
3353 }
3354 {
3355 PyThreadState* __tstate = wxPyBeginAllowThreads();
3356 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3357
3358 wxPyEndAllowThreads(__tstate);
3359 if (PyErr_Occurred()) SWIG_fail;
3360 }
3361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3362 {
3363 if (temp2)
3364 delete arg2;
3365 }
3366 return resultobj;
3367 fail:
3368 {
3369 if (temp2)
3370 delete arg2;
3371 }
3372 return NULL;
3373 }
3374
3375
3376 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3377 PyObject *resultobj;
3378 wxIcon *arg1 = (wxIcon *) 0 ;
3379 bool result;
3380 PyObject * obj0 = 0 ;
3381 char *kwnames[] = {
3382 (char *) "self", NULL
3383 };
3384
3385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 result = (bool)(arg1)->Ok();
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3395 return resultobj;
3396 fail:
3397 return NULL;
3398 }
3399
3400
3401 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3402 PyObject *resultobj;
3403 wxIcon *arg1 = (wxIcon *) 0 ;
3404 int result;
3405 PyObject * obj0 = 0 ;
3406 char *kwnames[] = {
3407 (char *) "self", NULL
3408 };
3409
3410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3412 {
3413 PyThreadState* __tstate = wxPyBeginAllowThreads();
3414 result = (int)(arg1)->GetWidth();
3415
3416 wxPyEndAllowThreads(__tstate);
3417 if (PyErr_Occurred()) SWIG_fail;
3418 }
3419 resultobj = SWIG_PyObj_FromInt((int)result);
3420 return resultobj;
3421 fail:
3422 return NULL;
3423 }
3424
3425
3426 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3427 PyObject *resultobj;
3428 wxIcon *arg1 = (wxIcon *) 0 ;
3429 int result;
3430 PyObject * obj0 = 0 ;
3431 char *kwnames[] = {
3432 (char *) "self", NULL
3433 };
3434
3435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3437 {
3438 PyThreadState* __tstate = wxPyBeginAllowThreads();
3439 result = (int)(arg1)->GetHeight();
3440
3441 wxPyEndAllowThreads(__tstate);
3442 if (PyErr_Occurred()) SWIG_fail;
3443 }
3444 resultobj = SWIG_PyObj_FromInt((int)result);
3445 return resultobj;
3446 fail:
3447 return NULL;
3448 }
3449
3450
3451 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxIcon *arg1 = (wxIcon *) 0 ;
3454 int result;
3455 PyObject * obj0 = 0 ;
3456 char *kwnames[] = {
3457 (char *) "self", NULL
3458 };
3459
3460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3461 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3462 {
3463 PyThreadState* __tstate = wxPyBeginAllowThreads();
3464 result = (int)(arg1)->GetDepth();
3465
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 resultobj = SWIG_PyObj_FromInt((int)result);
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj;
3478 wxIcon *arg1 = (wxIcon *) 0 ;
3479 int arg2 ;
3480 PyObject * obj0 = 0 ;
3481 PyObject * obj1 = 0 ;
3482 char *kwnames[] = {
3483 (char *) "self",(char *) "w", NULL
3484 };
3485
3486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3488 {
3489 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3490 if (PyErr_Occurred()) SWIG_fail;
3491 }
3492 {
3493 PyThreadState* __tstate = wxPyBeginAllowThreads();
3494 (arg1)->SetWidth(arg2);
3495
3496 wxPyEndAllowThreads(__tstate);
3497 if (PyErr_Occurred()) SWIG_fail;
3498 }
3499 Py_INCREF(Py_None); resultobj = Py_None;
3500 return resultobj;
3501 fail:
3502 return NULL;
3503 }
3504
3505
3506 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3507 PyObject *resultobj;
3508 wxIcon *arg1 = (wxIcon *) 0 ;
3509 int arg2 ;
3510 PyObject * obj0 = 0 ;
3511 PyObject * obj1 = 0 ;
3512 char *kwnames[] = {
3513 (char *) "self",(char *) "h", NULL
3514 };
3515
3516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3518 {
3519 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 {
3523 PyThreadState* __tstate = wxPyBeginAllowThreads();
3524 (arg1)->SetHeight(arg2);
3525
3526 wxPyEndAllowThreads(__tstate);
3527 if (PyErr_Occurred()) SWIG_fail;
3528 }
3529 Py_INCREF(Py_None); resultobj = Py_None;
3530 return resultobj;
3531 fail:
3532 return NULL;
3533 }
3534
3535
3536 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3537 PyObject *resultobj;
3538 wxIcon *arg1 = (wxIcon *) 0 ;
3539 int arg2 ;
3540 PyObject * obj0 = 0 ;
3541 PyObject * obj1 = 0 ;
3542 char *kwnames[] = {
3543 (char *) "self",(char *) "d", NULL
3544 };
3545
3546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3548 {
3549 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3550 if (PyErr_Occurred()) SWIG_fail;
3551 }
3552 {
3553 PyThreadState* __tstate = wxPyBeginAllowThreads();
3554 (arg1)->SetDepth(arg2);
3555
3556 wxPyEndAllowThreads(__tstate);
3557 if (PyErr_Occurred()) SWIG_fail;
3558 }
3559 Py_INCREF(Py_None); resultobj = Py_None;
3560 return resultobj;
3561 fail:
3562 return NULL;
3563 }
3564
3565
3566 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3567 PyObject *resultobj;
3568 wxIcon *arg1 = (wxIcon *) 0 ;
3569 wxBitmap *arg2 = 0 ;
3570 PyObject * obj0 = 0 ;
3571 PyObject * obj1 = 0 ;
3572 char *kwnames[] = {
3573 (char *) "self",(char *) "bmp", NULL
3574 };
3575
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3577 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3578 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3579 if (arg2 == NULL) {
3580 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3581 }
3582 {
3583 PyThreadState* __tstate = wxPyBeginAllowThreads();
3584 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3585
3586 wxPyEndAllowThreads(__tstate);
3587 if (PyErr_Occurred()) SWIG_fail;
3588 }
3589 Py_INCREF(Py_None); resultobj = Py_None;
3590 return resultobj;
3591 fail:
3592 return NULL;
3593 }
3594
3595
3596 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3597 PyObject *obj;
3598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3599 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3600 Py_INCREF(obj);
3601 return Py_BuildValue((char *)"");
3602 }
3603 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3604 PyObject *resultobj;
3605 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3606 int arg2 = (int) 0 ;
3607 wxIconLocation *result;
3608 bool temp1 = False ;
3609 PyObject * obj0 = 0 ;
3610 PyObject * obj1 = 0 ;
3611 char *kwnames[] = {
3612 (char *) "filename",(char *) "num", NULL
3613 };
3614
3615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3616 if (obj0) {
3617 {
3618 arg1 = wxString_in_helper(obj0);
3619 if (arg1 == NULL) SWIG_fail;
3620 temp1 = True;
3621 }
3622 }
3623 if (obj1) {
3624 {
3625 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3626 if (PyErr_Occurred()) SWIG_fail;
3627 }
3628 }
3629 {
3630 PyThreadState* __tstate = wxPyBeginAllowThreads();
3631 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3632
3633 wxPyEndAllowThreads(__tstate);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 }
3636 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3637 {
3638 if (temp1)
3639 delete arg1;
3640 }
3641 return resultobj;
3642 fail:
3643 {
3644 if (temp1)
3645 delete arg1;
3646 }
3647 return NULL;
3648 }
3649
3650
3651 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3652 PyObject *resultobj;
3653 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3654 PyObject * obj0 = 0 ;
3655 char *kwnames[] = {
3656 (char *) "self", NULL
3657 };
3658
3659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3661 {
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 delete arg1;
3664
3665 wxPyEndAllowThreads(__tstate);
3666 if (PyErr_Occurred()) SWIG_fail;
3667 }
3668 Py_INCREF(Py_None); resultobj = Py_None;
3669 return resultobj;
3670 fail:
3671 return NULL;
3672 }
3673
3674
3675 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3676 PyObject *resultobj;
3677 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3678 bool result;
3679 PyObject * obj0 = 0 ;
3680 char *kwnames[] = {
3681 (char *) "self", NULL
3682 };
3683
3684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3685 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3686 {
3687 PyThreadState* __tstate = wxPyBeginAllowThreads();
3688 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3689
3690 wxPyEndAllowThreads(__tstate);
3691 if (PyErr_Occurred()) SWIG_fail;
3692 }
3693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3694 return resultobj;
3695 fail:
3696 return NULL;
3697 }
3698
3699
3700 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3701 PyObject *resultobj;
3702 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3703 wxString *arg2 = 0 ;
3704 bool temp2 = False ;
3705 PyObject * obj0 = 0 ;
3706 PyObject * obj1 = 0 ;
3707 char *kwnames[] = {
3708 (char *) "self",(char *) "filename", NULL
3709 };
3710
3711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3713 {
3714 arg2 = wxString_in_helper(obj1);
3715 if (arg2 == NULL) SWIG_fail;
3716 temp2 = True;
3717 }
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 (arg1)->SetFileName((wxString const &)*arg2);
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 Py_INCREF(Py_None); resultobj = Py_None;
3726 {
3727 if (temp2)
3728 delete arg2;
3729 }
3730 return resultobj;
3731 fail:
3732 {
3733 if (temp2)
3734 delete arg2;
3735 }
3736 return NULL;
3737 }
3738
3739
3740 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3741 PyObject *resultobj;
3742 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3743 wxString *result;
3744 PyObject * obj0 = 0 ;
3745 char *kwnames[] = {
3746 (char *) "self", NULL
3747 };
3748
3749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3750 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3751 {
3752 PyThreadState* __tstate = wxPyBeginAllowThreads();
3753 {
3754 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3755 result = (wxString *) &_result_ref;
3756 }
3757
3758 wxPyEndAllowThreads(__tstate);
3759 if (PyErr_Occurred()) SWIG_fail;
3760 }
3761 {
3762 #if wxUSE_UNICODE
3763 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3764 #else
3765 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3766 #endif
3767 }
3768 return resultobj;
3769 fail:
3770 return NULL;
3771 }
3772
3773
3774 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3775 PyObject *resultobj;
3776 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3777 int arg2 ;
3778 PyObject * obj0 = 0 ;
3779 PyObject * obj1 = 0 ;
3780 char *kwnames[] = {
3781 (char *) "self",(char *) "num", NULL
3782 };
3783
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
3785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3786 {
3787 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 wxIconLocation_SetIndex(arg1,arg2);
3793
3794 wxPyEndAllowThreads(__tstate);
3795 if (PyErr_Occurred()) SWIG_fail;
3796 }
3797 Py_INCREF(Py_None); resultobj = Py_None;
3798 return resultobj;
3799 fail:
3800 return NULL;
3801 }
3802
3803
3804 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject *resultobj;
3806 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3807 int result;
3808 PyObject * obj0 = 0 ;
3809 char *kwnames[] = {
3810 (char *) "self", NULL
3811 };
3812
3813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3815 {
3816 PyThreadState* __tstate = wxPyBeginAllowThreads();
3817 result = (int)wxIconLocation_GetIndex(arg1);
3818
3819 wxPyEndAllowThreads(__tstate);
3820 if (PyErr_Occurred()) SWIG_fail;
3821 }
3822 resultobj = SWIG_PyObj_FromInt((int)result);
3823 return resultobj;
3824 fail:
3825 return NULL;
3826 }
3827
3828
3829 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3830 PyObject *obj;
3831 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3832 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3833 Py_INCREF(obj);
3834 return Py_BuildValue((char *)"");
3835 }
3836 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3837 PyObject *resultobj;
3838 wxIconBundle *result;
3839 char *kwnames[] = {
3840 NULL
3841 };
3842
3843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3844 {
3845 PyThreadState* __tstate = wxPyBeginAllowThreads();
3846 result = (wxIconBundle *)new wxIconBundle();
3847
3848 wxPyEndAllowThreads(__tstate);
3849 if (PyErr_Occurred()) SWIG_fail;
3850 }
3851 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3852 return resultobj;
3853 fail:
3854 return NULL;
3855 }
3856
3857
3858 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3859 PyObject *resultobj;
3860 wxString *arg1 = 0 ;
3861 long arg2 ;
3862 wxIconBundle *result;
3863 bool temp1 = False ;
3864 PyObject * obj0 = 0 ;
3865 PyObject * obj1 = 0 ;
3866 char *kwnames[] = {
3867 (char *) "file",(char *) "type", NULL
3868 };
3869
3870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
3871 {
3872 arg1 = wxString_in_helper(obj0);
3873 if (arg1 == NULL) SWIG_fail;
3874 temp1 = True;
3875 }
3876 {
3877 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 }
3880 {
3881 PyThreadState* __tstate = wxPyBeginAllowThreads();
3882 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3883
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3888 {
3889 if (temp1)
3890 delete arg1;
3891 }
3892 return resultobj;
3893 fail:
3894 {
3895 if (temp1)
3896 delete arg1;
3897 }
3898 return NULL;
3899 }
3900
3901
3902 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3903 PyObject *resultobj;
3904 wxIcon *arg1 = 0 ;
3905 wxIconBundle *result;
3906 PyObject * obj0 = 0 ;
3907 char *kwnames[] = {
3908 (char *) "icon", NULL
3909 };
3910
3911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3913 if (arg1 == NULL) {
3914 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3915 }
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3919
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3931 PyObject *resultobj;
3932 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3933 PyObject * obj0 = 0 ;
3934 char *kwnames[] = {
3935 (char *) "self", NULL
3936 };
3937
3938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3940 {
3941 PyThreadState* __tstate = wxPyBeginAllowThreads();
3942 delete arg1;
3943
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 Py_INCREF(Py_None); resultobj = Py_None;
3948 return resultobj;
3949 fail:
3950 return NULL;
3951 }
3952
3953
3954 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3955 PyObject *resultobj;
3956 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3957 wxIcon *arg2 = 0 ;
3958 PyObject * obj0 = 0 ;
3959 PyObject * obj1 = 0 ;
3960 char *kwnames[] = {
3961 (char *) "self",(char *) "icon", NULL
3962 };
3963
3964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3965 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3966 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3967 if (arg2 == NULL) {
3968 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3969 }
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 (arg1)->AddIcon((wxIcon const &)*arg2);
3973
3974 wxPyEndAllowThreads(__tstate);
3975 if (PyErr_Occurred()) SWIG_fail;
3976 }
3977 Py_INCREF(Py_None); resultobj = Py_None;
3978 return resultobj;
3979 fail:
3980 return NULL;
3981 }
3982
3983
3984 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3985 PyObject *resultobj;
3986 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3987 wxString *arg2 = 0 ;
3988 long arg3 ;
3989 bool temp2 = False ;
3990 PyObject * obj0 = 0 ;
3991 PyObject * obj1 = 0 ;
3992 PyObject * obj2 = 0 ;
3993 char *kwnames[] = {
3994 (char *) "self",(char *) "file",(char *) "type", NULL
3995 };
3996
3997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3999 {
4000 arg2 = wxString_in_helper(obj1);
4001 if (arg2 == NULL) SWIG_fail;
4002 temp2 = True;
4003 }
4004 {
4005 arg3 = (long) SWIG_PyObj_AsLong(obj2);
4006 if (PyErr_Occurred()) SWIG_fail;
4007 }
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4011
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 Py_INCREF(Py_None); resultobj = Py_None;
4016 {
4017 if (temp2)
4018 delete arg2;
4019 }
4020 return resultobj;
4021 fail:
4022 {
4023 if (temp2)
4024 delete arg2;
4025 }
4026 return NULL;
4027 }
4028
4029
4030 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4031 PyObject *resultobj;
4032 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4033 wxSize *arg2 = 0 ;
4034 wxIcon *result;
4035 wxSize temp2 ;
4036 PyObject * obj0 = 0 ;
4037 PyObject * obj1 = 0 ;
4038 char *kwnames[] = {
4039 (char *) "self",(char *) "size", NULL
4040 };
4041
4042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4044 {
4045 arg2 = &temp2;
4046 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4047 }
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 {
4051 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4052 result = (wxIcon *) &_result_ref;
4053 }
4054
4055 wxPyEndAllowThreads(__tstate);
4056 if (PyErr_Occurred()) SWIG_fail;
4057 }
4058 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4059 return resultobj;
4060 fail:
4061 return NULL;
4062 }
4063
4064
4065 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4066 PyObject *obj;
4067 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4068 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4069 Py_INCREF(obj);
4070 return Py_BuildValue((char *)"");
4071 }
4072 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4073 PyObject *resultobj;
4074 wxString *arg1 = (wxString *) 0 ;
4075 long arg2 ;
4076 int arg3 = (int) 0 ;
4077 int arg4 = (int) 0 ;
4078 wxCursor *result;
4079 bool temp1 = False ;
4080 PyObject * obj0 = 0 ;
4081 PyObject * obj1 = 0 ;
4082 PyObject * obj2 = 0 ;
4083 PyObject * obj3 = 0 ;
4084 char *kwnames[] = {
4085 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4086 };
4087
4088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4089 {
4090 arg1 = wxString_in_helper(obj0);
4091 if (arg1 == NULL) SWIG_fail;
4092 temp1 = True;
4093 }
4094 {
4095 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4096 if (PyErr_Occurred()) SWIG_fail;
4097 }
4098 if (obj2) {
4099 {
4100 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 }
4103 }
4104 if (obj3) {
4105 {
4106 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 }
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4113
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4118 {
4119 if (temp1)
4120 delete arg1;
4121 }
4122 return resultobj;
4123 fail:
4124 {
4125 if (temp1)
4126 delete arg1;
4127 }
4128 return NULL;
4129 }
4130
4131
4132 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4133 PyObject *resultobj;
4134 wxCursor *arg1 = (wxCursor *) 0 ;
4135 PyObject * obj0 = 0 ;
4136 char *kwnames[] = {
4137 (char *) "self", NULL
4138 };
4139
4140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4141 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4142 {
4143 PyThreadState* __tstate = wxPyBeginAllowThreads();
4144 delete arg1;
4145
4146 wxPyEndAllowThreads(__tstate);
4147 if (PyErr_Occurred()) SWIG_fail;
4148 }
4149 Py_INCREF(Py_None); resultobj = Py_None;
4150 return resultobj;
4151 fail:
4152 return NULL;
4153 }
4154
4155
4156 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4157 PyObject *resultobj;
4158 int arg1 ;
4159 wxCursor *result;
4160 PyObject * obj0 = 0 ;
4161 char *kwnames[] = {
4162 (char *) "id", NULL
4163 };
4164
4165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4166 {
4167 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4168 if (PyErr_Occurred()) SWIG_fail;
4169 }
4170 {
4171 PyThreadState* __tstate = wxPyBeginAllowThreads();
4172 result = (wxCursor *)new wxCursor(arg1);
4173
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj;
4186 wxImage *arg1 = 0 ;
4187 wxCursor *result;
4188 PyObject * obj0 = 0 ;
4189 char *kwnames[] = {
4190 (char *) "image", NULL
4191 };
4192
4193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4195 if (arg1 == NULL) {
4196 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4197 }
4198 {
4199 PyThreadState* __tstate = wxPyBeginAllowThreads();
4200 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4201
4202 wxPyEndAllowThreads(__tstate);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4206 return resultobj;
4207 fail:
4208 return NULL;
4209 }
4210
4211
4212 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4213 PyObject *resultobj;
4214 PyObject *arg1 = (PyObject *) 0 ;
4215 int arg2 ;
4216 int arg3 ;
4217 int arg4 = (int) -1 ;
4218 int arg5 = (int) -1 ;
4219 PyObject *arg6 = (PyObject *) 0 ;
4220 wxCursor *result;
4221 PyObject * obj0 = 0 ;
4222 PyObject * obj1 = 0 ;
4223 PyObject * obj2 = 0 ;
4224 PyObject * obj3 = 0 ;
4225 PyObject * obj4 = 0 ;
4226 PyObject * obj5 = 0 ;
4227 char *kwnames[] = {
4228 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4229 };
4230
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4232 arg1 = obj0;
4233 {
4234 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 {
4238 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 if (obj3) {
4242 {
4243 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 }
4247 if (obj4) {
4248 {
4249 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 }
4253 if (obj5) {
4254 arg6 = obj5;
4255 }
4256 {
4257 PyThreadState* __tstate = wxPyBeginAllowThreads();
4258 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4259
4260 wxPyEndAllowThreads(__tstate);
4261 if (PyErr_Occurred()) SWIG_fail;
4262 }
4263 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4264 return resultobj;
4265 fail:
4266 return NULL;
4267 }
4268
4269
4270 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 wxCursor *arg1 = (wxCursor *) 0 ;
4273 bool result;
4274 PyObject * obj0 = 0 ;
4275 char *kwnames[] = {
4276 (char *) "self", NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4281 {
4282 PyThreadState* __tstate = wxPyBeginAllowThreads();
4283 result = (bool)(arg1)->Ok();
4284
4285 wxPyEndAllowThreads(__tstate);
4286 if (PyErr_Occurred()) SWIG_fail;
4287 }
4288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4289 return resultobj;
4290 fail:
4291 return NULL;
4292 }
4293
4294
4295 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4296 PyObject *obj;
4297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4298 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4299 Py_INCREF(obj);
4300 return Py_BuildValue((char *)"");
4301 }
4302 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4303 PyObject *resultobj;
4304 int arg1 = (int) 0 ;
4305 int arg2 = (int) 0 ;
4306 int arg3 = (int) 0 ;
4307 int arg4 = (int) 0 ;
4308 wxRegion *result;
4309 PyObject * obj0 = 0 ;
4310 PyObject * obj1 = 0 ;
4311 PyObject * obj2 = 0 ;
4312 PyObject * obj3 = 0 ;
4313 char *kwnames[] = {
4314 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4315 };
4316
4317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4318 if (obj0) {
4319 {
4320 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 }
4324 if (obj1) {
4325 {
4326 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 }
4330 if (obj2) {
4331 {
4332 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 }
4336 if (obj3) {
4337 {
4338 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4339 if (PyErr_Occurred()) SWIG_fail;
4340 }
4341 }
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4350 return resultobj;
4351 fail:
4352 return NULL;
4353 }
4354
4355
4356 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4357 PyObject *resultobj;
4358 wxBitmap *arg1 = 0 ;
4359 wxColour const &arg2_defvalue = wxNullColour ;
4360 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4361 int arg3 = (int) 0 ;
4362 wxRegion *result;
4363 wxColour temp2 ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 PyObject * obj2 = 0 ;
4367 char *kwnames[] = {
4368 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4369 };
4370
4371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4373 if (arg1 == NULL) {
4374 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4375 }
4376 if (obj1) {
4377 {
4378 arg2 = &temp2;
4379 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4380 }
4381 }
4382 if (obj2) {
4383 {
4384 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4385 if (PyErr_Occurred()) SWIG_fail;
4386 }
4387 }
4388 {
4389 PyThreadState* __tstate = wxPyBeginAllowThreads();
4390 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4391
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4403 PyObject *resultobj;
4404 int arg1 ;
4405 wxPoint *arg2 = (wxPoint *) 0 ;
4406 int arg3 = (int) wxWINDING_RULE ;
4407 wxRegion *result;
4408 PyObject * obj0 = 0 ;
4409 PyObject * obj1 = 0 ;
4410 char *kwnames[] = {
4411 (char *) "points",(char *) "fillStyle", NULL
4412 };
4413
4414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4415 {
4416 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4417 if (arg2 == NULL) SWIG_fail;
4418 }
4419 if (obj1) {
4420 {
4421 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4422 if (PyErr_Occurred()) SWIG_fail;
4423 }
4424 }
4425 {
4426 PyThreadState* __tstate = wxPyBeginAllowThreads();
4427 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4428
4429 wxPyEndAllowThreads(__tstate);
4430 if (PyErr_Occurred()) SWIG_fail;
4431 }
4432 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4433 {
4434 if (arg2) delete [] arg2;
4435 }
4436 return resultobj;
4437 fail:
4438 {
4439 if (arg2) delete [] arg2;
4440 }
4441 return NULL;
4442 }
4443
4444
4445 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4446 PyObject *resultobj;
4447 wxRegion *arg1 = (wxRegion *) 0 ;
4448 PyObject * obj0 = 0 ;
4449 char *kwnames[] = {
4450 (char *) "self", NULL
4451 };
4452
4453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4455 {
4456 PyThreadState* __tstate = wxPyBeginAllowThreads();
4457 delete arg1;
4458
4459 wxPyEndAllowThreads(__tstate);
4460 if (PyErr_Occurred()) SWIG_fail;
4461 }
4462 Py_INCREF(Py_None); resultobj = Py_None;
4463 return resultobj;
4464 fail:
4465 return NULL;
4466 }
4467
4468
4469 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4470 PyObject *resultobj;
4471 wxRegion *arg1 = (wxRegion *) 0 ;
4472 PyObject * obj0 = 0 ;
4473 char *kwnames[] = {
4474 (char *) "self", NULL
4475 };
4476
4477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4479 {
4480 PyThreadState* __tstate = wxPyBeginAllowThreads();
4481 (arg1)->Clear();
4482
4483 wxPyEndAllowThreads(__tstate);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 }
4486 Py_INCREF(Py_None); resultobj = Py_None;
4487 return resultobj;
4488 fail:
4489 return NULL;
4490 }
4491
4492
4493 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4494 PyObject *resultobj;
4495 wxRegion *arg1 = (wxRegion *) 0 ;
4496 int arg2 ;
4497 int arg3 ;
4498 bool result;
4499 PyObject * obj0 = 0 ;
4500 PyObject * obj1 = 0 ;
4501 PyObject * obj2 = 0 ;
4502 char *kwnames[] = {
4503 (char *) "self",(char *) "x",(char *) "y", NULL
4504 };
4505
4506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4507 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4508 {
4509 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 }
4512 {
4513 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4514 if (PyErr_Occurred()) SWIG_fail;
4515 }
4516 {
4517 PyThreadState* __tstate = wxPyBeginAllowThreads();
4518 result = (bool)(arg1)->Offset(arg2,arg3);
4519
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4524 return resultobj;
4525 fail:
4526 return NULL;
4527 }
4528
4529
4530 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj;
4532 wxRegion *arg1 = (wxRegion *) 0 ;
4533 int arg2 ;
4534 int arg3 ;
4535 int result;
4536 PyObject * obj0 = 0 ;
4537 PyObject * obj1 = 0 ;
4538 PyObject * obj2 = 0 ;
4539 char *kwnames[] = {
4540 (char *) "self",(char *) "x",(char *) "y", NULL
4541 };
4542
4543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4545 {
4546 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 {
4550 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4551 if (PyErr_Occurred()) SWIG_fail;
4552 }
4553 {
4554 PyThreadState* __tstate = wxPyBeginAllowThreads();
4555 result = (int)(arg1)->Contains(arg2,arg3);
4556
4557 wxPyEndAllowThreads(__tstate);
4558 if (PyErr_Occurred()) SWIG_fail;
4559 }
4560 resultobj = SWIG_PyObj_FromInt((int)result);
4561 return resultobj;
4562 fail:
4563 return NULL;
4564 }
4565
4566
4567 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4568 PyObject *resultobj;
4569 wxRegion *arg1 = (wxRegion *) 0 ;
4570 wxPoint *arg2 = 0 ;
4571 int result;
4572 wxPoint temp2 ;
4573 PyObject * obj0 = 0 ;
4574 PyObject * obj1 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "self",(char *) "pt", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4581 {
4582 arg2 = &temp2;
4583 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4584 }
4585 {
4586 PyThreadState* __tstate = wxPyBeginAllowThreads();
4587 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4588
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 resultobj = SWIG_PyObj_FromInt((int)result);
4593 return resultobj;
4594 fail:
4595 return NULL;
4596 }
4597
4598
4599 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4600 PyObject *resultobj;
4601 wxRegion *arg1 = (wxRegion *) 0 ;
4602 wxRect *arg2 = 0 ;
4603 int result;
4604 wxRect temp2 ;
4605 PyObject * obj0 = 0 ;
4606 PyObject * obj1 = 0 ;
4607 char *kwnames[] = {
4608 (char *) "self",(char *) "rect", NULL
4609 };
4610
4611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4612 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4613 {
4614 arg2 = &temp2;
4615 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4616 }
4617 {
4618 PyThreadState* __tstate = wxPyBeginAllowThreads();
4619 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4620
4621 wxPyEndAllowThreads(__tstate);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 resultobj = SWIG_PyObj_FromInt((int)result);
4625 return resultobj;
4626 fail:
4627 return NULL;
4628 }
4629
4630
4631 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4632 PyObject *resultobj;
4633 wxRegion *arg1 = (wxRegion *) 0 ;
4634 int arg2 ;
4635 int arg3 ;
4636 int arg4 ;
4637 int arg5 ;
4638 int result;
4639 PyObject * obj0 = 0 ;
4640 PyObject * obj1 = 0 ;
4641 PyObject * obj2 = 0 ;
4642 PyObject * obj3 = 0 ;
4643 PyObject * obj4 = 0 ;
4644 char *kwnames[] = {
4645 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4646 };
4647
4648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4649 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4650 {
4651 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4652 if (PyErr_Occurred()) SWIG_fail;
4653 }
4654 {
4655 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4656 if (PyErr_Occurred()) SWIG_fail;
4657 }
4658 {
4659 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4660 if (PyErr_Occurred()) SWIG_fail;
4661 }
4662 {
4663 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4664 if (PyErr_Occurred()) SWIG_fail;
4665 }
4666 {
4667 PyThreadState* __tstate = wxPyBeginAllowThreads();
4668 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4669
4670 wxPyEndAllowThreads(__tstate);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 resultobj = SWIG_PyObj_FromInt((int)result);
4674 return resultobj;
4675 fail:
4676 return NULL;
4677 }
4678
4679
4680 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4681 PyObject *resultobj;
4682 wxRegion *arg1 = (wxRegion *) 0 ;
4683 wxRect result;
4684 PyObject * obj0 = 0 ;
4685 char *kwnames[] = {
4686 (char *) "self", NULL
4687 };
4688
4689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4691 {
4692 PyThreadState* __tstate = wxPyBeginAllowThreads();
4693 result = (arg1)->GetBox();
4694
4695 wxPyEndAllowThreads(__tstate);
4696 if (PyErr_Occurred()) SWIG_fail;
4697 }
4698 {
4699 wxRect * resultptr;
4700 resultptr = new wxRect((wxRect &) result);
4701 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4702 }
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4710 PyObject *resultobj;
4711 wxRegion *arg1 = (wxRegion *) 0 ;
4712 int arg2 ;
4713 int arg3 ;
4714 int arg4 ;
4715 int arg5 ;
4716 bool result;
4717 PyObject * obj0 = 0 ;
4718 PyObject * obj1 = 0 ;
4719 PyObject * obj2 = 0 ;
4720 PyObject * obj3 = 0 ;
4721 PyObject * obj4 = 0 ;
4722 char *kwnames[] = {
4723 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4724 };
4725
4726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4728 {
4729 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 {
4733 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4734 if (PyErr_Occurred()) SWIG_fail;
4735 }
4736 {
4737 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 {
4741 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4742 if (PyErr_Occurred()) SWIG_fail;
4743 }
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4747
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4752 return resultobj;
4753 fail:
4754 return NULL;
4755 }
4756
4757
4758 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject *resultobj;
4760 wxRegion *arg1 = (wxRegion *) 0 ;
4761 wxRect *arg2 = 0 ;
4762 bool result;
4763 wxRect temp2 ;
4764 PyObject * obj0 = 0 ;
4765 PyObject * obj1 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self",(char *) "rect", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4772 {
4773 arg2 = &temp2;
4774 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4775 }
4776 {
4777 PyThreadState* __tstate = wxPyBeginAllowThreads();
4778 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4779
4780 wxPyEndAllowThreads(__tstate);
4781 if (PyErr_Occurred()) SWIG_fail;
4782 }
4783 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4784 return resultobj;
4785 fail:
4786 return NULL;
4787 }
4788
4789
4790 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4791 PyObject *resultobj;
4792 wxRegion *arg1 = (wxRegion *) 0 ;
4793 wxRegion *arg2 = 0 ;
4794 bool result;
4795 PyObject * obj0 = 0 ;
4796 PyObject * obj1 = 0 ;
4797 char *kwnames[] = {
4798 (char *) "self",(char *) "region", NULL
4799 };
4800
4801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4803 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4804 if (arg2 == NULL) {
4805 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4806 }
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj;
4823 wxRegion *arg1 = (wxRegion *) 0 ;
4824 bool result;
4825 PyObject * obj0 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "self", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4831 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 result = (bool)(arg1)->IsEmpty();
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4847 PyObject *resultobj;
4848 wxRegion *arg1 = (wxRegion *) 0 ;
4849 int arg2 ;
4850 int arg3 ;
4851 int arg4 ;
4852 int arg5 ;
4853 bool result;
4854 PyObject * obj0 = 0 ;
4855 PyObject * obj1 = 0 ;
4856 PyObject * obj2 = 0 ;
4857 PyObject * obj3 = 0 ;
4858 PyObject * obj4 = 0 ;
4859 char *kwnames[] = {
4860 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4861 };
4862
4863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4865 {
4866 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 {
4870 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 {
4874 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4875 if (PyErr_Occurred()) SWIG_fail;
4876 }
4877 {
4878 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 }
4881 {
4882 PyThreadState* __tstate = wxPyBeginAllowThreads();
4883 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4884
4885 wxPyEndAllowThreads(__tstate);
4886 if (PyErr_Occurred()) SWIG_fail;
4887 }
4888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4889 return resultobj;
4890 fail:
4891 return NULL;
4892 }
4893
4894
4895 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4896 PyObject *resultobj;
4897 wxRegion *arg1 = (wxRegion *) 0 ;
4898 wxRect *arg2 = 0 ;
4899 bool result;
4900 wxRect temp2 ;
4901 PyObject * obj0 = 0 ;
4902 PyObject * obj1 = 0 ;
4903 char *kwnames[] = {
4904 (char *) "self",(char *) "rect", NULL
4905 };
4906
4907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4908 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4909 {
4910 arg2 = &temp2;
4911 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4912 }
4913 {
4914 PyThreadState* __tstate = wxPyBeginAllowThreads();
4915 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4916
4917 wxPyEndAllowThreads(__tstate);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4921 return resultobj;
4922 fail:
4923 return NULL;
4924 }
4925
4926
4927 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4928 PyObject *resultobj;
4929 wxRegion *arg1 = (wxRegion *) 0 ;
4930 wxRegion *arg2 = 0 ;
4931 bool result;
4932 PyObject * obj0 = 0 ;
4933 PyObject * obj1 = 0 ;
4934 char *kwnames[] = {
4935 (char *) "self",(char *) "region", NULL
4936 };
4937
4938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4940 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4941 if (arg2 == NULL) {
4942 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4943 }
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4952 return resultobj;
4953 fail:
4954 return NULL;
4955 }
4956
4957
4958 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4959 PyObject *resultobj;
4960 wxRegion *arg1 = (wxRegion *) 0 ;
4961 int arg2 ;
4962 int arg3 ;
4963 int arg4 ;
4964 int arg5 ;
4965 bool result;
4966 PyObject * obj0 = 0 ;
4967 PyObject * obj1 = 0 ;
4968 PyObject * obj2 = 0 ;
4969 PyObject * obj3 = 0 ;
4970 PyObject * obj4 = 0 ;
4971 char *kwnames[] = {
4972 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4973 };
4974
4975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4977 {
4978 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 }
4981 {
4982 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4983 if (PyErr_Occurred()) SWIG_fail;
4984 }
4985 {
4986 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4987 if (PyErr_Occurred()) SWIG_fail;
4988 }
4989 {
4990 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4991 if (PyErr_Occurred()) SWIG_fail;
4992 }
4993 {
4994 PyThreadState* __tstate = wxPyBeginAllowThreads();
4995 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5001 return resultobj;
5002 fail:
5003 return NULL;
5004 }
5005
5006
5007 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5008 PyObject *resultobj;
5009 wxRegion *arg1 = (wxRegion *) 0 ;
5010 wxRect *arg2 = 0 ;
5011 bool result;
5012 wxRect temp2 ;
5013 PyObject * obj0 = 0 ;
5014 PyObject * obj1 = 0 ;
5015 char *kwnames[] = {
5016 (char *) "self",(char *) "rect", NULL
5017 };
5018
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5021 {
5022 arg2 = &temp2;
5023 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5024 }
5025 {
5026 PyThreadState* __tstate = wxPyBeginAllowThreads();
5027 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5028
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj;
5041 wxRegion *arg1 = (wxRegion *) 0 ;
5042 wxRegion *arg2 = 0 ;
5043 bool result;
5044 PyObject * obj0 = 0 ;
5045 PyObject * obj1 = 0 ;
5046 char *kwnames[] = {
5047 (char *) "self",(char *) "region", NULL
5048 };
5049
5050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5052 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5053 if (arg2 == NULL) {
5054 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5055 }
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5059
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 wxRegion *arg1 = (wxRegion *) 0 ;
5073 int arg2 ;
5074 int arg3 ;
5075 int arg4 ;
5076 int arg5 ;
5077 bool result;
5078 PyObject * obj0 = 0 ;
5079 PyObject * obj1 = 0 ;
5080 PyObject * obj2 = 0 ;
5081 PyObject * obj3 = 0 ;
5082 PyObject * obj4 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5089 {
5090 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 {
5094 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 }
5097 {
5098 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 {
5102 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5103 if (PyErr_Occurred()) SWIG_fail;
5104 }
5105 {
5106 PyThreadState* __tstate = wxPyBeginAllowThreads();
5107 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5108
5109 wxPyEndAllowThreads(__tstate);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5113 return resultobj;
5114 fail:
5115 return NULL;
5116 }
5117
5118
5119 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5120 PyObject *resultobj;
5121 wxRegion *arg1 = (wxRegion *) 0 ;
5122 wxRect *arg2 = 0 ;
5123 bool result;
5124 wxRect temp2 ;
5125 PyObject * obj0 = 0 ;
5126 PyObject * obj1 = 0 ;
5127 char *kwnames[] = {
5128 (char *) "self",(char *) "rect", NULL
5129 };
5130
5131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5133 {
5134 arg2 = &temp2;
5135 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5136 }
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj;
5153 wxRegion *arg1 = (wxRegion *) 0 ;
5154 wxRegion *arg2 = 0 ;
5155 bool result;
5156 PyObject * obj0 = 0 ;
5157 PyObject * obj1 = 0 ;
5158 char *kwnames[] = {
5159 (char *) "self",(char *) "region", NULL
5160 };
5161
5162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5164 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5165 if (arg2 == NULL) {
5166 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5167 }
5168 {
5169 PyThreadState* __tstate = wxPyBeginAllowThreads();
5170 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5171
5172 wxPyEndAllowThreads(__tstate);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 }
5175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5176 return resultobj;
5177 fail:
5178 return NULL;
5179 }
5180
5181
5182 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5183 PyObject *resultobj;
5184 wxRegion *arg1 = (wxRegion *) 0 ;
5185 SwigValueWrapper< wxBitmap > result;
5186 PyObject * obj0 = 0 ;
5187 char *kwnames[] = {
5188 (char *) "self", NULL
5189 };
5190
5191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5193 {
5194 PyThreadState* __tstate = wxPyBeginAllowThreads();
5195 result = (arg1)->ConvertToBitmap();
5196
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 {
5201 wxBitmap * resultptr;
5202 resultptr = new wxBitmap((wxBitmap &) result);
5203 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5204 }
5205 return resultobj;
5206 fail:
5207 return NULL;
5208 }
5209
5210
5211 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5212 PyObject *resultobj;
5213 wxRegion *arg1 = (wxRegion *) 0 ;
5214 wxBitmap *arg2 = 0 ;
5215 wxColour const &arg3_defvalue = wxNullColour ;
5216 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5217 int arg4 = (int) 0 ;
5218 bool result;
5219 wxColour temp3 ;
5220 PyObject * obj0 = 0 ;
5221 PyObject * obj1 = 0 ;
5222 PyObject * obj2 = 0 ;
5223 PyObject * obj3 = 0 ;
5224 char *kwnames[] = {
5225 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5226 };
5227
5228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5230 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5231 if (arg2 == NULL) {
5232 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5233 }
5234 if (obj2) {
5235 {
5236 arg3 = &temp3;
5237 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5238 }
5239 }
5240 if (obj3) {
5241 {
5242 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 }
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5249
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5254 return resultobj;
5255 fail:
5256 return NULL;
5257 }
5258
5259
5260 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5261 PyObject *obj;
5262 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5263 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5264 Py_INCREF(obj);
5265 return Py_BuildValue((char *)"");
5266 }
5267 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5268 PyObject *resultobj;
5269 wxRegion *arg1 = 0 ;
5270 wxRegionIterator *result;
5271 PyObject * obj0 = 0 ;
5272 char *kwnames[] = {
5273 (char *) "region", NULL
5274 };
5275
5276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5277 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5278 if (arg1 == NULL) {
5279 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5289 return resultobj;
5290 fail:
5291 return NULL;
5292 }
5293
5294
5295 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5296 PyObject *resultobj;
5297 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5298 PyObject * obj0 = 0 ;
5299 char *kwnames[] = {
5300 (char *) "self", NULL
5301 };
5302
5303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5305 {
5306 PyThreadState* __tstate = wxPyBeginAllowThreads();
5307 delete arg1;
5308
5309 wxPyEndAllowThreads(__tstate);
5310 if (PyErr_Occurred()) SWIG_fail;
5311 }
5312 Py_INCREF(Py_None); resultobj = Py_None;
5313 return resultobj;
5314 fail:
5315 return NULL;
5316 }
5317
5318
5319 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5320 PyObject *resultobj;
5321 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5322 int result;
5323 PyObject * obj0 = 0 ;
5324 char *kwnames[] = {
5325 (char *) "self", NULL
5326 };
5327
5328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5329 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5330 {
5331 PyThreadState* __tstate = wxPyBeginAllowThreads();
5332 result = (int)(arg1)->GetX();
5333
5334 wxPyEndAllowThreads(__tstate);
5335 if (PyErr_Occurred()) SWIG_fail;
5336 }
5337 resultobj = SWIG_PyObj_FromInt((int)result);
5338 return resultobj;
5339 fail:
5340 return NULL;
5341 }
5342
5343
5344 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj;
5346 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5347 int result;
5348 PyObject * obj0 = 0 ;
5349 char *kwnames[] = {
5350 (char *) "self", NULL
5351 };
5352
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5355 {
5356 PyThreadState* __tstate = wxPyBeginAllowThreads();
5357 result = (int)(arg1)->GetY();
5358
5359 wxPyEndAllowThreads(__tstate);
5360 if (PyErr_Occurred()) SWIG_fail;
5361 }
5362 resultobj = SWIG_PyObj_FromInt((int)result);
5363 return resultobj;
5364 fail:
5365 return NULL;
5366 }
5367
5368
5369 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5370 PyObject *resultobj;
5371 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5372 int result;
5373 PyObject * obj0 = 0 ;
5374 char *kwnames[] = {
5375 (char *) "self", NULL
5376 };
5377
5378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5380 {
5381 PyThreadState* __tstate = wxPyBeginAllowThreads();
5382 result = (int)(arg1)->GetW();
5383
5384 wxPyEndAllowThreads(__tstate);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 }
5387 resultobj = SWIG_PyObj_FromInt((int)result);
5388 return resultobj;
5389 fail:
5390 return NULL;
5391 }
5392
5393
5394 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5395 PyObject *resultobj;
5396 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5397 int result;
5398 PyObject * obj0 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5405 {
5406 PyThreadState* __tstate = wxPyBeginAllowThreads();
5407 result = (int)(arg1)->GetWidth();
5408
5409 wxPyEndAllowThreads(__tstate);
5410 if (PyErr_Occurred()) SWIG_fail;
5411 }
5412 resultobj = SWIG_PyObj_FromInt((int)result);
5413 return resultobj;
5414 fail:
5415 return NULL;
5416 }
5417
5418
5419 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5420 PyObject *resultobj;
5421 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5422 int result;
5423 PyObject * obj0 = 0 ;
5424 char *kwnames[] = {
5425 (char *) "self", NULL
5426 };
5427
5428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5430 {
5431 PyThreadState* __tstate = wxPyBeginAllowThreads();
5432 result = (int)(arg1)->GetH();
5433
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 resultobj = SWIG_PyObj_FromInt((int)result);
5438 return resultobj;
5439 fail:
5440 return NULL;
5441 }
5442
5443
5444 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5445 PyObject *resultobj;
5446 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5447 int result;
5448 PyObject * obj0 = 0 ;
5449 char *kwnames[] = {
5450 (char *) "self", NULL
5451 };
5452
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5455 {
5456 PyThreadState* __tstate = wxPyBeginAllowThreads();
5457 result = (int)(arg1)->GetHeight();
5458
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 resultobj = SWIG_PyObj_FromInt((int)result);
5463 return resultobj;
5464 fail:
5465 return NULL;
5466 }
5467
5468
5469 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5470 PyObject *resultobj;
5471 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5472 wxRect result;
5473 PyObject * obj0 = 0 ;
5474 char *kwnames[] = {
5475 (char *) "self", NULL
5476 };
5477
5478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5480 {
5481 PyThreadState* __tstate = wxPyBeginAllowThreads();
5482 result = (arg1)->GetRect();
5483
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 {
5488 wxRect * resultptr;
5489 resultptr = new wxRect((wxRect &) result);
5490 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5491 }
5492 return resultobj;
5493 fail:
5494 return NULL;
5495 }
5496
5497
5498 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5499 PyObject *resultobj;
5500 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5501 bool result;
5502 PyObject * obj0 = 0 ;
5503 char *kwnames[] = {
5504 (char *) "self", NULL
5505 };
5506
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5508 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5509 {
5510 PyThreadState* __tstate = wxPyBeginAllowThreads();
5511 result = (bool)(arg1)->HaveRects();
5512
5513 wxPyEndAllowThreads(__tstate);
5514 if (PyErr_Occurred()) SWIG_fail;
5515 }
5516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5517 return resultobj;
5518 fail:
5519 return NULL;
5520 }
5521
5522
5523 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5524 PyObject *resultobj;
5525 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5526 PyObject * obj0 = 0 ;
5527 char *kwnames[] = {
5528 (char *) "self", NULL
5529 };
5530
5531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5532 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5533 {
5534 PyThreadState* __tstate = wxPyBeginAllowThreads();
5535 (arg1)->Reset();
5536
5537 wxPyEndAllowThreads(__tstate);
5538 if (PyErr_Occurred()) SWIG_fail;
5539 }
5540 Py_INCREF(Py_None); resultobj = Py_None;
5541 return resultobj;
5542 fail:
5543 return NULL;
5544 }
5545
5546
5547 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject *resultobj;
5549 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5550 PyObject * obj0 = 0 ;
5551 char *kwnames[] = {
5552 (char *) "self", NULL
5553 };
5554
5555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5556 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5557 {
5558 PyThreadState* __tstate = wxPyBeginAllowThreads();
5559 wxRegionIterator_Next(arg1);
5560
5561 wxPyEndAllowThreads(__tstate);
5562 if (PyErr_Occurred()) SWIG_fail;
5563 }
5564 Py_INCREF(Py_None); resultobj = Py_None;
5565 return resultobj;
5566 fail:
5567 return NULL;
5568 }
5569
5570
5571 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5572 PyObject *resultobj;
5573 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5574 bool result;
5575 PyObject * obj0 = 0 ;
5576 char *kwnames[] = {
5577 (char *) "self", NULL
5578 };
5579
5580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5581 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5582 {
5583 PyThreadState* __tstate = wxPyBeginAllowThreads();
5584 result = (bool)wxRegionIterator___nonzero__(arg1);
5585
5586 wxPyEndAllowThreads(__tstate);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 }
5589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5590 return resultobj;
5591 fail:
5592 return NULL;
5593 }
5594
5595
5596 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5597 PyObject *obj;
5598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5599 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5600 Py_INCREF(obj);
5601 return Py_BuildValue((char *)"");
5602 }
5603 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5604 PyObject *resultobj;
5605 wxNativeFontInfo *result;
5606 char *kwnames[] = {
5607 NULL
5608 };
5609
5610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5611 {
5612 PyThreadState* __tstate = wxPyBeginAllowThreads();
5613 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5614
5615 wxPyEndAllowThreads(__tstate);
5616 if (PyErr_Occurred()) SWIG_fail;
5617 }
5618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5619 return resultobj;
5620 fail:
5621 return NULL;
5622 }
5623
5624
5625 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5626 PyObject *resultobj;
5627 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5628 PyObject * obj0 = 0 ;
5629 char *kwnames[] = {
5630 (char *) "self", NULL
5631 };
5632
5633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 delete arg1;
5638
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 Py_INCREF(Py_None); resultobj = Py_None;
5643 return resultobj;
5644 fail:
5645 return NULL;
5646 }
5647
5648
5649 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5650 PyObject *resultobj;
5651 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5652 PyObject * obj0 = 0 ;
5653 char *kwnames[] = {
5654 (char *) "self", NULL
5655 };
5656
5657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5659 {
5660 PyThreadState* __tstate = wxPyBeginAllowThreads();
5661 (arg1)->Init();
5662
5663 wxPyEndAllowThreads(__tstate);
5664 if (PyErr_Occurred()) SWIG_fail;
5665 }
5666 Py_INCREF(Py_None); resultobj = Py_None;
5667 return resultobj;
5668 fail:
5669 return NULL;
5670 }
5671
5672
5673 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5674 PyObject *resultobj;
5675 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5676 wxFont *arg2 = 0 ;
5677 PyObject * obj0 = 0 ;
5678 PyObject * obj1 = 0 ;
5679 char *kwnames[] = {
5680 (char *) "self",(char *) "font", NULL
5681 };
5682
5683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5684 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5685 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5686 if (arg2 == NULL) {
5687 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5688 }
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 (arg1)->InitFromFont((wxFont const &)*arg2);
5692
5693 wxPyEndAllowThreads(__tstate);
5694 if (PyErr_Occurred()) SWIG_fail;
5695 }
5696 Py_INCREF(Py_None); resultobj = Py_None;
5697 return resultobj;
5698 fail:
5699 return NULL;
5700 }
5701
5702
5703 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5704 PyObject *resultobj;
5705 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5706 int result;
5707 PyObject * obj0 = 0 ;
5708 char *kwnames[] = {
5709 (char *) "self", NULL
5710 };
5711
5712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5714 {
5715 PyThreadState* __tstate = wxPyBeginAllowThreads();
5716 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5717
5718 wxPyEndAllowThreads(__tstate);
5719 if (PyErr_Occurred()) SWIG_fail;
5720 }
5721 resultobj = SWIG_PyObj_FromInt((int)result);
5722 return resultobj;
5723 fail:
5724 return NULL;
5725 }
5726
5727
5728 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5729 PyObject *resultobj;
5730 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5731 int result;
5732 PyObject * obj0 = 0 ;
5733 char *kwnames[] = {
5734 (char *) "self", NULL
5735 };
5736
5737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5739 {
5740 PyThreadState* __tstate = wxPyBeginAllowThreads();
5741 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5742
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 resultobj = SWIG_PyObj_FromInt((int)result);
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5754 PyObject *resultobj;
5755 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5756 int result;
5757 PyObject * obj0 = 0 ;
5758 char *kwnames[] = {
5759 (char *) "self", NULL
5760 };
5761
5762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5767
5768 wxPyEndAllowThreads(__tstate);
5769 if (PyErr_Occurred()) SWIG_fail;
5770 }
5771 resultobj = SWIG_PyObj_FromInt((int)result);
5772 return resultobj;
5773 fail:
5774 return NULL;
5775 }
5776
5777
5778 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5779 PyObject *resultobj;
5780 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5781 bool result;
5782 PyObject * obj0 = 0 ;
5783 char *kwnames[] = {
5784 (char *) "self", NULL
5785 };
5786
5787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5792
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5797 return resultobj;
5798 fail:
5799 return NULL;
5800 }
5801
5802
5803 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5804 PyObject *resultobj;
5805 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5806 wxString result;
5807 PyObject * obj0 = 0 ;
5808 char *kwnames[] = {
5809 (char *) "self", NULL
5810 };
5811
5812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5814 {
5815 PyThreadState* __tstate = wxPyBeginAllowThreads();
5816 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5817
5818 wxPyEndAllowThreads(__tstate);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 {
5822 #if wxUSE_UNICODE
5823 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5824 #else
5825 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5826 #endif
5827 }
5828 return resultobj;
5829 fail:
5830 return NULL;
5831 }
5832
5833
5834 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5835 PyObject *resultobj;
5836 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5837 int result;
5838 PyObject * obj0 = 0 ;
5839 char *kwnames[] = {
5840 (char *) "self", NULL
5841 };
5842
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5845 {
5846 PyThreadState* __tstate = wxPyBeginAllowThreads();
5847 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5848
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 resultobj = SWIG_PyObj_FromInt((int)result);
5853 return resultobj;
5854 fail:
5855 return NULL;
5856 }
5857
5858
5859 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5860 PyObject *resultobj;
5861 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5862 int result;
5863 PyObject * obj0 = 0 ;
5864 char *kwnames[] = {
5865 (char *) "self", NULL
5866 };
5867
5868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5873
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 resultobj = SWIG_PyObj_FromInt((int)result);
5878 return resultobj;
5879 fail:
5880 return NULL;
5881 }
5882
5883
5884 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5885 PyObject *resultobj;
5886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5887 int arg2 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890 char *kwnames[] = {
5891 (char *) "self",(char *) "pointsize", NULL
5892 };
5893
5894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
5895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5896 {
5897 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 (arg1)->SetPointSize(arg2);
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 Py_INCREF(Py_None); resultobj = Py_None;
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5917 int arg2 ;
5918 PyObject * obj0 = 0 ;
5919 PyObject * obj1 = 0 ;
5920 char *kwnames[] = {
5921 (char *) "self",(char *) "style", NULL
5922 };
5923
5924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
5925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5926 {
5927 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 (arg1)->SetStyle((wxFontStyle )arg2);
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 Py_INCREF(Py_None); resultobj = Py_None;
5938 return resultobj;
5939 fail:
5940 return NULL;
5941 }
5942
5943
5944 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj;
5946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5947 int arg2 ;
5948 PyObject * obj0 = 0 ;
5949 PyObject * obj1 = 0 ;
5950 char *kwnames[] = {
5951 (char *) "self",(char *) "weight", NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
5955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5956 {
5957 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 {
5961 PyThreadState* __tstate = wxPyBeginAllowThreads();
5962 (arg1)->SetWeight((wxFontWeight )arg2);
5963
5964 wxPyEndAllowThreads(__tstate);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 }
5967 Py_INCREF(Py_None); resultobj = Py_None;
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5975 PyObject *resultobj;
5976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5977 bool arg2 ;
5978 PyObject * obj0 = 0 ;
5979 PyObject * obj1 = 0 ;
5980 char *kwnames[] = {
5981 (char *) "self",(char *) "underlined", NULL
5982 };
5983
5984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5985 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5986 {
5987 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 {
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 (arg1)->SetUnderlined(arg2);
5993
5994 wxPyEndAllowThreads(__tstate);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 }
5997 Py_INCREF(Py_None); resultobj = Py_None;
5998 return resultobj;
5999 fail:
6000 return NULL;
6001 }
6002
6003
6004 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6005 PyObject *resultobj;
6006 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6007 wxString arg2 ;
6008 PyObject * obj0 = 0 ;
6009 PyObject * obj1 = 0 ;
6010 char *kwnames[] = {
6011 (char *) "self",(char *) "facename", NULL
6012 };
6013
6014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6016 {
6017 wxString* sptr = wxString_in_helper(obj1);
6018 if (sptr == NULL) SWIG_fail;
6019 arg2 = *sptr;
6020 delete sptr;
6021 }
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 (arg1)->SetFaceName(arg2);
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 Py_INCREF(Py_None); resultobj = Py_None;
6030 return resultobj;
6031 fail:
6032 return NULL;
6033 }
6034
6035
6036 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6037 PyObject *resultobj;
6038 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6039 int arg2 ;
6040 PyObject * obj0 = 0 ;
6041 PyObject * obj1 = 0 ;
6042 char *kwnames[] = {
6043 (char *) "self",(char *) "family", NULL
6044 };
6045
6046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6048 {
6049 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->SetFamily((wxFontFamily )arg2);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 Py_INCREF(Py_None); resultobj = Py_None;
6060 return resultobj;
6061 fail:
6062 return NULL;
6063 }
6064
6065
6066 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6067 PyObject *resultobj;
6068 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6069 int arg2 ;
6070 PyObject * obj0 = 0 ;
6071 PyObject * obj1 = 0 ;
6072 char *kwnames[] = {
6073 (char *) "self",(char *) "encoding", NULL
6074 };
6075
6076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6078 {
6079 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6080 if (PyErr_Occurred()) SWIG_fail;
6081 }
6082 {
6083 PyThreadState* __tstate = wxPyBeginAllowThreads();
6084 (arg1)->SetEncoding((wxFontEncoding )arg2);
6085
6086 wxPyEndAllowThreads(__tstate);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 }
6089 Py_INCREF(Py_None); resultobj = Py_None;
6090 return resultobj;
6091 fail:
6092 return NULL;
6093 }
6094
6095
6096 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6097 PyObject *resultobj;
6098 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6099 wxString *arg2 = 0 ;
6100 bool result;
6101 bool temp2 = False ;
6102 PyObject * obj0 = 0 ;
6103 PyObject * obj1 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "self",(char *) "s", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6110 {
6111 arg2 = wxString_in_helper(obj1);
6112 if (arg2 == NULL) SWIG_fail;
6113 temp2 = True;
6114 }
6115 {
6116 PyThreadState* __tstate = wxPyBeginAllowThreads();
6117 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6118
6119 wxPyEndAllowThreads(__tstate);
6120 if (PyErr_Occurred()) SWIG_fail;
6121 }
6122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6123 {
6124 if (temp2)
6125 delete arg2;
6126 }
6127 return resultobj;
6128 fail:
6129 {
6130 if (temp2)
6131 delete arg2;
6132 }
6133 return NULL;
6134 }
6135
6136
6137 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj;
6139 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6140 wxString result;
6141 PyObject * obj0 = 0 ;
6142 char *kwnames[] = {
6143 (char *) "self", NULL
6144 };
6145
6146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6148 {
6149 PyThreadState* __tstate = wxPyBeginAllowThreads();
6150 result = ((wxNativeFontInfo const *)arg1)->ToString();
6151
6152 wxPyEndAllowThreads(__tstate);
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 {
6156 #if wxUSE_UNICODE
6157 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6158 #else
6159 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6160 #endif
6161 }
6162 return resultobj;
6163 fail:
6164 return NULL;
6165 }
6166
6167
6168 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6169 PyObject *resultobj;
6170 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6171 wxString result;
6172 PyObject * obj0 = 0 ;
6173 char *kwnames[] = {
6174 (char *) "self", NULL
6175 };
6176
6177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6178 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6179 {
6180 PyThreadState* __tstate = wxPyBeginAllowThreads();
6181 result = wxNativeFontInfo___str__(arg1);
6182
6183 wxPyEndAllowThreads(__tstate);
6184 if (PyErr_Occurred()) SWIG_fail;
6185 }
6186 {
6187 #if wxUSE_UNICODE
6188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6189 #else
6190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6191 #endif
6192 }
6193 return resultobj;
6194 fail:
6195 return NULL;
6196 }
6197
6198
6199 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6200 PyObject *resultobj;
6201 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6202 wxString *arg2 = 0 ;
6203 bool result;
6204 bool temp2 = False ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 char *kwnames[] = {
6208 (char *) "self",(char *) "s", NULL
6209 };
6210
6211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6213 {
6214 arg2 = wxString_in_helper(obj1);
6215 if (arg2 == NULL) SWIG_fail;
6216 temp2 = True;
6217 }
6218 {
6219 PyThreadState* __tstate = wxPyBeginAllowThreads();
6220 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6221
6222 wxPyEndAllowThreads(__tstate);
6223 if (PyErr_Occurred()) SWIG_fail;
6224 }
6225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6226 {
6227 if (temp2)
6228 delete arg2;
6229 }
6230 return resultobj;
6231 fail:
6232 {
6233 if (temp2)
6234 delete arg2;
6235 }
6236 return NULL;
6237 }
6238
6239
6240 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj;
6242 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6243 wxString result;
6244 PyObject * obj0 = 0 ;
6245 char *kwnames[] = {
6246 (char *) "self", NULL
6247 };
6248
6249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 {
6259 #if wxUSE_UNICODE
6260 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6261 #else
6262 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6263 #endif
6264 }
6265 return resultobj;
6266 fail:
6267 return NULL;
6268 }
6269
6270
6271 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6272 PyObject *obj;
6273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6274 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6275 Py_INCREF(obj);
6276 return Py_BuildValue((char *)"");
6277 }
6278 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6279 PyObject *resultobj;
6280 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6281 wxString *arg2 = (wxString *) 0 ;
6282 bool temp2 = False ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 char *kwnames[] = {
6286 (char *) "self",(char *) "facename", NULL
6287 };
6288
6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6291 {
6292 arg2 = wxString_in_helper(obj1);
6293 if (arg2 == NULL) SWIG_fail;
6294 temp2 = True;
6295 }
6296 if (arg1) (arg1)->facename = *arg2;
6297
6298 Py_INCREF(Py_None); resultobj = Py_None;
6299 {
6300 if (temp2)
6301 delete arg2;
6302 }
6303 return resultobj;
6304 fail:
6305 {
6306 if (temp2)
6307 delete arg2;
6308 }
6309 return NULL;
6310 }
6311
6312
6313 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6314 PyObject *resultobj;
6315 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6316 wxString *result;
6317 PyObject * obj0 = 0 ;
6318 char *kwnames[] = {
6319 (char *) "self", NULL
6320 };
6321
6322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6324 result = (wxString *)& ((arg1)->facename);
6325
6326 {
6327 #if wxUSE_UNICODE
6328 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6329 #else
6330 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6331 #endif
6332 }
6333 return resultobj;
6334 fail:
6335 return NULL;
6336 }
6337
6338
6339 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6340 PyObject *resultobj;
6341 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6342 int arg2 ;
6343 PyObject * obj0 = 0 ;
6344 PyObject * obj1 = 0 ;
6345 char *kwnames[] = {
6346 (char *) "self",(char *) "encoding", NULL
6347 };
6348
6349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6351 {
6352 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6353 if (PyErr_Occurred()) SWIG_fail;
6354 }
6355 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6356
6357 Py_INCREF(Py_None); resultobj = Py_None;
6358 return resultobj;
6359 fail:
6360 return NULL;
6361 }
6362
6363
6364 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6365 PyObject *resultobj;
6366 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6367 int result;
6368 PyObject * obj0 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6375 result = (int) ((arg1)->encoding);
6376
6377 resultobj = SWIG_PyObj_FromInt((int)result);
6378 return resultobj;
6379 fail:
6380 return NULL;
6381 }
6382
6383
6384 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6385 PyObject *resultobj;
6386 wxNativeEncodingInfo *result;
6387 char *kwnames[] = {
6388 NULL
6389 };
6390
6391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6392 {
6393 PyThreadState* __tstate = wxPyBeginAllowThreads();
6394 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6395
6396 wxPyEndAllowThreads(__tstate);
6397 if (PyErr_Occurred()) SWIG_fail;
6398 }
6399 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6400 return resultobj;
6401 fail:
6402 return NULL;
6403 }
6404
6405
6406 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6407 PyObject *resultobj;
6408 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6409 PyObject * obj0 = 0 ;
6410 char *kwnames[] = {
6411 (char *) "self", NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6416 {
6417 PyThreadState* __tstate = wxPyBeginAllowThreads();
6418 delete arg1;
6419
6420 wxPyEndAllowThreads(__tstate);
6421 if (PyErr_Occurred()) SWIG_fail;
6422 }
6423 Py_INCREF(Py_None); resultobj = Py_None;
6424 return resultobj;
6425 fail:
6426 return NULL;
6427 }
6428
6429
6430 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6431 PyObject *resultobj;
6432 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6433 wxString *arg2 = 0 ;
6434 bool result;
6435 bool temp2 = False ;
6436 PyObject * obj0 = 0 ;
6437 PyObject * obj1 = 0 ;
6438 char *kwnames[] = {
6439 (char *) "self",(char *) "s", NULL
6440 };
6441
6442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6443 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6444 {
6445 arg2 = wxString_in_helper(obj1);
6446 if (arg2 == NULL) SWIG_fail;
6447 temp2 = True;
6448 }
6449 {
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6457 {
6458 if (temp2)
6459 delete arg2;
6460 }
6461 return resultobj;
6462 fail:
6463 {
6464 if (temp2)
6465 delete arg2;
6466 }
6467 return NULL;
6468 }
6469
6470
6471 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6472 PyObject *resultobj;
6473 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6474 wxString result;
6475 PyObject * obj0 = 0 ;
6476 char *kwnames[] = {
6477 (char *) "self", NULL
6478 };
6479
6480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6481 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 {
6490 #if wxUSE_UNICODE
6491 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6492 #else
6493 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6494 #endif
6495 }
6496 return resultobj;
6497 fail:
6498 return NULL;
6499 }
6500
6501
6502 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6503 PyObject *obj;
6504 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6505 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6506 Py_INCREF(obj);
6507 return Py_BuildValue((char *)"");
6508 }
6509 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6510 PyObject *resultobj;
6511 int arg1 ;
6512 wxNativeEncodingInfo *result;
6513 PyObject * obj0 = 0 ;
6514 char *kwnames[] = {
6515 (char *) "encoding", NULL
6516 };
6517
6518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6519 {
6520 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 {
6524 PyThreadState* __tstate = wxPyBeginAllowThreads();
6525 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6526
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6531 return resultobj;
6532 fail:
6533 return NULL;
6534 }
6535
6536
6537 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj;
6539 wxNativeEncodingInfo *arg1 = 0 ;
6540 bool result;
6541 PyObject * obj0 = 0 ;
6542 char *kwnames[] = {
6543 (char *) "info", NULL
6544 };
6545
6546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6548 if (arg1 == NULL) {
6549 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6550 }
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6559 return resultobj;
6560 fail:
6561 return NULL;
6562 }
6563
6564
6565 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6566 PyObject *resultobj;
6567 wxFontMapper *result;
6568 char *kwnames[] = {
6569 NULL
6570 };
6571
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6573 {
6574 PyThreadState* __tstate = wxPyBeginAllowThreads();
6575 result = (wxFontMapper *)new wxFontMapper();
6576
6577 wxPyEndAllowThreads(__tstate);
6578 if (PyErr_Occurred()) SWIG_fail;
6579 }
6580 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6581 return resultobj;
6582 fail:
6583 return NULL;
6584 }
6585
6586
6587 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6588 PyObject *resultobj;
6589 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6590 PyObject * obj0 = 0 ;
6591 char *kwnames[] = {
6592 (char *) "self", NULL
6593 };
6594
6595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6597 {
6598 PyThreadState* __tstate = wxPyBeginAllowThreads();
6599 delete arg1;
6600
6601 wxPyEndAllowThreads(__tstate);
6602 if (PyErr_Occurred()) SWIG_fail;
6603 }
6604 Py_INCREF(Py_None); resultobj = Py_None;
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 wxFontMapper *result;
6614 char *kwnames[] = {
6615 NULL
6616 };
6617
6618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6619 {
6620 PyThreadState* __tstate = wxPyBeginAllowThreads();
6621 result = (wxFontMapper *)wxFontMapper::Get();
6622
6623 wxPyEndAllowThreads(__tstate);
6624 if (PyErr_Occurred()) SWIG_fail;
6625 }
6626 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6627 return resultobj;
6628 fail:
6629 return NULL;
6630 }
6631
6632
6633 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6634 PyObject *resultobj;
6635 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6636 wxFontMapper *result;
6637 PyObject * obj0 = 0 ;
6638 char *kwnames[] = {
6639 (char *) "mapper", NULL
6640 };
6641
6642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6644 {
6645 PyThreadState* __tstate = wxPyBeginAllowThreads();
6646 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6647
6648 wxPyEndAllowThreads(__tstate);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6652 return resultobj;
6653 fail:
6654 return NULL;
6655 }
6656
6657
6658 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject *resultobj;
6660 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6661 wxString *arg2 = 0 ;
6662 bool arg3 = (bool) True ;
6663 int result;
6664 bool temp2 = False ;
6665 PyObject * obj0 = 0 ;
6666 PyObject * obj1 = 0 ;
6667 PyObject * obj2 = 0 ;
6668 char *kwnames[] = {
6669 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6670 };
6671
6672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6674 {
6675 arg2 = wxString_in_helper(obj1);
6676 if (arg2 == NULL) SWIG_fail;
6677 temp2 = True;
6678 }
6679 if (obj2) {
6680 {
6681 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 }
6685 {
6686 PyThreadState* __tstate = wxPyBeginAllowThreads();
6687 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6688
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 resultobj = SWIG_PyObj_FromInt((int)result);
6693 {
6694 if (temp2)
6695 delete arg2;
6696 }
6697 return resultobj;
6698 fail:
6699 {
6700 if (temp2)
6701 delete arg2;
6702 }
6703 return NULL;
6704 }
6705
6706
6707 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj;
6709 size_t result;
6710 char *kwnames[] = {
6711 NULL
6712 };
6713
6714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6715 {
6716 PyThreadState* __tstate = wxPyBeginAllowThreads();
6717 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6718
6719 wxPyEndAllowThreads(__tstate);
6720 if (PyErr_Occurred()) SWIG_fail;
6721 }
6722 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
6723 return resultobj;
6724 fail:
6725 return NULL;
6726 }
6727
6728
6729 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6730 PyObject *resultobj;
6731 size_t arg1 ;
6732 int result;
6733 PyObject * obj0 = 0 ;
6734 char *kwnames[] = {
6735 (char *) "n", NULL
6736 };
6737
6738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6739 {
6740 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 {
6744 PyThreadState* __tstate = wxPyBeginAllowThreads();
6745 result = (int)wxFontMapper::GetEncoding(arg1);
6746
6747 wxPyEndAllowThreads(__tstate);
6748 if (PyErr_Occurred()) SWIG_fail;
6749 }
6750 resultobj = SWIG_PyObj_FromInt((int)result);
6751 return resultobj;
6752 fail:
6753 return NULL;
6754 }
6755
6756
6757 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6758 PyObject *resultobj;
6759 int arg1 ;
6760 wxString result;
6761 PyObject * obj0 = 0 ;
6762 char *kwnames[] = {
6763 (char *) "encoding", NULL
6764 };
6765
6766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
6767 {
6768 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6769 if (PyErr_Occurred()) SWIG_fail;
6770 }
6771 {
6772 PyThreadState* __tstate = wxPyBeginAllowThreads();
6773 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6774
6775 wxPyEndAllowThreads(__tstate);
6776 if (PyErr_Occurred()) SWIG_fail;
6777 }
6778 {
6779 #if wxUSE_UNICODE
6780 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6781 #else
6782 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6783 #endif
6784 }
6785 return resultobj;
6786 fail:
6787 return NULL;
6788 }
6789
6790
6791 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6792 PyObject *resultobj;
6793 int arg1 ;
6794 wxString result;
6795 PyObject * obj0 = 0 ;
6796 char *kwnames[] = {
6797 (char *) "encoding", NULL
6798 };
6799
6800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
6801 {
6802 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6803 if (PyErr_Occurred()) SWIG_fail;
6804 }
6805 {
6806 PyThreadState* __tstate = wxPyBeginAllowThreads();
6807 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6808
6809 wxPyEndAllowThreads(__tstate);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 }
6812 {
6813 #if wxUSE_UNICODE
6814 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6815 #else
6816 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6817 #endif
6818 }
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6828 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6829 PyObject * obj0 = 0 ;
6830 PyObject * obj1 = 0 ;
6831 char *kwnames[] = {
6832 (char *) "self",(char *) "config", NULL
6833 };
6834
6835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6837 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 (arg1)->SetConfig(arg2);
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 Py_INCREF(Py_None); resultobj = Py_None;
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6855 wxString *arg2 = 0 ;
6856 bool temp2 = False ;
6857 PyObject * obj0 = 0 ;
6858 PyObject * obj1 = 0 ;
6859 char *kwnames[] = {
6860 (char *) "self",(char *) "prefix", NULL
6861 };
6862
6863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6865 {
6866 arg2 = wxString_in_helper(obj1);
6867 if (arg2 == NULL) SWIG_fail;
6868 temp2 = True;
6869 }
6870 {
6871 PyThreadState* __tstate = wxPyBeginAllowThreads();
6872 (arg1)->SetConfigPath((wxString const &)*arg2);
6873
6874 wxPyEndAllowThreads(__tstate);
6875 if (PyErr_Occurred()) SWIG_fail;
6876 }
6877 Py_INCREF(Py_None); resultobj = Py_None;
6878 {
6879 if (temp2)
6880 delete arg2;
6881 }
6882 return resultobj;
6883 fail:
6884 {
6885 if (temp2)
6886 delete arg2;
6887 }
6888 return NULL;
6889 }
6890
6891
6892 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj;
6894 wxString result;
6895 char *kwnames[] = {
6896 NULL
6897 };
6898
6899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6900 {
6901 PyThreadState* __tstate = wxPyBeginAllowThreads();
6902 result = wxFontMapper::GetDefaultConfigPath();
6903
6904 wxPyEndAllowThreads(__tstate);
6905 if (PyErr_Occurred()) SWIG_fail;
6906 }
6907 {
6908 #if wxUSE_UNICODE
6909 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6910 #else
6911 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6912 #endif
6913 }
6914 return resultobj;
6915 fail:
6916 return NULL;
6917 }
6918
6919
6920 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6921 PyObject *resultobj;
6922 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6923 int arg2 ;
6924 wxString const &arg3_defvalue = wxPyEmptyString ;
6925 wxString *arg3 = (wxString *) &arg3_defvalue ;
6926 bool arg4 = (bool) True ;
6927 PyObject *result;
6928 bool temp3 = False ;
6929 PyObject * obj0 = 0 ;
6930 PyObject * obj1 = 0 ;
6931 PyObject * obj2 = 0 ;
6932 PyObject * obj3 = 0 ;
6933 char *kwnames[] = {
6934 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6935 };
6936
6937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6938 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6939 {
6940 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6941 if (PyErr_Occurred()) SWIG_fail;
6942 }
6943 if (obj2) {
6944 {
6945 arg3 = wxString_in_helper(obj2);
6946 if (arg3 == NULL) SWIG_fail;
6947 temp3 = True;
6948 }
6949 }
6950 if (obj3) {
6951 {
6952 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 }
6956 {
6957 PyThreadState* __tstate = wxPyBeginAllowThreads();
6958 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6959
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 resultobj = result;
6964 {
6965 if (temp3)
6966 delete arg3;
6967 }
6968 return resultobj;
6969 fail:
6970 {
6971 if (temp3)
6972 delete arg3;
6973 }
6974 return NULL;
6975 }
6976
6977
6978 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6979 PyObject *resultobj;
6980 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6981 int arg2 ;
6982 wxString const &arg3_defvalue = wxPyEmptyString ;
6983 wxString *arg3 = (wxString *) &arg3_defvalue ;
6984 bool result;
6985 bool temp3 = False ;
6986 PyObject * obj0 = 0 ;
6987 PyObject * obj1 = 0 ;
6988 PyObject * obj2 = 0 ;
6989 char *kwnames[] = {
6990 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6991 };
6992
6993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
6994 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6995 {
6996 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6997 if (PyErr_Occurred()) SWIG_fail;
6998 }
6999 if (obj2) {
7000 {
7001 arg3 = wxString_in_helper(obj2);
7002 if (arg3 == NULL) SWIG_fail;
7003 temp3 = True;
7004 }
7005 }
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7009
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7014 {
7015 if (temp3)
7016 delete arg3;
7017 }
7018 return resultobj;
7019 fail:
7020 {
7021 if (temp3)
7022 delete arg3;
7023 }
7024 return NULL;
7025 }
7026
7027
7028 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7029 PyObject *resultobj;
7030 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7031 wxWindow *arg2 = (wxWindow *) 0 ;
7032 PyObject * obj0 = 0 ;
7033 PyObject * obj1 = 0 ;
7034 char *kwnames[] = {
7035 (char *) "self",(char *) "parent", NULL
7036 };
7037
7038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7040 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7041 {
7042 PyThreadState* __tstate = wxPyBeginAllowThreads();
7043 (arg1)->SetDialogParent(arg2);
7044
7045 wxPyEndAllowThreads(__tstate);
7046 if (PyErr_Occurred()) SWIG_fail;
7047 }
7048 Py_INCREF(Py_None); resultobj = Py_None;
7049 return resultobj;
7050 fail:
7051 return NULL;
7052 }
7053
7054
7055 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7056 PyObject *resultobj;
7057 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7058 wxString *arg2 = 0 ;
7059 bool temp2 = False ;
7060 PyObject * obj0 = 0 ;
7061 PyObject * obj1 = 0 ;
7062 char *kwnames[] = {
7063 (char *) "self",(char *) "title", NULL
7064 };
7065
7066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7068 {
7069 arg2 = wxString_in_helper(obj1);
7070 if (arg2 == NULL) SWIG_fail;
7071 temp2 = True;
7072 }
7073 {
7074 PyThreadState* __tstate = wxPyBeginAllowThreads();
7075 (arg1)->SetDialogTitle((wxString const &)*arg2);
7076
7077 wxPyEndAllowThreads(__tstate);
7078 if (PyErr_Occurred()) SWIG_fail;
7079 }
7080 Py_INCREF(Py_None); resultobj = Py_None;
7081 {
7082 if (temp2)
7083 delete arg2;
7084 }
7085 return resultobj;
7086 fail:
7087 {
7088 if (temp2)
7089 delete arg2;
7090 }
7091 return NULL;
7092 }
7093
7094
7095 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7096 PyObject *obj;
7097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7098 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7099 Py_INCREF(obj);
7100 return Py_BuildValue((char *)"");
7101 }
7102 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7103 PyObject *resultobj;
7104 int arg1 ;
7105 int arg2 ;
7106 int arg3 ;
7107 int arg4 ;
7108 bool arg5 = (bool) False ;
7109 wxString const &arg6_defvalue = wxPyEmptyString ;
7110 wxString *arg6 = (wxString *) &arg6_defvalue ;
7111 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7112 wxFont *result;
7113 bool temp6 = False ;
7114 PyObject * obj0 = 0 ;
7115 PyObject * obj1 = 0 ;
7116 PyObject * obj2 = 0 ;
7117 PyObject * obj3 = 0 ;
7118 PyObject * obj4 = 0 ;
7119 PyObject * obj5 = 0 ;
7120 PyObject * obj6 = 0 ;
7121 char *kwnames[] = {
7122 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7123 };
7124
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7126 {
7127 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 {
7131 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7132 if (PyErr_Occurred()) SWIG_fail;
7133 }
7134 {
7135 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 {
7139 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7140 if (PyErr_Occurred()) SWIG_fail;
7141 }
7142 if (obj4) {
7143 {
7144 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 }
7148 if (obj5) {
7149 {
7150 arg6 = wxString_in_helper(obj5);
7151 if (arg6 == NULL) SWIG_fail;
7152 temp6 = True;
7153 }
7154 }
7155 if (obj6) {
7156 {
7157 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7158 if (PyErr_Occurred()) SWIG_fail;
7159 }
7160 }
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7164
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7169 {
7170 if (temp6)
7171 delete arg6;
7172 }
7173 return resultobj;
7174 fail:
7175 {
7176 if (temp6)
7177 delete arg6;
7178 }
7179 return NULL;
7180 }
7181
7182
7183 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7184 PyObject *resultobj;
7185 wxFont *arg1 = (wxFont *) 0 ;
7186 PyObject * obj0 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7193 {
7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
7195 delete arg1;
7196
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 Py_INCREF(Py_None); resultobj = Py_None;
7201 return resultobj;
7202 fail:
7203 return NULL;
7204 }
7205
7206
7207 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj;
7209 wxNativeFontInfo *arg1 = 0 ;
7210 wxFont *result;
7211 PyObject * obj0 = 0 ;
7212 char *kwnames[] = {
7213 (char *) "info", NULL
7214 };
7215
7216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7218 if (arg1 == NULL) {
7219 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7220 }
7221 {
7222 PyThreadState* __tstate = wxPyBeginAllowThreads();
7223 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7224
7225 wxPyEndAllowThreads(__tstate);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7229 return resultobj;
7230 fail:
7231 return NULL;
7232 }
7233
7234
7235 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7236 PyObject *resultobj;
7237 wxString *arg1 = 0 ;
7238 wxFont *result;
7239 bool temp1 = False ;
7240 PyObject * obj0 = 0 ;
7241 char *kwnames[] = {
7242 (char *) "info", NULL
7243 };
7244
7245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7246 {
7247 arg1 = wxString_in_helper(obj0);
7248 if (arg1 == NULL) SWIG_fail;
7249 temp1 = True;
7250 }
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7254
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7259 {
7260 if (temp1)
7261 delete arg1;
7262 }
7263 return resultobj;
7264 fail:
7265 {
7266 if (temp1)
7267 delete arg1;
7268 }
7269 return NULL;
7270 }
7271
7272
7273 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7274 PyObject *resultobj;
7275 int arg1 ;
7276 int arg2 ;
7277 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7278 wxString const &arg4_defvalue = wxPyEmptyString ;
7279 wxString *arg4 = (wxString *) &arg4_defvalue ;
7280 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7281 wxFont *result;
7282 bool temp4 = False ;
7283 PyObject * obj0 = 0 ;
7284 PyObject * obj1 = 0 ;
7285 PyObject * obj2 = 0 ;
7286 PyObject * obj3 = 0 ;
7287 PyObject * obj4 = 0 ;
7288 char *kwnames[] = {
7289 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7290 };
7291
7292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7293 {
7294 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7295 if (PyErr_Occurred()) SWIG_fail;
7296 }
7297 {
7298 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7299 if (PyErr_Occurred()) SWIG_fail;
7300 }
7301 if (obj2) {
7302 {
7303 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7304 if (PyErr_Occurred()) SWIG_fail;
7305 }
7306 }
7307 if (obj3) {
7308 {
7309 arg4 = wxString_in_helper(obj3);
7310 if (arg4 == NULL) SWIG_fail;
7311 temp4 = True;
7312 }
7313 }
7314 if (obj4) {
7315 {
7316 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7317 if (PyErr_Occurred()) SWIG_fail;
7318 }
7319 }
7320 {
7321 PyThreadState* __tstate = wxPyBeginAllowThreads();
7322 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7323
7324 wxPyEndAllowThreads(__tstate);
7325 if (PyErr_Occurred()) SWIG_fail;
7326 }
7327 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7328 {
7329 if (temp4)
7330 delete arg4;
7331 }
7332 return resultobj;
7333 fail:
7334 {
7335 if (temp4)
7336 delete arg4;
7337 }
7338 return NULL;
7339 }
7340
7341
7342 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject *resultobj;
7344 wxFont *arg1 = (wxFont *) 0 ;
7345 bool result;
7346 PyObject * obj0 = 0 ;
7347 char *kwnames[] = {
7348 (char *) "self", NULL
7349 };
7350
7351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7353 {
7354 PyThreadState* __tstate = wxPyBeginAllowThreads();
7355 result = (bool)((wxFont const *)arg1)->Ok();
7356
7357 wxPyEndAllowThreads(__tstate);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj;
7369 wxFont *arg1 = (wxFont *) 0 ;
7370 wxFont *arg2 = 0 ;
7371 bool result;
7372 PyObject * obj0 = 0 ;
7373 PyObject * obj1 = 0 ;
7374 char *kwnames[] = {
7375 (char *) "self",(char *) "font", NULL
7376 };
7377
7378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7380 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7381 if (arg2 == NULL) {
7382 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7383 }
7384 {
7385 PyThreadState* __tstate = wxPyBeginAllowThreads();
7386 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7387
7388 wxPyEndAllowThreads(__tstate);
7389 if (PyErr_Occurred()) SWIG_fail;
7390 }
7391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7392 return resultobj;
7393 fail:
7394 return NULL;
7395 }
7396
7397
7398 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7399 PyObject *resultobj;
7400 wxFont *arg1 = (wxFont *) 0 ;
7401 wxFont *arg2 = 0 ;
7402 bool result;
7403 PyObject * obj0 = 0 ;
7404 PyObject * obj1 = 0 ;
7405 char *kwnames[] = {
7406 (char *) "self",(char *) "font", NULL
7407 };
7408
7409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7411 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7412 if (arg2 == NULL) {
7413 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7414 }
7415 {
7416 PyThreadState* __tstate = wxPyBeginAllowThreads();
7417 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7418
7419 wxPyEndAllowThreads(__tstate);
7420 if (PyErr_Occurred()) SWIG_fail;
7421 }
7422 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7423 return resultobj;
7424 fail:
7425 return NULL;
7426 }
7427
7428
7429 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7430 PyObject *resultobj;
7431 wxFont *arg1 = (wxFont *) 0 ;
7432 int result;
7433 PyObject * obj0 = 0 ;
7434 char *kwnames[] = {
7435 (char *) "self", NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7440 {
7441 PyThreadState* __tstate = wxPyBeginAllowThreads();
7442 result = (int)((wxFont const *)arg1)->GetPointSize();
7443
7444 wxPyEndAllowThreads(__tstate);
7445 if (PyErr_Occurred()) SWIG_fail;
7446 }
7447 resultobj = SWIG_PyObj_FromInt((int)result);
7448 return resultobj;
7449 fail:
7450 return NULL;
7451 }
7452
7453
7454 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7455 PyObject *resultobj;
7456 wxFont *arg1 = (wxFont *) 0 ;
7457 int result;
7458 PyObject * obj0 = 0 ;
7459 char *kwnames[] = {
7460 (char *) "self", NULL
7461 };
7462
7463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 result = (int)((wxFont const *)arg1)->GetFamily();
7468
7469 wxPyEndAllowThreads(__tstate);
7470 if (PyErr_Occurred()) SWIG_fail;
7471 }
7472 resultobj = SWIG_PyObj_FromInt((int)result);
7473 return resultobj;
7474 fail:
7475 return NULL;
7476 }
7477
7478
7479 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7480 PyObject *resultobj;
7481 wxFont *arg1 = (wxFont *) 0 ;
7482 int result;
7483 PyObject * obj0 = 0 ;
7484 char *kwnames[] = {
7485 (char *) "self", NULL
7486 };
7487
7488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7490 {
7491 PyThreadState* __tstate = wxPyBeginAllowThreads();
7492 result = (int)((wxFont const *)arg1)->GetStyle();
7493
7494 wxPyEndAllowThreads(__tstate);
7495 if (PyErr_Occurred()) SWIG_fail;
7496 }
7497 resultobj = SWIG_PyObj_FromInt((int)result);
7498 return resultobj;
7499 fail:
7500 return NULL;
7501 }
7502
7503
7504 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7505 PyObject *resultobj;
7506 wxFont *arg1 = (wxFont *) 0 ;
7507 int result;
7508 PyObject * obj0 = 0 ;
7509 char *kwnames[] = {
7510 (char *) "self", NULL
7511 };
7512
7513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7514 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7515 {
7516 PyThreadState* __tstate = wxPyBeginAllowThreads();
7517 result = (int)((wxFont const *)arg1)->GetWeight();
7518
7519 wxPyEndAllowThreads(__tstate);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 resultobj = SWIG_PyObj_FromInt((int)result);
7523 return resultobj;
7524 fail:
7525 return NULL;
7526 }
7527
7528
7529 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7530 PyObject *resultobj;
7531 wxFont *arg1 = (wxFont *) 0 ;
7532 bool result;
7533 PyObject * obj0 = 0 ;
7534 char *kwnames[] = {
7535 (char *) "self", NULL
7536 };
7537
7538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7540 {
7541 PyThreadState* __tstate = wxPyBeginAllowThreads();
7542 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7543
7544 wxPyEndAllowThreads(__tstate);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 }
7547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7555 PyObject *resultobj;
7556 wxFont *arg1 = (wxFont *) 0 ;
7557 wxString result;
7558 PyObject * obj0 = 0 ;
7559 char *kwnames[] = {
7560 (char *) "self", NULL
7561 };
7562
7563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7565 {
7566 PyThreadState* __tstate = wxPyBeginAllowThreads();
7567 result = ((wxFont const *)arg1)->GetFaceName();
7568
7569 wxPyEndAllowThreads(__tstate);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 {
7573 #if wxUSE_UNICODE
7574 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7575 #else
7576 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7577 #endif
7578 }
7579 return resultobj;
7580 fail:
7581 return NULL;
7582 }
7583
7584
7585 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7586 PyObject *resultobj;
7587 wxFont *arg1 = (wxFont *) 0 ;
7588 int result;
7589 PyObject * obj0 = 0 ;
7590 char *kwnames[] = {
7591 (char *) "self", NULL
7592 };
7593
7594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7595 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7596 {
7597 PyThreadState* __tstate = wxPyBeginAllowThreads();
7598 result = (int)((wxFont const *)arg1)->GetEncoding();
7599
7600 wxPyEndAllowThreads(__tstate);
7601 if (PyErr_Occurred()) SWIG_fail;
7602 }
7603 resultobj = SWIG_PyObj_FromInt((int)result);
7604 return resultobj;
7605 fail:
7606 return NULL;
7607 }
7608
7609
7610 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7611 PyObject *resultobj;
7612 wxFont *arg1 = (wxFont *) 0 ;
7613 wxNativeFontInfo *result;
7614 PyObject * obj0 = 0 ;
7615 char *kwnames[] = {
7616 (char *) "self", NULL
7617 };
7618
7619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7620 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7621 {
7622 PyThreadState* __tstate = wxPyBeginAllowThreads();
7623 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7624
7625 wxPyEndAllowThreads(__tstate);
7626 if (PyErr_Occurred()) SWIG_fail;
7627 }
7628 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7629 return resultobj;
7630 fail:
7631 return NULL;
7632 }
7633
7634
7635 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7636 PyObject *resultobj;
7637 wxFont *arg1 = (wxFont *) 0 ;
7638 bool result;
7639 PyObject * obj0 = 0 ;
7640 char *kwnames[] = {
7641 (char *) "self", NULL
7642 };
7643
7644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7646 {
7647 PyThreadState* __tstate = wxPyBeginAllowThreads();
7648 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7649
7650 wxPyEndAllowThreads(__tstate);
7651 if (PyErr_Occurred()) SWIG_fail;
7652 }
7653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7654 return resultobj;
7655 fail:
7656 return NULL;
7657 }
7658
7659
7660 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7661 PyObject *resultobj;
7662 wxFont *arg1 = (wxFont *) 0 ;
7663 wxString result;
7664 PyObject * obj0 = 0 ;
7665 char *kwnames[] = {
7666 (char *) "self", NULL
7667 };
7668
7669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7671 {
7672 PyThreadState* __tstate = wxPyBeginAllowThreads();
7673 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7674
7675 wxPyEndAllowThreads(__tstate);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 {
7679 #if wxUSE_UNICODE
7680 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7681 #else
7682 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7683 #endif
7684 }
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj;
7693 wxFont *arg1 = (wxFont *) 0 ;
7694 wxString result;
7695 PyObject * obj0 = 0 ;
7696 char *kwnames[] = {
7697 (char *) "self", NULL
7698 };
7699
7700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7702 {
7703 PyThreadState* __tstate = wxPyBeginAllowThreads();
7704 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7705
7706 wxPyEndAllowThreads(__tstate);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 }
7709 {
7710 #if wxUSE_UNICODE
7711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7712 #else
7713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7714 #endif
7715 }
7716 return resultobj;
7717 fail:
7718 return NULL;
7719 }
7720
7721
7722 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7723 PyObject *resultobj;
7724 wxFont *arg1 = (wxFont *) 0 ;
7725 int arg2 ;
7726 PyObject * obj0 = 0 ;
7727 PyObject * obj1 = 0 ;
7728 char *kwnames[] = {
7729 (char *) "self",(char *) "pointSize", NULL
7730 };
7731
7732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7734 {
7735 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 (arg1)->SetPointSize(arg2);
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 Py_INCREF(Py_None); resultobj = Py_None;
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxFont *arg1 = (wxFont *) 0 ;
7755 int arg2 ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self",(char *) "family", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7764 {
7765 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 {
7769 PyThreadState* __tstate = wxPyBeginAllowThreads();
7770 (arg1)->SetFamily(arg2);
7771
7772 wxPyEndAllowThreads(__tstate);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 Py_INCREF(Py_None); resultobj = Py_None;
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj;
7784 wxFont *arg1 = (wxFont *) 0 ;
7785 int arg2 ;
7786 PyObject * obj0 = 0 ;
7787 PyObject * obj1 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self",(char *) "style", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7794 {
7795 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 {
7799 PyThreadState* __tstate = wxPyBeginAllowThreads();
7800 (arg1)->SetStyle(arg2);
7801
7802 wxPyEndAllowThreads(__tstate);
7803 if (PyErr_Occurred()) SWIG_fail;
7804 }
7805 Py_INCREF(Py_None); resultobj = Py_None;
7806 return resultobj;
7807 fail:
7808 return NULL;
7809 }
7810
7811
7812 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7813 PyObject *resultobj;
7814 wxFont *arg1 = (wxFont *) 0 ;
7815 int arg2 ;
7816 PyObject * obj0 = 0 ;
7817 PyObject * obj1 = 0 ;
7818 char *kwnames[] = {
7819 (char *) "self",(char *) "weight", NULL
7820 };
7821
7822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7824 {
7825 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 {
7829 PyThreadState* __tstate = wxPyBeginAllowThreads();
7830 (arg1)->SetWeight(arg2);
7831
7832 wxPyEndAllowThreads(__tstate);
7833 if (PyErr_Occurred()) SWIG_fail;
7834 }
7835 Py_INCREF(Py_None); resultobj = Py_None;
7836 return resultobj;
7837 fail:
7838 return NULL;
7839 }
7840
7841
7842 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7843 PyObject *resultobj;
7844 wxFont *arg1 = (wxFont *) 0 ;
7845 wxString *arg2 = 0 ;
7846 bool temp2 = False ;
7847 PyObject * obj0 = 0 ;
7848 PyObject * obj1 = 0 ;
7849 char *kwnames[] = {
7850 (char *) "self",(char *) "faceName", NULL
7851 };
7852
7853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7855 {
7856 arg2 = wxString_in_helper(obj1);
7857 if (arg2 == NULL) SWIG_fail;
7858 temp2 = True;
7859 }
7860 {
7861 PyThreadState* __tstate = wxPyBeginAllowThreads();
7862 (arg1)->SetFaceName((wxString const &)*arg2);
7863
7864 wxPyEndAllowThreads(__tstate);
7865 if (PyErr_Occurred()) SWIG_fail;
7866 }
7867 Py_INCREF(Py_None); resultobj = Py_None;
7868 {
7869 if (temp2)
7870 delete arg2;
7871 }
7872 return resultobj;
7873 fail:
7874 {
7875 if (temp2)
7876 delete arg2;
7877 }
7878 return NULL;
7879 }
7880
7881
7882 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7883 PyObject *resultobj;
7884 wxFont *arg1 = (wxFont *) 0 ;
7885 bool arg2 ;
7886 PyObject * obj0 = 0 ;
7887 PyObject * obj1 = 0 ;
7888 char *kwnames[] = {
7889 (char *) "self",(char *) "underlined", NULL
7890 };
7891
7892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7894 {
7895 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
7896 if (PyErr_Occurred()) SWIG_fail;
7897 }
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 (arg1)->SetUnderlined(arg2);
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 Py_INCREF(Py_None); resultobj = Py_None;
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxFont *arg1 = (wxFont *) 0 ;
7915 int arg2 ;
7916 PyObject * obj0 = 0 ;
7917 PyObject * obj1 = 0 ;
7918 char *kwnames[] = {
7919 (char *) "self",(char *) "encoding", NULL
7920 };
7921
7922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7924 {
7925 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7926 if (PyErr_Occurred()) SWIG_fail;
7927 }
7928 {
7929 PyThreadState* __tstate = wxPyBeginAllowThreads();
7930 (arg1)->SetEncoding((wxFontEncoding )arg2);
7931
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 }
7935 Py_INCREF(Py_None); resultobj = Py_None;
7936 return resultobj;
7937 fail:
7938 return NULL;
7939 }
7940
7941
7942 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7943 PyObject *resultobj;
7944 wxFont *arg1 = (wxFont *) 0 ;
7945 wxNativeFontInfo *arg2 = 0 ;
7946 PyObject * obj0 = 0 ;
7947 PyObject * obj1 = 0 ;
7948 char *kwnames[] = {
7949 (char *) "self",(char *) "info", NULL
7950 };
7951
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7953 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7954 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7955 if (arg2 == NULL) {
7956 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7957 }
7958 {
7959 PyThreadState* __tstate = wxPyBeginAllowThreads();
7960 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7961
7962 wxPyEndAllowThreads(__tstate);
7963 if (PyErr_Occurred()) SWIG_fail;
7964 }
7965 Py_INCREF(Py_None); resultobj = Py_None;
7966 return resultobj;
7967 fail:
7968 return NULL;
7969 }
7970
7971
7972 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7973 PyObject *resultobj;
7974 wxFont *arg1 = (wxFont *) 0 ;
7975 wxString *arg2 = 0 ;
7976 bool temp2 = False ;
7977 PyObject * obj0 = 0 ;
7978 PyObject * obj1 = 0 ;
7979 char *kwnames[] = {
7980 (char *) "self",(char *) "info", NULL
7981 };
7982
7983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7985 {
7986 arg2 = wxString_in_helper(obj1);
7987 if (arg2 == NULL) SWIG_fail;
7988 temp2 = True;
7989 }
7990 {
7991 PyThreadState* __tstate = wxPyBeginAllowThreads();
7992 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7993
7994 wxPyEndAllowThreads(__tstate);
7995 if (PyErr_Occurred()) SWIG_fail;
7996 }
7997 Py_INCREF(Py_None); resultobj = Py_None;
7998 {
7999 if (temp2)
8000 delete arg2;
8001 }
8002 return resultobj;
8003 fail:
8004 {
8005 if (temp2)
8006 delete arg2;
8007 }
8008 return NULL;
8009 }
8010
8011
8012 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8013 PyObject *resultobj;
8014 wxFont *arg1 = (wxFont *) 0 ;
8015 wxString *arg2 = 0 ;
8016 bool temp2 = False ;
8017 PyObject * obj0 = 0 ;
8018 PyObject * obj1 = 0 ;
8019 char *kwnames[] = {
8020 (char *) "self",(char *) "info", NULL
8021 };
8022
8023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8025 {
8026 arg2 = wxString_in_helper(obj1);
8027 if (arg2 == NULL) SWIG_fail;
8028 temp2 = True;
8029 }
8030 {
8031 PyThreadState* __tstate = wxPyBeginAllowThreads();
8032 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8033
8034 wxPyEndAllowThreads(__tstate);
8035 if (PyErr_Occurred()) SWIG_fail;
8036 }
8037 Py_INCREF(Py_None); resultobj = Py_None;
8038 {
8039 if (temp2)
8040 delete arg2;
8041 }
8042 return resultobj;
8043 fail:
8044 {
8045 if (temp2)
8046 delete arg2;
8047 }
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxFont *arg1 = (wxFont *) 0 ;
8055 wxString result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",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 = ((wxFont const *)arg1)->GetFamilyString();
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 {
8071 #if wxUSE_UNICODE
8072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8073 #else
8074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8075 #endif
8076 }
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxFont *arg1 = (wxFont *) 0 ;
8086 wxString result;
8087 PyObject * obj0 = 0 ;
8088 char *kwnames[] = {
8089 (char *) "self", NULL
8090 };
8091
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 result = ((wxFont const *)arg1)->GetStyleString();
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 {
8102 #if wxUSE_UNICODE
8103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8104 #else
8105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8106 #endif
8107 }
8108 return resultobj;
8109 fail:
8110 return NULL;
8111 }
8112
8113
8114 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8115 PyObject *resultobj;
8116 wxFont *arg1 = (wxFont *) 0 ;
8117 wxString result;
8118 PyObject * obj0 = 0 ;
8119 char *kwnames[] = {
8120 (char *) "self", NULL
8121 };
8122
8123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8124 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8125 {
8126 PyThreadState* __tstate = wxPyBeginAllowThreads();
8127 result = ((wxFont const *)arg1)->GetWeightString();
8128
8129 wxPyEndAllowThreads(__tstate);
8130 if (PyErr_Occurred()) SWIG_fail;
8131 }
8132 {
8133 #if wxUSE_UNICODE
8134 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8135 #else
8136 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8137 #endif
8138 }
8139 return resultobj;
8140 fail:
8141 return NULL;
8142 }
8143
8144
8145 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8146 PyObject *resultobj;
8147 wxFont *arg1 = (wxFont *) 0 ;
8148 bool arg2 = (bool) True ;
8149 PyObject * obj0 = 0 ;
8150 PyObject * obj1 = 0 ;
8151 char *kwnames[] = {
8152 (char *) "self",(char *) "no", NULL
8153 };
8154
8155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8157 if (obj1) {
8158 {
8159 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 }
8162 }
8163 {
8164 PyThreadState* __tstate = wxPyBeginAllowThreads();
8165 (arg1)->SetNoAntiAliasing(arg2);
8166
8167 wxPyEndAllowThreads(__tstate);
8168 if (PyErr_Occurred()) SWIG_fail;
8169 }
8170 Py_INCREF(Py_None); resultobj = Py_None;
8171 return resultobj;
8172 fail:
8173 return NULL;
8174 }
8175
8176
8177 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8178 PyObject *resultobj;
8179 wxFont *arg1 = (wxFont *) 0 ;
8180 bool result;
8181 PyObject * obj0 = 0 ;
8182 char *kwnames[] = {
8183 (char *) "self", NULL
8184 };
8185
8186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8187 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8188 {
8189 PyThreadState* __tstate = wxPyBeginAllowThreads();
8190 result = (bool)(arg1)->GetNoAntiAliasing();
8191
8192 wxPyEndAllowThreads(__tstate);
8193 if (PyErr_Occurred()) SWIG_fail;
8194 }
8195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8196 return resultobj;
8197 fail:
8198 return NULL;
8199 }
8200
8201
8202 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8203 PyObject *resultobj;
8204 int result;
8205 char *kwnames[] = {
8206 NULL
8207 };
8208
8209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8210 {
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 result = (int)wxFont::GetDefaultEncoding();
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 resultobj = SWIG_PyObj_FromInt((int)result);
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 int arg1 ;
8227 PyObject * obj0 = 0 ;
8228 char *kwnames[] = {
8229 (char *) "encoding", NULL
8230 };
8231
8232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8233 {
8234 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 {
8238 PyThreadState* __tstate = wxPyBeginAllowThreads();
8239 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8240
8241 wxPyEndAllowThreads(__tstate);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 Py_INCREF(Py_None); resultobj = Py_None;
8245 return resultobj;
8246 fail:
8247 return NULL;
8248 }
8249
8250
8251 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8252 PyObject *obj;
8253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8254 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8255 Py_INCREF(obj);
8256 return Py_BuildValue((char *)"");
8257 }
8258 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8259 PyObject *resultobj;
8260 wxPyFontEnumerator *result;
8261 char *kwnames[] = {
8262 NULL
8263 };
8264
8265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8283 PyObject * obj0 = 0 ;
8284 char *kwnames[] = {
8285 (char *) "self", NULL
8286 };
8287
8288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8290 {
8291 PyThreadState* __tstate = wxPyBeginAllowThreads();
8292 delete arg1;
8293
8294 wxPyEndAllowThreads(__tstate);
8295 if (PyErr_Occurred()) SWIG_fail;
8296 }
8297 Py_INCREF(Py_None); resultobj = Py_None;
8298 return resultobj;
8299 fail:
8300 return NULL;
8301 }
8302
8303
8304 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8305 PyObject *resultobj;
8306 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8307 PyObject *arg2 = (PyObject *) 0 ;
8308 PyObject *arg3 = (PyObject *) 0 ;
8309 bool arg4 ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 PyObject * obj2 = 0 ;
8313 PyObject * obj3 = 0 ;
8314 char *kwnames[] = {
8315 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8316 };
8317
8318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8320 arg2 = obj1;
8321 arg3 = obj2;
8322 {
8323 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 }
8326 {
8327 PyThreadState* __tstate = wxPyBeginAllowThreads();
8328 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8329
8330 wxPyEndAllowThreads(__tstate);
8331 if (PyErr_Occurred()) SWIG_fail;
8332 }
8333 Py_INCREF(Py_None); resultobj = Py_None;
8334 return resultobj;
8335 fail:
8336 return NULL;
8337 }
8338
8339
8340 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8341 PyObject *resultobj;
8342 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8343 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8344 bool arg3 = (bool) False ;
8345 bool result;
8346 PyObject * obj0 = 0 ;
8347 PyObject * obj1 = 0 ;
8348 PyObject * obj2 = 0 ;
8349 char *kwnames[] = {
8350 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8351 };
8352
8353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8355 if (obj1) {
8356 {
8357 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8358 if (PyErr_Occurred()) SWIG_fail;
8359 }
8360 }
8361 if (obj2) {
8362 {
8363 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8364 if (PyErr_Occurred()) SWIG_fail;
8365 }
8366 }
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8375 return resultobj;
8376 fail:
8377 return NULL;
8378 }
8379
8380
8381 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj;
8383 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8384 wxString const &arg2_defvalue = wxPyEmptyString ;
8385 wxString *arg2 = (wxString *) &arg2_defvalue ;
8386 bool result;
8387 bool temp2 = False ;
8388 PyObject * obj0 = 0 ;
8389 PyObject * obj1 = 0 ;
8390 char *kwnames[] = {
8391 (char *) "self",(char *) "facename", NULL
8392 };
8393
8394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8396 if (obj1) {
8397 {
8398 arg2 = wxString_in_helper(obj1);
8399 if (arg2 == NULL) SWIG_fail;
8400 temp2 = True;
8401 }
8402 }
8403 {
8404 PyThreadState* __tstate = wxPyBeginAllowThreads();
8405 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8406
8407 wxPyEndAllowThreads(__tstate);
8408 if (PyErr_Occurred()) SWIG_fail;
8409 }
8410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8411 {
8412 if (temp2)
8413 delete arg2;
8414 }
8415 return resultobj;
8416 fail:
8417 {
8418 if (temp2)
8419 delete arg2;
8420 }
8421 return NULL;
8422 }
8423
8424
8425 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8426 PyObject *resultobj;
8427 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8428 PyObject *result;
8429 PyObject * obj0 = 0 ;
8430 char *kwnames[] = {
8431 (char *) "self", NULL
8432 };
8433
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8435 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8436 {
8437 PyThreadState* __tstate = wxPyBeginAllowThreads();
8438 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8439
8440 wxPyEndAllowThreads(__tstate);
8441 if (PyErr_Occurred()) SWIG_fail;
8442 }
8443 resultobj = result;
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj;
8452 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8453 PyObject *result;
8454 PyObject * obj0 = 0 ;
8455 char *kwnames[] = {
8456 (char *) "self", NULL
8457 };
8458
8459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8461 {
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8464
8465 wxPyEndAllowThreads(__tstate);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 }
8468 resultobj = result;
8469 return resultobj;
8470 fail:
8471 return NULL;
8472 }
8473
8474
8475 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8476 PyObject *obj;
8477 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8478 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8479 Py_INCREF(obj);
8480 return Py_BuildValue((char *)"");
8481 }
8482 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj;
8484 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8485 int arg2 ;
8486 PyObject * obj0 = 0 ;
8487 PyObject * obj1 = 0 ;
8488 char *kwnames[] = {
8489 (char *) "self",(char *) "Language", NULL
8490 };
8491
8492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8494 {
8495 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 }
8498 if (arg1) (arg1)->Language = arg2;
8499
8500 Py_INCREF(Py_None); resultobj = Py_None;
8501 return resultobj;
8502 fail:
8503 return NULL;
8504 }
8505
8506
8507 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8508 PyObject *resultobj;
8509 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8510 int result;
8511 PyObject * obj0 = 0 ;
8512 char *kwnames[] = {
8513 (char *) "self", NULL
8514 };
8515
8516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8518 result = (int) ((arg1)->Language);
8519
8520 resultobj = SWIG_PyObj_FromInt((int)result);
8521 return resultobj;
8522 fail:
8523 return NULL;
8524 }
8525
8526
8527 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj;
8529 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8530 wxString *arg2 = (wxString *) 0 ;
8531 bool temp2 = False ;
8532 PyObject * obj0 = 0 ;
8533 PyObject * obj1 = 0 ;
8534 char *kwnames[] = {
8535 (char *) "self",(char *) "CanonicalName", NULL
8536 };
8537
8538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8539 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8540 {
8541 arg2 = wxString_in_helper(obj1);
8542 if (arg2 == NULL) SWIG_fail;
8543 temp2 = True;
8544 }
8545 if (arg1) (arg1)->CanonicalName = *arg2;
8546
8547 Py_INCREF(Py_None); resultobj = Py_None;
8548 {
8549 if (temp2)
8550 delete arg2;
8551 }
8552 return resultobj;
8553 fail:
8554 {
8555 if (temp2)
8556 delete arg2;
8557 }
8558 return NULL;
8559 }
8560
8561
8562 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj;
8564 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8565 wxString *result;
8566 PyObject * obj0 = 0 ;
8567 char *kwnames[] = {
8568 (char *) "self", NULL
8569 };
8570
8571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8572 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8573 result = (wxString *)& ((arg1)->CanonicalName);
8574
8575 {
8576 #if wxUSE_UNICODE
8577 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8578 #else
8579 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8580 #endif
8581 }
8582 return resultobj;
8583 fail:
8584 return NULL;
8585 }
8586
8587
8588 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8589 PyObject *resultobj;
8590 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8591 wxString *arg2 = (wxString *) 0 ;
8592 bool temp2 = False ;
8593 PyObject * obj0 = 0 ;
8594 PyObject * obj1 = 0 ;
8595 char *kwnames[] = {
8596 (char *) "self",(char *) "Description", NULL
8597 };
8598
8599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8600 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8601 {
8602 arg2 = wxString_in_helper(obj1);
8603 if (arg2 == NULL) SWIG_fail;
8604 temp2 = True;
8605 }
8606 if (arg1) (arg1)->Description = *arg2;
8607
8608 Py_INCREF(Py_None); resultobj = Py_None;
8609 {
8610 if (temp2)
8611 delete arg2;
8612 }
8613 return resultobj;
8614 fail:
8615 {
8616 if (temp2)
8617 delete arg2;
8618 }
8619 return NULL;
8620 }
8621
8622
8623 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8624 PyObject *resultobj;
8625 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8626 wxString *result;
8627 PyObject * obj0 = 0 ;
8628 char *kwnames[] = {
8629 (char *) "self", NULL
8630 };
8631
8632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8634 result = (wxString *)& ((arg1)->Description);
8635
8636 {
8637 #if wxUSE_UNICODE
8638 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8639 #else
8640 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8641 #endif
8642 }
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8650 PyObject *obj;
8651 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8652 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8653 Py_INCREF(obj);
8654 return Py_BuildValue((char *)"");
8655 }
8656 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8657 PyObject *resultobj;
8658 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8659 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8660 wxLocale *result;
8661 PyObject * obj0 = 0 ;
8662 PyObject * obj1 = 0 ;
8663 char *kwnames[] = {
8664 (char *) "language",(char *) "flags", NULL
8665 };
8666
8667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8668 if (obj0) {
8669 {
8670 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 }
8674 if (obj1) {
8675 {
8676 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8677 if (PyErr_Occurred()) SWIG_fail;
8678 }
8679 }
8680 {
8681 PyThreadState* __tstate = wxPyBeginAllowThreads();
8682 result = (wxLocale *)new wxLocale(arg1,arg2);
8683
8684 wxPyEndAllowThreads(__tstate);
8685 if (PyErr_Occurred()) SWIG_fail;
8686 }
8687 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8688 return resultobj;
8689 fail:
8690 return NULL;
8691 }
8692
8693
8694 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8695 PyObject *resultobj;
8696 wxLocale *arg1 = (wxLocale *) 0 ;
8697 PyObject * obj0 = 0 ;
8698 char *kwnames[] = {
8699 (char *) "self", NULL
8700 };
8701
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8704 {
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 delete arg1;
8707
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 Py_INCREF(Py_None); resultobj = Py_None;
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxLocale *arg1 = (wxLocale *) 0 ;
8721 wxString *arg2 = 0 ;
8722 wxString const &arg3_defvalue = wxPyEmptyString ;
8723 wxString *arg3 = (wxString *) &arg3_defvalue ;
8724 wxString const &arg4_defvalue = wxPyEmptyString ;
8725 wxString *arg4 = (wxString *) &arg4_defvalue ;
8726 bool arg5 = (bool) True ;
8727 bool arg6 = (bool) False ;
8728 bool result;
8729 bool temp2 = False ;
8730 bool temp3 = False ;
8731 bool temp4 = False ;
8732 PyObject * obj0 = 0 ;
8733 PyObject * obj1 = 0 ;
8734 PyObject * obj2 = 0 ;
8735 PyObject * obj3 = 0 ;
8736 PyObject * obj4 = 0 ;
8737 PyObject * obj5 = 0 ;
8738 char *kwnames[] = {
8739 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8740 };
8741
8742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8744 {
8745 arg2 = wxString_in_helper(obj1);
8746 if (arg2 == NULL) SWIG_fail;
8747 temp2 = True;
8748 }
8749 if (obj2) {
8750 {
8751 arg3 = wxString_in_helper(obj2);
8752 if (arg3 == NULL) SWIG_fail;
8753 temp3 = True;
8754 }
8755 }
8756 if (obj3) {
8757 {
8758 arg4 = wxString_in_helper(obj3);
8759 if (arg4 == NULL) SWIG_fail;
8760 temp4 = True;
8761 }
8762 }
8763 if (obj4) {
8764 {
8765 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
8766 if (PyErr_Occurred()) SWIG_fail;
8767 }
8768 }
8769 if (obj5) {
8770 {
8771 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 }
8775 {
8776 PyThreadState* __tstate = wxPyBeginAllowThreads();
8777 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8778
8779 wxPyEndAllowThreads(__tstate);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8783 {
8784 if (temp2)
8785 delete arg2;
8786 }
8787 {
8788 if (temp3)
8789 delete arg3;
8790 }
8791 {
8792 if (temp4)
8793 delete arg4;
8794 }
8795 return resultobj;
8796 fail:
8797 {
8798 if (temp2)
8799 delete arg2;
8800 }
8801 {
8802 if (temp3)
8803 delete arg3;
8804 }
8805 {
8806 if (temp4)
8807 delete arg4;
8808 }
8809 return NULL;
8810 }
8811
8812
8813 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8814 PyObject *resultobj;
8815 wxLocale *arg1 = (wxLocale *) 0 ;
8816 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8817 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8818 bool result;
8819 PyObject * obj0 = 0 ;
8820 PyObject * obj1 = 0 ;
8821 PyObject * obj2 = 0 ;
8822 char *kwnames[] = {
8823 (char *) "self",(char *) "language",(char *) "flags", NULL
8824 };
8825
8826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
8827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8828 if (obj1) {
8829 {
8830 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8831 if (PyErr_Occurred()) SWIG_fail;
8832 }
8833 }
8834 if (obj2) {
8835 {
8836 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8837 if (PyErr_Occurred()) SWIG_fail;
8838 }
8839 }
8840 {
8841 PyThreadState* __tstate = wxPyBeginAllowThreads();
8842 result = (bool)(arg1)->Init(arg2,arg3);
8843
8844 wxPyEndAllowThreads(__tstate);
8845 if (PyErr_Occurred()) SWIG_fail;
8846 }
8847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8848 return resultobj;
8849 fail:
8850 return NULL;
8851 }
8852
8853
8854 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8855 PyObject *resultobj;
8856 int result;
8857 char *kwnames[] = {
8858 NULL
8859 };
8860
8861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8862 {
8863 PyThreadState* __tstate = wxPyBeginAllowThreads();
8864 result = (int)wxLocale::GetSystemLanguage();
8865
8866 wxPyEndAllowThreads(__tstate);
8867 if (PyErr_Occurred()) SWIG_fail;
8868 }
8869 resultobj = SWIG_PyObj_FromInt((int)result);
8870 return resultobj;
8871 fail:
8872 return NULL;
8873 }
8874
8875
8876 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj;
8878 int result;
8879 char *kwnames[] = {
8880 NULL
8881 };
8882
8883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (int)wxLocale::GetSystemEncoding();
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 resultobj = SWIG_PyObj_FromInt((int)result);
8892 return resultobj;
8893 fail:
8894 return NULL;
8895 }
8896
8897
8898 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8899 PyObject *resultobj;
8900 wxString result;
8901 char *kwnames[] = {
8902 NULL
8903 };
8904
8905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8906 {
8907 PyThreadState* __tstate = wxPyBeginAllowThreads();
8908 result = wxLocale::GetSystemEncodingName();
8909
8910 wxPyEndAllowThreads(__tstate);
8911 if (PyErr_Occurred()) SWIG_fail;
8912 }
8913 {
8914 #if wxUSE_UNICODE
8915 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8916 #else
8917 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8918 #endif
8919 }
8920 return resultobj;
8921 fail:
8922 return NULL;
8923 }
8924
8925
8926 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8927 PyObject *resultobj;
8928 wxLocale *arg1 = (wxLocale *) 0 ;
8929 bool result;
8930 PyObject * obj0 = 0 ;
8931 char *kwnames[] = {
8932 (char *) "self", NULL
8933 };
8934
8935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8937 {
8938 PyThreadState* __tstate = wxPyBeginAllowThreads();
8939 result = (bool)((wxLocale const *)arg1)->IsOk();
8940
8941 wxPyEndAllowThreads(__tstate);
8942 if (PyErr_Occurred()) SWIG_fail;
8943 }
8944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8945 return resultobj;
8946 fail:
8947 return NULL;
8948 }
8949
8950
8951 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8952 PyObject *resultobj;
8953 wxLocale *arg1 = (wxLocale *) 0 ;
8954 wxString result;
8955 PyObject * obj0 = 0 ;
8956 char *kwnames[] = {
8957 (char *) "self", NULL
8958 };
8959
8960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8961 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8962 {
8963 PyThreadState* __tstate = wxPyBeginAllowThreads();
8964 result = ((wxLocale const *)arg1)->GetLocale();
8965
8966 wxPyEndAllowThreads(__tstate);
8967 if (PyErr_Occurred()) SWIG_fail;
8968 }
8969 {
8970 #if wxUSE_UNICODE
8971 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8972 #else
8973 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8974 #endif
8975 }
8976 return resultobj;
8977 fail:
8978 return NULL;
8979 }
8980
8981
8982 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8983 PyObject *resultobj;
8984 wxLocale *arg1 = (wxLocale *) 0 ;
8985 int result;
8986 PyObject * obj0 = 0 ;
8987 char *kwnames[] = {
8988 (char *) "self", NULL
8989 };
8990
8991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8992 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8993 {
8994 PyThreadState* __tstate = wxPyBeginAllowThreads();
8995 result = (int)((wxLocale const *)arg1)->GetLanguage();
8996
8997 wxPyEndAllowThreads(__tstate);
8998 if (PyErr_Occurred()) SWIG_fail;
8999 }
9000 resultobj = SWIG_PyObj_FromInt((int)result);
9001 return resultobj;
9002 fail:
9003 return NULL;
9004 }
9005
9006
9007 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9008 PyObject *resultobj;
9009 wxLocale *arg1 = (wxLocale *) 0 ;
9010 wxString result;
9011 PyObject * obj0 = 0 ;
9012 char *kwnames[] = {
9013 (char *) "self", NULL
9014 };
9015
9016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9018 {
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = ((wxLocale const *)arg1)->GetSysName();
9021
9022 wxPyEndAllowThreads(__tstate);
9023 if (PyErr_Occurred()) SWIG_fail;
9024 }
9025 {
9026 #if wxUSE_UNICODE
9027 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9028 #else
9029 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9030 #endif
9031 }
9032 return resultobj;
9033 fail:
9034 return NULL;
9035 }
9036
9037
9038 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9039 PyObject *resultobj;
9040 wxLocale *arg1 = (wxLocale *) 0 ;
9041 wxString result;
9042 PyObject * obj0 = 0 ;
9043 char *kwnames[] = {
9044 (char *) "self", NULL
9045 };
9046
9047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9048 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9049 {
9050 PyThreadState* __tstate = wxPyBeginAllowThreads();
9051 result = ((wxLocale const *)arg1)->GetCanonicalName();
9052
9053 wxPyEndAllowThreads(__tstate);
9054 if (PyErr_Occurred()) SWIG_fail;
9055 }
9056 {
9057 #if wxUSE_UNICODE
9058 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9059 #else
9060 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9061 #endif
9062 }
9063 return resultobj;
9064 fail:
9065 return NULL;
9066 }
9067
9068
9069 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9070 PyObject *resultobj;
9071 wxString *arg1 = 0 ;
9072 bool temp1 = False ;
9073 PyObject * obj0 = 0 ;
9074 char *kwnames[] = {
9075 (char *) "prefix", NULL
9076 };
9077
9078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9079 {
9080 arg1 = wxString_in_helper(obj0);
9081 if (arg1 == NULL) SWIG_fail;
9082 temp1 = True;
9083 }
9084 {
9085 PyThreadState* __tstate = wxPyBeginAllowThreads();
9086 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9087
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 Py_INCREF(Py_None); resultobj = Py_None;
9092 {
9093 if (temp1)
9094 delete arg1;
9095 }
9096 return resultobj;
9097 fail:
9098 {
9099 if (temp1)
9100 delete arg1;
9101 }
9102 return NULL;
9103 }
9104
9105
9106 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9107 PyObject *resultobj;
9108 wxLocale *arg1 = (wxLocale *) 0 ;
9109 wxString *arg2 = 0 ;
9110 bool result;
9111 bool temp2 = False ;
9112 PyObject * obj0 = 0 ;
9113 PyObject * obj1 = 0 ;
9114 char *kwnames[] = {
9115 (char *) "self",(char *) "szDomain", NULL
9116 };
9117
9118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9120 {
9121 arg2 = wxString_in_helper(obj1);
9122 if (arg2 == NULL) SWIG_fail;
9123 temp2 = True;
9124 }
9125 {
9126 PyThreadState* __tstate = wxPyBeginAllowThreads();
9127 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9128
9129 wxPyEndAllowThreads(__tstate);
9130 if (PyErr_Occurred()) SWIG_fail;
9131 }
9132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return resultobj;
9138 fail:
9139 {
9140 if (temp2)
9141 delete arg2;
9142 }
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9148 PyObject *resultobj;
9149 wxLocale *arg1 = (wxLocale *) 0 ;
9150 wxString *arg2 = 0 ;
9151 bool result;
9152 bool temp2 = False ;
9153 PyObject * obj0 = 0 ;
9154 PyObject * obj1 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self",(char *) "szDomain", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9161 {
9162 arg2 = wxString_in_helper(obj1);
9163 if (arg2 == NULL) SWIG_fail;
9164 temp2 = True;
9165 }
9166 {
9167 PyThreadState* __tstate = wxPyBeginAllowThreads();
9168 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9169
9170 wxPyEndAllowThreads(__tstate);
9171 if (PyErr_Occurred()) SWIG_fail;
9172 }
9173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9174 {
9175 if (temp2)
9176 delete arg2;
9177 }
9178 return resultobj;
9179 fail:
9180 {
9181 if (temp2)
9182 delete arg2;
9183 }
9184 return NULL;
9185 }
9186
9187
9188 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9189 PyObject *resultobj;
9190 int arg1 ;
9191 wxLanguageInfo *result;
9192 PyObject * obj0 = 0 ;
9193 char *kwnames[] = {
9194 (char *) "lang", NULL
9195 };
9196
9197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9198 {
9199 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 {
9203 PyThreadState* __tstate = wxPyBeginAllowThreads();
9204 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9205
9206 wxPyEndAllowThreads(__tstate);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9210 return resultobj;
9211 fail:
9212 return NULL;
9213 }
9214
9215
9216 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9217 PyObject *resultobj;
9218 int arg1 ;
9219 wxString result;
9220 PyObject * obj0 = 0 ;
9221 char *kwnames[] = {
9222 (char *) "lang", NULL
9223 };
9224
9225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9226 {
9227 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9228 if (PyErr_Occurred()) SWIG_fail;
9229 }
9230 {
9231 PyThreadState* __tstate = wxPyBeginAllowThreads();
9232 result = wxLocale::GetLanguageName(arg1);
9233
9234 wxPyEndAllowThreads(__tstate);
9235 if (PyErr_Occurred()) SWIG_fail;
9236 }
9237 {
9238 #if wxUSE_UNICODE
9239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9240 #else
9241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9242 #endif
9243 }
9244 return resultobj;
9245 fail:
9246 return NULL;
9247 }
9248
9249
9250 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9251 PyObject *resultobj;
9252 wxString *arg1 = 0 ;
9253 wxLanguageInfo *result;
9254 bool temp1 = False ;
9255 PyObject * obj0 = 0 ;
9256 char *kwnames[] = {
9257 (char *) "locale", NULL
9258 };
9259
9260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9261 {
9262 arg1 = wxString_in_helper(obj0);
9263 if (arg1 == NULL) SWIG_fail;
9264 temp1 = True;
9265 }
9266 {
9267 PyThreadState* __tstate = wxPyBeginAllowThreads();
9268 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9269
9270 wxPyEndAllowThreads(__tstate);
9271 if (PyErr_Occurred()) SWIG_fail;
9272 }
9273 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9274 {
9275 if (temp1)
9276 delete arg1;
9277 }
9278 return resultobj;
9279 fail:
9280 {
9281 if (temp1)
9282 delete arg1;
9283 }
9284 return NULL;
9285 }
9286
9287
9288 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 wxLanguageInfo *arg1 = 0 ;
9291 PyObject * obj0 = 0 ;
9292 char *kwnames[] = {
9293 (char *) "info", NULL
9294 };
9295
9296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9297 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9298 if (arg1 == NULL) {
9299 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9300 }
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9304
9305 wxPyEndAllowThreads(__tstate);
9306 if (PyErr_Occurred()) SWIG_fail;
9307 }
9308 Py_INCREF(Py_None); resultobj = Py_None;
9309 return resultobj;
9310 fail:
9311 return NULL;
9312 }
9313
9314
9315 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9316 PyObject *resultobj;
9317 wxLocale *arg1 = (wxLocale *) 0 ;
9318 wxString *arg2 = 0 ;
9319 wxString const &arg3_defvalue = wxPyEmptyString ;
9320 wxString *arg3 = (wxString *) &arg3_defvalue ;
9321 wxString result;
9322 bool temp2 = False ;
9323 bool temp3 = False ;
9324 PyObject * obj0 = 0 ;
9325 PyObject * obj1 = 0 ;
9326 PyObject * obj2 = 0 ;
9327 char *kwnames[] = {
9328 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9329 };
9330
9331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9332 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9333 {
9334 arg2 = wxString_in_helper(obj1);
9335 if (arg2 == NULL) SWIG_fail;
9336 temp2 = True;
9337 }
9338 if (obj2) {
9339 {
9340 arg3 = wxString_in_helper(obj2);
9341 if (arg3 == NULL) SWIG_fail;
9342 temp3 = True;
9343 }
9344 }
9345 {
9346 PyThreadState* __tstate = wxPyBeginAllowThreads();
9347 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9348
9349 wxPyEndAllowThreads(__tstate);
9350 if (PyErr_Occurred()) SWIG_fail;
9351 }
9352 {
9353 #if wxUSE_UNICODE
9354 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9355 #else
9356 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9357 #endif
9358 }
9359 {
9360 if (temp2)
9361 delete arg2;
9362 }
9363 {
9364 if (temp3)
9365 delete arg3;
9366 }
9367 return resultobj;
9368 fail:
9369 {
9370 if (temp2)
9371 delete arg2;
9372 }
9373 {
9374 if (temp3)
9375 delete arg3;
9376 }
9377 return NULL;
9378 }
9379
9380
9381 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9382 PyObject *resultobj;
9383 wxLocale *arg1 = (wxLocale *) 0 ;
9384 wxString *result;
9385 PyObject * obj0 = 0 ;
9386 char *kwnames[] = {
9387 (char *) "self", NULL
9388 };
9389
9390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9392 {
9393 PyThreadState* __tstate = wxPyBeginAllowThreads();
9394 {
9395 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9396 result = (wxString *) &_result_ref;
9397 }
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 {
9403 #if wxUSE_UNICODE
9404 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9405 #else
9406 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9407 #endif
9408 }
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9416 PyObject *obj;
9417 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9418 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9419 Py_INCREF(obj);
9420 return Py_BuildValue((char *)"");
9421 }
9422 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9423 PyObject *resultobj;
9424 wxLocale *result;
9425 char *kwnames[] = {
9426 NULL
9427 };
9428
9429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9430 {
9431 PyThreadState* __tstate = wxPyBeginAllowThreads();
9432 result = (wxLocale *)wxGetLocale();
9433
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9438 return resultobj;
9439 fail:
9440 return NULL;
9441 }
9442
9443
9444 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9445 PyObject *resultobj;
9446 wxString *arg1 = 0 ;
9447 wxString result;
9448 bool temp1 = False ;
9449 PyObject * obj0 = 0 ;
9450
9451 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9452 {
9453 arg1 = wxString_in_helper(obj0);
9454 if (arg1 == NULL) SWIG_fail;
9455 temp1 = True;
9456 }
9457 {
9458 PyThreadState* __tstate = wxPyBeginAllowThreads();
9459 result = wxGetTranslation((wxString const &)*arg1);
9460
9461 wxPyEndAllowThreads(__tstate);
9462 if (PyErr_Occurred()) SWIG_fail;
9463 }
9464 {
9465 #if wxUSE_UNICODE
9466 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9467 #else
9468 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9469 #endif
9470 }
9471 {
9472 if (temp1)
9473 delete arg1;
9474 }
9475 return resultobj;
9476 fail:
9477 {
9478 if (temp1)
9479 delete arg1;
9480 }
9481 return NULL;
9482 }
9483
9484
9485 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9486 PyObject *resultobj;
9487 wxString *arg1 = 0 ;
9488 wxString *arg2 = 0 ;
9489 size_t arg3 ;
9490 wxString result;
9491 bool temp1 = False ;
9492 bool temp2 = False ;
9493 PyObject * obj0 = 0 ;
9494 PyObject * obj1 = 0 ;
9495 PyObject * obj2 = 0 ;
9496
9497 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9498 {
9499 arg1 = wxString_in_helper(obj0);
9500 if (arg1 == NULL) SWIG_fail;
9501 temp1 = True;
9502 }
9503 {
9504 arg2 = wxString_in_helper(obj1);
9505 if (arg2 == NULL) SWIG_fail;
9506 temp2 = True;
9507 }
9508 {
9509 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
9510 if (PyErr_Occurred()) SWIG_fail;
9511 }
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9515
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 #if wxUSE_UNICODE
9521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9522 #else
9523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9524 #endif
9525 }
9526 {
9527 if (temp1)
9528 delete arg1;
9529 }
9530 {
9531 if (temp2)
9532 delete arg2;
9533 }
9534 return resultobj;
9535 fail:
9536 {
9537 if (temp1)
9538 delete arg1;
9539 }
9540 {
9541 if (temp2)
9542 delete arg2;
9543 }
9544 return NULL;
9545 }
9546
9547
9548 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9549 int argc;
9550 PyObject *argv[4];
9551 int ii;
9552
9553 argc = PyObject_Length(args);
9554 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9555 argv[ii] = PyTuple_GetItem(args,ii);
9556 }
9557 if (argc == 1) {
9558 int _v;
9559 {
9560 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9561 }
9562 if (_v) {
9563 return _wrap_GetTranslation__SWIG_0(self,args);
9564 }
9565 }
9566 if (argc == 3) {
9567 int _v;
9568 {
9569 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9570 }
9571 if (_v) {
9572 {
9573 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9574 }
9575 if (_v) {
9576 {
9577 SWIG_PyObj_AsUnsignedLong(argv[2]);
9578 if (PyErr_Occurred()) {
9579 _v = 0;
9580 PyErr_Clear();
9581 } else {
9582 _v = 1;
9583 }
9584 }
9585 if (_v) {
9586 return _wrap_GetTranslation__SWIG_1(self,args);
9587 }
9588 }
9589 }
9590 }
9591
9592 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9593 return NULL;
9594 }
9595
9596
9597 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxEncodingConverter *result;
9600 char *kwnames[] = {
9601 NULL
9602 };
9603
9604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = (wxEncodingConverter *)new wxEncodingConverter();
9608
9609 wxPyEndAllowThreads(__tstate);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj;
9621 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9622 PyObject * obj0 = 0 ;
9623 char *kwnames[] = {
9624 (char *) "self", NULL
9625 };
9626
9627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 delete arg1;
9632
9633 wxPyEndAllowThreads(__tstate);
9634 if (PyErr_Occurred()) SWIG_fail;
9635 }
9636 Py_INCREF(Py_None); resultobj = Py_None;
9637 return resultobj;
9638 fail:
9639 return NULL;
9640 }
9641
9642
9643 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9644 PyObject *resultobj;
9645 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9646 int arg2 ;
9647 int arg3 ;
9648 int arg4 = (int) wxCONVERT_STRICT ;
9649 bool result;
9650 PyObject * obj0 = 0 ;
9651 PyObject * obj1 = 0 ;
9652 PyObject * obj2 = 0 ;
9653 PyObject * obj3 = 0 ;
9654 char *kwnames[] = {
9655 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9656 };
9657
9658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9660 {
9661 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9662 if (PyErr_Occurred()) SWIG_fail;
9663 }
9664 {
9665 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 if (obj3) {
9669 {
9670 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 }
9674 {
9675 PyThreadState* __tstate = wxPyBeginAllowThreads();
9676 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9677
9678 wxPyEndAllowThreads(__tstate);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 }
9681 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9682 return resultobj;
9683 fail:
9684 return NULL;
9685 }
9686
9687
9688 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9689 PyObject *resultobj;
9690 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9691 wxString *arg2 = 0 ;
9692 wxString result;
9693 bool temp2 = False ;
9694 PyObject * obj0 = 0 ;
9695 PyObject * obj1 = 0 ;
9696 char *kwnames[] = {
9697 (char *) "self",(char *) "input", NULL
9698 };
9699
9700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9701 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9702 {
9703 arg2 = wxString_in_helper(obj1);
9704 if (arg2 == NULL) SWIG_fail;
9705 temp2 = True;
9706 }
9707 {
9708 PyThreadState* __tstate = wxPyBeginAllowThreads();
9709 result = (arg1)->Convert((wxString const &)*arg2);
9710
9711 wxPyEndAllowThreads(__tstate);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 {
9715 #if wxUSE_UNICODE
9716 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9717 #else
9718 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9719 #endif
9720 }
9721 {
9722 if (temp2)
9723 delete arg2;
9724 }
9725 return resultobj;
9726 fail:
9727 {
9728 if (temp2)
9729 delete arg2;
9730 }
9731 return NULL;
9732 }
9733
9734
9735 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj;
9737 int arg1 ;
9738 int arg2 = (int) wxPLATFORM_CURRENT ;
9739 wxFontEncodingArray result;
9740 PyObject * obj0 = 0 ;
9741 PyObject * obj1 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "enc",(char *) "platform", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9747 {
9748 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 if (obj1) {
9752 {
9753 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9754 if (PyErr_Occurred()) SWIG_fail;
9755 }
9756 }
9757 {
9758 PyThreadState* __tstate = wxPyBeginAllowThreads();
9759 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9760
9761 wxPyEndAllowThreads(__tstate);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 {
9765 resultobj = PyList_New(0);
9766 for (size_t i=0; i < (&result)->GetCount(); i++) {
9767 PyObject* number = PyInt_FromLong((&result)->Item(i));
9768 PyList_Append(resultobj, number);
9769 Py_DECREF(number);
9770 }
9771 }
9772 return resultobj;
9773 fail:
9774 return NULL;
9775 }
9776
9777
9778 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9779 PyObject *resultobj;
9780 int arg1 ;
9781 wxFontEncodingArray result;
9782 PyObject * obj0 = 0 ;
9783 char *kwnames[] = {
9784 (char *) "enc", NULL
9785 };
9786
9787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
9788 {
9789 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9795
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 {
9800 resultobj = PyList_New(0);
9801 for (size_t i=0; i < (&result)->GetCount(); i++) {
9802 PyObject* number = PyInt_FromLong((&result)->Item(i));
9803 PyList_Append(resultobj, number);
9804 Py_DECREF(number);
9805 }
9806 }
9807 return resultobj;
9808 fail:
9809 return NULL;
9810 }
9811
9812
9813 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9814 PyObject *resultobj;
9815 int arg1 ;
9816 int arg2 ;
9817 bool result;
9818 PyObject * obj0 = 0 ;
9819 PyObject * obj1 = 0 ;
9820 char *kwnames[] = {
9821 (char *) "encIn",(char *) "encOut", NULL
9822 };
9823
9824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
9825 {
9826 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 {
9830 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9831 if (PyErr_Occurred()) SWIG_fail;
9832 }
9833 {
9834 PyThreadState* __tstate = wxPyBeginAllowThreads();
9835 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9836
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9841 return resultobj;
9842 fail:
9843 return NULL;
9844 }
9845
9846
9847 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9848 PyObject *obj;
9849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9850 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9851 Py_INCREF(obj);
9852 return Py_BuildValue((char *)"");
9853 }
9854 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9855 PyObject *resultobj;
9856 wxDC *arg1 = (wxDC *) 0 ;
9857 PyObject * obj0 = 0 ;
9858 char *kwnames[] = {
9859 (char *) "self", NULL
9860 };
9861
9862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9864 {
9865 PyThreadState* __tstate = wxPyBeginAllowThreads();
9866 delete arg1;
9867
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
9871 Py_INCREF(Py_None); resultobj = Py_None;
9872 return resultobj;
9873 fail:
9874 return NULL;
9875 }
9876
9877
9878 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj;
9880 wxDC *arg1 = (wxDC *) 0 ;
9881 PyObject * obj0 = 0 ;
9882 char *kwnames[] = {
9883 (char *) "self", NULL
9884 };
9885
9886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9887 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9888 {
9889 PyThreadState* __tstate = wxPyBeginAllowThreads();
9890 (arg1)->BeginDrawing();
9891
9892 wxPyEndAllowThreads(__tstate);
9893 if (PyErr_Occurred()) SWIG_fail;
9894 }
9895 Py_INCREF(Py_None); resultobj = Py_None;
9896 return resultobj;
9897 fail:
9898 return NULL;
9899 }
9900
9901
9902 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9903 PyObject *resultobj;
9904 wxDC *arg1 = (wxDC *) 0 ;
9905 PyObject * obj0 = 0 ;
9906 char *kwnames[] = {
9907 (char *) "self", NULL
9908 };
9909
9910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9911 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 (arg1)->EndDrawing();
9915
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 Py_INCREF(Py_None); resultobj = Py_None;
9920 return resultobj;
9921 fail:
9922 return NULL;
9923 }
9924
9925
9926 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9927 PyObject *resultobj;
9928 wxDC *arg1 = (wxDC *) 0 ;
9929 int arg2 ;
9930 int arg3 ;
9931 wxColour *arg4 = 0 ;
9932 int arg5 = (int) wxFLOOD_SURFACE ;
9933 bool result;
9934 wxColour temp4 ;
9935 PyObject * obj0 = 0 ;
9936 PyObject * obj1 = 0 ;
9937 PyObject * obj2 = 0 ;
9938 PyObject * obj3 = 0 ;
9939 PyObject * obj4 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9946 {
9947 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 {
9951 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 {
9955 arg4 = &temp4;
9956 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9957 }
9958 if (obj4) {
9959 {
9960 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 }
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9967
9968 wxPyEndAllowThreads(__tstate);
9969 if (PyErr_Occurred()) SWIG_fail;
9970 }
9971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9972 return resultobj;
9973 fail:
9974 return NULL;
9975 }
9976
9977
9978 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9979 PyObject *resultobj;
9980 wxDC *arg1 = (wxDC *) 0 ;
9981 wxPoint *arg2 = 0 ;
9982 wxColour *arg3 = 0 ;
9983 int arg4 = (int) wxFLOOD_SURFACE ;
9984 bool result;
9985 wxPoint temp2 ;
9986 wxColour temp3 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 PyObject * obj3 = 0 ;
9991 char *kwnames[] = {
9992 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9993 };
9994
9995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9996 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9997 {
9998 arg2 = &temp2;
9999 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10000 }
10001 {
10002 arg3 = &temp3;
10003 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10004 }
10005 if (obj3) {
10006 {
10007 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 }
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10014
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxDC *arg1 = (wxDC *) 0 ;
10028 int arg2 ;
10029 int arg3 ;
10030 wxColour result;
10031 PyObject * obj0 = 0 ;
10032 PyObject * obj1 = 0 ;
10033 PyObject * obj2 = 0 ;
10034 char *kwnames[] = {
10035 (char *) "self",(char *) "x",(char *) "y", NULL
10036 };
10037
10038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10039 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10040 {
10041 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 {
10045 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10046 if (PyErr_Occurred()) SWIG_fail;
10047 }
10048 {
10049 PyThreadState* __tstate = wxPyBeginAllowThreads();
10050 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10051
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 wxColour * resultptr;
10057 resultptr = new wxColour((wxColour &) result);
10058 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10059 }
10060 return resultobj;
10061 fail:
10062 return NULL;
10063 }
10064
10065
10066 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10067 PyObject *resultobj;
10068 wxDC *arg1 = (wxDC *) 0 ;
10069 wxPoint *arg2 = 0 ;
10070 wxColour result;
10071 wxPoint temp2 ;
10072 PyObject * obj0 = 0 ;
10073 PyObject * obj1 = 0 ;
10074 char *kwnames[] = {
10075 (char *) "self",(char *) "pt", NULL
10076 };
10077
10078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10080 {
10081 arg2 = &temp2;
10082 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10083 }
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10087
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 {
10092 wxColour * resultptr;
10093 resultptr = new wxColour((wxColour &) result);
10094 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10095 }
10096 return resultobj;
10097 fail:
10098 return NULL;
10099 }
10100
10101
10102 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10103 PyObject *resultobj;
10104 wxDC *arg1 = (wxDC *) 0 ;
10105 int arg2 ;
10106 int arg3 ;
10107 int arg4 ;
10108 int arg5 ;
10109 PyObject * obj0 = 0 ;
10110 PyObject * obj1 = 0 ;
10111 PyObject * obj2 = 0 ;
10112 PyObject * obj3 = 0 ;
10113 PyObject * obj4 = 0 ;
10114 char *kwnames[] = {
10115 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10116 };
10117
10118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10120 {
10121 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 {
10125 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 }
10128 {
10129 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10130 if (PyErr_Occurred()) SWIG_fail;
10131 }
10132 {
10133 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10134 if (PyErr_Occurred()) SWIG_fail;
10135 }
10136 {
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10139
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 Py_INCREF(Py_None); resultobj = Py_None;
10144 return resultobj;
10145 fail:
10146 return NULL;
10147 }
10148
10149
10150 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10151 PyObject *resultobj;
10152 wxDC *arg1 = (wxDC *) 0 ;
10153 wxPoint *arg2 = 0 ;
10154 wxPoint *arg3 = 0 ;
10155 wxPoint temp2 ;
10156 wxPoint temp3 ;
10157 PyObject * obj0 = 0 ;
10158 PyObject * obj1 = 0 ;
10159 PyObject * obj2 = 0 ;
10160 char *kwnames[] = {
10161 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10162 };
10163
10164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10165 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10166 {
10167 arg2 = &temp2;
10168 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10169 }
10170 {
10171 arg3 = &temp3;
10172 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10173 }
10174 {
10175 PyThreadState* __tstate = wxPyBeginAllowThreads();
10176 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10177
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 Py_INCREF(Py_None); resultobj = Py_None;
10182 return resultobj;
10183 fail:
10184 return NULL;
10185 }
10186
10187
10188 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10189 PyObject *resultobj;
10190 wxDC *arg1 = (wxDC *) 0 ;
10191 int arg2 ;
10192 int arg3 ;
10193 PyObject * obj0 = 0 ;
10194 PyObject * obj1 = 0 ;
10195 PyObject * obj2 = 0 ;
10196 char *kwnames[] = {
10197 (char *) "self",(char *) "x",(char *) "y", NULL
10198 };
10199
10200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10202 {
10203 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 {
10207 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10208 if (PyErr_Occurred()) SWIG_fail;
10209 }
10210 {
10211 PyThreadState* __tstate = wxPyBeginAllowThreads();
10212 (arg1)->CrossHair(arg2,arg3);
10213
10214 wxPyEndAllowThreads(__tstate);
10215 if (PyErr_Occurred()) SWIG_fail;
10216 }
10217 Py_INCREF(Py_None); resultobj = Py_None;
10218 return resultobj;
10219 fail:
10220 return NULL;
10221 }
10222
10223
10224 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10225 PyObject *resultobj;
10226 wxDC *arg1 = (wxDC *) 0 ;
10227 wxPoint *arg2 = 0 ;
10228 wxPoint temp2 ;
10229 PyObject * obj0 = 0 ;
10230 PyObject * obj1 = 0 ;
10231 char *kwnames[] = {
10232 (char *) "self",(char *) "pt", NULL
10233 };
10234
10235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10237 {
10238 arg2 = &temp2;
10239 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10240 }
10241 {
10242 PyThreadState* __tstate = wxPyBeginAllowThreads();
10243 (arg1)->CrossHair((wxPoint const &)*arg2);
10244
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 Py_INCREF(Py_None); resultobj = Py_None;
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj;
10257 wxDC *arg1 = (wxDC *) 0 ;
10258 int arg2 ;
10259 int arg3 ;
10260 int arg4 ;
10261 int arg5 ;
10262 int arg6 ;
10263 int arg7 ;
10264 PyObject * obj0 = 0 ;
10265 PyObject * obj1 = 0 ;
10266 PyObject * obj2 = 0 ;
10267 PyObject * obj3 = 0 ;
10268 PyObject * obj4 = 0 ;
10269 PyObject * obj5 = 0 ;
10270 PyObject * obj6 = 0 ;
10271 char *kwnames[] = {
10272 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10273 };
10274
10275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10276 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10277 {
10278 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10279 if (PyErr_Occurred()) SWIG_fail;
10280 }
10281 {
10282 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10283 if (PyErr_Occurred()) SWIG_fail;
10284 }
10285 {
10286 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 }
10289 {
10290 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10291 if (PyErr_Occurred()) SWIG_fail;
10292 }
10293 {
10294 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10295 if (PyErr_Occurred()) SWIG_fail;
10296 }
10297 {
10298 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 Py_INCREF(Py_None); resultobj = Py_None;
10309 return resultobj;
10310 fail:
10311 return NULL;
10312 }
10313
10314
10315 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj;
10317 wxDC *arg1 = (wxDC *) 0 ;
10318 wxPoint *arg2 = 0 ;
10319 wxPoint *arg3 = 0 ;
10320 wxPoint *arg4 = 0 ;
10321 wxPoint temp2 ;
10322 wxPoint temp3 ;
10323 wxPoint temp4 ;
10324 PyObject * obj0 = 0 ;
10325 PyObject * obj1 = 0 ;
10326 PyObject * obj2 = 0 ;
10327 PyObject * obj3 = 0 ;
10328 char *kwnames[] = {
10329 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10330 };
10331
10332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10333 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10334 {
10335 arg2 = &temp2;
10336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10337 }
10338 {
10339 arg3 = &temp3;
10340 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10341 }
10342 {
10343 arg4 = &temp4;
10344 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10345 }
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 Py_INCREF(Py_None); resultobj = Py_None;
10354 return resultobj;
10355 fail:
10356 return NULL;
10357 }
10358
10359
10360 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10361 PyObject *resultobj;
10362 wxDC *arg1 = (wxDC *) 0 ;
10363 int arg2 ;
10364 int arg3 ;
10365 int arg4 ;
10366 int arg5 ;
10367 PyObject * obj0 = 0 ;
10368 PyObject * obj1 = 0 ;
10369 PyObject * obj2 = 0 ;
10370 PyObject * obj3 = 0 ;
10371 PyObject * obj4 = 0 ;
10372 char *kwnames[] = {
10373 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10374 };
10375
10376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10377 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10378 {
10379 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 {
10383 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10384 if (PyErr_Occurred()) SWIG_fail;
10385 }
10386 {
10387 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 {
10391 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10392 if (PyErr_Occurred()) SWIG_fail;
10393 }
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 Py_INCREF(Py_None); resultobj = Py_None;
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj;
10410 wxDC *arg1 = (wxDC *) 0 ;
10411 wxRect *arg2 = 0 ;
10412 wxRect temp2 ;
10413 PyObject * obj0 = 0 ;
10414 PyObject * obj1 = 0 ;
10415 char *kwnames[] = {
10416 (char *) "self",(char *) "rect", NULL
10417 };
10418
10419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10421 {
10422 arg2 = &temp2;
10423 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10424 }
10425 {
10426 PyThreadState* __tstate = wxPyBeginAllowThreads();
10427 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10428
10429 wxPyEndAllowThreads(__tstate);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 }
10432 Py_INCREF(Py_None); resultobj = Py_None;
10433 return resultobj;
10434 fail:
10435 return NULL;
10436 }
10437
10438
10439 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10440 PyObject *resultobj;
10441 wxDC *arg1 = (wxDC *) 0 ;
10442 int arg2 ;
10443 int arg3 ;
10444 int arg4 ;
10445 int arg5 ;
10446 double arg6 ;
10447 double arg7 ;
10448 PyObject * obj0 = 0 ;
10449 PyObject * obj1 = 0 ;
10450 PyObject * obj2 = 0 ;
10451 PyObject * obj3 = 0 ;
10452 PyObject * obj4 = 0 ;
10453 PyObject * obj5 = 0 ;
10454 PyObject * obj6 = 0 ;
10455 char *kwnames[] = {
10456 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10457 };
10458
10459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10460 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10461 {
10462 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 }
10465 {
10466 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 {
10470 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 {
10474 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10475 if (PyErr_Occurred()) SWIG_fail;
10476 }
10477 {
10478 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 {
10482 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
10483 if (PyErr_Occurred()) SWIG_fail;
10484 }
10485 {
10486 PyThreadState* __tstate = wxPyBeginAllowThreads();
10487 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10488
10489 wxPyEndAllowThreads(__tstate);
10490 if (PyErr_Occurred()) SWIG_fail;
10491 }
10492 Py_INCREF(Py_None); resultobj = Py_None;
10493 return resultobj;
10494 fail:
10495 return NULL;
10496 }
10497
10498
10499 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10500 PyObject *resultobj;
10501 wxDC *arg1 = (wxDC *) 0 ;
10502 wxPoint *arg2 = 0 ;
10503 wxSize *arg3 = 0 ;
10504 double arg4 ;
10505 double arg5 ;
10506 wxPoint temp2 ;
10507 wxSize temp3 ;
10508 PyObject * obj0 = 0 ;
10509 PyObject * obj1 = 0 ;
10510 PyObject * obj2 = 0 ;
10511 PyObject * obj3 = 0 ;
10512 PyObject * obj4 = 0 ;
10513 char *kwnames[] = {
10514 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10515 };
10516
10517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10519 {
10520 arg2 = &temp2;
10521 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10522 }
10523 {
10524 arg3 = &temp3;
10525 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10526 }
10527 {
10528 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10529 if (PyErr_Occurred()) SWIG_fail;
10530 }
10531 {
10532 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 }
10535 {
10536 PyThreadState* __tstate = wxPyBeginAllowThreads();
10537 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10538
10539 wxPyEndAllowThreads(__tstate);
10540 if (PyErr_Occurred()) SWIG_fail;
10541 }
10542 Py_INCREF(Py_None); resultobj = Py_None;
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj;
10551 wxDC *arg1 = (wxDC *) 0 ;
10552 int arg2 ;
10553 int arg3 ;
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_DrawPointXY",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 (arg1)->DrawPoint(arg2,arg3);
10574
10575 wxPyEndAllowThreads(__tstate);
10576 if (PyErr_Occurred()) SWIG_fail;
10577 }
10578 Py_INCREF(Py_None); resultobj = Py_None;
10579 return resultobj;
10580 fail:
10581 return NULL;
10582 }
10583
10584
10585 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10586 PyObject *resultobj;
10587 wxDC *arg1 = (wxDC *) 0 ;
10588 wxPoint *arg2 = 0 ;
10589 wxPoint temp2 ;
10590 PyObject * obj0 = 0 ;
10591 PyObject * obj1 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self",(char *) "pt", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10597 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10598 {
10599 arg2 = &temp2;
10600 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10601 }
10602 {
10603 PyThreadState* __tstate = wxPyBeginAllowThreads();
10604 (arg1)->DrawPoint((wxPoint const &)*arg2);
10605
10606 wxPyEndAllowThreads(__tstate);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 }
10609 Py_INCREF(Py_None); resultobj = Py_None;
10610 return resultobj;
10611 fail:
10612 return NULL;
10613 }
10614
10615
10616 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10617 PyObject *resultobj;
10618 wxDC *arg1 = (wxDC *) 0 ;
10619 int arg2 ;
10620 int arg3 ;
10621 int arg4 ;
10622 int arg5 ;
10623 PyObject * obj0 = 0 ;
10624 PyObject * obj1 = 0 ;
10625 PyObject * obj2 = 0 ;
10626 PyObject * obj3 = 0 ;
10627 PyObject * obj4 = 0 ;
10628 char *kwnames[] = {
10629 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10630 };
10631
10632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10633 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10634 {
10635 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 }
10638 {
10639 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 }
10642 {
10643 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 }
10646 {
10647 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 }
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10653
10654 wxPyEndAllowThreads(__tstate);
10655 if (PyErr_Occurred()) SWIG_fail;
10656 }
10657 Py_INCREF(Py_None); resultobj = Py_None;
10658 return resultobj;
10659 fail:
10660 return NULL;
10661 }
10662
10663
10664 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj;
10666 wxDC *arg1 = (wxDC *) 0 ;
10667 wxPoint *arg2 = 0 ;
10668 wxSize *arg3 = 0 ;
10669 wxPoint temp2 ;
10670 wxSize temp3 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 PyObject * obj2 = 0 ;
10674 char *kwnames[] = {
10675 (char *) "self",(char *) "pt",(char *) "sz", NULL
10676 };
10677
10678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10679 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10680 {
10681 arg2 = &temp2;
10682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10683 }
10684 {
10685 arg3 = &temp3;
10686 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10687 }
10688 {
10689 PyThreadState* __tstate = wxPyBeginAllowThreads();
10690 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10691
10692 wxPyEndAllowThreads(__tstate);
10693 if (PyErr_Occurred()) SWIG_fail;
10694 }
10695 Py_INCREF(Py_None); resultobj = Py_None;
10696 return resultobj;
10697 fail:
10698 return NULL;
10699 }
10700
10701
10702 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10703 PyObject *resultobj;
10704 wxDC *arg1 = (wxDC *) 0 ;
10705 wxRect *arg2 = 0 ;
10706 wxRect temp2 ;
10707 PyObject * obj0 = 0 ;
10708 PyObject * obj1 = 0 ;
10709 char *kwnames[] = {
10710 (char *) "self",(char *) "rect", NULL
10711 };
10712
10713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10715 {
10716 arg2 = &temp2;
10717 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10718 }
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 (arg1)->DrawRectangle((wxRect const &)*arg2);
10722
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 Py_INCREF(Py_None); resultobj = Py_None;
10727 return resultobj;
10728 fail:
10729 return NULL;
10730 }
10731
10732
10733 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10734 PyObject *resultobj;
10735 wxDC *arg1 = (wxDC *) 0 ;
10736 int arg2 ;
10737 int arg3 ;
10738 int arg4 ;
10739 int arg5 ;
10740 double arg6 ;
10741 PyObject * obj0 = 0 ;
10742 PyObject * obj1 = 0 ;
10743 PyObject * obj2 = 0 ;
10744 PyObject * obj3 = 0 ;
10745 PyObject * obj4 = 0 ;
10746 PyObject * obj5 = 0 ;
10747 char *kwnames[] = {
10748 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10749 };
10750
10751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10753 {
10754 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 }
10757 {
10758 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 }
10761 {
10762 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 {
10766 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 {
10770 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 {
10774 PyThreadState* __tstate = wxPyBeginAllowThreads();
10775 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10776
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 Py_INCREF(Py_None); resultobj = Py_None;
10781 return resultobj;
10782 fail:
10783 return NULL;
10784 }
10785
10786
10787 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10788 PyObject *resultobj;
10789 wxDC *arg1 = (wxDC *) 0 ;
10790 wxPoint *arg2 = 0 ;
10791 wxSize *arg3 = 0 ;
10792 double arg4 ;
10793 wxPoint temp2 ;
10794 wxSize temp3 ;
10795 PyObject * obj0 = 0 ;
10796 PyObject * obj1 = 0 ;
10797 PyObject * obj2 = 0 ;
10798 PyObject * obj3 = 0 ;
10799 char *kwnames[] = {
10800 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10801 };
10802
10803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10805 {
10806 arg2 = &temp2;
10807 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10808 }
10809 {
10810 arg3 = &temp3;
10811 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10812 }
10813 {
10814 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10815 if (PyErr_Occurred()) SWIG_fail;
10816 }
10817 {
10818 PyThreadState* __tstate = wxPyBeginAllowThreads();
10819 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10820
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 Py_INCREF(Py_None); resultobj = Py_None;
10825 return resultobj;
10826 fail:
10827 return NULL;
10828 }
10829
10830
10831 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10832 PyObject *resultobj;
10833 wxDC *arg1 = (wxDC *) 0 ;
10834 wxRect *arg2 = 0 ;
10835 double arg3 ;
10836 wxRect temp2 ;
10837 PyObject * obj0 = 0 ;
10838 PyObject * obj1 = 0 ;
10839 PyObject * obj2 = 0 ;
10840 char *kwnames[] = {
10841 (char *) "self",(char *) "r",(char *) "radius", NULL
10842 };
10843
10844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
10845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10846 {
10847 arg2 = &temp2;
10848 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10849 }
10850 {
10851 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10857
10858 wxPyEndAllowThreads(__tstate);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 Py_INCREF(Py_None); resultobj = Py_None;
10862 return resultobj;
10863 fail:
10864 return NULL;
10865 }
10866
10867
10868 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj;
10870 wxDC *arg1 = (wxDC *) 0 ;
10871 int arg2 ;
10872 int arg3 ;
10873 int arg4 ;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 PyObject * obj2 = 0 ;
10877 PyObject * obj3 = 0 ;
10878 char *kwnames[] = {
10879 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10880 };
10881
10882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10883 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10884 {
10885 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10886 if (PyErr_Occurred()) SWIG_fail;
10887 }
10888 {
10889 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 {
10893 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 }
10896 {
10897 PyThreadState* __tstate = wxPyBeginAllowThreads();
10898 (arg1)->DrawCircle(arg2,arg3,arg4);
10899
10900 wxPyEndAllowThreads(__tstate);
10901 if (PyErr_Occurred()) SWIG_fail;
10902 }
10903 Py_INCREF(Py_None); resultobj = Py_None;
10904 return resultobj;
10905 fail:
10906 return NULL;
10907 }
10908
10909
10910 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10911 PyObject *resultobj;
10912 wxDC *arg1 = (wxDC *) 0 ;
10913 wxPoint *arg2 = 0 ;
10914 int arg3 ;
10915 wxPoint temp2 ;
10916 PyObject * obj0 = 0 ;
10917 PyObject * obj1 = 0 ;
10918 PyObject * obj2 = 0 ;
10919 char *kwnames[] = {
10920 (char *) "self",(char *) "pt",(char *) "radius", NULL
10921 };
10922
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10925 {
10926 arg2 = &temp2;
10927 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10928 }
10929 {
10930 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 }
10933 {
10934 PyThreadState* __tstate = wxPyBeginAllowThreads();
10935 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10936
10937 wxPyEndAllowThreads(__tstate);
10938 if (PyErr_Occurred()) SWIG_fail;
10939 }
10940 Py_INCREF(Py_None); resultobj = Py_None;
10941 return resultobj;
10942 fail:
10943 return NULL;
10944 }
10945
10946
10947 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10948 PyObject *resultobj;
10949 wxDC *arg1 = (wxDC *) 0 ;
10950 int arg2 ;
10951 int arg3 ;
10952 int arg4 ;
10953 int arg5 ;
10954 PyObject * obj0 = 0 ;
10955 PyObject * obj1 = 0 ;
10956 PyObject * obj2 = 0 ;
10957 PyObject * obj3 = 0 ;
10958 PyObject * obj4 = 0 ;
10959 char *kwnames[] = {
10960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10961 };
10962
10963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10965 {
10966 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 {
10970 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 {
10974 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 {
10978 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10979 if (PyErr_Occurred()) SWIG_fail;
10980 }
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10984
10985 wxPyEndAllowThreads(__tstate);
10986 if (PyErr_Occurred()) SWIG_fail;
10987 }
10988 Py_INCREF(Py_None); resultobj = Py_None;
10989 return resultobj;
10990 fail:
10991 return NULL;
10992 }
10993
10994
10995 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj;
10997 wxDC *arg1 = (wxDC *) 0 ;
10998 wxPoint *arg2 = 0 ;
10999 wxSize *arg3 = 0 ;
11000 wxPoint temp2 ;
11001 wxSize temp3 ;
11002 PyObject * obj0 = 0 ;
11003 PyObject * obj1 = 0 ;
11004 PyObject * obj2 = 0 ;
11005 char *kwnames[] = {
11006 (char *) "self",(char *) "pt",(char *) "sz", NULL
11007 };
11008
11009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
11010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11011 {
11012 arg2 = &temp2;
11013 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11014 }
11015 {
11016 arg3 = &temp3;
11017 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11018 }
11019 {
11020 PyThreadState* __tstate = wxPyBeginAllowThreads();
11021 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11022
11023 wxPyEndAllowThreads(__tstate);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 }
11026 Py_INCREF(Py_None); resultobj = Py_None;
11027 return resultobj;
11028 fail:
11029 return NULL;
11030 }
11031
11032
11033 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11034 PyObject *resultobj;
11035 wxDC *arg1 = (wxDC *) 0 ;
11036 wxRect *arg2 = 0 ;
11037 wxRect temp2 ;
11038 PyObject * obj0 = 0 ;
11039 PyObject * obj1 = 0 ;
11040 char *kwnames[] = {
11041 (char *) "self",(char *) "rect", NULL
11042 };
11043
11044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11046 {
11047 arg2 = &temp2;
11048 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 (arg1)->DrawEllipse((wxRect const &)*arg2);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 Py_INCREF(Py_None); resultobj = Py_None;
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj;
11066 wxDC *arg1 = (wxDC *) 0 ;
11067 wxIcon *arg2 = 0 ;
11068 int arg3 ;
11069 int arg4 ;
11070 PyObject * obj0 = 0 ;
11071 PyObject * obj1 = 0 ;
11072 PyObject * obj2 = 0 ;
11073 PyObject * obj3 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11080 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11081 if (arg2 == NULL) {
11082 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11083 }
11084 {
11085 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 {
11089 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11090 if (PyErr_Occurred()) SWIG_fail;
11091 }
11092 {
11093 PyThreadState* __tstate = wxPyBeginAllowThreads();
11094 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11095
11096 wxPyEndAllowThreads(__tstate);
11097 if (PyErr_Occurred()) SWIG_fail;
11098 }
11099 Py_INCREF(Py_None); resultobj = Py_None;
11100 return resultobj;
11101 fail:
11102 return NULL;
11103 }
11104
11105
11106 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11107 PyObject *resultobj;
11108 wxDC *arg1 = (wxDC *) 0 ;
11109 wxIcon *arg2 = 0 ;
11110 wxPoint *arg3 = 0 ;
11111 wxPoint temp3 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 PyObject * obj2 = 0 ;
11115 char *kwnames[] = {
11116 (char *) "self",(char *) "icon",(char *) "pt", NULL
11117 };
11118
11119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11120 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11121 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11122 if (arg2 == NULL) {
11123 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11124 }
11125 {
11126 arg3 = &temp3;
11127 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11128 }
11129 {
11130 PyThreadState* __tstate = wxPyBeginAllowThreads();
11131 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11132
11133 wxPyEndAllowThreads(__tstate);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 Py_INCREF(Py_None); resultobj = Py_None;
11137 return resultobj;
11138 fail:
11139 return NULL;
11140 }
11141
11142
11143 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11144 PyObject *resultobj;
11145 wxDC *arg1 = (wxDC *) 0 ;
11146 wxBitmap *arg2 = 0 ;
11147 int arg3 ;
11148 int arg4 ;
11149 bool arg5 = (bool) False ;
11150 PyObject * obj0 = 0 ;
11151 PyObject * obj1 = 0 ;
11152 PyObject * obj2 = 0 ;
11153 PyObject * obj3 = 0 ;
11154 PyObject * obj4 = 0 ;
11155 char *kwnames[] = {
11156 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11157 };
11158
11159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11161 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11162 if (arg2 == NULL) {
11163 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11164 }
11165 {
11166 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 }
11169 {
11170 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11171 if (PyErr_Occurred()) SWIG_fail;
11172 }
11173 if (obj4) {
11174 {
11175 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11176 if (PyErr_Occurred()) SWIG_fail;
11177 }
11178 }
11179 {
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11182
11183 wxPyEndAllowThreads(__tstate);
11184 if (PyErr_Occurred()) SWIG_fail;
11185 }
11186 Py_INCREF(Py_None); resultobj = Py_None;
11187 return resultobj;
11188 fail:
11189 return NULL;
11190 }
11191
11192
11193 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11194 PyObject *resultobj;
11195 wxDC *arg1 = (wxDC *) 0 ;
11196 wxBitmap *arg2 = 0 ;
11197 wxPoint *arg3 = 0 ;
11198 bool arg4 = (bool) False ;
11199 wxPoint temp3 ;
11200 PyObject * obj0 = 0 ;
11201 PyObject * obj1 = 0 ;
11202 PyObject * obj2 = 0 ;
11203 PyObject * obj3 = 0 ;
11204 char *kwnames[] = {
11205 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11206 };
11207
11208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11210 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11211 if (arg2 == NULL) {
11212 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11213 }
11214 {
11215 arg3 = &temp3;
11216 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11217 }
11218 if (obj3) {
11219 {
11220 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 }
11224 {
11225 PyThreadState* __tstate = wxPyBeginAllowThreads();
11226 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11227
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 Py_INCREF(Py_None); resultobj = Py_None;
11232 return resultobj;
11233 fail:
11234 return NULL;
11235 }
11236
11237
11238 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj;
11240 wxDC *arg1 = (wxDC *) 0 ;
11241 wxString *arg2 = 0 ;
11242 int arg3 ;
11243 int arg4 ;
11244 bool temp2 = False ;
11245 PyObject * obj0 = 0 ;
11246 PyObject * obj1 = 0 ;
11247 PyObject * obj2 = 0 ;
11248 PyObject * obj3 = 0 ;
11249 char *kwnames[] = {
11250 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11251 };
11252
11253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11255 {
11256 arg2 = wxString_in_helper(obj1);
11257 if (arg2 == NULL) SWIG_fail;
11258 temp2 = True;
11259 }
11260 {
11261 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 {
11265 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 {
11269 PyThreadState* __tstate = wxPyBeginAllowThreads();
11270 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11271
11272 wxPyEndAllowThreads(__tstate);
11273 if (PyErr_Occurred()) SWIG_fail;
11274 }
11275 Py_INCREF(Py_None); resultobj = Py_None;
11276 {
11277 if (temp2)
11278 delete arg2;
11279 }
11280 return resultobj;
11281 fail:
11282 {
11283 if (temp2)
11284 delete arg2;
11285 }
11286 return NULL;
11287 }
11288
11289
11290 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj;
11292 wxDC *arg1 = (wxDC *) 0 ;
11293 wxString *arg2 = 0 ;
11294 wxPoint *arg3 = 0 ;
11295 bool temp2 = False ;
11296 wxPoint temp3 ;
11297 PyObject * obj0 = 0 ;
11298 PyObject * obj1 = 0 ;
11299 PyObject * obj2 = 0 ;
11300 char *kwnames[] = {
11301 (char *) "self",(char *) "text",(char *) "pt", NULL
11302 };
11303
11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11306 {
11307 arg2 = wxString_in_helper(obj1);
11308 if (arg2 == NULL) SWIG_fail;
11309 temp2 = True;
11310 }
11311 {
11312 arg3 = &temp3;
11313 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11314 }
11315 {
11316 PyThreadState* __tstate = wxPyBeginAllowThreads();
11317 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11318
11319 wxPyEndAllowThreads(__tstate);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 }
11322 Py_INCREF(Py_None); resultobj = Py_None;
11323 {
11324 if (temp2)
11325 delete arg2;
11326 }
11327 return resultobj;
11328 fail:
11329 {
11330 if (temp2)
11331 delete arg2;
11332 }
11333 return NULL;
11334 }
11335
11336
11337 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11338 PyObject *resultobj;
11339 wxDC *arg1 = (wxDC *) 0 ;
11340 wxString *arg2 = 0 ;
11341 int arg3 ;
11342 int arg4 ;
11343 double arg5 ;
11344 bool temp2 = False ;
11345 PyObject * obj0 = 0 ;
11346 PyObject * obj1 = 0 ;
11347 PyObject * obj2 = 0 ;
11348 PyObject * obj3 = 0 ;
11349 PyObject * obj4 = 0 ;
11350 char *kwnames[] = {
11351 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11352 };
11353
11354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11356 {
11357 arg2 = wxString_in_helper(obj1);
11358 if (arg2 == NULL) SWIG_fail;
11359 temp2 = True;
11360 }
11361 {
11362 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11363 if (PyErr_Occurred()) SWIG_fail;
11364 }
11365 {
11366 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11367 if (PyErr_Occurred()) SWIG_fail;
11368 }
11369 {
11370 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11371 if (PyErr_Occurred()) SWIG_fail;
11372 }
11373 {
11374 PyThreadState* __tstate = wxPyBeginAllowThreads();
11375 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11376
11377 wxPyEndAllowThreads(__tstate);
11378 if (PyErr_Occurred()) SWIG_fail;
11379 }
11380 Py_INCREF(Py_None); resultobj = Py_None;
11381 {
11382 if (temp2)
11383 delete arg2;
11384 }
11385 return resultobj;
11386 fail:
11387 {
11388 if (temp2)
11389 delete arg2;
11390 }
11391 return NULL;
11392 }
11393
11394
11395 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11396 PyObject *resultobj;
11397 wxDC *arg1 = (wxDC *) 0 ;
11398 wxString *arg2 = 0 ;
11399 wxPoint *arg3 = 0 ;
11400 double arg4 ;
11401 bool temp2 = False ;
11402 wxPoint temp3 ;
11403 PyObject * obj0 = 0 ;
11404 PyObject * obj1 = 0 ;
11405 PyObject * obj2 = 0 ;
11406 PyObject * obj3 = 0 ;
11407 char *kwnames[] = {
11408 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11409 };
11410
11411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11413 {
11414 arg2 = wxString_in_helper(obj1);
11415 if (arg2 == NULL) SWIG_fail;
11416 temp2 = True;
11417 }
11418 {
11419 arg3 = &temp3;
11420 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11421 }
11422 {
11423 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 }
11426 {
11427 PyThreadState* __tstate = wxPyBeginAllowThreads();
11428 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11429
11430 wxPyEndAllowThreads(__tstate);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 Py_INCREF(Py_None); resultobj = Py_None;
11434 {
11435 if (temp2)
11436 delete arg2;
11437 }
11438 return resultobj;
11439 fail:
11440 {
11441 if (temp2)
11442 delete arg2;
11443 }
11444 return NULL;
11445 }
11446
11447
11448 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11449 PyObject *resultobj;
11450 wxDC *arg1 = (wxDC *) 0 ;
11451 int arg2 ;
11452 int arg3 ;
11453 int arg4 ;
11454 int arg5 ;
11455 wxDC *arg6 = (wxDC *) 0 ;
11456 int arg7 ;
11457 int arg8 ;
11458 int arg9 = (int) wxCOPY ;
11459 bool arg10 = (bool) False ;
11460 int arg11 = (int) -1 ;
11461 int arg12 = (int) -1 ;
11462 bool result;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 PyObject * obj2 = 0 ;
11466 PyObject * obj3 = 0 ;
11467 PyObject * obj4 = 0 ;
11468 PyObject * obj5 = 0 ;
11469 PyObject * obj6 = 0 ;
11470 PyObject * obj7 = 0 ;
11471 PyObject * obj8 = 0 ;
11472 PyObject * obj9 = 0 ;
11473 PyObject * obj10 = 0 ;
11474 PyObject * obj11 = 0 ;
11475 char *kwnames[] = {
11476 (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
11477 };
11478
11479 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;
11480 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11481 {
11482 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 }
11485 {
11486 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11487 if (PyErr_Occurred()) SWIG_fail;
11488 }
11489 {
11490 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11491 if (PyErr_Occurred()) SWIG_fail;
11492 }
11493 {
11494 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11495 if (PyErr_Occurred()) SWIG_fail;
11496 }
11497 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11498 {
11499 arg7 = (int) SWIG_PyObj_AsInt(obj6);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 }
11502 {
11503 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 }
11506 if (obj8) {
11507 {
11508 arg9 = (int) SWIG_PyObj_AsInt(obj8);
11509 if (PyErr_Occurred()) SWIG_fail;
11510 }
11511 }
11512 if (obj9) {
11513 {
11514 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
11515 if (PyErr_Occurred()) SWIG_fail;
11516 }
11517 }
11518 if (obj10) {
11519 {
11520 arg11 = (int) SWIG_PyObj_AsInt(obj10);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 }
11524 if (obj11) {
11525 {
11526 arg12 = (int) SWIG_PyObj_AsInt(obj11);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 }
11530 {
11531 PyThreadState* __tstate = wxPyBeginAllowThreads();
11532 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11533
11534 wxPyEndAllowThreads(__tstate);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 }
11537 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11538 return resultobj;
11539 fail:
11540 return NULL;
11541 }
11542
11543
11544 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11545 PyObject *resultobj;
11546 wxDC *arg1 = (wxDC *) 0 ;
11547 wxPoint *arg2 = 0 ;
11548 wxSize *arg3 = 0 ;
11549 wxDC *arg4 = (wxDC *) 0 ;
11550 wxPoint *arg5 = 0 ;
11551 int arg6 = (int) wxCOPY ;
11552 bool arg7 = (bool) False ;
11553 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11554 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11555 bool result;
11556 wxPoint temp2 ;
11557 wxSize temp3 ;
11558 wxPoint temp5 ;
11559 wxPoint temp8 ;
11560 PyObject * obj0 = 0 ;
11561 PyObject * obj1 = 0 ;
11562 PyObject * obj2 = 0 ;
11563 PyObject * obj3 = 0 ;
11564 PyObject * obj4 = 0 ;
11565 PyObject * obj5 = 0 ;
11566 PyObject * obj6 = 0 ;
11567 PyObject * obj7 = 0 ;
11568 char *kwnames[] = {
11569 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11570 };
11571
11572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11574 {
11575 arg2 = &temp2;
11576 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11577 }
11578 {
11579 arg3 = &temp3;
11580 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11581 }
11582 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11583 {
11584 arg5 = &temp5;
11585 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11586 }
11587 if (obj5) {
11588 {
11589 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 }
11593 if (obj6) {
11594 {
11595 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 }
11599 if (obj7) {
11600 {
11601 arg8 = &temp8;
11602 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11603 }
11604 }
11605 {
11606 PyThreadState* __tstate = wxPyBeginAllowThreads();
11607 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11608
11609 wxPyEndAllowThreads(__tstate);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 }
11612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj;
11621 wxDC *arg1 = (wxDC *) 0 ;
11622 int arg2 ;
11623 wxPoint *arg3 = (wxPoint *) 0 ;
11624 int arg4 = (int) 0 ;
11625 int arg5 = (int) 0 ;
11626 PyObject * obj0 = 0 ;
11627 PyObject * obj1 = 0 ;
11628 PyObject * obj2 = 0 ;
11629 PyObject * obj3 = 0 ;
11630 char *kwnames[] = {
11631 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11632 };
11633
11634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11635 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11636 {
11637 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11638 if (arg3 == NULL) SWIG_fail;
11639 }
11640 if (obj2) {
11641 {
11642 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 }
11646 if (obj3) {
11647 {
11648 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 }
11652 {
11653 PyThreadState* __tstate = wxPyBeginAllowThreads();
11654 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11655
11656 wxPyEndAllowThreads(__tstate);
11657 if (PyErr_Occurred()) SWIG_fail;
11658 }
11659 Py_INCREF(Py_None); resultobj = Py_None;
11660 {
11661 if (arg3) delete [] arg3;
11662 }
11663 return resultobj;
11664 fail:
11665 {
11666 if (arg3) delete [] arg3;
11667 }
11668 return NULL;
11669 }
11670
11671
11672 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj;
11674 wxDC *arg1 = (wxDC *) 0 ;
11675 int arg2 ;
11676 wxPoint *arg3 = (wxPoint *) 0 ;
11677 int arg4 = (int) 0 ;
11678 int arg5 = (int) 0 ;
11679 int arg6 = (int) wxODDEVEN_RULE ;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 PyObject * obj2 = 0 ;
11683 PyObject * obj3 = 0 ;
11684 PyObject * obj4 = 0 ;
11685 char *kwnames[] = {
11686 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11687 };
11688
11689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11691 {
11692 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11693 if (arg3 == NULL) SWIG_fail;
11694 }
11695 if (obj2) {
11696 {
11697 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 }
11701 if (obj3) {
11702 {
11703 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11704 if (PyErr_Occurred()) SWIG_fail;
11705 }
11706 }
11707 if (obj4) {
11708 {
11709 arg6 = (int) SWIG_PyObj_AsInt(obj4);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 }
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11716
11717 wxPyEndAllowThreads(__tstate);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 Py_INCREF(Py_None); resultobj = Py_None;
11721 {
11722 if (arg3) delete [] arg3;
11723 }
11724 return resultobj;
11725 fail:
11726 {
11727 if (arg3) delete [] arg3;
11728 }
11729 return NULL;
11730 }
11731
11732
11733 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11734 PyObject *resultobj;
11735 wxDC *arg1 = (wxDC *) 0 ;
11736 wxString *arg2 = 0 ;
11737 wxRect *arg3 = 0 ;
11738 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11739 int arg5 = (int) -1 ;
11740 bool temp2 = False ;
11741 wxRect temp3 ;
11742 PyObject * obj0 = 0 ;
11743 PyObject * obj1 = 0 ;
11744 PyObject * obj2 = 0 ;
11745 PyObject * obj3 = 0 ;
11746 PyObject * obj4 = 0 ;
11747 char *kwnames[] = {
11748 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11749 };
11750
11751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11752 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11753 {
11754 arg2 = wxString_in_helper(obj1);
11755 if (arg2 == NULL) SWIG_fail;
11756 temp2 = True;
11757 }
11758 {
11759 arg3 = &temp3;
11760 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11761 }
11762 if (obj3) {
11763 {
11764 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11765 if (PyErr_Occurred()) SWIG_fail;
11766 }
11767 }
11768 if (obj4) {
11769 {
11770 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11771 if (PyErr_Occurred()) SWIG_fail;
11772 }
11773 }
11774 {
11775 PyThreadState* __tstate = wxPyBeginAllowThreads();
11776 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11777
11778 wxPyEndAllowThreads(__tstate);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 }
11781 Py_INCREF(Py_None); resultobj = Py_None;
11782 {
11783 if (temp2)
11784 delete arg2;
11785 }
11786 return resultobj;
11787 fail:
11788 {
11789 if (temp2)
11790 delete arg2;
11791 }
11792 return NULL;
11793 }
11794
11795
11796 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11797 PyObject *resultobj;
11798 wxDC *arg1 = (wxDC *) 0 ;
11799 wxString *arg2 = 0 ;
11800 wxBitmap *arg3 = 0 ;
11801 wxRect *arg4 = 0 ;
11802 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11803 int arg6 = (int) -1 ;
11804 wxRect result;
11805 bool temp2 = False ;
11806 wxRect temp4 ;
11807 PyObject * obj0 = 0 ;
11808 PyObject * obj1 = 0 ;
11809 PyObject * obj2 = 0 ;
11810 PyObject * obj3 = 0 ;
11811 PyObject * obj4 = 0 ;
11812 PyObject * obj5 = 0 ;
11813 char *kwnames[] = {
11814 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11815 };
11816
11817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11819 {
11820 arg2 = wxString_in_helper(obj1);
11821 if (arg2 == NULL) SWIG_fail;
11822 temp2 = True;
11823 }
11824 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11825 if (arg3 == NULL) {
11826 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11827 }
11828 {
11829 arg4 = &temp4;
11830 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11831 }
11832 if (obj4) {
11833 {
11834 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11835 if (PyErr_Occurred()) SWIG_fail;
11836 }
11837 }
11838 if (obj5) {
11839 {
11840 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11841 if (PyErr_Occurred()) SWIG_fail;
11842 }
11843 }
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11847
11848 wxPyEndAllowThreads(__tstate);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 }
11851 {
11852 wxRect * resultptr;
11853 resultptr = new wxRect((wxRect &) result);
11854 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11855 }
11856 {
11857 if (temp2)
11858 delete arg2;
11859 }
11860 return resultobj;
11861 fail:
11862 {
11863 if (temp2)
11864 delete arg2;
11865 }
11866 return NULL;
11867 }
11868
11869
11870 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11871 PyObject *resultobj;
11872 wxDC *arg1 = (wxDC *) 0 ;
11873 int arg2 ;
11874 wxPoint *arg3 = (wxPoint *) 0 ;
11875 PyObject * obj0 = 0 ;
11876 PyObject * obj1 = 0 ;
11877 char *kwnames[] = {
11878 (char *) "self",(char *) "points", NULL
11879 };
11880
11881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11883 {
11884 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11885 if (arg3 == NULL) SWIG_fail;
11886 }
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 (arg1)->DrawSpline(arg2,arg3);
11890
11891 wxPyEndAllowThreads(__tstate);
11892 if (PyErr_Occurred()) SWIG_fail;
11893 }
11894 Py_INCREF(Py_None); resultobj = Py_None;
11895 {
11896 if (arg3) delete [] arg3;
11897 }
11898 return resultobj;
11899 fail:
11900 {
11901 if (arg3) delete [] arg3;
11902 }
11903 return NULL;
11904 }
11905
11906
11907 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11908 PyObject *resultobj;
11909 wxDC *arg1 = (wxDC *) 0 ;
11910 PyObject * obj0 = 0 ;
11911 char *kwnames[] = {
11912 (char *) "self", NULL
11913 };
11914
11915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11917 {
11918 PyThreadState* __tstate = wxPyBeginAllowThreads();
11919 (arg1)->Clear();
11920
11921 wxPyEndAllowThreads(__tstate);
11922 if (PyErr_Occurred()) SWIG_fail;
11923 }
11924 Py_INCREF(Py_None); resultobj = Py_None;
11925 return resultobj;
11926 fail:
11927 return NULL;
11928 }
11929
11930
11931 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11932 PyObject *resultobj;
11933 wxDC *arg1 = (wxDC *) 0 ;
11934 wxString *arg2 = 0 ;
11935 bool result;
11936 bool temp2 = False ;
11937 PyObject * obj0 = 0 ;
11938 PyObject * obj1 = 0 ;
11939 char *kwnames[] = {
11940 (char *) "self",(char *) "message", NULL
11941 };
11942
11943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11944 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11945 {
11946 arg2 = wxString_in_helper(obj1);
11947 if (arg2 == NULL) SWIG_fail;
11948 temp2 = True;
11949 }
11950 {
11951 PyThreadState* __tstate = wxPyBeginAllowThreads();
11952 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11953
11954 wxPyEndAllowThreads(__tstate);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11958 {
11959 if (temp2)
11960 delete arg2;
11961 }
11962 return resultobj;
11963 fail:
11964 {
11965 if (temp2)
11966 delete arg2;
11967 }
11968 return NULL;
11969 }
11970
11971
11972 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11973 PyObject *resultobj;
11974 wxDC *arg1 = (wxDC *) 0 ;
11975 PyObject * obj0 = 0 ;
11976 char *kwnames[] = {
11977 (char *) "self", NULL
11978 };
11979
11980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11981 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11982 {
11983 PyThreadState* __tstate = wxPyBeginAllowThreads();
11984 (arg1)->EndDoc();
11985
11986 wxPyEndAllowThreads(__tstate);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 }
11989 Py_INCREF(Py_None); resultobj = Py_None;
11990 return resultobj;
11991 fail:
11992 return NULL;
11993 }
11994
11995
11996 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11997 PyObject *resultobj;
11998 wxDC *arg1 = (wxDC *) 0 ;
11999 PyObject * obj0 = 0 ;
12000 char *kwnames[] = {
12001 (char *) "self", NULL
12002 };
12003
12004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12005 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12006 {
12007 PyThreadState* __tstate = wxPyBeginAllowThreads();
12008 (arg1)->StartPage();
12009
12010 wxPyEndAllowThreads(__tstate);
12011 if (PyErr_Occurred()) SWIG_fail;
12012 }
12013 Py_INCREF(Py_None); resultobj = Py_None;
12014 return resultobj;
12015 fail:
12016 return NULL;
12017 }
12018
12019
12020 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12021 PyObject *resultobj;
12022 wxDC *arg1 = (wxDC *) 0 ;
12023 PyObject * obj0 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "self", NULL
12026 };
12027
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 (arg1)->EndPage();
12033
12034 wxPyEndAllowThreads(__tstate);
12035 if (PyErr_Occurred()) SWIG_fail;
12036 }
12037 Py_INCREF(Py_None); resultobj = Py_None;
12038 return resultobj;
12039 fail:
12040 return NULL;
12041 }
12042
12043
12044 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12045 PyObject *resultobj;
12046 wxDC *arg1 = (wxDC *) 0 ;
12047 wxFont *arg2 = 0 ;
12048 PyObject * obj0 = 0 ;
12049 PyObject * obj1 = 0 ;
12050 char *kwnames[] = {
12051 (char *) "self",(char *) "font", NULL
12052 };
12053
12054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12056 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12057 if (arg2 == NULL) {
12058 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12059 }
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 (arg1)->SetFont((wxFont const &)*arg2);
12063
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 Py_INCREF(Py_None); resultobj = Py_None;
12068 return resultobj;
12069 fail:
12070 return NULL;
12071 }
12072
12073
12074 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj;
12076 wxDC *arg1 = (wxDC *) 0 ;
12077 wxPen *arg2 = 0 ;
12078 PyObject * obj0 = 0 ;
12079 PyObject * obj1 = 0 ;
12080 char *kwnames[] = {
12081 (char *) "self",(char *) "pen", NULL
12082 };
12083
12084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12085 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12086 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12087 if (arg2 == NULL) {
12088 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12089 }
12090 {
12091 PyThreadState* __tstate = wxPyBeginAllowThreads();
12092 (arg1)->SetPen((wxPen const &)*arg2);
12093
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 Py_INCREF(Py_None); resultobj = Py_None;
12098 return resultobj;
12099 fail:
12100 return NULL;
12101 }
12102
12103
12104 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12105 PyObject *resultobj;
12106 wxDC *arg1 = (wxDC *) 0 ;
12107 wxBrush *arg2 = 0 ;
12108 PyObject * obj0 = 0 ;
12109 PyObject * obj1 = 0 ;
12110 char *kwnames[] = {
12111 (char *) "self",(char *) "brush", NULL
12112 };
12113
12114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12115 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12116 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12117 if (arg2 == NULL) {
12118 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12119 }
12120 {
12121 PyThreadState* __tstate = wxPyBeginAllowThreads();
12122 (arg1)->SetBrush((wxBrush const &)*arg2);
12123
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 Py_INCREF(Py_None); resultobj = Py_None;
12128 return resultobj;
12129 fail:
12130 return NULL;
12131 }
12132
12133
12134 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12135 PyObject *resultobj;
12136 wxDC *arg1 = (wxDC *) 0 ;
12137 wxBrush *arg2 = 0 ;
12138 PyObject * obj0 = 0 ;
12139 PyObject * obj1 = 0 ;
12140 char *kwnames[] = {
12141 (char *) "self",(char *) "brush", NULL
12142 };
12143
12144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12145 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12146 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12147 if (arg2 == NULL) {
12148 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12149 }
12150 {
12151 PyThreadState* __tstate = wxPyBeginAllowThreads();
12152 (arg1)->SetBackground((wxBrush const &)*arg2);
12153
12154 wxPyEndAllowThreads(__tstate);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 Py_INCREF(Py_None); resultobj = Py_None;
12158 return resultobj;
12159 fail:
12160 return NULL;
12161 }
12162
12163
12164 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12165 PyObject *resultobj;
12166 wxDC *arg1 = (wxDC *) 0 ;
12167 int arg2 ;
12168 PyObject * obj0 = 0 ;
12169 PyObject * obj1 = 0 ;
12170 char *kwnames[] = {
12171 (char *) "self",(char *) "mode", NULL
12172 };
12173
12174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12176 {
12177 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12178 if (PyErr_Occurred()) SWIG_fail;
12179 }
12180 {
12181 PyThreadState* __tstate = wxPyBeginAllowThreads();
12182 (arg1)->SetBackgroundMode(arg2);
12183
12184 wxPyEndAllowThreads(__tstate);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 Py_INCREF(Py_None); resultobj = Py_None;
12188 return resultobj;
12189 fail:
12190 return NULL;
12191 }
12192
12193
12194 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12195 PyObject *resultobj;
12196 wxDC *arg1 = (wxDC *) 0 ;
12197 wxPalette *arg2 = 0 ;
12198 PyObject * obj0 = 0 ;
12199 PyObject * obj1 = 0 ;
12200 char *kwnames[] = {
12201 (char *) "self",(char *) "palette", NULL
12202 };
12203
12204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12205 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12206 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12207 if (arg2 == NULL) {
12208 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12209 }
12210 {
12211 PyThreadState* __tstate = wxPyBeginAllowThreads();
12212 (arg1)->SetPalette((wxPalette const &)*arg2);
12213
12214 wxPyEndAllowThreads(__tstate);
12215 if (PyErr_Occurred()) SWIG_fail;
12216 }
12217 Py_INCREF(Py_None); resultobj = Py_None;
12218 return resultobj;
12219 fail:
12220 return NULL;
12221 }
12222
12223
12224 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12225 PyObject *resultobj;
12226 wxDC *arg1 = (wxDC *) 0 ;
12227 int arg2 ;
12228 int arg3 ;
12229 int arg4 ;
12230 int arg5 ;
12231 PyObject * obj0 = 0 ;
12232 PyObject * obj1 = 0 ;
12233 PyObject * obj2 = 0 ;
12234 PyObject * obj3 = 0 ;
12235 PyObject * obj4 = 0 ;
12236 char *kwnames[] = {
12237 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12238 };
12239
12240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12241 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12242 {
12243 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 {
12247 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 {
12251 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12252 if (PyErr_Occurred()) SWIG_fail;
12253 }
12254 {
12255 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12256 if (PyErr_Occurred()) SWIG_fail;
12257 }
12258 {
12259 PyThreadState* __tstate = wxPyBeginAllowThreads();
12260 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12261
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 Py_INCREF(Py_None); resultobj = Py_None;
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12273 PyObject *resultobj;
12274 wxDC *arg1 = (wxDC *) 0 ;
12275 wxPoint *arg2 = 0 ;
12276 wxSize *arg3 = 0 ;
12277 wxPoint temp2 ;
12278 wxSize temp3 ;
12279 PyObject * obj0 = 0 ;
12280 PyObject * obj1 = 0 ;
12281 PyObject * obj2 = 0 ;
12282 char *kwnames[] = {
12283 (char *) "self",(char *) "pt",(char *) "sz", NULL
12284 };
12285
12286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12287 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12288 {
12289 arg2 = &temp2;
12290 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12291 }
12292 {
12293 arg3 = &temp3;
12294 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12295 }
12296 {
12297 PyThreadState* __tstate = wxPyBeginAllowThreads();
12298 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12299
12300 wxPyEndAllowThreads(__tstate);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 Py_INCREF(Py_None); resultobj = Py_None;
12304 return resultobj;
12305 fail:
12306 return NULL;
12307 }
12308
12309
12310 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12311 PyObject *resultobj;
12312 wxDC *arg1 = (wxDC *) 0 ;
12313 wxRect *arg2 = 0 ;
12314 wxRect temp2 ;
12315 PyObject * obj0 = 0 ;
12316 PyObject * obj1 = 0 ;
12317 char *kwnames[] = {
12318 (char *) "self",(char *) "rect", NULL
12319 };
12320
12321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12323 {
12324 arg2 = &temp2;
12325 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12326 }
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12330
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 Py_INCREF(Py_None); resultobj = Py_None;
12335 return resultobj;
12336 fail:
12337 return NULL;
12338 }
12339
12340
12341 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12342 PyObject *resultobj;
12343 wxDC *arg1 = (wxDC *) 0 ;
12344 wxRegion *arg2 = 0 ;
12345 PyObject * obj0 = 0 ;
12346 PyObject * obj1 = 0 ;
12347 char *kwnames[] = {
12348 (char *) "self",(char *) "region", NULL
12349 };
12350
12351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12353 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12354 if (arg2 == NULL) {
12355 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12356 }
12357 {
12358 PyThreadState* __tstate = wxPyBeginAllowThreads();
12359 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12360
12361 wxPyEndAllowThreads(__tstate);
12362 if (PyErr_Occurred()) SWIG_fail;
12363 }
12364 Py_INCREF(Py_None); resultobj = Py_None;
12365 return resultobj;
12366 fail:
12367 return NULL;
12368 }
12369
12370
12371 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj;
12373 wxDC *arg1 = (wxDC *) 0 ;
12374 PyObject * obj0 = 0 ;
12375 char *kwnames[] = {
12376 (char *) "self", NULL
12377 };
12378
12379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12380 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12381 {
12382 PyThreadState* __tstate = wxPyBeginAllowThreads();
12383 (arg1)->DestroyClippingRegion();
12384
12385 wxPyEndAllowThreads(__tstate);
12386 if (PyErr_Occurred()) SWIG_fail;
12387 }
12388 Py_INCREF(Py_None); resultobj = Py_None;
12389 return resultobj;
12390 fail:
12391 return NULL;
12392 }
12393
12394
12395 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12396 PyObject *resultobj;
12397 wxDC *arg1 = (wxDC *) 0 ;
12398 int *arg2 = (int *) 0 ;
12399 int *arg3 = (int *) 0 ;
12400 int *arg4 = (int *) 0 ;
12401 int *arg5 = (int *) 0 ;
12402 int temp2 ;
12403 int temp3 ;
12404 int temp4 ;
12405 int temp5 ;
12406 PyObject * obj0 = 0 ;
12407 char *kwnames[] = {
12408 (char *) "self", NULL
12409 };
12410
12411 arg2 = &temp2;
12412 arg3 = &temp3;
12413 arg4 = &temp4;
12414 arg5 = &temp5;
12415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12416 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12417 {
12418 PyThreadState* __tstate = wxPyBeginAllowThreads();
12419 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12420
12421 wxPyEndAllowThreads(__tstate);
12422 if (PyErr_Occurred()) SWIG_fail;
12423 }
12424 Py_INCREF(Py_None); resultobj = Py_None;
12425 {
12426 PyObject *o = PyInt_FromLong((long) (*arg2));
12427 resultobj = t_output_helper(resultobj,o);
12428 }
12429 {
12430 PyObject *o = PyInt_FromLong((long) (*arg3));
12431 resultobj = t_output_helper(resultobj,o);
12432 }
12433 {
12434 PyObject *o = PyInt_FromLong((long) (*arg4));
12435 resultobj = t_output_helper(resultobj,o);
12436 }
12437 {
12438 PyObject *o = PyInt_FromLong((long) (*arg5));
12439 resultobj = t_output_helper(resultobj,o);
12440 }
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12448 PyObject *resultobj;
12449 wxDC *arg1 = (wxDC *) 0 ;
12450 wxRect result;
12451 PyObject * obj0 = 0 ;
12452 char *kwnames[] = {
12453 (char *) "self", NULL
12454 };
12455
12456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12458 {
12459 PyThreadState* __tstate = wxPyBeginAllowThreads();
12460 result = wxDC_GetClippingRect(arg1);
12461
12462 wxPyEndAllowThreads(__tstate);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 }
12465 {
12466 wxRect * resultptr;
12467 resultptr = new wxRect((wxRect &) result);
12468 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12469 }
12470 return resultobj;
12471 fail:
12472 return NULL;
12473 }
12474
12475
12476 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12477 PyObject *resultobj;
12478 wxDC *arg1 = (wxDC *) 0 ;
12479 int result;
12480 PyObject * obj0 = 0 ;
12481 char *kwnames[] = {
12482 (char *) "self", NULL
12483 };
12484
12485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12487 {
12488 PyThreadState* __tstate = wxPyBeginAllowThreads();
12489 result = (int)((wxDC const *)arg1)->GetCharHeight();
12490
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 resultobj = SWIG_PyObj_FromInt((int)result);
12495 return resultobj;
12496 fail:
12497 return NULL;
12498 }
12499
12500
12501 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12502 PyObject *resultobj;
12503 wxDC *arg1 = (wxDC *) 0 ;
12504 int result;
12505 PyObject * obj0 = 0 ;
12506 char *kwnames[] = {
12507 (char *) "self", NULL
12508 };
12509
12510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12512 {
12513 PyThreadState* __tstate = wxPyBeginAllowThreads();
12514 result = (int)((wxDC const *)arg1)->GetCharWidth();
12515
12516 wxPyEndAllowThreads(__tstate);
12517 if (PyErr_Occurred()) SWIG_fail;
12518 }
12519 resultobj = SWIG_PyObj_FromInt((int)result);
12520 return resultobj;
12521 fail:
12522 return NULL;
12523 }
12524
12525
12526 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12527 PyObject *resultobj;
12528 wxDC *arg1 = (wxDC *) 0 ;
12529 wxString *arg2 = 0 ;
12530 int *arg3 = (int *) 0 ;
12531 int *arg4 = (int *) 0 ;
12532 bool temp2 = False ;
12533 int temp3 ;
12534 int temp4 ;
12535 PyObject * obj0 = 0 ;
12536 PyObject * obj1 = 0 ;
12537 char *kwnames[] = {
12538 (char *) "self",(char *) "string", NULL
12539 };
12540
12541 arg3 = &temp3;
12542 arg4 = &temp4;
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12545 {
12546 arg2 = wxString_in_helper(obj1);
12547 if (arg2 == NULL) SWIG_fail;
12548 temp2 = True;
12549 }
12550 {
12551 PyThreadState* __tstate = wxPyBeginAllowThreads();
12552 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12553
12554 wxPyEndAllowThreads(__tstate);
12555 if (PyErr_Occurred()) SWIG_fail;
12556 }
12557 Py_INCREF(Py_None); resultobj = Py_None;
12558 {
12559 PyObject *o = PyInt_FromLong((long) (*arg3));
12560 resultobj = t_output_helper(resultobj,o);
12561 }
12562 {
12563 PyObject *o = PyInt_FromLong((long) (*arg4));
12564 resultobj = t_output_helper(resultobj,o);
12565 }
12566 {
12567 if (temp2)
12568 delete arg2;
12569 }
12570 return resultobj;
12571 fail:
12572 {
12573 if (temp2)
12574 delete arg2;
12575 }
12576 return NULL;
12577 }
12578
12579
12580 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12581 PyObject *resultobj;
12582 wxDC *arg1 = (wxDC *) 0 ;
12583 wxString *arg2 = 0 ;
12584 int *arg3 = (int *) 0 ;
12585 int *arg4 = (int *) 0 ;
12586 int *arg5 = (int *) 0 ;
12587 int *arg6 = (int *) 0 ;
12588 wxFont *arg7 = (wxFont *) NULL ;
12589 bool temp2 = False ;
12590 int temp3 ;
12591 int temp4 ;
12592 int temp5 ;
12593 int temp6 ;
12594 PyObject * obj0 = 0 ;
12595 PyObject * obj1 = 0 ;
12596 PyObject * obj2 = 0 ;
12597 char *kwnames[] = {
12598 (char *) "self",(char *) "string",(char *) "font", NULL
12599 };
12600
12601 arg3 = &temp3;
12602 arg4 = &temp4;
12603 arg5 = &temp5;
12604 arg6 = &temp6;
12605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12606 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12607 {
12608 arg2 = wxString_in_helper(obj1);
12609 if (arg2 == NULL) SWIG_fail;
12610 temp2 = True;
12611 }
12612 if (obj2) {
12613 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12618
12619 wxPyEndAllowThreads(__tstate);
12620 if (PyErr_Occurred()) SWIG_fail;
12621 }
12622 Py_INCREF(Py_None); resultobj = Py_None;
12623 {
12624 PyObject *o = PyInt_FromLong((long) (*arg3));
12625 resultobj = t_output_helper(resultobj,o);
12626 }
12627 {
12628 PyObject *o = PyInt_FromLong((long) (*arg4));
12629 resultobj = t_output_helper(resultobj,o);
12630 }
12631 {
12632 PyObject *o = PyInt_FromLong((long) (*arg5));
12633 resultobj = t_output_helper(resultobj,o);
12634 }
12635 {
12636 PyObject *o = PyInt_FromLong((long) (*arg6));
12637 resultobj = t_output_helper(resultobj,o);
12638 }
12639 {
12640 if (temp2)
12641 delete arg2;
12642 }
12643 return resultobj;
12644 fail:
12645 {
12646 if (temp2)
12647 delete arg2;
12648 }
12649 return NULL;
12650 }
12651
12652
12653 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj;
12655 wxDC *arg1 = (wxDC *) 0 ;
12656 wxString *arg2 = 0 ;
12657 int *arg3 = (int *) 0 ;
12658 int *arg4 = (int *) 0 ;
12659 int *arg5 = (int *) 0 ;
12660 wxFont *arg6 = (wxFont *) NULL ;
12661 bool temp2 = False ;
12662 int temp3 ;
12663 int temp4 ;
12664 int temp5 ;
12665 PyObject * obj0 = 0 ;
12666 PyObject * obj1 = 0 ;
12667 PyObject * obj2 = 0 ;
12668 char *kwnames[] = {
12669 (char *) "self",(char *) "text",(char *) "font", NULL
12670 };
12671
12672 arg3 = &temp3;
12673 arg4 = &temp4;
12674 arg5 = &temp5;
12675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12676 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12677 {
12678 arg2 = wxString_in_helper(obj1);
12679 if (arg2 == NULL) SWIG_fail;
12680 temp2 = True;
12681 }
12682 if (obj2) {
12683 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12684 }
12685 {
12686 PyThreadState* __tstate = wxPyBeginAllowThreads();
12687 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12688
12689 wxPyEndAllowThreads(__tstate);
12690 if (PyErr_Occurred()) SWIG_fail;
12691 }
12692 Py_INCREF(Py_None); resultobj = Py_None;
12693 {
12694 PyObject *o = PyInt_FromLong((long) (*arg3));
12695 resultobj = t_output_helper(resultobj,o);
12696 }
12697 {
12698 PyObject *o = PyInt_FromLong((long) (*arg4));
12699 resultobj = t_output_helper(resultobj,o);
12700 }
12701 {
12702 PyObject *o = PyInt_FromLong((long) (*arg5));
12703 resultobj = t_output_helper(resultobj,o);
12704 }
12705 {
12706 if (temp2)
12707 delete arg2;
12708 }
12709 return resultobj;
12710 fail:
12711 {
12712 if (temp2)
12713 delete arg2;
12714 }
12715 return NULL;
12716 }
12717
12718
12719 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
12720 PyObject *resultobj;
12721 wxDC *arg1 = (wxDC *) 0 ;
12722 wxString *arg2 = 0 ;
12723 wxArrayInt result;
12724 bool temp2 = False ;
12725 PyObject * obj0 = 0 ;
12726 PyObject * obj1 = 0 ;
12727 char *kwnames[] = {
12728 (char *) "self",(char *) "text", NULL
12729 };
12730
12731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
12732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12733 {
12734 arg2 = wxString_in_helper(obj1);
12735 if (arg2 == NULL) SWIG_fail;
12736 temp2 = True;
12737 }
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
12741
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 {
12746 resultobj = PyList_New(0);
12747 size_t idx;
12748 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
12749 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
12750 PyList_Append(resultobj, val);
12751 Py_DECREF(val);
12752 }
12753 }
12754 {
12755 if (temp2)
12756 delete arg2;
12757 }
12758 return resultobj;
12759 fail:
12760 {
12761 if (temp2)
12762 delete arg2;
12763 }
12764 return NULL;
12765 }
12766
12767
12768 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj;
12770 wxDC *arg1 = (wxDC *) 0 ;
12771 wxSize result;
12772 PyObject * obj0 = 0 ;
12773 char *kwnames[] = {
12774 (char *) "self", NULL
12775 };
12776
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12778 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12779 {
12780 PyThreadState* __tstate = wxPyBeginAllowThreads();
12781 result = (arg1)->GetSize();
12782
12783 wxPyEndAllowThreads(__tstate);
12784 if (PyErr_Occurred()) SWIG_fail;
12785 }
12786 {
12787 wxSize * resultptr;
12788 resultptr = new wxSize((wxSize &) result);
12789 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12790 }
12791 return resultobj;
12792 fail:
12793 return NULL;
12794 }
12795
12796
12797 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12798 PyObject *resultobj;
12799 wxDC *arg1 = (wxDC *) 0 ;
12800 int *arg2 = (int *) 0 ;
12801 int *arg3 = (int *) 0 ;
12802 int temp2 ;
12803 int temp3 ;
12804 PyObject * obj0 = 0 ;
12805 char *kwnames[] = {
12806 (char *) "self", NULL
12807 };
12808
12809 arg2 = &temp2;
12810 arg3 = &temp3;
12811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12812 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12813 {
12814 PyThreadState* __tstate = wxPyBeginAllowThreads();
12815 (arg1)->GetSize(arg2,arg3);
12816
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 Py_INCREF(Py_None); resultobj = Py_None;
12821 {
12822 PyObject *o = PyInt_FromLong((long) (*arg2));
12823 resultobj = t_output_helper(resultobj,o);
12824 }
12825 {
12826 PyObject *o = PyInt_FromLong((long) (*arg3));
12827 resultobj = t_output_helper(resultobj,o);
12828 }
12829 return resultobj;
12830 fail:
12831 return NULL;
12832 }
12833
12834
12835 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12836 PyObject *resultobj;
12837 wxDC *arg1 = (wxDC *) 0 ;
12838 wxSize result;
12839 PyObject * obj0 = 0 ;
12840 char *kwnames[] = {
12841 (char *) "self", NULL
12842 };
12843
12844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
12845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12846 {
12847 PyThreadState* __tstate = wxPyBeginAllowThreads();
12848 result = ((wxDC const *)arg1)->GetSizeMM();
12849
12850 wxPyEndAllowThreads(__tstate);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 {
12854 wxSize * resultptr;
12855 resultptr = new wxSize((wxSize &) result);
12856 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12857 }
12858 return resultobj;
12859 fail:
12860 return NULL;
12861 }
12862
12863
12864 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12865 PyObject *resultobj;
12866 wxDC *arg1 = (wxDC *) 0 ;
12867 int *arg2 = (int *) 0 ;
12868 int *arg3 = (int *) 0 ;
12869 int temp2 ;
12870 int temp3 ;
12871 PyObject * obj0 = 0 ;
12872 char *kwnames[] = {
12873 (char *) "self", NULL
12874 };
12875
12876 arg2 = &temp2;
12877 arg3 = &temp3;
12878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12883
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 Py_INCREF(Py_None); resultobj = Py_None;
12888 {
12889 PyObject *o = PyInt_FromLong((long) (*arg2));
12890 resultobj = t_output_helper(resultobj,o);
12891 }
12892 {
12893 PyObject *o = PyInt_FromLong((long) (*arg3));
12894 resultobj = t_output_helper(resultobj,o);
12895 }
12896 return resultobj;
12897 fail:
12898 return NULL;
12899 }
12900
12901
12902 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12903 PyObject *resultobj;
12904 wxDC *arg1 = (wxDC *) 0 ;
12905 int arg2 ;
12906 int result;
12907 PyObject * obj0 = 0 ;
12908 PyObject * obj1 = 0 ;
12909 char *kwnames[] = {
12910 (char *) "self",(char *) "x", NULL
12911 };
12912
12913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
12914 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12915 {
12916 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12922
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 resultobj = SWIG_PyObj_FromInt((int)result);
12927 return resultobj;
12928 fail:
12929 return NULL;
12930 }
12931
12932
12933 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12934 PyObject *resultobj;
12935 wxDC *arg1 = (wxDC *) 0 ;
12936 int arg2 ;
12937 int result;
12938 PyObject * obj0 = 0 ;
12939 PyObject * obj1 = 0 ;
12940 char *kwnames[] = {
12941 (char *) "self",(char *) "y", NULL
12942 };
12943
12944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
12945 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12946 {
12947 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12948 if (PyErr_Occurred()) SWIG_fail;
12949 }
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12953
12954 wxPyEndAllowThreads(__tstate);
12955 if (PyErr_Occurred()) SWIG_fail;
12956 }
12957 resultobj = SWIG_PyObj_FromInt((int)result);
12958 return resultobj;
12959 fail:
12960 return NULL;
12961 }
12962
12963
12964 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12965 PyObject *resultobj;
12966 wxDC *arg1 = (wxDC *) 0 ;
12967 int arg2 ;
12968 int result;
12969 PyObject * obj0 = 0 ;
12970 PyObject * obj1 = 0 ;
12971 char *kwnames[] = {
12972 (char *) "self",(char *) "x", NULL
12973 };
12974
12975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
12976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12977 {
12978 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12979 if (PyErr_Occurred()) SWIG_fail;
12980 }
12981 {
12982 PyThreadState* __tstate = wxPyBeginAllowThreads();
12983 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12984
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 resultobj = SWIG_PyObj_FromInt((int)result);
12989 return resultobj;
12990 fail:
12991 return NULL;
12992 }
12993
12994
12995 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj;
12997 wxDC *arg1 = (wxDC *) 0 ;
12998 int arg2 ;
12999 int result;
13000 PyObject * obj0 = 0 ;
13001 PyObject * obj1 = 0 ;
13002 char *kwnames[] = {
13003 (char *) "self",(char *) "y", NULL
13004 };
13005
13006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13008 {
13009 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 resultobj = SWIG_PyObj_FromInt((int)result);
13020 return resultobj;
13021 fail:
13022 return NULL;
13023 }
13024
13025
13026 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13027 PyObject *resultobj;
13028 wxDC *arg1 = (wxDC *) 0 ;
13029 int arg2 ;
13030 int result;
13031 PyObject * obj0 = 0 ;
13032 PyObject * obj1 = 0 ;
13033 char *kwnames[] = {
13034 (char *) "self",(char *) "x", NULL
13035 };
13036
13037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13039 {
13040 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
13045 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13046
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 resultobj = SWIG_PyObj_FromInt((int)result);
13051 return resultobj;
13052 fail:
13053 return NULL;
13054 }
13055
13056
13057 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj;
13059 wxDC *arg1 = (wxDC *) 0 ;
13060 int arg2 ;
13061 int result;
13062 PyObject * obj0 = 0 ;
13063 PyObject * obj1 = 0 ;
13064 char *kwnames[] = {
13065 (char *) "self",(char *) "y", NULL
13066 };
13067
13068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13070 {
13071 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13072 if (PyErr_Occurred()) SWIG_fail;
13073 }
13074 {
13075 PyThreadState* __tstate = wxPyBeginAllowThreads();
13076 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13077
13078 wxPyEndAllowThreads(__tstate);
13079 if (PyErr_Occurred()) SWIG_fail;
13080 }
13081 resultobj = SWIG_PyObj_FromInt((int)result);
13082 return resultobj;
13083 fail:
13084 return NULL;
13085 }
13086
13087
13088 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13089 PyObject *resultobj;
13090 wxDC *arg1 = (wxDC *) 0 ;
13091 int arg2 ;
13092 int result;
13093 PyObject * obj0 = 0 ;
13094 PyObject * obj1 = 0 ;
13095 char *kwnames[] = {
13096 (char *) "self",(char *) "x", NULL
13097 };
13098
13099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13101 {
13102 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 {
13106 PyThreadState* __tstate = wxPyBeginAllowThreads();
13107 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13108
13109 wxPyEndAllowThreads(__tstate);
13110 if (PyErr_Occurred()) SWIG_fail;
13111 }
13112 resultobj = SWIG_PyObj_FromInt((int)result);
13113 return resultobj;
13114 fail:
13115 return NULL;
13116 }
13117
13118
13119 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13120 PyObject *resultobj;
13121 wxDC *arg1 = (wxDC *) 0 ;
13122 int arg2 ;
13123 int result;
13124 PyObject * obj0 = 0 ;
13125 PyObject * obj1 = 0 ;
13126 char *kwnames[] = {
13127 (char *) "self",(char *) "y", NULL
13128 };
13129
13130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13131 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13132 {
13133 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13139
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 resultobj = SWIG_PyObj_FromInt((int)result);
13144 return resultobj;
13145 fail:
13146 return NULL;
13147 }
13148
13149
13150 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13151 PyObject *resultobj;
13152 wxDC *arg1 = (wxDC *) 0 ;
13153 bool result;
13154 PyObject * obj0 = 0 ;
13155 char *kwnames[] = {
13156 (char *) "self", NULL
13157 };
13158
13159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13161 {
13162 PyThreadState* __tstate = wxPyBeginAllowThreads();
13163 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13164
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13169 return resultobj;
13170 fail:
13171 return NULL;
13172 }
13173
13174
13175 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13176 PyObject *resultobj;
13177 wxDC *arg1 = (wxDC *) 0 ;
13178 bool result;
13179 PyObject * obj0 = 0 ;
13180 char *kwnames[] = {
13181 (char *) "self", NULL
13182 };
13183
13184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13189
13190 wxPyEndAllowThreads(__tstate);
13191 if (PyErr_Occurred()) SWIG_fail;
13192 }
13193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13194 return resultobj;
13195 fail:
13196 return NULL;
13197 }
13198
13199
13200 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13201 PyObject *resultobj;
13202 wxDC *arg1 = (wxDC *) 0 ;
13203 int result;
13204 PyObject * obj0 = 0 ;
13205 char *kwnames[] = {
13206 (char *) "self", NULL
13207 };
13208
13209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13211 {
13212 PyThreadState* __tstate = wxPyBeginAllowThreads();
13213 result = (int)((wxDC const *)arg1)->GetDepth();
13214
13215 wxPyEndAllowThreads(__tstate);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 }
13218 resultobj = SWIG_PyObj_FromInt((int)result);
13219 return resultobj;
13220 fail:
13221 return NULL;
13222 }
13223
13224
13225 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13226 PyObject *resultobj;
13227 wxDC *arg1 = (wxDC *) 0 ;
13228 wxSize result;
13229 PyObject * obj0 = 0 ;
13230 char *kwnames[] = {
13231 (char *) "self", NULL
13232 };
13233
13234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13236 {
13237 PyThreadState* __tstate = wxPyBeginAllowThreads();
13238 result = ((wxDC const *)arg1)->GetPPI();
13239
13240 wxPyEndAllowThreads(__tstate);
13241 if (PyErr_Occurred()) SWIG_fail;
13242 }
13243 {
13244 wxSize * resultptr;
13245 resultptr = new wxSize((wxSize &) result);
13246 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13247 }
13248 return resultobj;
13249 fail:
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxDC *arg1 = (wxDC *) 0 ;
13257 bool result;
13258 PyObject * obj0 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13265 {
13266 PyThreadState* __tstate = wxPyBeginAllowThreads();
13267 result = (bool)((wxDC const *)arg1)->Ok();
13268
13269 wxPyEndAllowThreads(__tstate);
13270 if (PyErr_Occurred()) SWIG_fail;
13271 }
13272 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13273 return resultobj;
13274 fail:
13275 return NULL;
13276 }
13277
13278
13279 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13280 PyObject *resultobj;
13281 wxDC *arg1 = (wxDC *) 0 ;
13282 int result;
13283 PyObject * obj0 = 0 ;
13284 char *kwnames[] = {
13285 (char *) "self", NULL
13286 };
13287
13288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13293
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 resultobj = SWIG_PyObj_FromInt((int)result);
13298 return resultobj;
13299 fail:
13300 return NULL;
13301 }
13302
13303
13304 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13305 PyObject *resultobj;
13306 wxDC *arg1 = (wxDC *) 0 ;
13307 wxBrush *result;
13308 PyObject * obj0 = 0 ;
13309 char *kwnames[] = {
13310 (char *) "self", NULL
13311 };
13312
13313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13315 {
13316 PyThreadState* __tstate = wxPyBeginAllowThreads();
13317 {
13318 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13319 result = (wxBrush *) &_result_ref;
13320 }
13321
13322 wxPyEndAllowThreads(__tstate);
13323 if (PyErr_Occurred()) SWIG_fail;
13324 }
13325 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13326 return resultobj;
13327 fail:
13328 return NULL;
13329 }
13330
13331
13332 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13333 PyObject *resultobj;
13334 wxDC *arg1 = (wxDC *) 0 ;
13335 wxBrush *result;
13336 PyObject * obj0 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self", NULL
13339 };
13340
13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13342 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13343 {
13344 PyThreadState* __tstate = wxPyBeginAllowThreads();
13345 {
13346 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13347 result = (wxBrush *) &_result_ref;
13348 }
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj;
13362 wxDC *arg1 = (wxDC *) 0 ;
13363 wxFont *result;
13364 PyObject * obj0 = 0 ;
13365 char *kwnames[] = {
13366 (char *) "self", NULL
13367 };
13368
13369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 {
13374 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13375 result = (wxFont *) &_result_ref;
13376 }
13377
13378 wxPyEndAllowThreads(__tstate);
13379 if (PyErr_Occurred()) SWIG_fail;
13380 }
13381 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13382 return resultobj;
13383 fail:
13384 return NULL;
13385 }
13386
13387
13388 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13389 PyObject *resultobj;
13390 wxDC *arg1 = (wxDC *) 0 ;
13391 wxPen *result;
13392 PyObject * obj0 = 0 ;
13393 char *kwnames[] = {
13394 (char *) "self", NULL
13395 };
13396
13397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 {
13402 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13403 result = (wxPen *) &_result_ref;
13404 }
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj;
13418 wxDC *arg1 = (wxDC *) 0 ;
13419 wxColour *result;
13420 PyObject * obj0 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13426 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 {
13430 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13431 result = (wxColour *) &_result_ref;
13432 }
13433
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13438 return resultobj;
13439 fail:
13440 return NULL;
13441 }
13442
13443
13444 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13445 PyObject *resultobj;
13446 wxDC *arg1 = (wxDC *) 0 ;
13447 wxColour *result;
13448 PyObject * obj0 = 0 ;
13449 char *kwnames[] = {
13450 (char *) "self", NULL
13451 };
13452
13453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13455 {
13456 PyThreadState* __tstate = wxPyBeginAllowThreads();
13457 {
13458 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13459 result = (wxColour *) &_result_ref;
13460 }
13461
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj;
13474 wxDC *arg1 = (wxDC *) 0 ;
13475 wxColour *arg2 = 0 ;
13476 wxColour temp2 ;
13477 PyObject * obj0 = 0 ;
13478 PyObject * obj1 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "self",(char *) "colour", NULL
13481 };
13482
13483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13485 {
13486 arg2 = &temp2;
13487 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13488 }
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 (arg1)->SetTextForeground((wxColour const &)*arg2);
13492
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 Py_INCREF(Py_None); resultobj = Py_None;
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj;
13505 wxDC *arg1 = (wxDC *) 0 ;
13506 wxColour *arg2 = 0 ;
13507 wxColour temp2 ;
13508 PyObject * obj0 = 0 ;
13509 PyObject * obj1 = 0 ;
13510 char *kwnames[] = {
13511 (char *) "self",(char *) "colour", NULL
13512 };
13513
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13516 {
13517 arg2 = &temp2;
13518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13519 }
13520 {
13521 PyThreadState* __tstate = wxPyBeginAllowThreads();
13522 (arg1)->SetTextBackground((wxColour const &)*arg2);
13523
13524 wxPyEndAllowThreads(__tstate);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 Py_INCREF(Py_None); resultobj = Py_None;
13528 return resultobj;
13529 fail:
13530 return NULL;
13531 }
13532
13533
13534 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13535 PyObject *resultobj;
13536 wxDC *arg1 = (wxDC *) 0 ;
13537 int result;
13538 PyObject * obj0 = 0 ;
13539 char *kwnames[] = {
13540 (char *) "self", NULL
13541 };
13542
13543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13545 {
13546 PyThreadState* __tstate = wxPyBeginAllowThreads();
13547 result = (int)((wxDC const *)arg1)->GetMapMode();
13548
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_PyObj_FromInt((int)result);
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13560 PyObject *resultobj;
13561 wxDC *arg1 = (wxDC *) 0 ;
13562 int arg2 ;
13563 PyObject * obj0 = 0 ;
13564 PyObject * obj1 = 0 ;
13565 char *kwnames[] = {
13566 (char *) "self",(char *) "mode", NULL
13567 };
13568
13569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13570 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13571 {
13572 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13573 if (PyErr_Occurred()) SWIG_fail;
13574 }
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 (arg1)->SetMapMode(arg2);
13578
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 Py_INCREF(Py_None); resultobj = Py_None;
13583 return resultobj;
13584 fail:
13585 return NULL;
13586 }
13587
13588
13589 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj;
13591 wxDC *arg1 = (wxDC *) 0 ;
13592 double *arg2 = (double *) 0 ;
13593 double *arg3 = (double *) 0 ;
13594 double temp2 ;
13595 double temp3 ;
13596 PyObject * obj0 = 0 ;
13597 char *kwnames[] = {
13598 (char *) "self", NULL
13599 };
13600
13601 arg2 = &temp2;
13602 arg3 = &temp3;
13603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13608
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 Py_INCREF(Py_None); resultobj = Py_None;
13613 {
13614 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13615 resultobj = t_output_helper(resultobj,o);
13616 }
13617 {
13618 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13619 resultobj = t_output_helper(resultobj,o);
13620 }
13621 return resultobj;
13622 fail:
13623 return NULL;
13624 }
13625
13626
13627 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13628 PyObject *resultobj;
13629 wxDC *arg1 = (wxDC *) 0 ;
13630 double arg2 ;
13631 double arg3 ;
13632 PyObject * obj0 = 0 ;
13633 PyObject * obj1 = 0 ;
13634 PyObject * obj2 = 0 ;
13635 char *kwnames[] = {
13636 (char *) "self",(char *) "x",(char *) "y", NULL
13637 };
13638
13639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13640 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13641 {
13642 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13643 if (PyErr_Occurred()) SWIG_fail;
13644 }
13645 {
13646 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13647 if (PyErr_Occurred()) SWIG_fail;
13648 }
13649 {
13650 PyThreadState* __tstate = wxPyBeginAllowThreads();
13651 (arg1)->SetUserScale(arg2,arg3);
13652
13653 wxPyEndAllowThreads(__tstate);
13654 if (PyErr_Occurred()) SWIG_fail;
13655 }
13656 Py_INCREF(Py_None); resultobj = Py_None;
13657 return resultobj;
13658 fail:
13659 return NULL;
13660 }
13661
13662
13663 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13664 PyObject *resultobj;
13665 wxDC *arg1 = (wxDC *) 0 ;
13666 double *arg2 = (double *) 0 ;
13667 double *arg3 = (double *) 0 ;
13668 double temp2 ;
13669 double temp3 ;
13670 PyObject * obj0 = 0 ;
13671 char *kwnames[] = {
13672 (char *) "self", NULL
13673 };
13674
13675 arg2 = &temp2;
13676 arg3 = &temp3;
13677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13679 {
13680 PyThreadState* __tstate = wxPyBeginAllowThreads();
13681 (arg1)->GetLogicalScale(arg2,arg3);
13682
13683 wxPyEndAllowThreads(__tstate);
13684 if (PyErr_Occurred()) SWIG_fail;
13685 }
13686 Py_INCREF(Py_None); resultobj = Py_None;
13687 {
13688 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13689 resultobj = t_output_helper(resultobj,o);
13690 }
13691 {
13692 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13693 resultobj = t_output_helper(resultobj,o);
13694 }
13695 return resultobj;
13696 fail:
13697 return NULL;
13698 }
13699
13700
13701 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13702 PyObject *resultobj;
13703 wxDC *arg1 = (wxDC *) 0 ;
13704 double arg2 ;
13705 double arg3 ;
13706 PyObject * obj0 = 0 ;
13707 PyObject * obj1 = 0 ;
13708 PyObject * obj2 = 0 ;
13709 char *kwnames[] = {
13710 (char *) "self",(char *) "x",(char *) "y", NULL
13711 };
13712
13713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13714 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13715 {
13716 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13717 if (PyErr_Occurred()) SWIG_fail;
13718 }
13719 {
13720 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 (arg1)->SetLogicalScale(arg2,arg3);
13726
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 Py_INCREF(Py_None); resultobj = Py_None;
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj;
13739 wxDC *arg1 = (wxDC *) 0 ;
13740 wxPoint result;
13741 PyObject * obj0 = 0 ;
13742 char *kwnames[] = {
13743 (char *) "self", NULL
13744 };
13745
13746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13747 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13748 {
13749 PyThreadState* __tstate = wxPyBeginAllowThreads();
13750 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13751
13752 wxPyEndAllowThreads(__tstate);
13753 if (PyErr_Occurred()) SWIG_fail;
13754 }
13755 {
13756 wxPoint * resultptr;
13757 resultptr = new wxPoint((wxPoint &) result);
13758 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13759 }
13760 return resultobj;
13761 fail:
13762 return NULL;
13763 }
13764
13765
13766 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13767 PyObject *resultobj;
13768 wxDC *arg1 = (wxDC *) 0 ;
13769 int *arg2 = (int *) 0 ;
13770 int *arg3 = (int *) 0 ;
13771 int temp2 ;
13772 int temp3 ;
13773 PyObject * obj0 = 0 ;
13774 char *kwnames[] = {
13775 (char *) "self", NULL
13776 };
13777
13778 arg2 = &temp2;
13779 arg3 = &temp3;
13780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13785
13786 wxPyEndAllowThreads(__tstate);
13787 if (PyErr_Occurred()) SWIG_fail;
13788 }
13789 Py_INCREF(Py_None); resultobj = Py_None;
13790 {
13791 PyObject *o = PyInt_FromLong((long) (*arg2));
13792 resultobj = t_output_helper(resultobj,o);
13793 }
13794 {
13795 PyObject *o = PyInt_FromLong((long) (*arg3));
13796 resultobj = t_output_helper(resultobj,o);
13797 }
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj;
13806 wxDC *arg1 = (wxDC *) 0 ;
13807 int arg2 ;
13808 int arg3 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 PyObject * obj2 = 0 ;
13812 char *kwnames[] = {
13813 (char *) "self",(char *) "x",(char *) "y", NULL
13814 };
13815
13816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13817 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13818 {
13819 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13820 if (PyErr_Occurred()) SWIG_fail;
13821 }
13822 {
13823 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13824 if (PyErr_Occurred()) SWIG_fail;
13825 }
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 (arg1)->SetLogicalOrigin(arg2,arg3);
13829
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 Py_INCREF(Py_None); resultobj = Py_None;
13834 return resultobj;
13835 fail:
13836 return NULL;
13837 }
13838
13839
13840 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13841 PyObject *resultobj;
13842 wxDC *arg1 = (wxDC *) 0 ;
13843 wxPoint result;
13844 PyObject * obj0 = 0 ;
13845 char *kwnames[] = {
13846 (char *) "self", NULL
13847 };
13848
13849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
13850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13851 {
13852 PyThreadState* __tstate = wxPyBeginAllowThreads();
13853 result = ((wxDC const *)arg1)->GetDeviceOrigin();
13854
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 {
13859 wxPoint * resultptr;
13860 resultptr = new wxPoint((wxPoint &) result);
13861 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13862 }
13863 return resultobj;
13864 fail:
13865 return NULL;
13866 }
13867
13868
13869 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13870 PyObject *resultobj;
13871 wxDC *arg1 = (wxDC *) 0 ;
13872 int *arg2 = (int *) 0 ;
13873 int *arg3 = (int *) 0 ;
13874 int temp2 ;
13875 int temp3 ;
13876 PyObject * obj0 = 0 ;
13877 char *kwnames[] = {
13878 (char *) "self", NULL
13879 };
13880
13881 arg2 = &temp2;
13882 arg3 = &temp3;
13883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
13884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13885 {
13886 PyThreadState* __tstate = wxPyBeginAllowThreads();
13887 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
13888
13889 wxPyEndAllowThreads(__tstate);
13890 if (PyErr_Occurred()) SWIG_fail;
13891 }
13892 Py_INCREF(Py_None); resultobj = Py_None;
13893 {
13894 PyObject *o = PyInt_FromLong((long) (*arg2));
13895 resultobj = t_output_helper(resultobj,o);
13896 }
13897 {
13898 PyObject *o = PyInt_FromLong((long) (*arg3));
13899 resultobj = t_output_helper(resultobj,o);
13900 }
13901 return resultobj;
13902 fail:
13903 return NULL;
13904 }
13905
13906
13907 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13908 PyObject *resultobj;
13909 wxDC *arg1 = (wxDC *) 0 ;
13910 int arg2 ;
13911 int arg3 ;
13912 PyObject * obj0 = 0 ;
13913 PyObject * obj1 = 0 ;
13914 PyObject * obj2 = 0 ;
13915 char *kwnames[] = {
13916 (char *) "self",(char *) "x",(char *) "y", NULL
13917 };
13918
13919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13921 {
13922 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13923 if (PyErr_Occurred()) SWIG_fail;
13924 }
13925 {
13926 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 (arg1)->SetDeviceOrigin(arg2,arg3);
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 Py_INCREF(Py_None); resultobj = Py_None;
13937 return resultobj;
13938 fail:
13939 return NULL;
13940 }
13941
13942
13943 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13944 PyObject *resultobj;
13945 wxDC *arg1 = (wxDC *) 0 ;
13946 bool arg2 ;
13947 bool arg3 ;
13948 PyObject * obj0 = 0 ;
13949 PyObject * obj1 = 0 ;
13950 PyObject * obj2 = 0 ;
13951 char *kwnames[] = {
13952 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13953 };
13954
13955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13957 {
13958 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 }
13961 {
13962 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13963 if (PyErr_Occurred()) SWIG_fail;
13964 }
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 (arg1)->SetAxisOrientation(arg2,arg3);
13968
13969 wxPyEndAllowThreads(__tstate);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 }
13972 Py_INCREF(Py_None); resultobj = Py_None;
13973 return resultobj;
13974 fail:
13975 return NULL;
13976 }
13977
13978
13979 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13980 PyObject *resultobj;
13981 wxDC *arg1 = (wxDC *) 0 ;
13982 int result;
13983 PyObject * obj0 = 0 ;
13984 char *kwnames[] = {
13985 (char *) "self", NULL
13986 };
13987
13988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = SWIG_PyObj_FromInt((int)result);
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxDC *arg1 = (wxDC *) 0 ;
14007 int arg2 ;
14008 PyObject * obj0 = 0 ;
14009 PyObject * obj1 = 0 ;
14010 char *kwnames[] = {
14011 (char *) "self",(char *) "function", NULL
14012 };
14013
14014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14016 {
14017 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 (arg1)->SetLogicalFunction(arg2);
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 Py_INCREF(Py_None); resultobj = Py_None;
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxDC *arg1 = (wxDC *) 0 ;
14037 bool arg2 ;
14038 PyObject * obj0 = 0 ;
14039 PyObject * obj1 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self",(char *) "opt", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14046 {
14047 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14048 if (PyErr_Occurred()) SWIG_fail;
14049 }
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
14052 (arg1)->SetOptimization(arg2);
14053
14054 wxPyEndAllowThreads(__tstate);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 }
14057 Py_INCREF(Py_None); resultobj = Py_None;
14058 return resultobj;
14059 fail:
14060 return NULL;
14061 }
14062
14063
14064 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14065 PyObject *resultobj;
14066 wxDC *arg1 = (wxDC *) 0 ;
14067 bool result;
14068 PyObject * obj0 = 0 ;
14069 char *kwnames[] = {
14070 (char *) "self", NULL
14071 };
14072
14073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14074 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14075 {
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 result = (bool)(arg1)->GetOptimization();
14078
14079 wxPyEndAllowThreads(__tstate);
14080 if (PyErr_Occurred()) SWIG_fail;
14081 }
14082 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14083 return resultobj;
14084 fail:
14085 return NULL;
14086 }
14087
14088
14089 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14090 PyObject *resultobj;
14091 wxDC *arg1 = (wxDC *) 0 ;
14092 int arg2 ;
14093 int arg3 ;
14094 PyObject * obj0 = 0 ;
14095 PyObject * obj1 = 0 ;
14096 PyObject * obj2 = 0 ;
14097 char *kwnames[] = {
14098 (char *) "self",(char *) "x",(char *) "y", NULL
14099 };
14100
14101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14102 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14103 {
14104 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 {
14108 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 (arg1)->CalcBoundingBox(arg2,arg3);
14114
14115 wxPyEndAllowThreads(__tstate);
14116 if (PyErr_Occurred()) SWIG_fail;
14117 }
14118 Py_INCREF(Py_None); resultobj = Py_None;
14119 return resultobj;
14120 fail:
14121 return NULL;
14122 }
14123
14124
14125 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14126 PyObject *resultobj;
14127 wxDC *arg1 = (wxDC *) 0 ;
14128 PyObject * obj0 = 0 ;
14129 char *kwnames[] = {
14130 (char *) "self", NULL
14131 };
14132
14133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14134 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14135 {
14136 PyThreadState* __tstate = wxPyBeginAllowThreads();
14137 (arg1)->ResetBoundingBox();
14138
14139 wxPyEndAllowThreads(__tstate);
14140 if (PyErr_Occurred()) SWIG_fail;
14141 }
14142 Py_INCREF(Py_None); resultobj = Py_None;
14143 return resultobj;
14144 fail:
14145 return NULL;
14146 }
14147
14148
14149 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14150 PyObject *resultobj;
14151 wxDC *arg1 = (wxDC *) 0 ;
14152 int result;
14153 PyObject * obj0 = 0 ;
14154 char *kwnames[] = {
14155 (char *) "self", NULL
14156 };
14157
14158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14160 {
14161 PyThreadState* __tstate = wxPyBeginAllowThreads();
14162 result = (int)((wxDC const *)arg1)->MinX();
14163
14164 wxPyEndAllowThreads(__tstate);
14165 if (PyErr_Occurred()) SWIG_fail;
14166 }
14167 resultobj = SWIG_PyObj_FromInt((int)result);
14168 return resultobj;
14169 fail:
14170 return NULL;
14171 }
14172
14173
14174 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14175 PyObject *resultobj;
14176 wxDC *arg1 = (wxDC *) 0 ;
14177 int result;
14178 PyObject * obj0 = 0 ;
14179 char *kwnames[] = {
14180 (char *) "self", NULL
14181 };
14182
14183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14184 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (int)((wxDC const *)arg1)->MaxX();
14188
14189 wxPyEndAllowThreads(__tstate);
14190 if (PyErr_Occurred()) SWIG_fail;
14191 }
14192 resultobj = SWIG_PyObj_FromInt((int)result);
14193 return resultobj;
14194 fail:
14195 return NULL;
14196 }
14197
14198
14199 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14200 PyObject *resultobj;
14201 wxDC *arg1 = (wxDC *) 0 ;
14202 int result;
14203 PyObject * obj0 = 0 ;
14204 char *kwnames[] = {
14205 (char *) "self", NULL
14206 };
14207
14208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14209 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14210 {
14211 PyThreadState* __tstate = wxPyBeginAllowThreads();
14212 result = (int)((wxDC const *)arg1)->MinY();
14213
14214 wxPyEndAllowThreads(__tstate);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 }
14217 resultobj = SWIG_PyObj_FromInt((int)result);
14218 return resultobj;
14219 fail:
14220 return NULL;
14221 }
14222
14223
14224 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14225 PyObject *resultobj;
14226 wxDC *arg1 = (wxDC *) 0 ;
14227 int result;
14228 PyObject * obj0 = 0 ;
14229 char *kwnames[] = {
14230 (char *) "self", NULL
14231 };
14232
14233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14235 {
14236 PyThreadState* __tstate = wxPyBeginAllowThreads();
14237 result = (int)((wxDC const *)arg1)->MaxY();
14238
14239 wxPyEndAllowThreads(__tstate);
14240 if (PyErr_Occurred()) SWIG_fail;
14241 }
14242 resultobj = SWIG_PyObj_FromInt((int)result);
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj;
14251 wxDC *arg1 = (wxDC *) 0 ;
14252 int *arg2 = (int *) 0 ;
14253 int *arg3 = (int *) 0 ;
14254 int *arg4 = (int *) 0 ;
14255 int *arg5 = (int *) 0 ;
14256 int temp2 ;
14257 int temp3 ;
14258 int temp4 ;
14259 int temp5 ;
14260 PyObject * obj0 = 0 ;
14261 char *kwnames[] = {
14262 (char *) "self", NULL
14263 };
14264
14265 arg2 = &temp2;
14266 arg3 = &temp3;
14267 arg4 = &temp4;
14268 arg5 = &temp5;
14269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14270 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14271 {
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14274
14275 wxPyEndAllowThreads(__tstate);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 Py_INCREF(Py_None); resultobj = Py_None;
14279 {
14280 PyObject *o = PyInt_FromLong((long) (*arg2));
14281 resultobj = t_output_helper(resultobj,o);
14282 }
14283 {
14284 PyObject *o = PyInt_FromLong((long) (*arg3));
14285 resultobj = t_output_helper(resultobj,o);
14286 }
14287 {
14288 PyObject *o = PyInt_FromLong((long) (*arg4));
14289 resultobj = t_output_helper(resultobj,o);
14290 }
14291 {
14292 PyObject *o = PyInt_FromLong((long) (*arg5));
14293 resultobj = t_output_helper(resultobj,o);
14294 }
14295 return resultobj;
14296 fail:
14297 return NULL;
14298 }
14299
14300
14301 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj;
14303 wxDC *arg1 = (wxDC *) 0 ;
14304 PyObject *arg2 = (PyObject *) 0 ;
14305 PyObject *arg3 = (PyObject *) 0 ;
14306 PyObject *arg4 = (PyObject *) 0 ;
14307 PyObject *result;
14308 PyObject * obj0 = 0 ;
14309 PyObject * obj1 = 0 ;
14310 PyObject * obj2 = 0 ;
14311 PyObject * obj3 = 0 ;
14312 char *kwnames[] = {
14313 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14314 };
14315
14316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14318 arg2 = obj1;
14319 arg3 = obj2;
14320 arg4 = obj3;
14321 {
14322 PyThreadState* __tstate = wxPyBeginAllowThreads();
14323 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14324
14325 wxPyEndAllowThreads(__tstate);
14326 if (PyErr_Occurred()) SWIG_fail;
14327 }
14328 resultobj = result;
14329 return resultobj;
14330 fail:
14331 return NULL;
14332 }
14333
14334
14335 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14336 PyObject *resultobj;
14337 wxDC *arg1 = (wxDC *) 0 ;
14338 PyObject *arg2 = (PyObject *) 0 ;
14339 PyObject *arg3 = (PyObject *) 0 ;
14340 PyObject *arg4 = (PyObject *) 0 ;
14341 PyObject *result;
14342 PyObject * obj0 = 0 ;
14343 PyObject * obj1 = 0 ;
14344 PyObject * obj2 = 0 ;
14345 PyObject * obj3 = 0 ;
14346 char *kwnames[] = {
14347 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14348 };
14349
14350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14352 arg2 = obj1;
14353 arg3 = obj2;
14354 arg4 = obj3;
14355 {
14356 PyThreadState* __tstate = wxPyBeginAllowThreads();
14357 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14358
14359 wxPyEndAllowThreads(__tstate);
14360 if (PyErr_Occurred()) SWIG_fail;
14361 }
14362 resultobj = result;
14363 return resultobj;
14364 fail:
14365 return NULL;
14366 }
14367
14368
14369 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14370 PyObject *resultobj;
14371 wxDC *arg1 = (wxDC *) 0 ;
14372 PyObject *arg2 = (PyObject *) 0 ;
14373 PyObject *arg3 = (PyObject *) 0 ;
14374 PyObject *arg4 = (PyObject *) 0 ;
14375 PyObject *result;
14376 PyObject * obj0 = 0 ;
14377 PyObject * obj1 = 0 ;
14378 PyObject * obj2 = 0 ;
14379 PyObject * obj3 = 0 ;
14380 char *kwnames[] = {
14381 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14382 };
14383
14384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14386 arg2 = obj1;
14387 arg3 = obj2;
14388 arg4 = obj3;
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14392
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 resultobj = result;
14397 return resultobj;
14398 fail:
14399 return NULL;
14400 }
14401
14402
14403 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14404 PyObject *resultobj;
14405 wxDC *arg1 = (wxDC *) 0 ;
14406 PyObject *arg2 = (PyObject *) 0 ;
14407 PyObject *arg3 = (PyObject *) 0 ;
14408 PyObject *arg4 = (PyObject *) 0 ;
14409 PyObject *result;
14410 PyObject * obj0 = 0 ;
14411 PyObject * obj1 = 0 ;
14412 PyObject * obj2 = 0 ;
14413 PyObject * obj3 = 0 ;
14414 char *kwnames[] = {
14415 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14416 };
14417
14418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14420 arg2 = obj1;
14421 arg3 = obj2;
14422 arg4 = obj3;
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14426
14427 wxPyEndAllowThreads(__tstate);
14428 if (PyErr_Occurred()) SWIG_fail;
14429 }
14430 resultobj = result;
14431 return resultobj;
14432 fail:
14433 return NULL;
14434 }
14435
14436
14437 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14438 PyObject *resultobj;
14439 wxDC *arg1 = (wxDC *) 0 ;
14440 PyObject *arg2 = (PyObject *) 0 ;
14441 PyObject *arg3 = (PyObject *) 0 ;
14442 PyObject *arg4 = (PyObject *) 0 ;
14443 PyObject *result;
14444 PyObject * obj0 = 0 ;
14445 PyObject * obj1 = 0 ;
14446 PyObject * obj2 = 0 ;
14447 PyObject * obj3 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14454 arg2 = obj1;
14455 arg3 = obj2;
14456 arg4 = obj3;
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 resultobj = result;
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxDC *arg1 = (wxDC *) 0 ;
14474 PyObject *arg2 = (PyObject *) 0 ;
14475 PyObject *arg3 = (PyObject *) 0 ;
14476 PyObject *arg4 = (PyObject *) 0 ;
14477 PyObject *arg5 = (PyObject *) 0 ;
14478 PyObject *result;
14479 PyObject * obj0 = 0 ;
14480 PyObject * obj1 = 0 ;
14481 PyObject * obj2 = 0 ;
14482 PyObject * obj3 = 0 ;
14483 PyObject * obj4 = 0 ;
14484 char *kwnames[] = {
14485 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14486 };
14487
14488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14489 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14490 arg2 = obj1;
14491 arg3 = obj2;
14492 arg4 = obj3;
14493 arg5 = obj4;
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14497
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 resultobj = result;
14502 return resultobj;
14503 fail:
14504 return NULL;
14505 }
14506
14507
14508 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14509 PyObject *obj;
14510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14511 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14512 Py_INCREF(obj);
14513 return Py_BuildValue((char *)"");
14514 }
14515 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14516 PyObject *resultobj;
14517 wxMemoryDC *result;
14518 char *kwnames[] = {
14519 NULL
14520 };
14521
14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14523 {
14524 PyThreadState* __tstate = wxPyBeginAllowThreads();
14525 result = (wxMemoryDC *)new wxMemoryDC();
14526
14527 wxPyEndAllowThreads(__tstate);
14528 if (PyErr_Occurred()) SWIG_fail;
14529 }
14530 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14531 return resultobj;
14532 fail:
14533 return NULL;
14534 }
14535
14536
14537 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14538 PyObject *resultobj;
14539 wxDC *arg1 = (wxDC *) 0 ;
14540 wxMemoryDC *result;
14541 PyObject * obj0 = 0 ;
14542 char *kwnames[] = {
14543 (char *) "oldDC", NULL
14544 };
14545
14546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14547 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14551
14552 wxPyEndAllowThreads(__tstate);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 }
14555 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14556 return resultobj;
14557 fail:
14558 return NULL;
14559 }
14560
14561
14562 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj;
14564 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14565 wxBitmap *arg2 = 0 ;
14566 PyObject * obj0 = 0 ;
14567 PyObject * obj1 = 0 ;
14568 char *kwnames[] = {
14569 (char *) "self",(char *) "bitmap", NULL
14570 };
14571
14572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14574 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14575 if (arg2 == NULL) {
14576 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14577 }
14578 {
14579 PyThreadState* __tstate = wxPyBeginAllowThreads();
14580 (arg1)->SelectObject((wxBitmap const &)*arg2);
14581
14582 wxPyEndAllowThreads(__tstate);
14583 if (PyErr_Occurred()) SWIG_fail;
14584 }
14585 Py_INCREF(Py_None); resultobj = Py_None;
14586 return resultobj;
14587 fail:
14588 return NULL;
14589 }
14590
14591
14592 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14593 PyObject *obj;
14594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14595 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14596 Py_INCREF(obj);
14597 return Py_BuildValue((char *)"");
14598 }
14599 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14600 PyObject *resultobj;
14601 wxDC *arg1 = (wxDC *) 0 ;
14602 wxBitmap *arg2 = 0 ;
14603 wxBufferedDC *result;
14604 PyObject * obj0 = 0 ;
14605 PyObject * obj1 = 0 ;
14606
14607 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
14608 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14609 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14610 if (arg2 == NULL) {
14611 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14612 }
14613 {
14614 PyThreadState* __tstate = wxPyBeginAllowThreads();
14615 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14616
14617 wxPyEndAllowThreads(__tstate);
14618 if (PyErr_Occurred()) SWIG_fail;
14619 }
14620 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14621 return resultobj;
14622 fail:
14623 return NULL;
14624 }
14625
14626
14627 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
14628 PyObject *resultobj;
14629 wxDC *arg1 = (wxDC *) 0 ;
14630 wxSize *arg2 = 0 ;
14631 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
14632 wxBufferedDC *result;
14633 wxSize temp2 ;
14634 PyObject * obj0 = 0 ;
14635 PyObject * obj1 = 0 ;
14636 PyObject * obj2 = 0 ;
14637
14638 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDC",&obj0,&obj1,&obj2)) goto fail;
14639 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14640 {
14641 arg2 = &temp2;
14642 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14643 }
14644 if (obj2) {
14645 {
14646 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 }
14649 }
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14658 return resultobj;
14659 fail:
14660 return NULL;
14661 }
14662
14663
14664 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
14665 int argc;
14666 PyObject *argv[4];
14667 int ii;
14668
14669 argc = PyObject_Length(args);
14670 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
14671 argv[ii] = PyTuple_GetItem(args,ii);
14672 }
14673 if (argc == 2) {
14674 int _v;
14675 {
14676 void *ptr;
14677 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14678 _v = 0;
14679 PyErr_Clear();
14680 } else {
14681 _v = 1;
14682 }
14683 }
14684 if (_v) {
14685 {
14686 void *ptr;
14687 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14688 _v = 0;
14689 PyErr_Clear();
14690 } else {
14691 _v = 1;
14692 }
14693 }
14694 if (_v) {
14695 return _wrap_new_BufferedDC__SWIG_0(self,args);
14696 }
14697 }
14698 }
14699 if ((argc >= 2) && (argc <= 3)) {
14700 int _v;
14701 {
14702 void *ptr;
14703 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
14704 _v = 0;
14705 PyErr_Clear();
14706 } else {
14707 _v = 1;
14708 }
14709 }
14710 if (_v) {
14711 {
14712 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
14713 }
14714 if (_v) {
14715 if (argc <= 2) {
14716 return _wrap_new_BufferedDC__SWIG_1(self,args);
14717 }
14718 {
14719 SWIG_PyObj_AsInt(argv[2]);
14720 if (PyErr_Occurred()) {
14721 _v = 0;
14722 PyErr_Clear();
14723 } else {
14724 _v = 1;
14725 }
14726 }
14727 if (_v) {
14728 return _wrap_new_BufferedDC__SWIG_1(self,args);
14729 }
14730 }
14731 }
14732 }
14733
14734 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
14735 return NULL;
14736 }
14737
14738
14739 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
14740 PyObject *resultobj;
14741 wxDC *arg1 = (wxDC *) 0 ;
14742 wxSize *arg2 = 0 ;
14743 int arg3 = (int) wxBUFFER_DC_DEFAULT ;
14744 wxBufferedDC *result;
14745 wxSize temp2 ;
14746 PyObject * obj0 = 0 ;
14747 PyObject * obj1 = 0 ;
14748 PyObject * obj2 = 0 ;
14749
14750 if(!PyArg_ParseTuple(args,(char *)"OO|O:new_BufferedDCInternalBuffer",&obj0,&obj1,&obj2)) goto fail;
14751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14752 {
14753 arg2 = &temp2;
14754 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14755 }
14756 if (obj2) {
14757 {
14758 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 }
14762 {
14763 PyThreadState* __tstate = wxPyBeginAllowThreads();
14764 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
14765
14766 wxPyEndAllowThreads(__tstate);
14767 if (PyErr_Occurred()) SWIG_fail;
14768 }
14769 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14770 return resultobj;
14771 fail:
14772 return NULL;
14773 }
14774
14775
14776 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14777 PyObject *resultobj;
14778 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14779 PyObject * obj0 = 0 ;
14780 char *kwnames[] = {
14781 (char *) "self", NULL
14782 };
14783
14784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 (arg1)->UnMask();
14789
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 Py_INCREF(Py_None); resultobj = Py_None;
14794 return resultobj;
14795 fail:
14796 return NULL;
14797 }
14798
14799
14800 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14801 PyObject *obj;
14802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14803 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14804 Py_INCREF(obj);
14805 return Py_BuildValue((char *)"");
14806 }
14807 static PyObject *_wrap_new_BufferedPaintDC__SWIG_0(PyObject *self, PyObject *args) {
14808 PyObject *resultobj;
14809 wxWindow *arg1 = (wxWindow *) 0 ;
14810 wxBitmap *arg2 = 0 ;
14811 wxBufferedPaintDC *result;
14812 PyObject * obj0 = 0 ;
14813 PyObject * obj1 = 0 ;
14814
14815 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
14816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14817 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14818 if (arg2 == NULL) {
14819 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14820 }
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
14824
14825 wxPyEndAllowThreads(__tstate);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14829 return resultobj;
14830 fail:
14831 return NULL;
14832 }
14833
14834
14835 static PyObject *_wrap_new_BufferedPaintDC__SWIG_1(PyObject *self, PyObject *args) {
14836 PyObject *resultobj;
14837 wxWindow *arg1 = (wxWindow *) 0 ;
14838 int arg2 = (int) wxBUFFER_DC_DEFAULT ;
14839 wxBufferedPaintDC *result;
14840 PyObject * obj0 = 0 ;
14841 PyObject * obj1 = 0 ;
14842
14843 if(!PyArg_ParseTuple(args,(char *)"O|O:new_BufferedPaintDC",&obj0,&obj1)) goto fail;
14844 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14845 if (obj1) {
14846 {
14847 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14848 if (PyErr_Occurred()) SWIG_fail;
14849 }
14850 }
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,arg2);
14854
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14859 return resultobj;
14860 fail:
14861 return NULL;
14862 }
14863
14864
14865 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args) {
14866 int argc;
14867 PyObject *argv[3];
14868 int ii;
14869
14870 argc = PyObject_Length(args);
14871 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
14872 argv[ii] = PyTuple_GetItem(args,ii);
14873 }
14874 if ((argc >= 1) && (argc <= 2)) {
14875 int _v;
14876 {
14877 void *ptr;
14878 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
14879 _v = 0;
14880 PyErr_Clear();
14881 } else {
14882 _v = 1;
14883 }
14884 }
14885 if (_v) {
14886 if (argc <= 1) {
14887 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
14888 }
14889 {
14890 SWIG_PyObj_AsInt(argv[1]);
14891 if (PyErr_Occurred()) {
14892 _v = 0;
14893 PyErr_Clear();
14894 } else {
14895 _v = 1;
14896 }
14897 }
14898 if (_v) {
14899 return _wrap_new_BufferedPaintDC__SWIG_1(self,args);
14900 }
14901 }
14902 }
14903 if (argc == 2) {
14904 int _v;
14905 {
14906 void *ptr;
14907 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxWindow, 0) == -1) {
14908 _v = 0;
14909 PyErr_Clear();
14910 } else {
14911 _v = 1;
14912 }
14913 }
14914 if (_v) {
14915 {
14916 void *ptr;
14917 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
14918 _v = 0;
14919 PyErr_Clear();
14920 } else {
14921 _v = 1;
14922 }
14923 }
14924 if (_v) {
14925 return _wrap_new_BufferedPaintDC__SWIG_0(self,args);
14926 }
14927 }
14928 }
14929
14930 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedPaintDC'");
14931 return NULL;
14932 }
14933
14934
14935 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
14936 PyObject *obj;
14937 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14938 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
14939 Py_INCREF(obj);
14940 return Py_BuildValue((char *)"");
14941 }
14942 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj;
14944 wxScreenDC *result;
14945 char *kwnames[] = {
14946 NULL
14947 };
14948
14949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
14950 {
14951 PyThreadState* __tstate = wxPyBeginAllowThreads();
14952 result = (wxScreenDC *)new wxScreenDC();
14953
14954 wxPyEndAllowThreads(__tstate);
14955 if (PyErr_Occurred()) SWIG_fail;
14956 }
14957 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
14958 return resultobj;
14959 fail:
14960 return NULL;
14961 }
14962
14963
14964 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
14965 PyObject *resultobj;
14966 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14967 wxWindow *arg2 = (wxWindow *) 0 ;
14968 bool result;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char *kwnames[] = {
14972 (char *) "self",(char *) "window", NULL
14973 };
14974
14975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
14976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14977 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14981
14982 wxPyEndAllowThreads(__tstate);
14983 if (PyErr_Occurred()) SWIG_fail;
14984 }
14985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14986 return resultobj;
14987 fail:
14988 return NULL;
14989 }
14990
14991
14992 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14993 PyObject *resultobj;
14994 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14995 wxRect *arg2 = (wxRect *) NULL ;
14996 bool result;
14997 PyObject * obj0 = 0 ;
14998 PyObject * obj1 = 0 ;
14999 char *kwnames[] = {
15000 (char *) "self",(char *) "rect", NULL
15001 };
15002
15003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15005 if (obj1) {
15006 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15007 }
15008 {
15009 PyThreadState* __tstate = wxPyBeginAllowThreads();
15010 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15011
15012 wxPyEndAllowThreads(__tstate);
15013 if (PyErr_Occurred()) SWIG_fail;
15014 }
15015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15016 return resultobj;
15017 fail:
15018 return NULL;
15019 }
15020
15021
15022 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15023 PyObject *resultobj;
15024 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15025 bool result;
15026 PyObject * obj0 = 0 ;
15027 char *kwnames[] = {
15028 (char *) "self", NULL
15029 };
15030
15031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15032 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15033 {
15034 PyThreadState* __tstate = wxPyBeginAllowThreads();
15035 result = (bool)(arg1)->EndDrawingOnTop();
15036
15037 wxPyEndAllowThreads(__tstate);
15038 if (PyErr_Occurred()) SWIG_fail;
15039 }
15040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15041 return resultobj;
15042 fail:
15043 return NULL;
15044 }
15045
15046
15047 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15048 PyObject *obj;
15049 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15050 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15051 Py_INCREF(obj);
15052 return Py_BuildValue((char *)"");
15053 }
15054 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15055 PyObject *resultobj;
15056 wxWindow *arg1 = (wxWindow *) 0 ;
15057 wxClientDC *result;
15058 PyObject * obj0 = 0 ;
15059 char *kwnames[] = {
15060 (char *) "win", NULL
15061 };
15062
15063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 result = (wxClientDC *)new wxClientDC(arg1);
15068
15069 wxPyEndAllowThreads(__tstate);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
15073 return resultobj;
15074 fail:
15075 return NULL;
15076 }
15077
15078
15079 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15080 PyObject *obj;
15081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15082 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15083 Py_INCREF(obj);
15084 return Py_BuildValue((char *)"");
15085 }
15086 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15087 PyObject *resultobj;
15088 wxWindow *arg1 = (wxWindow *) 0 ;
15089 wxPaintDC *result;
15090 PyObject * obj0 = 0 ;
15091 char *kwnames[] = {
15092 (char *) "win", NULL
15093 };
15094
15095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 result = (wxPaintDC *)new wxPaintDC(arg1);
15100
15101 wxPyEndAllowThreads(__tstate);
15102 if (PyErr_Occurred()) SWIG_fail;
15103 }
15104 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
15105 return resultobj;
15106 fail:
15107 return NULL;
15108 }
15109
15110
15111 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15112 PyObject *obj;
15113 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15114 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15115 Py_INCREF(obj);
15116 return Py_BuildValue((char *)"");
15117 }
15118 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15119 PyObject *resultobj;
15120 wxWindow *arg1 = (wxWindow *) 0 ;
15121 wxWindowDC *result;
15122 PyObject * obj0 = 0 ;
15123 char *kwnames[] = {
15124 (char *) "win", NULL
15125 };
15126
15127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15129 {
15130 PyThreadState* __tstate = wxPyBeginAllowThreads();
15131 result = (wxWindowDC *)new wxWindowDC(arg1);
15132
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15144 PyObject *obj;
15145 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15146 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15147 Py_INCREF(obj);
15148 return Py_BuildValue((char *)"");
15149 }
15150 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15151 PyObject *resultobj;
15152 wxDC *arg1 = 0 ;
15153 bool arg2 ;
15154 wxMirrorDC *result;
15155 PyObject * obj0 = 0 ;
15156 PyObject * obj1 = 0 ;
15157 char *kwnames[] = {
15158 (char *) "dc",(char *) "mirror", NULL
15159 };
15160
15161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15163 if (arg1 == NULL) {
15164 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15165 }
15166 {
15167 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
15170 {
15171 PyThreadState* __tstate = wxPyBeginAllowThreads();
15172 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15173
15174 wxPyEndAllowThreads(__tstate);
15175 if (PyErr_Occurred()) SWIG_fail;
15176 }
15177 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
15178 return resultobj;
15179 fail:
15180 return NULL;
15181 }
15182
15183
15184 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15185 PyObject *obj;
15186 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15187 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15188 Py_INCREF(obj);
15189 return Py_BuildValue((char *)"");
15190 }
15191 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15192 PyObject *resultobj;
15193 wxPrintData *arg1 = 0 ;
15194 wxPostScriptDC *result;
15195 PyObject * obj0 = 0 ;
15196 char *kwnames[] = {
15197 (char *) "printData", NULL
15198 };
15199
15200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15201 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15202 if (arg1 == NULL) {
15203 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15204 }
15205 {
15206 PyThreadState* __tstate = wxPyBeginAllowThreads();
15207 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15208
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
15213 return resultobj;
15214 fail:
15215 return NULL;
15216 }
15217
15218
15219 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15220 PyObject *resultobj;
15221 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15222 wxPrintData *result;
15223 PyObject * obj0 = 0 ;
15224 char *kwnames[] = {
15225 (char *) "self", NULL
15226 };
15227
15228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 {
15233 wxPrintData &_result_ref = (arg1)->GetPrintData();
15234 result = (wxPrintData *) &_result_ref;
15235 }
15236
15237 wxPyEndAllowThreads(__tstate);
15238 if (PyErr_Occurred()) SWIG_fail;
15239 }
15240 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
15241 return resultobj;
15242 fail:
15243 return NULL;
15244 }
15245
15246
15247 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15248 PyObject *resultobj;
15249 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15250 wxPrintData *arg2 = 0 ;
15251 PyObject * obj0 = 0 ;
15252 PyObject * obj1 = 0 ;
15253 char *kwnames[] = {
15254 (char *) "self",(char *) "data", NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15258 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15259 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15260 if (arg2 == NULL) {
15261 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15262 }
15263 {
15264 PyThreadState* __tstate = wxPyBeginAllowThreads();
15265 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15266
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 Py_INCREF(Py_None); resultobj = Py_None;
15271 return resultobj;
15272 fail:
15273 return NULL;
15274 }
15275
15276
15277 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15278 PyObject *resultobj;
15279 int arg1 ;
15280 PyObject * obj0 = 0 ;
15281 char *kwnames[] = {
15282 (char *) "ppi", NULL
15283 };
15284
15285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15286 {
15287 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15288 if (PyErr_Occurred()) SWIG_fail;
15289 }
15290 {
15291 PyThreadState* __tstate = wxPyBeginAllowThreads();
15292 wxPostScriptDC::SetResolution(arg1);
15293
15294 wxPyEndAllowThreads(__tstate);
15295 if (PyErr_Occurred()) SWIG_fail;
15296 }
15297 Py_INCREF(Py_None); resultobj = Py_None;
15298 return resultobj;
15299 fail:
15300 return NULL;
15301 }
15302
15303
15304 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15305 PyObject *resultobj;
15306 int result;
15307 char *kwnames[] = {
15308 NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 result = (int)wxPostScriptDC::GetResolution();
15315
15316 wxPyEndAllowThreads(__tstate);
15317 if (PyErr_Occurred()) SWIG_fail;
15318 }
15319 resultobj = SWIG_PyObj_FromInt((int)result);
15320 return resultobj;
15321 fail:
15322 return NULL;
15323 }
15324
15325
15326 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15327 PyObject *obj;
15328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15329 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15330 Py_INCREF(obj);
15331 return Py_BuildValue((char *)"");
15332 }
15333 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15334 PyObject *resultobj;
15335 wxString const &arg1_defvalue = wxPyEmptyString ;
15336 wxString *arg1 = (wxString *) &arg1_defvalue ;
15337 wxMetaFile *result;
15338 bool temp1 = False ;
15339 PyObject * obj0 = 0 ;
15340 char *kwnames[] = {
15341 (char *) "filename", NULL
15342 };
15343
15344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15345 if (obj0) {
15346 {
15347 arg1 = wxString_in_helper(obj0);
15348 if (arg1 == NULL) SWIG_fail;
15349 temp1 = True;
15350 }
15351 }
15352 {
15353 PyThreadState* __tstate = wxPyBeginAllowThreads();
15354 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15355
15356 wxPyEndAllowThreads(__tstate);
15357 if (PyErr_Occurred()) SWIG_fail;
15358 }
15359 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15360 {
15361 if (temp1)
15362 delete arg1;
15363 }
15364 return resultobj;
15365 fail:
15366 {
15367 if (temp1)
15368 delete arg1;
15369 }
15370 return NULL;
15371 }
15372
15373
15374 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15375 PyObject *obj;
15376 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15377 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15378 Py_INCREF(obj);
15379 return Py_BuildValue((char *)"");
15380 }
15381 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15382 PyObject *resultobj;
15383 wxString const &arg1_defvalue = wxPyEmptyString ;
15384 wxString *arg1 = (wxString *) &arg1_defvalue ;
15385 int arg2 = (int) 0 ;
15386 int arg3 = (int) 0 ;
15387 wxString const &arg4_defvalue = wxPyEmptyString ;
15388 wxString *arg4 = (wxString *) &arg4_defvalue ;
15389 wxMetaFileDC *result;
15390 bool temp1 = False ;
15391 bool temp4 = False ;
15392 PyObject * obj0 = 0 ;
15393 PyObject * obj1 = 0 ;
15394 PyObject * obj2 = 0 ;
15395 PyObject * obj3 = 0 ;
15396 char *kwnames[] = {
15397 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15398 };
15399
15400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15401 if (obj0) {
15402 {
15403 arg1 = wxString_in_helper(obj0);
15404 if (arg1 == NULL) SWIG_fail;
15405 temp1 = True;
15406 }
15407 }
15408 if (obj1) {
15409 {
15410 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 }
15414 if (obj2) {
15415 {
15416 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15417 if (PyErr_Occurred()) SWIG_fail;
15418 }
15419 }
15420 if (obj3) {
15421 {
15422 arg4 = wxString_in_helper(obj3);
15423 if (arg4 == NULL) SWIG_fail;
15424 temp4 = True;
15425 }
15426 }
15427 {
15428 PyThreadState* __tstate = wxPyBeginAllowThreads();
15429 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15430
15431 wxPyEndAllowThreads(__tstate);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 }
15434 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15435 {
15436 if (temp1)
15437 delete arg1;
15438 }
15439 {
15440 if (temp4)
15441 delete arg4;
15442 }
15443 return resultobj;
15444 fail:
15445 {
15446 if (temp1)
15447 delete arg1;
15448 }
15449 {
15450 if (temp4)
15451 delete arg4;
15452 }
15453 return NULL;
15454 }
15455
15456
15457 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15458 PyObject *obj;
15459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15460 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15461 Py_INCREF(obj);
15462 return Py_BuildValue((char *)"");
15463 }
15464 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15465 PyObject *resultobj;
15466 wxPrintData *arg1 = 0 ;
15467 wxPrinterDC *result;
15468 PyObject * obj0 = 0 ;
15469 char *kwnames[] = {
15470 (char *) "printData", NULL
15471 };
15472
15473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15474 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15475 if (arg1 == NULL) {
15476 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15477 }
15478 {
15479 PyThreadState* __tstate = wxPyBeginAllowThreads();
15480 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15481
15482 wxPyEndAllowThreads(__tstate);
15483 if (PyErr_Occurred()) SWIG_fail;
15484 }
15485 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15486 return resultobj;
15487 fail:
15488 return NULL;
15489 }
15490
15491
15492 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15493 PyObject *obj;
15494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15495 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15496 Py_INCREF(obj);
15497 return Py_BuildValue((char *)"");
15498 }
15499 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15500 PyObject *resultobj;
15501 int arg1 ;
15502 int arg2 ;
15503 int arg3 = (int) True ;
15504 int arg4 = (int) 1 ;
15505 wxImageList *result;
15506 PyObject * obj0 = 0 ;
15507 PyObject * obj1 = 0 ;
15508 PyObject * obj2 = 0 ;
15509 PyObject * obj3 = 0 ;
15510 char *kwnames[] = {
15511 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15512 };
15513
15514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15515 {
15516 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15517 if (PyErr_Occurred()) SWIG_fail;
15518 }
15519 {
15520 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 if (obj2) {
15524 {
15525 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15526 if (PyErr_Occurred()) SWIG_fail;
15527 }
15528 }
15529 if (obj3) {
15530 {
15531 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 }
15535 {
15536 PyThreadState* __tstate = wxPyBeginAllowThreads();
15537 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15538
15539 wxPyEndAllowThreads(__tstate);
15540 if (PyErr_Occurred()) SWIG_fail;
15541 }
15542 {
15543 resultobj = wxPyMake_wxObject(result);
15544 }
15545 return resultobj;
15546 fail:
15547 return NULL;
15548 }
15549
15550
15551 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15552 PyObject *resultobj;
15553 wxImageList *arg1 = (wxImageList *) 0 ;
15554 PyObject * obj0 = 0 ;
15555 char *kwnames[] = {
15556 (char *) "self", NULL
15557 };
15558
15559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 delete arg1;
15564
15565 wxPyEndAllowThreads(__tstate);
15566 if (PyErr_Occurred()) SWIG_fail;
15567 }
15568 Py_INCREF(Py_None); resultobj = Py_None;
15569 return resultobj;
15570 fail:
15571 return NULL;
15572 }
15573
15574
15575 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15576 PyObject *resultobj;
15577 wxImageList *arg1 = (wxImageList *) 0 ;
15578 wxBitmap *arg2 = 0 ;
15579 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15580 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15581 int result;
15582 PyObject * obj0 = 0 ;
15583 PyObject * obj1 = 0 ;
15584 PyObject * obj2 = 0 ;
15585 char *kwnames[] = {
15586 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15587 };
15588
15589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15591 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15592 if (arg2 == NULL) {
15593 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15594 }
15595 if (obj2) {
15596 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15597 if (arg3 == NULL) {
15598 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15599 }
15600 }
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15604
15605 wxPyEndAllowThreads(__tstate);
15606 if (PyErr_Occurred()) SWIG_fail;
15607 }
15608 resultobj = SWIG_PyObj_FromInt((int)result);
15609 return resultobj;
15610 fail:
15611 return NULL;
15612 }
15613
15614
15615 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15616 PyObject *resultobj;
15617 wxImageList *arg1 = (wxImageList *) 0 ;
15618 wxBitmap *arg2 = 0 ;
15619 wxColour *arg3 = 0 ;
15620 int result;
15621 wxColour temp3 ;
15622 PyObject * obj0 = 0 ;
15623 PyObject * obj1 = 0 ;
15624 PyObject * obj2 = 0 ;
15625 char *kwnames[] = {
15626 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15627 };
15628
15629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15631 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15632 if (arg2 == NULL) {
15633 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15634 }
15635 {
15636 arg3 = &temp3;
15637 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15638 }
15639 {
15640 PyThreadState* __tstate = wxPyBeginAllowThreads();
15641 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15642
15643 wxPyEndAllowThreads(__tstate);
15644 if (PyErr_Occurred()) SWIG_fail;
15645 }
15646 resultobj = SWIG_PyObj_FromInt((int)result);
15647 return resultobj;
15648 fail:
15649 return NULL;
15650 }
15651
15652
15653 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15654 PyObject *resultobj;
15655 wxImageList *arg1 = (wxImageList *) 0 ;
15656 wxIcon *arg2 = 0 ;
15657 int result;
15658 PyObject * obj0 = 0 ;
15659 PyObject * obj1 = 0 ;
15660 char *kwnames[] = {
15661 (char *) "self",(char *) "icon", NULL
15662 };
15663
15664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15665 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15666 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15667 if (arg2 == NULL) {
15668 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15669 }
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15673
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 resultobj = SWIG_PyObj_FromInt((int)result);
15678 return resultobj;
15679 fail:
15680 return NULL;
15681 }
15682
15683
15684 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15685 PyObject *resultobj;
15686 wxImageList *arg1 = (wxImageList *) 0 ;
15687 int arg2 ;
15688 wxBitmap *arg3 = 0 ;
15689 bool result;
15690 PyObject * obj0 = 0 ;
15691 PyObject * obj1 = 0 ;
15692 PyObject * obj2 = 0 ;
15693 char *kwnames[] = {
15694 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15695 };
15696
15697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15699 {
15700 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15701 if (PyErr_Occurred()) SWIG_fail;
15702 }
15703 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15704 if (arg3 == NULL) {
15705 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15706 }
15707 {
15708 PyThreadState* __tstate = wxPyBeginAllowThreads();
15709 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15710
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15722 PyObject *resultobj;
15723 wxImageList *arg1 = (wxImageList *) 0 ;
15724 int arg2 ;
15725 wxDC *arg3 = 0 ;
15726 int arg4 ;
15727 int arg5 ;
15728 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15729 bool arg7 = (bool) (bool)False ;
15730 bool result;
15731 PyObject * obj0 = 0 ;
15732 PyObject * obj1 = 0 ;
15733 PyObject * obj2 = 0 ;
15734 PyObject * obj3 = 0 ;
15735 PyObject * obj4 = 0 ;
15736 PyObject * obj5 = 0 ;
15737 PyObject * obj6 = 0 ;
15738 char *kwnames[] = {
15739 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15740 };
15741
15742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15743 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15744 {
15745 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15746 if (PyErr_Occurred()) SWIG_fail;
15747 }
15748 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15749 if (arg3 == NULL) {
15750 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15751 }
15752 {
15753 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 {
15757 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 if (obj5) {
15761 {
15762 arg6 = (int) SWIG_PyObj_AsInt(obj5);
15763 if (PyErr_Occurred()) SWIG_fail;
15764 }
15765 }
15766 if (obj6) {
15767 {
15768 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
15769 if (PyErr_Occurred()) SWIG_fail;
15770 }
15771 }
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15775
15776 wxPyEndAllowThreads(__tstate);
15777 if (PyErr_Occurred()) SWIG_fail;
15778 }
15779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15780 return resultobj;
15781 fail:
15782 return NULL;
15783 }
15784
15785
15786 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15787 PyObject *resultobj;
15788 wxImageList *arg1 = (wxImageList *) 0 ;
15789 int result;
15790 PyObject * obj0 = 0 ;
15791 char *kwnames[] = {
15792 (char *) "self", NULL
15793 };
15794
15795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15797 {
15798 PyThreadState* __tstate = wxPyBeginAllowThreads();
15799 result = (int)(arg1)->GetImageCount();
15800
15801 wxPyEndAllowThreads(__tstate);
15802 if (PyErr_Occurred()) SWIG_fail;
15803 }
15804 resultobj = SWIG_PyObj_FromInt((int)result);
15805 return resultobj;
15806 fail:
15807 return NULL;
15808 }
15809
15810
15811 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15812 PyObject *resultobj;
15813 wxImageList *arg1 = (wxImageList *) 0 ;
15814 int arg2 ;
15815 bool result;
15816 PyObject * obj0 = 0 ;
15817 PyObject * obj1 = 0 ;
15818 char *kwnames[] = {
15819 (char *) "self",(char *) "index", NULL
15820 };
15821
15822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15824 {
15825 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15826 if (PyErr_Occurred()) SWIG_fail;
15827 }
15828 {
15829 PyThreadState* __tstate = wxPyBeginAllowThreads();
15830 result = (bool)(arg1)->Remove(arg2);
15831
15832 wxPyEndAllowThreads(__tstate);
15833 if (PyErr_Occurred()) SWIG_fail;
15834 }
15835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15836 return resultobj;
15837 fail:
15838 return NULL;
15839 }
15840
15841
15842 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15843 PyObject *resultobj;
15844 wxImageList *arg1 = (wxImageList *) 0 ;
15845 bool result;
15846 PyObject * obj0 = 0 ;
15847 char *kwnames[] = {
15848 (char *) "self", NULL
15849 };
15850
15851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15852 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15853 {
15854 PyThreadState* __tstate = wxPyBeginAllowThreads();
15855 result = (bool)(arg1)->RemoveAll();
15856
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15861 return resultobj;
15862 fail:
15863 return NULL;
15864 }
15865
15866
15867 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15868 PyObject *resultobj;
15869 wxImageList *arg1 = (wxImageList *) 0 ;
15870 int arg2 ;
15871 int *arg3 = 0 ;
15872 int *arg4 = 0 ;
15873 int temp3 ;
15874 int temp4 ;
15875 PyObject * obj0 = 0 ;
15876 PyObject * obj1 = 0 ;
15877 char *kwnames[] = {
15878 (char *) "self",(char *) "index", NULL
15879 };
15880
15881 arg3 = &temp3;
15882 arg4 = &temp4;
15883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15885 {
15886 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15887 if (PyErr_Occurred()) SWIG_fail;
15888 }
15889 {
15890 PyThreadState* __tstate = wxPyBeginAllowThreads();
15891 (arg1)->GetSize(arg2,*arg3,*arg4);
15892
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 Py_INCREF(Py_None); resultobj = Py_None;
15897 {
15898 PyObject *o = PyInt_FromLong((long) (*arg3));
15899 resultobj = t_output_helper(resultobj,o);
15900 }
15901 {
15902 PyObject *o = PyInt_FromLong((long) (*arg4));
15903 resultobj = t_output_helper(resultobj,o);
15904 }
15905 return resultobj;
15906 fail:
15907 return NULL;
15908 }
15909
15910
15911 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
15912 PyObject *obj;
15913 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15914 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
15915 Py_INCREF(obj);
15916 return Py_BuildValue((char *)"");
15917 }
15918 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
15919 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15920 return 1;
15921 }
15922
15923
15924 static PyObject *_wrap_NORMAL_FONT_get() {
15925 PyObject *pyobj;
15926
15927 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15928 return pyobj;
15929 }
15930
15931
15932 static int _wrap_SMALL_FONT_set(PyObject *_val) {
15933 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15934 return 1;
15935 }
15936
15937
15938 static PyObject *_wrap_SMALL_FONT_get() {
15939 PyObject *pyobj;
15940
15941 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15942 return pyobj;
15943 }
15944
15945
15946 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
15947 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15948 return 1;
15949 }
15950
15951
15952 static PyObject *_wrap_ITALIC_FONT_get() {
15953 PyObject *pyobj;
15954
15955 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15956 return pyobj;
15957 }
15958
15959
15960 static int _wrap_SWISS_FONT_set(PyObject *_val) {
15961 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15962 return 1;
15963 }
15964
15965
15966 static PyObject *_wrap_SWISS_FONT_get() {
15967 PyObject *pyobj;
15968
15969 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15970 return pyobj;
15971 }
15972
15973
15974 static int _wrap_RED_PEN_set(PyObject *_val) {
15975 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15976 return 1;
15977 }
15978
15979
15980 static PyObject *_wrap_RED_PEN_get() {
15981 PyObject *pyobj;
15982
15983 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15984 return pyobj;
15985 }
15986
15987
15988 static int _wrap_CYAN_PEN_set(PyObject *_val) {
15989 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15990 return 1;
15991 }
15992
15993
15994 static PyObject *_wrap_CYAN_PEN_get() {
15995 PyObject *pyobj;
15996
15997 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15998 return pyobj;
15999 }
16000
16001
16002 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16003 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16004 return 1;
16005 }
16006
16007
16008 static PyObject *_wrap_GREEN_PEN_get() {
16009 PyObject *pyobj;
16010
16011 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
16012 return pyobj;
16013 }
16014
16015
16016 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16017 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16018 return 1;
16019 }
16020
16021
16022 static PyObject *_wrap_BLACK_PEN_get() {
16023 PyObject *pyobj;
16024
16025 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
16026 return pyobj;
16027 }
16028
16029
16030 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16031 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16032 return 1;
16033 }
16034
16035
16036 static PyObject *_wrap_WHITE_PEN_get() {
16037 PyObject *pyobj;
16038
16039 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
16040 return pyobj;
16041 }
16042
16043
16044 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16045 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16046 return 1;
16047 }
16048
16049
16050 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16051 PyObject *pyobj;
16052
16053 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
16054 return pyobj;
16055 }
16056
16057
16058 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16059 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16060 return 1;
16061 }
16062
16063
16064 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16065 PyObject *pyobj;
16066
16067 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
16068 return pyobj;
16069 }
16070
16071
16072 static int _wrap_GREY_PEN_set(PyObject *_val) {
16073 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16074 return 1;
16075 }
16076
16077
16078 static PyObject *_wrap_GREY_PEN_get() {
16079 PyObject *pyobj;
16080
16081 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
16082 return pyobj;
16083 }
16084
16085
16086 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16087 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16088 return 1;
16089 }
16090
16091
16092 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16093 PyObject *pyobj;
16094
16095 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16096 return pyobj;
16097 }
16098
16099
16100 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16101 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16102 return 1;
16103 }
16104
16105
16106 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16107 PyObject *pyobj;
16108
16109 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
16110 return pyobj;
16111 }
16112
16113
16114 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16115 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16116 return 1;
16117 }
16118
16119
16120 static PyObject *_wrap_BLUE_BRUSH_get() {
16121 PyObject *pyobj;
16122
16123 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16124 return pyobj;
16125 }
16126
16127
16128 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16129 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16130 return 1;
16131 }
16132
16133
16134 static PyObject *_wrap_GREEN_BRUSH_get() {
16135 PyObject *pyobj;
16136
16137 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16138 return pyobj;
16139 }
16140
16141
16142 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16143 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16144 return 1;
16145 }
16146
16147
16148 static PyObject *_wrap_WHITE_BRUSH_get() {
16149 PyObject *pyobj;
16150
16151 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
16152 return pyobj;
16153 }
16154
16155
16156 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16157 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16158 return 1;
16159 }
16160
16161
16162 static PyObject *_wrap_BLACK_BRUSH_get() {
16163 PyObject *pyobj;
16164
16165 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
16166 return pyobj;
16167 }
16168
16169
16170 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16171 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16172 return 1;
16173 }
16174
16175
16176 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16177 PyObject *pyobj;
16178
16179 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
16180 return pyobj;
16181 }
16182
16183
16184 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16185 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16186 return 1;
16187 }
16188
16189
16190 static PyObject *_wrap_CYAN_BRUSH_get() {
16191 PyObject *pyobj;
16192
16193 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
16194 return pyobj;
16195 }
16196
16197
16198 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16199 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16200 return 1;
16201 }
16202
16203
16204 static PyObject *_wrap_RED_BRUSH_get() {
16205 PyObject *pyobj;
16206
16207 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
16208 return pyobj;
16209 }
16210
16211
16212 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16213 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16214 return 1;
16215 }
16216
16217
16218 static PyObject *_wrap_GREY_BRUSH_get() {
16219 PyObject *pyobj;
16220
16221 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16222 return pyobj;
16223 }
16224
16225
16226 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16227 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16228 return 1;
16229 }
16230
16231
16232 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16233 PyObject *pyobj;
16234
16235 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16236 return pyobj;
16237 }
16238
16239
16240 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16241 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16242 return 1;
16243 }
16244
16245
16246 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16247 PyObject *pyobj;
16248
16249 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
16250 return pyobj;
16251 }
16252
16253
16254 static int _wrap_BLACK_set(PyObject *_val) {
16255 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16256 return 1;
16257 }
16258
16259
16260 static PyObject *_wrap_BLACK_get() {
16261 PyObject *pyobj;
16262
16263 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
16264 return pyobj;
16265 }
16266
16267
16268 static int _wrap_WHITE_set(PyObject *_val) {
16269 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16270 return 1;
16271 }
16272
16273
16274 static PyObject *_wrap_WHITE_get() {
16275 PyObject *pyobj;
16276
16277 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
16278 return pyobj;
16279 }
16280
16281
16282 static int _wrap_RED_set(PyObject *_val) {
16283 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16284 return 1;
16285 }
16286
16287
16288 static PyObject *_wrap_RED_get() {
16289 PyObject *pyobj;
16290
16291 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
16292 return pyobj;
16293 }
16294
16295
16296 static int _wrap_BLUE_set(PyObject *_val) {
16297 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16298 return 1;
16299 }
16300
16301
16302 static PyObject *_wrap_BLUE_get() {
16303 PyObject *pyobj;
16304
16305 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16306 return pyobj;
16307 }
16308
16309
16310 static int _wrap_GREEN_set(PyObject *_val) {
16311 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16312 return 1;
16313 }
16314
16315
16316 static PyObject *_wrap_GREEN_get() {
16317 PyObject *pyobj;
16318
16319 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16320 return pyobj;
16321 }
16322
16323
16324 static int _wrap_CYAN_set(PyObject *_val) {
16325 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16326 return 1;
16327 }
16328
16329
16330 static PyObject *_wrap_CYAN_get() {
16331 PyObject *pyobj;
16332
16333 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16334 return pyobj;
16335 }
16336
16337
16338 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16339 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16340 return 1;
16341 }
16342
16343
16344 static PyObject *_wrap_LIGHT_GREY_get() {
16345 PyObject *pyobj;
16346
16347 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16348 return pyobj;
16349 }
16350
16351
16352 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16353 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16354 return 1;
16355 }
16356
16357
16358 static PyObject *_wrap_STANDARD_CURSOR_get() {
16359 PyObject *pyobj;
16360
16361 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16362 return pyobj;
16363 }
16364
16365
16366 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16367 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16368 return 1;
16369 }
16370
16371
16372 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16373 PyObject *pyobj;
16374
16375 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16376 return pyobj;
16377 }
16378
16379
16380 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16381 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16382 return 1;
16383 }
16384
16385
16386 static PyObject *_wrap_CROSS_CURSOR_get() {
16387 PyObject *pyobj;
16388
16389 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16390 return pyobj;
16391 }
16392
16393
16394 static int _wrap_NullBitmap_set(PyObject *_val) {
16395 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16396 return 1;
16397 }
16398
16399
16400 static PyObject *_wrap_NullBitmap_get() {
16401 PyObject *pyobj;
16402
16403 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16404 return pyobj;
16405 }
16406
16407
16408 static int _wrap_NullIcon_set(PyObject *_val) {
16409 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16410 return 1;
16411 }
16412
16413
16414 static PyObject *_wrap_NullIcon_get() {
16415 PyObject *pyobj;
16416
16417 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16418 return pyobj;
16419 }
16420
16421
16422 static int _wrap_NullCursor_set(PyObject *_val) {
16423 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16424 return 1;
16425 }
16426
16427
16428 static PyObject *_wrap_NullCursor_get() {
16429 PyObject *pyobj;
16430
16431 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16432 return pyobj;
16433 }
16434
16435
16436 static int _wrap_NullPen_set(PyObject *_val) {
16437 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16438 return 1;
16439 }
16440
16441
16442 static PyObject *_wrap_NullPen_get() {
16443 PyObject *pyobj;
16444
16445 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16446 return pyobj;
16447 }
16448
16449
16450 static int _wrap_NullBrush_set(PyObject *_val) {
16451 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16452 return 1;
16453 }
16454
16455
16456 static PyObject *_wrap_NullBrush_get() {
16457 PyObject *pyobj;
16458
16459 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16460 return pyobj;
16461 }
16462
16463
16464 static int _wrap_NullPalette_set(PyObject *_val) {
16465 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16466 return 1;
16467 }
16468
16469
16470 static PyObject *_wrap_NullPalette_get() {
16471 PyObject *pyobj;
16472
16473 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16474 return pyobj;
16475 }
16476
16477
16478 static int _wrap_NullFont_set(PyObject *_val) {
16479 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16480 return 1;
16481 }
16482
16483
16484 static PyObject *_wrap_NullFont_get() {
16485 PyObject *pyobj;
16486
16487 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16488 return pyobj;
16489 }
16490
16491
16492 static int _wrap_NullColour_set(PyObject *_val) {
16493 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16494 return 1;
16495 }
16496
16497
16498 static PyObject *_wrap_NullColour_get() {
16499 PyObject *pyobj;
16500
16501 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16502 return pyobj;
16503 }
16504
16505
16506 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16507 PyObject *resultobj;
16508 wxPenList *arg1 = (wxPenList *) 0 ;
16509 wxPen *arg2 = (wxPen *) 0 ;
16510 PyObject * obj0 = 0 ;
16511 PyObject * obj1 = 0 ;
16512 char *kwnames[] = {
16513 (char *) "self",(char *) "pen", NULL
16514 };
16515
16516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16517 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16518 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16519 {
16520 PyThreadState* __tstate = wxPyBeginAllowThreads();
16521 (arg1)->AddPen(arg2);
16522
16523 wxPyEndAllowThreads(__tstate);
16524 if (PyErr_Occurred()) SWIG_fail;
16525 }
16526 Py_INCREF(Py_None); resultobj = Py_None;
16527 return resultobj;
16528 fail:
16529 return NULL;
16530 }
16531
16532
16533 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16534 PyObject *resultobj;
16535 wxPenList *arg1 = (wxPenList *) 0 ;
16536 wxColour *arg2 = 0 ;
16537 int arg3 ;
16538 int arg4 ;
16539 wxPen *result;
16540 wxColour temp2 ;
16541 PyObject * obj0 = 0 ;
16542 PyObject * obj1 = 0 ;
16543 PyObject * obj2 = 0 ;
16544 PyObject * obj3 = 0 ;
16545 char *kwnames[] = {
16546 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16547 };
16548
16549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16550 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16551 {
16552 arg2 = &temp2;
16553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16554 }
16555 {
16556 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16557 if (PyErr_Occurred()) SWIG_fail;
16558 }
16559 {
16560 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16561 if (PyErr_Occurred()) SWIG_fail;
16562 }
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16566
16567 wxPyEndAllowThreads(__tstate);
16568 if (PyErr_Occurred()) SWIG_fail;
16569 }
16570 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
16571 return resultobj;
16572 fail:
16573 return NULL;
16574 }
16575
16576
16577 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16578 PyObject *resultobj;
16579 wxPenList *arg1 = (wxPenList *) 0 ;
16580 wxPen *arg2 = (wxPen *) 0 ;
16581 PyObject * obj0 = 0 ;
16582 PyObject * obj1 = 0 ;
16583 char *kwnames[] = {
16584 (char *) "self",(char *) "pen", NULL
16585 };
16586
16587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16589 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 (arg1)->RemovePen(arg2);
16593
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 Py_INCREF(Py_None); resultobj = Py_None;
16598 return resultobj;
16599 fail:
16600 return NULL;
16601 }
16602
16603
16604 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16605 PyObject *resultobj;
16606 wxPenList *arg1 = (wxPenList *) 0 ;
16607 int result;
16608 PyObject * obj0 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16614 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 result = (int)(arg1)->GetCount();
16618
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 resultobj = SWIG_PyObj_FromInt((int)result);
16623 return resultobj;
16624 fail:
16625 return NULL;
16626 }
16627
16628
16629 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16630 PyObject *obj;
16631 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16632 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16633 Py_INCREF(obj);
16634 return Py_BuildValue((char *)"");
16635 }
16636 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16637 PyObject *resultobj;
16638 wxBrushList *arg1 = (wxBrushList *) 0 ;
16639 wxBrush *arg2 = (wxBrush *) 0 ;
16640 PyObject * obj0 = 0 ;
16641 PyObject * obj1 = 0 ;
16642 char *kwnames[] = {
16643 (char *) "self",(char *) "brush", NULL
16644 };
16645
16646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16648 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16649 {
16650 PyThreadState* __tstate = wxPyBeginAllowThreads();
16651 (arg1)->AddBrush(arg2);
16652
16653 wxPyEndAllowThreads(__tstate);
16654 if (PyErr_Occurred()) SWIG_fail;
16655 }
16656 Py_INCREF(Py_None); resultobj = Py_None;
16657 return resultobj;
16658 fail:
16659 return NULL;
16660 }
16661
16662
16663 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16664 PyObject *resultobj;
16665 wxBrushList *arg1 = (wxBrushList *) 0 ;
16666 wxColour *arg2 = 0 ;
16667 int arg3 ;
16668 wxBrush *result;
16669 wxColour temp2 ;
16670 PyObject * obj0 = 0 ;
16671 PyObject * obj1 = 0 ;
16672 PyObject * obj2 = 0 ;
16673 char *kwnames[] = {
16674 (char *) "self",(char *) "colour",(char *) "style", NULL
16675 };
16676
16677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16679 {
16680 arg2 = &temp2;
16681 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16682 }
16683 {
16684 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16685 if (PyErr_Occurred()) SWIG_fail;
16686 }
16687 {
16688 PyThreadState* __tstate = wxPyBeginAllowThreads();
16689 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16690
16691 wxPyEndAllowThreads(__tstate);
16692 if (PyErr_Occurred()) SWIG_fail;
16693 }
16694 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
16695 return resultobj;
16696 fail:
16697 return NULL;
16698 }
16699
16700
16701 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16702 PyObject *resultobj;
16703 wxBrushList *arg1 = (wxBrushList *) 0 ;
16704 wxBrush *arg2 = (wxBrush *) 0 ;
16705 PyObject * obj0 = 0 ;
16706 PyObject * obj1 = 0 ;
16707 char *kwnames[] = {
16708 (char *) "self",(char *) "brush", NULL
16709 };
16710
16711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16712 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16713 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16714 {
16715 PyThreadState* __tstate = wxPyBeginAllowThreads();
16716 (arg1)->RemoveBrush(arg2);
16717
16718 wxPyEndAllowThreads(__tstate);
16719 if (PyErr_Occurred()) SWIG_fail;
16720 }
16721 Py_INCREF(Py_None); resultobj = Py_None;
16722 return resultobj;
16723 fail:
16724 return NULL;
16725 }
16726
16727
16728 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj;
16730 wxBrushList *arg1 = (wxBrushList *) 0 ;
16731 int result;
16732 PyObject * obj0 = 0 ;
16733 char *kwnames[] = {
16734 (char *) "self", NULL
16735 };
16736
16737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16739 {
16740 PyThreadState* __tstate = wxPyBeginAllowThreads();
16741 result = (int)(arg1)->GetCount();
16742
16743 wxPyEndAllowThreads(__tstate);
16744 if (PyErr_Occurred()) SWIG_fail;
16745 }
16746 resultobj = SWIG_PyObj_FromInt((int)result);
16747 return resultobj;
16748 fail:
16749 return NULL;
16750 }
16751
16752
16753 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16754 PyObject *obj;
16755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16756 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16757 Py_INCREF(obj);
16758 return Py_BuildValue((char *)"");
16759 }
16760 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16761 PyObject *resultobj;
16762 wxColourDatabase *result;
16763 char *kwnames[] = {
16764 NULL
16765 };
16766
16767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16768 {
16769 PyThreadState* __tstate = wxPyBeginAllowThreads();
16770 result = (wxColourDatabase *)new wxColourDatabase();
16771
16772 wxPyEndAllowThreads(__tstate);
16773 if (PyErr_Occurred()) SWIG_fail;
16774 }
16775 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
16776 return resultobj;
16777 fail:
16778 return NULL;
16779 }
16780
16781
16782 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16783 PyObject *resultobj;
16784 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16785 PyObject * obj0 = 0 ;
16786 char *kwnames[] = {
16787 (char *) "self", NULL
16788 };
16789
16790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16792 {
16793 PyThreadState* __tstate = wxPyBeginAllowThreads();
16794 delete arg1;
16795
16796 wxPyEndAllowThreads(__tstate);
16797 if (PyErr_Occurred()) SWIG_fail;
16798 }
16799 Py_INCREF(Py_None); resultobj = Py_None;
16800 return resultobj;
16801 fail:
16802 return NULL;
16803 }
16804
16805
16806 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16807 PyObject *resultobj;
16808 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16809 wxString *arg2 = 0 ;
16810 wxColour result;
16811 bool temp2 = False ;
16812 PyObject * obj0 = 0 ;
16813 PyObject * obj1 = 0 ;
16814 char *kwnames[] = {
16815 (char *) "self",(char *) "name", NULL
16816 };
16817
16818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16819 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16820 {
16821 arg2 = wxString_in_helper(obj1);
16822 if (arg2 == NULL) SWIG_fail;
16823 temp2 = True;
16824 }
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16828
16829 wxPyEndAllowThreads(__tstate);
16830 if (PyErr_Occurred()) SWIG_fail;
16831 }
16832 {
16833 wxColour * resultptr;
16834 resultptr = new wxColour((wxColour &) result);
16835 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16836 }
16837 {
16838 if (temp2)
16839 delete arg2;
16840 }
16841 return resultobj;
16842 fail:
16843 {
16844 if (temp2)
16845 delete arg2;
16846 }
16847 return NULL;
16848 }
16849
16850
16851 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16852 PyObject *resultobj;
16853 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16854 wxColour *arg2 = 0 ;
16855 wxString result;
16856 wxColour temp2 ;
16857 PyObject * obj0 = 0 ;
16858 PyObject * obj1 = 0 ;
16859 char *kwnames[] = {
16860 (char *) "self",(char *) "colour", NULL
16861 };
16862
16863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16864 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16865 {
16866 arg2 = &temp2;
16867 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16868 }
16869 {
16870 PyThreadState* __tstate = wxPyBeginAllowThreads();
16871 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16872
16873 wxPyEndAllowThreads(__tstate);
16874 if (PyErr_Occurred()) SWIG_fail;
16875 }
16876 {
16877 #if wxUSE_UNICODE
16878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16879 #else
16880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16881 #endif
16882 }
16883 return resultobj;
16884 fail:
16885 return NULL;
16886 }
16887
16888
16889 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16890 PyObject *resultobj;
16891 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16892 wxString *arg2 = 0 ;
16893 wxColour *arg3 = 0 ;
16894 bool temp2 = False ;
16895 wxColour temp3 ;
16896 PyObject * obj0 = 0 ;
16897 PyObject * obj1 = 0 ;
16898 PyObject * obj2 = 0 ;
16899 char *kwnames[] = {
16900 (char *) "self",(char *) "name",(char *) "colour", NULL
16901 };
16902
16903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
16904 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16905 {
16906 arg2 = wxString_in_helper(obj1);
16907 if (arg2 == NULL) SWIG_fail;
16908 temp2 = True;
16909 }
16910 {
16911 arg3 = &temp3;
16912 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16913 }
16914 {
16915 PyThreadState* __tstate = wxPyBeginAllowThreads();
16916 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
16917
16918 wxPyEndAllowThreads(__tstate);
16919 if (PyErr_Occurred()) SWIG_fail;
16920 }
16921 Py_INCREF(Py_None); resultobj = Py_None;
16922 {
16923 if (temp2)
16924 delete arg2;
16925 }
16926 return resultobj;
16927 fail:
16928 {
16929 if (temp2)
16930 delete arg2;
16931 }
16932 return NULL;
16933 }
16934
16935
16936 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
16937 PyObject *resultobj;
16938 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16939 wxString *arg2 = 0 ;
16940 int arg3 ;
16941 int arg4 ;
16942 int arg5 ;
16943 bool temp2 = False ;
16944 PyObject * obj0 = 0 ;
16945 PyObject * obj1 = 0 ;
16946 PyObject * obj2 = 0 ;
16947 PyObject * obj3 = 0 ;
16948 PyObject * obj4 = 0 ;
16949 char *kwnames[] = {
16950 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
16951 };
16952
16953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16955 {
16956 arg2 = wxString_in_helper(obj1);
16957 if (arg2 == NULL) SWIG_fail;
16958 temp2 = True;
16959 }
16960 {
16961 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16962 if (PyErr_Occurred()) SWIG_fail;
16963 }
16964 {
16965 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
16968 {
16969 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16970 if (PyErr_Occurred()) SWIG_fail;
16971 }
16972 {
16973 PyThreadState* __tstate = wxPyBeginAllowThreads();
16974 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
16975
16976 wxPyEndAllowThreads(__tstate);
16977 if (PyErr_Occurred()) SWIG_fail;
16978 }
16979 Py_INCREF(Py_None); resultobj = Py_None;
16980 {
16981 if (temp2)
16982 delete arg2;
16983 }
16984 return resultobj;
16985 fail:
16986 {
16987 if (temp2)
16988 delete arg2;
16989 }
16990 return NULL;
16991 }
16992
16993
16994 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
16995 PyObject *obj;
16996 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16997 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
16998 Py_INCREF(obj);
16999 return Py_BuildValue((char *)"");
17000 }
17001 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17002 PyObject *resultobj;
17003 wxFontList *arg1 = (wxFontList *) 0 ;
17004 wxFont *arg2 = (wxFont *) 0 ;
17005 PyObject * obj0 = 0 ;
17006 PyObject * obj1 = 0 ;
17007 char *kwnames[] = {
17008 (char *) "self",(char *) "font", NULL
17009 };
17010
17011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17012 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17013 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17014 {
17015 PyThreadState* __tstate = wxPyBeginAllowThreads();
17016 (arg1)->AddFont(arg2);
17017
17018 wxPyEndAllowThreads(__tstate);
17019 if (PyErr_Occurred()) SWIG_fail;
17020 }
17021 Py_INCREF(Py_None); resultobj = Py_None;
17022 return resultobj;
17023 fail:
17024 return NULL;
17025 }
17026
17027
17028 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17029 PyObject *resultobj;
17030 wxFontList *arg1 = (wxFontList *) 0 ;
17031 int arg2 ;
17032 int arg3 ;
17033 int arg4 ;
17034 int arg5 ;
17035 bool arg6 = (bool) False ;
17036 wxString const &arg7_defvalue = wxPyEmptyString ;
17037 wxString *arg7 = (wxString *) &arg7_defvalue ;
17038 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17039 wxFont *result;
17040 bool temp7 = False ;
17041 PyObject * obj0 = 0 ;
17042 PyObject * obj1 = 0 ;
17043 PyObject * obj2 = 0 ;
17044 PyObject * obj3 = 0 ;
17045 PyObject * obj4 = 0 ;
17046 PyObject * obj5 = 0 ;
17047 PyObject * obj6 = 0 ;
17048 PyObject * obj7 = 0 ;
17049 char *kwnames[] = {
17050 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17051 };
17052
17053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17055 {
17056 arg2 = (int) SWIG_PyObj_AsInt(obj1);
17057 if (PyErr_Occurred()) SWIG_fail;
17058 }
17059 {
17060 arg3 = (int) SWIG_PyObj_AsInt(obj2);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 {
17064 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17065 if (PyErr_Occurred()) SWIG_fail;
17066 }
17067 {
17068 arg5 = (int) SWIG_PyObj_AsInt(obj4);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 }
17071 if (obj5) {
17072 {
17073 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
17074 if (PyErr_Occurred()) SWIG_fail;
17075 }
17076 }
17077 if (obj6) {
17078 {
17079 arg7 = wxString_in_helper(obj6);
17080 if (arg7 == NULL) SWIG_fail;
17081 temp7 = True;
17082 }
17083 }
17084 if (obj7) {
17085 {
17086 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
17087 if (PyErr_Occurred()) SWIG_fail;
17088 }
17089 }
17090 {
17091 PyThreadState* __tstate = wxPyBeginAllowThreads();
17092 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17093
17094 wxPyEndAllowThreads(__tstate);
17095 if (PyErr_Occurred()) SWIG_fail;
17096 }
17097 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
17098 {
17099 if (temp7)
17100 delete arg7;
17101 }
17102 return resultobj;
17103 fail:
17104 {
17105 if (temp7)
17106 delete arg7;
17107 }
17108 return NULL;
17109 }
17110
17111
17112 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17113 PyObject *resultobj;
17114 wxFontList *arg1 = (wxFontList *) 0 ;
17115 wxFont *arg2 = (wxFont *) 0 ;
17116 PyObject * obj0 = 0 ;
17117 PyObject * obj1 = 0 ;
17118 char *kwnames[] = {
17119 (char *) "self",(char *) "font", NULL
17120 };
17121
17122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17124 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17125 {
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 (arg1)->RemoveFont(arg2);
17128
17129 wxPyEndAllowThreads(__tstate);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 Py_INCREF(Py_None); resultobj = Py_None;
17133 return resultobj;
17134 fail:
17135 return NULL;
17136 }
17137
17138
17139 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17140 PyObject *resultobj;
17141 wxFontList *arg1 = (wxFontList *) 0 ;
17142 int result;
17143 PyObject * obj0 = 0 ;
17144 char *kwnames[] = {
17145 (char *) "self", NULL
17146 };
17147
17148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17149 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17150 {
17151 PyThreadState* __tstate = wxPyBeginAllowThreads();
17152 result = (int)(arg1)->GetCount();
17153
17154 wxPyEndAllowThreads(__tstate);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 }
17157 resultobj = SWIG_PyObj_FromInt((int)result);
17158 return resultobj;
17159 fail:
17160 return NULL;
17161 }
17162
17163
17164 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17165 PyObject *obj;
17166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17167 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17168 Py_INCREF(obj);
17169 return Py_BuildValue((char *)"");
17170 }
17171 static int _wrap_TheFontList_set(PyObject *_val) {
17172 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17173 return 1;
17174 }
17175
17176
17177 static PyObject *_wrap_TheFontList_get() {
17178 PyObject *pyobj;
17179
17180 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
17181 return pyobj;
17182 }
17183
17184
17185 static int _wrap_ThePenList_set(PyObject *_val) {
17186 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17187 return 1;
17188 }
17189
17190
17191 static PyObject *_wrap_ThePenList_get() {
17192 PyObject *pyobj;
17193
17194 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
17195 return pyobj;
17196 }
17197
17198
17199 static int _wrap_TheBrushList_set(PyObject *_val) {
17200 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17201 return 1;
17202 }
17203
17204
17205 static PyObject *_wrap_TheBrushList_get() {
17206 PyObject *pyobj;
17207
17208 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
17209 return pyobj;
17210 }
17211
17212
17213 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17214 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17215 return 1;
17216 }
17217
17218
17219 static PyObject *_wrap_TheColourDatabase_get() {
17220 PyObject *pyobj;
17221
17222 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
17223 return pyobj;
17224 }
17225
17226
17227 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17228 PyObject *resultobj;
17229 wxEffects *result;
17230 char *kwnames[] = {
17231 NULL
17232 };
17233
17234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17235 {
17236 PyThreadState* __tstate = wxPyBeginAllowThreads();
17237 result = (wxEffects *)new wxEffects();
17238
17239 wxPyEndAllowThreads(__tstate);
17240 if (PyErr_Occurred()) SWIG_fail;
17241 }
17242 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
17243 return resultobj;
17244 fail:
17245 return NULL;
17246 }
17247
17248
17249 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17250 PyObject *resultobj;
17251 wxEffects *arg1 = (wxEffects *) 0 ;
17252 wxColour result;
17253 PyObject * obj0 = 0 ;
17254 char *kwnames[] = {
17255 (char *) "self", NULL
17256 };
17257
17258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17260 {
17261 PyThreadState* __tstate = wxPyBeginAllowThreads();
17262 result = ((wxEffects const *)arg1)->GetHighlightColour();
17263
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 {
17268 wxColour * resultptr;
17269 resultptr = new wxColour((wxColour &) result);
17270 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17271 }
17272 return resultobj;
17273 fail:
17274 return NULL;
17275 }
17276
17277
17278 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17279 PyObject *resultobj;
17280 wxEffects *arg1 = (wxEffects *) 0 ;
17281 wxColour result;
17282 PyObject * obj0 = 0 ;
17283 char *kwnames[] = {
17284 (char *) "self", NULL
17285 };
17286
17287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17289 {
17290 PyThreadState* __tstate = wxPyBeginAllowThreads();
17291 result = ((wxEffects const *)arg1)->GetLightShadow();
17292
17293 wxPyEndAllowThreads(__tstate);
17294 if (PyErr_Occurred()) SWIG_fail;
17295 }
17296 {
17297 wxColour * resultptr;
17298 resultptr = new wxColour((wxColour &) result);
17299 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17300 }
17301 return resultobj;
17302 fail:
17303 return NULL;
17304 }
17305
17306
17307 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17308 PyObject *resultobj;
17309 wxEffects *arg1 = (wxEffects *) 0 ;
17310 wxColour result;
17311 PyObject * obj0 = 0 ;
17312 char *kwnames[] = {
17313 (char *) "self", NULL
17314 };
17315
17316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17317 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17318 {
17319 PyThreadState* __tstate = wxPyBeginAllowThreads();
17320 result = ((wxEffects const *)arg1)->GetFaceColour();
17321
17322 wxPyEndAllowThreads(__tstate);
17323 if (PyErr_Occurred()) SWIG_fail;
17324 }
17325 {
17326 wxColour * resultptr;
17327 resultptr = new wxColour((wxColour &) result);
17328 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17329 }
17330 return resultobj;
17331 fail:
17332 return NULL;
17333 }
17334
17335
17336 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17337 PyObject *resultobj;
17338 wxEffects *arg1 = (wxEffects *) 0 ;
17339 wxColour result;
17340 PyObject * obj0 = 0 ;
17341 char *kwnames[] = {
17342 (char *) "self", NULL
17343 };
17344
17345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17347 {
17348 PyThreadState* __tstate = wxPyBeginAllowThreads();
17349 result = ((wxEffects const *)arg1)->GetMediumShadow();
17350
17351 wxPyEndAllowThreads(__tstate);
17352 if (PyErr_Occurred()) SWIG_fail;
17353 }
17354 {
17355 wxColour * resultptr;
17356 resultptr = new wxColour((wxColour &) result);
17357 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17358 }
17359 return resultobj;
17360 fail:
17361 return NULL;
17362 }
17363
17364
17365 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17366 PyObject *resultobj;
17367 wxEffects *arg1 = (wxEffects *) 0 ;
17368 wxColour result;
17369 PyObject * obj0 = 0 ;
17370 char *kwnames[] = {
17371 (char *) "self", NULL
17372 };
17373
17374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17376 {
17377 PyThreadState* __tstate = wxPyBeginAllowThreads();
17378 result = ((wxEffects const *)arg1)->GetDarkShadow();
17379
17380 wxPyEndAllowThreads(__tstate);
17381 if (PyErr_Occurred()) SWIG_fail;
17382 }
17383 {
17384 wxColour * resultptr;
17385 resultptr = new wxColour((wxColour &) result);
17386 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17387 }
17388 return resultobj;
17389 fail:
17390 return NULL;
17391 }
17392
17393
17394 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17395 PyObject *resultobj;
17396 wxEffects *arg1 = (wxEffects *) 0 ;
17397 wxColour *arg2 = 0 ;
17398 wxColour temp2 ;
17399 PyObject * obj0 = 0 ;
17400 PyObject * obj1 = 0 ;
17401 char *kwnames[] = {
17402 (char *) "self",(char *) "c", NULL
17403 };
17404
17405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17406 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17407 {
17408 arg2 = &temp2;
17409 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17410 }
17411 {
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17414
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 Py_INCREF(Py_None); resultobj = Py_None;
17419 return resultobj;
17420 fail:
17421 return NULL;
17422 }
17423
17424
17425 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj;
17427 wxEffects *arg1 = (wxEffects *) 0 ;
17428 wxColour *arg2 = 0 ;
17429 wxColour temp2 ;
17430 PyObject * obj0 = 0 ;
17431 PyObject * obj1 = 0 ;
17432 char *kwnames[] = {
17433 (char *) "self",(char *) "c", NULL
17434 };
17435
17436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17437 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17438 {
17439 arg2 = &temp2;
17440 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17441 }
17442 {
17443 PyThreadState* __tstate = wxPyBeginAllowThreads();
17444 (arg1)->SetLightShadow((wxColour const &)*arg2);
17445
17446 wxPyEndAllowThreads(__tstate);
17447 if (PyErr_Occurred()) SWIG_fail;
17448 }
17449 Py_INCREF(Py_None); resultobj = Py_None;
17450 return resultobj;
17451 fail:
17452 return NULL;
17453 }
17454
17455
17456 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj;
17458 wxEffects *arg1 = (wxEffects *) 0 ;
17459 wxColour *arg2 = 0 ;
17460 wxColour temp2 ;
17461 PyObject * obj0 = 0 ;
17462 PyObject * obj1 = 0 ;
17463 char *kwnames[] = {
17464 (char *) "self",(char *) "c", NULL
17465 };
17466
17467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17469 {
17470 arg2 = &temp2;
17471 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17472 }
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 (arg1)->SetFaceColour((wxColour const &)*arg2);
17476
17477 wxPyEndAllowThreads(__tstate);
17478 if (PyErr_Occurred()) SWIG_fail;
17479 }
17480 Py_INCREF(Py_None); resultobj = Py_None;
17481 return resultobj;
17482 fail:
17483 return NULL;
17484 }
17485
17486
17487 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17488 PyObject *resultobj;
17489 wxEffects *arg1 = (wxEffects *) 0 ;
17490 wxColour *arg2 = 0 ;
17491 wxColour temp2 ;
17492 PyObject * obj0 = 0 ;
17493 PyObject * obj1 = 0 ;
17494 char *kwnames[] = {
17495 (char *) "self",(char *) "c", NULL
17496 };
17497
17498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17499 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17500 {
17501 arg2 = &temp2;
17502 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17503 }
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17507
17508 wxPyEndAllowThreads(__tstate);
17509 if (PyErr_Occurred()) SWIG_fail;
17510 }
17511 Py_INCREF(Py_None); resultobj = Py_None;
17512 return resultobj;
17513 fail:
17514 return NULL;
17515 }
17516
17517
17518 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17519 PyObject *resultobj;
17520 wxEffects *arg1 = (wxEffects *) 0 ;
17521 wxColour *arg2 = 0 ;
17522 wxColour temp2 ;
17523 PyObject * obj0 = 0 ;
17524 PyObject * obj1 = 0 ;
17525 char *kwnames[] = {
17526 (char *) "self",(char *) "c", NULL
17527 };
17528
17529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17530 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17531 {
17532 arg2 = &temp2;
17533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17534 }
17535 {
17536 PyThreadState* __tstate = wxPyBeginAllowThreads();
17537 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17538
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 Py_INCREF(Py_None); resultobj = Py_None;
17543 return resultobj;
17544 fail:
17545 return NULL;
17546 }
17547
17548
17549 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17550 PyObject *resultobj;
17551 wxEffects *arg1 = (wxEffects *) 0 ;
17552 wxColour *arg2 = 0 ;
17553 wxColour *arg3 = 0 ;
17554 wxColour *arg4 = 0 ;
17555 wxColour *arg5 = 0 ;
17556 wxColour *arg6 = 0 ;
17557 wxColour temp2 ;
17558 wxColour temp3 ;
17559 wxColour temp4 ;
17560 wxColour temp5 ;
17561 wxColour temp6 ;
17562 PyObject * obj0 = 0 ;
17563 PyObject * obj1 = 0 ;
17564 PyObject * obj2 = 0 ;
17565 PyObject * obj3 = 0 ;
17566 PyObject * obj4 = 0 ;
17567 PyObject * obj5 = 0 ;
17568 char *kwnames[] = {
17569 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17570 };
17571
17572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17574 {
17575 arg2 = &temp2;
17576 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17577 }
17578 {
17579 arg3 = &temp3;
17580 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17581 }
17582 {
17583 arg4 = &temp4;
17584 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17585 }
17586 {
17587 arg5 = &temp5;
17588 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17589 }
17590 {
17591 arg6 = &temp6;
17592 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17593 }
17594 {
17595 PyThreadState* __tstate = wxPyBeginAllowThreads();
17596 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17597
17598 wxPyEndAllowThreads(__tstate);
17599 if (PyErr_Occurred()) SWIG_fail;
17600 }
17601 Py_INCREF(Py_None); resultobj = Py_None;
17602 return resultobj;
17603 fail:
17604 return NULL;
17605 }
17606
17607
17608 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17609 PyObject *resultobj;
17610 wxEffects *arg1 = (wxEffects *) 0 ;
17611 wxDC *arg2 = 0 ;
17612 wxRect *arg3 = 0 ;
17613 int arg4 = (int) 1 ;
17614 wxRect temp3 ;
17615 PyObject * obj0 = 0 ;
17616 PyObject * obj1 = 0 ;
17617 PyObject * obj2 = 0 ;
17618 PyObject * obj3 = 0 ;
17619 char *kwnames[] = {
17620 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17621 };
17622
17623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17625 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17626 if (arg2 == NULL) {
17627 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17628 }
17629 {
17630 arg3 = &temp3;
17631 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17632 }
17633 if (obj3) {
17634 {
17635 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 }
17638 }
17639 {
17640 PyThreadState* __tstate = wxPyBeginAllowThreads();
17641 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17642
17643 wxPyEndAllowThreads(__tstate);
17644 if (PyErr_Occurred()) SWIG_fail;
17645 }
17646 Py_INCREF(Py_None); resultobj = Py_None;
17647 return resultobj;
17648 fail:
17649 return NULL;
17650 }
17651
17652
17653 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17654 PyObject *resultobj;
17655 wxEffects *arg1 = (wxEffects *) 0 ;
17656 wxRect *arg2 = 0 ;
17657 wxDC *arg3 = 0 ;
17658 wxBitmap *arg4 = 0 ;
17659 bool result;
17660 wxRect temp2 ;
17661 PyObject * obj0 = 0 ;
17662 PyObject * obj1 = 0 ;
17663 PyObject * obj2 = 0 ;
17664 PyObject * obj3 = 0 ;
17665 char *kwnames[] = {
17666 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17667 };
17668
17669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17670 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17671 {
17672 arg2 = &temp2;
17673 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17674 }
17675 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17676 if (arg3 == NULL) {
17677 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17678 }
17679 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17680 if (arg4 == NULL) {
17681 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17682 }
17683 {
17684 PyThreadState* __tstate = wxPyBeginAllowThreads();
17685 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17686
17687 wxPyEndAllowThreads(__tstate);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17691 return resultobj;
17692 fail:
17693 return NULL;
17694 }
17695
17696
17697 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17698 PyObject *obj;
17699 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17700 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17701 Py_INCREF(obj);
17702 return Py_BuildValue((char *)"");
17703 }
17704 static PyMethodDef SwigMethods[] = {
17705 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17706 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17707 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17708 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17709 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17710 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17711 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17712 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17713 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17714 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17715 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17716 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17717 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17718 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17719 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17720 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17721 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17722 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17723 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
17724 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17725 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17726 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17727 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17728 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17729 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17730 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17731 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17732 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17733 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17734 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17735 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17736 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17737 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17738 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17739 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17740 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17741 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17742 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17743 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17744 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17745 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17746 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17747 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
17748 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
17749 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17750 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17751 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17752 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17753 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17754 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17755 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17756 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17757 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17758 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17759 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17760 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17761 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17762 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17763 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17764 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17765 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17766 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17767 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17768 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17769 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17770 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17771 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17772 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17773 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17774 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17775 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17776 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17777 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17778 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17779 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17780 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17781 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17782 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17783 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17784 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17785 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17786 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17787 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17788 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17789 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17790 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17791 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17792 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17793 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17794 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17795 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
17796 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17797 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17798 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17799 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17800 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17801 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17802 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17803 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17804 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17805 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17806 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17807 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17808 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17809 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17810 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17811 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17812 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17813 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17814 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17815 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17816 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17817 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17818 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17819 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17820 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17821 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17822 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17823 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17824 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17825 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
17826 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17827 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17828 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17829 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17830 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17831 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17832 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17833 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
17834 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17835 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17836 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17838 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17840 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17841 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17845 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17847 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17848 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17849 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17850 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17851 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17853 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17855 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17856 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17858 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17859 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17860 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17861 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17863 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17864 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17865 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17866 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17867 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
17868 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
17869 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17871 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
17872 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
17873 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
17875 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17877 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
17879 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
17882 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
17883 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17885 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17887 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17888 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17889 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
17890 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
17891 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
17892 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
17893 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
17894 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
17895 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
17896 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
17897 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17898 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17899 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17900 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17901 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
17902 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
17903 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
17904 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
17905 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
17906 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
17907 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
17908 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
17909 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
17910 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17911 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
17912 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
17913 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
17914 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
17915 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
17916 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
17917 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
17918 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
17919 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
17920 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
17921 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
17922 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
17923 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
17924 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
17925 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
17926 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
17927 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
17928 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
17929 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17930 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
17931 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
17932 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
17933 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17934 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17935 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17936 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17937 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
17938 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
17939 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17940 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17941 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
17942 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
17943 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
17944 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17945 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17946 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17947 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17948 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
17949 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17950 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
17951 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
17952 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
17953 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17954 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17955 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17956 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17957 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
17958 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17959 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17960 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
17961 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
17962 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
17963 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
17964 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
17965 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
17966 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
17967 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
17968 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
17969 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
17970 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
17971 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
17972 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
17973 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
17974 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
17975 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
17976 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
17977 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
17978 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
17979 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
17980 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
17981 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
17982 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
17983 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
17984 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
17985 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
17986 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
17987 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
17988 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17989 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
17990 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17991 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
17992 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
17993 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
17994 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
17995 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
17996 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
17997 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17998 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17999 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18000 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18001 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18002 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18003 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18004 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18005 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18006 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18007 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18008 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
18009 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18010 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
18011 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18012 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
18013 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18014 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
18015 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18016 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
18017 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18018 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
18019 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18020 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
18021 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18022 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
18023 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18024 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
18025 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18026 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18027 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
18028 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18029 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18030 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
18031 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18032 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
18033 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18034 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18035 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
18036 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18037 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
18038 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18039 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
18040 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18041 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
18042 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18043 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
18044 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18045 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18046 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18047 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18048 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18049 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18050 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18051 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18052 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18053 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18054 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18055 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18056 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18057 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18058 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18059 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18060 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18061 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
18062 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18063 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18064 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18065 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18066 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18067 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18068 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18069 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18070 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18071 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18072 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18073 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18074 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18075 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18076 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18077 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18078 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18079 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18080 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18081 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18082 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18083 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18084 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18085 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18086 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18087 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18088 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18089 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18090 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18091 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18092 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18093 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18094 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18095 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18096 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18097 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18098 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18099 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18100 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18101 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18102 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18103 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18104 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18105 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18106 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18107 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18108 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18109 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18110 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18111 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18112 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18113 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18114 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18115 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18116 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18117 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18118 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18119 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18120 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18121 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18122 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18123 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18124 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18125 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18126 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18127 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18128 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18129 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18130 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18131 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18132 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18133 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18134 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18135 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18136 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18137 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18138 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18139 { (char *)"new_BufferedPaintDC", _wrap_new_BufferedPaintDC, METH_VARARGS },
18140 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18141 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18142 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18143 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18144 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18145 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18146 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18147 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18148 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18149 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18150 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18151 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18152 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18153 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18154 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18155 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18156 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18157 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18158 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18159 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18160 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18161 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18162 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18163 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18164 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18165 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18166 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18167 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18168 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18169 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18170 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18171 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18172 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18178 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18183 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18188 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18191 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18195 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18200 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18201 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18202 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18215 { NULL, NULL }
18216 };
18217
18218
18219 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18220
18221 static void *_p_wxControlTo_p_wxWindow(void *x) {
18222 return (void *)((wxWindow *) ((wxControl *) x));
18223 }
18224 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18225 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18226 }
18227 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18228 return (void *)((wxWindow *) ((wxMenuBar *) x));
18229 }
18230 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18231 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18232 }
18233 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18234 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18235 }
18236 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18237 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18238 }
18239 static void *_p_wxPenTo_p_wxObject(void *x) {
18240 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18241 }
18242 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18243 return (void *)((wxObject *) ((wxRegionIterator *) x));
18244 }
18245 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18246 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18247 }
18248 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18249 return (void *)((wxObject *) ((wxSizerItem *) x));
18250 }
18251 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18252 return (void *)((wxObject *) ((wxColourDatabase *) x));
18253 }
18254 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18255 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18256 }
18257 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18258 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18259 }
18260 static void *_p_wxIconTo_p_wxObject(void *x) {
18261 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18262 }
18263 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18264 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18265 }
18266 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18267 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18268 }
18269 static void *_p_wxSizerTo_p_wxObject(void *x) {
18270 return (void *)((wxObject *) ((wxSizer *) x));
18271 }
18272 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18273 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18274 }
18275 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18276 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18277 }
18278 static void *_p_wxPenListTo_p_wxObject(void *x) {
18279 return (void *)((wxObject *) ((wxPenList *) x));
18280 }
18281 static void *_p_wxEventTo_p_wxObject(void *x) {
18282 return (void *)((wxObject *) ((wxEvent *) x));
18283 }
18284 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18285 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18286 }
18287 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18288 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18289 }
18290 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18291 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18292 }
18293 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18294 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18295 }
18296 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18297 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18298 }
18299 static void *_p_wxDCTo_p_wxObject(void *x) {
18300 return (void *)((wxObject *) ((wxDC *) x));
18301 }
18302 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18303 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18304 }
18305 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18306 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18307 }
18308 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18309 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18310 }
18311 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18312 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18313 }
18314 static void *_p_wxControlTo_p_wxObject(void *x) {
18315 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18316 }
18317 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18318 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18319 }
18320 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18321 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18322 }
18323 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18324 return (void *)((wxObject *) ((wxFSFile *) x));
18325 }
18326 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18327 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18328 }
18329 static void *_p_wxRegionTo_p_wxObject(void *x) {
18330 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18331 }
18332 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18333 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18334 }
18335 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18336 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18337 }
18338 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18339 return (void *)((wxObject *) ((wxGDIObject *) x));
18340 }
18341 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18342 return (void *)((wxObject *) ((wxEffects *) x));
18343 }
18344 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18345 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18346 }
18347 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18348 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18349 }
18350 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18351 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18352 }
18353 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18354 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18355 }
18356 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18357 return (void *)((wxObject *) ((wxMenuItem *) x));
18358 }
18359 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18360 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18361 }
18362 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18363 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18364 }
18365 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18366 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18367 }
18368 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18369 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18370 }
18371 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18372 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18373 }
18374 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18375 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18376 }
18377 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18378 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18379 }
18380 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18381 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18382 }
18383 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18384 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18385 }
18386 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18387 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18388 }
18389 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18390 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18391 }
18392 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18393 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18394 }
18395 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18396 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18397 }
18398 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18399 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18400 }
18401 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18402 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18403 }
18404 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18405 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18406 }
18407 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18408 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18409 }
18410 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18411 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18412 }
18413 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18414 return (void *)((wxObject *) ((wxImageHandler *) x));
18415 }
18416 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18417 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18418 }
18419 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18420 return (void *)((wxObject *) ((wxEvtHandler *) x));
18421 }
18422 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18423 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18424 }
18425 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18426 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18427 }
18428 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18429 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18430 }
18431 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18432 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18433 }
18434 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18435 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18436 }
18437 static void *_p_wxImageTo_p_wxObject(void *x) {
18438 return (void *)((wxObject *) ((wxImage *) x));
18439 }
18440 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18441 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18442 }
18443 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18444 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18445 }
18446 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18447 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18448 }
18449 static void *_p_wxImageListTo_p_wxObject(void *x) {
18450 return (void *)((wxObject *) ((wxImageList *) x));
18451 }
18452 static void *_p_wxCursorTo_p_wxObject(void *x) {
18453 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18454 }
18455 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18456 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18457 }
18458 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18459 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18460 }
18461 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18462 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18463 }
18464 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18465 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18466 }
18467 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18468 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18469 }
18470 static void *_p_wxWindowTo_p_wxObject(void *x) {
18471 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18472 }
18473 static void *_p_wxMenuTo_p_wxObject(void *x) {
18474 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18475 }
18476 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18477 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18478 }
18479 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18480 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18481 }
18482 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18483 return (void *)((wxObject *) ((wxBrushList *) x));
18484 }
18485 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18486 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18487 }
18488 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18489 return (void *)((wxObject *) ((wxFileSystem *) x));
18490 }
18491 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18492 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18493 }
18494 static void *_p_wxMaskTo_p_wxObject(void *x) {
18495 return (void *)((wxObject *) ((wxMask *) x));
18496 }
18497 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18498 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18499 }
18500 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18501 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18502 }
18503 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18504 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18505 }
18506 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18507 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18508 }
18509 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18510 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18511 }
18512 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18513 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18514 }
18515 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18516 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18517 }
18518 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18519 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18520 }
18521 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18522 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18523 }
18524 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18525 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18526 }
18527 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18528 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18529 }
18530 static void *_p_wxFontTo_p_wxObject(void *x) {
18531 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18532 }
18533 static void *_p_wxBrushTo_p_wxObject(void *x) {
18534 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18535 }
18536 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18537 return (void *)((wxObject *) ((wxMetaFile *) x));
18538 }
18539 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18540 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18541 }
18542 static void *_p_wxColourTo_p_wxObject(void *x) {
18543 return (void *)((wxObject *) ((wxColour *) x));
18544 }
18545 static void *_p_wxFontListTo_p_wxObject(void *x) {
18546 return (void *)((wxObject *) ((wxFontList *) x));
18547 }
18548 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18549 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18550 }
18551 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18552 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18553 }
18554 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18555 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18556 }
18557 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18558 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18559 }
18560 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18561 return (void *)((wxDC *) ((wxScreenDC *) x));
18562 }
18563 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18564 return (void *)((wxDC *) ((wxMirrorDC *) x));
18565 }
18566 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18567 return (void *)((wxDC *) ((wxMemoryDC *) x));
18568 }
18569 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18570 return (void *)((wxDC *) ((wxWindowDC *) x));
18571 }
18572 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18573 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18574 }
18575 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18576 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18577 }
18578 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18579 return (void *)((wxDC *) ((wxClientDC *) x));
18580 }
18581 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18582 return (void *)((wxDC *) ((wxPaintDC *) x));
18583 }
18584 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18585 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18586 }
18587 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18588 return (void *)((wxDC *) ((wxPrinterDC *) x));
18589 }
18590 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18591 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18592 }
18593 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18594 return (void *)((wxGDIObject *) ((wxIcon *) x));
18595 }
18596 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18597 return (void *)((wxGDIObject *) ((wxPalette *) x));
18598 }
18599 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18600 return (void *)((wxGDIObject *) ((wxPen *) x));
18601 }
18602 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18603 return (void *)((wxGDIObject *) ((wxFont *) x));
18604 }
18605 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18606 return (void *)((wxGDIObject *) ((wxCursor *) x));
18607 }
18608 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18609 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18610 }
18611 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18612 return (void *)((wxGDIObject *) ((wxRegion *) x));
18613 }
18614 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18615 return (void *)((wxGDIObject *) ((wxBrush *) x));
18616 }
18617 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18618 return (void *)((wxPen *) ((wxPyPen *) x));
18619 }
18620 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
18621 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
18622 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
18623 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}};
18624 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
18625 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18626 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
18627 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
18628 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
18629 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
18630 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
18631 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
18632 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
18633 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}};
18634 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
18635 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
18636 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}};
18637 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
18638 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
18639 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
18640 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
18641 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
18642 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}};
18643 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
18644 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
18645 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
18646 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
18647 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
18648 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
18649 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
18650 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
18651 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
18652 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
18653 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
18654 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
18655 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18656 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}};
18657 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
18658 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
18659 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
18660 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
18661 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
18662 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
18663 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
18664 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
18665 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
18666 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
18667 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
18668 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
18669 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
18670 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
18671 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
18672 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
18673 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
18674 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
18675 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
18676
18677 static swig_type_info *swig_types_initial[] = {
18678 _swigt__p_wxPostScriptDC,
18679 _swigt__p_wxBrush,
18680 _swigt__p_wxColour,
18681 _swigt__p_wxDC,
18682 _swigt__p_wxMirrorDC,
18683 _swigt__p_byte,
18684 _swigt__p_wxPyFontEnumerator,
18685 _swigt__p_char,
18686 _swigt__p_wxIconLocation,
18687 _swigt__p_wxImage,
18688 _swigt__p_wxMetaFileDC,
18689 _swigt__p_wxMask,
18690 _swigt__p_wxFont,
18691 _swigt__p_wxWindow,
18692 _swigt__p_wxSize,
18693 _swigt__p_double,
18694 _swigt__p_wxMemoryDC,
18695 _swigt__p_wxFontMapper,
18696 _swigt__p_wxEffects,
18697 _swigt__p_wxNativeEncodingInfo,
18698 _swigt__p_wxPalette,
18699 _swigt__p_wxBitmap,
18700 _swigt__p_wxObject,
18701 _swigt__p_wxRegionIterator,
18702 _swigt__p_wxRect,
18703 _swigt__p_wxString,
18704 _swigt__p_wxPrinterDC,
18705 _swigt__p_wxIconBundle,
18706 _swigt__p_wxPoint,
18707 _swigt__p_wxDash,
18708 _swigt__p_wxScreenDC,
18709 _swigt__p_wxCursor,
18710 _swigt__p_wxClientDC,
18711 _swigt__p_wxBufferedDC,
18712 _swigt__p_wxImageList,
18713 _swigt__p_unsigned_char,
18714 _swigt__p_wxGDIObject,
18715 _swigt__p_wxIcon,
18716 _swigt__p_wxLocale,
18717 _swigt__p_wxRegion,
18718 _swigt__p_wxLanguageInfo,
18719 _swigt__p_wxConfigBase,
18720 _swigt__p_wxWindowDC,
18721 _swigt__p_wxPrintData,
18722 _swigt__p_wxBrushList,
18723 _swigt__p_wxFontList,
18724 _swigt__p_wxPen,
18725 _swigt__p_wxBufferedPaintDC,
18726 _swigt__p_wxPaintDC,
18727 _swigt__p_wxPenList,
18728 _swigt__p_wxPyPen,
18729 _swigt__p_int,
18730 _swigt__p_wxMetaFile,
18731 _swigt__p_wxNativeFontInfo,
18732 _swigt__p_wxEncodingConverter,
18733 _swigt__p_wxColourDatabase,
18734 0
18735 };
18736
18737
18738 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18739
18740 static swig_const_info swig_const_table[] = {
18741 {0}};
18742
18743 #ifdef __cplusplus
18744 }
18745 #endif
18746
18747 #ifdef __cplusplus
18748 extern "C"
18749 #endif
18750 SWIGEXPORT(void) SWIG_init(void) {
18751 static PyObject *SWIG_globals = 0;
18752 static int typeinit = 0;
18753 PyObject *m, *d;
18754 int i;
18755 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18756 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18757 d = PyModule_GetDict(m);
18758
18759 if (!typeinit) {
18760 for (i = 0; swig_types_initial[i]; i++) {
18761 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18762 }
18763 typeinit = 1;
18764 }
18765 SWIG_InstallConstants(d,swig_const_table);
18766
18767 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
18768 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
18769 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
18770 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
18771 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
18772 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
18773 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
18774 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
18775 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
18776 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
18777 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
18778 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
18779 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
18780 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
18781 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
18782 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
18783 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
18784 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
18785 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
18786 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
18787 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
18788 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
18789 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
18790 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
18791 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
18792 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
18793 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18794 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
18795 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18796 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
18797 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
18798 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
18799 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
18800 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
18801 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
18802 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
18803 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
18804 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
18805 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
18806 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
18807 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
18808 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
18809 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
18810 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
18811 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
18812 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
18813 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
18814 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18815 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
18816 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18817 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
18818 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
18819 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
18820 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
18821 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
18822 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
18823 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
18824 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
18825 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
18826 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
18827 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
18828 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
18829 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
18830 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
18831 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
18832 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
18833 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
18834 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
18835 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
18836 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
18837 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
18838 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
18839 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
18840 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
18841 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
18842 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
18843 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
18844 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
18845 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
18846 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18847 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
18848 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
18849 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
18850 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
18851 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18852 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18853 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18854 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
18855 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
18856 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
18857 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
18858 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
18859 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
18860 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18861 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
18862 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
18863 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
18864 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
18865 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18866 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
18867 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
18868 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
18869 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
18870 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
18871 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
18872 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
18873 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
18874 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
18875 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
18876 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
18877 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
18878 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
18879 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
18880 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
18881 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
18882 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
18883 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
18884 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
18885 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
18886 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
18887 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
18888 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
18889 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
18890 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
18891 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
18892 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
18893
18894 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18895
18896 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
18897 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
18898 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
18899 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
18900 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
18901 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
18902 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
18903 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
18904 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
18905 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
18906 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
18907 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
18908 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
18909 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
18910 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
18911 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
18912 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
18913 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
18914 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
18915 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
18916 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
18917 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
18918 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
18919 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
18920 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
18921 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
18922 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
18923 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
18924 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
18925 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
18926 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
18927 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
18928 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
18929 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
18930 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
18931 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
18932 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
18933 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
18934 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
18935 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
18936 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
18937 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
18938 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
18939 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
18940 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
18941 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
18942 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
18943 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
18944 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
18945 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
18946 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
18947 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
18948 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
18949 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
18950 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
18951 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
18952 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
18953 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
18954 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
18955 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
18956 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
18957 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
18958 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
18959 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
18960 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
18961 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
18962 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
18963 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
18964 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
18965 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
18966 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
18967 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
18968 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
18969 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
18970 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
18971 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
18972 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
18973 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
18974 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
18975 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
18976 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
18977 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
18978 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
18979 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
18980 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
18981 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
18982 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
18983 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
18984 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
18985 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
18986 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
18987 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
18988 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
18989 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
18990 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
18991 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
18992 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
18993 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
18994 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
18995 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
18996 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
18997 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
18998 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
18999 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
19000 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
19001 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
19002 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
19003 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
19004 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
19005 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19006 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
19007 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
19008 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
19009 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
19010 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19011 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
19012 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
19013 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
19014 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
19015 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
19016 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
19017 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
19018 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
19019 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
19020 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
19021 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
19022 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
19023 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
19024 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
19025 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
19026 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
19027 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
19028 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19029 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19030 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
19031 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
19032 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
19033 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
19034 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19035 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
19036 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
19037 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
19038 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19039 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19040 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19041 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
19042 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
19043 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
19044 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
19045 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
19046 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
19047 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19048 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
19049 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
19050 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19051 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
19052 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
19053 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19054 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
19055 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
19056 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
19057 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19058 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
19059 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19060 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19061 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19062 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
19063 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
19064 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
19065 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
19066 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
19067 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
19068 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
19069 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
19070 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
19071 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
19072 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19073 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19074 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19075 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19076 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19077 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19078 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19079 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19080 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19081 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19082 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19083 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19084 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19085 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19086 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19087 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19088 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19089 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19090 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
19091 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19092 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
19093 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
19094 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
19095 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19096 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
19097 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
19098 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
19099 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
19100 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
19101 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
19102 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
19103 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
19104 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
19105 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
19106 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
19107 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
19108 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
19109 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
19110 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
19111 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
19112 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
19113 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19114 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
19115 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19116 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19117 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
19118 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
19119 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
19120 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
19121 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
19122 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
19123 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
19124 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
19125 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
19126 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
19127 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
19128 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
19129 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
19130 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
19131 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19132 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
19133 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19134 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
19135 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
19136 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
19137 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
19138 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
19139 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
19140 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
19141 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
19142 PyDict_SetItemString(d,"BUFFER_DC_OVERWRITE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_OVERWRITE_BG));
19143 PyDict_SetItemString(d,"BUFFER_DC_PRESERVE_BG", SWIG_PyObj_FromInt((int)wxBUFFER_DC_PRESERVE_BG));
19144 PyDict_SetItemString(d,"BUFFER_DC_DEFAULT", SWIG_PyObj_FromInt((int)wxBUFFER_DC_DEFAULT));
19145 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19146 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19147 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19148 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19149 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
19150 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
19151 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
19152 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19153 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19154 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19155 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19156 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19157 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19158 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19159 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19160 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19161 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19162 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19163 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19164 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19165 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19166 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19167 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19168 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19169 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19170 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19171 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19172 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19173 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19174 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19175 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19176 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19177 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19178 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19179 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19180 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19181 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19182 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19183 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19184 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19185 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19186 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19187 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19188 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19189 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19190 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19191 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19192 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19193 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19194 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19195 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19196 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19197 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19198 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19199
19200 // Work around a chicken/egg problem in drawlist.cpp
19201 wxPyDrawList_SetAPIPtr();
19202
19203 }
19204