]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
Corrected parameter names
[wxWidgets.git] / wxPython / src / mac / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(bool)
346 SWIG_PyObj_AsBool(PyObject *obj)
347 {
348 return PyObject_IsTrue(obj) ? true : false;
349 }
350
351
352 SWIGSTATIC(unsigned char)
353 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
354 {
355 return numeric_cast(unsigned char,
356 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
357 }
358
359 PyObject *wxColour_Get(wxColour *self){
360 PyObject* rv = PyTuple_New(3);
361 int red = -1;
362 int green = -1;
363 int blue = -1;
364 if (self->Ok()) {
365 red = self->Red();
366 green = self->Green();
367 blue = self->Blue();
368 }
369 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
370 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
371 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
372 return rv;
373 }
374
375 SWIGSTATIC(int)
376 SWIG_PyObj_AsInt(PyObject *obj)
377 {
378 return numeric_cast(int,
379 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
380 }
381
382
383 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
384 PyObject* o2;
385 PyObject* o3;
386
387 if (!target) {
388 target = o;
389 } else if (target == Py_None) {
390 Py_DECREF(Py_None);
391 target = o;
392 } else {
393 if (!PyTuple_Check(target)) {
394 o2 = target;
395 target = PyTuple_New(1);
396 PyTuple_SetItem(target, 0, o2);
397 }
398 o3 = PyTuple_New(1);
399 PyTuple_SetItem(o3, 0, o);
400
401 o2 = target;
402 target = PySequence_Concat(o2, o3);
403 Py_DECREF(o2);
404 Py_DECREF(o3);
405 }
406 return target;
407 }
408
409 PyObject *wxPen_GetDashes(wxPen *self){
410 wxDash* dashes;
411 int count = self->GetDashes(&dashes);
412 wxPyBeginBlockThreads();
413 PyObject* retval = PyList_New(0);
414 for (int x=0; x<count; x++)
415 PyList_Append(retval, PyInt_FromLong(dashes[x]));
416 wxPyEndBlockThreads();
417 return retval;
418 }
419
420 wxPyPen::~wxPyPen()
421 {
422 if (m_dash)
423 delete [] m_dash;
424 }
425
426 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
427 {
428 if (m_dash)
429 delete [] m_dash;
430 m_dash = new wxDash[nb_dashes];
431 for (int i=0; i<nb_dashes; i++) {
432 m_dash[i] = dash[i];
433 }
434 wxPen::SetDashes(nb_dashes, m_dash);
435 }
436
437
438 SWIGSTATIC(short)
439 SWIG_PyObj_AsShort(PyObject *obj)
440 {
441 return numeric_cast(short,
442 SWIG_PyObj_AsLongInRange(obj, "short", SHRT_MIN, SHRT_MAX));
443 }
444
445
446 #include <wx/image.h>
447
448 static char** ConvertListOfStrings(PyObject* listOfStrings) {
449 char** cArray = NULL;
450 int count;
451
452 if (!PyList_Check(listOfStrings)) {
453 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
454 return NULL;
455 }
456 count = PyList_Size(listOfStrings);
457 cArray = new char*[count];
458
459 for(int x=0; x<count; x++) {
460 // TODO: Need some validation and error checking here
461 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
462 }
463 return cArray;
464 }
465
466
467 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
468 char** cArray = NULL;
469 wxBitmap* bmp;
470
471 cArray = ConvertListOfStrings(listOfStrings);
472 if (! cArray)
473 return NULL;
474 bmp = new wxBitmap(cArray);
475 delete [] cArray;
476 return bmp;
477 }
478 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
479 char* buf;
480 int length;
481 PyString_AsStringAndSize(bits, &buf, &length);
482 return new wxBitmap(buf, width, height, depth);
483 }
484 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
485 wxMask *mask = new wxMask(*self, colour);
486 self->SetMask(mask);
487 }
488
489 #include <wx/iconbndl.h>
490
491 wxIcon *new_wxIcon(wxBitmap const &bmp){
492 wxIcon* icon = new wxIcon();
493 icon->CopyFromBitmap(bmp);
494 return icon;
495 }
496 wxIcon *new_wxIcon(PyObject *listOfStrings){
497 char** cArray = NULL;
498 wxIcon* icon;
499
500 cArray = ConvertListOfStrings(listOfStrings);
501 if (! cArray)
502 return NULL;
503 icon = new wxIcon(cArray);
504 delete [] cArray;
505 return icon;
506 }
507 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
508
509
510
511 return new wxIconLocation(*filename);
512
513 }
514 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
515
516
517
518 // do nothing
519
520 }
521 int wxIconLocation_GetIndex(wxIconLocation *self){
522
523
524
525 return -1;
526
527 }
528
529 SWIGSTATIC(long)
530 SWIG_PyObj_AsLong(PyObject * obj)
531 {
532 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
533 }
534
535 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
536
537
538
539
540 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
541
542 }
543 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
544 char* bitsbuf;
545 char* maskbuf = NULL;
546 int length;
547 PyString_AsStringAndSize(bits, &bitsbuf, &length);
548 if (maskBits)
549 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
550 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
551 }
552
553
554 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
555 wxPyRaiseNotImplemented();
556 return NULL;
557 }
558 void wxRegionIterator_Next(wxRegionIterator *self){
559 (*self) ++;
560 }
561 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
562 return self->operator bool();
563 }
564
565 #include <wx/fontutil.h>
566 #include <wx/fontmap.h>
567 #include <wx/fontenum.h>
568
569 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
570 return self->ToString();
571 }
572
573 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
574 static wxNativeEncodingInfo info;
575 if ( wxGetNativeFontEncoding(encoding, &info) )
576 return &info;
577 else
578 return NULL;
579 }
580
581
582 SWIGSTATIC(PyObject* )
583 SWIG_PyObj_FromUnsignedLong(unsigned long value)
584 {
585 return (value > (unsigned long)(LONG_MAX)) ?
586 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
587 }
588
589 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
590 wxFontEncoding alt_enc;
591 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
592 return PyInt_FromLong(alt_enc);
593 else {
594 Py_INCREF(Py_None);
595 return Py_None;
596 }
597 }
598 wxFont *new_wxFont(wxString const &info){
599 wxNativeFontInfo nfi;
600 nfi.FromString(info);
601 return new wxFont(nfi);
602 }
603 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
604 return wxFont::New(pointSize, family, flags, face, encoding);
605 }
606
607 class wxPyFontEnumerator : public wxFontEnumerator {
608 public:
609 wxPyFontEnumerator() {}
610 ~wxPyFontEnumerator() {}
611
612 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
613 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
614
615 PYPRIVATE;
616 };
617
618 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
619 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
620
621
622 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
623 wxArrayString* arr = self->GetEncodings();
624 return wxArrayString2PyList_helper(*arr);
625 }
626 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
627 wxArrayString* arr = self->GetFacenames();
628 return wxArrayString2PyList_helper(*arr);
629 }
630
631
632
633 #include "wx/wxPython/pydrawxxx.h"
634
635 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
636 wxColour col;
637 self->GetPixel(x, y, &col);
638 return col;
639 }
640 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
641 wxColour col;
642 self->GetPixel(pt, &col);
643 return col;
644 }
645
646 SWIGSTATIC(double)
647 SWIG_PyObj_AsDouble(PyObject *obj)
648 {
649 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
650 #if HAVE_LONG_LONG
651 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
652 #else
653 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
654 #endif
655 if (PyErr_Occurred()) {
656 PyErr_Clear();
657 PyErr_SetString(PyExc_TypeError, "a double is expected");
658 }
659 }
660
661 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
662 wxRect rv;
663 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
664 return rv;
665 }
666 wxRect wxDC_GetClippingRect(wxDC *self){
667 wxRect rect;
668 self->GetClippingBox(rect);
669 return rect;
670 }
671 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
672 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
673 }
674 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
675 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
676 }
677 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
678 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
679 }
680 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
681 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
682 }
683 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
684 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
685 }
686 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
687 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
688 }
689
690 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
691 *x1 = dc->MinX();
692 *y1 = dc->MinY();
693 *x2 = dc->MaxX();
694 *y2 = dc->MaxY();
695 }
696
697
698 #include <wx/dcps.h>
699
700
701 class wxMetaFile : public wxObject {
702 public:
703 wxMetaFile(const wxString&)
704 { wxPyRaiseNotImplemented(); }
705 };
706
707 class wxMetaFileDC : public wxClientDC {
708 public:
709 wxMetaFileDC(const wxString&, int, int, const wxString&)
710 { wxPyRaiseNotImplemented(); }
711 };
712
713
714
715
716 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
717 self->AddColour(name, wxColour(red, green, blue));
718 }
719
720 #include <wx/effects.h>
721
722 #ifdef __cplusplus
723 extern "C" {
724 #endif
725 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
726 PyObject *resultobj;
727 wxGDIObject *result;
728 char *kwnames[] = {
729 NULL
730 };
731
732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
733 {
734 PyThreadState* __tstate = wxPyBeginAllowThreads();
735 result = (wxGDIObject *)new wxGDIObject();
736
737 wxPyEndAllowThreads(__tstate);
738 if (PyErr_Occurred()) SWIG_fail;
739 }
740 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
741 return resultobj;
742 fail:
743 return NULL;
744 }
745
746
747 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
748 PyObject *resultobj;
749 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
750 PyObject * obj0 = 0 ;
751 char *kwnames[] = {
752 (char *) "self", NULL
753 };
754
755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
756 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
757 {
758 PyThreadState* __tstate = wxPyBeginAllowThreads();
759 delete arg1;
760
761 wxPyEndAllowThreads(__tstate);
762 if (PyErr_Occurred()) SWIG_fail;
763 }
764 Py_INCREF(Py_None); resultobj = Py_None;
765 return resultobj;
766 fail:
767 return NULL;
768 }
769
770
771 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
772 PyObject *resultobj;
773 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
774 bool result;
775 PyObject * obj0 = 0 ;
776 char *kwnames[] = {
777 (char *) "self", NULL
778 };
779
780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
781 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
782 {
783 PyThreadState* __tstate = wxPyBeginAllowThreads();
784 result = (bool)(arg1)->GetVisible();
785
786 wxPyEndAllowThreads(__tstate);
787 if (PyErr_Occurred()) SWIG_fail;
788 }
789 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
790 return resultobj;
791 fail:
792 return NULL;
793 }
794
795
796 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
797 PyObject *resultobj;
798 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
799 bool arg2 ;
800 PyObject * obj0 = 0 ;
801 PyObject * obj1 = 0 ;
802 char *kwnames[] = {
803 (char *) "self",(char *) "visible", NULL
804 };
805
806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
807 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
808 {
809 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
810 if (PyErr_Occurred()) SWIG_fail;
811 }
812 {
813 PyThreadState* __tstate = wxPyBeginAllowThreads();
814 (arg1)->SetVisible(arg2);
815
816 wxPyEndAllowThreads(__tstate);
817 if (PyErr_Occurred()) SWIG_fail;
818 }
819 Py_INCREF(Py_None); resultobj = Py_None;
820 return resultobj;
821 fail:
822 return NULL;
823 }
824
825
826 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
827 PyObject *resultobj;
828 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
829 bool result;
830 PyObject * obj0 = 0 ;
831 char *kwnames[] = {
832 (char *) "self", NULL
833 };
834
835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
837 {
838 PyThreadState* __tstate = wxPyBeginAllowThreads();
839 result = (bool)(arg1)->IsNull();
840
841 wxPyEndAllowThreads(__tstate);
842 if (PyErr_Occurred()) SWIG_fail;
843 }
844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
845 return resultobj;
846 fail:
847 return NULL;
848 }
849
850
851 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
852 PyObject *obj;
853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
854 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
855 Py_INCREF(obj);
856 return Py_BuildValue((char *)"");
857 }
858 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
859 PyObject *resultobj;
860 unsigned char arg1 = (unsigned char) 0 ;
861 unsigned char arg2 = (unsigned char) 0 ;
862 unsigned char arg3 = (unsigned char) 0 ;
863 wxColour *result;
864 PyObject * obj0 = 0 ;
865 PyObject * obj1 = 0 ;
866 PyObject * obj2 = 0 ;
867 char *kwnames[] = {
868 (char *) "red",(char *) "green",(char *) "blue", NULL
869 };
870
871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
872 if (obj0) {
873 {
874 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
875 if (PyErr_Occurred()) SWIG_fail;
876 }
877 }
878 if (obj1) {
879 {
880 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
881 if (PyErr_Occurred()) SWIG_fail;
882 }
883 }
884 if (obj2) {
885 {
886 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
887 if (PyErr_Occurred()) SWIG_fail;
888 }
889 }
890 {
891 PyThreadState* __tstate = wxPyBeginAllowThreads();
892 result = (wxColour *)new wxColour(arg1,arg2,arg3);
893
894 wxPyEndAllowThreads(__tstate);
895 if (PyErr_Occurred()) SWIG_fail;
896 }
897 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
898 return resultobj;
899 fail:
900 return NULL;
901 }
902
903
904 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
905 PyObject *resultobj;
906 wxColour *arg1 = (wxColour *) 0 ;
907 PyObject * obj0 = 0 ;
908 char *kwnames[] = {
909 (char *) "self", NULL
910 };
911
912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
913 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
914 {
915 PyThreadState* __tstate = wxPyBeginAllowThreads();
916 delete arg1;
917
918 wxPyEndAllowThreads(__tstate);
919 if (PyErr_Occurred()) SWIG_fail;
920 }
921 Py_INCREF(Py_None); resultobj = Py_None;
922 return resultobj;
923 fail:
924 return NULL;
925 }
926
927
928 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
929 PyObject *resultobj;
930 wxString *arg1 = 0 ;
931 wxColour *result;
932 bool temp1 = False ;
933 PyObject * obj0 = 0 ;
934 char *kwnames[] = {
935 (char *) "colorName", NULL
936 };
937
938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
939 {
940 arg1 = wxString_in_helper(obj0);
941 if (arg1 == NULL) SWIG_fail;
942 temp1 = True;
943 }
944 {
945 PyThreadState* __tstate = wxPyBeginAllowThreads();
946 result = (wxColour *)new wxColour((wxString const &)*arg1);
947
948 wxPyEndAllowThreads(__tstate);
949 if (PyErr_Occurred()) SWIG_fail;
950 }
951 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
952 {
953 if (temp1)
954 delete arg1;
955 }
956 return resultobj;
957 fail:
958 {
959 if (temp1)
960 delete arg1;
961 }
962 return NULL;
963 }
964
965
966 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
967 PyObject *resultobj;
968 unsigned long arg1 ;
969 wxColour *result;
970 PyObject * obj0 = 0 ;
971 char *kwnames[] = {
972 (char *) "colRGB", NULL
973 };
974
975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
976 {
977 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
978 if (PyErr_Occurred()) SWIG_fail;
979 }
980 {
981 PyThreadState* __tstate = wxPyBeginAllowThreads();
982 result = (wxColour *)new wxColour(arg1);
983
984 wxPyEndAllowThreads(__tstate);
985 if (PyErr_Occurred()) SWIG_fail;
986 }
987 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
988 return resultobj;
989 fail:
990 return NULL;
991 }
992
993
994 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
995 PyObject *resultobj;
996 wxColour *arg1 = (wxColour *) 0 ;
997 unsigned char result;
998 PyObject * obj0 = 0 ;
999 char *kwnames[] = {
1000 (char *) "self", NULL
1001 };
1002
1003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1004 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1005 {
1006 PyThreadState* __tstate = wxPyBeginAllowThreads();
1007 result = (unsigned char)(arg1)->Red();
1008
1009 wxPyEndAllowThreads(__tstate);
1010 if (PyErr_Occurred()) SWIG_fail;
1011 }
1012 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1013 return resultobj;
1014 fail:
1015 return NULL;
1016 }
1017
1018
1019 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1020 PyObject *resultobj;
1021 wxColour *arg1 = (wxColour *) 0 ;
1022 unsigned char result;
1023 PyObject * obj0 = 0 ;
1024 char *kwnames[] = {
1025 (char *) "self", NULL
1026 };
1027
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1029 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1030 {
1031 PyThreadState* __tstate = wxPyBeginAllowThreads();
1032 result = (unsigned char)(arg1)->Green();
1033
1034 wxPyEndAllowThreads(__tstate);
1035 if (PyErr_Occurred()) SWIG_fail;
1036 }
1037 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1038 return resultobj;
1039 fail:
1040 return NULL;
1041 }
1042
1043
1044 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1045 PyObject *resultobj;
1046 wxColour *arg1 = (wxColour *) 0 ;
1047 unsigned char result;
1048 PyObject * obj0 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "self", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1054 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1055 {
1056 PyThreadState* __tstate = wxPyBeginAllowThreads();
1057 result = (unsigned char)(arg1)->Blue();
1058
1059 wxPyEndAllowThreads(__tstate);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1063 return resultobj;
1064 fail:
1065 return NULL;
1066 }
1067
1068
1069 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1070 PyObject *resultobj;
1071 wxColour *arg1 = (wxColour *) 0 ;
1072 bool result;
1073 PyObject * obj0 = 0 ;
1074 char *kwnames[] = {
1075 (char *) "self", NULL
1076 };
1077
1078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1079 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1080 {
1081 PyThreadState* __tstate = wxPyBeginAllowThreads();
1082 result = (bool)(arg1)->Ok();
1083
1084 wxPyEndAllowThreads(__tstate);
1085 if (PyErr_Occurred()) SWIG_fail;
1086 }
1087 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1088 return resultobj;
1089 fail:
1090 return NULL;
1091 }
1092
1093
1094 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1095 PyObject *resultobj;
1096 wxColour *arg1 = (wxColour *) 0 ;
1097 unsigned char arg2 ;
1098 unsigned char arg3 ;
1099 unsigned char arg4 ;
1100 PyObject * obj0 = 0 ;
1101 PyObject * obj1 = 0 ;
1102 PyObject * obj2 = 0 ;
1103 PyObject * obj3 = 0 ;
1104 char *kwnames[] = {
1105 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1106 };
1107
1108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1110 {
1111 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1112 if (PyErr_Occurred()) SWIG_fail;
1113 }
1114 {
1115 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1116 if (PyErr_Occurred()) SWIG_fail;
1117 }
1118 {
1119 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1120 if (PyErr_Occurred()) SWIG_fail;
1121 }
1122 {
1123 PyThreadState* __tstate = wxPyBeginAllowThreads();
1124 (arg1)->Set(arg2,arg3,arg4);
1125
1126 wxPyEndAllowThreads(__tstate);
1127 if (PyErr_Occurred()) SWIG_fail;
1128 }
1129 Py_INCREF(Py_None); resultobj = Py_None;
1130 return resultobj;
1131 fail:
1132 return NULL;
1133 }
1134
1135
1136 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1137 PyObject *resultobj;
1138 wxColour *arg1 = (wxColour *) 0 ;
1139 unsigned long arg2 ;
1140 PyObject * obj0 = 0 ;
1141 PyObject * obj1 = 0 ;
1142 char *kwnames[] = {
1143 (char *) "self",(char *) "colRGB", NULL
1144 };
1145
1146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1147 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1148 {
1149 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1150 if (PyErr_Occurred()) SWIG_fail;
1151 }
1152 {
1153 PyThreadState* __tstate = wxPyBeginAllowThreads();
1154 (arg1)->Set(arg2);
1155
1156 wxPyEndAllowThreads(__tstate);
1157 if (PyErr_Occurred()) SWIG_fail;
1158 }
1159 Py_INCREF(Py_None); resultobj = Py_None;
1160 return resultobj;
1161 fail:
1162 return NULL;
1163 }
1164
1165
1166 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1167 PyObject *resultobj;
1168 wxColour *arg1 = (wxColour *) 0 ;
1169 wxColour *arg2 = 0 ;
1170 bool result;
1171 wxColour temp2 ;
1172 PyObject * obj0 = 0 ;
1173 PyObject * obj1 = 0 ;
1174 char *kwnames[] = {
1175 (char *) "self",(char *) "colour", NULL
1176 };
1177
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1180 {
1181 arg2 = &temp2;
1182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1183 }
1184 {
1185 PyThreadState* __tstate = wxPyBeginAllowThreads();
1186 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1187
1188 wxPyEndAllowThreads(__tstate);
1189 if (PyErr_Occurred()) SWIG_fail;
1190 }
1191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1192 return resultobj;
1193 fail:
1194 return NULL;
1195 }
1196
1197
1198 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1199 PyObject *resultobj;
1200 wxColour *arg1 = (wxColour *) 0 ;
1201 wxColour *arg2 = 0 ;
1202 bool result;
1203 wxColour temp2 ;
1204 PyObject * obj0 = 0 ;
1205 PyObject * obj1 = 0 ;
1206 char *kwnames[] = {
1207 (char *) "self",(char *) "colour", NULL
1208 };
1209
1210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1211 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1212 {
1213 arg2 = &temp2;
1214 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1215 }
1216 {
1217 PyThreadState* __tstate = wxPyBeginAllowThreads();
1218 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1219
1220 wxPyEndAllowThreads(__tstate);
1221 if (PyErr_Occurred()) SWIG_fail;
1222 }
1223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1224 return resultobj;
1225 fail:
1226 return NULL;
1227 }
1228
1229
1230 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1231 PyObject *resultobj;
1232 wxColour *arg1 = (wxColour *) 0 ;
1233 wxString *arg2 = 0 ;
1234 bool temp2 = False ;
1235 PyObject * obj0 = 0 ;
1236 PyObject * obj1 = 0 ;
1237 char *kwnames[] = {
1238 (char *) "self",(char *) "colourName", NULL
1239 };
1240
1241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1242 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1243 {
1244 arg2 = wxString_in_helper(obj1);
1245 if (arg2 == NULL) SWIG_fail;
1246 temp2 = True;
1247 }
1248 {
1249 PyThreadState* __tstate = wxPyBeginAllowThreads();
1250 (arg1)->InitFromName((wxString const &)*arg2);
1251
1252 wxPyEndAllowThreads(__tstate);
1253 if (PyErr_Occurred()) SWIG_fail;
1254 }
1255 Py_INCREF(Py_None); resultobj = Py_None;
1256 {
1257 if (temp2)
1258 delete arg2;
1259 }
1260 return resultobj;
1261 fail:
1262 {
1263 if (temp2)
1264 delete arg2;
1265 }
1266 return NULL;
1267 }
1268
1269
1270 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1271 PyObject *resultobj;
1272 wxColour *arg1 = (wxColour *) 0 ;
1273 PyObject *result;
1274 PyObject * obj0 = 0 ;
1275 char *kwnames[] = {
1276 (char *) "self", NULL
1277 };
1278
1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1281 {
1282 PyThreadState* __tstate = wxPyBeginAllowThreads();
1283 result = (PyObject *)wxColour_Get(arg1);
1284
1285 wxPyEndAllowThreads(__tstate);
1286 if (PyErr_Occurred()) SWIG_fail;
1287 }
1288 resultobj = result;
1289 return resultobj;
1290 fail:
1291 return NULL;
1292 }
1293
1294
1295 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1296 PyObject *obj;
1297 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1298 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1299 Py_INCREF(obj);
1300 return Py_BuildValue((char *)"");
1301 }
1302 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1303 PyObject *resultobj;
1304 int arg1 ;
1305 unsigned char *arg2 = (unsigned char *) 0 ;
1306 unsigned char *arg3 = (unsigned char *) 0 ;
1307 unsigned char *arg4 = (unsigned char *) 0 ;
1308 wxPalette *result;
1309 PyObject * obj0 = 0 ;
1310 PyObject * obj1 = 0 ;
1311 PyObject * obj2 = 0 ;
1312 PyObject * obj3 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1318 {
1319 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1320 if (PyErr_Occurred()) SWIG_fail;
1321 }
1322 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1323 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1324 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1325 {
1326 PyThreadState* __tstate = wxPyBeginAllowThreads();
1327 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1328
1329 wxPyEndAllowThreads(__tstate);
1330 if (PyErr_Occurred()) SWIG_fail;
1331 }
1332 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1333 return resultobj;
1334 fail:
1335 return NULL;
1336 }
1337
1338
1339 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1340 PyObject *resultobj;
1341 wxPalette *arg1 = (wxPalette *) 0 ;
1342 PyObject * obj0 = 0 ;
1343 char *kwnames[] = {
1344 (char *) "self", NULL
1345 };
1346
1347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1349 {
1350 PyThreadState* __tstate = wxPyBeginAllowThreads();
1351 delete arg1;
1352
1353 wxPyEndAllowThreads(__tstate);
1354 if (PyErr_Occurred()) SWIG_fail;
1355 }
1356 Py_INCREF(Py_None); resultobj = Py_None;
1357 return resultobj;
1358 fail:
1359 return NULL;
1360 }
1361
1362
1363 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1364 PyObject *resultobj;
1365 wxPalette *arg1 = (wxPalette *) 0 ;
1366 byte arg2 ;
1367 byte arg3 ;
1368 byte arg4 ;
1369 int result;
1370 PyObject * obj0 = 0 ;
1371 PyObject * obj1 = 0 ;
1372 PyObject * obj2 = 0 ;
1373 PyObject * obj3 = 0 ;
1374 char *kwnames[] = {
1375 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1376 };
1377
1378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1380 {
1381 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1382 if (PyErr_Occurred()) SWIG_fail;
1383 }
1384 {
1385 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1386 if (PyErr_Occurred()) SWIG_fail;
1387 }
1388 {
1389 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1390 if (PyErr_Occurred()) SWIG_fail;
1391 }
1392 {
1393 PyThreadState* __tstate = wxPyBeginAllowThreads();
1394 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1395
1396 wxPyEndAllowThreads(__tstate);
1397 if (PyErr_Occurred()) SWIG_fail;
1398 }
1399 resultobj = SWIG_PyObj_FromInt((int)result);
1400 return resultobj;
1401 fail:
1402 return NULL;
1403 }
1404
1405
1406 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1407 PyObject *resultobj;
1408 wxPalette *arg1 = (wxPalette *) 0 ;
1409 int arg2 ;
1410 byte *arg3 = (byte *) 0 ;
1411 byte *arg4 = (byte *) 0 ;
1412 byte *arg5 = (byte *) 0 ;
1413 bool result;
1414 byte temp3 ;
1415 byte temp4 ;
1416 byte temp5 ;
1417 PyObject * obj0 = 0 ;
1418 PyObject * obj1 = 0 ;
1419 char *kwnames[] = {
1420 (char *) "self",(char *) "pixel", NULL
1421 };
1422
1423 arg3 = &temp3;
1424 arg4 = &temp4;
1425 arg5 = &temp5;
1426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1427 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1428 {
1429 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1430 if (PyErr_Occurred()) SWIG_fail;
1431 }
1432 {
1433 PyThreadState* __tstate = wxPyBeginAllowThreads();
1434 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1435
1436 wxPyEndAllowThreads(__tstate);
1437 if (PyErr_Occurred()) SWIG_fail;
1438 }
1439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1440 {
1441 PyObject *o = PyInt_FromLong((long) (*arg3));
1442 resultobj = t_output_helper(resultobj,o);
1443 }
1444 {
1445 PyObject *o = PyInt_FromLong((long) (*arg4));
1446 resultobj = t_output_helper(resultobj,o);
1447 }
1448 {
1449 PyObject *o = PyInt_FromLong((long) (*arg5));
1450 resultobj = t_output_helper(resultobj,o);
1451 }
1452 return resultobj;
1453 fail:
1454 return NULL;
1455 }
1456
1457
1458 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1459 PyObject *resultobj;
1460 wxPalette *arg1 = (wxPalette *) 0 ;
1461 bool result;
1462 PyObject * obj0 = 0 ;
1463 char *kwnames[] = {
1464 (char *) "self", NULL
1465 };
1466
1467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1468 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1469 {
1470 PyThreadState* __tstate = wxPyBeginAllowThreads();
1471 result = (bool)(arg1)->Ok();
1472
1473 wxPyEndAllowThreads(__tstate);
1474 if (PyErr_Occurred()) SWIG_fail;
1475 }
1476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1477 return resultobj;
1478 fail:
1479 return NULL;
1480 }
1481
1482
1483 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1484 PyObject *obj;
1485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1486 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1487 Py_INCREF(obj);
1488 return Py_BuildValue((char *)"");
1489 }
1490 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1491 PyObject *resultobj;
1492 wxColour *arg1 = 0 ;
1493 int arg2 = (int) 1 ;
1494 int arg3 = (int) wxSOLID ;
1495 wxPen *result;
1496 wxColour temp1 ;
1497 PyObject * obj0 = 0 ;
1498 PyObject * obj1 = 0 ;
1499 PyObject * obj2 = 0 ;
1500 char *kwnames[] = {
1501 (char *) "colour",(char *) "width",(char *) "style", NULL
1502 };
1503
1504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1505 {
1506 arg1 = &temp1;
1507 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1508 }
1509 if (obj1) {
1510 {
1511 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1512 if (PyErr_Occurred()) SWIG_fail;
1513 }
1514 }
1515 if (obj2) {
1516 {
1517 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1518 if (PyErr_Occurred()) SWIG_fail;
1519 }
1520 }
1521 {
1522 PyThreadState* __tstate = wxPyBeginAllowThreads();
1523 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1524
1525 wxPyEndAllowThreads(__tstate);
1526 if (PyErr_Occurred()) SWIG_fail;
1527 }
1528 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1529 return resultobj;
1530 fail:
1531 return NULL;
1532 }
1533
1534
1535 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1536 PyObject *resultobj;
1537 wxPen *arg1 = (wxPen *) 0 ;
1538 PyObject * obj0 = 0 ;
1539 char *kwnames[] = {
1540 (char *) "self", NULL
1541 };
1542
1543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1544 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1545 {
1546 PyThreadState* __tstate = wxPyBeginAllowThreads();
1547 delete arg1;
1548
1549 wxPyEndAllowThreads(__tstate);
1550 if (PyErr_Occurred()) SWIG_fail;
1551 }
1552 Py_INCREF(Py_None); resultobj = Py_None;
1553 return resultobj;
1554 fail:
1555 return NULL;
1556 }
1557
1558
1559 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1560 PyObject *resultobj;
1561 wxPen *arg1 = (wxPen *) 0 ;
1562 int result;
1563 PyObject * obj0 = 0 ;
1564 char *kwnames[] = {
1565 (char *) "self", NULL
1566 };
1567
1568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1569 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1570 {
1571 PyThreadState* __tstate = wxPyBeginAllowThreads();
1572 result = (int)(arg1)->GetCap();
1573
1574 wxPyEndAllowThreads(__tstate);
1575 if (PyErr_Occurred()) SWIG_fail;
1576 }
1577 resultobj = SWIG_PyObj_FromInt((int)result);
1578 return resultobj;
1579 fail:
1580 return NULL;
1581 }
1582
1583
1584 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1585 PyObject *resultobj;
1586 wxPen *arg1 = (wxPen *) 0 ;
1587 wxColour result;
1588 PyObject * obj0 = 0 ;
1589 char *kwnames[] = {
1590 (char *) "self", NULL
1591 };
1592
1593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1594 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1595 {
1596 PyThreadState* __tstate = wxPyBeginAllowThreads();
1597 result = (arg1)->GetColour();
1598
1599 wxPyEndAllowThreads(__tstate);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 }
1602 {
1603 wxColour * resultptr;
1604 resultptr = new wxColour((wxColour &) result);
1605 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1606 }
1607 return resultobj;
1608 fail:
1609 return NULL;
1610 }
1611
1612
1613 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1614 PyObject *resultobj;
1615 wxPen *arg1 = (wxPen *) 0 ;
1616 int result;
1617 PyObject * obj0 = 0 ;
1618 char *kwnames[] = {
1619 (char *) "self", NULL
1620 };
1621
1622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1624 {
1625 PyThreadState* __tstate = wxPyBeginAllowThreads();
1626 result = (int)(arg1)->GetJoin();
1627
1628 wxPyEndAllowThreads(__tstate);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 }
1631 resultobj = SWIG_PyObj_FromInt((int)result);
1632 return resultobj;
1633 fail:
1634 return NULL;
1635 }
1636
1637
1638 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1639 PyObject *resultobj;
1640 wxPen *arg1 = (wxPen *) 0 ;
1641 int result;
1642 PyObject * obj0 = 0 ;
1643 char *kwnames[] = {
1644 (char *) "self", NULL
1645 };
1646
1647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1649 {
1650 PyThreadState* __tstate = wxPyBeginAllowThreads();
1651 result = (int)(arg1)->GetStyle();
1652
1653 wxPyEndAllowThreads(__tstate);
1654 if (PyErr_Occurred()) SWIG_fail;
1655 }
1656 resultobj = SWIG_PyObj_FromInt((int)result);
1657 return resultobj;
1658 fail:
1659 return NULL;
1660 }
1661
1662
1663 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1664 PyObject *resultobj;
1665 wxPen *arg1 = (wxPen *) 0 ;
1666 int result;
1667 PyObject * obj0 = 0 ;
1668 char *kwnames[] = {
1669 (char *) "self", NULL
1670 };
1671
1672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1674 {
1675 PyThreadState* __tstate = wxPyBeginAllowThreads();
1676 result = (int)(arg1)->GetWidth();
1677
1678 wxPyEndAllowThreads(__tstate);
1679 if (PyErr_Occurred()) SWIG_fail;
1680 }
1681 resultobj = SWIG_PyObj_FromInt((int)result);
1682 return resultobj;
1683 fail:
1684 return NULL;
1685 }
1686
1687
1688 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1689 PyObject *resultobj;
1690 wxPen *arg1 = (wxPen *) 0 ;
1691 bool result;
1692 PyObject * obj0 = 0 ;
1693 char *kwnames[] = {
1694 (char *) "self", NULL
1695 };
1696
1697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1698 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1699 {
1700 PyThreadState* __tstate = wxPyBeginAllowThreads();
1701 result = (bool)(arg1)->Ok();
1702
1703 wxPyEndAllowThreads(__tstate);
1704 if (PyErr_Occurred()) SWIG_fail;
1705 }
1706 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1707 return resultobj;
1708 fail:
1709 return NULL;
1710 }
1711
1712
1713 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1714 PyObject *resultobj;
1715 wxPen *arg1 = (wxPen *) 0 ;
1716 int arg2 ;
1717 PyObject * obj0 = 0 ;
1718 PyObject * obj1 = 0 ;
1719 char *kwnames[] = {
1720 (char *) "self",(char *) "cap_style", NULL
1721 };
1722
1723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1725 {
1726 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 {
1730 PyThreadState* __tstate = wxPyBeginAllowThreads();
1731 (arg1)->SetCap(arg2);
1732
1733 wxPyEndAllowThreads(__tstate);
1734 if (PyErr_Occurred()) SWIG_fail;
1735 }
1736 Py_INCREF(Py_None); resultobj = Py_None;
1737 return resultobj;
1738 fail:
1739 return NULL;
1740 }
1741
1742
1743 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1744 PyObject *resultobj;
1745 wxPen *arg1 = (wxPen *) 0 ;
1746 wxColour *arg2 = 0 ;
1747 wxColour temp2 ;
1748 PyObject * obj0 = 0 ;
1749 PyObject * obj1 = 0 ;
1750 char *kwnames[] = {
1751 (char *) "self",(char *) "colour", NULL
1752 };
1753
1754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1756 {
1757 arg2 = &temp2;
1758 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1759 }
1760 {
1761 PyThreadState* __tstate = wxPyBeginAllowThreads();
1762 (arg1)->SetColour(*arg2);
1763
1764 wxPyEndAllowThreads(__tstate);
1765 if (PyErr_Occurred()) SWIG_fail;
1766 }
1767 Py_INCREF(Py_None); resultobj = Py_None;
1768 return resultobj;
1769 fail:
1770 return NULL;
1771 }
1772
1773
1774 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1775 PyObject *resultobj;
1776 wxPen *arg1 = (wxPen *) 0 ;
1777 int arg2 ;
1778 PyObject * obj0 = 0 ;
1779 PyObject * obj1 = 0 ;
1780 char *kwnames[] = {
1781 (char *) "self",(char *) "join_style", NULL
1782 };
1783
1784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1786 {
1787 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1788 if (PyErr_Occurred()) SWIG_fail;
1789 }
1790 {
1791 PyThreadState* __tstate = wxPyBeginAllowThreads();
1792 (arg1)->SetJoin(arg2);
1793
1794 wxPyEndAllowThreads(__tstate);
1795 if (PyErr_Occurred()) SWIG_fail;
1796 }
1797 Py_INCREF(Py_None); resultobj = Py_None;
1798 return resultobj;
1799 fail:
1800 return NULL;
1801 }
1802
1803
1804 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1805 PyObject *resultobj;
1806 wxPen *arg1 = (wxPen *) 0 ;
1807 int arg2 ;
1808 PyObject * obj0 = 0 ;
1809 PyObject * obj1 = 0 ;
1810 char *kwnames[] = {
1811 (char *) "self",(char *) "style", NULL
1812 };
1813
1814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1815 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1816 {
1817 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1818 if (PyErr_Occurred()) SWIG_fail;
1819 }
1820 {
1821 PyThreadState* __tstate = wxPyBeginAllowThreads();
1822 (arg1)->SetStyle(arg2);
1823
1824 wxPyEndAllowThreads(__tstate);
1825 if (PyErr_Occurred()) SWIG_fail;
1826 }
1827 Py_INCREF(Py_None); resultobj = Py_None;
1828 return resultobj;
1829 fail:
1830 return NULL;
1831 }
1832
1833
1834 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1835 PyObject *resultobj;
1836 wxPen *arg1 = (wxPen *) 0 ;
1837 int arg2 ;
1838 PyObject * obj0 = 0 ;
1839 PyObject * obj1 = 0 ;
1840 char *kwnames[] = {
1841 (char *) "self",(char *) "width", NULL
1842 };
1843
1844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1846 {
1847 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1848 if (PyErr_Occurred()) SWIG_fail;
1849 }
1850 {
1851 PyThreadState* __tstate = wxPyBeginAllowThreads();
1852 (arg1)->SetWidth(arg2);
1853
1854 wxPyEndAllowThreads(__tstate);
1855 if (PyErr_Occurred()) SWIG_fail;
1856 }
1857 Py_INCREF(Py_None); resultobj = Py_None;
1858 return resultobj;
1859 fail:
1860 return NULL;
1861 }
1862
1863
1864 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1865 PyObject *resultobj;
1866 wxPen *arg1 = (wxPen *) 0 ;
1867 int arg2 ;
1868 wxDash *arg3 = (wxDash *) 0 ;
1869 PyObject * obj0 = 0 ;
1870 PyObject * obj1 = 0 ;
1871 char *kwnames[] = {
1872 (char *) "self",(char *) "dashes", NULL
1873 };
1874
1875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1877 {
1878 arg2 = PyList_Size(obj1);
1879 arg3 = (wxDash*)byte_LIST_helper(obj1);
1880 if (arg3 == NULL) SWIG_fail;
1881 }
1882 {
1883 PyThreadState* __tstate = wxPyBeginAllowThreads();
1884 (arg1)->SetDashes(arg2,arg3);
1885
1886 wxPyEndAllowThreads(__tstate);
1887 if (PyErr_Occurred()) SWIG_fail;
1888 }
1889 Py_INCREF(Py_None); resultobj = Py_None;
1890 {
1891 if (arg3) delete [] arg3;
1892 }
1893 return resultobj;
1894 fail:
1895 {
1896 if (arg3) delete [] arg3;
1897 }
1898 return NULL;
1899 }
1900
1901
1902 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 PyObject *result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1913 {
1914 PyThreadState* __tstate = wxPyBeginAllowThreads();
1915 result = (PyObject *)wxPen_GetDashes(arg1);
1916
1917 wxPyEndAllowThreads(__tstate);
1918 if (PyErr_Occurred()) SWIG_fail;
1919 }
1920 resultobj = result;
1921 return resultobj;
1922 fail:
1923 return NULL;
1924 }
1925
1926
1927 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1928 PyObject *obj;
1929 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1930 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1931 Py_INCREF(obj);
1932 return Py_BuildValue((char *)"");
1933 }
1934 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1935 PyObject *resultobj;
1936 wxColour *arg1 = 0 ;
1937 int arg2 = (int) 1 ;
1938 int arg3 = (int) wxSOLID ;
1939 wxPyPen *result;
1940 wxColour temp1 ;
1941 PyObject * obj0 = 0 ;
1942 PyObject * obj1 = 0 ;
1943 PyObject * obj2 = 0 ;
1944 char *kwnames[] = {
1945 (char *) "colour",(char *) "width",(char *) "style", NULL
1946 };
1947
1948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1949 {
1950 arg1 = &temp1;
1951 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1952 }
1953 if (obj1) {
1954 {
1955 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1956 if (PyErr_Occurred()) SWIG_fail;
1957 }
1958 }
1959 if (obj2) {
1960 {
1961 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1962 if (PyErr_Occurred()) SWIG_fail;
1963 }
1964 }
1965 {
1966 PyThreadState* __tstate = wxPyBeginAllowThreads();
1967 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1968
1969 wxPyEndAllowThreads(__tstate);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 }
1972 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1973 return resultobj;
1974 fail:
1975 return NULL;
1976 }
1977
1978
1979 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1980 PyObject *resultobj;
1981 wxPyPen *arg1 = (wxPyPen *) 0 ;
1982 PyObject * obj0 = 0 ;
1983 char *kwnames[] = {
1984 (char *) "self", NULL
1985 };
1986
1987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1989 {
1990 PyThreadState* __tstate = wxPyBeginAllowThreads();
1991 delete arg1;
1992
1993 wxPyEndAllowThreads(__tstate);
1994 if (PyErr_Occurred()) SWIG_fail;
1995 }
1996 Py_INCREF(Py_None); resultobj = Py_None;
1997 return resultobj;
1998 fail:
1999 return NULL;
2000 }
2001
2002
2003 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2004 PyObject *resultobj;
2005 wxPyPen *arg1 = (wxPyPen *) 0 ;
2006 int arg2 ;
2007 wxDash *arg3 = (wxDash *) 0 ;
2008 PyObject * obj0 = 0 ;
2009 PyObject * obj1 = 0 ;
2010 char *kwnames[] = {
2011 (char *) "self",(char *) "dashes", NULL
2012 };
2013
2014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2015 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2016 {
2017 arg2 = PyList_Size(obj1);
2018 arg3 = (wxDash*)byte_LIST_helper(obj1);
2019 if (arg3 == NULL) SWIG_fail;
2020 }
2021 {
2022 PyThreadState* __tstate = wxPyBeginAllowThreads();
2023 (arg1)->SetDashes(arg2,arg3);
2024
2025 wxPyEndAllowThreads(__tstate);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 }
2028 Py_INCREF(Py_None); resultobj = Py_None;
2029 {
2030 if (arg3) delete [] arg3;
2031 }
2032 return resultobj;
2033 fail:
2034 {
2035 if (arg3) delete [] arg3;
2036 }
2037 return NULL;
2038 }
2039
2040
2041 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2042 PyObject *obj;
2043 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2044 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2045 Py_INCREF(obj);
2046 return Py_BuildValue((char *)"");
2047 }
2048 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2049 PyObject *resultobj;
2050 wxColour *arg1 = 0 ;
2051 int arg2 = (int) wxSOLID ;
2052 wxBrush *result;
2053 wxColour temp1 ;
2054 PyObject * obj0 = 0 ;
2055 PyObject * obj1 = 0 ;
2056 char *kwnames[] = {
2057 (char *) "colour",(char *) "style", NULL
2058 };
2059
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2061 {
2062 arg1 = &temp1;
2063 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2064 }
2065 if (obj1) {
2066 {
2067 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2068 if (PyErr_Occurred()) SWIG_fail;
2069 }
2070 }
2071 {
2072 PyThreadState* __tstate = wxPyBeginAllowThreads();
2073 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2074
2075 wxPyEndAllowThreads(__tstate);
2076 if (PyErr_Occurred()) SWIG_fail;
2077 }
2078 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2079 return resultobj;
2080 fail:
2081 return NULL;
2082 }
2083
2084
2085 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2086 PyObject *resultobj;
2087 wxBrush *arg1 = (wxBrush *) 0 ;
2088 PyObject * obj0 = 0 ;
2089 char *kwnames[] = {
2090 (char *) "self", NULL
2091 };
2092
2093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2095 {
2096 PyThreadState* __tstate = wxPyBeginAllowThreads();
2097 delete arg1;
2098
2099 wxPyEndAllowThreads(__tstate);
2100 if (PyErr_Occurred()) SWIG_fail;
2101 }
2102 Py_INCREF(Py_None); resultobj = Py_None;
2103 return resultobj;
2104 fail:
2105 return NULL;
2106 }
2107
2108
2109 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2110 PyObject *resultobj;
2111 wxBrush *arg1 = (wxBrush *) 0 ;
2112 wxColour *arg2 = 0 ;
2113 wxColour temp2 ;
2114 PyObject * obj0 = 0 ;
2115 PyObject * obj1 = 0 ;
2116 char *kwnames[] = {
2117 (char *) "self",(char *) "col", NULL
2118 };
2119
2120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2121 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2122 {
2123 arg2 = &temp2;
2124 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2125 }
2126 {
2127 PyThreadState* __tstate = wxPyBeginAllowThreads();
2128 (arg1)->SetColour((wxColour const &)*arg2);
2129
2130 wxPyEndAllowThreads(__tstate);
2131 if (PyErr_Occurred()) SWIG_fail;
2132 }
2133 Py_INCREF(Py_None); resultobj = Py_None;
2134 return resultobj;
2135 fail:
2136 return NULL;
2137 }
2138
2139
2140 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2141 PyObject *resultobj;
2142 wxBrush *arg1 = (wxBrush *) 0 ;
2143 int arg2 ;
2144 PyObject * obj0 = 0 ;
2145 PyObject * obj1 = 0 ;
2146 char *kwnames[] = {
2147 (char *) "self",(char *) "style", NULL
2148 };
2149
2150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2151 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2152 {
2153 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2154 if (PyErr_Occurred()) SWIG_fail;
2155 }
2156 {
2157 PyThreadState* __tstate = wxPyBeginAllowThreads();
2158 (arg1)->SetStyle(arg2);
2159
2160 wxPyEndAllowThreads(__tstate);
2161 if (PyErr_Occurred()) SWIG_fail;
2162 }
2163 Py_INCREF(Py_None); resultobj = Py_None;
2164 return resultobj;
2165 fail:
2166 return NULL;
2167 }
2168
2169
2170 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2171 PyObject *resultobj;
2172 wxBrush *arg1 = (wxBrush *) 0 ;
2173 wxBitmap *arg2 = 0 ;
2174 PyObject * obj0 = 0 ;
2175 PyObject * obj1 = 0 ;
2176 char *kwnames[] = {
2177 (char *) "self",(char *) "stipple", NULL
2178 };
2179
2180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2182 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2183 if (arg2 == NULL) {
2184 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2185 }
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
2188 (arg1)->SetStipple((wxBitmap const &)*arg2);
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) SWIG_fail;
2192 }
2193 Py_INCREF(Py_None); resultobj = Py_None;
2194 return resultobj;
2195 fail:
2196 return NULL;
2197 }
2198
2199
2200 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject *resultobj;
2202 wxBrush *arg1 = (wxBrush *) 0 ;
2203 wxColour result;
2204 PyObject * obj0 = 0 ;
2205 char *kwnames[] = {
2206 (char *) "self", NULL
2207 };
2208
2209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2210 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2211 {
2212 PyThreadState* __tstate = wxPyBeginAllowThreads();
2213 result = ((wxBrush const *)arg1)->GetColour();
2214
2215 wxPyEndAllowThreads(__tstate);
2216 if (PyErr_Occurred()) SWIG_fail;
2217 }
2218 {
2219 wxColour * resultptr;
2220 resultptr = new wxColour((wxColour &) result);
2221 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2222 }
2223 return resultobj;
2224 fail:
2225 return NULL;
2226 }
2227
2228
2229 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2230 PyObject *resultobj;
2231 wxBrush *arg1 = (wxBrush *) 0 ;
2232 int result;
2233 PyObject * obj0 = 0 ;
2234 char *kwnames[] = {
2235 (char *) "self", NULL
2236 };
2237
2238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2239 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2240 {
2241 PyThreadState* __tstate = wxPyBeginAllowThreads();
2242 result = (int)((wxBrush const *)arg1)->GetStyle();
2243
2244 wxPyEndAllowThreads(__tstate);
2245 if (PyErr_Occurred()) SWIG_fail;
2246 }
2247 resultobj = SWIG_PyObj_FromInt((int)result);
2248 return resultobj;
2249 fail:
2250 return NULL;
2251 }
2252
2253
2254 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2255 PyObject *resultobj;
2256 wxBrush *arg1 = (wxBrush *) 0 ;
2257 wxBitmap *result;
2258 PyObject * obj0 = 0 ;
2259 char *kwnames[] = {
2260 (char *) "self", NULL
2261 };
2262
2263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2265 {
2266 PyThreadState* __tstate = wxPyBeginAllowThreads();
2267 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2268
2269 wxPyEndAllowThreads(__tstate);
2270 if (PyErr_Occurred()) SWIG_fail;
2271 }
2272 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2273 return resultobj;
2274 fail:
2275 return NULL;
2276 }
2277
2278
2279 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2280 PyObject *resultobj;
2281 wxBrush *arg1 = (wxBrush *) 0 ;
2282 bool result;
2283 PyObject * obj0 = 0 ;
2284 char *kwnames[] = {
2285 (char *) "self", NULL
2286 };
2287
2288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2290 {
2291 PyThreadState* __tstate = wxPyBeginAllowThreads();
2292 result = (bool)(arg1)->Ok();
2293
2294 wxPyEndAllowThreads(__tstate);
2295 if (PyErr_Occurred()) SWIG_fail;
2296 }
2297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2298 return resultobj;
2299 fail:
2300 return NULL;
2301 }
2302
2303
2304 static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2305 PyObject *resultobj;
2306 wxBrush *arg1 = (wxBrush *) 0 ;
2307 short result;
2308 PyObject * obj0 = 0 ;
2309 char *kwnames[] = {
2310 (char *) "self", NULL
2311 };
2312
2313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2315 {
2316 PyThreadState* __tstate = wxPyBeginAllowThreads();
2317 result = (short)(arg1)->GetMacTheme();
2318
2319 wxPyEndAllowThreads(__tstate);
2320 if (PyErr_Occurred()) SWIG_fail;
2321 }
2322 resultobj = SWIG_PyObj_FromShort((short)result);
2323 return resultobj;
2324 fail:
2325 return NULL;
2326 }
2327
2328
2329 static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2330 PyObject *resultobj;
2331 wxBrush *arg1 = (wxBrush *) 0 ;
2332 short arg2 ;
2333 PyObject * obj0 = 0 ;
2334 PyObject * obj1 = 0 ;
2335 char *kwnames[] = {
2336 (char *) "self",(char *) "macThemeBrush", NULL
2337 };
2338
2339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail;
2340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2341 {
2342 arg2 = (short) SWIG_PyObj_AsShort(obj1);
2343 if (PyErr_Occurred()) SWIG_fail;
2344 }
2345 {
2346 PyThreadState* __tstate = wxPyBeginAllowThreads();
2347 (arg1)->SetMacTheme(arg2);
2348
2349 wxPyEndAllowThreads(__tstate);
2350 if (PyErr_Occurred()) SWIG_fail;
2351 }
2352 Py_INCREF(Py_None); resultobj = Py_None;
2353 return resultobj;
2354 fail:
2355 return NULL;
2356 }
2357
2358
2359 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2360 PyObject *obj;
2361 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2362 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2363 Py_INCREF(obj);
2364 return Py_BuildValue((char *)"");
2365 }
2366 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2367 PyObject *resultobj;
2368 wxString *arg1 = 0 ;
2369 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2370 wxBitmap *result;
2371 bool temp1 = False ;
2372 PyObject * obj0 = 0 ;
2373 PyObject * obj1 = 0 ;
2374 char *kwnames[] = {
2375 (char *) "name",(char *) "type", NULL
2376 };
2377
2378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2379 {
2380 arg1 = wxString_in_helper(obj0);
2381 if (arg1 == NULL) SWIG_fail;
2382 temp1 = True;
2383 }
2384 if (obj1) {
2385 {
2386 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2387 if (PyErr_Occurred()) SWIG_fail;
2388 }
2389 }
2390 {
2391 PyThreadState* __tstate = wxPyBeginAllowThreads();
2392 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2393
2394 wxPyEndAllowThreads(__tstate);
2395 if (PyErr_Occurred()) SWIG_fail;
2396 }
2397 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2398 {
2399 if (temp1)
2400 delete arg1;
2401 }
2402 return resultobj;
2403 fail:
2404 {
2405 if (temp1)
2406 delete arg1;
2407 }
2408 return NULL;
2409 }
2410
2411
2412 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2413 PyObject *resultobj;
2414 wxBitmap *arg1 = (wxBitmap *) 0 ;
2415 PyObject * obj0 = 0 ;
2416 char *kwnames[] = {
2417 (char *) "self", NULL
2418 };
2419
2420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2422 {
2423 PyThreadState* __tstate = wxPyBeginAllowThreads();
2424 delete arg1;
2425
2426 wxPyEndAllowThreads(__tstate);
2427 if (PyErr_Occurred()) SWIG_fail;
2428 }
2429 Py_INCREF(Py_None); resultobj = Py_None;
2430 return resultobj;
2431 fail:
2432 return NULL;
2433 }
2434
2435
2436 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2437 PyObject *resultobj;
2438 int arg1 ;
2439 int arg2 ;
2440 int arg3 = (int) -1 ;
2441 wxBitmap *result;
2442 PyObject * obj0 = 0 ;
2443 PyObject * obj1 = 0 ;
2444 PyObject * obj2 = 0 ;
2445 char *kwnames[] = {
2446 (char *) "width",(char *) "height",(char *) "depth", NULL
2447 };
2448
2449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2450 {
2451 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2452 if (PyErr_Occurred()) SWIG_fail;
2453 }
2454 {
2455 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2456 if (PyErr_Occurred()) SWIG_fail;
2457 }
2458 if (obj2) {
2459 {
2460 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 }
2464 {
2465 PyThreadState* __tstate = wxPyBeginAllowThreads();
2466 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2467
2468 wxPyEndAllowThreads(__tstate);
2469 if (PyErr_Occurred()) SWIG_fail;
2470 }
2471 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxIcon *arg1 = 0 ;
2481 wxBitmap *result;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "icon", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2489 if (arg1 == NULL) {
2490 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2491 }
2492 {
2493 PyThreadState* __tstate = wxPyBeginAllowThreads();
2494 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2495
2496 wxPyEndAllowThreads(__tstate);
2497 if (PyErr_Occurred()) SWIG_fail;
2498 }
2499 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2500 return resultobj;
2501 fail:
2502 return NULL;
2503 }
2504
2505
2506 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2507 PyObject *resultobj;
2508 wxImage *arg1 = 0 ;
2509 int arg2 = (int) -1 ;
2510 wxBitmap *result;
2511 PyObject * obj0 = 0 ;
2512 PyObject * obj1 = 0 ;
2513 char *kwnames[] = {
2514 (char *) "image",(char *) "depth", NULL
2515 };
2516
2517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2518 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2519 if (arg1 == NULL) {
2520 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2521 }
2522 if (obj1) {
2523 {
2524 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2525 if (PyErr_Occurred()) SWIG_fail;
2526 }
2527 }
2528 {
2529 PyThreadState* __tstate = wxPyBeginAllowThreads();
2530 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2531
2532 wxPyEndAllowThreads(__tstate);
2533 if (PyErr_Occurred()) SWIG_fail;
2534 }
2535 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2536 return resultobj;
2537 fail:
2538 return NULL;
2539 }
2540
2541
2542 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2543 PyObject *resultobj;
2544 PyObject *arg1 = (PyObject *) 0 ;
2545 wxBitmap *result;
2546 PyObject * obj0 = 0 ;
2547 char *kwnames[] = {
2548 (char *) "listOfStrings", NULL
2549 };
2550
2551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2552 arg1 = obj0;
2553 {
2554 PyThreadState* __tstate = wxPyBeginAllowThreads();
2555 result = (wxBitmap *)new_wxBitmap(arg1);
2556
2557 wxPyEndAllowThreads(__tstate);
2558 if (PyErr_Occurred()) SWIG_fail;
2559 }
2560 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2561 return resultobj;
2562 fail:
2563 return NULL;
2564 }
2565
2566
2567 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2568 PyObject *resultobj;
2569 PyObject *arg1 = (PyObject *) 0 ;
2570 int arg2 ;
2571 int arg3 ;
2572 int arg4 = (int) 1 ;
2573 wxBitmap *result;
2574 PyObject * obj0 = 0 ;
2575 PyObject * obj1 = 0 ;
2576 PyObject * obj2 = 0 ;
2577 PyObject * obj3 = 0 ;
2578 char *kwnames[] = {
2579 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2580 };
2581
2582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2583 arg1 = obj0;
2584 {
2585 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2586 if (PyErr_Occurred()) SWIG_fail;
2587 }
2588 {
2589 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 if (obj3) {
2593 {
2594 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 }
2598 {
2599 PyThreadState* __tstate = wxPyBeginAllowThreads();
2600 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2601
2602 wxPyEndAllowThreads(__tstate);
2603 if (PyErr_Occurred()) SWIG_fail;
2604 }
2605 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2606 return resultobj;
2607 fail:
2608 return NULL;
2609 }
2610
2611
2612 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2613 PyObject *resultobj;
2614 wxBitmap *arg1 = (wxBitmap *) 0 ;
2615 bool result;
2616 PyObject * obj0 = 0 ;
2617 char *kwnames[] = {
2618 (char *) "self", NULL
2619 };
2620
2621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2622 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2623 {
2624 PyThreadState* __tstate = wxPyBeginAllowThreads();
2625 result = (bool)(arg1)->Ok();
2626
2627 wxPyEndAllowThreads(__tstate);
2628 if (PyErr_Occurred()) SWIG_fail;
2629 }
2630 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2631 return resultobj;
2632 fail:
2633 return NULL;
2634 }
2635
2636
2637 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2638 PyObject *resultobj;
2639 wxBitmap *arg1 = (wxBitmap *) 0 ;
2640 int result;
2641 PyObject * obj0 = 0 ;
2642 char *kwnames[] = {
2643 (char *) "self", NULL
2644 };
2645
2646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2647 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2648 {
2649 PyThreadState* __tstate = wxPyBeginAllowThreads();
2650 result = (int)(arg1)->GetWidth();
2651
2652 wxPyEndAllowThreads(__tstate);
2653 if (PyErr_Occurred()) SWIG_fail;
2654 }
2655 resultobj = SWIG_PyObj_FromInt((int)result);
2656 return resultobj;
2657 fail:
2658 return NULL;
2659 }
2660
2661
2662 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2663 PyObject *resultobj;
2664 wxBitmap *arg1 = (wxBitmap *) 0 ;
2665 int result;
2666 PyObject * obj0 = 0 ;
2667 char *kwnames[] = {
2668 (char *) "self", NULL
2669 };
2670
2671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2673 {
2674 PyThreadState* __tstate = wxPyBeginAllowThreads();
2675 result = (int)(arg1)->GetHeight();
2676
2677 wxPyEndAllowThreads(__tstate);
2678 if (PyErr_Occurred()) SWIG_fail;
2679 }
2680 resultobj = SWIG_PyObj_FromInt((int)result);
2681 return resultobj;
2682 fail:
2683 return NULL;
2684 }
2685
2686
2687 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2688 PyObject *resultobj;
2689 wxBitmap *arg1 = (wxBitmap *) 0 ;
2690 int result;
2691 PyObject * obj0 = 0 ;
2692 char *kwnames[] = {
2693 (char *) "self", NULL
2694 };
2695
2696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2697 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2698 {
2699 PyThreadState* __tstate = wxPyBeginAllowThreads();
2700 result = (int)(arg1)->GetDepth();
2701
2702 wxPyEndAllowThreads(__tstate);
2703 if (PyErr_Occurred()) SWIG_fail;
2704 }
2705 resultobj = SWIG_PyObj_FromInt((int)result);
2706 return resultobj;
2707 fail:
2708 return NULL;
2709 }
2710
2711
2712 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2713 PyObject *resultobj;
2714 wxBitmap *arg1 = (wxBitmap *) 0 ;
2715 SwigValueWrapper< wxImage > result;
2716 PyObject * obj0 = 0 ;
2717 char *kwnames[] = {
2718 (char *) "self", NULL
2719 };
2720
2721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2722 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2723 {
2724 PyThreadState* __tstate = wxPyBeginAllowThreads();
2725 result = ((wxBitmap const *)arg1)->ConvertToImage();
2726
2727 wxPyEndAllowThreads(__tstate);
2728 if (PyErr_Occurred()) SWIG_fail;
2729 }
2730 {
2731 wxImage * resultptr;
2732 resultptr = new wxImage((wxImage &) result);
2733 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2734 }
2735 return resultobj;
2736 fail:
2737 return NULL;
2738 }
2739
2740
2741 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2742 PyObject *resultobj;
2743 wxBitmap *arg1 = (wxBitmap *) 0 ;
2744 wxMask *result;
2745 PyObject * obj0 = 0 ;
2746 char *kwnames[] = {
2747 (char *) "self", NULL
2748 };
2749
2750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2751 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2752 {
2753 PyThreadState* __tstate = wxPyBeginAllowThreads();
2754 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2755
2756 wxPyEndAllowThreads(__tstate);
2757 if (PyErr_Occurred()) SWIG_fail;
2758 }
2759 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2760 return resultobj;
2761 fail:
2762 return NULL;
2763 }
2764
2765
2766 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2767 PyObject *resultobj;
2768 wxBitmap *arg1 = (wxBitmap *) 0 ;
2769 wxMask *arg2 = (wxMask *) 0 ;
2770 PyObject * obj0 = 0 ;
2771 PyObject * obj1 = 0 ;
2772 char *kwnames[] = {
2773 (char *) "self",(char *) "mask", NULL
2774 };
2775
2776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2777 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2778 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 (arg1)->SetMask(arg2);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) SWIG_fail;
2785 }
2786 Py_INCREF(Py_None); resultobj = Py_None;
2787 return resultobj;
2788 fail:
2789 return NULL;
2790 }
2791
2792
2793 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj;
2795 wxBitmap *arg1 = (wxBitmap *) 0 ;
2796 wxColour *arg2 = 0 ;
2797 wxColour temp2 ;
2798 PyObject * obj0 = 0 ;
2799 PyObject * obj1 = 0 ;
2800 char *kwnames[] = {
2801 (char *) "self",(char *) "colour", NULL
2802 };
2803
2804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2805 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2806 {
2807 arg2 = &temp2;
2808 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2809 }
2810 {
2811 PyThreadState* __tstate = wxPyBeginAllowThreads();
2812 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2813
2814 wxPyEndAllowThreads(__tstate);
2815 if (PyErr_Occurred()) SWIG_fail;
2816 }
2817 Py_INCREF(Py_None); resultobj = Py_None;
2818 return resultobj;
2819 fail:
2820 return NULL;
2821 }
2822
2823
2824 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2825 PyObject *resultobj;
2826 wxBitmap *arg1 = (wxBitmap *) 0 ;
2827 wxRect *arg2 = 0 ;
2828 SwigValueWrapper< wxBitmap > result;
2829 wxRect temp2 ;
2830 PyObject * obj0 = 0 ;
2831 PyObject * obj1 = 0 ;
2832 char *kwnames[] = {
2833 (char *) "self",(char *) "rect", NULL
2834 };
2835
2836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2837 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2838 {
2839 arg2 = &temp2;
2840 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2841 }
2842 {
2843 PyThreadState* __tstate = wxPyBeginAllowThreads();
2844 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2845
2846 wxPyEndAllowThreads(__tstate);
2847 if (PyErr_Occurred()) SWIG_fail;
2848 }
2849 {
2850 wxBitmap * resultptr;
2851 resultptr = new wxBitmap((wxBitmap &) result);
2852 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2853 }
2854 return resultobj;
2855 fail:
2856 return NULL;
2857 }
2858
2859
2860 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2861 PyObject *resultobj;
2862 wxBitmap *arg1 = (wxBitmap *) 0 ;
2863 wxString *arg2 = 0 ;
2864 int arg3 ;
2865 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2866 bool result;
2867 bool temp2 = False ;
2868 PyObject * obj0 = 0 ;
2869 PyObject * obj1 = 0 ;
2870 PyObject * obj2 = 0 ;
2871 PyObject * obj3 = 0 ;
2872 char *kwnames[] = {
2873 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2874 };
2875
2876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2877 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2878 {
2879 arg2 = wxString_in_helper(obj1);
2880 if (arg2 == NULL) SWIG_fail;
2881 temp2 = True;
2882 }
2883 {
2884 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2885 if (PyErr_Occurred()) SWIG_fail;
2886 }
2887 if (obj3) {
2888 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2889 }
2890 {
2891 PyThreadState* __tstate = wxPyBeginAllowThreads();
2892 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2893
2894 wxPyEndAllowThreads(__tstate);
2895 if (PyErr_Occurred()) SWIG_fail;
2896 }
2897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2898 {
2899 if (temp2)
2900 delete arg2;
2901 }
2902 return resultobj;
2903 fail:
2904 {
2905 if (temp2)
2906 delete arg2;
2907 }
2908 return NULL;
2909 }
2910
2911
2912 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 wxBitmap *arg1 = (wxBitmap *) 0 ;
2915 wxString *arg2 = 0 ;
2916 int arg3 ;
2917 bool result;
2918 bool temp2 = False ;
2919 PyObject * obj0 = 0 ;
2920 PyObject * obj1 = 0 ;
2921 PyObject * obj2 = 0 ;
2922 char *kwnames[] = {
2923 (char *) "self",(char *) "name",(char *) "type", NULL
2924 };
2925
2926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2928 {
2929 arg2 = wxString_in_helper(obj1);
2930 if (arg2 == NULL) SWIG_fail;
2931 temp2 = True;
2932 }
2933 {
2934 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2935 if (PyErr_Occurred()) SWIG_fail;
2936 }
2937 {
2938 PyThreadState* __tstate = wxPyBeginAllowThreads();
2939 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2940
2941 wxPyEndAllowThreads(__tstate);
2942 if (PyErr_Occurred()) SWIG_fail;
2943 }
2944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2945 {
2946 if (temp2)
2947 delete arg2;
2948 }
2949 return resultobj;
2950 fail:
2951 {
2952 if (temp2)
2953 delete arg2;
2954 }
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 wxBitmap *arg1 = (wxBitmap *) 0 ;
2962 wxIcon *arg2 = 0 ;
2963 bool result;
2964 PyObject * obj0 = 0 ;
2965 PyObject * obj1 = 0 ;
2966 char *kwnames[] = {
2967 (char *) "self",(char *) "icon", NULL
2968 };
2969
2970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2971 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2972 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2973 if (arg2 == NULL) {
2974 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2975 }
2976 {
2977 PyThreadState* __tstate = wxPyBeginAllowThreads();
2978 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2979
2980 wxPyEndAllowThreads(__tstate);
2981 if (PyErr_Occurred()) SWIG_fail;
2982 }
2983 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2984 return resultobj;
2985 fail:
2986 return NULL;
2987 }
2988
2989
2990 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2991 PyObject *resultobj;
2992 wxBitmap *arg1 = (wxBitmap *) 0 ;
2993 int arg2 ;
2994 PyObject * obj0 = 0 ;
2995 PyObject * obj1 = 0 ;
2996 char *kwnames[] = {
2997 (char *) "self",(char *) "height", NULL
2998 };
2999
3000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3001 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3002 {
3003 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3004 if (PyErr_Occurred()) SWIG_fail;
3005 }
3006 {
3007 PyThreadState* __tstate = wxPyBeginAllowThreads();
3008 (arg1)->SetHeight(arg2);
3009
3010 wxPyEndAllowThreads(__tstate);
3011 if (PyErr_Occurred()) SWIG_fail;
3012 }
3013 Py_INCREF(Py_None); resultobj = Py_None;
3014 return resultobj;
3015 fail:
3016 return NULL;
3017 }
3018
3019
3020 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3021 PyObject *resultobj;
3022 wxBitmap *arg1 = (wxBitmap *) 0 ;
3023 int arg2 ;
3024 PyObject * obj0 = 0 ;
3025 PyObject * obj1 = 0 ;
3026 char *kwnames[] = {
3027 (char *) "self",(char *) "width", NULL
3028 };
3029
3030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3031 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3032 {
3033 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 }
3036 {
3037 PyThreadState* __tstate = wxPyBeginAllowThreads();
3038 (arg1)->SetWidth(arg2);
3039
3040 wxPyEndAllowThreads(__tstate);
3041 if (PyErr_Occurred()) SWIG_fail;
3042 }
3043 Py_INCREF(Py_None); resultobj = Py_None;
3044 return resultobj;
3045 fail:
3046 return NULL;
3047 }
3048
3049
3050 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3051 PyObject *resultobj;
3052 wxBitmap *arg1 = (wxBitmap *) 0 ;
3053 int arg2 ;
3054 PyObject * obj0 = 0 ;
3055 PyObject * obj1 = 0 ;
3056 char *kwnames[] = {
3057 (char *) "self",(char *) "depth", NULL
3058 };
3059
3060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3061 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3062 {
3063 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3064 if (PyErr_Occurred()) SWIG_fail;
3065 }
3066 {
3067 PyThreadState* __tstate = wxPyBeginAllowThreads();
3068 (arg1)->SetDepth(arg2);
3069
3070 wxPyEndAllowThreads(__tstate);
3071 if (PyErr_Occurred()) SWIG_fail;
3072 }
3073 Py_INCREF(Py_None); resultobj = Py_None;
3074 return resultobj;
3075 fail:
3076 return NULL;
3077 }
3078
3079
3080 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3081 PyObject *obj;
3082 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3083 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3084 Py_INCREF(obj);
3085 return Py_BuildValue((char *)"");
3086 }
3087 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3088 PyObject *resultobj;
3089 wxBitmap *arg1 = 0 ;
3090 wxMask *result;
3091 PyObject * obj0 = 0 ;
3092 char *kwnames[] = {
3093 (char *) "bitmap", NULL
3094 };
3095
3096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3097 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3098 if (arg1 == NULL) {
3099 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3100 }
3101 {
3102 PyThreadState* __tstate = wxPyBeginAllowThreads();
3103 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3104
3105 wxPyEndAllowThreads(__tstate);
3106 if (PyErr_Occurred()) SWIG_fail;
3107 }
3108 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3109 return resultobj;
3110 fail:
3111 return NULL;
3112 }
3113
3114
3115 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3116 PyObject *resultobj;
3117 wxBitmap *arg1 = 0 ;
3118 wxColour *arg2 = 0 ;
3119 wxMask *result;
3120 wxColour temp2 ;
3121 PyObject * obj0 = 0 ;
3122 PyObject * obj1 = 0 ;
3123 char *kwnames[] = {
3124 (char *) "bitmap",(char *) "colour", NULL
3125 };
3126
3127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3128 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3129 if (arg1 == NULL) {
3130 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3131 }
3132 {
3133 arg2 = &temp2;
3134 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3135 }
3136 {
3137 PyThreadState* __tstate = wxPyBeginAllowThreads();
3138 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3139
3140 wxPyEndAllowThreads(__tstate);
3141 if (PyErr_Occurred()) SWIG_fail;
3142 }
3143 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3144 return resultobj;
3145 fail:
3146 return NULL;
3147 }
3148
3149
3150 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3151 PyObject *obj;
3152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3153 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3154 Py_INCREF(obj);
3155 return Py_BuildValue((char *)"");
3156 }
3157 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3158 PyObject *resultobj;
3159 wxString *arg1 = 0 ;
3160 int arg2 ;
3161 int arg3 = (int) -1 ;
3162 int arg4 = (int) -1 ;
3163 wxIcon *result;
3164 bool temp1 = False ;
3165 PyObject * obj0 = 0 ;
3166 PyObject * obj1 = 0 ;
3167 PyObject * obj2 = 0 ;
3168 PyObject * obj3 = 0 ;
3169 char *kwnames[] = {
3170 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3171 };
3172
3173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3174 {
3175 arg1 = wxString_in_helper(obj0);
3176 if (arg1 == NULL) SWIG_fail;
3177 temp1 = True;
3178 }
3179 {
3180 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 if (obj2) {
3184 {
3185 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3186 if (PyErr_Occurred()) SWIG_fail;
3187 }
3188 }
3189 if (obj3) {
3190 {
3191 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3192 if (PyErr_Occurred()) SWIG_fail;
3193 }
3194 }
3195 {
3196 PyThreadState* __tstate = wxPyBeginAllowThreads();
3197 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3198
3199 wxPyEndAllowThreads(__tstate);
3200 if (PyErr_Occurred()) SWIG_fail;
3201 }
3202 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3203 {
3204 if (temp1)
3205 delete arg1;
3206 }
3207 return resultobj;
3208 fail:
3209 {
3210 if (temp1)
3211 delete arg1;
3212 }
3213 return NULL;
3214 }
3215
3216
3217 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3218 PyObject *resultobj;
3219 wxIcon *arg1 = (wxIcon *) 0 ;
3220 PyObject * obj0 = 0 ;
3221 char *kwnames[] = {
3222 (char *) "self", NULL
3223 };
3224
3225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3227 {
3228 PyThreadState* __tstate = wxPyBeginAllowThreads();
3229 delete arg1;
3230
3231 wxPyEndAllowThreads(__tstate);
3232 if (PyErr_Occurred()) SWIG_fail;
3233 }
3234 Py_INCREF(Py_None); resultobj = Py_None;
3235 return resultobj;
3236 fail:
3237 return NULL;
3238 }
3239
3240
3241 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxIcon *result;
3244 char *kwnames[] = {
3245 NULL
3246 };
3247
3248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3249 {
3250 PyThreadState* __tstate = wxPyBeginAllowThreads();
3251 result = (wxIcon *)new wxIcon();
3252
3253 wxPyEndAllowThreads(__tstate);
3254 if (PyErr_Occurred()) SWIG_fail;
3255 }
3256 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3257 return resultobj;
3258 fail:
3259 return NULL;
3260 }
3261
3262
3263 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3264 PyObject *resultobj;
3265 wxIconLocation *arg1 = 0 ;
3266 wxIcon *result;
3267 PyObject * obj0 = 0 ;
3268 char *kwnames[] = {
3269 (char *) "loc", NULL
3270 };
3271
3272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3274 if (arg1 == NULL) {
3275 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3276 }
3277 {
3278 PyThreadState* __tstate = wxPyBeginAllowThreads();
3279 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3280
3281 wxPyEndAllowThreads(__tstate);
3282 if (PyErr_Occurred()) SWIG_fail;
3283 }
3284 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3285 return resultobj;
3286 fail:
3287 return NULL;
3288 }
3289
3290
3291 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3292 PyObject *resultobj;
3293 wxBitmap *arg1 = 0 ;
3294 wxIcon *result;
3295 PyObject * obj0 = 0 ;
3296 char *kwnames[] = {
3297 (char *) "bmp", NULL
3298 };
3299
3300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3302 if (arg1 == NULL) {
3303 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3304 }
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3313 return resultobj;
3314 fail:
3315 return NULL;
3316 }
3317
3318
3319 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj;
3321 PyObject *arg1 = (PyObject *) 0 ;
3322 wxIcon *result;
3323 PyObject * obj0 = 0 ;
3324 char *kwnames[] = {
3325 (char *) "listOfStrings", NULL
3326 };
3327
3328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3329 arg1 = obj0;
3330 {
3331 PyThreadState* __tstate = wxPyBeginAllowThreads();
3332 result = (wxIcon *)new_wxIcon(arg1);
3333
3334 wxPyEndAllowThreads(__tstate);
3335 if (PyErr_Occurred()) SWIG_fail;
3336 }
3337 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3338 return resultobj;
3339 fail:
3340 return NULL;
3341 }
3342
3343
3344 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3345 PyObject *resultobj;
3346 wxIcon *arg1 = (wxIcon *) 0 ;
3347 bool result;
3348 PyObject * obj0 = 0 ;
3349 char *kwnames[] = {
3350 (char *) "self", NULL
3351 };
3352
3353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3354 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3355 {
3356 PyThreadState* __tstate = wxPyBeginAllowThreads();
3357 result = (bool)(arg1)->Ok();
3358
3359 wxPyEndAllowThreads(__tstate);
3360 if (PyErr_Occurred()) SWIG_fail;
3361 }
3362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3363 return resultobj;
3364 fail:
3365 return NULL;
3366 }
3367
3368
3369 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3370 PyObject *resultobj;
3371 wxIcon *arg1 = (wxIcon *) 0 ;
3372 int result;
3373 PyObject * obj0 = 0 ;
3374 char *kwnames[] = {
3375 (char *) "self", NULL
3376 };
3377
3378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3380 {
3381 PyThreadState* __tstate = wxPyBeginAllowThreads();
3382 result = (int)(arg1)->GetWidth();
3383
3384 wxPyEndAllowThreads(__tstate);
3385 if (PyErr_Occurred()) SWIG_fail;
3386 }
3387 resultobj = SWIG_PyObj_FromInt((int)result);
3388 return resultobj;
3389 fail:
3390 return NULL;
3391 }
3392
3393
3394 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3395 PyObject *resultobj;
3396 wxIcon *arg1 = (wxIcon *) 0 ;
3397 int result;
3398 PyObject * obj0 = 0 ;
3399 char *kwnames[] = {
3400 (char *) "self", NULL
3401 };
3402
3403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3405 {
3406 PyThreadState* __tstate = wxPyBeginAllowThreads();
3407 result = (int)(arg1)->GetHeight();
3408
3409 wxPyEndAllowThreads(__tstate);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 resultobj = SWIG_PyObj_FromInt((int)result);
3413 return resultobj;
3414 fail:
3415 return NULL;
3416 }
3417
3418
3419 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3420 PyObject *resultobj;
3421 wxIcon *arg1 = (wxIcon *) 0 ;
3422 int result;
3423 PyObject * obj0 = 0 ;
3424 char *kwnames[] = {
3425 (char *) "self", NULL
3426 };
3427
3428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3430 {
3431 PyThreadState* __tstate = wxPyBeginAllowThreads();
3432 result = (int)(arg1)->GetDepth();
3433
3434 wxPyEndAllowThreads(__tstate);
3435 if (PyErr_Occurred()) SWIG_fail;
3436 }
3437 resultobj = SWIG_PyObj_FromInt((int)result);
3438 return resultobj;
3439 fail:
3440 return NULL;
3441 }
3442
3443
3444 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3445 PyObject *resultobj;
3446 wxIcon *arg1 = (wxIcon *) 0 ;
3447 int arg2 ;
3448 PyObject * obj0 = 0 ;
3449 PyObject * obj1 = 0 ;
3450 char *kwnames[] = {
3451 (char *) "self",(char *) "w", NULL
3452 };
3453
3454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3456 {
3457 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3458 if (PyErr_Occurred()) SWIG_fail;
3459 }
3460 {
3461 PyThreadState* __tstate = wxPyBeginAllowThreads();
3462 (arg1)->SetWidth(arg2);
3463
3464 wxPyEndAllowThreads(__tstate);
3465 if (PyErr_Occurred()) SWIG_fail;
3466 }
3467 Py_INCREF(Py_None); resultobj = Py_None;
3468 return resultobj;
3469 fail:
3470 return NULL;
3471 }
3472
3473
3474 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3475 PyObject *resultobj;
3476 wxIcon *arg1 = (wxIcon *) 0 ;
3477 int arg2 ;
3478 PyObject * obj0 = 0 ;
3479 PyObject * obj1 = 0 ;
3480 char *kwnames[] = {
3481 (char *) "self",(char *) "h", NULL
3482 };
3483
3484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3485 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3486 {
3487 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3488 if (PyErr_Occurred()) SWIG_fail;
3489 }
3490 {
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 (arg1)->SetHeight(arg2);
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 Py_INCREF(Py_None); resultobj = Py_None;
3498 return resultobj;
3499 fail:
3500 return NULL;
3501 }
3502
3503
3504 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3505 PyObject *resultobj;
3506 wxIcon *arg1 = (wxIcon *) 0 ;
3507 int arg2 ;
3508 PyObject * obj0 = 0 ;
3509 PyObject * obj1 = 0 ;
3510 char *kwnames[] = {
3511 (char *) "self",(char *) "d", NULL
3512 };
3513
3514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3515 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3516 {
3517 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3518 if (PyErr_Occurred()) SWIG_fail;
3519 }
3520 {
3521 PyThreadState* __tstate = wxPyBeginAllowThreads();
3522 (arg1)->SetDepth(arg2);
3523
3524 wxPyEndAllowThreads(__tstate);
3525 if (PyErr_Occurred()) SWIG_fail;
3526 }
3527 Py_INCREF(Py_None); resultobj = Py_None;
3528 return resultobj;
3529 fail:
3530 return NULL;
3531 }
3532
3533
3534 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3535 PyObject *resultobj;
3536 wxIcon *arg1 = (wxIcon *) 0 ;
3537 wxBitmap *arg2 = 0 ;
3538 PyObject * obj0 = 0 ;
3539 PyObject * obj1 = 0 ;
3540 char *kwnames[] = {
3541 (char *) "self",(char *) "bmp", NULL
3542 };
3543
3544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3545 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3546 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3547 if (arg2 == NULL) {
3548 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3549 }
3550 {
3551 PyThreadState* __tstate = wxPyBeginAllowThreads();
3552 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3553
3554 wxPyEndAllowThreads(__tstate);
3555 if (PyErr_Occurred()) SWIG_fail;
3556 }
3557 Py_INCREF(Py_None); resultobj = Py_None;
3558 return resultobj;
3559 fail:
3560 return NULL;
3561 }
3562
3563
3564 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3565 PyObject *obj;
3566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3567 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3568 Py_INCREF(obj);
3569 return Py_BuildValue((char *)"");
3570 }
3571 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3572 PyObject *resultobj;
3573 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3574 int arg2 = (int) 0 ;
3575 wxIconLocation *result;
3576 bool temp1 = False ;
3577 PyObject * obj0 = 0 ;
3578 PyObject * obj1 = 0 ;
3579 char *kwnames[] = {
3580 (char *) "filename",(char *) "num", NULL
3581 };
3582
3583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3584 if (obj0) {
3585 {
3586 arg1 = wxString_in_helper(obj0);
3587 if (arg1 == NULL) SWIG_fail;
3588 temp1 = True;
3589 }
3590 }
3591 if (obj1) {
3592 {
3593 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3594 if (PyErr_Occurred()) SWIG_fail;
3595 }
3596 }
3597 {
3598 PyThreadState* __tstate = wxPyBeginAllowThreads();
3599 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3600
3601 wxPyEndAllowThreads(__tstate);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3605 {
3606 if (temp1)
3607 delete arg1;
3608 }
3609 return resultobj;
3610 fail:
3611 {
3612 if (temp1)
3613 delete arg1;
3614 }
3615 return NULL;
3616 }
3617
3618
3619 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3620 PyObject *resultobj;
3621 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3622 PyObject * obj0 = 0 ;
3623 char *kwnames[] = {
3624 (char *) "self", NULL
3625 };
3626
3627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3629 {
3630 PyThreadState* __tstate = wxPyBeginAllowThreads();
3631 delete arg1;
3632
3633 wxPyEndAllowThreads(__tstate);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 }
3636 Py_INCREF(Py_None); resultobj = Py_None;
3637 return resultobj;
3638 fail:
3639 return NULL;
3640 }
3641
3642
3643 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3644 PyObject *resultobj;
3645 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3646 bool result;
3647 PyObject * obj0 = 0 ;
3648 char *kwnames[] = {
3649 (char *) "self", NULL
3650 };
3651
3652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3654 {
3655 PyThreadState* __tstate = wxPyBeginAllowThreads();
3656 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3657
3658 wxPyEndAllowThreads(__tstate);
3659 if (PyErr_Occurred()) SWIG_fail;
3660 }
3661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3662 return resultobj;
3663 fail:
3664 return NULL;
3665 }
3666
3667
3668 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3669 PyObject *resultobj;
3670 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3671 wxString *arg2 = 0 ;
3672 bool temp2 = False ;
3673 PyObject * obj0 = 0 ;
3674 PyObject * obj1 = 0 ;
3675 char *kwnames[] = {
3676 (char *) "self",(char *) "filename", NULL
3677 };
3678
3679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3680 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3681 {
3682 arg2 = wxString_in_helper(obj1);
3683 if (arg2 == NULL) SWIG_fail;
3684 temp2 = True;
3685 }
3686 {
3687 PyThreadState* __tstate = wxPyBeginAllowThreads();
3688 (arg1)->SetFileName((wxString const &)*arg2);
3689
3690 wxPyEndAllowThreads(__tstate);
3691 if (PyErr_Occurred()) SWIG_fail;
3692 }
3693 Py_INCREF(Py_None); resultobj = Py_None;
3694 {
3695 if (temp2)
3696 delete arg2;
3697 }
3698 return resultobj;
3699 fail:
3700 {
3701 if (temp2)
3702 delete arg2;
3703 }
3704 return NULL;
3705 }
3706
3707
3708 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3709 PyObject *resultobj;
3710 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3711 wxString *result;
3712 PyObject * obj0 = 0 ;
3713 char *kwnames[] = {
3714 (char *) "self", NULL
3715 };
3716
3717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3718 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3719 {
3720 PyThreadState* __tstate = wxPyBeginAllowThreads();
3721 {
3722 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3723 result = (wxString *) &_result_ref;
3724 }
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 {
3730 #if wxUSE_UNICODE
3731 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3732 #else
3733 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3734 #endif
3735 }
3736 return resultobj;
3737 fail:
3738 return NULL;
3739 }
3740
3741
3742 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3743 PyObject *resultobj;
3744 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3745 int arg2 ;
3746 PyObject * obj0 = 0 ;
3747 PyObject * obj1 = 0 ;
3748 char *kwnames[] = {
3749 (char *) "self",(char *) "num", NULL
3750 };
3751
3752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
3753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3754 {
3755 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3756 if (PyErr_Occurred()) SWIG_fail;
3757 }
3758 {
3759 PyThreadState* __tstate = wxPyBeginAllowThreads();
3760 wxIconLocation_SetIndex(arg1,arg2);
3761
3762 wxPyEndAllowThreads(__tstate);
3763 if (PyErr_Occurred()) SWIG_fail;
3764 }
3765 Py_INCREF(Py_None); resultobj = Py_None;
3766 return resultobj;
3767 fail:
3768 return NULL;
3769 }
3770
3771
3772 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3773 PyObject *resultobj;
3774 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3775 int result;
3776 PyObject * obj0 = 0 ;
3777 char *kwnames[] = {
3778 (char *) "self", NULL
3779 };
3780
3781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3782 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (int)wxIconLocation_GetIndex(arg1);
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = SWIG_PyObj_FromInt((int)result);
3791 return resultobj;
3792 fail:
3793 return NULL;
3794 }
3795
3796
3797 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3798 PyObject *obj;
3799 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3800 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3801 Py_INCREF(obj);
3802 return Py_BuildValue((char *)"");
3803 }
3804 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3805 PyObject *resultobj;
3806 wxIconBundle *result;
3807 char *kwnames[] = {
3808 NULL
3809 };
3810
3811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3812 {
3813 PyThreadState* __tstate = wxPyBeginAllowThreads();
3814 result = (wxIconBundle *)new wxIconBundle();
3815
3816 wxPyEndAllowThreads(__tstate);
3817 if (PyErr_Occurred()) SWIG_fail;
3818 }
3819 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3820 return resultobj;
3821 fail:
3822 return NULL;
3823 }
3824
3825
3826 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3827 PyObject *resultobj;
3828 wxString *arg1 = 0 ;
3829 long arg2 ;
3830 wxIconBundle *result;
3831 bool temp1 = False ;
3832 PyObject * obj0 = 0 ;
3833 PyObject * obj1 = 0 ;
3834 char *kwnames[] = {
3835 (char *) "file",(char *) "type", NULL
3836 };
3837
3838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
3839 {
3840 arg1 = wxString_in_helper(obj0);
3841 if (arg1 == NULL) SWIG_fail;
3842 temp1 = True;
3843 }
3844 {
3845 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3846 if (PyErr_Occurred()) SWIG_fail;
3847 }
3848 {
3849 PyThreadState* __tstate = wxPyBeginAllowThreads();
3850 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3851
3852 wxPyEndAllowThreads(__tstate);
3853 if (PyErr_Occurred()) SWIG_fail;
3854 }
3855 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3856 {
3857 if (temp1)
3858 delete arg1;
3859 }
3860 return resultobj;
3861 fail:
3862 {
3863 if (temp1)
3864 delete arg1;
3865 }
3866 return NULL;
3867 }
3868
3869
3870 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3871 PyObject *resultobj;
3872 wxIcon *arg1 = 0 ;
3873 wxIconBundle *result;
3874 PyObject * obj0 = 0 ;
3875 char *kwnames[] = {
3876 (char *) "icon", NULL
3877 };
3878
3879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3880 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3881 if (arg1 == NULL) {
3882 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3883 }
3884 {
3885 PyThreadState* __tstate = wxPyBeginAllowThreads();
3886 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3887
3888 wxPyEndAllowThreads(__tstate);
3889 if (PyErr_Occurred()) SWIG_fail;
3890 }
3891 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3892 return resultobj;
3893 fail:
3894 return NULL;
3895 }
3896
3897
3898 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3899 PyObject *resultobj;
3900 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3901 PyObject * obj0 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "self", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3908 {
3909 PyThreadState* __tstate = wxPyBeginAllowThreads();
3910 delete arg1;
3911
3912 wxPyEndAllowThreads(__tstate);
3913 if (PyErr_Occurred()) SWIG_fail;
3914 }
3915 Py_INCREF(Py_None); resultobj = Py_None;
3916 return resultobj;
3917 fail:
3918 return NULL;
3919 }
3920
3921
3922 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3923 PyObject *resultobj;
3924 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3925 wxIcon *arg2 = 0 ;
3926 PyObject * obj0 = 0 ;
3927 PyObject * obj1 = 0 ;
3928 char *kwnames[] = {
3929 (char *) "self",(char *) "icon", NULL
3930 };
3931
3932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3934 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3935 if (arg2 == NULL) {
3936 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3937 }
3938 {
3939 PyThreadState* __tstate = wxPyBeginAllowThreads();
3940 (arg1)->AddIcon((wxIcon const &)*arg2);
3941
3942 wxPyEndAllowThreads(__tstate);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 Py_INCREF(Py_None); resultobj = Py_None;
3946 return resultobj;
3947 fail:
3948 return NULL;
3949 }
3950
3951
3952 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3953 PyObject *resultobj;
3954 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3955 wxString *arg2 = 0 ;
3956 long arg3 ;
3957 bool temp2 = False ;
3958 PyObject * obj0 = 0 ;
3959 PyObject * obj1 = 0 ;
3960 PyObject * obj2 = 0 ;
3961 char *kwnames[] = {
3962 (char *) "self",(char *) "file",(char *) "type", NULL
3963 };
3964
3965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3966 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3967 {
3968 arg2 = wxString_in_helper(obj1);
3969 if (arg2 == NULL) SWIG_fail;
3970 temp2 = True;
3971 }
3972 {
3973 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 {
3977 PyThreadState* __tstate = wxPyBeginAllowThreads();
3978 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3979
3980 wxPyEndAllowThreads(__tstate);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
3983 Py_INCREF(Py_None); resultobj = Py_None;
3984 {
3985 if (temp2)
3986 delete arg2;
3987 }
3988 return resultobj;
3989 fail:
3990 {
3991 if (temp2)
3992 delete arg2;
3993 }
3994 return NULL;
3995 }
3996
3997
3998 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3999 PyObject *resultobj;
4000 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4001 wxSize *arg2 = 0 ;
4002 wxIcon *result;
4003 wxSize temp2 ;
4004 PyObject * obj0 = 0 ;
4005 PyObject * obj1 = 0 ;
4006 char *kwnames[] = {
4007 (char *) "self",(char *) "size", NULL
4008 };
4009
4010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4012 {
4013 arg2 = &temp2;
4014 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4015 }
4016 {
4017 PyThreadState* __tstate = wxPyBeginAllowThreads();
4018 {
4019 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4020 result = (wxIcon *) &_result_ref;
4021 }
4022
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4027 return resultobj;
4028 fail:
4029 return NULL;
4030 }
4031
4032
4033 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4034 PyObject *obj;
4035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4036 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4037 Py_INCREF(obj);
4038 return Py_BuildValue((char *)"");
4039 }
4040 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj;
4042 wxString *arg1 = (wxString *) 0 ;
4043 long arg2 ;
4044 int arg3 = (int) 0 ;
4045 int arg4 = (int) 0 ;
4046 wxCursor *result;
4047 bool temp1 = False ;
4048 PyObject * obj0 = 0 ;
4049 PyObject * obj1 = 0 ;
4050 PyObject * obj2 = 0 ;
4051 PyObject * obj3 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4057 {
4058 arg1 = wxString_in_helper(obj0);
4059 if (arg1 == NULL) SWIG_fail;
4060 temp1 = True;
4061 }
4062 {
4063 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 if (obj2) {
4067 {
4068 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 }
4072 if (obj3) {
4073 {
4074 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4075 if (PyErr_Occurred()) SWIG_fail;
4076 }
4077 }
4078 {
4079 PyThreadState* __tstate = wxPyBeginAllowThreads();
4080 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4081
4082 wxPyEndAllowThreads(__tstate);
4083 if (PyErr_Occurred()) SWIG_fail;
4084 }
4085 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4086 {
4087 if (temp1)
4088 delete arg1;
4089 }
4090 return resultobj;
4091 fail:
4092 {
4093 if (temp1)
4094 delete arg1;
4095 }
4096 return NULL;
4097 }
4098
4099
4100 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj;
4102 wxCursor *arg1 = (wxCursor *) 0 ;
4103 PyObject * obj0 = 0 ;
4104 char *kwnames[] = {
4105 (char *) "self", NULL
4106 };
4107
4108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4110 {
4111 PyThreadState* __tstate = wxPyBeginAllowThreads();
4112 delete arg1;
4113
4114 wxPyEndAllowThreads(__tstate);
4115 if (PyErr_Occurred()) SWIG_fail;
4116 }
4117 Py_INCREF(Py_None); resultobj = Py_None;
4118 return resultobj;
4119 fail:
4120 return NULL;
4121 }
4122
4123
4124 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4125 PyObject *resultobj;
4126 int arg1 ;
4127 wxCursor *result;
4128 PyObject * obj0 = 0 ;
4129 char *kwnames[] = {
4130 (char *) "id", NULL
4131 };
4132
4133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4134 {
4135 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4136 if (PyErr_Occurred()) SWIG_fail;
4137 }
4138 {
4139 PyThreadState* __tstate = wxPyBeginAllowThreads();
4140 result = (wxCursor *)new wxCursor(arg1);
4141
4142 wxPyEndAllowThreads(__tstate);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 }
4145 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4146 return resultobj;
4147 fail:
4148 return NULL;
4149 }
4150
4151
4152 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4153 PyObject *resultobj;
4154 wxImage *arg1 = 0 ;
4155 wxCursor *result;
4156 PyObject * obj0 = 0 ;
4157 char *kwnames[] = {
4158 (char *) "image", NULL
4159 };
4160
4161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4162 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4163 if (arg1 == NULL) {
4164 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4165 }
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4169
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
4180 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj;
4182 PyObject *arg1 = (PyObject *) 0 ;
4183 int arg2 ;
4184 int arg3 ;
4185 int arg4 = (int) -1 ;
4186 int arg5 = (int) -1 ;
4187 PyObject *arg6 = (PyObject *) 0 ;
4188 wxCursor *result;
4189 PyObject * obj0 = 0 ;
4190 PyObject * obj1 = 0 ;
4191 PyObject * obj2 = 0 ;
4192 PyObject * obj3 = 0 ;
4193 PyObject * obj4 = 0 ;
4194 PyObject * obj5 = 0 ;
4195 char *kwnames[] = {
4196 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4197 };
4198
4199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4200 arg1 = obj0;
4201 {
4202 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4203 if (PyErr_Occurred()) SWIG_fail;
4204 }
4205 {
4206 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 if (obj3) {
4210 {
4211 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 }
4215 if (obj4) {
4216 {
4217 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4218 if (PyErr_Occurred()) SWIG_fail;
4219 }
4220 }
4221 if (obj5) {
4222 arg6 = obj5;
4223 }
4224 {
4225 PyThreadState* __tstate = wxPyBeginAllowThreads();
4226 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4227
4228 wxPyEndAllowThreads(__tstate);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 }
4231 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4232 return resultobj;
4233 fail:
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxCursor *arg1 = (wxCursor *) 0 ;
4241 bool result;
4242 PyObject * obj0 = 0 ;
4243 char *kwnames[] = {
4244 (char *) "self", NULL
4245 };
4246
4247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4249 {
4250 PyThreadState* __tstate = wxPyBeginAllowThreads();
4251 result = (bool)(arg1)->Ok();
4252
4253 wxPyEndAllowThreads(__tstate);
4254 if (PyErr_Occurred()) SWIG_fail;
4255 }
4256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4257 return resultobj;
4258 fail:
4259 return NULL;
4260 }
4261
4262
4263 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4264 PyObject *obj;
4265 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4266 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4267 Py_INCREF(obj);
4268 return Py_BuildValue((char *)"");
4269 }
4270 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4271 PyObject *resultobj;
4272 int arg1 = (int) 0 ;
4273 int arg2 = (int) 0 ;
4274 int arg3 = (int) 0 ;
4275 int arg4 = (int) 0 ;
4276 wxRegion *result;
4277 PyObject * obj0 = 0 ;
4278 PyObject * obj1 = 0 ;
4279 PyObject * obj2 = 0 ;
4280 PyObject * obj3 = 0 ;
4281 char *kwnames[] = {
4282 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4283 };
4284
4285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4286 if (obj0) {
4287 {
4288 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 }
4292 if (obj1) {
4293 {
4294 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 }
4298 if (obj2) {
4299 {
4300 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4301 if (PyErr_Occurred()) SWIG_fail;
4302 }
4303 }
4304 if (obj3) {
4305 {
4306 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4307 if (PyErr_Occurred()) SWIG_fail;
4308 }
4309 }
4310 {
4311 PyThreadState* __tstate = wxPyBeginAllowThreads();
4312 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4313
4314 wxPyEndAllowThreads(__tstate);
4315 if (PyErr_Occurred()) SWIG_fail;
4316 }
4317 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4318 return resultobj;
4319 fail:
4320 return NULL;
4321 }
4322
4323
4324 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4325 PyObject *resultobj;
4326 wxBitmap *arg1 = 0 ;
4327 wxColour const &arg2_defvalue = wxNullColour ;
4328 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4329 int arg3 = (int) 0 ;
4330 wxRegion *result;
4331 wxColour temp2 ;
4332 PyObject * obj0 = 0 ;
4333 PyObject * obj1 = 0 ;
4334 PyObject * obj2 = 0 ;
4335 char *kwnames[] = {
4336 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4337 };
4338
4339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4340 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4341 if (arg1 == NULL) {
4342 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4343 }
4344 if (obj1) {
4345 {
4346 arg2 = &temp2;
4347 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4348 }
4349 }
4350 if (obj2) {
4351 {
4352 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4353 if (PyErr_Occurred()) SWIG_fail;
4354 }
4355 }
4356 {
4357 PyThreadState* __tstate = wxPyBeginAllowThreads();
4358 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4359
4360 wxPyEndAllowThreads(__tstate);
4361 if (PyErr_Occurred()) SWIG_fail;
4362 }
4363 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4364 return resultobj;
4365 fail:
4366 return NULL;
4367 }
4368
4369
4370 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4371 PyObject *resultobj;
4372 int arg1 ;
4373 wxPoint *arg2 = (wxPoint *) 0 ;
4374 int arg3 = (int) wxWINDING_RULE ;
4375 wxRegion *result;
4376 PyObject * obj0 = 0 ;
4377 PyObject * obj1 = 0 ;
4378 char *kwnames[] = {
4379 (char *) "points",(char *) "fillStyle", NULL
4380 };
4381
4382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4383 {
4384 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4385 if (arg2 == NULL) SWIG_fail;
4386 }
4387 if (obj1) {
4388 {
4389 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4390 if (PyErr_Occurred()) SWIG_fail;
4391 }
4392 }
4393 {
4394 PyThreadState* __tstate = wxPyBeginAllowThreads();
4395 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4396
4397 wxPyEndAllowThreads(__tstate);
4398 if (PyErr_Occurred()) SWIG_fail;
4399 }
4400 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4401 {
4402 if (arg2) delete [] arg2;
4403 }
4404 return resultobj;
4405 fail:
4406 {
4407 if (arg2) delete [] arg2;
4408 }
4409 return NULL;
4410 }
4411
4412
4413 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4414 PyObject *resultobj;
4415 wxRegion *arg1 = (wxRegion *) 0 ;
4416 PyObject * obj0 = 0 ;
4417 char *kwnames[] = {
4418 (char *) "self", NULL
4419 };
4420
4421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4422 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4423 {
4424 PyThreadState* __tstate = wxPyBeginAllowThreads();
4425 delete arg1;
4426
4427 wxPyEndAllowThreads(__tstate);
4428 if (PyErr_Occurred()) SWIG_fail;
4429 }
4430 Py_INCREF(Py_None); resultobj = Py_None;
4431 return resultobj;
4432 fail:
4433 return NULL;
4434 }
4435
4436
4437 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4438 PyObject *resultobj;
4439 wxRegion *arg1 = (wxRegion *) 0 ;
4440 PyObject * obj0 = 0 ;
4441 char *kwnames[] = {
4442 (char *) "self", NULL
4443 };
4444
4445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4446 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4447 {
4448 PyThreadState* __tstate = wxPyBeginAllowThreads();
4449 (arg1)->Clear();
4450
4451 wxPyEndAllowThreads(__tstate);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 Py_INCREF(Py_None); resultobj = Py_None;
4455 return resultobj;
4456 fail:
4457 return NULL;
4458 }
4459
4460
4461 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4462 PyObject *resultobj;
4463 wxRegion *arg1 = (wxRegion *) 0 ;
4464 int arg2 ;
4465 int arg3 ;
4466 int result;
4467 PyObject * obj0 = 0 ;
4468 PyObject * obj1 = 0 ;
4469 PyObject * obj2 = 0 ;
4470 char *kwnames[] = {
4471 (char *) "self",(char *) "x",(char *) "y", NULL
4472 };
4473
4474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4476 {
4477 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4478 if (PyErr_Occurred()) SWIG_fail;
4479 }
4480 {
4481 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4482 if (PyErr_Occurred()) SWIG_fail;
4483 }
4484 {
4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
4486 result = (int)(arg1)->Contains(arg2,arg3);
4487
4488 wxPyEndAllowThreads(__tstate);
4489 if (PyErr_Occurred()) SWIG_fail;
4490 }
4491 resultobj = SWIG_PyObj_FromInt((int)result);
4492 return resultobj;
4493 fail:
4494 return NULL;
4495 }
4496
4497
4498 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4499 PyObject *resultobj;
4500 wxRegion *arg1 = (wxRegion *) 0 ;
4501 wxPoint *arg2 = 0 ;
4502 int result;
4503 wxPoint temp2 ;
4504 PyObject * obj0 = 0 ;
4505 PyObject * obj1 = 0 ;
4506 char *kwnames[] = {
4507 (char *) "self",(char *) "pt", NULL
4508 };
4509
4510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4511 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4512 {
4513 arg2 = &temp2;
4514 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4515 }
4516 {
4517 PyThreadState* __tstate = wxPyBeginAllowThreads();
4518 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4519
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 resultobj = SWIG_PyObj_FromInt((int)result);
4524 return resultobj;
4525 fail:
4526 return NULL;
4527 }
4528
4529
4530 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj;
4532 wxRegion *arg1 = (wxRegion *) 0 ;
4533 wxRect *arg2 = 0 ;
4534 int result;
4535 wxRect temp2 ;
4536 PyObject * obj0 = 0 ;
4537 PyObject * obj1 = 0 ;
4538 char *kwnames[] = {
4539 (char *) "self",(char *) "rect", NULL
4540 };
4541
4542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4543 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4544 {
4545 arg2 = &temp2;
4546 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4547 }
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4551
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 resultobj = SWIG_PyObj_FromInt((int)result);
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj;
4564 wxRegion *arg1 = (wxRegion *) 0 ;
4565 int arg2 ;
4566 int arg3 ;
4567 int arg4 ;
4568 int arg5 ;
4569 int result;
4570 PyObject * obj0 = 0 ;
4571 PyObject * obj1 = 0 ;
4572 PyObject * obj2 = 0 ;
4573 PyObject * obj3 = 0 ;
4574 PyObject * obj4 = 0 ;
4575 char *kwnames[] = {
4576 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4577 };
4578
4579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4581 {
4582 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 {
4586 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 {
4590 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 {
4594 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4600
4601 wxPyEndAllowThreads(__tstate);
4602 if (PyErr_Occurred()) SWIG_fail;
4603 }
4604 resultobj = SWIG_PyObj_FromInt((int)result);
4605 return resultobj;
4606 fail:
4607 return NULL;
4608 }
4609
4610
4611 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4612 PyObject *resultobj;
4613 wxRegion *arg1 = (wxRegion *) 0 ;
4614 wxRect result;
4615 PyObject * obj0 = 0 ;
4616 char *kwnames[] = {
4617 (char *) "self", NULL
4618 };
4619
4620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4622 {
4623 PyThreadState* __tstate = wxPyBeginAllowThreads();
4624 result = (arg1)->GetBox();
4625
4626 wxPyEndAllowThreads(__tstate);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 {
4630 wxRect * resultptr;
4631 resultptr = new wxRect((wxRect &) result);
4632 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4633 }
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4641 PyObject *resultobj;
4642 wxRegion *arg1 = (wxRegion *) 0 ;
4643 int arg2 ;
4644 int arg3 ;
4645 int arg4 ;
4646 int arg5 ;
4647 bool result;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 PyObject * obj2 = 0 ;
4651 PyObject * obj3 = 0 ;
4652 PyObject * obj4 = 0 ;
4653 char *kwnames[] = {
4654 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4655 };
4656
4657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4658 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4659 {
4660 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4661 if (PyErr_Occurred()) SWIG_fail;
4662 }
4663 {
4664 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 {
4668 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 {
4672 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 }
4675 {
4676 PyThreadState* __tstate = wxPyBeginAllowThreads();
4677 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4678
4679 wxPyEndAllowThreads(__tstate);
4680 if (PyErr_Occurred()) SWIG_fail;
4681 }
4682 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4683 return resultobj;
4684 fail:
4685 return NULL;
4686 }
4687
4688
4689 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4690 PyObject *resultobj;
4691 wxRegion *arg1 = (wxRegion *) 0 ;
4692 wxRect *arg2 = 0 ;
4693 bool result;
4694 wxRect temp2 ;
4695 PyObject * obj0 = 0 ;
4696 PyObject * obj1 = 0 ;
4697 char *kwnames[] = {
4698 (char *) "self",(char *) "rect", NULL
4699 };
4700
4701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4702 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4703 {
4704 arg2 = &temp2;
4705 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4706 }
4707 {
4708 PyThreadState* __tstate = wxPyBeginAllowThreads();
4709 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4710
4711 wxPyEndAllowThreads(__tstate);
4712 if (PyErr_Occurred()) SWIG_fail;
4713 }
4714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4715 return resultobj;
4716 fail:
4717 return NULL;
4718 }
4719
4720
4721 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4722 PyObject *resultobj;
4723 wxRegion *arg1 = (wxRegion *) 0 ;
4724 wxRegion *arg2 = 0 ;
4725 bool result;
4726 PyObject * obj0 = 0 ;
4727 PyObject * obj1 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "self",(char *) "region", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4734 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4735 if (arg2 == NULL) {
4736 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4737 }
4738 {
4739 PyThreadState* __tstate = wxPyBeginAllowThreads();
4740 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4741
4742 wxPyEndAllowThreads(__tstate);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4746 return resultobj;
4747 fail:
4748 return NULL;
4749 }
4750
4751
4752 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4753 PyObject *resultobj;
4754 wxRegion *arg1 = (wxRegion *) 0 ;
4755 bool result;
4756 PyObject * obj0 = 0 ;
4757 char *kwnames[] = {
4758 (char *) "self", NULL
4759 };
4760
4761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4763 {
4764 PyThreadState* __tstate = wxPyBeginAllowThreads();
4765 result = (bool)(arg1)->IsEmpty();
4766
4767 wxPyEndAllowThreads(__tstate);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4771 return resultobj;
4772 fail:
4773 return NULL;
4774 }
4775
4776
4777 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4778 PyObject *resultobj;
4779 wxRegion *arg1 = (wxRegion *) 0 ;
4780 int arg2 ;
4781 int arg3 ;
4782 int arg4 ;
4783 int arg5 ;
4784 bool result;
4785 PyObject * obj0 = 0 ;
4786 PyObject * obj1 = 0 ;
4787 PyObject * obj2 = 0 ;
4788 PyObject * obj3 = 0 ;
4789 PyObject * obj4 = 0 ;
4790 char *kwnames[] = {
4791 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4792 };
4793
4794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4796 {
4797 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4798 if (PyErr_Occurred()) SWIG_fail;
4799 }
4800 {
4801 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 {
4805 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4806 if (PyErr_Occurred()) SWIG_fail;
4807 }
4808 {
4809 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4810 if (PyErr_Occurred()) SWIG_fail;
4811 }
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4820 return resultobj;
4821 fail:
4822 return NULL;
4823 }
4824
4825
4826 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4827 PyObject *resultobj;
4828 wxRegion *arg1 = (wxRegion *) 0 ;
4829 wxRect *arg2 = 0 ;
4830 bool result;
4831 wxRect temp2 ;
4832 PyObject * obj0 = 0 ;
4833 PyObject * obj1 = 0 ;
4834 char *kwnames[] = {
4835 (char *) "self",(char *) "rect", NULL
4836 };
4837
4838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4839 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4840 {
4841 arg2 = &temp2;
4842 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4843 }
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4847
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4852 return resultobj;
4853 fail:
4854 return NULL;
4855 }
4856
4857
4858 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj;
4860 wxRegion *arg1 = (wxRegion *) 0 ;
4861 wxRegion *arg2 = 0 ;
4862 bool result;
4863 PyObject * obj0 = 0 ;
4864 PyObject * obj1 = 0 ;
4865 char *kwnames[] = {
4866 (char *) "self",(char *) "region", NULL
4867 };
4868
4869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4870 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4871 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4872 if (arg2 == NULL) {
4873 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4874 }
4875 {
4876 PyThreadState* __tstate = wxPyBeginAllowThreads();
4877 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4878
4879 wxPyEndAllowThreads(__tstate);
4880 if (PyErr_Occurred()) SWIG_fail;
4881 }
4882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4883 return resultobj;
4884 fail:
4885 return NULL;
4886 }
4887
4888
4889 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4890 PyObject *resultobj;
4891 wxRegion *arg1 = (wxRegion *) 0 ;
4892 int arg2 ;
4893 int arg3 ;
4894 int arg4 ;
4895 int arg5 ;
4896 bool result;
4897 PyObject * obj0 = 0 ;
4898 PyObject * obj1 = 0 ;
4899 PyObject * obj2 = 0 ;
4900 PyObject * obj3 = 0 ;
4901 PyObject * obj4 = 0 ;
4902 char *kwnames[] = {
4903 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4904 };
4905
4906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4907 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4908 {
4909 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4910 if (PyErr_Occurred()) SWIG_fail;
4911 }
4912 {
4913 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4914 if (PyErr_Occurred()) SWIG_fail;
4915 }
4916 {
4917 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4918 if (PyErr_Occurred()) SWIG_fail;
4919 }
4920 {
4921 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4922 if (PyErr_Occurred()) SWIG_fail;
4923 }
4924 {
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4927
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4932 return resultobj;
4933 fail:
4934 return NULL;
4935 }
4936
4937
4938 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4939 PyObject *resultobj;
4940 wxRegion *arg1 = (wxRegion *) 0 ;
4941 wxRect *arg2 = 0 ;
4942 bool result;
4943 wxRect temp2 ;
4944 PyObject * obj0 = 0 ;
4945 PyObject * obj1 = 0 ;
4946 char *kwnames[] = {
4947 (char *) "self",(char *) "rect", NULL
4948 };
4949
4950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4952 {
4953 arg2 = &temp2;
4954 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4955 }
4956 {
4957 PyThreadState* __tstate = wxPyBeginAllowThreads();
4958 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4959
4960 wxPyEndAllowThreads(__tstate);
4961 if (PyErr_Occurred()) SWIG_fail;
4962 }
4963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4964 return resultobj;
4965 fail:
4966 return NULL;
4967 }
4968
4969
4970 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4971 PyObject *resultobj;
4972 wxRegion *arg1 = (wxRegion *) 0 ;
4973 wxRegion *arg2 = 0 ;
4974 bool result;
4975 PyObject * obj0 = 0 ;
4976 PyObject * obj1 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self",(char *) "region", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4983 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4984 if (arg2 == NULL) {
4985 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4986 }
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj;
5003 wxRegion *arg1 = (wxRegion *) 0 ;
5004 int arg2 ;
5005 int arg3 ;
5006 int arg4 ;
5007 int arg5 ;
5008 bool result;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 PyObject * obj2 = 0 ;
5012 PyObject * obj3 = 0 ;
5013 PyObject * obj4 = 0 ;
5014 char *kwnames[] = {
5015 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5016 };
5017
5018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5019 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5020 {
5021 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5022 if (PyErr_Occurred()) SWIG_fail;
5023 }
5024 {
5025 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 {
5029 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 {
5033 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5034 if (PyErr_Occurred()) SWIG_fail;
5035 }
5036 {
5037 PyThreadState* __tstate = wxPyBeginAllowThreads();
5038 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5039
5040 wxPyEndAllowThreads(__tstate);
5041 if (PyErr_Occurred()) SWIG_fail;
5042 }
5043 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5044 return resultobj;
5045 fail:
5046 return NULL;
5047 }
5048
5049
5050 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5051 PyObject *resultobj;
5052 wxRegion *arg1 = (wxRegion *) 0 ;
5053 wxRect *arg2 = 0 ;
5054 bool result;
5055 wxRect temp2 ;
5056 PyObject * obj0 = 0 ;
5057 PyObject * obj1 = 0 ;
5058 char *kwnames[] = {
5059 (char *) "self",(char *) "rect", NULL
5060 };
5061
5062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5064 {
5065 arg2 = &temp2;
5066 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5067 }
5068 {
5069 PyThreadState* __tstate = wxPyBeginAllowThreads();
5070 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5071
5072 wxPyEndAllowThreads(__tstate);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
5075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5083 PyObject *resultobj;
5084 wxRegion *arg1 = (wxRegion *) 0 ;
5085 wxRegion *arg2 = 0 ;
5086 bool result;
5087 PyObject * obj0 = 0 ;
5088 PyObject * obj1 = 0 ;
5089 char *kwnames[] = {
5090 (char *) "self",(char *) "region", NULL
5091 };
5092
5093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5095 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5096 if (arg2 == NULL) {
5097 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5098 }
5099 {
5100 PyThreadState* __tstate = wxPyBeginAllowThreads();
5101 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5102
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj;
5115 wxRegion *arg1 = (wxRegion *) 0 ;
5116 SwigValueWrapper< wxBitmap > result;
5117 PyObject * obj0 = 0 ;
5118 char *kwnames[] = {
5119 (char *) "self", NULL
5120 };
5121
5122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 result = (arg1)->ConvertToBitmap();
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 {
5132 wxBitmap * resultptr;
5133 resultptr = new wxBitmap((wxBitmap &) result);
5134 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5135 }
5136 return resultobj;
5137 fail:
5138 return NULL;
5139 }
5140
5141
5142 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5143 PyObject *resultobj;
5144 wxRegion *arg1 = (wxRegion *) 0 ;
5145 wxBitmap *arg2 = 0 ;
5146 wxColour const &arg3_defvalue = wxNullColour ;
5147 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5148 int arg4 = (int) 0 ;
5149 bool result;
5150 wxColour temp3 ;
5151 PyObject * obj0 = 0 ;
5152 PyObject * obj1 = 0 ;
5153 PyObject * obj2 = 0 ;
5154 PyObject * obj3 = 0 ;
5155 char *kwnames[] = {
5156 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5157 };
5158
5159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5161 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5162 if (arg2 == NULL) {
5163 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5164 }
5165 if (obj2) {
5166 {
5167 arg3 = &temp3;
5168 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5169 }
5170 }
5171 if (obj3) {
5172 {
5173 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5174 if (PyErr_Occurred()) SWIG_fail;
5175 }
5176 }
5177 {
5178 PyThreadState* __tstate = wxPyBeginAllowThreads();
5179 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5180
5181 wxPyEndAllowThreads(__tstate);
5182 if (PyErr_Occurred()) SWIG_fail;
5183 }
5184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5185 return resultobj;
5186 fail:
5187 return NULL;
5188 }
5189
5190
5191 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5192 PyObject *obj;
5193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5194 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5195 Py_INCREF(obj);
5196 return Py_BuildValue((char *)"");
5197 }
5198 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5199 PyObject *resultobj;
5200 wxRegion *arg1 = 0 ;
5201 wxRegionIterator *result;
5202 PyObject * obj0 = 0 ;
5203 char *kwnames[] = {
5204 (char *) "region", NULL
5205 };
5206
5207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5208 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5209 if (arg1 == NULL) {
5210 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5211 }
5212 {
5213 PyThreadState* __tstate = wxPyBeginAllowThreads();
5214 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5215
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5220 return resultobj;
5221 fail:
5222 return NULL;
5223 }
5224
5225
5226 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5227 PyObject *resultobj;
5228 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5229 PyObject * obj0 = 0 ;
5230 char *kwnames[] = {
5231 (char *) "self", NULL
5232 };
5233
5234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5236 {
5237 PyThreadState* __tstate = wxPyBeginAllowThreads();
5238 delete arg1;
5239
5240 wxPyEndAllowThreads(__tstate);
5241 if (PyErr_Occurred()) SWIG_fail;
5242 }
5243 Py_INCREF(Py_None); resultobj = Py_None;
5244 return resultobj;
5245 fail:
5246 return NULL;
5247 }
5248
5249
5250 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5251 PyObject *resultobj;
5252 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5253 int result;
5254 PyObject * obj0 = 0 ;
5255 char *kwnames[] = {
5256 (char *) "self", NULL
5257 };
5258
5259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5261 {
5262 PyThreadState* __tstate = wxPyBeginAllowThreads();
5263 result = (int)(arg1)->GetX();
5264
5265 wxPyEndAllowThreads(__tstate);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 resultobj = SWIG_PyObj_FromInt((int)result);
5269 return resultobj;
5270 fail:
5271 return NULL;
5272 }
5273
5274
5275 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5276 PyObject *resultobj;
5277 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5278 int result;
5279 PyObject * obj0 = 0 ;
5280 char *kwnames[] = {
5281 (char *) "self", NULL
5282 };
5283
5284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5286 {
5287 PyThreadState* __tstate = wxPyBeginAllowThreads();
5288 result = (int)(arg1)->GetY();
5289
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 }
5293 resultobj = SWIG_PyObj_FromInt((int)result);
5294 return resultobj;
5295 fail:
5296 return NULL;
5297 }
5298
5299
5300 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5301 PyObject *resultobj;
5302 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5303 int result;
5304 PyObject * obj0 = 0 ;
5305 char *kwnames[] = {
5306 (char *) "self", NULL
5307 };
5308
5309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 result = (int)(arg1)->GetW();
5314
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 resultobj = SWIG_PyObj_FromInt((int)result);
5319 return resultobj;
5320 fail:
5321 return NULL;
5322 }
5323
5324
5325 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5326 PyObject *resultobj;
5327 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5328 int result;
5329 PyObject * obj0 = 0 ;
5330 char *kwnames[] = {
5331 (char *) "self", NULL
5332 };
5333
5334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5336 {
5337 PyThreadState* __tstate = wxPyBeginAllowThreads();
5338 result = (int)(arg1)->GetWidth();
5339
5340 wxPyEndAllowThreads(__tstate);
5341 if (PyErr_Occurred()) SWIG_fail;
5342 }
5343 resultobj = SWIG_PyObj_FromInt((int)result);
5344 return resultobj;
5345 fail:
5346 return NULL;
5347 }
5348
5349
5350 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5351 PyObject *resultobj;
5352 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5353 int result;
5354 PyObject * obj0 = 0 ;
5355 char *kwnames[] = {
5356 (char *) "self", NULL
5357 };
5358
5359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5360 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5361 {
5362 PyThreadState* __tstate = wxPyBeginAllowThreads();
5363 result = (int)(arg1)->GetH();
5364
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = SWIG_PyObj_FromInt((int)result);
5369 return resultobj;
5370 fail:
5371 return NULL;
5372 }
5373
5374
5375 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5376 PyObject *resultobj;
5377 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5378 int result;
5379 PyObject * obj0 = 0 ;
5380 char *kwnames[] = {
5381 (char *) "self", NULL
5382 };
5383
5384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5385 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5386 {
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 result = (int)(arg1)->GetHeight();
5389
5390 wxPyEndAllowThreads(__tstate);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 }
5393 resultobj = SWIG_PyObj_FromInt((int)result);
5394 return resultobj;
5395 fail:
5396 return NULL;
5397 }
5398
5399
5400 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5401 PyObject *resultobj;
5402 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5403 wxRect result;
5404 PyObject * obj0 = 0 ;
5405 char *kwnames[] = {
5406 (char *) "self", NULL
5407 };
5408
5409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5410 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5411 {
5412 PyThreadState* __tstate = wxPyBeginAllowThreads();
5413 result = (arg1)->GetRect();
5414
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 {
5419 wxRect * resultptr;
5420 resultptr = new wxRect((wxRect &) result);
5421 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5422 }
5423 return resultobj;
5424 fail:
5425 return NULL;
5426 }
5427
5428
5429 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5430 PyObject *resultobj;
5431 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5432 bool result;
5433 PyObject * obj0 = 0 ;
5434 char *kwnames[] = {
5435 (char *) "self", NULL
5436 };
5437
5438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = (bool)(arg1)->HaveRects();
5443
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5457 PyObject * obj0 = 0 ;
5458 char *kwnames[] = {
5459 (char *) "self", NULL
5460 };
5461
5462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5463 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 (arg1)->Reset();
5467
5468 wxPyEndAllowThreads(__tstate);
5469 if (PyErr_Occurred()) SWIG_fail;
5470 }
5471 Py_INCREF(Py_None); resultobj = Py_None;
5472 return resultobj;
5473 fail:
5474 return NULL;
5475 }
5476
5477
5478 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5479 PyObject *resultobj;
5480 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5481 PyObject * obj0 = 0 ;
5482 char *kwnames[] = {
5483 (char *) "self", NULL
5484 };
5485
5486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5488 {
5489 PyThreadState* __tstate = wxPyBeginAllowThreads();
5490 wxRegionIterator_Next(arg1);
5491
5492 wxPyEndAllowThreads(__tstate);
5493 if (PyErr_Occurred()) SWIG_fail;
5494 }
5495 Py_INCREF(Py_None); resultobj = Py_None;
5496 return resultobj;
5497 fail:
5498 return NULL;
5499 }
5500
5501
5502 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5503 PyObject *resultobj;
5504 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5505 bool result;
5506 PyObject * obj0 = 0 ;
5507 char *kwnames[] = {
5508 (char *) "self", NULL
5509 };
5510
5511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5513 {
5514 PyThreadState* __tstate = wxPyBeginAllowThreads();
5515 result = (bool)wxRegionIterator___nonzero__(arg1);
5516
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5521 return resultobj;
5522 fail:
5523 return NULL;
5524 }
5525
5526
5527 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5528 PyObject *obj;
5529 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5530 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5531 Py_INCREF(obj);
5532 return Py_BuildValue((char *)"");
5533 }
5534 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxNativeFontInfo *result;
5537 char *kwnames[] = {
5538 NULL
5539 };
5540
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5542 {
5543 PyThreadState* __tstate = wxPyBeginAllowThreads();
5544 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5545
5546 wxPyEndAllowThreads(__tstate);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 }
5549 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5550 return resultobj;
5551 fail:
5552 return NULL;
5553 }
5554
5555
5556 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5557 PyObject *resultobj;
5558 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5559 PyObject * obj0 = 0 ;
5560 char *kwnames[] = {
5561 (char *) "self", NULL
5562 };
5563
5564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5566 {
5567 PyThreadState* __tstate = wxPyBeginAllowThreads();
5568 delete arg1;
5569
5570 wxPyEndAllowThreads(__tstate);
5571 if (PyErr_Occurred()) SWIG_fail;
5572 }
5573 Py_INCREF(Py_None); resultobj = Py_None;
5574 return resultobj;
5575 fail:
5576 return NULL;
5577 }
5578
5579
5580 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5581 PyObject *resultobj;
5582 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5583 PyObject * obj0 = 0 ;
5584 char *kwnames[] = {
5585 (char *) "self", NULL
5586 };
5587
5588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 (arg1)->Init();
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 Py_INCREF(Py_None); resultobj = Py_None;
5598 return resultobj;
5599 fail:
5600 return NULL;
5601 }
5602
5603
5604 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj;
5606 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5607 wxFont *arg2 = 0 ;
5608 PyObject * obj0 = 0 ;
5609 PyObject * obj1 = 0 ;
5610 char *kwnames[] = {
5611 (char *) "self",(char *) "font", NULL
5612 };
5613
5614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5616 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5617 if (arg2 == NULL) {
5618 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5619 }
5620 {
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 (arg1)->InitFromFont((wxFont const &)*arg2);
5623
5624 wxPyEndAllowThreads(__tstate);
5625 if (PyErr_Occurred()) SWIG_fail;
5626 }
5627 Py_INCREF(Py_None); resultobj = Py_None;
5628 return resultobj;
5629 fail:
5630 return NULL;
5631 }
5632
5633
5634 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5635 PyObject *resultobj;
5636 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5637 int result;
5638 PyObject * obj0 = 0 ;
5639 char *kwnames[] = {
5640 (char *) "self", NULL
5641 };
5642
5643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5644 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5648
5649 wxPyEndAllowThreads(__tstate);
5650 if (PyErr_Occurred()) SWIG_fail;
5651 }
5652 resultobj = SWIG_PyObj_FromInt((int)result);
5653 return resultobj;
5654 fail:
5655 return NULL;
5656 }
5657
5658
5659 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj;
5661 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5662 int result;
5663 PyObject * obj0 = 0 ;
5664 char *kwnames[] = {
5665 (char *) "self", NULL
5666 };
5667
5668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5669 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5673
5674 wxPyEndAllowThreads(__tstate);
5675 if (PyErr_Occurred()) SWIG_fail;
5676 }
5677 resultobj = SWIG_PyObj_FromInt((int)result);
5678 return resultobj;
5679 fail:
5680 return NULL;
5681 }
5682
5683
5684 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5685 PyObject *resultobj;
5686 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5687 int result;
5688 PyObject * obj0 = 0 ;
5689 char *kwnames[] = {
5690 (char *) "self", NULL
5691 };
5692
5693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5695 {
5696 PyThreadState* __tstate = wxPyBeginAllowThreads();
5697 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5698
5699 wxPyEndAllowThreads(__tstate);
5700 if (PyErr_Occurred()) SWIG_fail;
5701 }
5702 resultobj = SWIG_PyObj_FromInt((int)result);
5703 return resultobj;
5704 fail:
5705 return NULL;
5706 }
5707
5708
5709 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5710 PyObject *resultobj;
5711 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5712 bool result;
5713 PyObject * obj0 = 0 ;
5714 char *kwnames[] = {
5715 (char *) "self", NULL
5716 };
5717
5718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5719 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5720 {
5721 PyThreadState* __tstate = wxPyBeginAllowThreads();
5722 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5723
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5728 return resultobj;
5729 fail:
5730 return NULL;
5731 }
5732
5733
5734 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj;
5736 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5737 wxString result;
5738 PyObject * obj0 = 0 ;
5739 char *kwnames[] = {
5740 (char *) "self", NULL
5741 };
5742
5743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5744 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5748
5749 wxPyEndAllowThreads(__tstate);
5750 if (PyErr_Occurred()) SWIG_fail;
5751 }
5752 {
5753 #if wxUSE_UNICODE
5754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5755 #else
5756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5757 #endif
5758 }
5759 return resultobj;
5760 fail:
5761 return NULL;
5762 }
5763
5764
5765 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5766 PyObject *resultobj;
5767 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5768 int result;
5769 PyObject * obj0 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5776 {
5777 PyThreadState* __tstate = wxPyBeginAllowThreads();
5778 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5779
5780 wxPyEndAllowThreads(__tstate);
5781 if (PyErr_Occurred()) SWIG_fail;
5782 }
5783 resultobj = SWIG_PyObj_FromInt((int)result);
5784 return resultobj;
5785 fail:
5786 return NULL;
5787 }
5788
5789
5790 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5791 PyObject *resultobj;
5792 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5793 int result;
5794 PyObject * obj0 = 0 ;
5795 char *kwnames[] = {
5796 (char *) "self", NULL
5797 };
5798
5799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5800 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
5803 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5804
5805 wxPyEndAllowThreads(__tstate);
5806 if (PyErr_Occurred()) SWIG_fail;
5807 }
5808 resultobj = SWIG_PyObj_FromInt((int)result);
5809 return resultobj;
5810 fail:
5811 return NULL;
5812 }
5813
5814
5815 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5816 PyObject *resultobj;
5817 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5818 int arg2 ;
5819 PyObject * obj0 = 0 ;
5820 PyObject * obj1 = 0 ;
5821 char *kwnames[] = {
5822 (char *) "self",(char *) "pointsize", NULL
5823 };
5824
5825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
5826 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5827 {
5828 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 {
5832 PyThreadState* __tstate = wxPyBeginAllowThreads();
5833 (arg1)->SetPointSize(arg2);
5834
5835 wxPyEndAllowThreads(__tstate);
5836 if (PyErr_Occurred()) SWIG_fail;
5837 }
5838 Py_INCREF(Py_None); resultobj = Py_None;
5839 return resultobj;
5840 fail:
5841 return NULL;
5842 }
5843
5844
5845 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5846 PyObject *resultobj;
5847 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5848 int arg2 ;
5849 PyObject * obj0 = 0 ;
5850 PyObject * obj1 = 0 ;
5851 char *kwnames[] = {
5852 (char *) "self",(char *) "style", NULL
5853 };
5854
5855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
5856 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5857 {
5858 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
5859 if (PyErr_Occurred()) SWIG_fail;
5860 }
5861 {
5862 PyThreadState* __tstate = wxPyBeginAllowThreads();
5863 (arg1)->SetStyle((wxFontStyle )arg2);
5864
5865 wxPyEndAllowThreads(__tstate);
5866 if (PyErr_Occurred()) SWIG_fail;
5867 }
5868 Py_INCREF(Py_None); resultobj = Py_None;
5869 return resultobj;
5870 fail:
5871 return NULL;
5872 }
5873
5874
5875 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5878 int arg2 ;
5879 PyObject * obj0 = 0 ;
5880 PyObject * obj1 = 0 ;
5881 char *kwnames[] = {
5882 (char *) "self",(char *) "weight", NULL
5883 };
5884
5885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
5886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5887 {
5888 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 (arg1)->SetWeight((wxFontWeight )arg2);
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 Py_INCREF(Py_None); resultobj = Py_None;
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj;
5907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5908 bool arg2 ;
5909 PyObject * obj0 = 0 ;
5910 PyObject * obj1 = 0 ;
5911 char *kwnames[] = {
5912 (char *) "self",(char *) "underlined", NULL
5913 };
5914
5915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5917 {
5918 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
5919 if (PyErr_Occurred()) SWIG_fail;
5920 }
5921 {
5922 PyThreadState* __tstate = wxPyBeginAllowThreads();
5923 (arg1)->SetUnderlined(arg2);
5924
5925 wxPyEndAllowThreads(__tstate);
5926 if (PyErr_Occurred()) SWIG_fail;
5927 }
5928 Py_INCREF(Py_None); resultobj = Py_None;
5929 return resultobj;
5930 fail:
5931 return NULL;
5932 }
5933
5934
5935 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5936 PyObject *resultobj;
5937 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5938 wxString arg2 ;
5939 PyObject * obj0 = 0 ;
5940 PyObject * obj1 = 0 ;
5941 char *kwnames[] = {
5942 (char *) "self",(char *) "facename", NULL
5943 };
5944
5945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5946 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5947 {
5948 wxString* sptr = wxString_in_helper(obj1);
5949 if (sptr == NULL) SWIG_fail;
5950 arg2 = *sptr;
5951 delete sptr;
5952 }
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 (arg1)->SetFaceName(arg2);
5956
5957 wxPyEndAllowThreads(__tstate);
5958 if (PyErr_Occurred()) SWIG_fail;
5959 }
5960 Py_INCREF(Py_None); resultobj = Py_None;
5961 return resultobj;
5962 fail:
5963 return NULL;
5964 }
5965
5966
5967 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5968 PyObject *resultobj;
5969 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5970 int arg2 ;
5971 PyObject * obj0 = 0 ;
5972 PyObject * obj1 = 0 ;
5973 char *kwnames[] = {
5974 (char *) "self",(char *) "family", NULL
5975 };
5976
5977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
5978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5979 {
5980 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 {
5984 PyThreadState* __tstate = wxPyBeginAllowThreads();
5985 (arg1)->SetFamily((wxFontFamily )arg2);
5986
5987 wxPyEndAllowThreads(__tstate);
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 Py_INCREF(Py_None); resultobj = Py_None;
5991 return resultobj;
5992 fail:
5993 return NULL;
5994 }
5995
5996
5997 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5998 PyObject *resultobj;
5999 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6000 int arg2 ;
6001 PyObject * obj0 = 0 ;
6002 PyObject * obj1 = 0 ;
6003 char *kwnames[] = {
6004 (char *) "self",(char *) "encoding", NULL
6005 };
6006
6007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6008 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6009 {
6010 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6011 if (PyErr_Occurred()) SWIG_fail;
6012 }
6013 {
6014 PyThreadState* __tstate = wxPyBeginAllowThreads();
6015 (arg1)->SetEncoding((wxFontEncoding )arg2);
6016
6017 wxPyEndAllowThreads(__tstate);
6018 if (PyErr_Occurred()) SWIG_fail;
6019 }
6020 Py_INCREF(Py_None); resultobj = Py_None;
6021 return resultobj;
6022 fail:
6023 return NULL;
6024 }
6025
6026
6027 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6028 PyObject *resultobj;
6029 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6030 wxString *arg2 = 0 ;
6031 bool result;
6032 bool temp2 = False ;
6033 PyObject * obj0 = 0 ;
6034 PyObject * obj1 = 0 ;
6035 char *kwnames[] = {
6036 (char *) "self",(char *) "s", NULL
6037 };
6038
6039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6041 {
6042 arg2 = wxString_in_helper(obj1);
6043 if (arg2 == NULL) SWIG_fail;
6044 temp2 = True;
6045 }
6046 {
6047 PyThreadState* __tstate = wxPyBeginAllowThreads();
6048 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6049
6050 wxPyEndAllowThreads(__tstate);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
6053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6054 {
6055 if (temp2)
6056 delete arg2;
6057 }
6058 return resultobj;
6059 fail:
6060 {
6061 if (temp2)
6062 delete arg2;
6063 }
6064 return NULL;
6065 }
6066
6067
6068 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6069 PyObject *resultobj;
6070 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6071 wxString result;
6072 PyObject * obj0 = 0 ;
6073 char *kwnames[] = {
6074 (char *) "self", NULL
6075 };
6076
6077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6079 {
6080 PyThreadState* __tstate = wxPyBeginAllowThreads();
6081 result = ((wxNativeFontInfo const *)arg1)->ToString();
6082
6083 wxPyEndAllowThreads(__tstate);
6084 if (PyErr_Occurred()) SWIG_fail;
6085 }
6086 {
6087 #if wxUSE_UNICODE
6088 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6089 #else
6090 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6091 #endif
6092 }
6093 return resultobj;
6094 fail:
6095 return NULL;
6096 }
6097
6098
6099 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6100 PyObject *resultobj;
6101 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6102 wxString result;
6103 PyObject * obj0 = 0 ;
6104 char *kwnames[] = {
6105 (char *) "self", NULL
6106 };
6107
6108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6109 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = wxNativeFontInfo___str__(arg1);
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 {
6118 #if wxUSE_UNICODE
6119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6120 #else
6121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6122 #endif
6123 }
6124 return resultobj;
6125 fail:
6126 return NULL;
6127 }
6128
6129
6130 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6131 PyObject *resultobj;
6132 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6133 wxString *arg2 = 0 ;
6134 bool result;
6135 bool temp2 = False ;
6136 PyObject * obj0 = 0 ;
6137 PyObject * obj1 = 0 ;
6138 char *kwnames[] = {
6139 (char *) "self",(char *) "s", NULL
6140 };
6141
6142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6144 {
6145 arg2 = wxString_in_helper(obj1);
6146 if (arg2 == NULL) SWIG_fail;
6147 temp2 = True;
6148 }
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6157 {
6158 if (temp2)
6159 delete arg2;
6160 }
6161 return resultobj;
6162 fail:
6163 {
6164 if (temp2)
6165 delete arg2;
6166 }
6167 return NULL;
6168 }
6169
6170
6171 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6172 PyObject *resultobj;
6173 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6174 wxString result;
6175 PyObject * obj0 = 0 ;
6176 char *kwnames[] = {
6177 (char *) "self", NULL
6178 };
6179
6180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6181 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6182 {
6183 PyThreadState* __tstate = wxPyBeginAllowThreads();
6184 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6185
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 {
6190 #if wxUSE_UNICODE
6191 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6192 #else
6193 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6194 #endif
6195 }
6196 return resultobj;
6197 fail:
6198 return NULL;
6199 }
6200
6201
6202 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6203 PyObject *obj;
6204 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6205 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6206 Py_INCREF(obj);
6207 return Py_BuildValue((char *)"");
6208 }
6209 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6210 PyObject *resultobj;
6211 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6212 wxString *arg2 = (wxString *) 0 ;
6213 bool temp2 = False ;
6214 PyObject * obj0 = 0 ;
6215 PyObject * obj1 = 0 ;
6216 char *kwnames[] = {
6217 (char *) "self",(char *) "facename", NULL
6218 };
6219
6220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6221 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6222 {
6223 arg2 = wxString_in_helper(obj1);
6224 if (arg2 == NULL) SWIG_fail;
6225 temp2 = True;
6226 }
6227 if (arg1) (arg1)->facename = *arg2;
6228
6229 Py_INCREF(Py_None); resultobj = Py_None;
6230 {
6231 if (temp2)
6232 delete arg2;
6233 }
6234 return resultobj;
6235 fail:
6236 {
6237 if (temp2)
6238 delete arg2;
6239 }
6240 return NULL;
6241 }
6242
6243
6244 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6245 PyObject *resultobj;
6246 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6247 wxString *result;
6248 PyObject * obj0 = 0 ;
6249 char *kwnames[] = {
6250 (char *) "self", NULL
6251 };
6252
6253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6254 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6255 result = (wxString *)& ((arg1)->facename);
6256
6257 {
6258 #if wxUSE_UNICODE
6259 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6260 #else
6261 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6262 #endif
6263 }
6264 return resultobj;
6265 fail:
6266 return NULL;
6267 }
6268
6269
6270 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj;
6272 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6273 int arg2 ;
6274 PyObject * obj0 = 0 ;
6275 PyObject * obj1 = 0 ;
6276 char *kwnames[] = {
6277 (char *) "self",(char *) "encoding", NULL
6278 };
6279
6280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6281 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6282 {
6283 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6284 if (PyErr_Occurred()) SWIG_fail;
6285 }
6286 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6287
6288 Py_INCREF(Py_None); resultobj = Py_None;
6289 return resultobj;
6290 fail:
6291 return NULL;
6292 }
6293
6294
6295 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6296 PyObject *resultobj;
6297 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6298 int result;
6299 PyObject * obj0 = 0 ;
6300 char *kwnames[] = {
6301 (char *) "self", NULL
6302 };
6303
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6305 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6306 result = (int) ((arg1)->encoding);
6307
6308 resultobj = SWIG_PyObj_FromInt((int)result);
6309 return resultobj;
6310 fail:
6311 return NULL;
6312 }
6313
6314
6315 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6316 PyObject *resultobj;
6317 wxNativeEncodingInfo *result;
6318 char *kwnames[] = {
6319 NULL
6320 };
6321
6322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6323 {
6324 PyThreadState* __tstate = wxPyBeginAllowThreads();
6325 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6326
6327 wxPyEndAllowThreads(__tstate);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 }
6330 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6331 return resultobj;
6332 fail:
6333 return NULL;
6334 }
6335
6336
6337 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6338 PyObject *resultobj;
6339 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6340 PyObject * obj0 = 0 ;
6341 char *kwnames[] = {
6342 (char *) "self", NULL
6343 };
6344
6345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6346 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 delete arg1;
6350
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 Py_INCREF(Py_None); resultobj = Py_None;
6355 return resultobj;
6356 fail:
6357 return NULL;
6358 }
6359
6360
6361 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6364 wxString *arg2 = 0 ;
6365 bool result;
6366 bool temp2 = False ;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self",(char *) "s", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6375 {
6376 arg2 = wxString_in_helper(obj1);
6377 if (arg2 == NULL) SWIG_fail;
6378 temp2 = True;
6379 }
6380 {
6381 PyThreadState* __tstate = wxPyBeginAllowThreads();
6382 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6383
6384 wxPyEndAllowThreads(__tstate);
6385 if (PyErr_Occurred()) SWIG_fail;
6386 }
6387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6388 {
6389 if (temp2)
6390 delete arg2;
6391 }
6392 return resultobj;
6393 fail:
6394 {
6395 if (temp2)
6396 delete arg2;
6397 }
6398 return NULL;
6399 }
6400
6401
6402 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6403 PyObject *resultobj;
6404 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6405 wxString result;
6406 PyObject * obj0 = 0 ;
6407 char *kwnames[] = {
6408 (char *) "self", NULL
6409 };
6410
6411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 {
6421 #if wxUSE_UNICODE
6422 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6423 #else
6424 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6425 #endif
6426 }
6427 return resultobj;
6428 fail:
6429 return NULL;
6430 }
6431
6432
6433 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6434 PyObject *obj;
6435 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6436 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6437 Py_INCREF(obj);
6438 return Py_BuildValue((char *)"");
6439 }
6440 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 int arg1 ;
6443 wxNativeEncodingInfo *result;
6444 PyObject * obj0 = 0 ;
6445 char *kwnames[] = {
6446 (char *) "encoding", NULL
6447 };
6448
6449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6450 {
6451 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6452 if (PyErr_Occurred()) SWIG_fail;
6453 }
6454 {
6455 PyThreadState* __tstate = wxPyBeginAllowThreads();
6456 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6457
6458 wxPyEndAllowThreads(__tstate);
6459 if (PyErr_Occurred()) SWIG_fail;
6460 }
6461 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6462 return resultobj;
6463 fail:
6464 return NULL;
6465 }
6466
6467
6468 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6469 PyObject *resultobj;
6470 wxNativeEncodingInfo *arg1 = 0 ;
6471 bool result;
6472 PyObject * obj0 = 0 ;
6473 char *kwnames[] = {
6474 (char *) "info", NULL
6475 };
6476
6477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6478 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6479 if (arg1 == NULL) {
6480 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6481 }
6482 {
6483 PyThreadState* __tstate = wxPyBeginAllowThreads();
6484 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6485
6486 wxPyEndAllowThreads(__tstate);
6487 if (PyErr_Occurred()) SWIG_fail;
6488 }
6489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6490 return resultobj;
6491 fail:
6492 return NULL;
6493 }
6494
6495
6496 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6497 PyObject *resultobj;
6498 wxFontMapper *result;
6499 char *kwnames[] = {
6500 NULL
6501 };
6502
6503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6504 {
6505 PyThreadState* __tstate = wxPyBeginAllowThreads();
6506 result = (wxFontMapper *)new wxFontMapper();
6507
6508 wxPyEndAllowThreads(__tstate);
6509 if (PyErr_Occurred()) SWIG_fail;
6510 }
6511 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6512 return resultobj;
6513 fail:
6514 return NULL;
6515 }
6516
6517
6518 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6519 PyObject *resultobj;
6520 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6521 PyObject * obj0 = 0 ;
6522 char *kwnames[] = {
6523 (char *) "self", NULL
6524 };
6525
6526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6528 {
6529 PyThreadState* __tstate = wxPyBeginAllowThreads();
6530 delete arg1;
6531
6532 wxPyEndAllowThreads(__tstate);
6533 if (PyErr_Occurred()) SWIG_fail;
6534 }
6535 Py_INCREF(Py_None); resultobj = Py_None;
6536 return resultobj;
6537 fail:
6538 return NULL;
6539 }
6540
6541
6542 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6543 PyObject *resultobj;
6544 wxFontMapper *result;
6545 char *kwnames[] = {
6546 NULL
6547 };
6548
6549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6550 {
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 result = (wxFontMapper *)wxFontMapper::Get();
6553
6554 wxPyEndAllowThreads(__tstate);
6555 if (PyErr_Occurred()) SWIG_fail;
6556 }
6557 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6558 return resultobj;
6559 fail:
6560 return NULL;
6561 }
6562
6563
6564 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6567 wxFontMapper *result;
6568 PyObject * obj0 = 0 ;
6569 char *kwnames[] = {
6570 (char *) "mapper", NULL
6571 };
6572
6573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6575 {
6576 PyThreadState* __tstate = wxPyBeginAllowThreads();
6577 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6578
6579 wxPyEndAllowThreads(__tstate);
6580 if (PyErr_Occurred()) SWIG_fail;
6581 }
6582 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6583 return resultobj;
6584 fail:
6585 return NULL;
6586 }
6587
6588
6589 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6590 PyObject *resultobj;
6591 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6592 wxString *arg2 = 0 ;
6593 bool arg3 = (bool) True ;
6594 int result;
6595 bool temp2 = False ;
6596 PyObject * obj0 = 0 ;
6597 PyObject * obj1 = 0 ;
6598 PyObject * obj2 = 0 ;
6599 char *kwnames[] = {
6600 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6601 };
6602
6603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6604 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6605 {
6606 arg2 = wxString_in_helper(obj1);
6607 if (arg2 == NULL) SWIG_fail;
6608 temp2 = True;
6609 }
6610 if (obj2) {
6611 {
6612 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6613 if (PyErr_Occurred()) SWIG_fail;
6614 }
6615 }
6616 {
6617 PyThreadState* __tstate = wxPyBeginAllowThreads();
6618 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6619
6620 wxPyEndAllowThreads(__tstate);
6621 if (PyErr_Occurred()) SWIG_fail;
6622 }
6623 resultobj = SWIG_PyObj_FromInt((int)result);
6624 {
6625 if (temp2)
6626 delete arg2;
6627 }
6628 return resultobj;
6629 fail:
6630 {
6631 if (temp2)
6632 delete arg2;
6633 }
6634 return NULL;
6635 }
6636
6637
6638 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6639 PyObject *resultobj;
6640 size_t result;
6641 char *kwnames[] = {
6642 NULL
6643 };
6644
6645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6646 {
6647 PyThreadState* __tstate = wxPyBeginAllowThreads();
6648 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6649
6650 wxPyEndAllowThreads(__tstate);
6651 if (PyErr_Occurred()) SWIG_fail;
6652 }
6653 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
6654 return resultobj;
6655 fail:
6656 return NULL;
6657 }
6658
6659
6660 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6661 PyObject *resultobj;
6662 size_t arg1 ;
6663 int result;
6664 PyObject * obj0 = 0 ;
6665 char *kwnames[] = {
6666 (char *) "n", NULL
6667 };
6668
6669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6670 {
6671 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
6672 if (PyErr_Occurred()) SWIG_fail;
6673 }
6674 {
6675 PyThreadState* __tstate = wxPyBeginAllowThreads();
6676 result = (int)wxFontMapper::GetEncoding(arg1);
6677
6678 wxPyEndAllowThreads(__tstate);
6679 if (PyErr_Occurred()) SWIG_fail;
6680 }
6681 resultobj = SWIG_PyObj_FromInt((int)result);
6682 return resultobj;
6683 fail:
6684 return NULL;
6685 }
6686
6687
6688 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6689 PyObject *resultobj;
6690 int arg1 ;
6691 wxString result;
6692 PyObject * obj0 = 0 ;
6693 char *kwnames[] = {
6694 (char *) "encoding", NULL
6695 };
6696
6697 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
6698 {
6699 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6700 if (PyErr_Occurred()) SWIG_fail;
6701 }
6702 {
6703 PyThreadState* __tstate = wxPyBeginAllowThreads();
6704 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6705
6706 wxPyEndAllowThreads(__tstate);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 #if wxUSE_UNICODE
6711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6712 #else
6713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6714 #endif
6715 }
6716 return resultobj;
6717 fail:
6718 return NULL;
6719 }
6720
6721
6722 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6723 PyObject *resultobj;
6724 int arg1 ;
6725 wxString result;
6726 PyObject * obj0 = 0 ;
6727 char *kwnames[] = {
6728 (char *) "encoding", NULL
6729 };
6730
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
6732 {
6733 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6734 if (PyErr_Occurred()) SWIG_fail;
6735 }
6736 {
6737 PyThreadState* __tstate = wxPyBeginAllowThreads();
6738 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6739
6740 wxPyEndAllowThreads(__tstate);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 {
6744 #if wxUSE_UNICODE
6745 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6746 #else
6747 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6748 #endif
6749 }
6750 return resultobj;
6751 fail:
6752 return NULL;
6753 }
6754
6755
6756 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6757 PyObject *resultobj;
6758 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6759 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 char *kwnames[] = {
6763 (char *) "self",(char *) "config", NULL
6764 };
6765
6766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6768 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6769 {
6770 PyThreadState* __tstate = wxPyBeginAllowThreads();
6771 (arg1)->SetConfig(arg2);
6772
6773 wxPyEndAllowThreads(__tstate);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 }
6776 Py_INCREF(Py_None); resultobj = Py_None;
6777 return resultobj;
6778 fail:
6779 return NULL;
6780 }
6781
6782
6783 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6784 PyObject *resultobj;
6785 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6786 wxString *arg2 = 0 ;
6787 bool temp2 = False ;
6788 PyObject * obj0 = 0 ;
6789 PyObject * obj1 = 0 ;
6790 char *kwnames[] = {
6791 (char *) "self",(char *) "prefix", NULL
6792 };
6793
6794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6795 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6796 {
6797 arg2 = wxString_in_helper(obj1);
6798 if (arg2 == NULL) SWIG_fail;
6799 temp2 = True;
6800 }
6801 {
6802 PyThreadState* __tstate = wxPyBeginAllowThreads();
6803 (arg1)->SetConfigPath((wxString const &)*arg2);
6804
6805 wxPyEndAllowThreads(__tstate);
6806 if (PyErr_Occurred()) SWIG_fail;
6807 }
6808 Py_INCREF(Py_None); resultobj = Py_None;
6809 {
6810 if (temp2)
6811 delete arg2;
6812 }
6813 return resultobj;
6814 fail:
6815 {
6816 if (temp2)
6817 delete arg2;
6818 }
6819 return NULL;
6820 }
6821
6822
6823 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6824 PyObject *resultobj;
6825 wxString result;
6826 char *kwnames[] = {
6827 NULL
6828 };
6829
6830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6831 {
6832 PyThreadState* __tstate = wxPyBeginAllowThreads();
6833 result = wxFontMapper::GetDefaultConfigPath();
6834
6835 wxPyEndAllowThreads(__tstate);
6836 if (PyErr_Occurred()) SWIG_fail;
6837 }
6838 {
6839 #if wxUSE_UNICODE
6840 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6841 #else
6842 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6843 #endif
6844 }
6845 return resultobj;
6846 fail:
6847 return NULL;
6848 }
6849
6850
6851 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6852 PyObject *resultobj;
6853 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6854 int arg2 ;
6855 wxString const &arg3_defvalue = wxPyEmptyString ;
6856 wxString *arg3 = (wxString *) &arg3_defvalue ;
6857 bool arg4 = (bool) True ;
6858 PyObject *result;
6859 bool temp3 = False ;
6860 PyObject * obj0 = 0 ;
6861 PyObject * obj1 = 0 ;
6862 PyObject * obj2 = 0 ;
6863 PyObject * obj3 = 0 ;
6864 char *kwnames[] = {
6865 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6866 };
6867
6868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6870 {
6871 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6872 if (PyErr_Occurred()) SWIG_fail;
6873 }
6874 if (obj2) {
6875 {
6876 arg3 = wxString_in_helper(obj2);
6877 if (arg3 == NULL) SWIG_fail;
6878 temp3 = True;
6879 }
6880 }
6881 if (obj3) {
6882 {
6883 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
6884 if (PyErr_Occurred()) SWIG_fail;
6885 }
6886 }
6887 {
6888 PyThreadState* __tstate = wxPyBeginAllowThreads();
6889 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6890
6891 wxPyEndAllowThreads(__tstate);
6892 if (PyErr_Occurred()) SWIG_fail;
6893 }
6894 resultobj = result;
6895 {
6896 if (temp3)
6897 delete arg3;
6898 }
6899 return resultobj;
6900 fail:
6901 {
6902 if (temp3)
6903 delete arg3;
6904 }
6905 return NULL;
6906 }
6907
6908
6909 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6910 PyObject *resultobj;
6911 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6912 int arg2 ;
6913 wxString const &arg3_defvalue = wxPyEmptyString ;
6914 wxString *arg3 = (wxString *) &arg3_defvalue ;
6915 bool result;
6916 bool temp3 = False ;
6917 PyObject * obj0 = 0 ;
6918 PyObject * obj1 = 0 ;
6919 PyObject * obj2 = 0 ;
6920 char *kwnames[] = {
6921 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6922 };
6923
6924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
6925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6926 {
6927 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6928 if (PyErr_Occurred()) SWIG_fail;
6929 }
6930 if (obj2) {
6931 {
6932 arg3 = wxString_in_helper(obj2);
6933 if (arg3 == NULL) SWIG_fail;
6934 temp3 = True;
6935 }
6936 }
6937 {
6938 PyThreadState* __tstate = wxPyBeginAllowThreads();
6939 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6940
6941 wxPyEndAllowThreads(__tstate);
6942 if (PyErr_Occurred()) SWIG_fail;
6943 }
6944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6945 {
6946 if (temp3)
6947 delete arg3;
6948 }
6949 return resultobj;
6950 fail:
6951 {
6952 if (temp3)
6953 delete arg3;
6954 }
6955 return NULL;
6956 }
6957
6958
6959 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6960 PyObject *resultobj;
6961 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6962 wxWindow *arg2 = (wxWindow *) 0 ;
6963 PyObject * obj0 = 0 ;
6964 PyObject * obj1 = 0 ;
6965 char *kwnames[] = {
6966 (char *) "self",(char *) "parent", NULL
6967 };
6968
6969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6971 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6972 {
6973 PyThreadState* __tstate = wxPyBeginAllowThreads();
6974 (arg1)->SetDialogParent(arg2);
6975
6976 wxPyEndAllowThreads(__tstate);
6977 if (PyErr_Occurred()) SWIG_fail;
6978 }
6979 Py_INCREF(Py_None); resultobj = Py_None;
6980 return resultobj;
6981 fail:
6982 return NULL;
6983 }
6984
6985
6986 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6987 PyObject *resultobj;
6988 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6989 wxString *arg2 = 0 ;
6990 bool temp2 = False ;
6991 PyObject * obj0 = 0 ;
6992 PyObject * obj1 = 0 ;
6993 char *kwnames[] = {
6994 (char *) "self",(char *) "title", NULL
6995 };
6996
6997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
6998 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6999 {
7000 arg2 = wxString_in_helper(obj1);
7001 if (arg2 == NULL) SWIG_fail;
7002 temp2 = True;
7003 }
7004 {
7005 PyThreadState* __tstate = wxPyBeginAllowThreads();
7006 (arg1)->SetDialogTitle((wxString const &)*arg2);
7007
7008 wxPyEndAllowThreads(__tstate);
7009 if (PyErr_Occurred()) SWIG_fail;
7010 }
7011 Py_INCREF(Py_None); resultobj = Py_None;
7012 {
7013 if (temp2)
7014 delete arg2;
7015 }
7016 return resultobj;
7017 fail:
7018 {
7019 if (temp2)
7020 delete arg2;
7021 }
7022 return NULL;
7023 }
7024
7025
7026 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7027 PyObject *obj;
7028 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7029 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7030 Py_INCREF(obj);
7031 return Py_BuildValue((char *)"");
7032 }
7033 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7034 PyObject *resultobj;
7035 int arg1 ;
7036 int arg2 ;
7037 int arg3 ;
7038 int arg4 ;
7039 bool arg5 = (bool) False ;
7040 wxString const &arg6_defvalue = wxPyEmptyString ;
7041 wxString *arg6 = (wxString *) &arg6_defvalue ;
7042 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7043 wxFont *result;
7044 bool temp6 = False ;
7045 PyObject * obj0 = 0 ;
7046 PyObject * obj1 = 0 ;
7047 PyObject * obj2 = 0 ;
7048 PyObject * obj3 = 0 ;
7049 PyObject * obj4 = 0 ;
7050 PyObject * obj5 = 0 ;
7051 PyObject * obj6 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7057 {
7058 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7059 if (PyErr_Occurred()) SWIG_fail;
7060 }
7061 {
7062 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 {
7066 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7067 if (PyErr_Occurred()) SWIG_fail;
7068 }
7069 {
7070 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7071 if (PyErr_Occurred()) SWIG_fail;
7072 }
7073 if (obj4) {
7074 {
7075 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 }
7079 if (obj5) {
7080 {
7081 arg6 = wxString_in_helper(obj5);
7082 if (arg6 == NULL) SWIG_fail;
7083 temp6 = True;
7084 }
7085 }
7086 if (obj6) {
7087 {
7088 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 }
7092 {
7093 PyThreadState* __tstate = wxPyBeginAllowThreads();
7094 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7095
7096 wxPyEndAllowThreads(__tstate);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7100 {
7101 if (temp6)
7102 delete arg6;
7103 }
7104 return resultobj;
7105 fail:
7106 {
7107 if (temp6)
7108 delete arg6;
7109 }
7110 return NULL;
7111 }
7112
7113
7114 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7115 PyObject *resultobj;
7116 wxFont *arg1 = (wxFont *) 0 ;
7117 PyObject * obj0 = 0 ;
7118 char *kwnames[] = {
7119 (char *) "self", NULL
7120 };
7121
7122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7124 {
7125 PyThreadState* __tstate = wxPyBeginAllowThreads();
7126 delete arg1;
7127
7128 wxPyEndAllowThreads(__tstate);
7129 if (PyErr_Occurred()) SWIG_fail;
7130 }
7131 Py_INCREF(Py_None); resultobj = Py_None;
7132 return resultobj;
7133 fail:
7134 return NULL;
7135 }
7136
7137
7138 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7139 PyObject *resultobj;
7140 wxNativeFontInfo *arg1 = 0 ;
7141 wxFont *result;
7142 PyObject * obj0 = 0 ;
7143 char *kwnames[] = {
7144 (char *) "info", NULL
7145 };
7146
7147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7149 if (arg1 == NULL) {
7150 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7151 }
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7155
7156 wxPyEndAllowThreads(__tstate);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 }
7159 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7160 return resultobj;
7161 fail:
7162 return NULL;
7163 }
7164
7165
7166 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7167 PyObject *resultobj;
7168 wxString *arg1 = 0 ;
7169 wxFont *result;
7170 bool temp1 = False ;
7171 PyObject * obj0 = 0 ;
7172 char *kwnames[] = {
7173 (char *) "info", NULL
7174 };
7175
7176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7177 {
7178 arg1 = wxString_in_helper(obj0);
7179 if (arg1 == NULL) SWIG_fail;
7180 temp1 = True;
7181 }
7182 {
7183 PyThreadState* __tstate = wxPyBeginAllowThreads();
7184 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7185
7186 wxPyEndAllowThreads(__tstate);
7187 if (PyErr_Occurred()) SWIG_fail;
7188 }
7189 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7190 {
7191 if (temp1)
7192 delete arg1;
7193 }
7194 return resultobj;
7195 fail:
7196 {
7197 if (temp1)
7198 delete arg1;
7199 }
7200 return NULL;
7201 }
7202
7203
7204 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7205 PyObject *resultobj;
7206 int arg1 ;
7207 int arg2 ;
7208 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7209 wxString const &arg4_defvalue = wxPyEmptyString ;
7210 wxString *arg4 = (wxString *) &arg4_defvalue ;
7211 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7212 wxFont *result;
7213 bool temp4 = False ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 PyObject * obj2 = 0 ;
7217 PyObject * obj3 = 0 ;
7218 PyObject * obj4 = 0 ;
7219 char *kwnames[] = {
7220 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7221 };
7222
7223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7224 {
7225 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 {
7229 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 if (obj2) {
7233 {
7234 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 }
7238 if (obj3) {
7239 {
7240 arg4 = wxString_in_helper(obj3);
7241 if (arg4 == NULL) SWIG_fail;
7242 temp4 = True;
7243 }
7244 }
7245 if (obj4) {
7246 {
7247 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7248 if (PyErr_Occurred()) SWIG_fail;
7249 }
7250 }
7251 {
7252 PyThreadState* __tstate = wxPyBeginAllowThreads();
7253 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7254
7255 wxPyEndAllowThreads(__tstate);
7256 if (PyErr_Occurred()) SWIG_fail;
7257 }
7258 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7259 {
7260 if (temp4)
7261 delete arg4;
7262 }
7263 return resultobj;
7264 fail:
7265 {
7266 if (temp4)
7267 delete arg4;
7268 }
7269 return NULL;
7270 }
7271
7272
7273 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7274 PyObject *resultobj;
7275 wxFont *arg1 = (wxFont *) 0 ;
7276 bool result;
7277 PyObject * obj0 = 0 ;
7278 char *kwnames[] = {
7279 (char *) "self", NULL
7280 };
7281
7282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7284 {
7285 PyThreadState* __tstate = wxPyBeginAllowThreads();
7286 result = (bool)((wxFont const *)arg1)->Ok();
7287
7288 wxPyEndAllowThreads(__tstate);
7289 if (PyErr_Occurred()) SWIG_fail;
7290 }
7291 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7292 return resultobj;
7293 fail:
7294 return NULL;
7295 }
7296
7297
7298 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7299 PyObject *resultobj;
7300 wxFont *arg1 = (wxFont *) 0 ;
7301 wxFont *arg2 = 0 ;
7302 bool result;
7303 PyObject * obj0 = 0 ;
7304 PyObject * obj1 = 0 ;
7305 char *kwnames[] = {
7306 (char *) "self",(char *) "font", NULL
7307 };
7308
7309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7311 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7312 if (arg2 == NULL) {
7313 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7314 }
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7330 PyObject *resultobj;
7331 wxFont *arg1 = (wxFont *) 0 ;
7332 wxFont *arg2 = 0 ;
7333 bool result;
7334 PyObject * obj0 = 0 ;
7335 PyObject * obj1 = 0 ;
7336 char *kwnames[] = {
7337 (char *) "self",(char *) "font", NULL
7338 };
7339
7340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7341 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7342 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7343 if (arg2 == NULL) {
7344 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7345 }
7346 {
7347 PyThreadState* __tstate = wxPyBeginAllowThreads();
7348 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7349
7350 wxPyEndAllowThreads(__tstate);
7351 if (PyErr_Occurred()) SWIG_fail;
7352 }
7353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7354 return resultobj;
7355 fail:
7356 return NULL;
7357 }
7358
7359
7360 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7361 PyObject *resultobj;
7362 wxFont *arg1 = (wxFont *) 0 ;
7363 int result;
7364 PyObject * obj0 = 0 ;
7365 char *kwnames[] = {
7366 (char *) "self", NULL
7367 };
7368
7369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7371 {
7372 PyThreadState* __tstate = wxPyBeginAllowThreads();
7373 result = (int)((wxFont const *)arg1)->GetPointSize();
7374
7375 wxPyEndAllowThreads(__tstate);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_PyObj_FromInt((int)result);
7379 return resultobj;
7380 fail:
7381 return NULL;
7382 }
7383
7384
7385 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj;
7387 wxFont *arg1 = (wxFont *) 0 ;
7388 int result;
7389 PyObject * obj0 = 0 ;
7390 char *kwnames[] = {
7391 (char *) "self", NULL
7392 };
7393
7394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7395 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7396 {
7397 PyThreadState* __tstate = wxPyBeginAllowThreads();
7398 result = (int)((wxFont const *)arg1)->GetFamily();
7399
7400 wxPyEndAllowThreads(__tstate);
7401 if (PyErr_Occurred()) SWIG_fail;
7402 }
7403 resultobj = SWIG_PyObj_FromInt((int)result);
7404 return resultobj;
7405 fail:
7406 return NULL;
7407 }
7408
7409
7410 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7411 PyObject *resultobj;
7412 wxFont *arg1 = (wxFont *) 0 ;
7413 int result;
7414 PyObject * obj0 = 0 ;
7415 char *kwnames[] = {
7416 (char *) "self", NULL
7417 };
7418
7419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7420 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7421 {
7422 PyThreadState* __tstate = wxPyBeginAllowThreads();
7423 result = (int)((wxFont const *)arg1)->GetStyle();
7424
7425 wxPyEndAllowThreads(__tstate);
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 resultobj = SWIG_PyObj_FromInt((int)result);
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7436 PyObject *resultobj;
7437 wxFont *arg1 = (wxFont *) 0 ;
7438 int result;
7439 PyObject * obj0 = 0 ;
7440 char *kwnames[] = {
7441 (char *) "self", NULL
7442 };
7443
7444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7445 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7446 {
7447 PyThreadState* __tstate = wxPyBeginAllowThreads();
7448 result = (int)((wxFont const *)arg1)->GetWeight();
7449
7450 wxPyEndAllowThreads(__tstate);
7451 if (PyErr_Occurred()) SWIG_fail;
7452 }
7453 resultobj = SWIG_PyObj_FromInt((int)result);
7454 return resultobj;
7455 fail:
7456 return NULL;
7457 }
7458
7459
7460 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7461 PyObject *resultobj;
7462 wxFont *arg1 = (wxFont *) 0 ;
7463 bool result;
7464 PyObject * obj0 = 0 ;
7465 char *kwnames[] = {
7466 (char *) "self", NULL
7467 };
7468
7469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7471 {
7472 PyThreadState* __tstate = wxPyBeginAllowThreads();
7473 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7474
7475 wxPyEndAllowThreads(__tstate);
7476 if (PyErr_Occurred()) SWIG_fail;
7477 }
7478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7479 return resultobj;
7480 fail:
7481 return NULL;
7482 }
7483
7484
7485 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7486 PyObject *resultobj;
7487 wxFont *arg1 = (wxFont *) 0 ;
7488 wxString result;
7489 PyObject * obj0 = 0 ;
7490 char *kwnames[] = {
7491 (char *) "self", NULL
7492 };
7493
7494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7495 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7496 {
7497 PyThreadState* __tstate = wxPyBeginAllowThreads();
7498 result = ((wxFont const *)arg1)->GetFaceName();
7499
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 {
7504 #if wxUSE_UNICODE
7505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7506 #else
7507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7508 #endif
7509 }
7510 return resultobj;
7511 fail:
7512 return NULL;
7513 }
7514
7515
7516 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7517 PyObject *resultobj;
7518 wxFont *arg1 = (wxFont *) 0 ;
7519 int result;
7520 PyObject * obj0 = 0 ;
7521 char *kwnames[] = {
7522 (char *) "self", NULL
7523 };
7524
7525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7527 {
7528 PyThreadState* __tstate = wxPyBeginAllowThreads();
7529 result = (int)((wxFont const *)arg1)->GetEncoding();
7530
7531 wxPyEndAllowThreads(__tstate);
7532 if (PyErr_Occurred()) SWIG_fail;
7533 }
7534 resultobj = SWIG_PyObj_FromInt((int)result);
7535 return resultobj;
7536 fail:
7537 return NULL;
7538 }
7539
7540
7541 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7542 PyObject *resultobj;
7543 wxFont *arg1 = (wxFont *) 0 ;
7544 wxNativeFontInfo *result;
7545 PyObject * obj0 = 0 ;
7546 char *kwnames[] = {
7547 (char *) "self", NULL
7548 };
7549
7550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7551 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7552 {
7553 PyThreadState* __tstate = wxPyBeginAllowThreads();
7554 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7555
7556 wxPyEndAllowThreads(__tstate);
7557 if (PyErr_Occurred()) SWIG_fail;
7558 }
7559 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7560 return resultobj;
7561 fail:
7562 return NULL;
7563 }
7564
7565
7566 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7567 PyObject *resultobj;
7568 wxFont *arg1 = (wxFont *) 0 ;
7569 bool result;
7570 PyObject * obj0 = 0 ;
7571 char *kwnames[] = {
7572 (char *) "self", NULL
7573 };
7574
7575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7576 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7577 {
7578 PyThreadState* __tstate = wxPyBeginAllowThreads();
7579 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7580
7581 wxPyEndAllowThreads(__tstate);
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7585 return resultobj;
7586 fail:
7587 return NULL;
7588 }
7589
7590
7591 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7592 PyObject *resultobj;
7593 wxFont *arg1 = (wxFont *) 0 ;
7594 wxString result;
7595 PyObject * obj0 = 0 ;
7596 char *kwnames[] = {
7597 (char *) "self", NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7601 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7602 {
7603 PyThreadState* __tstate = wxPyBeginAllowThreads();
7604 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7605
7606 wxPyEndAllowThreads(__tstate);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 }
7609 {
7610 #if wxUSE_UNICODE
7611 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7612 #else
7613 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7614 #endif
7615 }
7616 return resultobj;
7617 fail:
7618 return NULL;
7619 }
7620
7621
7622 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7623 PyObject *resultobj;
7624 wxFont *arg1 = (wxFont *) 0 ;
7625 wxString result;
7626 PyObject * obj0 = 0 ;
7627 char *kwnames[] = {
7628 (char *) "self", NULL
7629 };
7630
7631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7633 {
7634 PyThreadState* __tstate = wxPyBeginAllowThreads();
7635 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7636
7637 wxPyEndAllowThreads(__tstate);
7638 if (PyErr_Occurred()) SWIG_fail;
7639 }
7640 {
7641 #if wxUSE_UNICODE
7642 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7643 #else
7644 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7645 #endif
7646 }
7647 return resultobj;
7648 fail:
7649 return NULL;
7650 }
7651
7652
7653 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7654 PyObject *resultobj;
7655 wxFont *arg1 = (wxFont *) 0 ;
7656 int arg2 ;
7657 PyObject * obj0 = 0 ;
7658 PyObject * obj1 = 0 ;
7659 char *kwnames[] = {
7660 (char *) "self",(char *) "pointSize", NULL
7661 };
7662
7663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7664 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7665 {
7666 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 }
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 (arg1)->SetPointSize(arg2);
7672
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 Py_INCREF(Py_None); resultobj = Py_None;
7677 return resultobj;
7678 fail:
7679 return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxFont *arg1 = (wxFont *) 0 ;
7686 int arg2 ;
7687 PyObject * obj0 = 0 ;
7688 PyObject * obj1 = 0 ;
7689 char *kwnames[] = {
7690 (char *) "self",(char *) "family", NULL
7691 };
7692
7693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7695 {
7696 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7697 if (PyErr_Occurred()) SWIG_fail;
7698 }
7699 {
7700 PyThreadState* __tstate = wxPyBeginAllowThreads();
7701 (arg1)->SetFamily(arg2);
7702
7703 wxPyEndAllowThreads(__tstate);
7704 if (PyErr_Occurred()) SWIG_fail;
7705 }
7706 Py_INCREF(Py_None); resultobj = Py_None;
7707 return resultobj;
7708 fail:
7709 return NULL;
7710 }
7711
7712
7713 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7714 PyObject *resultobj;
7715 wxFont *arg1 = (wxFont *) 0 ;
7716 int arg2 ;
7717 PyObject * obj0 = 0 ;
7718 PyObject * obj1 = 0 ;
7719 char *kwnames[] = {
7720 (char *) "self",(char *) "style", NULL
7721 };
7722
7723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7724 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7725 {
7726 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7727 if (PyErr_Occurred()) SWIG_fail;
7728 }
7729 {
7730 PyThreadState* __tstate = wxPyBeginAllowThreads();
7731 (arg1)->SetStyle(arg2);
7732
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 Py_INCREF(Py_None); resultobj = Py_None;
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj;
7745 wxFont *arg1 = (wxFont *) 0 ;
7746 int arg2 ;
7747 PyObject * obj0 = 0 ;
7748 PyObject * obj1 = 0 ;
7749 char *kwnames[] = {
7750 (char *) "self",(char *) "weight", NULL
7751 };
7752
7753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7755 {
7756 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 }
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 (arg1)->SetWeight(arg2);
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 Py_INCREF(Py_None); resultobj = Py_None;
7767 return resultobj;
7768 fail:
7769 return NULL;
7770 }
7771
7772
7773 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7774 PyObject *resultobj;
7775 wxFont *arg1 = (wxFont *) 0 ;
7776 wxString *arg2 = 0 ;
7777 bool temp2 = False ;
7778 PyObject * obj0 = 0 ;
7779 PyObject * obj1 = 0 ;
7780 char *kwnames[] = {
7781 (char *) "self",(char *) "faceName", NULL
7782 };
7783
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7785 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7786 {
7787 arg2 = wxString_in_helper(obj1);
7788 if (arg2 == NULL) SWIG_fail;
7789 temp2 = True;
7790 }
7791 {
7792 PyThreadState* __tstate = wxPyBeginAllowThreads();
7793 (arg1)->SetFaceName((wxString const &)*arg2);
7794
7795 wxPyEndAllowThreads(__tstate);
7796 if (PyErr_Occurred()) SWIG_fail;
7797 }
7798 Py_INCREF(Py_None); resultobj = Py_None;
7799 {
7800 if (temp2)
7801 delete arg2;
7802 }
7803 return resultobj;
7804 fail:
7805 {
7806 if (temp2)
7807 delete arg2;
7808 }
7809 return NULL;
7810 }
7811
7812
7813 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj;
7815 wxFont *arg1 = (wxFont *) 0 ;
7816 bool arg2 ;
7817 PyObject * obj0 = 0 ;
7818 PyObject * obj1 = 0 ;
7819 char *kwnames[] = {
7820 (char *) "self",(char *) "underlined", NULL
7821 };
7822
7823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7825 {
7826 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 {
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 (arg1)->SetUnderlined(arg2);
7832
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 Py_INCREF(Py_None); resultobj = Py_None;
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj;
7845 wxFont *arg1 = (wxFont *) 0 ;
7846 int arg2 ;
7847 PyObject * obj0 = 0 ;
7848 PyObject * obj1 = 0 ;
7849 char *kwnames[] = {
7850 (char *) "self",(char *) "encoding", NULL
7851 };
7852
7853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",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 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7857 if (PyErr_Occurred()) SWIG_fail;
7858 }
7859 {
7860 PyThreadState* __tstate = wxPyBeginAllowThreads();
7861 (arg1)->SetEncoding((wxFontEncoding )arg2);
7862
7863 wxPyEndAllowThreads(__tstate);
7864 if (PyErr_Occurred()) SWIG_fail;
7865 }
7866 Py_INCREF(Py_None); resultobj = Py_None;
7867 return resultobj;
7868 fail:
7869 return NULL;
7870 }
7871
7872
7873 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7874 PyObject *resultobj;
7875 wxFont *arg1 = (wxFont *) 0 ;
7876 wxNativeFontInfo *arg2 = 0 ;
7877 PyObject * obj0 = 0 ;
7878 PyObject * obj1 = 0 ;
7879 char *kwnames[] = {
7880 (char *) "self",(char *) "info", NULL
7881 };
7882
7883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7884 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7885 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7886 if (arg2 == NULL) {
7887 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7888 }
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7892
7893 wxPyEndAllowThreads(__tstate);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 Py_INCREF(Py_None); resultobj = Py_None;
7897 return resultobj;
7898 fail:
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxFont *arg1 = (wxFont *) 0 ;
7906 wxString *arg2 = 0 ;
7907 bool temp2 = False ;
7908 PyObject * obj0 = 0 ;
7909 PyObject * obj1 = 0 ;
7910 char *kwnames[] = {
7911 (char *) "self",(char *) "info", NULL
7912 };
7913
7914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7915 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7916 {
7917 arg2 = wxString_in_helper(obj1);
7918 if (arg2 == NULL) SWIG_fail;
7919 temp2 = True;
7920 }
7921 {
7922 PyThreadState* __tstate = wxPyBeginAllowThreads();
7923 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7924
7925 wxPyEndAllowThreads(__tstate);
7926 if (PyErr_Occurred()) SWIG_fail;
7927 }
7928 Py_INCREF(Py_None); resultobj = Py_None;
7929 {
7930 if (temp2)
7931 delete arg2;
7932 }
7933 return resultobj;
7934 fail:
7935 {
7936 if (temp2)
7937 delete arg2;
7938 }
7939 return NULL;
7940 }
7941
7942
7943 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7944 PyObject *resultobj;
7945 wxFont *arg1 = (wxFont *) 0 ;
7946 wxString *arg2 = 0 ;
7947 bool temp2 = False ;
7948 PyObject * obj0 = 0 ;
7949 PyObject * obj1 = 0 ;
7950 char *kwnames[] = {
7951 (char *) "self",(char *) "info", NULL
7952 };
7953
7954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7956 {
7957 arg2 = wxString_in_helper(obj1);
7958 if (arg2 == NULL) SWIG_fail;
7959 temp2 = True;
7960 }
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 Py_INCREF(Py_None); resultobj = Py_None;
7969 {
7970 if (temp2)
7971 delete arg2;
7972 }
7973 return resultobj;
7974 fail:
7975 {
7976 if (temp2)
7977 delete arg2;
7978 }
7979 return NULL;
7980 }
7981
7982
7983 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7984 PyObject *resultobj;
7985 wxFont *arg1 = (wxFont *) 0 ;
7986 wxString result;
7987 PyObject * obj0 = 0 ;
7988 char *kwnames[] = {
7989 (char *) "self", NULL
7990 };
7991
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
7993 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7994 {
7995 PyThreadState* __tstate = wxPyBeginAllowThreads();
7996 result = ((wxFont const *)arg1)->GetFamilyString();
7997
7998 wxPyEndAllowThreads(__tstate);
7999 if (PyErr_Occurred()) SWIG_fail;
8000 }
8001 {
8002 #if wxUSE_UNICODE
8003 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8004 #else
8005 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8006 #endif
8007 }
8008 return resultobj;
8009 fail:
8010 return NULL;
8011 }
8012
8013
8014 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8015 PyObject *resultobj;
8016 wxFont *arg1 = (wxFont *) 0 ;
8017 wxString result;
8018 PyObject * obj0 = 0 ;
8019 char *kwnames[] = {
8020 (char *) "self", NULL
8021 };
8022
8023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8025 {
8026 PyThreadState* __tstate = wxPyBeginAllowThreads();
8027 result = ((wxFont const *)arg1)->GetStyleString();
8028
8029 wxPyEndAllowThreads(__tstate);
8030 if (PyErr_Occurred()) SWIG_fail;
8031 }
8032 {
8033 #if wxUSE_UNICODE
8034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8035 #else
8036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8037 #endif
8038 }
8039 return resultobj;
8040 fail:
8041 return NULL;
8042 }
8043
8044
8045 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8046 PyObject *resultobj;
8047 wxFont *arg1 = (wxFont *) 0 ;
8048 wxString result;
8049 PyObject * obj0 = 0 ;
8050 char *kwnames[] = {
8051 (char *) "self", NULL
8052 };
8053
8054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8055 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8056 {
8057 PyThreadState* __tstate = wxPyBeginAllowThreads();
8058 result = ((wxFont const *)arg1)->GetWeightString();
8059
8060 wxPyEndAllowThreads(__tstate);
8061 if (PyErr_Occurred()) SWIG_fail;
8062 }
8063 {
8064 #if wxUSE_UNICODE
8065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8066 #else
8067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8068 #endif
8069 }
8070 return resultobj;
8071 fail:
8072 return NULL;
8073 }
8074
8075
8076 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8077 PyObject *resultobj;
8078 wxFont *arg1 = (wxFont *) 0 ;
8079 bool arg2 = (bool) True ;
8080 PyObject * obj0 = 0 ;
8081 PyObject * obj1 = 0 ;
8082 char *kwnames[] = {
8083 (char *) "self",(char *) "no", NULL
8084 };
8085
8086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8088 if (obj1) {
8089 {
8090 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8091 if (PyErr_Occurred()) SWIG_fail;
8092 }
8093 }
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 (arg1)->SetNoAntiAliasing(arg2);
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 Py_INCREF(Py_None); resultobj = Py_None;
8102 return resultobj;
8103 fail:
8104 return NULL;
8105 }
8106
8107
8108 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8109 PyObject *resultobj;
8110 wxFont *arg1 = (wxFont *) 0 ;
8111 bool result;
8112 PyObject * obj0 = 0 ;
8113 char *kwnames[] = {
8114 (char *) "self", NULL
8115 };
8116
8117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 result = (bool)(arg1)->GetNoAntiAliasing();
8122
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 int result;
8136 char *kwnames[] = {
8137 NULL
8138 };
8139
8140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8141 {
8142 PyThreadState* __tstate = wxPyBeginAllowThreads();
8143 result = (int)wxFont::GetDefaultEncoding();
8144
8145 wxPyEndAllowThreads(__tstate);
8146 if (PyErr_Occurred()) SWIG_fail;
8147 }
8148 resultobj = SWIG_PyObj_FromInt((int)result);
8149 return resultobj;
8150 fail:
8151 return NULL;
8152 }
8153
8154
8155 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8156 PyObject *resultobj;
8157 int arg1 ;
8158 PyObject * obj0 = 0 ;
8159 char *kwnames[] = {
8160 (char *) "encoding", NULL
8161 };
8162
8163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8164 {
8165 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 Py_INCREF(Py_None); resultobj = Py_None;
8176 return resultobj;
8177 fail:
8178 return NULL;
8179 }
8180
8181
8182 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8183 PyObject *obj;
8184 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8185 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8186 Py_INCREF(obj);
8187 return Py_BuildValue((char *)"");
8188 }
8189 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8190 PyObject *resultobj;
8191 wxPyFontEnumerator *result;
8192 char *kwnames[] = {
8193 NULL
8194 };
8195
8196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8200
8201 wxPyEndAllowThreads(__tstate);
8202 if (PyErr_Occurred()) SWIG_fail;
8203 }
8204 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8205 return resultobj;
8206 fail:
8207 return NULL;
8208 }
8209
8210
8211 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8214 PyObject * obj0 = 0 ;
8215 char *kwnames[] = {
8216 (char *) "self", NULL
8217 };
8218
8219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8221 {
8222 PyThreadState* __tstate = wxPyBeginAllowThreads();
8223 delete arg1;
8224
8225 wxPyEndAllowThreads(__tstate);
8226 if (PyErr_Occurred()) SWIG_fail;
8227 }
8228 Py_INCREF(Py_None); resultobj = Py_None;
8229 return resultobj;
8230 fail:
8231 return NULL;
8232 }
8233
8234
8235 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8236 PyObject *resultobj;
8237 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8238 PyObject *arg2 = (PyObject *) 0 ;
8239 PyObject *arg3 = (PyObject *) 0 ;
8240 bool arg4 ;
8241 PyObject * obj0 = 0 ;
8242 PyObject * obj1 = 0 ;
8243 PyObject * obj2 = 0 ;
8244 PyObject * obj3 = 0 ;
8245 char *kwnames[] = {
8246 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8247 };
8248
8249 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8250 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8251 arg2 = obj1;
8252 arg3 = obj2;
8253 {
8254 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8255 if (PyErr_Occurred()) SWIG_fail;
8256 }
8257 {
8258 PyThreadState* __tstate = wxPyBeginAllowThreads();
8259 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8260
8261 wxPyEndAllowThreads(__tstate);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 Py_INCREF(Py_None); resultobj = Py_None;
8265 return resultobj;
8266 fail:
8267 return NULL;
8268 }
8269
8270
8271 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj;
8273 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8274 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8275 bool arg3 = (bool) False ;
8276 bool result;
8277 PyObject * obj0 = 0 ;
8278 PyObject * obj1 = 0 ;
8279 PyObject * obj2 = 0 ;
8280 char *kwnames[] = {
8281 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8282 };
8283
8284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8285 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8286 if (obj1) {
8287 {
8288 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 }
8292 if (obj2) {
8293 {
8294 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8295 if (PyErr_Occurred()) SWIG_fail;
8296 }
8297 }
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8301
8302 wxPyEndAllowThreads(__tstate);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8306 return resultobj;
8307 fail:
8308 return NULL;
8309 }
8310
8311
8312 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8313 PyObject *resultobj;
8314 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8315 wxString const &arg2_defvalue = wxPyEmptyString ;
8316 wxString *arg2 = (wxString *) &arg2_defvalue ;
8317 bool result;
8318 bool temp2 = False ;
8319 PyObject * obj0 = 0 ;
8320 PyObject * obj1 = 0 ;
8321 char *kwnames[] = {
8322 (char *) "self",(char *) "facename", NULL
8323 };
8324
8325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8326 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8327 if (obj1) {
8328 {
8329 arg2 = wxString_in_helper(obj1);
8330 if (arg2 == NULL) SWIG_fail;
8331 temp2 = True;
8332 }
8333 }
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8337
8338 wxPyEndAllowThreads(__tstate);
8339 if (PyErr_Occurred()) SWIG_fail;
8340 }
8341 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8342 {
8343 if (temp2)
8344 delete arg2;
8345 }
8346 return resultobj;
8347 fail:
8348 {
8349 if (temp2)
8350 delete arg2;
8351 }
8352 return NULL;
8353 }
8354
8355
8356 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8357 PyObject *resultobj;
8358 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8359 PyObject *result;
8360 PyObject * obj0 = 0 ;
8361 char *kwnames[] = {
8362 (char *) "self", NULL
8363 };
8364
8365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8367 {
8368 PyThreadState* __tstate = wxPyBeginAllowThreads();
8369 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8370
8371 wxPyEndAllowThreads(__tstate);
8372 if (PyErr_Occurred()) SWIG_fail;
8373 }
8374 resultobj = result;
8375 return resultobj;
8376 fail:
8377 return NULL;
8378 }
8379
8380
8381 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8382 PyObject *resultobj;
8383 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8384 PyObject *result;
8385 PyObject * obj0 = 0 ;
8386 char *kwnames[] = {
8387 (char *) "self", NULL
8388 };
8389
8390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 resultobj = result;
8400 return resultobj;
8401 fail:
8402 return NULL;
8403 }
8404
8405
8406 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8407 PyObject *obj;
8408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8409 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8410 Py_INCREF(obj);
8411 return Py_BuildValue((char *)"");
8412 }
8413 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8414 PyObject *resultobj;
8415 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8416 int arg2 ;
8417 PyObject * obj0 = 0 ;
8418 PyObject * obj1 = 0 ;
8419 char *kwnames[] = {
8420 (char *) "self",(char *) "Language", NULL
8421 };
8422
8423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8425 {
8426 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 if (arg1) (arg1)->Language = arg2;
8430
8431 Py_INCREF(Py_None); resultobj = Py_None;
8432 return resultobj;
8433 fail:
8434 return NULL;
8435 }
8436
8437
8438 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8439 PyObject *resultobj;
8440 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8441 int result;
8442 PyObject * obj0 = 0 ;
8443 char *kwnames[] = {
8444 (char *) "self", NULL
8445 };
8446
8447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8449 result = (int) ((arg1)->Language);
8450
8451 resultobj = SWIG_PyObj_FromInt((int)result);
8452 return resultobj;
8453 fail:
8454 return NULL;
8455 }
8456
8457
8458 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8459 PyObject *resultobj;
8460 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8461 wxString *arg2 = (wxString *) 0 ;
8462 bool temp2 = False ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 char *kwnames[] = {
8466 (char *) "self",(char *) "CanonicalName", NULL
8467 };
8468
8469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8471 {
8472 arg2 = wxString_in_helper(obj1);
8473 if (arg2 == NULL) SWIG_fail;
8474 temp2 = True;
8475 }
8476 if (arg1) (arg1)->CanonicalName = *arg2;
8477
8478 Py_INCREF(Py_None); resultobj = Py_None;
8479 {
8480 if (temp2)
8481 delete arg2;
8482 }
8483 return resultobj;
8484 fail:
8485 {
8486 if (temp2)
8487 delete arg2;
8488 }
8489 return NULL;
8490 }
8491
8492
8493 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8494 PyObject *resultobj;
8495 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8496 wxString *result;
8497 PyObject * obj0 = 0 ;
8498 char *kwnames[] = {
8499 (char *) "self", NULL
8500 };
8501
8502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8503 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8504 result = (wxString *)& ((arg1)->CanonicalName);
8505
8506 {
8507 #if wxUSE_UNICODE
8508 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8509 #else
8510 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8511 #endif
8512 }
8513 return resultobj;
8514 fail:
8515 return NULL;
8516 }
8517
8518
8519 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8520 PyObject *resultobj;
8521 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8522 wxString *arg2 = (wxString *) 0 ;
8523 bool temp2 = False ;
8524 PyObject * obj0 = 0 ;
8525 PyObject * obj1 = 0 ;
8526 char *kwnames[] = {
8527 (char *) "self",(char *) "Description", NULL
8528 };
8529
8530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8532 {
8533 arg2 = wxString_in_helper(obj1);
8534 if (arg2 == NULL) SWIG_fail;
8535 temp2 = True;
8536 }
8537 if (arg1) (arg1)->Description = *arg2;
8538
8539 Py_INCREF(Py_None); resultobj = Py_None;
8540 {
8541 if (temp2)
8542 delete arg2;
8543 }
8544 return resultobj;
8545 fail:
8546 {
8547 if (temp2)
8548 delete arg2;
8549 }
8550 return NULL;
8551 }
8552
8553
8554 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8555 PyObject *resultobj;
8556 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8557 wxString *result;
8558 PyObject * obj0 = 0 ;
8559 char *kwnames[] = {
8560 (char *) "self", NULL
8561 };
8562
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8565 result = (wxString *)& ((arg1)->Description);
8566
8567 {
8568 #if wxUSE_UNICODE
8569 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8570 #else
8571 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8572 #endif
8573 }
8574 return resultobj;
8575 fail:
8576 return NULL;
8577 }
8578
8579
8580 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8581 PyObject *obj;
8582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8583 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8584 Py_INCREF(obj);
8585 return Py_BuildValue((char *)"");
8586 }
8587 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8590 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8591 wxLocale *result;
8592 PyObject * obj0 = 0 ;
8593 PyObject * obj1 = 0 ;
8594 char *kwnames[] = {
8595 (char *) "language",(char *) "flags", NULL
8596 };
8597
8598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8599 if (obj0) {
8600 {
8601 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
8604 }
8605 if (obj1) {
8606 {
8607 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 }
8611 {
8612 PyThreadState* __tstate = wxPyBeginAllowThreads();
8613 result = (wxLocale *)new wxLocale(arg1,arg2);
8614
8615 wxPyEndAllowThreads(__tstate);
8616 if (PyErr_Occurred()) SWIG_fail;
8617 }
8618 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8619 return resultobj;
8620 fail:
8621 return NULL;
8622 }
8623
8624
8625 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj;
8627 wxLocale *arg1 = (wxLocale *) 0 ;
8628 PyObject * obj0 = 0 ;
8629 char *kwnames[] = {
8630 (char *) "self", NULL
8631 };
8632
8633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8635 {
8636 PyThreadState* __tstate = wxPyBeginAllowThreads();
8637 delete arg1;
8638
8639 wxPyEndAllowThreads(__tstate);
8640 if (PyErr_Occurred()) SWIG_fail;
8641 }
8642 Py_INCREF(Py_None); resultobj = Py_None;
8643 return resultobj;
8644 fail:
8645 return NULL;
8646 }
8647
8648
8649 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8650 PyObject *resultobj;
8651 wxLocale *arg1 = (wxLocale *) 0 ;
8652 wxString *arg2 = 0 ;
8653 wxString const &arg3_defvalue = wxPyEmptyString ;
8654 wxString *arg3 = (wxString *) &arg3_defvalue ;
8655 wxString const &arg4_defvalue = wxPyEmptyString ;
8656 wxString *arg4 = (wxString *) &arg4_defvalue ;
8657 bool arg5 = (bool) True ;
8658 bool arg6 = (bool) False ;
8659 bool result;
8660 bool temp2 = False ;
8661 bool temp3 = False ;
8662 bool temp4 = False ;
8663 PyObject * obj0 = 0 ;
8664 PyObject * obj1 = 0 ;
8665 PyObject * obj2 = 0 ;
8666 PyObject * obj3 = 0 ;
8667 PyObject * obj4 = 0 ;
8668 PyObject * obj5 = 0 ;
8669 char *kwnames[] = {
8670 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8671 };
8672
8673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8674 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8675 {
8676 arg2 = wxString_in_helper(obj1);
8677 if (arg2 == NULL) SWIG_fail;
8678 temp2 = True;
8679 }
8680 if (obj2) {
8681 {
8682 arg3 = wxString_in_helper(obj2);
8683 if (arg3 == NULL) SWIG_fail;
8684 temp3 = True;
8685 }
8686 }
8687 if (obj3) {
8688 {
8689 arg4 = wxString_in_helper(obj3);
8690 if (arg4 == NULL) SWIG_fail;
8691 temp4 = True;
8692 }
8693 }
8694 if (obj4) {
8695 {
8696 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
8697 if (PyErr_Occurred()) SWIG_fail;
8698 }
8699 }
8700 if (obj5) {
8701 {
8702 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
8703 if (PyErr_Occurred()) SWIG_fail;
8704 }
8705 }
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8709
8710 wxPyEndAllowThreads(__tstate);
8711 if (PyErr_Occurred()) SWIG_fail;
8712 }
8713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8714 {
8715 if (temp2)
8716 delete arg2;
8717 }
8718 {
8719 if (temp3)
8720 delete arg3;
8721 }
8722 {
8723 if (temp4)
8724 delete arg4;
8725 }
8726 return resultobj;
8727 fail:
8728 {
8729 if (temp2)
8730 delete arg2;
8731 }
8732 {
8733 if (temp3)
8734 delete arg3;
8735 }
8736 {
8737 if (temp4)
8738 delete arg4;
8739 }
8740 return NULL;
8741 }
8742
8743
8744 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8745 PyObject *resultobj;
8746 wxLocale *arg1 = (wxLocale *) 0 ;
8747 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8748 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8749 bool result;
8750 PyObject * obj0 = 0 ;
8751 PyObject * obj1 = 0 ;
8752 PyObject * obj2 = 0 ;
8753 char *kwnames[] = {
8754 (char *) "self",(char *) "language",(char *) "flags", NULL
8755 };
8756
8757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
8758 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8759 if (obj1) {
8760 {
8761 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8762 if (PyErr_Occurred()) SWIG_fail;
8763 }
8764 }
8765 if (obj2) {
8766 {
8767 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8768 if (PyErr_Occurred()) SWIG_fail;
8769 }
8770 }
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 result = (bool)(arg1)->Init(arg2,arg3);
8774
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8779 return resultobj;
8780 fail:
8781 return NULL;
8782 }
8783
8784
8785 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8786 PyObject *resultobj;
8787 int result;
8788 char *kwnames[] = {
8789 NULL
8790 };
8791
8792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8793 {
8794 PyThreadState* __tstate = wxPyBeginAllowThreads();
8795 result = (int)wxLocale::GetSystemLanguage();
8796
8797 wxPyEndAllowThreads(__tstate);
8798 if (PyErr_Occurred()) SWIG_fail;
8799 }
8800 resultobj = SWIG_PyObj_FromInt((int)result);
8801 return resultobj;
8802 fail:
8803 return NULL;
8804 }
8805
8806
8807 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8808 PyObject *resultobj;
8809 int result;
8810 char *kwnames[] = {
8811 NULL
8812 };
8813
8814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8815 {
8816 PyThreadState* __tstate = wxPyBeginAllowThreads();
8817 result = (int)wxLocale::GetSystemEncoding();
8818
8819 wxPyEndAllowThreads(__tstate);
8820 if (PyErr_Occurred()) SWIG_fail;
8821 }
8822 resultobj = SWIG_PyObj_FromInt((int)result);
8823 return resultobj;
8824 fail:
8825 return NULL;
8826 }
8827
8828
8829 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8830 PyObject *resultobj;
8831 wxString result;
8832 char *kwnames[] = {
8833 NULL
8834 };
8835
8836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8837 {
8838 PyThreadState* __tstate = wxPyBeginAllowThreads();
8839 result = wxLocale::GetSystemEncodingName();
8840
8841 wxPyEndAllowThreads(__tstate);
8842 if (PyErr_Occurred()) SWIG_fail;
8843 }
8844 {
8845 #if wxUSE_UNICODE
8846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8847 #else
8848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8849 #endif
8850 }
8851 return resultobj;
8852 fail:
8853 return NULL;
8854 }
8855
8856
8857 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8858 PyObject *resultobj;
8859 wxLocale *arg1 = (wxLocale *) 0 ;
8860 bool result;
8861 PyObject * obj0 = 0 ;
8862 char *kwnames[] = {
8863 (char *) "self", NULL
8864 };
8865
8866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8867 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8868 {
8869 PyThreadState* __tstate = wxPyBeginAllowThreads();
8870 result = (bool)((wxLocale const *)arg1)->IsOk();
8871
8872 wxPyEndAllowThreads(__tstate);
8873 if (PyErr_Occurred()) SWIG_fail;
8874 }
8875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8876 return resultobj;
8877 fail:
8878 return NULL;
8879 }
8880
8881
8882 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8883 PyObject *resultobj;
8884 wxLocale *arg1 = (wxLocale *) 0 ;
8885 wxString result;
8886 PyObject * obj0 = 0 ;
8887 char *kwnames[] = {
8888 (char *) "self", NULL
8889 };
8890
8891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8892 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8893 {
8894 PyThreadState* __tstate = wxPyBeginAllowThreads();
8895 result = ((wxLocale const *)arg1)->GetLocale();
8896
8897 wxPyEndAllowThreads(__tstate);
8898 if (PyErr_Occurred()) SWIG_fail;
8899 }
8900 {
8901 #if wxUSE_UNICODE
8902 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8903 #else
8904 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8905 #endif
8906 }
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj;
8915 wxLocale *arg1 = (wxLocale *) 0 ;
8916 int result;
8917 PyObject * obj0 = 0 ;
8918 char *kwnames[] = {
8919 (char *) "self", NULL
8920 };
8921
8922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8923 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8924 {
8925 PyThreadState* __tstate = wxPyBeginAllowThreads();
8926 result = (int)((wxLocale const *)arg1)->GetLanguage();
8927
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 resultobj = SWIG_PyObj_FromInt((int)result);
8932 return resultobj;
8933 fail:
8934 return NULL;
8935 }
8936
8937
8938 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8939 PyObject *resultobj;
8940 wxLocale *arg1 = (wxLocale *) 0 ;
8941 wxString result;
8942 PyObject * obj0 = 0 ;
8943 char *kwnames[] = {
8944 (char *) "self", NULL
8945 };
8946
8947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8948 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8949 {
8950 PyThreadState* __tstate = wxPyBeginAllowThreads();
8951 result = ((wxLocale const *)arg1)->GetSysName();
8952
8953 wxPyEndAllowThreads(__tstate);
8954 if (PyErr_Occurred()) SWIG_fail;
8955 }
8956 {
8957 #if wxUSE_UNICODE
8958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8959 #else
8960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8961 #endif
8962 }
8963 return resultobj;
8964 fail:
8965 return NULL;
8966 }
8967
8968
8969 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxLocale *arg1 = (wxLocale *) 0 ;
8972 wxString result;
8973 PyObject * obj0 = 0 ;
8974 char *kwnames[] = {
8975 (char *) "self", NULL
8976 };
8977
8978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8980 {
8981 PyThreadState* __tstate = wxPyBeginAllowThreads();
8982 result = ((wxLocale const *)arg1)->GetCanonicalName();
8983
8984 wxPyEndAllowThreads(__tstate);
8985 if (PyErr_Occurred()) SWIG_fail;
8986 }
8987 {
8988 #if wxUSE_UNICODE
8989 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8990 #else
8991 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8992 #endif
8993 }
8994 return resultobj;
8995 fail:
8996 return NULL;
8997 }
8998
8999
9000 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9001 PyObject *resultobj;
9002 wxString *arg1 = 0 ;
9003 bool temp1 = False ;
9004 PyObject * obj0 = 0 ;
9005 char *kwnames[] = {
9006 (char *) "prefix", NULL
9007 };
9008
9009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9010 {
9011 arg1 = wxString_in_helper(obj0);
9012 if (arg1 == NULL) SWIG_fail;
9013 temp1 = True;
9014 }
9015 {
9016 PyThreadState* __tstate = wxPyBeginAllowThreads();
9017 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9018
9019 wxPyEndAllowThreads(__tstate);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 Py_INCREF(Py_None); resultobj = Py_None;
9023 {
9024 if (temp1)
9025 delete arg1;
9026 }
9027 return resultobj;
9028 fail:
9029 {
9030 if (temp1)
9031 delete arg1;
9032 }
9033 return NULL;
9034 }
9035
9036
9037 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9038 PyObject *resultobj;
9039 wxLocale *arg1 = (wxLocale *) 0 ;
9040 wxString *arg2 = 0 ;
9041 bool result;
9042 bool temp2 = False ;
9043 PyObject * obj0 = 0 ;
9044 PyObject * obj1 = 0 ;
9045 char *kwnames[] = {
9046 (char *) "self",(char *) "szDomain", NULL
9047 };
9048
9049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9051 {
9052 arg2 = wxString_in_helper(obj1);
9053 if (arg2 == NULL) SWIG_fail;
9054 temp2 = True;
9055 }
9056 {
9057 PyThreadState* __tstate = wxPyBeginAllowThreads();
9058 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9059
9060 wxPyEndAllowThreads(__tstate);
9061 if (PyErr_Occurred()) SWIG_fail;
9062 }
9063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9064 {
9065 if (temp2)
9066 delete arg2;
9067 }
9068 return resultobj;
9069 fail:
9070 {
9071 if (temp2)
9072 delete arg2;
9073 }
9074 return NULL;
9075 }
9076
9077
9078 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj;
9080 wxLocale *arg1 = (wxLocale *) 0 ;
9081 wxString *arg2 = 0 ;
9082 bool result;
9083 bool temp2 = False ;
9084 PyObject * obj0 = 0 ;
9085 PyObject * obj1 = 0 ;
9086 char *kwnames[] = {
9087 (char *) "self",(char *) "szDomain", NULL
9088 };
9089
9090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9092 {
9093 arg2 = wxString_in_helper(obj1);
9094 if (arg2 == NULL) SWIG_fail;
9095 temp2 = True;
9096 }
9097 {
9098 PyThreadState* __tstate = wxPyBeginAllowThreads();
9099 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9100
9101 wxPyEndAllowThreads(__tstate);
9102 if (PyErr_Occurred()) SWIG_fail;
9103 }
9104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9105 {
9106 if (temp2)
9107 delete arg2;
9108 }
9109 return resultobj;
9110 fail:
9111 {
9112 if (temp2)
9113 delete arg2;
9114 }
9115 return NULL;
9116 }
9117
9118
9119 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9120 PyObject *resultobj;
9121 int arg1 ;
9122 wxLanguageInfo *result;
9123 PyObject * obj0 = 0 ;
9124 char *kwnames[] = {
9125 (char *) "lang", NULL
9126 };
9127
9128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9129 {
9130 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9131 if (PyErr_Occurred()) SWIG_fail;
9132 }
9133 {
9134 PyThreadState* __tstate = wxPyBeginAllowThreads();
9135 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9136
9137 wxPyEndAllowThreads(__tstate);
9138 if (PyErr_Occurred()) SWIG_fail;
9139 }
9140 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9141 return resultobj;
9142 fail:
9143 return NULL;
9144 }
9145
9146
9147 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9148 PyObject *resultobj;
9149 int arg1 ;
9150 wxString result;
9151 PyObject * obj0 = 0 ;
9152 char *kwnames[] = {
9153 (char *) "lang", NULL
9154 };
9155
9156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9157 {
9158 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9159 if (PyErr_Occurred()) SWIG_fail;
9160 }
9161 {
9162 PyThreadState* __tstate = wxPyBeginAllowThreads();
9163 result = wxLocale::GetLanguageName(arg1);
9164
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 {
9169 #if wxUSE_UNICODE
9170 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9171 #else
9172 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9173 #endif
9174 }
9175 return resultobj;
9176 fail:
9177 return NULL;
9178 }
9179
9180
9181 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9182 PyObject *resultobj;
9183 wxString *arg1 = 0 ;
9184 wxLanguageInfo *result;
9185 bool temp1 = False ;
9186 PyObject * obj0 = 0 ;
9187 char *kwnames[] = {
9188 (char *) "locale", NULL
9189 };
9190
9191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9192 {
9193 arg1 = wxString_in_helper(obj0);
9194 if (arg1 == NULL) SWIG_fail;
9195 temp1 = True;
9196 }
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9200
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9205 {
9206 if (temp1)
9207 delete arg1;
9208 }
9209 return resultobj;
9210 fail:
9211 {
9212 if (temp1)
9213 delete arg1;
9214 }
9215 return NULL;
9216 }
9217
9218
9219 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9220 PyObject *resultobj;
9221 wxLanguageInfo *arg1 = 0 ;
9222 PyObject * obj0 = 0 ;
9223 char *kwnames[] = {
9224 (char *) "info", NULL
9225 };
9226
9227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9228 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9229 if (arg1 == NULL) {
9230 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9231 }
9232 {
9233 PyThreadState* __tstate = wxPyBeginAllowThreads();
9234 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9235
9236 wxPyEndAllowThreads(__tstate);
9237 if (PyErr_Occurred()) SWIG_fail;
9238 }
9239 Py_INCREF(Py_None); resultobj = Py_None;
9240 return resultobj;
9241 fail:
9242 return NULL;
9243 }
9244
9245
9246 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9247 PyObject *resultobj;
9248 wxLocale *arg1 = (wxLocale *) 0 ;
9249 wxString *arg2 = 0 ;
9250 wxString const &arg3_defvalue = wxPyEmptyString ;
9251 wxString *arg3 = (wxString *) &arg3_defvalue ;
9252 wxString result;
9253 bool temp2 = False ;
9254 bool temp3 = False ;
9255 PyObject * obj0 = 0 ;
9256 PyObject * obj1 = 0 ;
9257 PyObject * obj2 = 0 ;
9258 char *kwnames[] = {
9259 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9260 };
9261
9262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9264 {
9265 arg2 = wxString_in_helper(obj1);
9266 if (arg2 == NULL) SWIG_fail;
9267 temp2 = True;
9268 }
9269 if (obj2) {
9270 {
9271 arg3 = wxString_in_helper(obj2);
9272 if (arg3 == NULL) SWIG_fail;
9273 temp3 = True;
9274 }
9275 }
9276 {
9277 PyThreadState* __tstate = wxPyBeginAllowThreads();
9278 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9279
9280 wxPyEndAllowThreads(__tstate);
9281 if (PyErr_Occurred()) SWIG_fail;
9282 }
9283 {
9284 #if wxUSE_UNICODE
9285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9286 #else
9287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9288 #endif
9289 }
9290 {
9291 if (temp2)
9292 delete arg2;
9293 }
9294 {
9295 if (temp3)
9296 delete arg3;
9297 }
9298 return resultobj;
9299 fail:
9300 {
9301 if (temp2)
9302 delete arg2;
9303 }
9304 {
9305 if (temp3)
9306 delete arg3;
9307 }
9308 return NULL;
9309 }
9310
9311
9312 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9313 PyObject *resultobj;
9314 wxLocale *arg1 = (wxLocale *) 0 ;
9315 wxString *result;
9316 PyObject * obj0 = 0 ;
9317 char *kwnames[] = {
9318 (char *) "self", NULL
9319 };
9320
9321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9322 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9323 {
9324 PyThreadState* __tstate = wxPyBeginAllowThreads();
9325 {
9326 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9327 result = (wxString *) &_result_ref;
9328 }
9329
9330 wxPyEndAllowThreads(__tstate);
9331 if (PyErr_Occurred()) SWIG_fail;
9332 }
9333 {
9334 #if wxUSE_UNICODE
9335 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9336 #else
9337 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9338 #endif
9339 }
9340 return resultobj;
9341 fail:
9342 return NULL;
9343 }
9344
9345
9346 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9347 PyObject *obj;
9348 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9349 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9350 Py_INCREF(obj);
9351 return Py_BuildValue((char *)"");
9352 }
9353 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj;
9355 wxLocale *result;
9356 char *kwnames[] = {
9357 NULL
9358 };
9359
9360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9361 {
9362 PyThreadState* __tstate = wxPyBeginAllowThreads();
9363 result = (wxLocale *)wxGetLocale();
9364
9365 wxPyEndAllowThreads(__tstate);
9366 if (PyErr_Occurred()) SWIG_fail;
9367 }
9368 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9376 PyObject *resultobj;
9377 wxString *arg1 = 0 ;
9378 wxString result;
9379 bool temp1 = False ;
9380 PyObject * obj0 = 0 ;
9381
9382 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9383 {
9384 arg1 = wxString_in_helper(obj0);
9385 if (arg1 == NULL) SWIG_fail;
9386 temp1 = True;
9387 }
9388 {
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 result = wxGetTranslation((wxString const &)*arg1);
9391
9392 wxPyEndAllowThreads(__tstate);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 {
9396 #if wxUSE_UNICODE
9397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9398 #else
9399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9400 #endif
9401 }
9402 {
9403 if (temp1)
9404 delete arg1;
9405 }
9406 return resultobj;
9407 fail:
9408 {
9409 if (temp1)
9410 delete arg1;
9411 }
9412 return NULL;
9413 }
9414
9415
9416 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9417 PyObject *resultobj;
9418 wxString *arg1 = 0 ;
9419 wxString *arg2 = 0 ;
9420 size_t arg3 ;
9421 wxString result;
9422 bool temp1 = False ;
9423 bool temp2 = False ;
9424 PyObject * obj0 = 0 ;
9425 PyObject * obj1 = 0 ;
9426 PyObject * obj2 = 0 ;
9427
9428 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9429 {
9430 arg1 = wxString_in_helper(obj0);
9431 if (arg1 == NULL) SWIG_fail;
9432 temp1 = True;
9433 }
9434 {
9435 arg2 = wxString_in_helper(obj1);
9436 if (arg2 == NULL) SWIG_fail;
9437 temp2 = True;
9438 }
9439 {
9440 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
9441 if (PyErr_Occurred()) SWIG_fail;
9442 }
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 {
9451 #if wxUSE_UNICODE
9452 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9453 #else
9454 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9455 #endif
9456 }
9457 {
9458 if (temp1)
9459 delete arg1;
9460 }
9461 {
9462 if (temp2)
9463 delete arg2;
9464 }
9465 return resultobj;
9466 fail:
9467 {
9468 if (temp1)
9469 delete arg1;
9470 }
9471 {
9472 if (temp2)
9473 delete arg2;
9474 }
9475 return NULL;
9476 }
9477
9478
9479 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9480 int argc;
9481 PyObject *argv[4];
9482 int ii;
9483
9484 argc = PyObject_Length(args);
9485 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9486 argv[ii] = PyTuple_GetItem(args,ii);
9487 }
9488 if (argc == 1) {
9489 int _v;
9490 {
9491 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9492 }
9493 if (_v) {
9494 return _wrap_GetTranslation__SWIG_0(self,args);
9495 }
9496 }
9497 if (argc == 3) {
9498 int _v;
9499 {
9500 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9501 }
9502 if (_v) {
9503 {
9504 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9505 }
9506 if (_v) {
9507 {
9508 SWIG_PyObj_AsUnsignedLong(argv[2]);
9509 if (PyErr_Occurred()) {
9510 _v = 0;
9511 PyErr_Clear();
9512 } else {
9513 _v = 1;
9514 }
9515 }
9516 if (_v) {
9517 return _wrap_GetTranslation__SWIG_1(self,args);
9518 }
9519 }
9520 }
9521 }
9522
9523 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9524 return NULL;
9525 }
9526
9527
9528 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj;
9530 wxEncodingConverter *result;
9531 char *kwnames[] = {
9532 NULL
9533 };
9534
9535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9536 {
9537 PyThreadState* __tstate = wxPyBeginAllowThreads();
9538 result = (wxEncodingConverter *)new wxEncodingConverter();
9539
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9544 return resultobj;
9545 fail:
9546 return NULL;
9547 }
9548
9549
9550 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9551 PyObject *resultobj;
9552 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9553 PyObject * obj0 = 0 ;
9554 char *kwnames[] = {
9555 (char *) "self", NULL
9556 };
9557
9558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9559 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9560 {
9561 PyThreadState* __tstate = wxPyBeginAllowThreads();
9562 delete arg1;
9563
9564 wxPyEndAllowThreads(__tstate);
9565 if (PyErr_Occurred()) SWIG_fail;
9566 }
9567 Py_INCREF(Py_None); resultobj = Py_None;
9568 return resultobj;
9569 fail:
9570 return NULL;
9571 }
9572
9573
9574 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9575 PyObject *resultobj;
9576 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9577 int arg2 ;
9578 int arg3 ;
9579 int arg4 = (int) wxCONVERT_STRICT ;
9580 bool result;
9581 PyObject * obj0 = 0 ;
9582 PyObject * obj1 = 0 ;
9583 PyObject * obj2 = 0 ;
9584 PyObject * obj3 = 0 ;
9585 char *kwnames[] = {
9586 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9587 };
9588
9589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9590 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9591 {
9592 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 {
9596 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
9597 if (PyErr_Occurred()) SWIG_fail;
9598 }
9599 if (obj3) {
9600 {
9601 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9602 if (PyErr_Occurred()) SWIG_fail;
9603 }
9604 }
9605 {
9606 PyThreadState* __tstate = wxPyBeginAllowThreads();
9607 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9608
9609 wxPyEndAllowThreads(__tstate);
9610 if (PyErr_Occurred()) SWIG_fail;
9611 }
9612 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9613 return resultobj;
9614 fail:
9615 return NULL;
9616 }
9617
9618
9619 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj;
9621 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9622 wxString *arg2 = 0 ;
9623 wxString result;
9624 bool temp2 = False ;
9625 PyObject * obj0 = 0 ;
9626 PyObject * obj1 = 0 ;
9627 char *kwnames[] = {
9628 (char *) "self",(char *) "input", NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9633 {
9634 arg2 = wxString_in_helper(obj1);
9635 if (arg2 == NULL) SWIG_fail;
9636 temp2 = True;
9637 }
9638 {
9639 PyThreadState* __tstate = wxPyBeginAllowThreads();
9640 result = (arg1)->Convert((wxString const &)*arg2);
9641
9642 wxPyEndAllowThreads(__tstate);
9643 if (PyErr_Occurred()) SWIG_fail;
9644 }
9645 {
9646 #if wxUSE_UNICODE
9647 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9648 #else
9649 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9650 #endif
9651 }
9652 {
9653 if (temp2)
9654 delete arg2;
9655 }
9656 return resultobj;
9657 fail:
9658 {
9659 if (temp2)
9660 delete arg2;
9661 }
9662 return NULL;
9663 }
9664
9665
9666 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9667 PyObject *resultobj;
9668 int arg1 ;
9669 int arg2 = (int) wxPLATFORM_CURRENT ;
9670 wxFontEncodingArray result;
9671 PyObject * obj0 = 0 ;
9672 PyObject * obj1 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "enc",(char *) "platform", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9678 {
9679 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 if (obj1) {
9683 {
9684 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 }
9688 {
9689 PyThreadState* __tstate = wxPyBeginAllowThreads();
9690 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9691
9692 wxPyEndAllowThreads(__tstate);
9693 if (PyErr_Occurred()) SWIG_fail;
9694 }
9695 {
9696 resultobj = PyList_New(0);
9697 for (size_t i=0; i < (&result)->GetCount(); i++) {
9698 PyObject* number = PyInt_FromLong((&result)->Item(i));
9699 PyList_Append(resultobj, number);
9700 Py_DECREF(number);
9701 }
9702 }
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9710 PyObject *resultobj;
9711 int arg1 ;
9712 wxFontEncodingArray result;
9713 PyObject * obj0 = 0 ;
9714 char *kwnames[] = {
9715 (char *) "enc", NULL
9716 };
9717
9718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
9719 {
9720 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9726
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 {
9731 resultobj = PyList_New(0);
9732 for (size_t i=0; i < (&result)->GetCount(); i++) {
9733 PyObject* number = PyInt_FromLong((&result)->Item(i));
9734 PyList_Append(resultobj, number);
9735 Py_DECREF(number);
9736 }
9737 }
9738 return resultobj;
9739 fail:
9740 return NULL;
9741 }
9742
9743
9744 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9745 PyObject *resultobj;
9746 int arg1 ;
9747 int arg2 ;
9748 bool result;
9749 PyObject * obj0 = 0 ;
9750 PyObject * obj1 = 0 ;
9751 char *kwnames[] = {
9752 (char *) "encIn",(char *) "encOut", NULL
9753 };
9754
9755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
9756 {
9757 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9758 if (PyErr_Occurred()) SWIG_fail;
9759 }
9760 {
9761 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9762 if (PyErr_Occurred()) SWIG_fail;
9763 }
9764 {
9765 PyThreadState* __tstate = wxPyBeginAllowThreads();
9766 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9767
9768 wxPyEndAllowThreads(__tstate);
9769 if (PyErr_Occurred()) SWIG_fail;
9770 }
9771 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9772 return resultobj;
9773 fail:
9774 return NULL;
9775 }
9776
9777
9778 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9779 PyObject *obj;
9780 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9781 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9782 Py_INCREF(obj);
9783 return Py_BuildValue((char *)"");
9784 }
9785 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9786 PyObject *resultobj;
9787 wxDC *arg1 = (wxDC *) 0 ;
9788 PyObject * obj0 = 0 ;
9789 char *kwnames[] = {
9790 (char *) "self", NULL
9791 };
9792
9793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9795 {
9796 PyThreadState* __tstate = wxPyBeginAllowThreads();
9797 delete arg1;
9798
9799 wxPyEndAllowThreads(__tstate);
9800 if (PyErr_Occurred()) SWIG_fail;
9801 }
9802 Py_INCREF(Py_None); resultobj = Py_None;
9803 return resultobj;
9804 fail:
9805 return NULL;
9806 }
9807
9808
9809 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9810 PyObject *resultobj;
9811 wxDC *arg1 = (wxDC *) 0 ;
9812 PyObject * obj0 = 0 ;
9813 char *kwnames[] = {
9814 (char *) "self", NULL
9815 };
9816
9817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9818 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 (arg1)->BeginDrawing();
9822
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 Py_INCREF(Py_None); resultobj = Py_None;
9827 return resultobj;
9828 fail:
9829 return NULL;
9830 }
9831
9832
9833 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9834 PyObject *resultobj;
9835 wxDC *arg1 = (wxDC *) 0 ;
9836 PyObject * obj0 = 0 ;
9837 char *kwnames[] = {
9838 (char *) "self", NULL
9839 };
9840
9841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9842 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 (arg1)->EndDrawing();
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 Py_INCREF(Py_None); resultobj = Py_None;
9851 return resultobj;
9852 fail:
9853 return NULL;
9854 }
9855
9856
9857 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9858 PyObject *resultobj;
9859 wxDC *arg1 = (wxDC *) 0 ;
9860 int arg2 ;
9861 int arg3 ;
9862 wxColour *arg4 = 0 ;
9863 int arg5 = (int) wxFLOOD_SURFACE ;
9864 bool result;
9865 wxColour temp4 ;
9866 PyObject * obj0 = 0 ;
9867 PyObject * obj1 = 0 ;
9868 PyObject * obj2 = 0 ;
9869 PyObject * obj3 = 0 ;
9870 PyObject * obj4 = 0 ;
9871 char *kwnames[] = {
9872 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9873 };
9874
9875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9877 {
9878 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 {
9882 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 {
9886 arg4 = &temp4;
9887 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9888 }
9889 if (obj4) {
9890 {
9891 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 }
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9898
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9903 return resultobj;
9904 fail:
9905 return NULL;
9906 }
9907
9908
9909 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9910 PyObject *resultobj;
9911 wxDC *arg1 = (wxDC *) 0 ;
9912 wxPoint *arg2 = 0 ;
9913 wxColour *arg3 = 0 ;
9914 int arg4 = (int) wxFLOOD_SURFACE ;
9915 bool result;
9916 wxPoint temp2 ;
9917 wxColour temp3 ;
9918 PyObject * obj0 = 0 ;
9919 PyObject * obj1 = 0 ;
9920 PyObject * obj2 = 0 ;
9921 PyObject * obj3 = 0 ;
9922 char *kwnames[] = {
9923 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9924 };
9925
9926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9928 {
9929 arg2 = &temp2;
9930 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9931 }
9932 {
9933 arg3 = &temp3;
9934 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9935 }
9936 if (obj3) {
9937 {
9938 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9939 if (PyErr_Occurred()) SWIG_fail;
9940 }
9941 }
9942 {
9943 PyThreadState* __tstate = wxPyBeginAllowThreads();
9944 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9945
9946 wxPyEndAllowThreads(__tstate);
9947 if (PyErr_Occurred()) SWIG_fail;
9948 }
9949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9950 return resultobj;
9951 fail:
9952 return NULL;
9953 }
9954
9955
9956 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9957 PyObject *resultobj;
9958 wxDC *arg1 = (wxDC *) 0 ;
9959 int arg2 ;
9960 int arg3 ;
9961 wxColour result;
9962 PyObject * obj0 = 0 ;
9963 PyObject * obj1 = 0 ;
9964 PyObject * obj2 = 0 ;
9965 char *kwnames[] = {
9966 (char *) "self",(char *) "x",(char *) "y", NULL
9967 };
9968
9969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
9970 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9971 {
9972 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9973 if (PyErr_Occurred()) SWIG_fail;
9974 }
9975 {
9976 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9977 if (PyErr_Occurred()) SWIG_fail;
9978 }
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = wxDC_GetPixelXY(arg1,arg2,arg3);
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 {
9987 wxColour * resultptr;
9988 resultptr = new wxColour((wxColour &) result);
9989 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
9990 }
9991 return resultobj;
9992 fail:
9993 return NULL;
9994 }
9995
9996
9997 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
9998 PyObject *resultobj;
9999 wxDC *arg1 = (wxDC *) 0 ;
10000 wxPoint *arg2 = 0 ;
10001 wxColour result;
10002 wxPoint temp2 ;
10003 PyObject * obj0 = 0 ;
10004 PyObject * obj1 = 0 ;
10005 char *kwnames[] = {
10006 (char *) "self",(char *) "pt", NULL
10007 };
10008
10009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10011 {
10012 arg2 = &temp2;
10013 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10014 }
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10018
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 {
10023 wxColour * resultptr;
10024 resultptr = new wxColour((wxColour &) result);
10025 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10026 }
10027 return resultobj;
10028 fail:
10029 return NULL;
10030 }
10031
10032
10033 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10034 PyObject *resultobj;
10035 wxDC *arg1 = (wxDC *) 0 ;
10036 int arg2 ;
10037 int arg3 ;
10038 int arg4 ;
10039 int arg5 ;
10040 PyObject * obj0 = 0 ;
10041 PyObject * obj1 = 0 ;
10042 PyObject * obj2 = 0 ;
10043 PyObject * obj3 = 0 ;
10044 PyObject * obj4 = 0 ;
10045 char *kwnames[] = {
10046 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10050 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10051 {
10052 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 {
10056 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10057 if (PyErr_Occurred()) SWIG_fail;
10058 }
10059 {
10060 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10061 if (PyErr_Occurred()) SWIG_fail;
10062 }
10063 {
10064 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10065 if (PyErr_Occurred()) SWIG_fail;
10066 }
10067 {
10068 PyThreadState* __tstate = wxPyBeginAllowThreads();
10069 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10070
10071 wxPyEndAllowThreads(__tstate);
10072 if (PyErr_Occurred()) SWIG_fail;
10073 }
10074 Py_INCREF(Py_None); resultobj = Py_None;
10075 return resultobj;
10076 fail:
10077 return NULL;
10078 }
10079
10080
10081 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10082 PyObject *resultobj;
10083 wxDC *arg1 = (wxDC *) 0 ;
10084 wxPoint *arg2 = 0 ;
10085 wxPoint *arg3 = 0 ;
10086 wxPoint temp2 ;
10087 wxPoint temp3 ;
10088 PyObject * obj0 = 0 ;
10089 PyObject * obj1 = 0 ;
10090 PyObject * obj2 = 0 ;
10091 char *kwnames[] = {
10092 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10093 };
10094
10095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10097 {
10098 arg2 = &temp2;
10099 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10100 }
10101 {
10102 arg3 = &temp3;
10103 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10104 }
10105 {
10106 PyThreadState* __tstate = wxPyBeginAllowThreads();
10107 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10108
10109 wxPyEndAllowThreads(__tstate);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 }
10112 Py_INCREF(Py_None); resultobj = Py_None;
10113 return resultobj;
10114 fail:
10115 return NULL;
10116 }
10117
10118
10119 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10120 PyObject *resultobj;
10121 wxDC *arg1 = (wxDC *) 0 ;
10122 int arg2 ;
10123 int arg3 ;
10124 PyObject * obj0 = 0 ;
10125 PyObject * obj1 = 0 ;
10126 PyObject * obj2 = 0 ;
10127 char *kwnames[] = {
10128 (char *) "self",(char *) "x",(char *) "y", NULL
10129 };
10130
10131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10133 {
10134 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 {
10138 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10139 if (PyErr_Occurred()) SWIG_fail;
10140 }
10141 {
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 (arg1)->CrossHair(arg2,arg3);
10144
10145 wxPyEndAllowThreads(__tstate);
10146 if (PyErr_Occurred()) SWIG_fail;
10147 }
10148 Py_INCREF(Py_None); resultobj = Py_None;
10149 return resultobj;
10150 fail:
10151 return NULL;
10152 }
10153
10154
10155 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10156 PyObject *resultobj;
10157 wxDC *arg1 = (wxDC *) 0 ;
10158 wxPoint *arg2 = 0 ;
10159 wxPoint temp2 ;
10160 PyObject * obj0 = 0 ;
10161 PyObject * obj1 = 0 ;
10162 char *kwnames[] = {
10163 (char *) "self",(char *) "pt", NULL
10164 };
10165
10166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10168 {
10169 arg2 = &temp2;
10170 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10171 }
10172 {
10173 PyThreadState* __tstate = wxPyBeginAllowThreads();
10174 (arg1)->CrossHair((wxPoint const &)*arg2);
10175
10176 wxPyEndAllowThreads(__tstate);
10177 if (PyErr_Occurred()) SWIG_fail;
10178 }
10179 Py_INCREF(Py_None); resultobj = Py_None;
10180 return resultobj;
10181 fail:
10182 return NULL;
10183 }
10184
10185
10186 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10187 PyObject *resultobj;
10188 wxDC *arg1 = (wxDC *) 0 ;
10189 int arg2 ;
10190 int arg3 ;
10191 int arg4 ;
10192 int arg5 ;
10193 int arg6 ;
10194 int arg7 ;
10195 PyObject * obj0 = 0 ;
10196 PyObject * obj1 = 0 ;
10197 PyObject * obj2 = 0 ;
10198 PyObject * obj3 = 0 ;
10199 PyObject * obj4 = 0 ;
10200 PyObject * obj5 = 0 ;
10201 PyObject * obj6 = 0 ;
10202 char *kwnames[] = {
10203 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10204 };
10205
10206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10207 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10208 {
10209 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10210 if (PyErr_Occurred()) SWIG_fail;
10211 }
10212 {
10213 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10214 if (PyErr_Occurred()) SWIG_fail;
10215 }
10216 {
10217 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 {
10221 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 }
10224 {
10225 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10226 if (PyErr_Occurred()) SWIG_fail;
10227 }
10228 {
10229 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10230 if (PyErr_Occurred()) SWIG_fail;
10231 }
10232 {
10233 PyThreadState* __tstate = wxPyBeginAllowThreads();
10234 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10235
10236 wxPyEndAllowThreads(__tstate);
10237 if (PyErr_Occurred()) SWIG_fail;
10238 }
10239 Py_INCREF(Py_None); resultobj = Py_None;
10240 return resultobj;
10241 fail:
10242 return NULL;
10243 }
10244
10245
10246 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10247 PyObject *resultobj;
10248 wxDC *arg1 = (wxDC *) 0 ;
10249 wxPoint *arg2 = 0 ;
10250 wxPoint *arg3 = 0 ;
10251 wxPoint *arg4 = 0 ;
10252 wxPoint temp2 ;
10253 wxPoint temp3 ;
10254 wxPoint temp4 ;
10255 PyObject * obj0 = 0 ;
10256 PyObject * obj1 = 0 ;
10257 PyObject * obj2 = 0 ;
10258 PyObject * obj3 = 0 ;
10259 char *kwnames[] = {
10260 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10261 };
10262
10263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10265 {
10266 arg2 = &temp2;
10267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10268 }
10269 {
10270 arg3 = &temp3;
10271 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10272 }
10273 {
10274 arg4 = &temp4;
10275 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10276 }
10277 {
10278 PyThreadState* __tstate = wxPyBeginAllowThreads();
10279 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10280
10281 wxPyEndAllowThreads(__tstate);
10282 if (PyErr_Occurred()) SWIG_fail;
10283 }
10284 Py_INCREF(Py_None); resultobj = Py_None;
10285 return resultobj;
10286 fail:
10287 return NULL;
10288 }
10289
10290
10291 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10292 PyObject *resultobj;
10293 wxDC *arg1 = (wxDC *) 0 ;
10294 int arg2 ;
10295 int arg3 ;
10296 int arg4 ;
10297 int arg5 ;
10298 PyObject * obj0 = 0 ;
10299 PyObject * obj1 = 0 ;
10300 PyObject * obj2 = 0 ;
10301 PyObject * obj3 = 0 ;
10302 PyObject * obj4 = 0 ;
10303 char *kwnames[] = {
10304 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10305 };
10306
10307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10309 {
10310 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 {
10314 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 {
10318 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 }
10321 {
10322 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10323 if (PyErr_Occurred()) SWIG_fail;
10324 }
10325 {
10326 PyThreadState* __tstate = wxPyBeginAllowThreads();
10327 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10328
10329 wxPyEndAllowThreads(__tstate);
10330 if (PyErr_Occurred()) SWIG_fail;
10331 }
10332 Py_INCREF(Py_None); resultobj = Py_None;
10333 return resultobj;
10334 fail:
10335 return NULL;
10336 }
10337
10338
10339 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10340 PyObject *resultobj;
10341 wxDC *arg1 = (wxDC *) 0 ;
10342 wxRect *arg2 = 0 ;
10343 wxRect temp2 ;
10344 PyObject * obj0 = 0 ;
10345 PyObject * obj1 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "self",(char *) "rect", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10351 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10352 {
10353 arg2 = &temp2;
10354 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10355 }
10356 {
10357 PyThreadState* __tstate = wxPyBeginAllowThreads();
10358 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10359
10360 wxPyEndAllowThreads(__tstate);
10361 if (PyErr_Occurred()) SWIG_fail;
10362 }
10363 Py_INCREF(Py_None); resultobj = Py_None;
10364 return resultobj;
10365 fail:
10366 return NULL;
10367 }
10368
10369
10370 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10371 PyObject *resultobj;
10372 wxDC *arg1 = (wxDC *) 0 ;
10373 int arg2 ;
10374 int arg3 ;
10375 int arg4 ;
10376 int arg5 ;
10377 double arg6 ;
10378 double arg7 ;
10379 PyObject * obj0 = 0 ;
10380 PyObject * obj1 = 0 ;
10381 PyObject * obj2 = 0 ;
10382 PyObject * obj3 = 0 ;
10383 PyObject * obj4 = 0 ;
10384 PyObject * obj5 = 0 ;
10385 PyObject * obj6 = 0 ;
10386 char *kwnames[] = {
10387 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10388 };
10389
10390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10391 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10392 {
10393 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 }
10396 {
10397 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 {
10401 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10402 if (PyErr_Occurred()) SWIG_fail;
10403 }
10404 {
10405 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10406 if (PyErr_Occurred()) SWIG_fail;
10407 }
10408 {
10409 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10410 if (PyErr_Occurred()) SWIG_fail;
10411 }
10412 {
10413 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
10414 if (PyErr_Occurred()) SWIG_fail;
10415 }
10416 {
10417 PyThreadState* __tstate = wxPyBeginAllowThreads();
10418 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10419
10420 wxPyEndAllowThreads(__tstate);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 }
10423 Py_INCREF(Py_None); resultobj = Py_None;
10424 return resultobj;
10425 fail:
10426 return NULL;
10427 }
10428
10429
10430 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10431 PyObject *resultobj;
10432 wxDC *arg1 = (wxDC *) 0 ;
10433 wxPoint *arg2 = 0 ;
10434 wxSize *arg3 = 0 ;
10435 double arg4 ;
10436 double arg5 ;
10437 wxPoint temp2 ;
10438 wxSize temp3 ;
10439 PyObject * obj0 = 0 ;
10440 PyObject * obj1 = 0 ;
10441 PyObject * obj2 = 0 ;
10442 PyObject * obj3 = 0 ;
10443 PyObject * obj4 = 0 ;
10444 char *kwnames[] = {
10445 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10446 };
10447
10448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10449 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10450 {
10451 arg2 = &temp2;
10452 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10453 }
10454 {
10455 arg3 = &temp3;
10456 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10457 }
10458 {
10459 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 {
10463 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
10464 if (PyErr_Occurred()) SWIG_fail;
10465 }
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10469
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 Py_INCREF(Py_None); resultobj = Py_None;
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj;
10482 wxDC *arg1 = (wxDC *) 0 ;
10483 int arg2 ;
10484 int arg3 ;
10485 PyObject * obj0 = 0 ;
10486 PyObject * obj1 = 0 ;
10487 PyObject * obj2 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self",(char *) "x",(char *) "y", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10494 {
10495 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10496 if (PyErr_Occurred()) SWIG_fail;
10497 }
10498 {
10499 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 {
10503 PyThreadState* __tstate = wxPyBeginAllowThreads();
10504 (arg1)->DrawPoint(arg2,arg3);
10505
10506 wxPyEndAllowThreads(__tstate);
10507 if (PyErr_Occurred()) SWIG_fail;
10508 }
10509 Py_INCREF(Py_None); resultobj = Py_None;
10510 return resultobj;
10511 fail:
10512 return NULL;
10513 }
10514
10515
10516 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10517 PyObject *resultobj;
10518 wxDC *arg1 = (wxDC *) 0 ;
10519 wxPoint *arg2 = 0 ;
10520 wxPoint temp2 ;
10521 PyObject * obj0 = 0 ;
10522 PyObject * obj1 = 0 ;
10523 char *kwnames[] = {
10524 (char *) "self",(char *) "pt", NULL
10525 };
10526
10527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10528 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10529 {
10530 arg2 = &temp2;
10531 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10532 }
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 (arg1)->DrawPoint((wxPoint const &)*arg2);
10536
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 Py_INCREF(Py_None); resultobj = Py_None;
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj;
10549 wxDC *arg1 = (wxDC *) 0 ;
10550 int arg2 ;
10551 int arg3 ;
10552 int arg4 ;
10553 int arg5 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 PyObject * obj2 = 0 ;
10557 PyObject * obj3 = 0 ;
10558 PyObject * obj4 = 0 ;
10559 char *kwnames[] = {
10560 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10561 };
10562
10563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10565 {
10566 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 {
10570 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 {
10574 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 {
10578 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 {
10582 PyThreadState* __tstate = wxPyBeginAllowThreads();
10583 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10584
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 Py_INCREF(Py_None); resultobj = Py_None;
10589 return resultobj;
10590 fail:
10591 return NULL;
10592 }
10593
10594
10595 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj;
10597 wxDC *arg1 = (wxDC *) 0 ;
10598 wxPoint *arg2 = 0 ;
10599 wxSize *arg3 = 0 ;
10600 wxPoint temp2 ;
10601 wxSize temp3 ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 PyObject * obj2 = 0 ;
10605 char *kwnames[] = {
10606 (char *) "self",(char *) "pt",(char *) "sz", NULL
10607 };
10608
10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10611 {
10612 arg2 = &temp2;
10613 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10614 }
10615 {
10616 arg3 = &temp3;
10617 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10618 }
10619 {
10620 PyThreadState* __tstate = wxPyBeginAllowThreads();
10621 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10622
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 Py_INCREF(Py_None); resultobj = Py_None;
10627 return resultobj;
10628 fail:
10629 return NULL;
10630 }
10631
10632
10633 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj;
10635 wxDC *arg1 = (wxDC *) 0 ;
10636 wxRect *arg2 = 0 ;
10637 wxRect temp2 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char *kwnames[] = {
10641 (char *) "self",(char *) "rect", NULL
10642 };
10643
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10645 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10646 {
10647 arg2 = &temp2;
10648 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10649 }
10650 {
10651 PyThreadState* __tstate = wxPyBeginAllowThreads();
10652 (arg1)->DrawRectangle((wxRect const &)*arg2);
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_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10665 PyObject *resultobj;
10666 wxDC *arg1 = (wxDC *) 0 ;
10667 int arg2 ;
10668 int arg3 ;
10669 int arg4 ;
10670 int arg5 ;
10671 double arg6 ;
10672 PyObject * obj0 = 0 ;
10673 PyObject * obj1 = 0 ;
10674 PyObject * obj2 = 0 ;
10675 PyObject * obj3 = 0 ;
10676 PyObject * obj4 = 0 ;
10677 PyObject * obj5 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10684 {
10685 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10686 if (PyErr_Occurred()) SWIG_fail;
10687 }
10688 {
10689 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 }
10692 {
10693 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 }
10696 {
10697 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10698 if (PyErr_Occurred()) SWIG_fail;
10699 }
10700 {
10701 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 Py_INCREF(Py_None); resultobj = Py_None;
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxDC *arg1 = (wxDC *) 0 ;
10721 wxPoint *arg2 = 0 ;
10722 wxSize *arg3 = 0 ;
10723 double arg4 ;
10724 wxPoint temp2 ;
10725 wxSize temp3 ;
10726 PyObject * obj0 = 0 ;
10727 PyObject * obj1 = 0 ;
10728 PyObject * obj2 = 0 ;
10729 PyObject * obj3 = 0 ;
10730 char *kwnames[] = {
10731 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10732 };
10733
10734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10735 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10736 {
10737 arg2 = &temp2;
10738 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10739 }
10740 {
10741 arg3 = &temp3;
10742 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10743 }
10744 {
10745 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10746 if (PyErr_Occurred()) SWIG_fail;
10747 }
10748 {
10749 PyThreadState* __tstate = wxPyBeginAllowThreads();
10750 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10751
10752 wxPyEndAllowThreads(__tstate);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 }
10755 Py_INCREF(Py_None); resultobj = Py_None;
10756 return resultobj;
10757 fail:
10758 return NULL;
10759 }
10760
10761
10762 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10763 PyObject *resultobj;
10764 wxDC *arg1 = (wxDC *) 0 ;
10765 wxRect *arg2 = 0 ;
10766 double arg3 ;
10767 wxRect temp2 ;
10768 PyObject * obj0 = 0 ;
10769 PyObject * obj1 = 0 ;
10770 PyObject * obj2 = 0 ;
10771 char *kwnames[] = {
10772 (char *) "self",(char *) "r",(char *) "radius", NULL
10773 };
10774
10775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
10776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10777 {
10778 arg2 = &temp2;
10779 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10780 }
10781 {
10782 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 }
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 Py_INCREF(Py_None); resultobj = Py_None;
10793 return resultobj;
10794 fail:
10795 return NULL;
10796 }
10797
10798
10799 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10800 PyObject *resultobj;
10801 wxDC *arg1 = (wxDC *) 0 ;
10802 int arg2 ;
10803 int arg3 ;
10804 int arg4 ;
10805 PyObject * obj0 = 0 ;
10806 PyObject * obj1 = 0 ;
10807 PyObject * obj2 = 0 ;
10808 PyObject * obj3 = 0 ;
10809 char *kwnames[] = {
10810 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10811 };
10812
10813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10815 {
10816 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 {
10820 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 {
10824 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10825 if (PyErr_Occurred()) SWIG_fail;
10826 }
10827 {
10828 PyThreadState* __tstate = wxPyBeginAllowThreads();
10829 (arg1)->DrawCircle(arg2,arg3,arg4);
10830
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 Py_INCREF(Py_None); resultobj = Py_None;
10835 return resultobj;
10836 fail:
10837 return NULL;
10838 }
10839
10840
10841 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj;
10843 wxDC *arg1 = (wxDC *) 0 ;
10844 wxPoint *arg2 = 0 ;
10845 int arg3 ;
10846 wxPoint temp2 ;
10847 PyObject * obj0 = 0 ;
10848 PyObject * obj1 = 0 ;
10849 PyObject * obj2 = 0 ;
10850 char *kwnames[] = {
10851 (char *) "self",(char *) "pt",(char *) "radius", NULL
10852 };
10853
10854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10855 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10856 {
10857 arg2 = &temp2;
10858 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10859 }
10860 {
10861 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 }
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10867
10868 wxPyEndAllowThreads(__tstate);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 }
10871 Py_INCREF(Py_None); resultobj = Py_None;
10872 return resultobj;
10873 fail:
10874 return NULL;
10875 }
10876
10877
10878 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10879 PyObject *resultobj;
10880 wxDC *arg1 = (wxDC *) 0 ;
10881 int arg2 ;
10882 int arg3 ;
10883 int arg4 ;
10884 int arg5 ;
10885 PyObject * obj0 = 0 ;
10886 PyObject * obj1 = 0 ;
10887 PyObject * obj2 = 0 ;
10888 PyObject * obj3 = 0 ;
10889 PyObject * obj4 = 0 ;
10890 char *kwnames[] = {
10891 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10892 };
10893
10894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10896 {
10897 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10898 if (PyErr_Occurred()) SWIG_fail;
10899 }
10900 {
10901 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 {
10905 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10906 if (PyErr_Occurred()) SWIG_fail;
10907 }
10908 {
10909 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 {
10913 PyThreadState* __tstate = wxPyBeginAllowThreads();
10914 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10915
10916 wxPyEndAllowThreads(__tstate);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 }
10919 Py_INCREF(Py_None); resultobj = Py_None;
10920 return resultobj;
10921 fail:
10922 return NULL;
10923 }
10924
10925
10926 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject *resultobj;
10928 wxDC *arg1 = (wxDC *) 0 ;
10929 wxPoint *arg2 = 0 ;
10930 wxSize *arg3 = 0 ;
10931 wxPoint temp2 ;
10932 wxSize temp3 ;
10933 PyObject * obj0 = 0 ;
10934 PyObject * obj1 = 0 ;
10935 PyObject * obj2 = 0 ;
10936 char *kwnames[] = {
10937 (char *) "self",(char *) "pt",(char *) "sz", NULL
10938 };
10939
10940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10941 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10942 {
10943 arg2 = &temp2;
10944 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10945 }
10946 {
10947 arg3 = &temp3;
10948 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10949 }
10950 {
10951 PyThreadState* __tstate = wxPyBeginAllowThreads();
10952 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10953
10954 wxPyEndAllowThreads(__tstate);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 }
10957 Py_INCREF(Py_None); resultobj = Py_None;
10958 return resultobj;
10959 fail:
10960 return NULL;
10961 }
10962
10963
10964 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10965 PyObject *resultobj;
10966 wxDC *arg1 = (wxDC *) 0 ;
10967 wxRect *arg2 = 0 ;
10968 wxRect temp2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char *kwnames[] = {
10972 (char *) "self",(char *) "rect", NULL
10973 };
10974
10975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
10976 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10977 {
10978 arg2 = &temp2;
10979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10980 }
10981 {
10982 PyThreadState* __tstate = wxPyBeginAllowThreads();
10983 (arg1)->DrawEllipse((wxRect const &)*arg2);
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_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10996 PyObject *resultobj;
10997 wxDC *arg1 = (wxDC *) 0 ;
10998 wxIcon *arg2 = 0 ;
10999 int arg3 ;
11000 int arg4 ;
11001 PyObject * obj0 = 0 ;
11002 PyObject * obj1 = 0 ;
11003 PyObject * obj2 = 0 ;
11004 PyObject * obj3 = 0 ;
11005 char *kwnames[] = {
11006 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11007 };
11008
11009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11011 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11012 if (arg2 == NULL) {
11013 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11014 }
11015 {
11016 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 }
11019 {
11020 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 }
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11026
11027 wxPyEndAllowThreads(__tstate);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 }
11030 Py_INCREF(Py_None); resultobj = Py_None;
11031 return resultobj;
11032 fail:
11033 return NULL;
11034 }
11035
11036
11037 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11038 PyObject *resultobj;
11039 wxDC *arg1 = (wxDC *) 0 ;
11040 wxIcon *arg2 = 0 ;
11041 wxPoint *arg3 = 0 ;
11042 wxPoint temp3 ;
11043 PyObject * obj0 = 0 ;
11044 PyObject * obj1 = 0 ;
11045 PyObject * obj2 = 0 ;
11046 char *kwnames[] = {
11047 (char *) "self",(char *) "icon",(char *) "pt", NULL
11048 };
11049
11050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11051 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11052 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11053 if (arg2 == NULL) {
11054 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11055 }
11056 {
11057 arg3 = &temp3;
11058 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11059 }
11060 {
11061 PyThreadState* __tstate = wxPyBeginAllowThreads();
11062 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11063
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 }
11067 Py_INCREF(Py_None); resultobj = Py_None;
11068 return resultobj;
11069 fail:
11070 return NULL;
11071 }
11072
11073
11074 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11075 PyObject *resultobj;
11076 wxDC *arg1 = (wxDC *) 0 ;
11077 wxBitmap *arg2 = 0 ;
11078 int arg3 ;
11079 int arg4 ;
11080 bool arg5 = (bool) False ;
11081 PyObject * obj0 = 0 ;
11082 PyObject * obj1 = 0 ;
11083 PyObject * obj2 = 0 ;
11084 PyObject * obj3 = 0 ;
11085 PyObject * obj4 = 0 ;
11086 char *kwnames[] = {
11087 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11088 };
11089
11090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11092 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11093 if (arg2 == NULL) {
11094 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11095 }
11096 {
11097 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11102 if (PyErr_Occurred()) SWIG_fail;
11103 }
11104 if (obj4) {
11105 {
11106 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 }
11110 {
11111 PyThreadState* __tstate = wxPyBeginAllowThreads();
11112 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11113
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 Py_INCREF(Py_None); resultobj = Py_None;
11118 return resultobj;
11119 fail:
11120 return NULL;
11121 }
11122
11123
11124 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11125 PyObject *resultobj;
11126 wxDC *arg1 = (wxDC *) 0 ;
11127 wxBitmap *arg2 = 0 ;
11128 wxPoint *arg3 = 0 ;
11129 bool arg4 = (bool) False ;
11130 wxPoint temp3 ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 PyObject * obj2 = 0 ;
11134 PyObject * obj3 = 0 ;
11135 char *kwnames[] = {
11136 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11137 };
11138
11139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11140 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11141 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11142 if (arg2 == NULL) {
11143 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11144 }
11145 {
11146 arg3 = &temp3;
11147 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11148 }
11149 if (obj3) {
11150 {
11151 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 }
11155 {
11156 PyThreadState* __tstate = wxPyBeginAllowThreads();
11157 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11158
11159 wxPyEndAllowThreads(__tstate);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 }
11162 Py_INCREF(Py_None); resultobj = Py_None;
11163 return resultobj;
11164 fail:
11165 return NULL;
11166 }
11167
11168
11169 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11170 PyObject *resultobj;
11171 wxDC *arg1 = (wxDC *) 0 ;
11172 wxString *arg2 = 0 ;
11173 int arg3 ;
11174 int arg4 ;
11175 bool temp2 = False ;
11176 PyObject * obj0 = 0 ;
11177 PyObject * obj1 = 0 ;
11178 PyObject * obj2 = 0 ;
11179 PyObject * obj3 = 0 ;
11180 char *kwnames[] = {
11181 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11182 };
11183
11184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11185 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11186 {
11187 arg2 = wxString_in_helper(obj1);
11188 if (arg2 == NULL) SWIG_fail;
11189 temp2 = True;
11190 }
11191 {
11192 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 {
11196 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 }
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11202
11203 wxPyEndAllowThreads(__tstate);
11204 if (PyErr_Occurred()) SWIG_fail;
11205 }
11206 Py_INCREF(Py_None); resultobj = Py_None;
11207 {
11208 if (temp2)
11209 delete arg2;
11210 }
11211 return resultobj;
11212 fail:
11213 {
11214 if (temp2)
11215 delete arg2;
11216 }
11217 return NULL;
11218 }
11219
11220
11221 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11222 PyObject *resultobj;
11223 wxDC *arg1 = (wxDC *) 0 ;
11224 wxString *arg2 = 0 ;
11225 wxPoint *arg3 = 0 ;
11226 bool temp2 = False ;
11227 wxPoint temp3 ;
11228 PyObject * obj0 = 0 ;
11229 PyObject * obj1 = 0 ;
11230 PyObject * obj2 = 0 ;
11231 char *kwnames[] = {
11232 (char *) "self",(char *) "text",(char *) "pt", NULL
11233 };
11234
11235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11236 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11237 {
11238 arg2 = wxString_in_helper(obj1);
11239 if (arg2 == NULL) SWIG_fail;
11240 temp2 = True;
11241 }
11242 {
11243 arg3 = &temp3;
11244 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11245 }
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11249
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 Py_INCREF(Py_None); resultobj = Py_None;
11254 {
11255 if (temp2)
11256 delete arg2;
11257 }
11258 return resultobj;
11259 fail:
11260 {
11261 if (temp2)
11262 delete arg2;
11263 }
11264 return NULL;
11265 }
11266
11267
11268 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11269 PyObject *resultobj;
11270 wxDC *arg1 = (wxDC *) 0 ;
11271 wxString *arg2 = 0 ;
11272 int arg3 ;
11273 int arg4 ;
11274 double arg5 ;
11275 bool temp2 = False ;
11276 PyObject * obj0 = 0 ;
11277 PyObject * obj1 = 0 ;
11278 PyObject * obj2 = 0 ;
11279 PyObject * obj3 = 0 ;
11280 PyObject * obj4 = 0 ;
11281 char *kwnames[] = {
11282 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11283 };
11284
11285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11286 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11287 {
11288 arg2 = wxString_in_helper(obj1);
11289 if (arg2 == NULL) SWIG_fail;
11290 temp2 = True;
11291 }
11292 {
11293 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11294 if (PyErr_Occurred()) SWIG_fail;
11295 }
11296 {
11297 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 }
11300 {
11301 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 }
11304 {
11305 PyThreadState* __tstate = wxPyBeginAllowThreads();
11306 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11307
11308 wxPyEndAllowThreads(__tstate);
11309 if (PyErr_Occurred()) SWIG_fail;
11310 }
11311 Py_INCREF(Py_None); resultobj = Py_None;
11312 {
11313 if (temp2)
11314 delete arg2;
11315 }
11316 return resultobj;
11317 fail:
11318 {
11319 if (temp2)
11320 delete arg2;
11321 }
11322 return NULL;
11323 }
11324
11325
11326 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11327 PyObject *resultobj;
11328 wxDC *arg1 = (wxDC *) 0 ;
11329 wxString *arg2 = 0 ;
11330 wxPoint *arg3 = 0 ;
11331 double arg4 ;
11332 bool temp2 = False ;
11333 wxPoint temp3 ;
11334 PyObject * obj0 = 0 ;
11335 PyObject * obj1 = 0 ;
11336 PyObject * obj2 = 0 ;
11337 PyObject * obj3 = 0 ;
11338 char *kwnames[] = {
11339 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11340 };
11341
11342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11343 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11344 {
11345 arg2 = wxString_in_helper(obj1);
11346 if (arg2 == NULL) SWIG_fail;
11347 temp2 = True;
11348 }
11349 {
11350 arg3 = &temp3;
11351 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11352 }
11353 {
11354 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 {
11358 PyThreadState* __tstate = wxPyBeginAllowThreads();
11359 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11360
11361 wxPyEndAllowThreads(__tstate);
11362 if (PyErr_Occurred()) SWIG_fail;
11363 }
11364 Py_INCREF(Py_None); resultobj = Py_None;
11365 {
11366 if (temp2)
11367 delete arg2;
11368 }
11369 return resultobj;
11370 fail:
11371 {
11372 if (temp2)
11373 delete arg2;
11374 }
11375 return NULL;
11376 }
11377
11378
11379 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11380 PyObject *resultobj;
11381 wxDC *arg1 = (wxDC *) 0 ;
11382 int arg2 ;
11383 int arg3 ;
11384 int arg4 ;
11385 int arg5 ;
11386 wxDC *arg6 = (wxDC *) 0 ;
11387 int arg7 ;
11388 int arg8 ;
11389 int arg9 = (int) wxCOPY ;
11390 bool arg10 = (bool) False ;
11391 int arg11 = (int) -1 ;
11392 int arg12 = (int) -1 ;
11393 bool result;
11394 PyObject * obj0 = 0 ;
11395 PyObject * obj1 = 0 ;
11396 PyObject * obj2 = 0 ;
11397 PyObject * obj3 = 0 ;
11398 PyObject * obj4 = 0 ;
11399 PyObject * obj5 = 0 ;
11400 PyObject * obj6 = 0 ;
11401 PyObject * obj7 = 0 ;
11402 PyObject * obj8 = 0 ;
11403 PyObject * obj9 = 0 ;
11404 PyObject * obj10 = 0 ;
11405 PyObject * obj11 = 0 ;
11406 char *kwnames[] = {
11407 (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
11408 };
11409
11410 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;
11411 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11412 {
11413 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 }
11416 {
11417 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 }
11420 {
11421 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 {
11425 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11429 {
11430 arg7 = (int) SWIG_PyObj_AsInt(obj6);
11431 if (PyErr_Occurred()) SWIG_fail;
11432 }
11433 {
11434 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 }
11437 if (obj8) {
11438 {
11439 arg9 = (int) SWIG_PyObj_AsInt(obj8);
11440 if (PyErr_Occurred()) SWIG_fail;
11441 }
11442 }
11443 if (obj9) {
11444 {
11445 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
11446 if (PyErr_Occurred()) SWIG_fail;
11447 }
11448 }
11449 if (obj10) {
11450 {
11451 arg11 = (int) SWIG_PyObj_AsInt(obj10);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 }
11455 if (obj11) {
11456 {
11457 arg12 = (int) SWIG_PyObj_AsInt(obj11);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 }
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11464
11465 wxPyEndAllowThreads(__tstate);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11469 return resultobj;
11470 fail:
11471 return NULL;
11472 }
11473
11474
11475 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11476 PyObject *resultobj;
11477 wxDC *arg1 = (wxDC *) 0 ;
11478 wxPoint *arg2 = 0 ;
11479 wxSize *arg3 = 0 ;
11480 wxDC *arg4 = (wxDC *) 0 ;
11481 wxPoint *arg5 = 0 ;
11482 int arg6 = (int) wxCOPY ;
11483 bool arg7 = (bool) False ;
11484 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11485 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11486 bool result;
11487 wxPoint temp2 ;
11488 wxSize temp3 ;
11489 wxPoint temp5 ;
11490 wxPoint temp8 ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 PyObject * obj2 = 0 ;
11494 PyObject * obj3 = 0 ;
11495 PyObject * obj4 = 0 ;
11496 PyObject * obj5 = 0 ;
11497 PyObject * obj6 = 0 ;
11498 PyObject * obj7 = 0 ;
11499 char *kwnames[] = {
11500 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11501 };
11502
11503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11505 {
11506 arg2 = &temp2;
11507 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11508 }
11509 {
11510 arg3 = &temp3;
11511 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11512 }
11513 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11514 {
11515 arg5 = &temp5;
11516 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11517 }
11518 if (obj5) {
11519 {
11520 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11521 if (PyErr_Occurred()) SWIG_fail;
11522 }
11523 }
11524 if (obj6) {
11525 {
11526 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 }
11530 if (obj7) {
11531 {
11532 arg8 = &temp8;
11533 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11534 }
11535 }
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11539
11540 wxPyEndAllowThreads(__tstate);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 }
11543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11544 return resultobj;
11545 fail:
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxDC *arg1 = (wxDC *) 0 ;
11553 int arg2 ;
11554 wxPoint *arg3 = (wxPoint *) 0 ;
11555 int arg4 = (int) 0 ;
11556 int arg5 = (int) 0 ;
11557 PyObject * obj0 = 0 ;
11558 PyObject * obj1 = 0 ;
11559 PyObject * obj2 = 0 ;
11560 PyObject * obj3 = 0 ;
11561 char *kwnames[] = {
11562 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11563 };
11564
11565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11566 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11567 {
11568 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11569 if (arg3 == NULL) SWIG_fail;
11570 }
11571 if (obj2) {
11572 {
11573 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 }
11577 if (obj3) {
11578 {
11579 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11580 if (PyErr_Occurred()) SWIG_fail;
11581 }
11582 }
11583 {
11584 PyThreadState* __tstate = wxPyBeginAllowThreads();
11585 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11586
11587 wxPyEndAllowThreads(__tstate);
11588 if (PyErr_Occurred()) SWIG_fail;
11589 }
11590 Py_INCREF(Py_None); resultobj = Py_None;
11591 {
11592 if (arg3) delete [] arg3;
11593 }
11594 return resultobj;
11595 fail:
11596 {
11597 if (arg3) delete [] arg3;
11598 }
11599 return NULL;
11600 }
11601
11602
11603 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11604 PyObject *resultobj;
11605 wxDC *arg1 = (wxDC *) 0 ;
11606 int arg2 ;
11607 wxPoint *arg3 = (wxPoint *) 0 ;
11608 int arg4 = (int) 0 ;
11609 int arg5 = (int) 0 ;
11610 int arg6 = (int) wxODDEVEN_RULE ;
11611 PyObject * obj0 = 0 ;
11612 PyObject * obj1 = 0 ;
11613 PyObject * obj2 = 0 ;
11614 PyObject * obj3 = 0 ;
11615 PyObject * obj4 = 0 ;
11616 char *kwnames[] = {
11617 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11618 };
11619
11620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11621 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11622 {
11623 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11624 if (arg3 == NULL) SWIG_fail;
11625 }
11626 if (obj2) {
11627 {
11628 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 }
11631 }
11632 if (obj3) {
11633 {
11634 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 }
11637 }
11638 if (obj4) {
11639 {
11640 arg6 = (int) SWIG_PyObj_AsInt(obj4);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 }
11644 {
11645 PyThreadState* __tstate = wxPyBeginAllowThreads();
11646 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11647
11648 wxPyEndAllowThreads(__tstate);
11649 if (PyErr_Occurred()) SWIG_fail;
11650 }
11651 Py_INCREF(Py_None); resultobj = Py_None;
11652 {
11653 if (arg3) delete [] arg3;
11654 }
11655 return resultobj;
11656 fail:
11657 {
11658 if (arg3) delete [] arg3;
11659 }
11660 return NULL;
11661 }
11662
11663
11664 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11665 PyObject *resultobj;
11666 wxDC *arg1 = (wxDC *) 0 ;
11667 wxString *arg2 = 0 ;
11668 wxRect *arg3 = 0 ;
11669 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11670 int arg5 = (int) -1 ;
11671 bool temp2 = False ;
11672 wxRect temp3 ;
11673 PyObject * obj0 = 0 ;
11674 PyObject * obj1 = 0 ;
11675 PyObject * obj2 = 0 ;
11676 PyObject * obj3 = 0 ;
11677 PyObject * obj4 = 0 ;
11678 char *kwnames[] = {
11679 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11680 };
11681
11682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11684 {
11685 arg2 = wxString_in_helper(obj1);
11686 if (arg2 == NULL) SWIG_fail;
11687 temp2 = True;
11688 }
11689 {
11690 arg3 = &temp3;
11691 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11692 }
11693 if (obj3) {
11694 {
11695 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 }
11699 if (obj4) {
11700 {
11701 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11702 if (PyErr_Occurred()) SWIG_fail;
11703 }
11704 }
11705 {
11706 PyThreadState* __tstate = wxPyBeginAllowThreads();
11707 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11708
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 Py_INCREF(Py_None); resultobj = Py_None;
11713 {
11714 if (temp2)
11715 delete arg2;
11716 }
11717 return resultobj;
11718 fail:
11719 {
11720 if (temp2)
11721 delete arg2;
11722 }
11723 return NULL;
11724 }
11725
11726
11727 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11728 PyObject *resultobj;
11729 wxDC *arg1 = (wxDC *) 0 ;
11730 wxString *arg2 = 0 ;
11731 wxBitmap *arg3 = 0 ;
11732 wxRect *arg4 = 0 ;
11733 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11734 int arg6 = (int) -1 ;
11735 wxRect result;
11736 bool temp2 = False ;
11737 wxRect temp4 ;
11738 PyObject * obj0 = 0 ;
11739 PyObject * obj1 = 0 ;
11740 PyObject * obj2 = 0 ;
11741 PyObject * obj3 = 0 ;
11742 PyObject * obj4 = 0 ;
11743 PyObject * obj5 = 0 ;
11744 char *kwnames[] = {
11745 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11746 };
11747
11748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11749 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11750 {
11751 arg2 = wxString_in_helper(obj1);
11752 if (arg2 == NULL) SWIG_fail;
11753 temp2 = True;
11754 }
11755 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11756 if (arg3 == NULL) {
11757 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11758 }
11759 {
11760 arg4 = &temp4;
11761 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11762 }
11763 if (obj4) {
11764 {
11765 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 }
11769 if (obj5) {
11770 {
11771 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 }
11774 }
11775 {
11776 PyThreadState* __tstate = wxPyBeginAllowThreads();
11777 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11778
11779 wxPyEndAllowThreads(__tstate);
11780 if (PyErr_Occurred()) SWIG_fail;
11781 }
11782 {
11783 wxRect * resultptr;
11784 resultptr = new wxRect((wxRect &) result);
11785 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11786 }
11787 {
11788 if (temp2)
11789 delete arg2;
11790 }
11791 return resultobj;
11792 fail:
11793 {
11794 if (temp2)
11795 delete arg2;
11796 }
11797 return NULL;
11798 }
11799
11800
11801 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11802 PyObject *resultobj;
11803 wxDC *arg1 = (wxDC *) 0 ;
11804 int arg2 ;
11805 wxPoint *arg3 = (wxPoint *) 0 ;
11806 PyObject * obj0 = 0 ;
11807 PyObject * obj1 = 0 ;
11808 char *kwnames[] = {
11809 (char *) "self",(char *) "points", NULL
11810 };
11811
11812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11813 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11814 {
11815 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11816 if (arg3 == NULL) SWIG_fail;
11817 }
11818 {
11819 PyThreadState* __tstate = wxPyBeginAllowThreads();
11820 (arg1)->DrawSpline(arg2,arg3);
11821
11822 wxPyEndAllowThreads(__tstate);
11823 if (PyErr_Occurred()) SWIG_fail;
11824 }
11825 Py_INCREF(Py_None); resultobj = Py_None;
11826 {
11827 if (arg3) delete [] arg3;
11828 }
11829 return resultobj;
11830 fail:
11831 {
11832 if (arg3) delete [] arg3;
11833 }
11834 return NULL;
11835 }
11836
11837
11838 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11839 PyObject *resultobj;
11840 wxDC *arg1 = (wxDC *) 0 ;
11841 PyObject * obj0 = 0 ;
11842 char *kwnames[] = {
11843 (char *) "self", NULL
11844 };
11845
11846 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11847 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11848 {
11849 PyThreadState* __tstate = wxPyBeginAllowThreads();
11850 (arg1)->Clear();
11851
11852 wxPyEndAllowThreads(__tstate);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 }
11855 Py_INCREF(Py_None); resultobj = Py_None;
11856 return resultobj;
11857 fail:
11858 return NULL;
11859 }
11860
11861
11862 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11863 PyObject *resultobj;
11864 wxDC *arg1 = (wxDC *) 0 ;
11865 wxString *arg2 = 0 ;
11866 bool result;
11867 bool temp2 = False ;
11868 PyObject * obj0 = 0 ;
11869 PyObject * obj1 = 0 ;
11870 char *kwnames[] = {
11871 (char *) "self",(char *) "message", NULL
11872 };
11873
11874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11876 {
11877 arg2 = wxString_in_helper(obj1);
11878 if (arg2 == NULL) SWIG_fail;
11879 temp2 = True;
11880 }
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11884
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11889 {
11890 if (temp2)
11891 delete arg2;
11892 }
11893 return resultobj;
11894 fail:
11895 {
11896 if (temp2)
11897 delete arg2;
11898 }
11899 return NULL;
11900 }
11901
11902
11903 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11904 PyObject *resultobj;
11905 wxDC *arg1 = (wxDC *) 0 ;
11906 PyObject * obj0 = 0 ;
11907 char *kwnames[] = {
11908 (char *) "self", NULL
11909 };
11910
11911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11912 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11913 {
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 (arg1)->EndDoc();
11916
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 Py_INCREF(Py_None); resultobj = Py_None;
11921 return resultobj;
11922 fail:
11923 return NULL;
11924 }
11925
11926
11927 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11928 PyObject *resultobj;
11929 wxDC *arg1 = (wxDC *) 0 ;
11930 PyObject * obj0 = 0 ;
11931 char *kwnames[] = {
11932 (char *) "self", NULL
11933 };
11934
11935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
11936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11937 {
11938 PyThreadState* __tstate = wxPyBeginAllowThreads();
11939 (arg1)->StartPage();
11940
11941 wxPyEndAllowThreads(__tstate);
11942 if (PyErr_Occurred()) SWIG_fail;
11943 }
11944 Py_INCREF(Py_None); resultobj = Py_None;
11945 return resultobj;
11946 fail:
11947 return NULL;
11948 }
11949
11950
11951 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11952 PyObject *resultobj;
11953 wxDC *arg1 = (wxDC *) 0 ;
11954 PyObject * obj0 = 0 ;
11955 char *kwnames[] = {
11956 (char *) "self", NULL
11957 };
11958
11959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
11960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11961 {
11962 PyThreadState* __tstate = wxPyBeginAllowThreads();
11963 (arg1)->EndPage();
11964
11965 wxPyEndAllowThreads(__tstate);
11966 if (PyErr_Occurred()) SWIG_fail;
11967 }
11968 Py_INCREF(Py_None); resultobj = Py_None;
11969 return resultobj;
11970 fail:
11971 return NULL;
11972 }
11973
11974
11975 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
11976 PyObject *resultobj;
11977 wxDC *arg1 = (wxDC *) 0 ;
11978 wxFont *arg2 = 0 ;
11979 PyObject * obj0 = 0 ;
11980 PyObject * obj1 = 0 ;
11981 char *kwnames[] = {
11982 (char *) "self",(char *) "font", NULL
11983 };
11984
11985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
11986 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11987 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11988 if (arg2 == NULL) {
11989 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11990 }
11991 {
11992 PyThreadState* __tstate = wxPyBeginAllowThreads();
11993 (arg1)->SetFont((wxFont const &)*arg2);
11994
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 Py_INCREF(Py_None); resultobj = Py_None;
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12006 PyObject *resultobj;
12007 wxDC *arg1 = (wxDC *) 0 ;
12008 wxPen *arg2 = 0 ;
12009 PyObject * obj0 = 0 ;
12010 PyObject * obj1 = 0 ;
12011 char *kwnames[] = {
12012 (char *) "self",(char *) "pen", NULL
12013 };
12014
12015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12017 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12018 if (arg2 == NULL) {
12019 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12020 }
12021 {
12022 PyThreadState* __tstate = wxPyBeginAllowThreads();
12023 (arg1)->SetPen((wxPen const &)*arg2);
12024
12025 wxPyEndAllowThreads(__tstate);
12026 if (PyErr_Occurred()) SWIG_fail;
12027 }
12028 Py_INCREF(Py_None); resultobj = Py_None;
12029 return resultobj;
12030 fail:
12031 return NULL;
12032 }
12033
12034
12035 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12036 PyObject *resultobj;
12037 wxDC *arg1 = (wxDC *) 0 ;
12038 wxBrush *arg2 = 0 ;
12039 PyObject * obj0 = 0 ;
12040 PyObject * obj1 = 0 ;
12041 char *kwnames[] = {
12042 (char *) "self",(char *) "brush", NULL
12043 };
12044
12045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12046 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12047 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12048 if (arg2 == NULL) {
12049 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12050 }
12051 {
12052 PyThreadState* __tstate = wxPyBeginAllowThreads();
12053 (arg1)->SetBrush((wxBrush const &)*arg2);
12054
12055 wxPyEndAllowThreads(__tstate);
12056 if (PyErr_Occurred()) SWIG_fail;
12057 }
12058 Py_INCREF(Py_None); resultobj = Py_None;
12059 return resultobj;
12060 fail:
12061 return NULL;
12062 }
12063
12064
12065 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12066 PyObject *resultobj;
12067 wxDC *arg1 = (wxDC *) 0 ;
12068 wxBrush *arg2 = 0 ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 char *kwnames[] = {
12072 (char *) "self",(char *) "brush", NULL
12073 };
12074
12075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12077 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12078 if (arg2 == NULL) {
12079 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12080 }
12081 {
12082 PyThreadState* __tstate = wxPyBeginAllowThreads();
12083 (arg1)->SetBackground((wxBrush const &)*arg2);
12084
12085 wxPyEndAllowThreads(__tstate);
12086 if (PyErr_Occurred()) SWIG_fail;
12087 }
12088 Py_INCREF(Py_None); resultobj = Py_None;
12089 return resultobj;
12090 fail:
12091 return NULL;
12092 }
12093
12094
12095 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12096 PyObject *resultobj;
12097 wxDC *arg1 = (wxDC *) 0 ;
12098 int arg2 ;
12099 PyObject * obj0 = 0 ;
12100 PyObject * obj1 = 0 ;
12101 char *kwnames[] = {
12102 (char *) "self",(char *) "mode", NULL
12103 };
12104
12105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12107 {
12108 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12109 if (PyErr_Occurred()) SWIG_fail;
12110 }
12111 {
12112 PyThreadState* __tstate = wxPyBeginAllowThreads();
12113 (arg1)->SetBackgroundMode(arg2);
12114
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 Py_INCREF(Py_None); resultobj = Py_None;
12119 return resultobj;
12120 fail:
12121 return NULL;
12122 }
12123
12124
12125 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12126 PyObject *resultobj;
12127 wxDC *arg1 = (wxDC *) 0 ;
12128 wxPalette *arg2 = 0 ;
12129 PyObject * obj0 = 0 ;
12130 PyObject * obj1 = 0 ;
12131 char *kwnames[] = {
12132 (char *) "self",(char *) "palette", NULL
12133 };
12134
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12136 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12137 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12138 if (arg2 == NULL) {
12139 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12140 }
12141 {
12142 PyThreadState* __tstate = wxPyBeginAllowThreads();
12143 (arg1)->SetPalette((wxPalette const &)*arg2);
12144
12145 wxPyEndAllowThreads(__tstate);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 Py_INCREF(Py_None); resultobj = Py_None;
12149 return resultobj;
12150 fail:
12151 return NULL;
12152 }
12153
12154
12155 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12156 PyObject *resultobj;
12157 wxDC *arg1 = (wxDC *) 0 ;
12158 int arg2 ;
12159 int arg3 ;
12160 int arg4 ;
12161 int arg5 ;
12162 PyObject * obj0 = 0 ;
12163 PyObject * obj1 = 0 ;
12164 PyObject * obj2 = 0 ;
12165 PyObject * obj3 = 0 ;
12166 PyObject * obj4 = 0 ;
12167 char *kwnames[] = {
12168 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12169 };
12170
12171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12172 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12173 {
12174 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12175 if (PyErr_Occurred()) SWIG_fail;
12176 }
12177 {
12178 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12179 if (PyErr_Occurred()) SWIG_fail;
12180 }
12181 {
12182 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12183 if (PyErr_Occurred()) SWIG_fail;
12184 }
12185 {
12186 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 {
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12192
12193 wxPyEndAllowThreads(__tstate);
12194 if (PyErr_Occurred()) SWIG_fail;
12195 }
12196 Py_INCREF(Py_None); resultobj = Py_None;
12197 return resultobj;
12198 fail:
12199 return NULL;
12200 }
12201
12202
12203 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12204 PyObject *resultobj;
12205 wxDC *arg1 = (wxDC *) 0 ;
12206 wxPoint *arg2 = 0 ;
12207 wxSize *arg3 = 0 ;
12208 wxPoint temp2 ;
12209 wxSize temp3 ;
12210 PyObject * obj0 = 0 ;
12211 PyObject * obj1 = 0 ;
12212 PyObject * obj2 = 0 ;
12213 char *kwnames[] = {
12214 (char *) "self",(char *) "pt",(char *) "sz", NULL
12215 };
12216
12217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12219 {
12220 arg2 = &temp2;
12221 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12222 }
12223 {
12224 arg3 = &temp3;
12225 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12226 }
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12230
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 Py_INCREF(Py_None); resultobj = Py_None;
12235 return resultobj;
12236 fail:
12237 return NULL;
12238 }
12239
12240
12241 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12242 PyObject *resultobj;
12243 wxDC *arg1 = (wxDC *) 0 ;
12244 wxRect *arg2 = 0 ;
12245 wxRect temp2 ;
12246 PyObject * obj0 = 0 ;
12247 PyObject * obj1 = 0 ;
12248 char *kwnames[] = {
12249 (char *) "self",(char *) "rect", NULL
12250 };
12251
12252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12253 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12254 {
12255 arg2 = &temp2;
12256 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12257 }
12258 {
12259 PyThreadState* __tstate = wxPyBeginAllowThreads();
12260 (arg1)->SetClippingRegion((wxRect const &)*arg2);
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_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12273 PyObject *resultobj;
12274 wxDC *arg1 = (wxDC *) 0 ;
12275 wxRegion *arg2 = 0 ;
12276 PyObject * obj0 = 0 ;
12277 PyObject * obj1 = 0 ;
12278 char *kwnames[] = {
12279 (char *) "self",(char *) "region", NULL
12280 };
12281
12282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12283 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12284 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12285 if (arg2 == NULL) {
12286 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12287 }
12288 {
12289 PyThreadState* __tstate = wxPyBeginAllowThreads();
12290 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12291
12292 wxPyEndAllowThreads(__tstate);
12293 if (PyErr_Occurred()) SWIG_fail;
12294 }
12295 Py_INCREF(Py_None); resultobj = Py_None;
12296 return resultobj;
12297 fail:
12298 return NULL;
12299 }
12300
12301
12302 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12303 PyObject *resultobj;
12304 wxDC *arg1 = (wxDC *) 0 ;
12305 PyObject * obj0 = 0 ;
12306 char *kwnames[] = {
12307 (char *) "self", NULL
12308 };
12309
12310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12311 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12312 {
12313 PyThreadState* __tstate = wxPyBeginAllowThreads();
12314 (arg1)->DestroyClippingRegion();
12315
12316 wxPyEndAllowThreads(__tstate);
12317 if (PyErr_Occurred()) SWIG_fail;
12318 }
12319 Py_INCREF(Py_None); resultobj = Py_None;
12320 return resultobj;
12321 fail:
12322 return NULL;
12323 }
12324
12325
12326 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12327 PyObject *resultobj;
12328 wxDC *arg1 = (wxDC *) 0 ;
12329 int *arg2 = (int *) 0 ;
12330 int *arg3 = (int *) 0 ;
12331 int *arg4 = (int *) 0 ;
12332 int *arg5 = (int *) 0 ;
12333 int temp2 ;
12334 int temp3 ;
12335 int temp4 ;
12336 int temp5 ;
12337 PyObject * obj0 = 0 ;
12338 char *kwnames[] = {
12339 (char *) "self", NULL
12340 };
12341
12342 arg2 = &temp2;
12343 arg3 = &temp3;
12344 arg4 = &temp4;
12345 arg5 = &temp5;
12346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12347 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12351
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 Py_INCREF(Py_None); resultobj = Py_None;
12356 {
12357 PyObject *o = PyInt_FromLong((long) (*arg2));
12358 resultobj = t_output_helper(resultobj,o);
12359 }
12360 {
12361 PyObject *o = PyInt_FromLong((long) (*arg3));
12362 resultobj = t_output_helper(resultobj,o);
12363 }
12364 {
12365 PyObject *o = PyInt_FromLong((long) (*arg4));
12366 resultobj = t_output_helper(resultobj,o);
12367 }
12368 {
12369 PyObject *o = PyInt_FromLong((long) (*arg5));
12370 resultobj = t_output_helper(resultobj,o);
12371 }
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12379 PyObject *resultobj;
12380 wxDC *arg1 = (wxDC *) 0 ;
12381 wxRect result;
12382 PyObject * obj0 = 0 ;
12383 char *kwnames[] = {
12384 (char *) "self", NULL
12385 };
12386
12387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12389 {
12390 PyThreadState* __tstate = wxPyBeginAllowThreads();
12391 result = wxDC_GetClippingRect(arg1);
12392
12393 wxPyEndAllowThreads(__tstate);
12394 if (PyErr_Occurred()) SWIG_fail;
12395 }
12396 {
12397 wxRect * resultptr;
12398 resultptr = new wxRect((wxRect &) result);
12399 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12400 }
12401 return resultobj;
12402 fail:
12403 return NULL;
12404 }
12405
12406
12407 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12408 PyObject *resultobj;
12409 wxDC *arg1 = (wxDC *) 0 ;
12410 int result;
12411 PyObject * obj0 = 0 ;
12412 char *kwnames[] = {
12413 (char *) "self", NULL
12414 };
12415
12416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12418 {
12419 PyThreadState* __tstate = wxPyBeginAllowThreads();
12420 result = (int)((wxDC const *)arg1)->GetCharHeight();
12421
12422 wxPyEndAllowThreads(__tstate);
12423 if (PyErr_Occurred()) SWIG_fail;
12424 }
12425 resultobj = SWIG_PyObj_FromInt((int)result);
12426 return resultobj;
12427 fail:
12428 return NULL;
12429 }
12430
12431
12432 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12433 PyObject *resultobj;
12434 wxDC *arg1 = (wxDC *) 0 ;
12435 int result;
12436 PyObject * obj0 = 0 ;
12437 char *kwnames[] = {
12438 (char *) "self", NULL
12439 };
12440
12441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12442 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12443 {
12444 PyThreadState* __tstate = wxPyBeginAllowThreads();
12445 result = (int)((wxDC const *)arg1)->GetCharWidth();
12446
12447 wxPyEndAllowThreads(__tstate);
12448 if (PyErr_Occurred()) SWIG_fail;
12449 }
12450 resultobj = SWIG_PyObj_FromInt((int)result);
12451 return resultobj;
12452 fail:
12453 return NULL;
12454 }
12455
12456
12457 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12458 PyObject *resultobj;
12459 wxDC *arg1 = (wxDC *) 0 ;
12460 wxString *arg2 = 0 ;
12461 int *arg3 = (int *) 0 ;
12462 int *arg4 = (int *) 0 ;
12463 bool temp2 = False ;
12464 int temp3 ;
12465 int temp4 ;
12466 PyObject * obj0 = 0 ;
12467 PyObject * obj1 = 0 ;
12468 char *kwnames[] = {
12469 (char *) "self",(char *) "string", NULL
12470 };
12471
12472 arg3 = &temp3;
12473 arg4 = &temp4;
12474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12475 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12476 {
12477 arg2 = wxString_in_helper(obj1);
12478 if (arg2 == NULL) SWIG_fail;
12479 temp2 = True;
12480 }
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12484
12485 wxPyEndAllowThreads(__tstate);
12486 if (PyErr_Occurred()) SWIG_fail;
12487 }
12488 Py_INCREF(Py_None); resultobj = Py_None;
12489 {
12490 PyObject *o = PyInt_FromLong((long) (*arg3));
12491 resultobj = t_output_helper(resultobj,o);
12492 }
12493 {
12494 PyObject *o = PyInt_FromLong((long) (*arg4));
12495 resultobj = t_output_helper(resultobj,o);
12496 }
12497 {
12498 if (temp2)
12499 delete arg2;
12500 }
12501 return resultobj;
12502 fail:
12503 {
12504 if (temp2)
12505 delete arg2;
12506 }
12507 return NULL;
12508 }
12509
12510
12511 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12512 PyObject *resultobj;
12513 wxDC *arg1 = (wxDC *) 0 ;
12514 wxString *arg2 = 0 ;
12515 int *arg3 = (int *) 0 ;
12516 int *arg4 = (int *) 0 ;
12517 int *arg5 = (int *) 0 ;
12518 int *arg6 = (int *) 0 ;
12519 wxFont *arg7 = (wxFont *) NULL ;
12520 bool temp2 = False ;
12521 int temp3 ;
12522 int temp4 ;
12523 int temp5 ;
12524 int temp6 ;
12525 PyObject * obj0 = 0 ;
12526 PyObject * obj1 = 0 ;
12527 PyObject * obj2 = 0 ;
12528 char *kwnames[] = {
12529 (char *) "self",(char *) "string",(char *) "font", NULL
12530 };
12531
12532 arg3 = &temp3;
12533 arg4 = &temp4;
12534 arg5 = &temp5;
12535 arg6 = &temp6;
12536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12537 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12538 {
12539 arg2 = wxString_in_helper(obj1);
12540 if (arg2 == NULL) SWIG_fail;
12541 temp2 = True;
12542 }
12543 if (obj2) {
12544 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12545 }
12546 {
12547 PyThreadState* __tstate = wxPyBeginAllowThreads();
12548 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12549
12550 wxPyEndAllowThreads(__tstate);
12551 if (PyErr_Occurred()) SWIG_fail;
12552 }
12553 Py_INCREF(Py_None); resultobj = Py_None;
12554 {
12555 PyObject *o = PyInt_FromLong((long) (*arg3));
12556 resultobj = t_output_helper(resultobj,o);
12557 }
12558 {
12559 PyObject *o = PyInt_FromLong((long) (*arg4));
12560 resultobj = t_output_helper(resultobj,o);
12561 }
12562 {
12563 PyObject *o = PyInt_FromLong((long) (*arg5));
12564 resultobj = t_output_helper(resultobj,o);
12565 }
12566 {
12567 PyObject *o = PyInt_FromLong((long) (*arg6));
12568 resultobj = t_output_helper(resultobj,o);
12569 }
12570 {
12571 if (temp2)
12572 delete arg2;
12573 }
12574 return resultobj;
12575 fail:
12576 {
12577 if (temp2)
12578 delete arg2;
12579 }
12580 return NULL;
12581 }
12582
12583
12584 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12585 PyObject *resultobj;
12586 wxDC *arg1 = (wxDC *) 0 ;
12587 wxString *arg2 = 0 ;
12588 int *arg3 = (int *) 0 ;
12589 int *arg4 = (int *) 0 ;
12590 int *arg5 = (int *) 0 ;
12591 wxFont *arg6 = (wxFont *) NULL ;
12592 bool temp2 = False ;
12593 int temp3 ;
12594 int temp4 ;
12595 int temp5 ;
12596 PyObject * obj0 = 0 ;
12597 PyObject * obj1 = 0 ;
12598 PyObject * obj2 = 0 ;
12599 char *kwnames[] = {
12600 (char *) "self",(char *) "text",(char *) "font", NULL
12601 };
12602
12603 arg3 = &temp3;
12604 arg4 = &temp4;
12605 arg5 = &temp5;
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12607 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12608 {
12609 arg2 = wxString_in_helper(obj1);
12610 if (arg2 == NULL) SWIG_fail;
12611 temp2 = True;
12612 }
12613 if (obj2) {
12614 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12615 }
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12619
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 Py_INCREF(Py_None); resultobj = Py_None;
12624 {
12625 PyObject *o = PyInt_FromLong((long) (*arg3));
12626 resultobj = t_output_helper(resultobj,o);
12627 }
12628 {
12629 PyObject *o = PyInt_FromLong((long) (*arg4));
12630 resultobj = t_output_helper(resultobj,o);
12631 }
12632 {
12633 PyObject *o = PyInt_FromLong((long) (*arg5));
12634 resultobj = t_output_helper(resultobj,o);
12635 }
12636 {
12637 if (temp2)
12638 delete arg2;
12639 }
12640 return resultobj;
12641 fail:
12642 {
12643 if (temp2)
12644 delete arg2;
12645 }
12646 return NULL;
12647 }
12648
12649
12650 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 wxDC *arg1 = (wxDC *) 0 ;
12653 wxSize result;
12654 PyObject * obj0 = 0 ;
12655 char *kwnames[] = {
12656 (char *) "self", NULL
12657 };
12658
12659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12660 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12661 {
12662 PyThreadState* __tstate = wxPyBeginAllowThreads();
12663 result = (arg1)->GetSize();
12664
12665 wxPyEndAllowThreads(__tstate);
12666 if (PyErr_Occurred()) SWIG_fail;
12667 }
12668 {
12669 wxSize * resultptr;
12670 resultptr = new wxSize((wxSize &) result);
12671 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12672 }
12673 return resultobj;
12674 fail:
12675 return NULL;
12676 }
12677
12678
12679 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12680 PyObject *resultobj;
12681 wxDC *arg1 = (wxDC *) 0 ;
12682 int *arg2 = (int *) 0 ;
12683 int *arg3 = (int *) 0 ;
12684 int temp2 ;
12685 int temp3 ;
12686 PyObject * obj0 = 0 ;
12687 char *kwnames[] = {
12688 (char *) "self", NULL
12689 };
12690
12691 arg2 = &temp2;
12692 arg3 = &temp3;
12693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12694 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12695 {
12696 PyThreadState* __tstate = wxPyBeginAllowThreads();
12697 (arg1)->GetSize(arg2,arg3);
12698
12699 wxPyEndAllowThreads(__tstate);
12700 if (PyErr_Occurred()) SWIG_fail;
12701 }
12702 Py_INCREF(Py_None); resultobj = Py_None;
12703 {
12704 PyObject *o = PyInt_FromLong((long) (*arg2));
12705 resultobj = t_output_helper(resultobj,o);
12706 }
12707 {
12708 PyObject *o = PyInt_FromLong((long) (*arg3));
12709 resultobj = t_output_helper(resultobj,o);
12710 }
12711 return resultobj;
12712 fail:
12713 return NULL;
12714 }
12715
12716
12717 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12718 PyObject *resultobj;
12719 wxDC *arg1 = (wxDC *) 0 ;
12720 wxSize result;
12721 PyObject * obj0 = 0 ;
12722 char *kwnames[] = {
12723 (char *) "self", NULL
12724 };
12725
12726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
12727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12728 {
12729 PyThreadState* __tstate = wxPyBeginAllowThreads();
12730 result = ((wxDC const *)arg1)->GetSizeMM();
12731
12732 wxPyEndAllowThreads(__tstate);
12733 if (PyErr_Occurred()) SWIG_fail;
12734 }
12735 {
12736 wxSize * resultptr;
12737 resultptr = new wxSize((wxSize &) result);
12738 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12739 }
12740 return resultobj;
12741 fail:
12742 return NULL;
12743 }
12744
12745
12746 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12747 PyObject *resultobj;
12748 wxDC *arg1 = (wxDC *) 0 ;
12749 int *arg2 = (int *) 0 ;
12750 int *arg3 = (int *) 0 ;
12751 int temp2 ;
12752 int temp3 ;
12753 PyObject * obj0 = 0 ;
12754 char *kwnames[] = {
12755 (char *) "self", NULL
12756 };
12757
12758 arg2 = &temp2;
12759 arg3 = &temp3;
12760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12761 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12765
12766 wxPyEndAllowThreads(__tstate);
12767 if (PyErr_Occurred()) SWIG_fail;
12768 }
12769 Py_INCREF(Py_None); resultobj = Py_None;
12770 {
12771 PyObject *o = PyInt_FromLong((long) (*arg2));
12772 resultobj = t_output_helper(resultobj,o);
12773 }
12774 {
12775 PyObject *o = PyInt_FromLong((long) (*arg3));
12776 resultobj = t_output_helper(resultobj,o);
12777 }
12778 return resultobj;
12779 fail:
12780 return NULL;
12781 }
12782
12783
12784 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj;
12786 wxDC *arg1 = (wxDC *) 0 ;
12787 int arg2 ;
12788 int result;
12789 PyObject * obj0 = 0 ;
12790 PyObject * obj1 = 0 ;
12791 char *kwnames[] = {
12792 (char *) "self",(char *) "x", NULL
12793 };
12794
12795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
12796 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12797 {
12798 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12799 if (PyErr_Occurred()) SWIG_fail;
12800 }
12801 {
12802 PyThreadState* __tstate = wxPyBeginAllowThreads();
12803 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12804
12805 wxPyEndAllowThreads(__tstate);
12806 if (PyErr_Occurred()) SWIG_fail;
12807 }
12808 resultobj = SWIG_PyObj_FromInt((int)result);
12809 return resultobj;
12810 fail:
12811 return NULL;
12812 }
12813
12814
12815 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12816 PyObject *resultobj;
12817 wxDC *arg1 = (wxDC *) 0 ;
12818 int arg2 ;
12819 int result;
12820 PyObject * obj0 = 0 ;
12821 PyObject * obj1 = 0 ;
12822 char *kwnames[] = {
12823 (char *) "self",(char *) "y", NULL
12824 };
12825
12826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
12827 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12828 {
12829 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 {
12833 PyThreadState* __tstate = wxPyBeginAllowThreads();
12834 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12835
12836 wxPyEndAllowThreads(__tstate);
12837 if (PyErr_Occurred()) SWIG_fail;
12838 }
12839 resultobj = SWIG_PyObj_FromInt((int)result);
12840 return resultobj;
12841 fail:
12842 return NULL;
12843 }
12844
12845
12846 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12847 PyObject *resultobj;
12848 wxDC *arg1 = (wxDC *) 0 ;
12849 int arg2 ;
12850 int result;
12851 PyObject * obj0 = 0 ;
12852 PyObject * obj1 = 0 ;
12853 char *kwnames[] = {
12854 (char *) "self",(char *) "x", NULL
12855 };
12856
12857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
12858 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12859 {
12860 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 {
12864 PyThreadState* __tstate = wxPyBeginAllowThreads();
12865 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12866
12867 wxPyEndAllowThreads(__tstate);
12868 if (PyErr_Occurred()) SWIG_fail;
12869 }
12870 resultobj = SWIG_PyObj_FromInt((int)result);
12871 return resultobj;
12872 fail:
12873 return NULL;
12874 }
12875
12876
12877 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12878 PyObject *resultobj;
12879 wxDC *arg1 = (wxDC *) 0 ;
12880 int arg2 ;
12881 int result;
12882 PyObject * obj0 = 0 ;
12883 PyObject * obj1 = 0 ;
12884 char *kwnames[] = {
12885 (char *) "self",(char *) "y", NULL
12886 };
12887
12888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
12889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12890 {
12891 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12892 if (PyErr_Occurred()) SWIG_fail;
12893 }
12894 {
12895 PyThreadState* __tstate = wxPyBeginAllowThreads();
12896 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
12897
12898 wxPyEndAllowThreads(__tstate);
12899 if (PyErr_Occurred()) SWIG_fail;
12900 }
12901 resultobj = SWIG_PyObj_FromInt((int)result);
12902 return resultobj;
12903 fail:
12904 return NULL;
12905 }
12906
12907
12908 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
12909 PyObject *resultobj;
12910 wxDC *arg1 = (wxDC *) 0 ;
12911 int arg2 ;
12912 int result;
12913 PyObject * obj0 = 0 ;
12914 PyObject * obj1 = 0 ;
12915 char *kwnames[] = {
12916 (char *) "self",(char *) "x", NULL
12917 };
12918
12919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
12920 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12921 {
12922 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12923 if (PyErr_Occurred()) SWIG_fail;
12924 }
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
12928
12929 wxPyEndAllowThreads(__tstate);
12930 if (PyErr_Occurred()) SWIG_fail;
12931 }
12932 resultobj = SWIG_PyObj_FromInt((int)result);
12933 return resultobj;
12934 fail:
12935 return NULL;
12936 }
12937
12938
12939 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
12940 PyObject *resultobj;
12941 wxDC *arg1 = (wxDC *) 0 ;
12942 int arg2 ;
12943 int result;
12944 PyObject * obj0 = 0 ;
12945 PyObject * obj1 = 0 ;
12946 char *kwnames[] = {
12947 (char *) "self",(char *) "y", NULL
12948 };
12949
12950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
12951 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12952 {
12953 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 {
12957 PyThreadState* __tstate = wxPyBeginAllowThreads();
12958 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
12959
12960 wxPyEndAllowThreads(__tstate);
12961 if (PyErr_Occurred()) SWIG_fail;
12962 }
12963 resultobj = SWIG_PyObj_FromInt((int)result);
12964 return resultobj;
12965 fail:
12966 return NULL;
12967 }
12968
12969
12970 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12971 PyObject *resultobj;
12972 wxDC *arg1 = (wxDC *) 0 ;
12973 int arg2 ;
12974 int result;
12975 PyObject * obj0 = 0 ;
12976 PyObject * obj1 = 0 ;
12977 char *kwnames[] = {
12978 (char *) "self",(char *) "x", NULL
12979 };
12980
12981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
12982 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12983 {
12984 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12985 if (PyErr_Occurred()) SWIG_fail;
12986 }
12987 {
12988 PyThreadState* __tstate = wxPyBeginAllowThreads();
12989 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
12990
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 resultobj = SWIG_PyObj_FromInt((int)result);
12995 return resultobj;
12996 fail:
12997 return NULL;
12998 }
12999
13000
13001 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13002 PyObject *resultobj;
13003 wxDC *arg1 = (wxDC *) 0 ;
13004 int arg2 ;
13005 int result;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 char *kwnames[] = {
13009 (char *) "self",(char *) "y", NULL
13010 };
13011
13012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13014 {
13015 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13016 if (PyErr_Occurred()) SWIG_fail;
13017 }
13018 {
13019 PyThreadState* __tstate = wxPyBeginAllowThreads();
13020 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13021
13022 wxPyEndAllowThreads(__tstate);
13023 if (PyErr_Occurred()) SWIG_fail;
13024 }
13025 resultobj = SWIG_PyObj_FromInt((int)result);
13026 return resultobj;
13027 fail:
13028 return NULL;
13029 }
13030
13031
13032 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13033 PyObject *resultobj;
13034 wxDC *arg1 = (wxDC *) 0 ;
13035 bool result;
13036 PyObject * obj0 = 0 ;
13037 char *kwnames[] = {
13038 (char *) "self", NULL
13039 };
13040
13041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13042 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13043 {
13044 PyThreadState* __tstate = wxPyBeginAllowThreads();
13045 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13046
13047 wxPyEndAllowThreads(__tstate);
13048 if (PyErr_Occurred()) SWIG_fail;
13049 }
13050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13051 return resultobj;
13052 fail:
13053 return NULL;
13054 }
13055
13056
13057 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13058 PyObject *resultobj;
13059 wxDC *arg1 = (wxDC *) 0 ;
13060 bool result;
13061 PyObject * obj0 = 0 ;
13062 char *kwnames[] = {
13063 (char *) "self", NULL
13064 };
13065
13066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13067 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13068 {
13069 PyThreadState* __tstate = wxPyBeginAllowThreads();
13070 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13071
13072 wxPyEndAllowThreads(__tstate);
13073 if (PyErr_Occurred()) SWIG_fail;
13074 }
13075 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13076 return resultobj;
13077 fail:
13078 return NULL;
13079 }
13080
13081
13082 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13083 PyObject *resultobj;
13084 wxDC *arg1 = (wxDC *) 0 ;
13085 int result;
13086 PyObject * obj0 = 0 ;
13087 char *kwnames[] = {
13088 (char *) "self", NULL
13089 };
13090
13091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13092 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13093 {
13094 PyThreadState* __tstate = wxPyBeginAllowThreads();
13095 result = (int)((wxDC const *)arg1)->GetDepth();
13096
13097 wxPyEndAllowThreads(__tstate);
13098 if (PyErr_Occurred()) SWIG_fail;
13099 }
13100 resultobj = SWIG_PyObj_FromInt((int)result);
13101 return resultobj;
13102 fail:
13103 return NULL;
13104 }
13105
13106
13107 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13108 PyObject *resultobj;
13109 wxDC *arg1 = (wxDC *) 0 ;
13110 wxSize result;
13111 PyObject * obj0 = 0 ;
13112 char *kwnames[] = {
13113 (char *) "self", NULL
13114 };
13115
13116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13117 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13118 {
13119 PyThreadState* __tstate = wxPyBeginAllowThreads();
13120 result = ((wxDC const *)arg1)->GetPPI();
13121
13122 wxPyEndAllowThreads(__tstate);
13123 if (PyErr_Occurred()) SWIG_fail;
13124 }
13125 {
13126 wxSize * resultptr;
13127 resultptr = new wxSize((wxSize &) result);
13128 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13129 }
13130 return resultobj;
13131 fail:
13132 return NULL;
13133 }
13134
13135
13136 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13137 PyObject *resultobj;
13138 wxDC *arg1 = (wxDC *) 0 ;
13139 bool result;
13140 PyObject * obj0 = 0 ;
13141 char *kwnames[] = {
13142 (char *) "self", NULL
13143 };
13144
13145 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13146 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (bool)((wxDC const *)arg1)->Ok();
13150
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13155 return resultobj;
13156 fail:
13157 return NULL;
13158 }
13159
13160
13161 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13162 PyObject *resultobj;
13163 wxDC *arg1 = (wxDC *) 0 ;
13164 int result;
13165 PyObject * obj0 = 0 ;
13166 char *kwnames[] = {
13167 (char *) "self", NULL
13168 };
13169
13170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13172 {
13173 PyThreadState* __tstate = wxPyBeginAllowThreads();
13174 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13175
13176 wxPyEndAllowThreads(__tstate);
13177 if (PyErr_Occurred()) SWIG_fail;
13178 }
13179 resultobj = SWIG_PyObj_FromInt((int)result);
13180 return resultobj;
13181 fail:
13182 return NULL;
13183 }
13184
13185
13186 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13187 PyObject *resultobj;
13188 wxDC *arg1 = (wxDC *) 0 ;
13189 wxBrush *result;
13190 PyObject * obj0 = 0 ;
13191 char *kwnames[] = {
13192 (char *) "self", NULL
13193 };
13194
13195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13196 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 {
13200 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13201 result = (wxBrush *) &_result_ref;
13202 }
13203
13204 wxPyEndAllowThreads(__tstate);
13205 if (PyErr_Occurred()) SWIG_fail;
13206 }
13207 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13208 return resultobj;
13209 fail:
13210 return NULL;
13211 }
13212
13213
13214 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13215 PyObject *resultobj;
13216 wxDC *arg1 = (wxDC *) 0 ;
13217 wxBrush *result;
13218 PyObject * obj0 = 0 ;
13219 char *kwnames[] = {
13220 (char *) "self", NULL
13221 };
13222
13223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13225 {
13226 PyThreadState* __tstate = wxPyBeginAllowThreads();
13227 {
13228 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13229 result = (wxBrush *) &_result_ref;
13230 }
13231
13232 wxPyEndAllowThreads(__tstate);
13233 if (PyErr_Occurred()) SWIG_fail;
13234 }
13235 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13236 return resultobj;
13237 fail:
13238 return NULL;
13239 }
13240
13241
13242 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13243 PyObject *resultobj;
13244 wxDC *arg1 = (wxDC *) 0 ;
13245 wxFont *result;
13246 PyObject * obj0 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 {
13256 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13257 result = (wxFont *) &_result_ref;
13258 }
13259
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13264 return resultobj;
13265 fail:
13266 return NULL;
13267 }
13268
13269
13270 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13271 PyObject *resultobj;
13272 wxDC *arg1 = (wxDC *) 0 ;
13273 wxPen *result;
13274 PyObject * obj0 = 0 ;
13275 char *kwnames[] = {
13276 (char *) "self", NULL
13277 };
13278
13279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13281 {
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 {
13284 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13285 result = (wxPen *) &_result_ref;
13286 }
13287
13288 wxPyEndAllowThreads(__tstate);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 }
13291 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13292 return resultobj;
13293 fail:
13294 return NULL;
13295 }
13296
13297
13298 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13299 PyObject *resultobj;
13300 wxDC *arg1 = (wxDC *) 0 ;
13301 wxColour *result;
13302 PyObject * obj0 = 0 ;
13303 char *kwnames[] = {
13304 (char *) "self", NULL
13305 };
13306
13307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13308 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13309 {
13310 PyThreadState* __tstate = wxPyBeginAllowThreads();
13311 {
13312 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13313 result = (wxColour *) &_result_ref;
13314 }
13315
13316 wxPyEndAllowThreads(__tstate);
13317 if (PyErr_Occurred()) SWIG_fail;
13318 }
13319 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13320 return resultobj;
13321 fail:
13322 return NULL;
13323 }
13324
13325
13326 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13327 PyObject *resultobj;
13328 wxDC *arg1 = (wxDC *) 0 ;
13329 wxColour *result;
13330 PyObject * obj0 = 0 ;
13331 char *kwnames[] = {
13332 (char *) "self", NULL
13333 };
13334
13335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13336 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 {
13340 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13341 result = (wxColour *) &_result_ref;
13342 }
13343
13344 wxPyEndAllowThreads(__tstate);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 }
13347 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13348 return resultobj;
13349 fail:
13350 return NULL;
13351 }
13352
13353
13354 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13355 PyObject *resultobj;
13356 wxDC *arg1 = (wxDC *) 0 ;
13357 wxColour *arg2 = 0 ;
13358 wxColour temp2 ;
13359 PyObject * obj0 = 0 ;
13360 PyObject * obj1 = 0 ;
13361 char *kwnames[] = {
13362 (char *) "self",(char *) "colour", NULL
13363 };
13364
13365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13367 {
13368 arg2 = &temp2;
13369 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13370 }
13371 {
13372 PyThreadState* __tstate = wxPyBeginAllowThreads();
13373 (arg1)->SetTextForeground((wxColour const &)*arg2);
13374
13375 wxPyEndAllowThreads(__tstate);
13376 if (PyErr_Occurred()) SWIG_fail;
13377 }
13378 Py_INCREF(Py_None); resultobj = Py_None;
13379 return resultobj;
13380 fail:
13381 return NULL;
13382 }
13383
13384
13385 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13386 PyObject *resultobj;
13387 wxDC *arg1 = (wxDC *) 0 ;
13388 wxColour *arg2 = 0 ;
13389 wxColour temp2 ;
13390 PyObject * obj0 = 0 ;
13391 PyObject * obj1 = 0 ;
13392 char *kwnames[] = {
13393 (char *) "self",(char *) "colour", NULL
13394 };
13395
13396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13397 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13398 {
13399 arg2 = &temp2;
13400 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13401 }
13402 {
13403 PyThreadState* __tstate = wxPyBeginAllowThreads();
13404 (arg1)->SetTextBackground((wxColour const &)*arg2);
13405
13406 wxPyEndAllowThreads(__tstate);
13407 if (PyErr_Occurred()) SWIG_fail;
13408 }
13409 Py_INCREF(Py_None); resultobj = Py_None;
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj;
13418 wxDC *arg1 = (wxDC *) 0 ;
13419 int result;
13420 PyObject * obj0 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",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 result = (int)((wxDC const *)arg1)->GetMapMode();
13430
13431 wxPyEndAllowThreads(__tstate);
13432 if (PyErr_Occurred()) SWIG_fail;
13433 }
13434 resultobj = SWIG_PyObj_FromInt((int)result);
13435 return resultobj;
13436 fail:
13437 return NULL;
13438 }
13439
13440
13441 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13442 PyObject *resultobj;
13443 wxDC *arg1 = (wxDC *) 0 ;
13444 int arg2 ;
13445 PyObject * obj0 = 0 ;
13446 PyObject * obj1 = 0 ;
13447 char *kwnames[] = {
13448 (char *) "self",(char *) "mode", NULL
13449 };
13450
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13453 {
13454 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 }
13457 {
13458 PyThreadState* __tstate = wxPyBeginAllowThreads();
13459 (arg1)->SetMapMode(arg2);
13460
13461 wxPyEndAllowThreads(__tstate);
13462 if (PyErr_Occurred()) SWIG_fail;
13463 }
13464 Py_INCREF(Py_None); resultobj = Py_None;
13465 return resultobj;
13466 fail:
13467 return NULL;
13468 }
13469
13470
13471 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13472 PyObject *resultobj;
13473 wxDC *arg1 = (wxDC *) 0 ;
13474 double *arg2 = (double *) 0 ;
13475 double *arg3 = (double *) 0 ;
13476 double temp2 ;
13477 double temp3 ;
13478 PyObject * obj0 = 0 ;
13479 char *kwnames[] = {
13480 (char *) "self", NULL
13481 };
13482
13483 arg2 = &temp2;
13484 arg3 = &temp3;
13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13486 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13487 {
13488 PyThreadState* __tstate = wxPyBeginAllowThreads();
13489 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13490
13491 wxPyEndAllowThreads(__tstate);
13492 if (PyErr_Occurred()) SWIG_fail;
13493 }
13494 Py_INCREF(Py_None); resultobj = Py_None;
13495 {
13496 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13497 resultobj = t_output_helper(resultobj,o);
13498 }
13499 {
13500 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13501 resultobj = t_output_helper(resultobj,o);
13502 }
13503 return resultobj;
13504 fail:
13505 return NULL;
13506 }
13507
13508
13509 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13510 PyObject *resultobj;
13511 wxDC *arg1 = (wxDC *) 0 ;
13512 double arg2 ;
13513 double arg3 ;
13514 PyObject * obj0 = 0 ;
13515 PyObject * obj1 = 0 ;
13516 PyObject * obj2 = 0 ;
13517 char *kwnames[] = {
13518 (char *) "self",(char *) "x",(char *) "y", NULL
13519 };
13520
13521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13522 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13523 {
13524 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13525 if (PyErr_Occurred()) SWIG_fail;
13526 }
13527 {
13528 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13529 if (PyErr_Occurred()) SWIG_fail;
13530 }
13531 {
13532 PyThreadState* __tstate = wxPyBeginAllowThreads();
13533 (arg1)->SetUserScale(arg2,arg3);
13534
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 Py_INCREF(Py_None); resultobj = Py_None;
13539 return resultobj;
13540 fail:
13541 return NULL;
13542 }
13543
13544
13545 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13546 PyObject *resultobj;
13547 wxDC *arg1 = (wxDC *) 0 ;
13548 double *arg2 = (double *) 0 ;
13549 double *arg3 = (double *) 0 ;
13550 double temp2 ;
13551 double temp3 ;
13552 PyObject * obj0 = 0 ;
13553 char *kwnames[] = {
13554 (char *) "self", NULL
13555 };
13556
13557 arg2 = &temp2;
13558 arg3 = &temp3;
13559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 (arg1)->GetLogicalScale(arg2,arg3);
13564
13565 wxPyEndAllowThreads(__tstate);
13566 if (PyErr_Occurred()) SWIG_fail;
13567 }
13568 Py_INCREF(Py_None); resultobj = Py_None;
13569 {
13570 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13571 resultobj = t_output_helper(resultobj,o);
13572 }
13573 {
13574 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13575 resultobj = t_output_helper(resultobj,o);
13576 }
13577 return resultobj;
13578 fail:
13579 return NULL;
13580 }
13581
13582
13583 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13584 PyObject *resultobj;
13585 wxDC *arg1 = (wxDC *) 0 ;
13586 double arg2 ;
13587 double arg3 ;
13588 PyObject * obj0 = 0 ;
13589 PyObject * obj1 = 0 ;
13590 PyObject * obj2 = 0 ;
13591 char *kwnames[] = {
13592 (char *) "self",(char *) "x",(char *) "y", NULL
13593 };
13594
13595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13596 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13597 {
13598 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 {
13602 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 (arg1)->SetLogicalScale(arg2,arg3);
13608
13609 wxPyEndAllowThreads(__tstate);
13610 if (PyErr_Occurred()) SWIG_fail;
13611 }
13612 Py_INCREF(Py_None); resultobj = Py_None;
13613 return resultobj;
13614 fail:
13615 return NULL;
13616 }
13617
13618
13619 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13620 PyObject *resultobj;
13621 wxDC *arg1 = (wxDC *) 0 ;
13622 wxPoint result;
13623 PyObject * obj0 = 0 ;
13624 char *kwnames[] = {
13625 (char *) "self", NULL
13626 };
13627
13628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13629 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13630 {
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13633
13634 wxPyEndAllowThreads(__tstate);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 {
13638 wxPoint * resultptr;
13639 resultptr = new wxPoint((wxPoint &) result);
13640 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13641 }
13642 return resultobj;
13643 fail:
13644 return NULL;
13645 }
13646
13647
13648 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13649 PyObject *resultobj;
13650 wxDC *arg1 = (wxDC *) 0 ;
13651 int *arg2 = (int *) 0 ;
13652 int *arg3 = (int *) 0 ;
13653 int temp2 ;
13654 int temp3 ;
13655 PyObject * obj0 = 0 ;
13656 char *kwnames[] = {
13657 (char *) "self", NULL
13658 };
13659
13660 arg2 = &temp2;
13661 arg3 = &temp3;
13662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13663 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13664 {
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13667
13668 wxPyEndAllowThreads(__tstate);
13669 if (PyErr_Occurred()) SWIG_fail;
13670 }
13671 Py_INCREF(Py_None); resultobj = Py_None;
13672 {
13673 PyObject *o = PyInt_FromLong((long) (*arg2));
13674 resultobj = t_output_helper(resultobj,o);
13675 }
13676 {
13677 PyObject *o = PyInt_FromLong((long) (*arg3));
13678 resultobj = t_output_helper(resultobj,o);
13679 }
13680 return resultobj;
13681 fail:
13682 return NULL;
13683 }
13684
13685
13686 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13687 PyObject *resultobj;
13688 wxDC *arg1 = (wxDC *) 0 ;
13689 int arg2 ;
13690 int arg3 ;
13691 PyObject * obj0 = 0 ;
13692 PyObject * obj1 = 0 ;
13693 PyObject * obj2 = 0 ;
13694 char *kwnames[] = {
13695 (char *) "self",(char *) "x",(char *) "y", NULL
13696 };
13697
13698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13699 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13700 {
13701 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 {
13705 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 {
13709 PyThreadState* __tstate = wxPyBeginAllowThreads();
13710 (arg1)->SetLogicalOrigin(arg2,arg3);
13711
13712 wxPyEndAllowThreads(__tstate);
13713 if (PyErr_Occurred()) SWIG_fail;
13714 }
13715 Py_INCREF(Py_None); resultobj = Py_None;
13716 return resultobj;
13717 fail:
13718 return NULL;
13719 }
13720
13721
13722 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13723 PyObject *resultobj;
13724 wxDC *arg1 = (wxDC *) 0 ;
13725 wxPoint result;
13726 PyObject * obj0 = 0 ;
13727 char *kwnames[] = {
13728 (char *) "self", NULL
13729 };
13730
13731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
13732 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13733 {
13734 PyThreadState* __tstate = wxPyBeginAllowThreads();
13735 result = ((wxDC const *)arg1)->GetDeviceOrigin();
13736
13737 wxPyEndAllowThreads(__tstate);
13738 if (PyErr_Occurred()) SWIG_fail;
13739 }
13740 {
13741 wxPoint * resultptr;
13742 resultptr = new wxPoint((wxPoint &) result);
13743 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13744 }
13745 return resultobj;
13746 fail:
13747 return NULL;
13748 }
13749
13750
13751 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj;
13753 wxDC *arg1 = (wxDC *) 0 ;
13754 int *arg2 = (int *) 0 ;
13755 int *arg3 = (int *) 0 ;
13756 int temp2 ;
13757 int temp3 ;
13758 PyObject * obj0 = 0 ;
13759 char *kwnames[] = {
13760 (char *) "self", NULL
13761 };
13762
13763 arg2 = &temp2;
13764 arg3 = &temp3;
13765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
13766 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
13770
13771 wxPyEndAllowThreads(__tstate);
13772 if (PyErr_Occurred()) SWIG_fail;
13773 }
13774 Py_INCREF(Py_None); resultobj = Py_None;
13775 {
13776 PyObject *o = PyInt_FromLong((long) (*arg2));
13777 resultobj = t_output_helper(resultobj,o);
13778 }
13779 {
13780 PyObject *o = PyInt_FromLong((long) (*arg3));
13781 resultobj = t_output_helper(resultobj,o);
13782 }
13783 return resultobj;
13784 fail:
13785 return NULL;
13786 }
13787
13788
13789 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13790 PyObject *resultobj;
13791 wxDC *arg1 = (wxDC *) 0 ;
13792 int arg2 ;
13793 int arg3 ;
13794 PyObject * obj0 = 0 ;
13795 PyObject * obj1 = 0 ;
13796 PyObject * obj2 = 0 ;
13797 char *kwnames[] = {
13798 (char *) "self",(char *) "x",(char *) "y", NULL
13799 };
13800
13801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13803 {
13804 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13805 if (PyErr_Occurred()) SWIG_fail;
13806 }
13807 {
13808 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13809 if (PyErr_Occurred()) SWIG_fail;
13810 }
13811 {
13812 PyThreadState* __tstate = wxPyBeginAllowThreads();
13813 (arg1)->SetDeviceOrigin(arg2,arg3);
13814
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 Py_INCREF(Py_None); resultobj = Py_None;
13819 return resultobj;
13820 fail:
13821 return NULL;
13822 }
13823
13824
13825 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13826 PyObject *resultobj;
13827 wxDC *arg1 = (wxDC *) 0 ;
13828 bool arg2 ;
13829 bool arg3 ;
13830 PyObject * obj0 = 0 ;
13831 PyObject * obj1 = 0 ;
13832 PyObject * obj2 = 0 ;
13833 char *kwnames[] = {
13834 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13835 };
13836
13837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13838 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13839 {
13840 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 {
13844 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 {
13848 PyThreadState* __tstate = wxPyBeginAllowThreads();
13849 (arg1)->SetAxisOrientation(arg2,arg3);
13850
13851 wxPyEndAllowThreads(__tstate);
13852 if (PyErr_Occurred()) SWIG_fail;
13853 }
13854 Py_INCREF(Py_None); resultobj = Py_None;
13855 return resultobj;
13856 fail:
13857 return NULL;
13858 }
13859
13860
13861 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13862 PyObject *resultobj;
13863 wxDC *arg1 = (wxDC *) 0 ;
13864 int result;
13865 PyObject * obj0 = 0 ;
13866 char *kwnames[] = {
13867 (char *) "self", NULL
13868 };
13869
13870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13871 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13872 {
13873 PyThreadState* __tstate = wxPyBeginAllowThreads();
13874 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13875
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = SWIG_PyObj_FromInt((int)result);
13880 return resultobj;
13881 fail:
13882 return NULL;
13883 }
13884
13885
13886 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj;
13888 wxDC *arg1 = (wxDC *) 0 ;
13889 int arg2 ;
13890 PyObject * obj0 = 0 ;
13891 PyObject * obj1 = 0 ;
13892 char *kwnames[] = {
13893 (char *) "self",(char *) "function", NULL
13894 };
13895
13896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
13897 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13898 {
13899 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13900 if (PyErr_Occurred()) SWIG_fail;
13901 }
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 (arg1)->SetLogicalFunction(arg2);
13905
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 Py_INCREF(Py_None); resultobj = Py_None;
13910 return resultobj;
13911 fail:
13912 return NULL;
13913 }
13914
13915
13916 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13917 PyObject *resultobj;
13918 wxDC *arg1 = (wxDC *) 0 ;
13919 bool arg2 ;
13920 PyObject * obj0 = 0 ;
13921 PyObject * obj1 = 0 ;
13922 char *kwnames[] = {
13923 (char *) "self",(char *) "opt", NULL
13924 };
13925
13926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
13927 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13928 {
13929 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13930 if (PyErr_Occurred()) SWIG_fail;
13931 }
13932 {
13933 PyThreadState* __tstate = wxPyBeginAllowThreads();
13934 (arg1)->SetOptimization(arg2);
13935
13936 wxPyEndAllowThreads(__tstate);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 }
13939 Py_INCREF(Py_None); resultobj = Py_None;
13940 return resultobj;
13941 fail:
13942 return NULL;
13943 }
13944
13945
13946 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13947 PyObject *resultobj;
13948 wxDC *arg1 = (wxDC *) 0 ;
13949 bool result;
13950 PyObject * obj0 = 0 ;
13951 char *kwnames[] = {
13952 (char *) "self", NULL
13953 };
13954
13955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
13956 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13957 {
13958 PyThreadState* __tstate = wxPyBeginAllowThreads();
13959 result = (bool)(arg1)->GetOptimization();
13960
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13965 return resultobj;
13966 fail:
13967 return NULL;
13968 }
13969
13970
13971 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13972 PyObject *resultobj;
13973 wxDC *arg1 = (wxDC *) 0 ;
13974 int arg2 ;
13975 int arg3 ;
13976 PyObject * obj0 = 0 ;
13977 PyObject * obj1 = 0 ;
13978 PyObject * obj2 = 0 ;
13979 char *kwnames[] = {
13980 (char *) "self",(char *) "x",(char *) "y", NULL
13981 };
13982
13983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
13984 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13985 {
13986 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13987 if (PyErr_Occurred()) SWIG_fail;
13988 }
13989 {
13990 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 {
13994 PyThreadState* __tstate = wxPyBeginAllowThreads();
13995 (arg1)->CalcBoundingBox(arg2,arg3);
13996
13997 wxPyEndAllowThreads(__tstate);
13998 if (PyErr_Occurred()) SWIG_fail;
13999 }
14000 Py_INCREF(Py_None); resultobj = Py_None;
14001 return resultobj;
14002 fail:
14003 return NULL;
14004 }
14005
14006
14007 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14008 PyObject *resultobj;
14009 wxDC *arg1 = (wxDC *) 0 ;
14010 PyObject * obj0 = 0 ;
14011 char *kwnames[] = {
14012 (char *) "self", NULL
14013 };
14014
14015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14016 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14017 {
14018 PyThreadState* __tstate = wxPyBeginAllowThreads();
14019 (arg1)->ResetBoundingBox();
14020
14021 wxPyEndAllowThreads(__tstate);
14022 if (PyErr_Occurred()) SWIG_fail;
14023 }
14024 Py_INCREF(Py_None); resultobj = Py_None;
14025 return resultobj;
14026 fail:
14027 return NULL;
14028 }
14029
14030
14031 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14032 PyObject *resultobj;
14033 wxDC *arg1 = (wxDC *) 0 ;
14034 int result;
14035 PyObject * obj0 = 0 ;
14036 char *kwnames[] = {
14037 (char *) "self", NULL
14038 };
14039
14040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14041 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
14044 result = (int)((wxDC const *)arg1)->MinX();
14045
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_PyObj_FromInt((int)result);
14050 return resultobj;
14051 fail:
14052 return NULL;
14053 }
14054
14055
14056 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj;
14058 wxDC *arg1 = (wxDC *) 0 ;
14059 int result;
14060 PyObject * obj0 = 0 ;
14061 char *kwnames[] = {
14062 (char *) "self", NULL
14063 };
14064
14065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14066 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14067 {
14068 PyThreadState* __tstate = wxPyBeginAllowThreads();
14069 result = (int)((wxDC const *)arg1)->MaxX();
14070
14071 wxPyEndAllowThreads(__tstate);
14072 if (PyErr_Occurred()) SWIG_fail;
14073 }
14074 resultobj = SWIG_PyObj_FromInt((int)result);
14075 return resultobj;
14076 fail:
14077 return NULL;
14078 }
14079
14080
14081 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14082 PyObject *resultobj;
14083 wxDC *arg1 = (wxDC *) 0 ;
14084 int result;
14085 PyObject * obj0 = 0 ;
14086 char *kwnames[] = {
14087 (char *) "self", NULL
14088 };
14089
14090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14091 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14092 {
14093 PyThreadState* __tstate = wxPyBeginAllowThreads();
14094 result = (int)((wxDC const *)arg1)->MinY();
14095
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_PyObj_FromInt((int)result);
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14107 PyObject *resultobj;
14108 wxDC *arg1 = (wxDC *) 0 ;
14109 int result;
14110 PyObject * obj0 = 0 ;
14111 char *kwnames[] = {
14112 (char *) "self", NULL
14113 };
14114
14115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14116 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14117 {
14118 PyThreadState* __tstate = wxPyBeginAllowThreads();
14119 result = (int)((wxDC const *)arg1)->MaxY();
14120
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 resultobj = SWIG_PyObj_FromInt((int)result);
14125 return resultobj;
14126 fail:
14127 return NULL;
14128 }
14129
14130
14131 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14132 PyObject *resultobj;
14133 wxDC *arg1 = (wxDC *) 0 ;
14134 int *arg2 = (int *) 0 ;
14135 int *arg3 = (int *) 0 ;
14136 int *arg4 = (int *) 0 ;
14137 int *arg5 = (int *) 0 ;
14138 int temp2 ;
14139 int temp3 ;
14140 int temp4 ;
14141 int temp5 ;
14142 PyObject * obj0 = 0 ;
14143 char *kwnames[] = {
14144 (char *) "self", NULL
14145 };
14146
14147 arg2 = &temp2;
14148 arg3 = &temp3;
14149 arg4 = &temp4;
14150 arg5 = &temp5;
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14156
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 Py_INCREF(Py_None); resultobj = Py_None;
14161 {
14162 PyObject *o = PyInt_FromLong((long) (*arg2));
14163 resultobj = t_output_helper(resultobj,o);
14164 }
14165 {
14166 PyObject *o = PyInt_FromLong((long) (*arg3));
14167 resultobj = t_output_helper(resultobj,o);
14168 }
14169 {
14170 PyObject *o = PyInt_FromLong((long) (*arg4));
14171 resultobj = t_output_helper(resultobj,o);
14172 }
14173 {
14174 PyObject *o = PyInt_FromLong((long) (*arg5));
14175 resultobj = t_output_helper(resultobj,o);
14176 }
14177 return resultobj;
14178 fail:
14179 return NULL;
14180 }
14181
14182
14183 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14184 PyObject *resultobj;
14185 wxDC *arg1 = (wxDC *) 0 ;
14186 PyObject *arg2 = (PyObject *) 0 ;
14187 PyObject *arg3 = (PyObject *) 0 ;
14188 PyObject *arg4 = (PyObject *) 0 ;
14189 PyObject *result;
14190 PyObject * obj0 = 0 ;
14191 PyObject * obj1 = 0 ;
14192 PyObject * obj2 = 0 ;
14193 PyObject * obj3 = 0 ;
14194 char *kwnames[] = {
14195 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14196 };
14197
14198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14200 arg2 = obj1;
14201 arg3 = obj2;
14202 arg4 = obj3;
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14206
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 resultobj = result;
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj;
14219 wxDC *arg1 = (wxDC *) 0 ;
14220 PyObject *arg2 = (PyObject *) 0 ;
14221 PyObject *arg3 = (PyObject *) 0 ;
14222 PyObject *arg4 = (PyObject *) 0 ;
14223 PyObject *result;
14224 PyObject * obj0 = 0 ;
14225 PyObject * obj1 = 0 ;
14226 PyObject * obj2 = 0 ;
14227 PyObject * obj3 = 0 ;
14228 char *kwnames[] = {
14229 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14230 };
14231
14232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14233 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14234 arg2 = obj1;
14235 arg3 = obj2;
14236 arg4 = obj3;
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14240
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 resultobj = result;
14245 return resultobj;
14246 fail:
14247 return NULL;
14248 }
14249
14250
14251 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14252 PyObject *resultobj;
14253 wxDC *arg1 = (wxDC *) 0 ;
14254 PyObject *arg2 = (PyObject *) 0 ;
14255 PyObject *arg3 = (PyObject *) 0 ;
14256 PyObject *arg4 = (PyObject *) 0 ;
14257 PyObject *result;
14258 PyObject * obj0 = 0 ;
14259 PyObject * obj1 = 0 ;
14260 PyObject * obj2 = 0 ;
14261 PyObject * obj3 = 0 ;
14262 char *kwnames[] = {
14263 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14264 };
14265
14266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14267 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14268 arg2 = obj1;
14269 arg3 = obj2;
14270 arg4 = obj3;
14271 {
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14274
14275 wxPyEndAllowThreads(__tstate);
14276 if (PyErr_Occurred()) SWIG_fail;
14277 }
14278 resultobj = result;
14279 return resultobj;
14280 fail:
14281 return NULL;
14282 }
14283
14284
14285 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14286 PyObject *resultobj;
14287 wxDC *arg1 = (wxDC *) 0 ;
14288 PyObject *arg2 = (PyObject *) 0 ;
14289 PyObject *arg3 = (PyObject *) 0 ;
14290 PyObject *arg4 = (PyObject *) 0 ;
14291 PyObject *result;
14292 PyObject * obj0 = 0 ;
14293 PyObject * obj1 = 0 ;
14294 PyObject * obj2 = 0 ;
14295 PyObject * obj3 = 0 ;
14296 char *kwnames[] = {
14297 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14298 };
14299
14300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14301 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14302 arg2 = obj1;
14303 arg3 = obj2;
14304 arg4 = obj3;
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14308
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 resultobj = result;
14313 return resultobj;
14314 fail:
14315 return NULL;
14316 }
14317
14318
14319 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14320 PyObject *resultobj;
14321 wxDC *arg1 = (wxDC *) 0 ;
14322 PyObject *arg2 = (PyObject *) 0 ;
14323 PyObject *arg3 = (PyObject *) 0 ;
14324 PyObject *arg4 = (PyObject *) 0 ;
14325 PyObject *result;
14326 PyObject * obj0 = 0 ;
14327 PyObject * obj1 = 0 ;
14328 PyObject * obj2 = 0 ;
14329 PyObject * obj3 = 0 ;
14330 char *kwnames[] = {
14331 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14332 };
14333
14334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14336 arg2 = obj1;
14337 arg3 = obj2;
14338 arg4 = obj3;
14339 {
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 resultobj = result;
14347 return resultobj;
14348 fail:
14349 return NULL;
14350 }
14351
14352
14353 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14354 PyObject *resultobj;
14355 wxDC *arg1 = (wxDC *) 0 ;
14356 PyObject *arg2 = (PyObject *) 0 ;
14357 PyObject *arg3 = (PyObject *) 0 ;
14358 PyObject *arg4 = (PyObject *) 0 ;
14359 PyObject *arg5 = (PyObject *) 0 ;
14360 PyObject *result;
14361 PyObject * obj0 = 0 ;
14362 PyObject * obj1 = 0 ;
14363 PyObject * obj2 = 0 ;
14364 PyObject * obj3 = 0 ;
14365 PyObject * obj4 = 0 ;
14366 char *kwnames[] = {
14367 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14368 };
14369
14370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14372 arg2 = obj1;
14373 arg3 = obj2;
14374 arg4 = obj3;
14375 arg5 = obj4;
14376 {
14377 PyThreadState* __tstate = wxPyBeginAllowThreads();
14378 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14379
14380 wxPyEndAllowThreads(__tstate);
14381 if (PyErr_Occurred()) SWIG_fail;
14382 }
14383 resultobj = result;
14384 return resultobj;
14385 fail:
14386 return NULL;
14387 }
14388
14389
14390 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14391 PyObject *obj;
14392 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14393 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14394 Py_INCREF(obj);
14395 return Py_BuildValue((char *)"");
14396 }
14397 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14398 PyObject *resultobj;
14399 wxMemoryDC *result;
14400 char *kwnames[] = {
14401 NULL
14402 };
14403
14404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14405 {
14406 PyThreadState* __tstate = wxPyBeginAllowThreads();
14407 result = (wxMemoryDC *)new wxMemoryDC();
14408
14409 wxPyEndAllowThreads(__tstate);
14410 if (PyErr_Occurred()) SWIG_fail;
14411 }
14412 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14413 return resultobj;
14414 fail:
14415 return NULL;
14416 }
14417
14418
14419 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14420 PyObject *resultobj;
14421 wxDC *arg1 = (wxDC *) 0 ;
14422 wxMemoryDC *result;
14423 PyObject * obj0 = 0 ;
14424 char *kwnames[] = {
14425 (char *) "oldDC", NULL
14426 };
14427
14428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14433
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14438 return resultobj;
14439 fail:
14440 return NULL;
14441 }
14442
14443
14444 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14445 PyObject *resultobj;
14446 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14447 wxBitmap *arg2 = 0 ;
14448 PyObject * obj0 = 0 ;
14449 PyObject * obj1 = 0 ;
14450 char *kwnames[] = {
14451 (char *) "self",(char *) "bitmap", NULL
14452 };
14453
14454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14456 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14457 if (arg2 == NULL) {
14458 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14459 }
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 (arg1)->SelectObject((wxBitmap const &)*arg2);
14463
14464 wxPyEndAllowThreads(__tstate);
14465 if (PyErr_Occurred()) SWIG_fail;
14466 }
14467 Py_INCREF(Py_None); resultobj = Py_None;
14468 return resultobj;
14469 fail:
14470 return NULL;
14471 }
14472
14473
14474 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14475 PyObject *obj;
14476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14477 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14478 Py_INCREF(obj);
14479 return Py_BuildValue((char *)"");
14480 }
14481 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14482 PyObject *resultobj;
14483 wxDC *arg1 = (wxDC *) 0 ;
14484 wxBitmap *arg2 = 0 ;
14485 wxBufferedDC *result;
14486 PyObject * obj0 = 0 ;
14487 PyObject * obj1 = 0 ;
14488 char *kwnames[] = {
14489 (char *) "dc",(char *) "buffer", NULL
14490 };
14491
14492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
14493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14494 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14495 if (arg2 == NULL) {
14496 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14497 }
14498 {
14499 PyThreadState* __tstate = wxPyBeginAllowThreads();
14500 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14501
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14506 return resultobj;
14507 fail:
14508 return NULL;
14509 }
14510
14511
14512 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
14513 PyObject *resultobj;
14514 wxDC *arg1 = (wxDC *) 0 ;
14515 wxSize *arg2 = 0 ;
14516 wxBufferedDC *result;
14517 wxSize temp2 ;
14518 PyObject * obj0 = 0 ;
14519 PyObject * obj1 = 0 ;
14520 char *kwnames[] = {
14521 (char *) "dc",(char *) "area", NULL
14522 };
14523
14524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
14525 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14526 {
14527 arg2 = &temp2;
14528 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14529 }
14530 {
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14533
14534 wxPyEndAllowThreads(__tstate);
14535 if (PyErr_Occurred()) SWIG_fail;
14536 }
14537 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14538 return resultobj;
14539 fail:
14540 return NULL;
14541 }
14542
14543
14544 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14545 PyObject *resultobj;
14546 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14547 PyObject * obj0 = 0 ;
14548 char *kwnames[] = {
14549 (char *) "self", NULL
14550 };
14551
14552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14554 {
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 (arg1)->UnMask();
14557
14558 wxPyEndAllowThreads(__tstate);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 }
14561 Py_INCREF(Py_None); resultobj = Py_None;
14562 return resultobj;
14563 fail:
14564 return NULL;
14565 }
14566
14567
14568 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14569 PyObject *obj;
14570 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14571 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14572 Py_INCREF(obj);
14573 return Py_BuildValue((char *)"");
14574 }
14575 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14576 PyObject *resultobj;
14577 wxWindow *arg1 = (wxWindow *) 0 ;
14578 wxBitmap const &arg2_defvalue = wxNullBitmap ;
14579 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
14580 wxBufferedPaintDC *result;
14581 PyObject * obj0 = 0 ;
14582 PyObject * obj1 = 0 ;
14583 char *kwnames[] = {
14584 (char *) "window",(char *) "buffer", NULL
14585 };
14586
14587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
14588 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14589 if (obj1) {
14590 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14591 if (arg2 == NULL) {
14592 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14593 }
14594 }
14595 {
14596 PyThreadState* __tstate = wxPyBeginAllowThreads();
14597 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
14598
14599 wxPyEndAllowThreads(__tstate);
14600 if (PyErr_Occurred()) SWIG_fail;
14601 }
14602 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14603 return resultobj;
14604 fail:
14605 return NULL;
14606 }
14607
14608
14609 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
14610 PyObject *obj;
14611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14612 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
14613 Py_INCREF(obj);
14614 return Py_BuildValue((char *)"");
14615 }
14616 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj;
14618 wxScreenDC *result;
14619 char *kwnames[] = {
14620 NULL
14621 };
14622
14623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 result = (wxScreenDC *)new wxScreenDC();
14627
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
14632 return resultobj;
14633 fail:
14634 return NULL;
14635 }
14636
14637
14638 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj;
14640 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14641 wxWindow *arg2 = (wxWindow *) 0 ;
14642 bool result;
14643 PyObject * obj0 = 0 ;
14644 PyObject * obj1 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "self",(char *) "window", NULL
14647 };
14648
14649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
14650 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14651 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14652 {
14653 PyThreadState* __tstate = wxPyBeginAllowThreads();
14654 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14655
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14667 PyObject *resultobj;
14668 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14669 wxRect *arg2 = (wxRect *) NULL ;
14670 bool result;
14671 PyObject * obj0 = 0 ;
14672 PyObject * obj1 = 0 ;
14673 char *kwnames[] = {
14674 (char *) "self",(char *) "rect", NULL
14675 };
14676
14677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
14678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14679 if (obj1) {
14680 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14681 }
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14685
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14697 PyObject *resultobj;
14698 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14699 bool result;
14700 PyObject * obj0 = 0 ;
14701 char *kwnames[] = {
14702 (char *) "self", NULL
14703 };
14704
14705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
14706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (bool)(arg1)->EndDrawingOnTop();
14710
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14715 return resultobj;
14716 fail:
14717 return NULL;
14718 }
14719
14720
14721 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
14722 PyObject *obj;
14723 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14724 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
14725 Py_INCREF(obj);
14726 return Py_BuildValue((char *)"");
14727 }
14728 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj;
14730 wxWindow *arg1 = (wxWindow *) 0 ;
14731 wxClientDC *result;
14732 PyObject * obj0 = 0 ;
14733 char *kwnames[] = {
14734 (char *) "win", NULL
14735 };
14736
14737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
14738 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 result = (wxClientDC *)new wxClientDC(arg1);
14742
14743 wxPyEndAllowThreads(__tstate);
14744 if (PyErr_Occurred()) SWIG_fail;
14745 }
14746 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
14747 return resultobj;
14748 fail:
14749 return NULL;
14750 }
14751
14752
14753 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
14754 PyObject *obj;
14755 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14756 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
14757 Py_INCREF(obj);
14758 return Py_BuildValue((char *)"");
14759 }
14760 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxWindow *arg1 = (wxWindow *) 0 ;
14763 wxPaintDC *result;
14764 PyObject * obj0 = 0 ;
14765 char *kwnames[] = {
14766 (char *) "win", NULL
14767 };
14768
14769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
14770 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (wxPaintDC *)new wxPaintDC(arg1);
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
14786 PyObject *obj;
14787 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14788 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
14789 Py_INCREF(obj);
14790 return Py_BuildValue((char *)"");
14791 }
14792 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14793 PyObject *resultobj;
14794 wxWindow *arg1 = (wxWindow *) 0 ;
14795 wxWindowDC *result;
14796 PyObject * obj0 = 0 ;
14797 char *kwnames[] = {
14798 (char *) "win", NULL
14799 };
14800
14801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
14802 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14803 {
14804 PyThreadState* __tstate = wxPyBeginAllowThreads();
14805 result = (wxWindowDC *)new wxWindowDC(arg1);
14806
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
14811 return resultobj;
14812 fail:
14813 return NULL;
14814 }
14815
14816
14817 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
14818 PyObject *obj;
14819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14820 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
14821 Py_INCREF(obj);
14822 return Py_BuildValue((char *)"");
14823 }
14824 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14825 PyObject *resultobj;
14826 wxDC *arg1 = 0 ;
14827 bool arg2 ;
14828 wxMirrorDC *result;
14829 PyObject * obj0 = 0 ;
14830 PyObject * obj1 = 0 ;
14831 char *kwnames[] = {
14832 (char *) "dc",(char *) "mirror", NULL
14833 };
14834
14835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
14836 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14837 if (arg1 == NULL) {
14838 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14839 }
14840 {
14841 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14842 if (PyErr_Occurred()) SWIG_fail;
14843 }
14844 {
14845 PyThreadState* __tstate = wxPyBeginAllowThreads();
14846 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
14847
14848 wxPyEndAllowThreads(__tstate);
14849 if (PyErr_Occurred()) SWIG_fail;
14850 }
14851 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
14852 return resultobj;
14853 fail:
14854 return NULL;
14855 }
14856
14857
14858 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
14859 PyObject *obj;
14860 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14861 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
14862 Py_INCREF(obj);
14863 return Py_BuildValue((char *)"");
14864 }
14865 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj;
14867 wxPrintData *arg1 = 0 ;
14868 wxPostScriptDC *result;
14869 PyObject * obj0 = 0 ;
14870 char *kwnames[] = {
14871 (char *) "printData", NULL
14872 };
14873
14874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
14875 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14876 if (arg1 == NULL) {
14877 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14878 }
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
14882
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
14887 return resultobj;
14888 fail:
14889 return NULL;
14890 }
14891
14892
14893 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14894 PyObject *resultobj;
14895 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14896 wxPrintData *result;
14897 PyObject * obj0 = 0 ;
14898 char *kwnames[] = {
14899 (char *) "self", NULL
14900 };
14901
14902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
14903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14904 {
14905 PyThreadState* __tstate = wxPyBeginAllowThreads();
14906 {
14907 wxPrintData &_result_ref = (arg1)->GetPrintData();
14908 result = (wxPrintData *) &_result_ref;
14909 }
14910
14911 wxPyEndAllowThreads(__tstate);
14912 if (PyErr_Occurred()) SWIG_fail;
14913 }
14914 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
14915 return resultobj;
14916 fail:
14917 return NULL;
14918 }
14919
14920
14921 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj;
14923 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14924 wxPrintData *arg2 = 0 ;
14925 PyObject * obj0 = 0 ;
14926 PyObject * obj1 = 0 ;
14927 char *kwnames[] = {
14928 (char *) "self",(char *) "data", NULL
14929 };
14930
14931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
14932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14933 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14934 if (arg2 == NULL) {
14935 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14936 }
14937 {
14938 PyThreadState* __tstate = wxPyBeginAllowThreads();
14939 (arg1)->SetPrintData((wxPrintData const &)*arg2);
14940
14941 wxPyEndAllowThreads(__tstate);
14942 if (PyErr_Occurred()) SWIG_fail;
14943 }
14944 Py_INCREF(Py_None); resultobj = Py_None;
14945 return resultobj;
14946 fail:
14947 return NULL;
14948 }
14949
14950
14951 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj;
14953 int arg1 ;
14954 PyObject * obj0 = 0 ;
14955 char *kwnames[] = {
14956 (char *) "ppi", NULL
14957 };
14958
14959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
14960 {
14961 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14962 if (PyErr_Occurred()) SWIG_fail;
14963 }
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 wxPostScriptDC::SetResolution(arg1);
14967
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 Py_INCREF(Py_None); resultobj = Py_None;
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj;
14980 int result;
14981 char *kwnames[] = {
14982 NULL
14983 };
14984
14985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
14986 {
14987 PyThreadState* __tstate = wxPyBeginAllowThreads();
14988 result = (int)wxPostScriptDC::GetResolution();
14989
14990 wxPyEndAllowThreads(__tstate);
14991 if (PyErr_Occurred()) SWIG_fail;
14992 }
14993 resultobj = SWIG_PyObj_FromInt((int)result);
14994 return resultobj;
14995 fail:
14996 return NULL;
14997 }
14998
14999
15000 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15001 PyObject *obj;
15002 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15003 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15004 Py_INCREF(obj);
15005 return Py_BuildValue((char *)"");
15006 }
15007 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxString const &arg1_defvalue = wxPyEmptyString ;
15010 wxString *arg1 = (wxString *) &arg1_defvalue ;
15011 wxMetaFile *result;
15012 bool temp1 = False ;
15013 PyObject * obj0 = 0 ;
15014 char *kwnames[] = {
15015 (char *) "filename", NULL
15016 };
15017
15018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15019 if (obj0) {
15020 {
15021 arg1 = wxString_in_helper(obj0);
15022 if (arg1 == NULL) SWIG_fail;
15023 temp1 = True;
15024 }
15025 }
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15029
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15034 {
15035 if (temp1)
15036 delete arg1;
15037 }
15038 return resultobj;
15039 fail:
15040 {
15041 if (temp1)
15042 delete arg1;
15043 }
15044 return NULL;
15045 }
15046
15047
15048 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15049 PyObject *obj;
15050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15051 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15052 Py_INCREF(obj);
15053 return Py_BuildValue((char *)"");
15054 }
15055 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15056 PyObject *resultobj;
15057 wxString const &arg1_defvalue = wxPyEmptyString ;
15058 wxString *arg1 = (wxString *) &arg1_defvalue ;
15059 int arg2 = (int) 0 ;
15060 int arg3 = (int) 0 ;
15061 wxString const &arg4_defvalue = wxPyEmptyString ;
15062 wxString *arg4 = (wxString *) &arg4_defvalue ;
15063 wxMetaFileDC *result;
15064 bool temp1 = False ;
15065 bool temp4 = False ;
15066 PyObject * obj0 = 0 ;
15067 PyObject * obj1 = 0 ;
15068 PyObject * obj2 = 0 ;
15069 PyObject * obj3 = 0 ;
15070 char *kwnames[] = {
15071 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15072 };
15073
15074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15075 if (obj0) {
15076 {
15077 arg1 = wxString_in_helper(obj0);
15078 if (arg1 == NULL) SWIG_fail;
15079 temp1 = True;
15080 }
15081 }
15082 if (obj1) {
15083 {
15084 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15085 if (PyErr_Occurred()) SWIG_fail;
15086 }
15087 }
15088 if (obj2) {
15089 {
15090 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
15093 }
15094 if (obj3) {
15095 {
15096 arg4 = wxString_in_helper(obj3);
15097 if (arg4 == NULL) SWIG_fail;
15098 temp4 = True;
15099 }
15100 }
15101 {
15102 PyThreadState* __tstate = wxPyBeginAllowThreads();
15103 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15104
15105 wxPyEndAllowThreads(__tstate);
15106 if (PyErr_Occurred()) SWIG_fail;
15107 }
15108 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15109 {
15110 if (temp1)
15111 delete arg1;
15112 }
15113 {
15114 if (temp4)
15115 delete arg4;
15116 }
15117 return resultobj;
15118 fail:
15119 {
15120 if (temp1)
15121 delete arg1;
15122 }
15123 {
15124 if (temp4)
15125 delete arg4;
15126 }
15127 return NULL;
15128 }
15129
15130
15131 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15132 PyObject *obj;
15133 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15134 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15135 Py_INCREF(obj);
15136 return Py_BuildValue((char *)"");
15137 }
15138 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj;
15140 wxPrintData *arg1 = 0 ;
15141 wxPrinterDC *result;
15142 PyObject * obj0 = 0 ;
15143 char *kwnames[] = {
15144 (char *) "printData", NULL
15145 };
15146
15147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15148 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15149 if (arg1 == NULL) {
15150 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15151 }
15152 {
15153 PyThreadState* __tstate = wxPyBeginAllowThreads();
15154 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15155
15156 wxPyEndAllowThreads(__tstate);
15157 if (PyErr_Occurred()) SWIG_fail;
15158 }
15159 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15160 return resultobj;
15161 fail:
15162 return NULL;
15163 }
15164
15165
15166 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15167 PyObject *obj;
15168 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15169 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15170 Py_INCREF(obj);
15171 return Py_BuildValue((char *)"");
15172 }
15173 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15174 PyObject *resultobj;
15175 int arg1 ;
15176 int arg2 ;
15177 int arg3 = (int) True ;
15178 int arg4 = (int) 1 ;
15179 wxImageList *result;
15180 PyObject * obj0 = 0 ;
15181 PyObject * obj1 = 0 ;
15182 PyObject * obj2 = 0 ;
15183 PyObject * obj3 = 0 ;
15184 char *kwnames[] = {
15185 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15186 };
15187
15188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15189 {
15190 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15191 if (PyErr_Occurred()) SWIG_fail;
15192 }
15193 {
15194 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 if (obj2) {
15198 {
15199 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15200 if (PyErr_Occurred()) SWIG_fail;
15201 }
15202 }
15203 if (obj3) {
15204 {
15205 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15206 if (PyErr_Occurred()) SWIG_fail;
15207 }
15208 }
15209 {
15210 PyThreadState* __tstate = wxPyBeginAllowThreads();
15211 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15212
15213 wxPyEndAllowThreads(__tstate);
15214 if (PyErr_Occurred()) SWIG_fail;
15215 }
15216 {
15217 resultobj = wxPyMake_wxObject(result);
15218 }
15219 return resultobj;
15220 fail:
15221 return NULL;
15222 }
15223
15224
15225 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15226 PyObject *resultobj;
15227 wxImageList *arg1 = (wxImageList *) 0 ;
15228 PyObject * obj0 = 0 ;
15229 char *kwnames[] = {
15230 (char *) "self", NULL
15231 };
15232
15233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15235 {
15236 PyThreadState* __tstate = wxPyBeginAllowThreads();
15237 delete arg1;
15238
15239 wxPyEndAllowThreads(__tstate);
15240 if (PyErr_Occurred()) SWIG_fail;
15241 }
15242 Py_INCREF(Py_None); resultobj = Py_None;
15243 return resultobj;
15244 fail:
15245 return NULL;
15246 }
15247
15248
15249 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxImageList *arg1 = (wxImageList *) 0 ;
15252 wxBitmap *arg2 = 0 ;
15253 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15254 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15255 int result;
15256 PyObject * obj0 = 0 ;
15257 PyObject * obj1 = 0 ;
15258 PyObject * obj2 = 0 ;
15259 char *kwnames[] = {
15260 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15261 };
15262
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15264 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15265 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15266 if (arg2 == NULL) {
15267 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15268 }
15269 if (obj2) {
15270 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15271 if (arg3 == NULL) {
15272 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15273 }
15274 }
15275 {
15276 PyThreadState* __tstate = wxPyBeginAllowThreads();
15277 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15278
15279 wxPyEndAllowThreads(__tstate);
15280 if (PyErr_Occurred()) SWIG_fail;
15281 }
15282 resultobj = SWIG_PyObj_FromInt((int)result);
15283 return resultobj;
15284 fail:
15285 return NULL;
15286 }
15287
15288
15289 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15290 PyObject *resultobj;
15291 wxImageList *arg1 = (wxImageList *) 0 ;
15292 wxBitmap *arg2 = 0 ;
15293 wxColour *arg3 = 0 ;
15294 int result;
15295 wxColour temp3 ;
15296 PyObject * obj0 = 0 ;
15297 PyObject * obj1 = 0 ;
15298 PyObject * obj2 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15305 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15306 if (arg2 == NULL) {
15307 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15308 }
15309 {
15310 arg3 = &temp3;
15311 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15312 }
15313 {
15314 PyThreadState* __tstate = wxPyBeginAllowThreads();
15315 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15316
15317 wxPyEndAllowThreads(__tstate);
15318 if (PyErr_Occurred()) SWIG_fail;
15319 }
15320 resultobj = SWIG_PyObj_FromInt((int)result);
15321 return resultobj;
15322 fail:
15323 return NULL;
15324 }
15325
15326
15327 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15328 PyObject *resultobj;
15329 wxImageList *arg1 = (wxImageList *) 0 ;
15330 wxIcon *arg2 = 0 ;
15331 int result;
15332 PyObject * obj0 = 0 ;
15333 PyObject * obj1 = 0 ;
15334 char *kwnames[] = {
15335 (char *) "self",(char *) "icon", NULL
15336 };
15337
15338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15339 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15340 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15341 if (arg2 == NULL) {
15342 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15343 }
15344 {
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15347
15348 wxPyEndAllowThreads(__tstate);
15349 if (PyErr_Occurred()) SWIG_fail;
15350 }
15351 resultobj = SWIG_PyObj_FromInt((int)result);
15352 return resultobj;
15353 fail:
15354 return NULL;
15355 }
15356
15357
15358 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj;
15360 wxImageList *arg1 = (wxImageList *) 0 ;
15361 int arg2 ;
15362 wxBitmap *arg3 = 0 ;
15363 bool result;
15364 PyObject * obj0 = 0 ;
15365 PyObject * obj1 = 0 ;
15366 PyObject * obj2 = 0 ;
15367 char *kwnames[] = {
15368 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15369 };
15370
15371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15372 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15373 {
15374 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15375 if (PyErr_Occurred()) SWIG_fail;
15376 }
15377 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15378 if (arg3 == NULL) {
15379 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15380 }
15381 {
15382 PyThreadState* __tstate = wxPyBeginAllowThreads();
15383 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15384
15385 wxPyEndAllowThreads(__tstate);
15386 if (PyErr_Occurred()) SWIG_fail;
15387 }
15388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15389 return resultobj;
15390 fail:
15391 return NULL;
15392 }
15393
15394
15395 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15396 PyObject *resultobj;
15397 wxImageList *arg1 = (wxImageList *) 0 ;
15398 int arg2 ;
15399 wxDC *arg3 = 0 ;
15400 int arg4 ;
15401 int arg5 ;
15402 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15403 bool arg7 = (bool) (bool)False ;
15404 bool result;
15405 PyObject * obj0 = 0 ;
15406 PyObject * obj1 = 0 ;
15407 PyObject * obj2 = 0 ;
15408 PyObject * obj3 = 0 ;
15409 PyObject * obj4 = 0 ;
15410 PyObject * obj5 = 0 ;
15411 PyObject * obj6 = 0 ;
15412 char *kwnames[] = {
15413 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15414 };
15415
15416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15417 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15418 {
15419 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15423 if (arg3 == NULL) {
15424 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15425 }
15426 {
15427 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15428 if (PyErr_Occurred()) SWIG_fail;
15429 }
15430 {
15431 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 }
15434 if (obj5) {
15435 {
15436 arg6 = (int) SWIG_PyObj_AsInt(obj5);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 }
15439 }
15440 if (obj6) {
15441 {
15442 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
15443 if (PyErr_Occurred()) SWIG_fail;
15444 }
15445 }
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15449
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15454 return resultobj;
15455 fail:
15456 return NULL;
15457 }
15458
15459
15460 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15461 PyObject *resultobj;
15462 wxImageList *arg1 = (wxImageList *) 0 ;
15463 int result;
15464 PyObject * obj0 = 0 ;
15465 char *kwnames[] = {
15466 (char *) "self", NULL
15467 };
15468
15469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15470 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15471 {
15472 PyThreadState* __tstate = wxPyBeginAllowThreads();
15473 result = (int)(arg1)->GetImageCount();
15474
15475 wxPyEndAllowThreads(__tstate);
15476 if (PyErr_Occurred()) SWIG_fail;
15477 }
15478 resultobj = SWIG_PyObj_FromInt((int)result);
15479 return resultobj;
15480 fail:
15481 return NULL;
15482 }
15483
15484
15485 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15486 PyObject *resultobj;
15487 wxImageList *arg1 = (wxImageList *) 0 ;
15488 int arg2 ;
15489 bool result;
15490 PyObject * obj0 = 0 ;
15491 PyObject * obj1 = 0 ;
15492 char *kwnames[] = {
15493 (char *) "self",(char *) "index", NULL
15494 };
15495
15496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15498 {
15499 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15500 if (PyErr_Occurred()) SWIG_fail;
15501 }
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (bool)(arg1)->Remove(arg2);
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj;
15518 wxImageList *arg1 = (wxImageList *) 0 ;
15519 bool result;
15520 PyObject * obj0 = 0 ;
15521 char *kwnames[] = {
15522 (char *) "self", NULL
15523 };
15524
15525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15526 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15527 {
15528 PyThreadState* __tstate = wxPyBeginAllowThreads();
15529 result = (bool)(arg1)->RemoveAll();
15530
15531 wxPyEndAllowThreads(__tstate);
15532 if (PyErr_Occurred()) SWIG_fail;
15533 }
15534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15535 return resultobj;
15536 fail:
15537 return NULL;
15538 }
15539
15540
15541 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15542 PyObject *resultobj;
15543 wxImageList *arg1 = (wxImageList *) 0 ;
15544 int arg2 ;
15545 int *arg3 = 0 ;
15546 int *arg4 = 0 ;
15547 int temp3 ;
15548 int temp4 ;
15549 PyObject * obj0 = 0 ;
15550 PyObject * obj1 = 0 ;
15551 char *kwnames[] = {
15552 (char *) "self",(char *) "index", NULL
15553 };
15554
15555 arg3 = &temp3;
15556 arg4 = &temp4;
15557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15558 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15559 {
15560 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 (arg1)->GetSize(arg2,*arg3,*arg4);
15566
15567 wxPyEndAllowThreads(__tstate);
15568 if (PyErr_Occurred()) SWIG_fail;
15569 }
15570 Py_INCREF(Py_None); resultobj = Py_None;
15571 {
15572 PyObject *o = PyInt_FromLong((long) (*arg3));
15573 resultobj = t_output_helper(resultobj,o);
15574 }
15575 {
15576 PyObject *o = PyInt_FromLong((long) (*arg4));
15577 resultobj = t_output_helper(resultobj,o);
15578 }
15579 return resultobj;
15580 fail:
15581 return NULL;
15582 }
15583
15584
15585 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
15586 PyObject *obj;
15587 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15588 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
15589 Py_INCREF(obj);
15590 return Py_BuildValue((char *)"");
15591 }
15592 static int _wrap_NORMAL_FONT_set(PyObject *) {
15593 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15594 return 1;
15595 }
15596
15597
15598 static PyObject *_wrap_NORMAL_FONT_get() {
15599 PyObject *pyobj;
15600
15601 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15602 return pyobj;
15603 }
15604
15605
15606 static int _wrap_SMALL_FONT_set(PyObject *) {
15607 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15608 return 1;
15609 }
15610
15611
15612 static PyObject *_wrap_SMALL_FONT_get() {
15613 PyObject *pyobj;
15614
15615 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15616 return pyobj;
15617 }
15618
15619
15620 static int _wrap_ITALIC_FONT_set(PyObject *) {
15621 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15622 return 1;
15623 }
15624
15625
15626 static PyObject *_wrap_ITALIC_FONT_get() {
15627 PyObject *pyobj;
15628
15629 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15630 return pyobj;
15631 }
15632
15633
15634 static int _wrap_SWISS_FONT_set(PyObject *) {
15635 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15636 return 1;
15637 }
15638
15639
15640 static PyObject *_wrap_SWISS_FONT_get() {
15641 PyObject *pyobj;
15642
15643 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15644 return pyobj;
15645 }
15646
15647
15648 static int _wrap_RED_PEN_set(PyObject *) {
15649 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15650 return 1;
15651 }
15652
15653
15654 static PyObject *_wrap_RED_PEN_get() {
15655 PyObject *pyobj;
15656
15657 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15658 return pyobj;
15659 }
15660
15661
15662 static int _wrap_CYAN_PEN_set(PyObject *) {
15663 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15664 return 1;
15665 }
15666
15667
15668 static PyObject *_wrap_CYAN_PEN_get() {
15669 PyObject *pyobj;
15670
15671 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15672 return pyobj;
15673 }
15674
15675
15676 static int _wrap_GREEN_PEN_set(PyObject *) {
15677 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15678 return 1;
15679 }
15680
15681
15682 static PyObject *_wrap_GREEN_PEN_get() {
15683 PyObject *pyobj;
15684
15685 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15686 return pyobj;
15687 }
15688
15689
15690 static int _wrap_BLACK_PEN_set(PyObject *) {
15691 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15692 return 1;
15693 }
15694
15695
15696 static PyObject *_wrap_BLACK_PEN_get() {
15697 PyObject *pyobj;
15698
15699 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15700 return pyobj;
15701 }
15702
15703
15704 static int _wrap_WHITE_PEN_set(PyObject *) {
15705 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15706 return 1;
15707 }
15708
15709
15710 static PyObject *_wrap_WHITE_PEN_get() {
15711 PyObject *pyobj;
15712
15713 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15714 return pyobj;
15715 }
15716
15717
15718 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
15719 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15720 return 1;
15721 }
15722
15723
15724 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15725 PyObject *pyobj;
15726
15727 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15728 return pyobj;
15729 }
15730
15731
15732 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
15733 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15734 return 1;
15735 }
15736
15737
15738 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15739 PyObject *pyobj;
15740
15741 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15742 return pyobj;
15743 }
15744
15745
15746 static int _wrap_GREY_PEN_set(PyObject *) {
15747 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15748 return 1;
15749 }
15750
15751
15752 static PyObject *_wrap_GREY_PEN_get() {
15753 PyObject *pyobj;
15754
15755 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15756 return pyobj;
15757 }
15758
15759
15760 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
15761 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15762 return 1;
15763 }
15764
15765
15766 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15767 PyObject *pyobj;
15768
15769 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15770 return pyobj;
15771 }
15772
15773
15774 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
15775 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15776 return 1;
15777 }
15778
15779
15780 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15781 PyObject *pyobj;
15782
15783 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15784 return pyobj;
15785 }
15786
15787
15788 static int _wrap_BLUE_BRUSH_set(PyObject *) {
15789 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15790 return 1;
15791 }
15792
15793
15794 static PyObject *_wrap_BLUE_BRUSH_get() {
15795 PyObject *pyobj;
15796
15797 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15798 return pyobj;
15799 }
15800
15801
15802 static int _wrap_GREEN_BRUSH_set(PyObject *) {
15803 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15804 return 1;
15805 }
15806
15807
15808 static PyObject *_wrap_GREEN_BRUSH_get() {
15809 PyObject *pyobj;
15810
15811 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15812 return pyobj;
15813 }
15814
15815
15816 static int _wrap_WHITE_BRUSH_set(PyObject *) {
15817 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15818 return 1;
15819 }
15820
15821
15822 static PyObject *_wrap_WHITE_BRUSH_get() {
15823 PyObject *pyobj;
15824
15825 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15826 return pyobj;
15827 }
15828
15829
15830 static int _wrap_BLACK_BRUSH_set(PyObject *) {
15831 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15832 return 1;
15833 }
15834
15835
15836 static PyObject *_wrap_BLACK_BRUSH_get() {
15837 PyObject *pyobj;
15838
15839 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15840 return pyobj;
15841 }
15842
15843
15844 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
15845 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15846 return 1;
15847 }
15848
15849
15850 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15851 PyObject *pyobj;
15852
15853 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15854 return pyobj;
15855 }
15856
15857
15858 static int _wrap_CYAN_BRUSH_set(PyObject *) {
15859 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15860 return 1;
15861 }
15862
15863
15864 static PyObject *_wrap_CYAN_BRUSH_get() {
15865 PyObject *pyobj;
15866
15867 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15868 return pyobj;
15869 }
15870
15871
15872 static int _wrap_RED_BRUSH_set(PyObject *) {
15873 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15874 return 1;
15875 }
15876
15877
15878 static PyObject *_wrap_RED_BRUSH_get() {
15879 PyObject *pyobj;
15880
15881 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15882 return pyobj;
15883 }
15884
15885
15886 static int _wrap_GREY_BRUSH_set(PyObject *) {
15887 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15888 return 1;
15889 }
15890
15891
15892 static PyObject *_wrap_GREY_BRUSH_get() {
15893 PyObject *pyobj;
15894
15895 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15896 return pyobj;
15897 }
15898
15899
15900 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
15901 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15902 return 1;
15903 }
15904
15905
15906 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15907 PyObject *pyobj;
15908
15909 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15910 return pyobj;
15911 }
15912
15913
15914 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
15915 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15916 return 1;
15917 }
15918
15919
15920 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15921 PyObject *pyobj;
15922
15923 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15924 return pyobj;
15925 }
15926
15927
15928 static int _wrap_BLACK_set(PyObject *) {
15929 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15930 return 1;
15931 }
15932
15933
15934 static PyObject *_wrap_BLACK_get() {
15935 PyObject *pyobj;
15936
15937 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15938 return pyobj;
15939 }
15940
15941
15942 static int _wrap_WHITE_set(PyObject *) {
15943 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15944 return 1;
15945 }
15946
15947
15948 static PyObject *_wrap_WHITE_get() {
15949 PyObject *pyobj;
15950
15951 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15952 return pyobj;
15953 }
15954
15955
15956 static int _wrap_RED_set(PyObject *) {
15957 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15958 return 1;
15959 }
15960
15961
15962 static PyObject *_wrap_RED_get() {
15963 PyObject *pyobj;
15964
15965 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15966 return pyobj;
15967 }
15968
15969
15970 static int _wrap_BLUE_set(PyObject *) {
15971 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15972 return 1;
15973 }
15974
15975
15976 static PyObject *_wrap_BLUE_get() {
15977 PyObject *pyobj;
15978
15979 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
15980 return pyobj;
15981 }
15982
15983
15984 static int _wrap_GREEN_set(PyObject *) {
15985 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
15986 return 1;
15987 }
15988
15989
15990 static PyObject *_wrap_GREEN_get() {
15991 PyObject *pyobj;
15992
15993 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
15994 return pyobj;
15995 }
15996
15997
15998 static int _wrap_CYAN_set(PyObject *) {
15999 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16000 return 1;
16001 }
16002
16003
16004 static PyObject *_wrap_CYAN_get() {
16005 PyObject *pyobj;
16006
16007 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16008 return pyobj;
16009 }
16010
16011
16012 static int _wrap_LIGHT_GREY_set(PyObject *) {
16013 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16014 return 1;
16015 }
16016
16017
16018 static PyObject *_wrap_LIGHT_GREY_get() {
16019 PyObject *pyobj;
16020
16021 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16022 return pyobj;
16023 }
16024
16025
16026 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16027 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16028 return 1;
16029 }
16030
16031
16032 static PyObject *_wrap_STANDARD_CURSOR_get() {
16033 PyObject *pyobj;
16034
16035 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16036 return pyobj;
16037 }
16038
16039
16040 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16041 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16042 return 1;
16043 }
16044
16045
16046 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16047 PyObject *pyobj;
16048
16049 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16050 return pyobj;
16051 }
16052
16053
16054 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16055 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16056 return 1;
16057 }
16058
16059
16060 static PyObject *_wrap_CROSS_CURSOR_get() {
16061 PyObject *pyobj;
16062
16063 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16064 return pyobj;
16065 }
16066
16067
16068 static int _wrap_NullBitmap_set(PyObject *) {
16069 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16070 return 1;
16071 }
16072
16073
16074 static PyObject *_wrap_NullBitmap_get() {
16075 PyObject *pyobj;
16076
16077 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16078 return pyobj;
16079 }
16080
16081
16082 static int _wrap_NullIcon_set(PyObject *) {
16083 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16084 return 1;
16085 }
16086
16087
16088 static PyObject *_wrap_NullIcon_get() {
16089 PyObject *pyobj;
16090
16091 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16092 return pyobj;
16093 }
16094
16095
16096 static int _wrap_NullCursor_set(PyObject *) {
16097 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16098 return 1;
16099 }
16100
16101
16102 static PyObject *_wrap_NullCursor_get() {
16103 PyObject *pyobj;
16104
16105 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16106 return pyobj;
16107 }
16108
16109
16110 static int _wrap_NullPen_set(PyObject *) {
16111 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16112 return 1;
16113 }
16114
16115
16116 static PyObject *_wrap_NullPen_get() {
16117 PyObject *pyobj;
16118
16119 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16120 return pyobj;
16121 }
16122
16123
16124 static int _wrap_NullBrush_set(PyObject *) {
16125 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16126 return 1;
16127 }
16128
16129
16130 static PyObject *_wrap_NullBrush_get() {
16131 PyObject *pyobj;
16132
16133 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16134 return pyobj;
16135 }
16136
16137
16138 static int _wrap_NullPalette_set(PyObject *) {
16139 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16140 return 1;
16141 }
16142
16143
16144 static PyObject *_wrap_NullPalette_get() {
16145 PyObject *pyobj;
16146
16147 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16148 return pyobj;
16149 }
16150
16151
16152 static int _wrap_NullFont_set(PyObject *) {
16153 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16154 return 1;
16155 }
16156
16157
16158 static PyObject *_wrap_NullFont_get() {
16159 PyObject *pyobj;
16160
16161 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16162 return pyobj;
16163 }
16164
16165
16166 static int _wrap_NullColour_set(PyObject *) {
16167 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16168 return 1;
16169 }
16170
16171
16172 static PyObject *_wrap_NullColour_get() {
16173 PyObject *pyobj;
16174
16175 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16176 return pyobj;
16177 }
16178
16179
16180 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16181 PyObject *resultobj;
16182 wxPenList *arg1 = (wxPenList *) 0 ;
16183 wxPen *arg2 = (wxPen *) 0 ;
16184 PyObject * obj0 = 0 ;
16185 PyObject * obj1 = 0 ;
16186 char *kwnames[] = {
16187 (char *) "self",(char *) "pen", NULL
16188 };
16189
16190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16191 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16192 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16193 {
16194 PyThreadState* __tstate = wxPyBeginAllowThreads();
16195 (arg1)->AddPen(arg2);
16196
16197 wxPyEndAllowThreads(__tstate);
16198 if (PyErr_Occurred()) SWIG_fail;
16199 }
16200 Py_INCREF(Py_None); resultobj = Py_None;
16201 return resultobj;
16202 fail:
16203 return NULL;
16204 }
16205
16206
16207 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16208 PyObject *resultobj;
16209 wxPenList *arg1 = (wxPenList *) 0 ;
16210 wxColour *arg2 = 0 ;
16211 int arg3 ;
16212 int arg4 ;
16213 wxPen *result;
16214 wxColour temp2 ;
16215 PyObject * obj0 = 0 ;
16216 PyObject * obj1 = 0 ;
16217 PyObject * obj2 = 0 ;
16218 PyObject * obj3 = 0 ;
16219 char *kwnames[] = {
16220 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16221 };
16222
16223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16224 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16225 {
16226 arg2 = &temp2;
16227 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16228 }
16229 {
16230 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16231 if (PyErr_Occurred()) SWIG_fail;
16232 }
16233 {
16234 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 {
16238 PyThreadState* __tstate = wxPyBeginAllowThreads();
16239 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16240
16241 wxPyEndAllowThreads(__tstate);
16242 if (PyErr_Occurred()) SWIG_fail;
16243 }
16244 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
16245 return resultobj;
16246 fail:
16247 return NULL;
16248 }
16249
16250
16251 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16252 PyObject *resultobj;
16253 wxPenList *arg1 = (wxPenList *) 0 ;
16254 wxPen *arg2 = (wxPen *) 0 ;
16255 PyObject * obj0 = 0 ;
16256 PyObject * obj1 = 0 ;
16257 char *kwnames[] = {
16258 (char *) "self",(char *) "pen", NULL
16259 };
16260
16261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16262 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16263 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 (arg1)->RemovePen(arg2);
16267
16268 wxPyEndAllowThreads(__tstate);
16269 if (PyErr_Occurred()) SWIG_fail;
16270 }
16271 Py_INCREF(Py_None); resultobj = Py_None;
16272 return resultobj;
16273 fail:
16274 return NULL;
16275 }
16276
16277
16278 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj;
16280 wxPenList *arg1 = (wxPenList *) 0 ;
16281 int result;
16282 PyObject * obj0 = 0 ;
16283 char *kwnames[] = {
16284 (char *) "self", NULL
16285 };
16286
16287 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16288 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16289 {
16290 PyThreadState* __tstate = wxPyBeginAllowThreads();
16291 result = (int)(arg1)->GetCount();
16292
16293 wxPyEndAllowThreads(__tstate);
16294 if (PyErr_Occurred()) SWIG_fail;
16295 }
16296 resultobj = SWIG_PyObj_FromInt((int)result);
16297 return resultobj;
16298 fail:
16299 return NULL;
16300 }
16301
16302
16303 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16304 PyObject *obj;
16305 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16306 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16307 Py_INCREF(obj);
16308 return Py_BuildValue((char *)"");
16309 }
16310 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16311 PyObject *resultobj;
16312 wxBrushList *arg1 = (wxBrushList *) 0 ;
16313 wxBrush *arg2 = (wxBrush *) 0 ;
16314 PyObject * obj0 = 0 ;
16315 PyObject * obj1 = 0 ;
16316 char *kwnames[] = {
16317 (char *) "self",(char *) "brush", NULL
16318 };
16319
16320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16321 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16322 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16323 {
16324 PyThreadState* __tstate = wxPyBeginAllowThreads();
16325 (arg1)->AddBrush(arg2);
16326
16327 wxPyEndAllowThreads(__tstate);
16328 if (PyErr_Occurred()) SWIG_fail;
16329 }
16330 Py_INCREF(Py_None); resultobj = Py_None;
16331 return resultobj;
16332 fail:
16333 return NULL;
16334 }
16335
16336
16337 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16338 PyObject *resultobj;
16339 wxBrushList *arg1 = (wxBrushList *) 0 ;
16340 wxColour *arg2 = 0 ;
16341 int arg3 ;
16342 wxBrush *result;
16343 wxColour temp2 ;
16344 PyObject * obj0 = 0 ;
16345 PyObject * obj1 = 0 ;
16346 PyObject * obj2 = 0 ;
16347 char *kwnames[] = {
16348 (char *) "self",(char *) "colour",(char *) "style", NULL
16349 };
16350
16351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16352 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16353 {
16354 arg2 = &temp2;
16355 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16356 }
16357 {
16358 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16359 if (PyErr_Occurred()) SWIG_fail;
16360 }
16361 {
16362 PyThreadState* __tstate = wxPyBeginAllowThreads();
16363 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16364
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
16369 return resultobj;
16370 fail:
16371 return NULL;
16372 }
16373
16374
16375 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj;
16377 wxBrushList *arg1 = (wxBrushList *) 0 ;
16378 wxBrush *arg2 = (wxBrush *) 0 ;
16379 PyObject * obj0 = 0 ;
16380 PyObject * obj1 = 0 ;
16381 char *kwnames[] = {
16382 (char *) "self",(char *) "brush", NULL
16383 };
16384
16385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16386 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16387 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 (arg1)->RemoveBrush(arg2);
16391
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 Py_INCREF(Py_None); resultobj = Py_None;
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj;
16404 wxBrushList *arg1 = (wxBrushList *) 0 ;
16405 int result;
16406 PyObject * obj0 = 0 ;
16407 char *kwnames[] = {
16408 (char *) "self", NULL
16409 };
16410
16411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16412 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16413 {
16414 PyThreadState* __tstate = wxPyBeginAllowThreads();
16415 result = (int)(arg1)->GetCount();
16416
16417 wxPyEndAllowThreads(__tstate);
16418 if (PyErr_Occurred()) SWIG_fail;
16419 }
16420 resultobj = SWIG_PyObj_FromInt((int)result);
16421 return resultobj;
16422 fail:
16423 return NULL;
16424 }
16425
16426
16427 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16428 PyObject *obj;
16429 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16430 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16431 Py_INCREF(obj);
16432 return Py_BuildValue((char *)"");
16433 }
16434 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16435 PyObject *resultobj;
16436 wxColourDatabase *result;
16437 char *kwnames[] = {
16438 NULL
16439 };
16440
16441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (wxColourDatabase *)new wxColourDatabase();
16445
16446 wxPyEndAllowThreads(__tstate);
16447 if (PyErr_Occurred()) SWIG_fail;
16448 }
16449 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
16450 return resultobj;
16451 fail:
16452 return NULL;
16453 }
16454
16455
16456 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16457 PyObject *resultobj;
16458 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16459 PyObject * obj0 = 0 ;
16460 char *kwnames[] = {
16461 (char *) "self", NULL
16462 };
16463
16464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16465 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 delete arg1;
16469
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 Py_INCREF(Py_None); resultobj = Py_None;
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj;
16482 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16483 wxString *arg2 = 0 ;
16484 wxColour result;
16485 bool temp2 = False ;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 char *kwnames[] = {
16489 (char *) "self",(char *) "name", NULL
16490 };
16491
16492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16493 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16494 {
16495 arg2 = wxString_in_helper(obj1);
16496 if (arg2 == NULL) SWIG_fail;
16497 temp2 = True;
16498 }
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
16501 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16502
16503 wxPyEndAllowThreads(__tstate);
16504 if (PyErr_Occurred()) SWIG_fail;
16505 }
16506 {
16507 wxColour * resultptr;
16508 resultptr = new wxColour((wxColour &) result);
16509 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16510 }
16511 {
16512 if (temp2)
16513 delete arg2;
16514 }
16515 return resultobj;
16516 fail:
16517 {
16518 if (temp2)
16519 delete arg2;
16520 }
16521 return NULL;
16522 }
16523
16524
16525 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16526 PyObject *resultobj;
16527 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16528 wxColour *arg2 = 0 ;
16529 wxString result;
16530 wxColour temp2 ;
16531 PyObject * obj0 = 0 ;
16532 PyObject * obj1 = 0 ;
16533 char *kwnames[] = {
16534 (char *) "self",(char *) "colour", NULL
16535 };
16536
16537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16538 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16539 {
16540 arg2 = &temp2;
16541 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16542 }
16543 {
16544 PyThreadState* __tstate = wxPyBeginAllowThreads();
16545 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16546
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 {
16551 #if wxUSE_UNICODE
16552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16553 #else
16554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16555 #endif
16556 }
16557 return resultobj;
16558 fail:
16559 return NULL;
16560 }
16561
16562
16563 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16564 PyObject *resultobj;
16565 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16566 wxString *arg2 = 0 ;
16567 wxColour *arg3 = 0 ;
16568 bool temp2 = False ;
16569 wxColour temp3 ;
16570 PyObject * obj0 = 0 ;
16571 PyObject * obj1 = 0 ;
16572 PyObject * obj2 = 0 ;
16573 char *kwnames[] = {
16574 (char *) "self",(char *) "name",(char *) "colour", NULL
16575 };
16576
16577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
16578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16579 {
16580 arg2 = wxString_in_helper(obj1);
16581 if (arg2 == NULL) SWIG_fail;
16582 temp2 = True;
16583 }
16584 {
16585 arg3 = &temp3;
16586 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16587 }
16588 {
16589 PyThreadState* __tstate = wxPyBeginAllowThreads();
16590 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
16591
16592 wxPyEndAllowThreads(__tstate);
16593 if (PyErr_Occurred()) SWIG_fail;
16594 }
16595 Py_INCREF(Py_None); resultobj = Py_None;
16596 {
16597 if (temp2)
16598 delete arg2;
16599 }
16600 return resultobj;
16601 fail:
16602 {
16603 if (temp2)
16604 delete arg2;
16605 }
16606 return NULL;
16607 }
16608
16609
16610 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
16611 PyObject *resultobj;
16612 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16613 wxString *arg2 = 0 ;
16614 int arg3 ;
16615 int arg4 ;
16616 int arg5 ;
16617 bool temp2 = False ;
16618 PyObject * obj0 = 0 ;
16619 PyObject * obj1 = 0 ;
16620 PyObject * obj2 = 0 ;
16621 PyObject * obj3 = 0 ;
16622 PyObject * obj4 = 0 ;
16623 char *kwnames[] = {
16624 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
16625 };
16626
16627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16628 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16629 {
16630 arg2 = wxString_in_helper(obj1);
16631 if (arg2 == NULL) SWIG_fail;
16632 temp2 = True;
16633 }
16634 {
16635 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16636 if (PyErr_Occurred()) SWIG_fail;
16637 }
16638 {
16639 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16640 if (PyErr_Occurred()) SWIG_fail;
16641 }
16642 {
16643 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16644 if (PyErr_Occurred()) SWIG_fail;
16645 }
16646 {
16647 PyThreadState* __tstate = wxPyBeginAllowThreads();
16648 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
16649
16650 wxPyEndAllowThreads(__tstate);
16651 if (PyErr_Occurred()) SWIG_fail;
16652 }
16653 Py_INCREF(Py_None); resultobj = Py_None;
16654 {
16655 if (temp2)
16656 delete arg2;
16657 }
16658 return resultobj;
16659 fail:
16660 {
16661 if (temp2)
16662 delete arg2;
16663 }
16664 return NULL;
16665 }
16666
16667
16668 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
16669 PyObject *obj;
16670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16671 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
16672 Py_INCREF(obj);
16673 return Py_BuildValue((char *)"");
16674 }
16675 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16676 PyObject *resultobj;
16677 wxFontList *arg1 = (wxFontList *) 0 ;
16678 wxFont *arg2 = (wxFont *) 0 ;
16679 PyObject * obj0 = 0 ;
16680 PyObject * obj1 = 0 ;
16681 char *kwnames[] = {
16682 (char *) "self",(char *) "font", NULL
16683 };
16684
16685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
16686 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16687 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16688 {
16689 PyThreadState* __tstate = wxPyBeginAllowThreads();
16690 (arg1)->AddFont(arg2);
16691
16692 wxPyEndAllowThreads(__tstate);
16693 if (PyErr_Occurred()) SWIG_fail;
16694 }
16695 Py_INCREF(Py_None); resultobj = Py_None;
16696 return resultobj;
16697 fail:
16698 return NULL;
16699 }
16700
16701
16702 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16703 PyObject *resultobj;
16704 wxFontList *arg1 = (wxFontList *) 0 ;
16705 int arg2 ;
16706 int arg3 ;
16707 int arg4 ;
16708 int arg5 ;
16709 bool arg6 = (bool) False ;
16710 wxString const &arg7_defvalue = wxPyEmptyString ;
16711 wxString *arg7 = (wxString *) &arg7_defvalue ;
16712 int arg8 = (int) wxFONTENCODING_DEFAULT ;
16713 wxFont *result;
16714 bool temp7 = False ;
16715 PyObject * obj0 = 0 ;
16716 PyObject * obj1 = 0 ;
16717 PyObject * obj2 = 0 ;
16718 PyObject * obj3 = 0 ;
16719 PyObject * obj4 = 0 ;
16720 PyObject * obj5 = 0 ;
16721 PyObject * obj6 = 0 ;
16722 PyObject * obj7 = 0 ;
16723 char *kwnames[] = {
16724 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
16725 };
16726
16727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
16728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16729 {
16730 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16731 if (PyErr_Occurred()) SWIG_fail;
16732 }
16733 {
16734 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 {
16738 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16739 if (PyErr_Occurred()) SWIG_fail;
16740 }
16741 {
16742 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16743 if (PyErr_Occurred()) SWIG_fail;
16744 }
16745 if (obj5) {
16746 {
16747 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
16748 if (PyErr_Occurred()) SWIG_fail;
16749 }
16750 }
16751 if (obj6) {
16752 {
16753 arg7 = wxString_in_helper(obj6);
16754 if (arg7 == NULL) SWIG_fail;
16755 temp7 = True;
16756 }
16757 }
16758 if (obj7) {
16759 {
16760 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
16761 if (PyErr_Occurred()) SWIG_fail;
16762 }
16763 }
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
16767
16768 wxPyEndAllowThreads(__tstate);
16769 if (PyErr_Occurred()) SWIG_fail;
16770 }
16771 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
16772 {
16773 if (temp7)
16774 delete arg7;
16775 }
16776 return resultobj;
16777 fail:
16778 {
16779 if (temp7)
16780 delete arg7;
16781 }
16782 return NULL;
16783 }
16784
16785
16786 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16787 PyObject *resultobj;
16788 wxFontList *arg1 = (wxFontList *) 0 ;
16789 wxFont *arg2 = (wxFont *) 0 ;
16790 PyObject * obj0 = 0 ;
16791 PyObject * obj1 = 0 ;
16792 char *kwnames[] = {
16793 (char *) "self",(char *) "font", NULL
16794 };
16795
16796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
16797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16798 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16799 {
16800 PyThreadState* __tstate = wxPyBeginAllowThreads();
16801 (arg1)->RemoveFont(arg2);
16802
16803 wxPyEndAllowThreads(__tstate);
16804 if (PyErr_Occurred()) SWIG_fail;
16805 }
16806 Py_INCREF(Py_None); resultobj = Py_None;
16807 return resultobj;
16808 fail:
16809 return NULL;
16810 }
16811
16812
16813 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16814 PyObject *resultobj;
16815 wxFontList *arg1 = (wxFontList *) 0 ;
16816 int result;
16817 PyObject * obj0 = 0 ;
16818 char *kwnames[] = {
16819 (char *) "self", NULL
16820 };
16821
16822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
16823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16824 {
16825 PyThreadState* __tstate = wxPyBeginAllowThreads();
16826 result = (int)(arg1)->GetCount();
16827
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 resultobj = SWIG_PyObj_FromInt((int)result);
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
16839 PyObject *obj;
16840 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16841 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
16842 Py_INCREF(obj);
16843 return Py_BuildValue((char *)"");
16844 }
16845 static int _wrap_TheFontList_set(PyObject *) {
16846 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
16847 return 1;
16848 }
16849
16850
16851 static PyObject *_wrap_TheFontList_get() {
16852 PyObject *pyobj;
16853
16854 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
16855 return pyobj;
16856 }
16857
16858
16859 static int _wrap_ThePenList_set(PyObject *) {
16860 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
16861 return 1;
16862 }
16863
16864
16865 static PyObject *_wrap_ThePenList_get() {
16866 PyObject *pyobj;
16867
16868 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
16869 return pyobj;
16870 }
16871
16872
16873 static int _wrap_TheBrushList_set(PyObject *) {
16874 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
16875 return 1;
16876 }
16877
16878
16879 static PyObject *_wrap_TheBrushList_get() {
16880 PyObject *pyobj;
16881
16882 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
16883 return pyobj;
16884 }
16885
16886
16887 static int _wrap_TheColourDatabase_set(PyObject *) {
16888 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
16889 return 1;
16890 }
16891
16892
16893 static PyObject *_wrap_TheColourDatabase_get() {
16894 PyObject *pyobj;
16895
16896 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
16897 return pyobj;
16898 }
16899
16900
16901 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
16902 PyObject *resultobj;
16903 wxEffects *result;
16904 char *kwnames[] = {
16905 NULL
16906 };
16907
16908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
16909 {
16910 PyThreadState* __tstate = wxPyBeginAllowThreads();
16911 result = (wxEffects *)new wxEffects();
16912
16913 wxPyEndAllowThreads(__tstate);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
16917 return resultobj;
16918 fail:
16919 return NULL;
16920 }
16921
16922
16923 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16924 PyObject *resultobj;
16925 wxEffects *arg1 = (wxEffects *) 0 ;
16926 wxColour result;
16927 PyObject * obj0 = 0 ;
16928 char *kwnames[] = {
16929 (char *) "self", NULL
16930 };
16931
16932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
16933 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16934 {
16935 PyThreadState* __tstate = wxPyBeginAllowThreads();
16936 result = ((wxEffects const *)arg1)->GetHighlightColour();
16937
16938 wxPyEndAllowThreads(__tstate);
16939 if (PyErr_Occurred()) SWIG_fail;
16940 }
16941 {
16942 wxColour * resultptr;
16943 resultptr = new wxColour((wxColour &) result);
16944 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16945 }
16946 return resultobj;
16947 fail:
16948 return NULL;
16949 }
16950
16951
16952 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16953 PyObject *resultobj;
16954 wxEffects *arg1 = (wxEffects *) 0 ;
16955 wxColour result;
16956 PyObject * obj0 = 0 ;
16957 char *kwnames[] = {
16958 (char *) "self", NULL
16959 };
16960
16961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
16962 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16963 {
16964 PyThreadState* __tstate = wxPyBeginAllowThreads();
16965 result = ((wxEffects const *)arg1)->GetLightShadow();
16966
16967 wxPyEndAllowThreads(__tstate);
16968 if (PyErr_Occurred()) SWIG_fail;
16969 }
16970 {
16971 wxColour * resultptr;
16972 resultptr = new wxColour((wxColour &) result);
16973 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16974 }
16975 return resultobj;
16976 fail:
16977 return NULL;
16978 }
16979
16980
16981 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16982 PyObject *resultobj;
16983 wxEffects *arg1 = (wxEffects *) 0 ;
16984 wxColour result;
16985 PyObject * obj0 = 0 ;
16986 char *kwnames[] = {
16987 (char *) "self", NULL
16988 };
16989
16990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
16991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16992 {
16993 PyThreadState* __tstate = wxPyBeginAllowThreads();
16994 result = ((wxEffects const *)arg1)->GetFaceColour();
16995
16996 wxPyEndAllowThreads(__tstate);
16997 if (PyErr_Occurred()) SWIG_fail;
16998 }
16999 {
17000 wxColour * resultptr;
17001 resultptr = new wxColour((wxColour &) result);
17002 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17003 }
17004 return resultobj;
17005 fail:
17006 return NULL;
17007 }
17008
17009
17010 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17011 PyObject *resultobj;
17012 wxEffects *arg1 = (wxEffects *) 0 ;
17013 wxColour result;
17014 PyObject * obj0 = 0 ;
17015 char *kwnames[] = {
17016 (char *) "self", NULL
17017 };
17018
17019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17021 {
17022 PyThreadState* __tstate = wxPyBeginAllowThreads();
17023 result = ((wxEffects const *)arg1)->GetMediumShadow();
17024
17025 wxPyEndAllowThreads(__tstate);
17026 if (PyErr_Occurred()) SWIG_fail;
17027 }
17028 {
17029 wxColour * resultptr;
17030 resultptr = new wxColour((wxColour &) result);
17031 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17032 }
17033 return resultobj;
17034 fail:
17035 return NULL;
17036 }
17037
17038
17039 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17040 PyObject *resultobj;
17041 wxEffects *arg1 = (wxEffects *) 0 ;
17042 wxColour result;
17043 PyObject * obj0 = 0 ;
17044 char *kwnames[] = {
17045 (char *) "self", NULL
17046 };
17047
17048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17050 {
17051 PyThreadState* __tstate = wxPyBeginAllowThreads();
17052 result = ((wxEffects const *)arg1)->GetDarkShadow();
17053
17054 wxPyEndAllowThreads(__tstate);
17055 if (PyErr_Occurred()) SWIG_fail;
17056 }
17057 {
17058 wxColour * resultptr;
17059 resultptr = new wxColour((wxColour &) result);
17060 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17061 }
17062 return resultobj;
17063 fail:
17064 return NULL;
17065 }
17066
17067
17068 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17069 PyObject *resultobj;
17070 wxEffects *arg1 = (wxEffects *) 0 ;
17071 wxColour *arg2 = 0 ;
17072 wxColour temp2 ;
17073 PyObject * obj0 = 0 ;
17074 PyObject * obj1 = 0 ;
17075 char *kwnames[] = {
17076 (char *) "self",(char *) "c", NULL
17077 };
17078
17079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17080 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17081 {
17082 arg2 = &temp2;
17083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17084 }
17085 {
17086 PyThreadState* __tstate = wxPyBeginAllowThreads();
17087 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17088
17089 wxPyEndAllowThreads(__tstate);
17090 if (PyErr_Occurred()) SWIG_fail;
17091 }
17092 Py_INCREF(Py_None); resultobj = Py_None;
17093 return resultobj;
17094 fail:
17095 return NULL;
17096 }
17097
17098
17099 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17100 PyObject *resultobj;
17101 wxEffects *arg1 = (wxEffects *) 0 ;
17102 wxColour *arg2 = 0 ;
17103 wxColour temp2 ;
17104 PyObject * obj0 = 0 ;
17105 PyObject * obj1 = 0 ;
17106 char *kwnames[] = {
17107 (char *) "self",(char *) "c", NULL
17108 };
17109
17110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17111 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17112 {
17113 arg2 = &temp2;
17114 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17115 }
17116 {
17117 PyThreadState* __tstate = wxPyBeginAllowThreads();
17118 (arg1)->SetLightShadow((wxColour const &)*arg2);
17119
17120 wxPyEndAllowThreads(__tstate);
17121 if (PyErr_Occurred()) SWIG_fail;
17122 }
17123 Py_INCREF(Py_None); resultobj = Py_None;
17124 return resultobj;
17125 fail:
17126 return NULL;
17127 }
17128
17129
17130 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj;
17132 wxEffects *arg1 = (wxEffects *) 0 ;
17133 wxColour *arg2 = 0 ;
17134 wxColour temp2 ;
17135 PyObject * obj0 = 0 ;
17136 PyObject * obj1 = 0 ;
17137 char *kwnames[] = {
17138 (char *) "self",(char *) "c", NULL
17139 };
17140
17141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17142 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17143 {
17144 arg2 = &temp2;
17145 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17146 }
17147 {
17148 PyThreadState* __tstate = wxPyBeginAllowThreads();
17149 (arg1)->SetFaceColour((wxColour const &)*arg2);
17150
17151 wxPyEndAllowThreads(__tstate);
17152 if (PyErr_Occurred()) SWIG_fail;
17153 }
17154 Py_INCREF(Py_None); resultobj = Py_None;
17155 return resultobj;
17156 fail:
17157 return NULL;
17158 }
17159
17160
17161 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17162 PyObject *resultobj;
17163 wxEffects *arg1 = (wxEffects *) 0 ;
17164 wxColour *arg2 = 0 ;
17165 wxColour temp2 ;
17166 PyObject * obj0 = 0 ;
17167 PyObject * obj1 = 0 ;
17168 char *kwnames[] = {
17169 (char *) "self",(char *) "c", NULL
17170 };
17171
17172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17174 {
17175 arg2 = &temp2;
17176 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17177 }
17178 {
17179 PyThreadState* __tstate = wxPyBeginAllowThreads();
17180 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17181
17182 wxPyEndAllowThreads(__tstate);
17183 if (PyErr_Occurred()) SWIG_fail;
17184 }
17185 Py_INCREF(Py_None); resultobj = Py_None;
17186 return resultobj;
17187 fail:
17188 return NULL;
17189 }
17190
17191
17192 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj;
17194 wxEffects *arg1 = (wxEffects *) 0 ;
17195 wxColour *arg2 = 0 ;
17196 wxColour temp2 ;
17197 PyObject * obj0 = 0 ;
17198 PyObject * obj1 = 0 ;
17199 char *kwnames[] = {
17200 (char *) "self",(char *) "c", NULL
17201 };
17202
17203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17204 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17205 {
17206 arg2 = &temp2;
17207 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17208 }
17209 {
17210 PyThreadState* __tstate = wxPyBeginAllowThreads();
17211 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17212
17213 wxPyEndAllowThreads(__tstate);
17214 if (PyErr_Occurred()) SWIG_fail;
17215 }
17216 Py_INCREF(Py_None); resultobj = Py_None;
17217 return resultobj;
17218 fail:
17219 return NULL;
17220 }
17221
17222
17223 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17224 PyObject *resultobj;
17225 wxEffects *arg1 = (wxEffects *) 0 ;
17226 wxColour *arg2 = 0 ;
17227 wxColour *arg3 = 0 ;
17228 wxColour *arg4 = 0 ;
17229 wxColour *arg5 = 0 ;
17230 wxColour *arg6 = 0 ;
17231 wxColour temp2 ;
17232 wxColour temp3 ;
17233 wxColour temp4 ;
17234 wxColour temp5 ;
17235 wxColour temp6 ;
17236 PyObject * obj0 = 0 ;
17237 PyObject * obj1 = 0 ;
17238 PyObject * obj2 = 0 ;
17239 PyObject * obj3 = 0 ;
17240 PyObject * obj4 = 0 ;
17241 PyObject * obj5 = 0 ;
17242 char *kwnames[] = {
17243 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17244 };
17245
17246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17247 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17248 {
17249 arg2 = &temp2;
17250 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17251 }
17252 {
17253 arg3 = &temp3;
17254 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17255 }
17256 {
17257 arg4 = &temp4;
17258 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17259 }
17260 {
17261 arg5 = &temp5;
17262 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17263 }
17264 {
17265 arg6 = &temp6;
17266 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17267 }
17268 {
17269 PyThreadState* __tstate = wxPyBeginAllowThreads();
17270 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17271
17272 wxPyEndAllowThreads(__tstate);
17273 if (PyErr_Occurred()) SWIG_fail;
17274 }
17275 Py_INCREF(Py_None); resultobj = Py_None;
17276 return resultobj;
17277 fail:
17278 return NULL;
17279 }
17280
17281
17282 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17283 PyObject *resultobj;
17284 wxEffects *arg1 = (wxEffects *) 0 ;
17285 wxDC *arg2 = 0 ;
17286 wxRect *arg3 = 0 ;
17287 int arg4 = (int) 1 ;
17288 wxRect temp3 ;
17289 PyObject * obj0 = 0 ;
17290 PyObject * obj1 = 0 ;
17291 PyObject * obj2 = 0 ;
17292 PyObject * obj3 = 0 ;
17293 char *kwnames[] = {
17294 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17295 };
17296
17297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17299 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17300 if (arg2 == NULL) {
17301 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17302 }
17303 {
17304 arg3 = &temp3;
17305 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17306 }
17307 if (obj3) {
17308 {
17309 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17310 if (PyErr_Occurred()) SWIG_fail;
17311 }
17312 }
17313 {
17314 PyThreadState* __tstate = wxPyBeginAllowThreads();
17315 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17316
17317 wxPyEndAllowThreads(__tstate);
17318 if (PyErr_Occurred()) SWIG_fail;
17319 }
17320 Py_INCREF(Py_None); resultobj = Py_None;
17321 return resultobj;
17322 fail:
17323 return NULL;
17324 }
17325
17326
17327 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17328 PyObject *resultobj;
17329 wxEffects *arg1 = (wxEffects *) 0 ;
17330 wxRect *arg2 = 0 ;
17331 wxDC *arg3 = 0 ;
17332 wxBitmap *arg4 = 0 ;
17333 bool result;
17334 wxRect temp2 ;
17335 PyObject * obj0 = 0 ;
17336 PyObject * obj1 = 0 ;
17337 PyObject * obj2 = 0 ;
17338 PyObject * obj3 = 0 ;
17339 char *kwnames[] = {
17340 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17341 };
17342
17343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17345 {
17346 arg2 = &temp2;
17347 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17348 }
17349 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17350 if (arg3 == NULL) {
17351 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17352 }
17353 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17354 if (arg4 == NULL) {
17355 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17356 }
17357 {
17358 PyThreadState* __tstate = wxPyBeginAllowThreads();
17359 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17360
17361 wxPyEndAllowThreads(__tstate);
17362 if (PyErr_Occurred()) SWIG_fail;
17363 }
17364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17365 return resultobj;
17366 fail:
17367 return NULL;
17368 }
17369
17370
17371 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17372 PyObject *obj;
17373 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17374 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17375 Py_INCREF(obj);
17376 return Py_BuildValue((char *)"");
17377 }
17378 static PyMethodDef SwigMethods[] = {
17379 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17380 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17381 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17382 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17383 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17384 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17385 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17386 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17387 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17388 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17389 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17390 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17391 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17392 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17393 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17394 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17395 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17396 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17397 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
17398 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17399 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17400 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17401 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17402 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17403 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17404 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17405 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17406 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17407 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17408 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17409 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17410 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17411 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17412 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17413 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17414 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17415 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17416 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17417 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17418 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17419 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17420 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17421 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17422 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17423 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17424 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17425 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17426 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17427 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17428 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17429 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17430 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17431 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17432 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17433 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17434 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17435 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
17436 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
17437 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17438 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17439 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17440 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17441 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17442 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17443 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17444 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17445 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17446 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17447 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17448 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17449 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17450 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17451 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17452 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17453 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17454 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17455 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17456 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17457 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17458 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17459 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17460 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17461 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17462 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
17463 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17464 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17465 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17466 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17467 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17468 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17469 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17470 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17471 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17472 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17473 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17474 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17475 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17476 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17477 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17478 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17479 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17480 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17481 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17482 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17483 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17484 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17485 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17486 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17487 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17488 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17489 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17490 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17491 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17492 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17493 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17494 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17495 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17496 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17497 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17498 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17499 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
17500 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17501 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17502 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17503 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17504 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17505 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17506 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17507 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17508 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17509 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17510 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17511 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17512 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17513 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17514 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17515 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17516 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17517 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17518 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17519 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17520 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17521 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17522 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17523 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17524 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17525 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17526 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17527 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17528 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17529 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17530 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17531 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17532 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17533 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17534 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17535 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17536 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17537 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17538 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17539 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17540 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
17541 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
17542 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17543 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17544 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
17545 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
17546 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17547 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
17548 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
17549 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17550 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17551 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
17552 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17553 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17554 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
17555 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
17556 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17557 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17558 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
17559 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17560 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17561 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17562 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
17563 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
17564 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
17565 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
17566 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
17567 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
17568 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
17569 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
17570 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17571 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17572 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17573 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17574 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
17575 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
17576 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
17577 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
17578 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
17579 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
17580 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
17581 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
17582 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
17583 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17584 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
17585 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
17586 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
17587 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
17588 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
17589 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
17590 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
17591 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
17592 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
17593 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
17594 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
17595 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
17596 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
17597 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
17598 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
17599 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
17600 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
17601 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
17602 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17603 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
17604 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
17605 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
17606 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17607 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17608 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17609 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17610 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
17611 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
17612 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17613 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17614 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
17615 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
17616 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
17617 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17618 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17619 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17620 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17621 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
17622 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17623 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
17624 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
17625 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
17626 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17627 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17628 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17629 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17630 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
17631 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17632 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17633 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
17634 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
17635 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
17636 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
17637 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
17638 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
17639 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
17640 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
17641 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
17642 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
17643 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
17644 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
17645 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
17646 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
17647 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
17648 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
17649 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
17650 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
17651 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
17652 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
17653 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
17654 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
17655 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
17656 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
17657 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
17658 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
17659 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
17660 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
17661 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17662 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
17663 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17664 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
17665 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
17666 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
17667 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
17668 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
17669 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
17670 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17671 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17672 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
17673 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
17674 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
17675 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
17676 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
17677 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
17678 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
17679 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
17680 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
17681 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
17682 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
17683 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
17684 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
17685 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
17686 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
17687 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
17688 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
17689 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
17690 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
17691 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
17692 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
17693 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
17694 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
17695 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
17696 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
17697 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
17698 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
17699 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
17700 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
17701 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
17702 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
17703 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
17704 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
17705 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
17706 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
17707 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
17708 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
17709 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
17710 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
17711 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
17712 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
17713 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
17714 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
17715 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
17716 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
17717 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
17718 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
17719 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
17720 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
17721 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
17722 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
17723 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
17724 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
17725 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
17726 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
17727 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
17728 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
17729 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
17730 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
17731 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
17732 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17733 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
17734 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
17735 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
17736 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
17737 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
17738 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
17739 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
17740 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
17741 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
17742 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
17743 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
17744 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
17745 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
17746 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
17747 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
17748 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
17749 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
17750 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
17751 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
17752 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
17753 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
17754 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
17755 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
17756 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
17757 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
17758 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
17759 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
17760 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
17761 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
17762 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
17763 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17764 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
17765 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
17766 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
17767 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
17768 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
17769 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
17770 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
17771 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
17772 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
17773 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
17774 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
17775 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
17776 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17777 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17778 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17779 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
17780 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17781 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17782 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
17783 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17784 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
17785 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17786 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17787 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
17788 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
17789 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
17790 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17791 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
17792 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
17793 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
17794 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
17795 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17796 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
17797 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
17798 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
17799 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
17800 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
17801 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
17802 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
17803 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
17804 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
17805 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
17806 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
17807 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
17808 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
17809 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
17810 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
17811 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
17812 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
17813 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
17814 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
17815 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17816 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17817 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
17818 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
17819 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
17820 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
17821 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
17822 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
17823 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
17824 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
17825 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
17826 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
17827 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
17828 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
17829 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
17830 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
17831 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
17832 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
17833 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
17834 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
17835 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
17836 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
17838 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
17840 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
17841 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
17845 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
17847 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
17848 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
17849 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
17850 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
17851 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
17853 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
17855 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
17856 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
17858 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
17859 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
17860 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17861 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
17863 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
17864 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
17865 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
17866 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
17867 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
17868 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
17869 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
17871 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
17872 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
17873 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
17875 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17877 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17879 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17882 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17883 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
17885 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
17887 { NULL, NULL }
17888 };
17889
17890
17891 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
17892
17893 static void *_p_wxControlTo_p_wxWindow(void *x) {
17894 return (void *)((wxWindow *) ((wxControl *) x));
17895 }
17896 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
17897 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
17898 }
17899 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
17900 return (void *)((wxWindow *) ((wxMenuBar *) x));
17901 }
17902 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
17903 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
17904 }
17905 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
17906 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
17907 }
17908 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
17909 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
17910 }
17911 static void *_p_wxPenTo_p_wxObject(void *x) {
17912 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
17913 }
17914 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
17915 return (void *)((wxObject *) ((wxRegionIterator *) x));
17916 }
17917 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
17918 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
17919 }
17920 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
17921 return (void *)((wxObject *) ((wxSizerItem *) x));
17922 }
17923 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
17924 return (void *)((wxObject *) ((wxColourDatabase *) x));
17925 }
17926 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
17927 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
17928 }
17929 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
17930 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
17931 }
17932 static void *_p_wxIconTo_p_wxObject(void *x) {
17933 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
17934 }
17935 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
17936 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
17937 }
17938 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
17939 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
17940 }
17941 static void *_p_wxSizerTo_p_wxObject(void *x) {
17942 return (void *)((wxObject *) ((wxSizer *) x));
17943 }
17944 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
17945 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
17946 }
17947 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
17948 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
17949 }
17950 static void *_p_wxPenListTo_p_wxObject(void *x) {
17951 return (void *)((wxObject *) ((wxPenList *) x));
17952 }
17953 static void *_p_wxEventTo_p_wxObject(void *x) {
17954 return (void *)((wxObject *) ((wxEvent *) x));
17955 }
17956 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
17957 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
17958 }
17959 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
17960 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
17961 }
17962 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
17963 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
17964 }
17965 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
17966 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
17967 }
17968 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
17969 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
17970 }
17971 static void *_p_wxDCTo_p_wxObject(void *x) {
17972 return (void *)((wxObject *) ((wxDC *) x));
17973 }
17974 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
17975 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
17976 }
17977 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
17978 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
17979 }
17980 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
17981 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
17982 }
17983 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
17984 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
17985 }
17986 static void *_p_wxControlTo_p_wxObject(void *x) {
17987 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
17988 }
17989 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
17990 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
17991 }
17992 static void *_p_wxClientDCTo_p_wxObject(void *x) {
17993 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
17994 }
17995 static void *_p_wxFSFileTo_p_wxObject(void *x) {
17996 return (void *)((wxObject *) ((wxFSFile *) x));
17997 }
17998 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
17999 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18000 }
18001 static void *_p_wxRegionTo_p_wxObject(void *x) {
18002 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18003 }
18004 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18005 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18006 }
18007 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18008 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18009 }
18010 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18011 return (void *)((wxObject *) ((wxGDIObject *) x));
18012 }
18013 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18014 return (void *)((wxObject *) ((wxEffects *) x));
18015 }
18016 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18017 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18018 }
18019 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18020 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18021 }
18022 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18023 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18024 }
18025 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18026 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18027 }
18028 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18029 return (void *)((wxObject *) ((wxMenuItem *) x));
18030 }
18031 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18032 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18033 }
18034 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18035 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18036 }
18037 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18038 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18039 }
18040 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18041 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18042 }
18043 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18044 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18045 }
18046 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18047 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18048 }
18049 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18050 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18051 }
18052 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18053 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18054 }
18055 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18056 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18057 }
18058 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18059 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18060 }
18061 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18062 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18063 }
18064 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18065 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18066 }
18067 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18068 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18069 }
18070 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18071 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18072 }
18073 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18074 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18075 }
18076 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18077 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18078 }
18079 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18080 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18081 }
18082 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18083 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18084 }
18085 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18086 return (void *)((wxObject *) ((wxImageHandler *) x));
18087 }
18088 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18089 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18090 }
18091 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18092 return (void *)((wxObject *) ((wxEvtHandler *) x));
18093 }
18094 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18095 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18096 }
18097 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18098 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18099 }
18100 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18101 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18102 }
18103 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18104 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18105 }
18106 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18107 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18108 }
18109 static void *_p_wxImageTo_p_wxObject(void *x) {
18110 return (void *)((wxObject *) ((wxImage *) x));
18111 }
18112 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18113 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18114 }
18115 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18116 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18117 }
18118 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18119 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18120 }
18121 static void *_p_wxImageListTo_p_wxObject(void *x) {
18122 return (void *)((wxObject *) ((wxImageList *) x));
18123 }
18124 static void *_p_wxCursorTo_p_wxObject(void *x) {
18125 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18126 }
18127 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18128 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18129 }
18130 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18131 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18132 }
18133 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18134 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18135 }
18136 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18137 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18138 }
18139 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18140 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18141 }
18142 static void *_p_wxWindowTo_p_wxObject(void *x) {
18143 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18144 }
18145 static void *_p_wxMenuTo_p_wxObject(void *x) {
18146 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18147 }
18148 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18149 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18150 }
18151 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18152 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18153 }
18154 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18155 return (void *)((wxObject *) ((wxBrushList *) x));
18156 }
18157 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18158 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18159 }
18160 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18161 return (void *)((wxObject *) ((wxFileSystem *) x));
18162 }
18163 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18164 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18165 }
18166 static void *_p_wxMaskTo_p_wxObject(void *x) {
18167 return (void *)((wxObject *) ((wxMask *) x));
18168 }
18169 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18170 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18171 }
18172 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18173 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18174 }
18175 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18176 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18177 }
18178 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18179 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18180 }
18181 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18182 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18183 }
18184 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18185 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18186 }
18187 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18188 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18189 }
18190 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18191 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18192 }
18193 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18194 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18195 }
18196 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18197 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18198 }
18199 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18200 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18201 }
18202 static void *_p_wxFontTo_p_wxObject(void *x) {
18203 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18204 }
18205 static void *_p_wxBrushTo_p_wxObject(void *x) {
18206 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18207 }
18208 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18209 return (void *)((wxObject *) ((wxMetaFile *) x));
18210 }
18211 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18212 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18213 }
18214 static void *_p_wxColourTo_p_wxObject(void *x) {
18215 return (void *)((wxObject *) ((wxColour *) x));
18216 }
18217 static void *_p_wxFontListTo_p_wxObject(void *x) {
18218 return (void *)((wxObject *) ((wxFontList *) x));
18219 }
18220 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18221 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18222 }
18223 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18224 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18225 }
18226 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18227 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18228 }
18229 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18230 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18231 }
18232 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18233 return (void *)((wxDC *) ((wxScreenDC *) x));
18234 }
18235 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18236 return (void *)((wxDC *) ((wxMirrorDC *) x));
18237 }
18238 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18239 return (void *)((wxDC *) ((wxMemoryDC *) x));
18240 }
18241 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18242 return (void *)((wxDC *) ((wxWindowDC *) x));
18243 }
18244 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18245 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18246 }
18247 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18248 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18249 }
18250 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18251 return (void *)((wxDC *) ((wxClientDC *) x));
18252 }
18253 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18254 return (void *)((wxDC *) ((wxPaintDC *) x));
18255 }
18256 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18257 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18258 }
18259 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18260 return (void *)((wxDC *) ((wxPrinterDC *) x));
18261 }
18262 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18263 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18264 }
18265 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18266 return (void *)((wxGDIObject *) ((wxIcon *) x));
18267 }
18268 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18269 return (void *)((wxGDIObject *) ((wxPalette *) x));
18270 }
18271 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18272 return (void *)((wxGDIObject *) ((wxPen *) x));
18273 }
18274 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18275 return (void *)((wxGDIObject *) ((wxFont *) x));
18276 }
18277 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18278 return (void *)((wxGDIObject *) ((wxCursor *) x));
18279 }
18280 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18281 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18282 }
18283 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18284 return (void *)((wxGDIObject *) ((wxRegion *) x));
18285 }
18286 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18287 return (void *)((wxGDIObject *) ((wxBrush *) x));
18288 }
18289 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18290 return (void *)((wxPen *) ((wxPyPen *) x));
18291 }
18292 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
18293 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
18294 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
18295 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}};
18296 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
18297 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18298 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
18299 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
18300 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
18301 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
18302 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
18303 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
18304 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
18305 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}};
18306 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
18307 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
18308 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}};
18309 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
18310 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
18311 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
18312 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
18313 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
18314 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}};
18315 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
18316 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
18317 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
18318 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
18319 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
18320 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
18321 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
18322 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
18323 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
18324 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
18325 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
18326 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
18327 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18328 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}};
18329 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
18330 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
18331 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
18332 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
18333 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
18334 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
18335 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
18336 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
18337 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
18338 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
18339 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
18340 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
18341 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
18342 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
18343 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
18344 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
18345 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
18346 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
18347 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
18348
18349 static swig_type_info *swig_types_initial[] = {
18350 _swigt__p_wxPostScriptDC,
18351 _swigt__p_wxBrush,
18352 _swigt__p_wxColour,
18353 _swigt__p_wxDC,
18354 _swigt__p_wxMirrorDC,
18355 _swigt__p_byte,
18356 _swigt__p_wxPyFontEnumerator,
18357 _swigt__p_char,
18358 _swigt__p_wxIconLocation,
18359 _swigt__p_wxImage,
18360 _swigt__p_wxMetaFileDC,
18361 _swigt__p_wxMask,
18362 _swigt__p_wxFont,
18363 _swigt__p_wxWindow,
18364 _swigt__p_wxSize,
18365 _swigt__p_double,
18366 _swigt__p_wxMemoryDC,
18367 _swigt__p_wxFontMapper,
18368 _swigt__p_wxEffects,
18369 _swigt__p_wxNativeEncodingInfo,
18370 _swigt__p_wxPalette,
18371 _swigt__p_wxBitmap,
18372 _swigt__p_wxObject,
18373 _swigt__p_wxRegionIterator,
18374 _swigt__p_wxRect,
18375 _swigt__p_wxString,
18376 _swigt__p_wxPrinterDC,
18377 _swigt__p_wxIconBundle,
18378 _swigt__p_wxPoint,
18379 _swigt__p_wxDash,
18380 _swigt__p_wxScreenDC,
18381 _swigt__p_wxCursor,
18382 _swigt__p_wxClientDC,
18383 _swigt__p_wxBufferedDC,
18384 _swigt__p_wxImageList,
18385 _swigt__p_unsigned_char,
18386 _swigt__p_wxGDIObject,
18387 _swigt__p_wxIcon,
18388 _swigt__p_wxLocale,
18389 _swigt__p_wxRegion,
18390 _swigt__p_wxLanguageInfo,
18391 _swigt__p_wxConfigBase,
18392 _swigt__p_wxWindowDC,
18393 _swigt__p_wxPrintData,
18394 _swigt__p_wxBrushList,
18395 _swigt__p_wxFontList,
18396 _swigt__p_wxPen,
18397 _swigt__p_wxBufferedPaintDC,
18398 _swigt__p_wxPaintDC,
18399 _swigt__p_wxPenList,
18400 _swigt__p_wxPyPen,
18401 _swigt__p_int,
18402 _swigt__p_wxMetaFile,
18403 _swigt__p_wxNativeFontInfo,
18404 _swigt__p_wxEncodingConverter,
18405 _swigt__p_wxColourDatabase,
18406 0
18407 };
18408
18409
18410 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18411
18412 static swig_const_info swig_const_table[] = {
18413 {0}};
18414
18415 #ifdef __cplusplus
18416 }
18417 #endif
18418
18419 #ifdef __cplusplus
18420 extern "C"
18421 #endif
18422 SWIGEXPORT(void) SWIG_init(void) {
18423 static PyObject *SWIG_globals = 0;
18424 static int typeinit = 0;
18425 PyObject *m, *d;
18426 int i;
18427 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18428 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18429 d = PyModule_GetDict(m);
18430
18431 if (!typeinit) {
18432 for (i = 0; swig_types_initial[i]; i++) {
18433 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18434 }
18435 typeinit = 1;
18436 }
18437 SWIG_InstallConstants(d,swig_const_table);
18438
18439 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
18440 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
18441 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
18442 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
18443 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
18444 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
18445 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
18446 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
18447 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
18448 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
18449 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
18450 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
18451 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
18452 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
18453 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
18454 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
18455 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
18456 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
18457 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
18458 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
18459 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
18460 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
18461 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
18462 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
18463 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
18464 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
18465 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18466 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
18467 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18468 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
18469 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
18470 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
18471 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
18472 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
18473 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
18474 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
18475 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
18476 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
18477 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
18478 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
18479 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
18480 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
18481 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
18482 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
18483 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
18484 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
18485 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
18486 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18487 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
18488 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18489 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
18490 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
18491 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
18492 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
18493 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
18494 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
18495 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
18496 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
18497 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
18498 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
18499 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
18500 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
18501 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
18502 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
18503 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
18504 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
18505 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
18506 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
18507 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
18508 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
18509 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
18510 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
18511 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
18512 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
18513 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
18514 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
18515 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
18516 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
18517 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
18518 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18519 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
18520 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
18521 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
18522 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
18523 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18524 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18525 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18526 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
18527 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
18528 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
18529 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
18530 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
18531 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
18532 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18533 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
18534 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
18535 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
18536 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
18537 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18538 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
18539 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
18540 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
18541 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
18542 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
18543 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
18544 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
18545 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
18546 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
18547 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
18548 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
18549 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
18550 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
18551 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
18552 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
18553 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
18554 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
18555 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
18556 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
18557 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
18558 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
18559 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
18560 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
18561 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
18562 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
18563 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
18564 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
18565
18566 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18567
18568 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
18569 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
18570 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
18571 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
18572 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
18573 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
18574 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
18575 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
18576 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
18577 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
18578 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
18579 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
18580 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
18581 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
18582 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
18583 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
18584 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
18585 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
18586 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
18587 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
18588 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
18589 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
18590 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
18591 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
18592 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
18593 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
18594 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
18595 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
18596 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
18597 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
18598 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
18599 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
18600 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
18601 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
18602 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
18603 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
18604 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
18605 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
18606 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
18607 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
18608 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
18609 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
18610 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
18611 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
18612 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
18613 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
18614 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
18615 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
18616 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
18617 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
18618 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
18619 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
18620 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
18621 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
18622 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
18623 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
18624 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
18625 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
18626 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
18627 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
18628 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
18629 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
18630 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
18631 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
18632 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
18633 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
18634 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
18635 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
18636 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
18637 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
18638 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
18639 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
18640 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
18641 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
18642 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
18643 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
18644 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
18645 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
18646 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
18647 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
18648 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
18649 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
18650 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
18651 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
18652 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
18653 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
18654 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
18655 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
18656 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
18657 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
18658 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
18659 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
18660 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
18661 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
18662 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
18663 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
18664 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
18665 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
18666 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
18667 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
18668 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
18669 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
18670 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
18671 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
18672 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
18673 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
18674 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
18675 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
18676 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
18677 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
18678 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
18679 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
18680 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
18681 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
18682 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
18683 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
18684 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
18685 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
18686 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
18687 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
18688 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
18689 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
18690 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
18691 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
18692 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
18693 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
18694 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
18695 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
18696 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
18697 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
18698 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
18699 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
18700 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
18701 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
18702 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
18703 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
18704 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
18705 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
18706 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
18707 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
18708 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
18709 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
18710 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
18711 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
18712 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
18713 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
18714 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
18715 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
18716 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
18717 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
18718 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
18719 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
18720 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
18721 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
18722 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
18723 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
18724 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
18725 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
18726 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
18727 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
18728 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
18729 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
18730 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
18731 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
18732 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
18733 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
18734 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
18735 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
18736 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
18737 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
18738 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
18739 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
18740 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
18741 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
18742 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
18743 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
18744 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
18745 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
18746 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
18747 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
18748 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
18749 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
18750 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
18751 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
18752 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
18753 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
18754 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
18755 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
18756 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
18757 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
18758 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
18759 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
18760 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
18761 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
18762 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
18763 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
18764 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
18765 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
18766 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
18767 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
18768 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
18769 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
18770 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
18771 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
18772 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
18773 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
18774 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
18775 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
18776 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
18777 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
18778 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
18779 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
18780 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
18781 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
18782 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
18783 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
18784 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
18785 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
18786 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
18787 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
18788 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
18789 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
18790 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
18791 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
18792 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
18793 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
18794 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
18795 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
18796 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
18797 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
18798 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
18799 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
18800 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
18801 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
18802 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
18803 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
18804 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
18805 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
18806 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
18807 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
18808 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
18809 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
18810 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
18811 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
18812 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
18813 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
18814 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
18815 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
18816 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
18817 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
18818 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
18819 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
18820 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
18821 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
18822 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
18823 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
18824 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
18825 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
18826 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
18827 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
18828 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
18829 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
18830 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
18831 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
18832 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
18833 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
18834 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
18835 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
18836 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
18837 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
18838 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
18839 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
18840 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
18841 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
18842 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
18843 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
18844 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
18845 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
18846 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
18847 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
18848 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
18849 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
18850 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
18851 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
18852 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
18853 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
18854 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
18855 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
18856 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
18857 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
18858 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
18859 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
18860 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
18861 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
18862 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
18863 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
18864 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
18865 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
18866 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
18867 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
18868
18869 // Work around a chicken/egg problem in drawlist.cpp
18870 wxPyDrawList_SetAPIPtr();
18871
18872 }
18873