]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126
127 /***********************************************************************
128 * pyrun.swg for wxPython
129 *
130 * Include only the function prototypes and such from SWIG's pyrun.swg,
131 * but not the runtime functions themselves. This helps keep the
132 * wrapper files clean of unnecessary stuff that is in the libpy.c file
133 * anyway.
134 *
135 ************************************************************************/
136
137 #include "Python.h"
138
139 #ifdef __cplusplus
140 extern "C" {
141 #endif
142
143 #define SWIG_PY_INT 1
144 #define SWIG_PY_FLOAT 2
145 #define SWIG_PY_STRING 3
146 #define SWIG_PY_POINTER 4
147 #define SWIG_PY_BINARY 5
148
149 /* Flags for pointer conversion */
150
151 #define SWIG_POINTER_EXCEPTION 0x1
152 #define SWIG_POINTER_DISOWN 0x2
153
154 /* Exception handling in wrappers */
155 #define SWIG_fail goto fail
156
157 /* Constant information structure */
158 typedef struct swig_const_info {
159 int type;
160 char *name;
161 long lvalue;
162 double dvalue;
163 void *pvalue;
164 swig_type_info **ptype;
165 } swig_const_info;
166
167 /* Common SWIG API */
168 #define SWIG_ConvertPtr(obj, pp, type, flags) \
169 SWIG_Python_ConvertPtr(obj, pp, type, flags)
170 #define SWIG_NewPointerObj(p, type, flags) \
171 SWIG_Python_NewPointerObj(p, type, flags)
172 #define SWIG_MustGetPtr(p, type, argnum, flags) \
173 SWIG_Python_MustGetPtr(p, type, argnum, flags)
174
175 /* Python-specific SWIG API */
176 #define SWIG_newvarlink() \
177 SWIG_Python_newvarlink()
178 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
179 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
180 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
181 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
182 #define SWIG_NewPackedObj(ptr, sz, type) \
183 SWIG_Python_NewPackedObj(ptr, sz, type)
184 #define SWIG_InstallConstants(d, constants) \
185 SWIG_Python_InstallConstants(d, constants)
186
187 typedef double (*py_objasdbl_conv)(PyObject *obj);
188
189 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
190 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
191 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
192 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
193 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
194 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
195 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
196 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
197
198 /* -----------------------------------------------------------------------------
199 * the needed conversions between C++ and python
200 * ----------------------------------------------------------------------------- */
201 /* basic types */
202 /*
203 utilities
204 */
205 SWIGIMPORT(char* ) SWIG_PyObj_AsCharPtr(PyObject *obj, swig_type_info* pchar_info);
206 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharPtr(const char* cptr);
207 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLong(PyObject * obj);
208 SWIGIMPORT(long) SWIG_PyObj_AsLongInRange(PyObject * obj, const char* type,
209 long min_value, long max_value);
210 SWIGIMPORT(unsigned long) SWIG_PyObj_AsUnsignedLongInRange(PyObject *obj, const char* type,
211 unsigned long max_value);
212 SWIGIMPORT(char *) SWIG_PyObj_AsNewCharPtr(PyObject *obj, swig_type_info* pchar_info);
213 SWIGIMPORT(void) SWIG_PyObj_AsCharPtrAndSize(PyObject *obj, swig_type_info* pchar_info,
214 char** cptr, size_t* size);
215 SWIGIMPORT(void) SWIG_PyObj_AsCharArray(PyObject *obj, swig_type_info* pchar_info,
216 char* carray, size_t size);
217 SWIGIMPORT(PyObject *) SWIG_PyObj_FromCharArray(const char* carray, size_t size);
218 SWIGIMPORT(float) SWIG_PyObj_AsFloatConv(PyObject *obj, py_objasdbl_conv pyconv);
219
220
221 /* Contract support */
222
223 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
224
225 #ifdef __cplusplus
226 }
227 #endif
228
229
230
231 /* -------- TYPES TABLE (BEGIN) -------- */
232
233 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
234 #define SWIGTYPE_p_wxBrush swig_types[1]
235 #define SWIGTYPE_p_wxColour swig_types[2]
236 #define SWIGTYPE_p_wxDC swig_types[3]
237 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
238 #define SWIGTYPE_p_byte swig_types[5]
239 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
240 #define SWIGTYPE_p_char swig_types[7]
241 #define SWIGTYPE_p_wxIconLocation swig_types[8]
242 #define SWIGTYPE_p_wxImage swig_types[9]
243 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
244 #define SWIGTYPE_p_wxMask swig_types[11]
245 #define SWIGTYPE_p_wxFont swig_types[12]
246 #define SWIGTYPE_p_wxWindow swig_types[13]
247 #define SWIGTYPE_p_wxSize swig_types[14]
248 #define SWIGTYPE_p_double swig_types[15]
249 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
250 #define SWIGTYPE_p_wxFontMapper swig_types[17]
251 #define SWIGTYPE_p_wxEffects swig_types[18]
252 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
253 #define SWIGTYPE_p_wxPalette swig_types[20]
254 #define SWIGTYPE_p_wxBitmap swig_types[21]
255 #define SWIGTYPE_p_wxObject swig_types[22]
256 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
257 #define SWIGTYPE_p_wxRect swig_types[24]
258 #define SWIGTYPE_p_wxString swig_types[25]
259 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
260 #define SWIGTYPE_p_wxIconBundle swig_types[27]
261 #define SWIGTYPE_p_wxPoint swig_types[28]
262 #define SWIGTYPE_p_wxDash swig_types[29]
263 #define SWIGTYPE_p_wxScreenDC swig_types[30]
264 #define SWIGTYPE_p_wxCursor swig_types[31]
265 #define SWIGTYPE_p_wxClientDC swig_types[32]
266 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
267 #define SWIGTYPE_p_wxImageList swig_types[34]
268 #define SWIGTYPE_p_unsigned_char swig_types[35]
269 #define SWIGTYPE_p_wxGDIObject swig_types[36]
270 #define SWIGTYPE_p_wxIcon swig_types[37]
271 #define SWIGTYPE_p_wxLocale swig_types[38]
272 #define SWIGTYPE_p_wxRegion swig_types[39]
273 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
274 #define SWIGTYPE_p_wxConfigBase swig_types[41]
275 #define SWIGTYPE_p_wxWindowDC swig_types[42]
276 #define SWIGTYPE_p_wxPrintData swig_types[43]
277 #define SWIGTYPE_p_wxBrushList swig_types[44]
278 #define SWIGTYPE_p_wxFontList swig_types[45]
279 #define SWIGTYPE_p_wxPen swig_types[46]
280 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
281 #define SWIGTYPE_p_wxPaintDC swig_types[48]
282 #define SWIGTYPE_p_wxPenList swig_types[49]
283 #define SWIGTYPE_p_wxPyPen swig_types[50]
284 #define SWIGTYPE_p_int swig_types[51]
285 #define SWIGTYPE_p_wxMetaFile swig_types[52]
286 #define SWIGTYPE_p_wxNativeFontInfo swig_types[53]
287 #define SWIGTYPE_p_wxEncodingConverter swig_types[54]
288 #define SWIGTYPE_p_wxColourDatabase swig_types[55]
289 static swig_type_info *swig_types[57];
290
291 /* -------- TYPES TABLE (END) -------- */
292
293
294 /*-----------------------------------------------
295 @(target):= _gdi.so
296 ------------------------------------------------*/
297 #define SWIG_init init_gdi
298
299 #define SWIG_name "_gdi"
300
301 #include <limits.h>
302 #include <float.h>
303 #include <string.h>
304
305 #ifndef SWIGSTATIC
306 #ifdef __cplusplus
307 #define SWIGSTATIC(a) static inline a
308 #else
309 #define SWIGSTATIC(a) static a
310 #endif
311 #endif
312
313 #ifndef numeric_cast
314 #ifdef __cplusplus
315 #ifdef HAVE_NUMERIC_CAST
316 #define numeric_cast(type,a) numeric_cast<type>(a)
317 #else
318 #define numeric_cast(type,a) static_cast<type>(a)
319 #endif
320 #else
321 #define numeric_cast(type,a) (type)(a)
322 #endif
323 #endif
324
325
326
327 #define SWIG_PyObj_FromSignedChar PyInt_FromLong
328 #define SWIG_PyObj_FromUnsignedChar PyInt_FromLong
329 #define SWIG_PyObj_FromShort PyInt_FromLong
330 #define SWIG_PyObj_FromUnsignedShort PyInt_FromLong
331 #define SWIG_PyObj_FromInt PyInt_FromLong
332 #define SWIG_PyObj_FromLong PyInt_FromLong
333 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
334 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
335 #define SWIG_PyObj_FromFloat PyFloat_FromDouble
336 #define SWIG_PyObj_FromDouble PyFloat_FromDouble
337
338
339 #include "wx/wxPython/wxPython.h"
340 #include "wx/wxPython/pyclasses.h"
341
342
343 static const wxString wxPyEmptyString(wxEmptyString);
344
345 SWIGSTATIC(PyObject*)
346 SWIG_PyObj_FromBool(bool value)
347 {
348 PyObject *obj = value ? Py_True : Py_False;
349 Py_INCREF(obj);
350 return obj;
351 }
352
353
354 SWIGSTATIC(bool)
355 SWIG_PyObj_AsBool(PyObject *obj)
356 {
357 return PyObject_IsTrue(obj) ? true : false;
358 }
359
360
361 SWIGSTATIC(unsigned char)
362 SWIG_PyObj_AsUnsignedChar(PyObject *obj)
363 {
364 return numeric_cast(unsigned char,
365 SWIG_PyObj_AsUnsignedLongInRange(obj, "unsigned char", UCHAR_MAX));
366 }
367
368 PyObject *wxColour_Get(wxColour *self){
369 PyObject* rv = PyTuple_New(3);
370 int red = -1;
371 int green = -1;
372 int blue = -1;
373 if (self->Ok()) {
374 red = self->Red();
375 green = self->Green();
376 blue = self->Blue();
377 }
378 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
379 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
380 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
381 return rv;
382 }
383
384 SWIGSTATIC(int)
385 SWIG_PyObj_AsInt(PyObject *obj)
386 {
387 return numeric_cast(int,
388 SWIG_PyObj_AsLongInRange(obj, "int", INT_MIN, INT_MAX));
389 }
390
391
392 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
393 PyObject* o2;
394 PyObject* o3;
395
396 if (!target) {
397 target = o;
398 } else if (target == Py_None) {
399 Py_DECREF(Py_None);
400 target = o;
401 } else {
402 if (!PyTuple_Check(target)) {
403 o2 = target;
404 target = PyTuple_New(1);
405 PyTuple_SetItem(target, 0, o2);
406 }
407 o3 = PyTuple_New(1);
408 PyTuple_SetItem(o3, 0, o);
409
410 o2 = target;
411 target = PySequence_Concat(o2, o3);
412 Py_DECREF(o2);
413 Py_DECREF(o3);
414 }
415 return target;
416 }
417
418 PyObject *wxPen_GetDashes(wxPen *self){
419 wxDash* dashes;
420 int count = self->GetDashes(&dashes);
421 wxPyBeginBlockThreads();
422 PyObject* retval = PyList_New(0);
423 for (int x=0; x<count; x++)
424 PyList_Append(retval, PyInt_FromLong(dashes[x]));
425 wxPyEndBlockThreads();
426 return retval;
427 }
428
429 wxPyPen::~wxPyPen()
430 {
431 if (m_dash)
432 delete [] m_dash;
433 }
434
435 void wxPyPen::SetDashes(int nb_dashes, const wxDash *dash)
436 {
437 if (m_dash)
438 delete [] m_dash;
439 m_dash = new wxDash[nb_dashes];
440 for (int i=0; i<nb_dashes; i++) {
441 m_dash[i] = dash[i];
442 }
443 wxPen::SetDashes(nb_dashes, m_dash);
444 }
445
446
447 SWIGSTATIC(short)
448 SWIG_PyObj_AsShort(PyObject *obj)
449 {
450 return numeric_cast(short,
451 SWIG_PyObj_AsLongInRange(obj, "short", SHRT_MIN, SHRT_MAX));
452 }
453
454
455 #include <wx/image.h>
456
457 static char** ConvertListOfStrings(PyObject* listOfStrings) {
458 char** cArray = NULL;
459 int count;
460
461 if (!PyList_Check(listOfStrings)) {
462 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
463 return NULL;
464 }
465 count = PyList_Size(listOfStrings);
466 cArray = new char*[count];
467
468 for(int x=0; x<count; x++) {
469 // TODO: Need some validation and error checking here
470 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
471 }
472 return cArray;
473 }
474
475
476 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
477 char** cArray = NULL;
478 wxBitmap* bmp;
479
480 cArray = ConvertListOfStrings(listOfStrings);
481 if (! cArray)
482 return NULL;
483 bmp = new wxBitmap(cArray);
484 delete [] cArray;
485 return bmp;
486 }
487 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
488 char* buf;
489 int length;
490 PyString_AsStringAndSize(bits, &buf, &length);
491 return new wxBitmap(buf, width, height, depth);
492 }
493 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
494 wxMask *mask = new wxMask(*self, colour);
495 self->SetMask(mask);
496 }
497
498 #include <wx/iconbndl.h>
499
500 wxIcon *new_wxIcon(wxBitmap const &bmp){
501 wxIcon* icon = new wxIcon();
502 icon->CopyFromBitmap(bmp);
503 return icon;
504 }
505 wxIcon *new_wxIcon(PyObject *listOfStrings){
506 char** cArray = NULL;
507 wxIcon* icon;
508
509 cArray = ConvertListOfStrings(listOfStrings);
510 if (! cArray)
511 return NULL;
512 icon = new wxIcon(cArray);
513 delete [] cArray;
514 return icon;
515 }
516 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
517
518
519
520 return new wxIconLocation(*filename);
521
522 }
523 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
524
525
526
527 // do nothing
528
529 }
530 int wxIconLocation_GetIndex(wxIconLocation *self){
531
532
533
534 return -1;
535
536 }
537
538 SWIGSTATIC(long)
539 SWIG_PyObj_AsLong(PyObject * obj)
540 {
541 return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj);
542 }
543
544 wxCursor *new_wxCursor(wxString const *cursorName,long flags,int hotSpotX,int hotSpotY){
545
546
547
548
549 return new wxCursor(*cursorName, flags, hotSpotX, hotSpotY);
550
551 }
552 wxCursor *new_wxCursor(PyObject *bits,int width,int height,int hotSpotX,int hotSpotY,PyObject *maskBits){
553 char* bitsbuf;
554 char* maskbuf = NULL;
555 int length;
556 PyString_AsStringAndSize(bits, &bitsbuf, &length);
557 if (maskBits)
558 PyString_AsStringAndSize(maskBits, &maskbuf, &length);
559 return new wxCursor(bitsbuf, width, height, hotSpotX, hotSpotY, maskbuf);
560 }
561
562
563 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
564 wxPyRaiseNotImplemented();
565 return NULL;
566 }
567 void wxRegionIterator_Next(wxRegionIterator *self){
568 (*self) ++;
569 }
570 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
571 return self->operator bool();
572 }
573
574 #include <wx/fontutil.h>
575 #include <wx/fontmap.h>
576 #include <wx/fontenum.h>
577
578 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
579 return self->ToString();
580 }
581
582 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
583 static wxNativeEncodingInfo info;
584 if ( wxGetNativeFontEncoding(encoding, &info) )
585 return &info;
586 else
587 return NULL;
588 }
589
590
591 SWIGSTATIC(PyObject* )
592 SWIG_PyObj_FromUnsignedLong(unsigned long value)
593 {
594 return (value > (unsigned long)(LONG_MAX)) ?
595 PyLong_FromUnsignedLong(value) : PyInt_FromLong((long)value);
596 }
597
598 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
599 wxFontEncoding alt_enc;
600 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
601 return PyInt_FromLong(alt_enc);
602 else {
603 Py_INCREF(Py_None);
604 return Py_None;
605 }
606 }
607 wxFont *new_wxFont(wxString const &info){
608 wxNativeFontInfo nfi;
609 nfi.FromString(info);
610 return new wxFont(nfi);
611 }
612 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
613 return wxFont::New(pointSize, family, flags, face, encoding);
614 }
615
616 class wxPyFontEnumerator : public wxFontEnumerator {
617 public:
618 wxPyFontEnumerator() {}
619 ~wxPyFontEnumerator() {}
620
621 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
622 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
623
624 PYPRIVATE;
625 };
626
627 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
628 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
629
630
631 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
632 wxArrayString* arr = self->GetEncodings();
633 return wxArrayString2PyList_helper(*arr);
634 }
635 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
636 wxArrayString* arr = self->GetFacenames();
637 return wxArrayString2PyList_helper(*arr);
638 }
639
640
641
642 #include "wx/wxPython/pydrawxxx.h"
643
644 wxColour wxDC_GetPixelXY(wxDC *self,int x,int y){
645 wxColour col;
646 self->GetPixel(x, y, &col);
647 return col;
648 }
649 wxColour wxDC_GetPixel(wxDC *self,wxPoint const &pt){
650 wxColour col;
651 self->GetPixel(pt, &col);
652 return col;
653 }
654
655 SWIGSTATIC(double)
656 SWIG_PyObj_AsDouble(PyObject *obj)
657 {
658 return (PyFloat_Check(obj)) ? PyFloat_AsDouble(obj) :
659 #if HAVE_LONG_LONG
660 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLongLong(obj));
661 #else
662 (double)((PyInt_Check(obj)) ? PyInt_AsLong(obj) : PyLong_AsLong(obj));
663 #endif
664 if (PyErr_Occurred()) {
665 PyErr_Clear();
666 PyErr_SetString(PyExc_TypeError, "a double is expected");
667 }
668 }
669
670 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
671 wxRect rv;
672 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
673 return rv;
674 }
675 wxRect wxDC_GetClippingRect(wxDC *self){
676 wxRect rect;
677 self->GetClippingBox(rect);
678 return rect;
679 }
680 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
681 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
682 }
683 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
684 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
685 }
686 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
687 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
688 }
689 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
690 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
691 }
692 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
693 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
694 }
695 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
696 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
697 }
698
699 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
700 *x1 = dc->MinX();
701 *y1 = dc->MinY();
702 *x2 = dc->MaxX();
703 *y2 = dc->MaxY();
704 }
705
706
707 #include <wx/dcps.h>
708
709
710 class wxMetaFile : public wxObject {
711 public:
712 wxMetaFile(const wxString&)
713 { wxPyRaiseNotImplemented(); }
714 };
715
716 class wxMetaFileDC : public wxClientDC {
717 public:
718 wxMetaFileDC(const wxString&, int, int, const wxString&)
719 { wxPyRaiseNotImplemented(); }
720 };
721
722
723
724
725 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
726 self->AddColour(name, wxColour(red, green, blue));
727 }
728
729 #include <wx/effects.h>
730
731 #ifdef __cplusplus
732 extern "C" {
733 #endif
734 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
735 PyObject *resultobj;
736 wxGDIObject *result;
737 char *kwnames[] = {
738 NULL
739 };
740
741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
742 {
743 PyThreadState* __tstate = wxPyBeginAllowThreads();
744 result = (wxGDIObject *)new wxGDIObject();
745
746 wxPyEndAllowThreads(__tstate);
747 if (PyErr_Occurred()) SWIG_fail;
748 }
749 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxGDIObject, 1);
750 return resultobj;
751 fail:
752 return NULL;
753 }
754
755
756 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
757 PyObject *resultobj;
758 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
759 PyObject * obj0 = 0 ;
760 char *kwnames[] = {
761 (char *) "self", NULL
762 };
763
764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
766 {
767 PyThreadState* __tstate = wxPyBeginAllowThreads();
768 delete arg1;
769
770 wxPyEndAllowThreads(__tstate);
771 if (PyErr_Occurred()) SWIG_fail;
772 }
773 Py_INCREF(Py_None); resultobj = Py_None;
774 return resultobj;
775 fail:
776 return NULL;
777 }
778
779
780 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
781 PyObject *resultobj;
782 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
783 bool result;
784 PyObject * obj0 = 0 ;
785 char *kwnames[] = {
786 (char *) "self", NULL
787 };
788
789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
790 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
791 {
792 PyThreadState* __tstate = wxPyBeginAllowThreads();
793 result = (bool)(arg1)->GetVisible();
794
795 wxPyEndAllowThreads(__tstate);
796 if (PyErr_Occurred()) SWIG_fail;
797 }
798 resultobj = SWIG_PyObj_FromBool((bool)result);
799 return resultobj;
800 fail:
801 return NULL;
802 }
803
804
805 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
806 PyObject *resultobj;
807 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
808 bool arg2 ;
809 PyObject * obj0 = 0 ;
810 PyObject * obj1 = 0 ;
811 char *kwnames[] = {
812 (char *) "self",(char *) "visible", NULL
813 };
814
815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
816 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
817 {
818 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
819 if (PyErr_Occurred()) SWIG_fail;
820 }
821 {
822 PyThreadState* __tstate = wxPyBeginAllowThreads();
823 (arg1)->SetVisible(arg2);
824
825 wxPyEndAllowThreads(__tstate);
826 if (PyErr_Occurred()) SWIG_fail;
827 }
828 Py_INCREF(Py_None); resultobj = Py_None;
829 return resultobj;
830 fail:
831 return NULL;
832 }
833
834
835 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
836 PyObject *resultobj;
837 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
838 bool result;
839 PyObject * obj0 = 0 ;
840 char *kwnames[] = {
841 (char *) "self", NULL
842 };
843
844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxGDIObject,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
846 {
847 PyThreadState* __tstate = wxPyBeginAllowThreads();
848 result = (bool)(arg1)->IsNull();
849
850 wxPyEndAllowThreads(__tstate);
851 if (PyErr_Occurred()) SWIG_fail;
852 }
853 resultobj = SWIG_PyObj_FromBool((bool)result);
854 return resultobj;
855 fail:
856 return NULL;
857 }
858
859
860 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
861 PyObject *obj;
862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
863 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
864 Py_INCREF(obj);
865 return Py_BuildValue((char *)"");
866 }
867 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
868 PyObject *resultobj;
869 unsigned char arg1 = (unsigned char) 0 ;
870 unsigned char arg2 = (unsigned char) 0 ;
871 unsigned char arg3 = (unsigned char) 0 ;
872 wxColour *result;
873 PyObject * obj0 = 0 ;
874 PyObject * obj1 = 0 ;
875 PyObject * obj2 = 0 ;
876 char *kwnames[] = {
877 (char *) "red",(char *) "green",(char *) "blue", NULL
878 };
879
880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
881 if (obj0) {
882 {
883 arg1 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj0);
884 if (PyErr_Occurred()) SWIG_fail;
885 }
886 }
887 if (obj1) {
888 {
889 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
890 if (PyErr_Occurred()) SWIG_fail;
891 }
892 }
893 if (obj2) {
894 {
895 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
896 if (PyErr_Occurred()) SWIG_fail;
897 }
898 }
899 {
900 PyThreadState* __tstate = wxPyBeginAllowThreads();
901 result = (wxColour *)new wxColour(arg1,arg2,arg3);
902
903 wxPyEndAllowThreads(__tstate);
904 if (PyErr_Occurred()) SWIG_fail;
905 }
906 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
907 return resultobj;
908 fail:
909 return NULL;
910 }
911
912
913 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
914 PyObject *resultobj;
915 wxColour *arg1 = (wxColour *) 0 ;
916 PyObject * obj0 = 0 ;
917 char *kwnames[] = {
918 (char *) "self", NULL
919 };
920
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
923 {
924 PyThreadState* __tstate = wxPyBeginAllowThreads();
925 delete arg1;
926
927 wxPyEndAllowThreads(__tstate);
928 if (PyErr_Occurred()) SWIG_fail;
929 }
930 Py_INCREF(Py_None); resultobj = Py_None;
931 return resultobj;
932 fail:
933 return NULL;
934 }
935
936
937 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
938 PyObject *resultobj;
939 wxString *arg1 = 0 ;
940 wxColour *result;
941 bool temp1 = False ;
942 PyObject * obj0 = 0 ;
943 char *kwnames[] = {
944 (char *) "colorName", NULL
945 };
946
947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
948 {
949 arg1 = wxString_in_helper(obj0);
950 if (arg1 == NULL) SWIG_fail;
951 temp1 = True;
952 }
953 {
954 PyThreadState* __tstate = wxPyBeginAllowThreads();
955 result = (wxColour *)new wxColour((wxString const &)*arg1);
956
957 wxPyEndAllowThreads(__tstate);
958 if (PyErr_Occurred()) SWIG_fail;
959 }
960 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
961 {
962 if (temp1)
963 delete arg1;
964 }
965 return resultobj;
966 fail:
967 {
968 if (temp1)
969 delete arg1;
970 }
971 return NULL;
972 }
973
974
975 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
976 PyObject *resultobj;
977 unsigned long arg1 ;
978 wxColour *result;
979 PyObject * obj0 = 0 ;
980 char *kwnames[] = {
981 (char *) "colRGB", NULL
982 };
983
984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
985 {
986 arg1 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj0);
987 if (PyErr_Occurred()) SWIG_fail;
988 }
989 {
990 PyThreadState* __tstate = wxPyBeginAllowThreads();
991 result = (wxColour *)new wxColour(arg1);
992
993 wxPyEndAllowThreads(__tstate);
994 if (PyErr_Occurred()) SWIG_fail;
995 }
996 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 1);
997 return resultobj;
998 fail:
999 return NULL;
1000 }
1001
1002
1003 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1004 PyObject *resultobj;
1005 wxColour *arg1 = (wxColour *) 0 ;
1006 unsigned char result;
1007 PyObject * obj0 = 0 ;
1008 char *kwnames[] = {
1009 (char *) "self", NULL
1010 };
1011
1012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1014 {
1015 PyThreadState* __tstate = wxPyBeginAllowThreads();
1016 result = (unsigned char)(arg1)->Red();
1017
1018 wxPyEndAllowThreads(__tstate);
1019 if (PyErr_Occurred()) SWIG_fail;
1020 }
1021 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1022 return resultobj;
1023 fail:
1024 return NULL;
1025 }
1026
1027
1028 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1029 PyObject *resultobj;
1030 wxColour *arg1 = (wxColour *) 0 ;
1031 unsigned char result;
1032 PyObject * obj0 = 0 ;
1033 char *kwnames[] = {
1034 (char *) "self", NULL
1035 };
1036
1037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1038 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1039 {
1040 PyThreadState* __tstate = wxPyBeginAllowThreads();
1041 result = (unsigned char)(arg1)->Green();
1042
1043 wxPyEndAllowThreads(__tstate);
1044 if (PyErr_Occurred()) SWIG_fail;
1045 }
1046 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1047 return resultobj;
1048 fail:
1049 return NULL;
1050 }
1051
1052
1053 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1054 PyObject *resultobj;
1055 wxColour *arg1 = (wxColour *) 0 ;
1056 unsigned char result;
1057 PyObject * obj0 = 0 ;
1058 char *kwnames[] = {
1059 (char *) "self", NULL
1060 };
1061
1062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1063 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1064 {
1065 PyThreadState* __tstate = wxPyBeginAllowThreads();
1066 result = (unsigned char)(arg1)->Blue();
1067
1068 wxPyEndAllowThreads(__tstate);
1069 if (PyErr_Occurred()) SWIG_fail;
1070 }
1071 resultobj = SWIG_PyObj_FromUnsignedChar((unsigned char)result);
1072 return resultobj;
1073 fail:
1074 return NULL;
1075 }
1076
1077
1078 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1079 PyObject *resultobj;
1080 wxColour *arg1 = (wxColour *) 0 ;
1081 bool result;
1082 PyObject * obj0 = 0 ;
1083 char *kwnames[] = {
1084 (char *) "self", NULL
1085 };
1086
1087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1088 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1089 {
1090 PyThreadState* __tstate = wxPyBeginAllowThreads();
1091 result = (bool)(arg1)->Ok();
1092
1093 wxPyEndAllowThreads(__tstate);
1094 if (PyErr_Occurred()) SWIG_fail;
1095 }
1096 resultobj = SWIG_PyObj_FromBool((bool)result);
1097 return resultobj;
1098 fail:
1099 return NULL;
1100 }
1101
1102
1103 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1104 PyObject *resultobj;
1105 wxColour *arg1 = (wxColour *) 0 ;
1106 unsigned char arg2 ;
1107 unsigned char arg3 ;
1108 unsigned char arg4 ;
1109 PyObject * obj0 = 0 ;
1110 PyObject * obj1 = 0 ;
1111 PyObject * obj2 = 0 ;
1112 PyObject * obj3 = 0 ;
1113 char *kwnames[] = {
1114 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1115 };
1116
1117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1119 {
1120 arg2 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj1);
1121 if (PyErr_Occurred()) SWIG_fail;
1122 }
1123 {
1124 arg3 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj2);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
1127 {
1128 arg4 = (unsigned char) SWIG_PyObj_AsUnsignedChar(obj3);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 }
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 (arg1)->Set(arg2,arg3,arg4);
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 Py_INCREF(Py_None); resultobj = Py_None;
1139 return resultobj;
1140 fail:
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxColour *arg1 = (wxColour *) 0 ;
1148 unsigned long arg2 ;
1149 PyObject * obj0 = 0 ;
1150 PyObject * obj1 = 0 ;
1151 char *kwnames[] = {
1152 (char *) "self",(char *) "colRGB", NULL
1153 };
1154
1155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1156 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1157 {
1158 arg2 = (unsigned long) SWIG_PyObj_AsUnsignedLong(obj1);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 }
1161 {
1162 PyThreadState* __tstate = wxPyBeginAllowThreads();
1163 (arg1)->Set(arg2);
1164
1165 wxPyEndAllowThreads(__tstate);
1166 if (PyErr_Occurred()) SWIG_fail;
1167 }
1168 Py_INCREF(Py_None); resultobj = Py_None;
1169 return resultobj;
1170 fail:
1171 return NULL;
1172 }
1173
1174
1175 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1176 PyObject *resultobj;
1177 wxColour *arg1 = (wxColour *) 0 ;
1178 wxColour *arg2 = 0 ;
1179 bool result;
1180 wxColour temp2 ;
1181 PyObject * obj0 = 0 ;
1182 PyObject * obj1 = 0 ;
1183 char *kwnames[] = {
1184 (char *) "self",(char *) "colour", NULL
1185 };
1186
1187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1188 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1189 {
1190 arg2 = &temp2;
1191 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1192 }
1193 {
1194 PyThreadState* __tstate = wxPyBeginAllowThreads();
1195 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1196
1197 wxPyEndAllowThreads(__tstate);
1198 if (PyErr_Occurred()) SWIG_fail;
1199 }
1200 resultobj = SWIG_PyObj_FromBool((bool)result);
1201 return resultobj;
1202 fail:
1203 return NULL;
1204 }
1205
1206
1207 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1208 PyObject *resultobj;
1209 wxColour *arg1 = (wxColour *) 0 ;
1210 wxColour *arg2 = 0 ;
1211 bool result;
1212 wxColour temp2 ;
1213 PyObject * obj0 = 0 ;
1214 PyObject * obj1 = 0 ;
1215 char *kwnames[] = {
1216 (char *) "self",(char *) "colour", NULL
1217 };
1218
1219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1220 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1221 {
1222 arg2 = &temp2;
1223 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1224 }
1225 {
1226 PyThreadState* __tstate = wxPyBeginAllowThreads();
1227 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1228
1229 wxPyEndAllowThreads(__tstate);
1230 if (PyErr_Occurred()) SWIG_fail;
1231 }
1232 resultobj = SWIG_PyObj_FromBool((bool)result);
1233 return resultobj;
1234 fail:
1235 return NULL;
1236 }
1237
1238
1239 static PyObject *_wrap_Colour_InitFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1240 PyObject *resultobj;
1241 wxColour *arg1 = (wxColour *) 0 ;
1242 wxString *arg2 = 0 ;
1243 bool temp2 = False ;
1244 PyObject * obj0 = 0 ;
1245 PyObject * obj1 = 0 ;
1246 char *kwnames[] = {
1247 (char *) "self",(char *) "colourName", NULL
1248 };
1249
1250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_InitFromName",kwnames,&obj0,&obj1)) goto fail;
1251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1252 {
1253 arg2 = wxString_in_helper(obj1);
1254 if (arg2 == NULL) SWIG_fail;
1255 temp2 = True;
1256 }
1257 {
1258 PyThreadState* __tstate = wxPyBeginAllowThreads();
1259 (arg1)->InitFromName((wxString const &)*arg2);
1260
1261 wxPyEndAllowThreads(__tstate);
1262 if (PyErr_Occurred()) SWIG_fail;
1263 }
1264 Py_INCREF(Py_None); resultobj = Py_None;
1265 {
1266 if (temp2)
1267 delete arg2;
1268 }
1269 return resultobj;
1270 fail:
1271 {
1272 if (temp2)
1273 delete arg2;
1274 }
1275 return NULL;
1276 }
1277
1278
1279 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1280 PyObject *resultobj;
1281 wxColour *arg1 = (wxColour *) 0 ;
1282 PyObject *result;
1283 PyObject * obj0 = 0 ;
1284 char *kwnames[] = {
1285 (char *) "self", NULL
1286 };
1287
1288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColour,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1290 {
1291 PyThreadState* __tstate = wxPyBeginAllowThreads();
1292 result = (PyObject *)wxColour_Get(arg1);
1293
1294 wxPyEndAllowThreads(__tstate);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 }
1297 resultobj = result;
1298 return resultobj;
1299 fail:
1300 return NULL;
1301 }
1302
1303
1304 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1305 PyObject *obj;
1306 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1307 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1308 Py_INCREF(obj);
1309 return Py_BuildValue((char *)"");
1310 }
1311 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1312 PyObject *resultobj;
1313 int arg1 ;
1314 unsigned char *arg2 = (unsigned char *) 0 ;
1315 unsigned char *arg3 = (unsigned char *) 0 ;
1316 unsigned char *arg4 = (unsigned char *) 0 ;
1317 wxPalette *result;
1318 PyObject * obj0 = 0 ;
1319 PyObject * obj1 = 0 ;
1320 PyObject * obj2 = 0 ;
1321 PyObject * obj3 = 0 ;
1322 char *kwnames[] = {
1323 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1324 };
1325
1326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1327 {
1328 arg1 = (int) SWIG_PyObj_AsInt(obj0);
1329 if (PyErr_Occurred()) SWIG_fail;
1330 }
1331 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1332 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1333 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_unsigned_char,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1334 {
1335 PyThreadState* __tstate = wxPyBeginAllowThreads();
1336 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1337
1338 wxPyEndAllowThreads(__tstate);
1339 if (PyErr_Occurred()) SWIG_fail;
1340 }
1341 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPalette, 1);
1342 return resultobj;
1343 fail:
1344 return NULL;
1345 }
1346
1347
1348 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject *resultobj;
1350 wxPalette *arg1 = (wxPalette *) 0 ;
1351 PyObject * obj0 = 0 ;
1352 char *kwnames[] = {
1353 (char *) "self", NULL
1354 };
1355
1356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1357 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1358 {
1359 PyThreadState* __tstate = wxPyBeginAllowThreads();
1360 delete arg1;
1361
1362 wxPyEndAllowThreads(__tstate);
1363 if (PyErr_Occurred()) SWIG_fail;
1364 }
1365 Py_INCREF(Py_None); resultobj = Py_None;
1366 return resultobj;
1367 fail:
1368 return NULL;
1369 }
1370
1371
1372 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1373 PyObject *resultobj;
1374 wxPalette *arg1 = (wxPalette *) 0 ;
1375 byte arg2 ;
1376 byte arg3 ;
1377 byte arg4 ;
1378 int result;
1379 PyObject * obj0 = 0 ;
1380 PyObject * obj1 = 0 ;
1381 PyObject * obj2 = 0 ;
1382 PyObject * obj3 = 0 ;
1383 char *kwnames[] = {
1384 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1385 };
1386
1387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1389 {
1390 arg2 = (byte) SWIG_PyObj_AsUnsignedChar(obj1);
1391 if (PyErr_Occurred()) SWIG_fail;
1392 }
1393 {
1394 arg3 = (byte) SWIG_PyObj_AsUnsignedChar(obj2);
1395 if (PyErr_Occurred()) SWIG_fail;
1396 }
1397 {
1398 arg4 = (byte) SWIG_PyObj_AsUnsignedChar(obj3);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 {
1402 PyThreadState* __tstate = wxPyBeginAllowThreads();
1403 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1404
1405 wxPyEndAllowThreads(__tstate);
1406 if (PyErr_Occurred()) SWIG_fail;
1407 }
1408 resultobj = SWIG_PyObj_FromInt((int)result);
1409 return resultobj;
1410 fail:
1411 return NULL;
1412 }
1413
1414
1415 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1416 PyObject *resultobj;
1417 wxPalette *arg1 = (wxPalette *) 0 ;
1418 int arg2 ;
1419 byte *arg3 = (byte *) 0 ;
1420 byte *arg4 = (byte *) 0 ;
1421 byte *arg5 = (byte *) 0 ;
1422 bool result;
1423 byte temp3 ;
1424 byte temp4 ;
1425 byte temp5 ;
1426 PyObject * obj0 = 0 ;
1427 PyObject * obj1 = 0 ;
1428 char *kwnames[] = {
1429 (char *) "self",(char *) "pixel", NULL
1430 };
1431
1432 arg3 = &temp3;
1433 arg4 = &temp4;
1434 arg5 = &temp5;
1435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1436 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1437 {
1438 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 {
1442 PyThreadState* __tstate = wxPyBeginAllowThreads();
1443 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1444
1445 wxPyEndAllowThreads(__tstate);
1446 if (PyErr_Occurred()) SWIG_fail;
1447 }
1448 resultobj = SWIG_PyObj_FromBool((bool)result);
1449 {
1450 PyObject *o = PyInt_FromLong((long) (*arg3));
1451 resultobj = t_output_helper(resultobj,o);
1452 }
1453 {
1454 PyObject *o = PyInt_FromLong((long) (*arg4));
1455 resultobj = t_output_helper(resultobj,o);
1456 }
1457 {
1458 PyObject *o = PyInt_FromLong((long) (*arg5));
1459 resultobj = t_output_helper(resultobj,o);
1460 }
1461 return resultobj;
1462 fail:
1463 return NULL;
1464 }
1465
1466
1467 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1468 PyObject *resultobj;
1469 wxPalette *arg1 = (wxPalette *) 0 ;
1470 bool result;
1471 PyObject * obj0 = 0 ;
1472 char *kwnames[] = {
1473 (char *) "self", NULL
1474 };
1475
1476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1477 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1478 {
1479 PyThreadState* __tstate = wxPyBeginAllowThreads();
1480 result = (bool)(arg1)->Ok();
1481
1482 wxPyEndAllowThreads(__tstate);
1483 if (PyErr_Occurred()) SWIG_fail;
1484 }
1485 resultobj = SWIG_PyObj_FromBool((bool)result);
1486 return resultobj;
1487 fail:
1488 return NULL;
1489 }
1490
1491
1492 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1493 PyObject *obj;
1494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1495 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1496 Py_INCREF(obj);
1497 return Py_BuildValue((char *)"");
1498 }
1499 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 wxColour *arg1 = 0 ;
1502 int arg2 = (int) 1 ;
1503 int arg3 = (int) wxSOLID ;
1504 wxPen *result;
1505 wxColour temp1 ;
1506 PyObject * obj0 = 0 ;
1507 PyObject * obj1 = 0 ;
1508 PyObject * obj2 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "colour",(char *) "width",(char *) "style", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1514 {
1515 arg1 = &temp1;
1516 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1517 }
1518 if (obj1) {
1519 {
1520 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1521 if (PyErr_Occurred()) SWIG_fail;
1522 }
1523 }
1524 if (obj2) {
1525 {
1526 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1527 if (PyErr_Occurred()) SWIG_fail;
1528 }
1529 }
1530 {
1531 PyThreadState* __tstate = wxPyBeginAllowThreads();
1532 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1533
1534 wxPyEndAllowThreads(__tstate);
1535 if (PyErr_Occurred()) SWIG_fail;
1536 }
1537 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 1);
1538 return resultobj;
1539 fail:
1540 return NULL;
1541 }
1542
1543
1544 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1545 PyObject *resultobj;
1546 wxPen *arg1 = (wxPen *) 0 ;
1547 PyObject * obj0 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "self", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1554 {
1555 PyThreadState* __tstate = wxPyBeginAllowThreads();
1556 delete arg1;
1557
1558 wxPyEndAllowThreads(__tstate);
1559 if (PyErr_Occurred()) SWIG_fail;
1560 }
1561 Py_INCREF(Py_None); resultobj = Py_None;
1562 return resultobj;
1563 fail:
1564 return NULL;
1565 }
1566
1567
1568 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1569 PyObject *resultobj;
1570 wxPen *arg1 = (wxPen *) 0 ;
1571 int result;
1572 PyObject * obj0 = 0 ;
1573 char *kwnames[] = {
1574 (char *) "self", NULL
1575 };
1576
1577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1578 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1579 {
1580 PyThreadState* __tstate = wxPyBeginAllowThreads();
1581 result = (int)(arg1)->GetCap();
1582
1583 wxPyEndAllowThreads(__tstate);
1584 if (PyErr_Occurred()) SWIG_fail;
1585 }
1586 resultobj = SWIG_PyObj_FromInt((int)result);
1587 return resultobj;
1588 fail:
1589 return NULL;
1590 }
1591
1592
1593 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1594 PyObject *resultobj;
1595 wxPen *arg1 = (wxPen *) 0 ;
1596 wxColour result;
1597 PyObject * obj0 = 0 ;
1598 char *kwnames[] = {
1599 (char *) "self", NULL
1600 };
1601
1602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1603 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1604 {
1605 PyThreadState* __tstate = wxPyBeginAllowThreads();
1606 result = (arg1)->GetColour();
1607
1608 wxPyEndAllowThreads(__tstate);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 }
1611 {
1612 wxColour * resultptr;
1613 resultptr = new wxColour((wxColour &) result);
1614 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
1615 }
1616 return resultobj;
1617 fail:
1618 return NULL;
1619 }
1620
1621
1622 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1623 PyObject *resultobj;
1624 wxPen *arg1 = (wxPen *) 0 ;
1625 int result;
1626 PyObject * obj0 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self", NULL
1629 };
1630
1631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1632 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1633 {
1634 PyThreadState* __tstate = wxPyBeginAllowThreads();
1635 result = (int)(arg1)->GetJoin();
1636
1637 wxPyEndAllowThreads(__tstate);
1638 if (PyErr_Occurred()) SWIG_fail;
1639 }
1640 resultobj = SWIG_PyObj_FromInt((int)result);
1641 return resultobj;
1642 fail:
1643 return NULL;
1644 }
1645
1646
1647 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1648 PyObject *resultobj;
1649 wxPen *arg1 = (wxPen *) 0 ;
1650 int result;
1651 PyObject * obj0 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self", NULL
1654 };
1655
1656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1657 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1658 {
1659 PyThreadState* __tstate = wxPyBeginAllowThreads();
1660 result = (int)(arg1)->GetStyle();
1661
1662 wxPyEndAllowThreads(__tstate);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 }
1665 resultobj = SWIG_PyObj_FromInt((int)result);
1666 return resultobj;
1667 fail:
1668 return NULL;
1669 }
1670
1671
1672 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1673 PyObject *resultobj;
1674 wxPen *arg1 = (wxPen *) 0 ;
1675 int result;
1676 PyObject * obj0 = 0 ;
1677 char *kwnames[] = {
1678 (char *) "self", NULL
1679 };
1680
1681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1682 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1683 {
1684 PyThreadState* __tstate = wxPyBeginAllowThreads();
1685 result = (int)(arg1)->GetWidth();
1686
1687 wxPyEndAllowThreads(__tstate);
1688 if (PyErr_Occurred()) SWIG_fail;
1689 }
1690 resultobj = SWIG_PyObj_FromInt((int)result);
1691 return resultobj;
1692 fail:
1693 return NULL;
1694 }
1695
1696
1697 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1698 PyObject *resultobj;
1699 wxPen *arg1 = (wxPen *) 0 ;
1700 bool result;
1701 PyObject * obj0 = 0 ;
1702 char *kwnames[] = {
1703 (char *) "self", NULL
1704 };
1705
1706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1707 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1708 {
1709 PyThreadState* __tstate = wxPyBeginAllowThreads();
1710 result = (bool)(arg1)->Ok();
1711
1712 wxPyEndAllowThreads(__tstate);
1713 if (PyErr_Occurred()) SWIG_fail;
1714 }
1715 resultobj = SWIG_PyObj_FromBool((bool)result);
1716 return resultobj;
1717 fail:
1718 return NULL;
1719 }
1720
1721
1722 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject *resultobj;
1724 wxPen *arg1 = (wxPen *) 0 ;
1725 int arg2 ;
1726 PyObject * obj0 = 0 ;
1727 PyObject * obj1 = 0 ;
1728 char *kwnames[] = {
1729 (char *) "self",(char *) "cap_style", NULL
1730 };
1731
1732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1734 {
1735 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 {
1739 PyThreadState* __tstate = wxPyBeginAllowThreads();
1740 (arg1)->SetCap(arg2);
1741
1742 wxPyEndAllowThreads(__tstate);
1743 if (PyErr_Occurred()) SWIG_fail;
1744 }
1745 Py_INCREF(Py_None); resultobj = Py_None;
1746 return resultobj;
1747 fail:
1748 return NULL;
1749 }
1750
1751
1752 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1753 PyObject *resultobj;
1754 wxPen *arg1 = (wxPen *) 0 ;
1755 wxColour *arg2 = 0 ;
1756 wxColour temp2 ;
1757 PyObject * obj0 = 0 ;
1758 PyObject * obj1 = 0 ;
1759 char *kwnames[] = {
1760 (char *) "self",(char *) "colour", NULL
1761 };
1762
1763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1764 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1765 {
1766 arg2 = &temp2;
1767 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1768 }
1769 {
1770 PyThreadState* __tstate = wxPyBeginAllowThreads();
1771 (arg1)->SetColour(*arg2);
1772
1773 wxPyEndAllowThreads(__tstate);
1774 if (PyErr_Occurred()) SWIG_fail;
1775 }
1776 Py_INCREF(Py_None); resultobj = Py_None;
1777 return resultobj;
1778 fail:
1779 return NULL;
1780 }
1781
1782
1783 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1784 PyObject *resultobj;
1785 wxPen *arg1 = (wxPen *) 0 ;
1786 int arg2 ;
1787 PyObject * obj0 = 0 ;
1788 PyObject * obj1 = 0 ;
1789 char *kwnames[] = {
1790 (char *) "self",(char *) "join_style", NULL
1791 };
1792
1793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
1794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1795 {
1796 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1797 if (PyErr_Occurred()) SWIG_fail;
1798 }
1799 {
1800 PyThreadState* __tstate = wxPyBeginAllowThreads();
1801 (arg1)->SetJoin(arg2);
1802
1803 wxPyEndAllowThreads(__tstate);
1804 if (PyErr_Occurred()) SWIG_fail;
1805 }
1806 Py_INCREF(Py_None); resultobj = Py_None;
1807 return resultobj;
1808 fail:
1809 return NULL;
1810 }
1811
1812
1813 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1814 PyObject *resultobj;
1815 wxPen *arg1 = (wxPen *) 0 ;
1816 int arg2 ;
1817 PyObject * obj0 = 0 ;
1818 PyObject * obj1 = 0 ;
1819 char *kwnames[] = {
1820 (char *) "self",(char *) "style", NULL
1821 };
1822
1823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
1824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1825 {
1826 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1827 if (PyErr_Occurred()) SWIG_fail;
1828 }
1829 {
1830 PyThreadState* __tstate = wxPyBeginAllowThreads();
1831 (arg1)->SetStyle(arg2);
1832
1833 wxPyEndAllowThreads(__tstate);
1834 if (PyErr_Occurred()) SWIG_fail;
1835 }
1836 Py_INCREF(Py_None); resultobj = Py_None;
1837 return resultobj;
1838 fail:
1839 return NULL;
1840 }
1841
1842
1843 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1844 PyObject *resultobj;
1845 wxPen *arg1 = (wxPen *) 0 ;
1846 int arg2 ;
1847 PyObject * obj0 = 0 ;
1848 PyObject * obj1 = 0 ;
1849 char *kwnames[] = {
1850 (char *) "self",(char *) "width", NULL
1851 };
1852
1853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
1854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1855 {
1856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1857 if (PyErr_Occurred()) SWIG_fail;
1858 }
1859 {
1860 PyThreadState* __tstate = wxPyBeginAllowThreads();
1861 (arg1)->SetWidth(arg2);
1862
1863 wxPyEndAllowThreads(__tstate);
1864 if (PyErr_Occurred()) SWIG_fail;
1865 }
1866 Py_INCREF(Py_None); resultobj = Py_None;
1867 return resultobj;
1868 fail:
1869 return NULL;
1870 }
1871
1872
1873 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1874 PyObject *resultobj;
1875 wxPen *arg1 = (wxPen *) 0 ;
1876 int arg2 ;
1877 wxDash *arg3 = (wxDash *) 0 ;
1878 PyObject * obj0 = 0 ;
1879 PyObject * obj1 = 0 ;
1880 char *kwnames[] = {
1881 (char *) "self",(char *) "dashes", NULL
1882 };
1883
1884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
1885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1886 {
1887 arg2 = PyList_Size(obj1);
1888 arg3 = (wxDash*)byte_LIST_helper(obj1);
1889 if (arg3 == NULL) SWIG_fail;
1890 }
1891 {
1892 PyThreadState* __tstate = wxPyBeginAllowThreads();
1893 (arg1)->SetDashes(arg2,arg3);
1894
1895 wxPyEndAllowThreads(__tstate);
1896 if (PyErr_Occurred()) SWIG_fail;
1897 }
1898 Py_INCREF(Py_None); resultobj = Py_None;
1899 {
1900 if (arg3) delete [] arg3;
1901 }
1902 return resultobj;
1903 fail:
1904 {
1905 if (arg3) delete [] arg3;
1906 }
1907 return NULL;
1908 }
1909
1910
1911 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
1912 PyObject *resultobj;
1913 wxPen *arg1 = (wxPen *) 0 ;
1914 PyObject *result;
1915 PyObject * obj0 = 0 ;
1916 char *kwnames[] = {
1917 (char *) "self", NULL
1918 };
1919
1920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
1921 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1922 {
1923 PyThreadState* __tstate = wxPyBeginAllowThreads();
1924 result = (PyObject *)wxPen_GetDashes(arg1);
1925
1926 wxPyEndAllowThreads(__tstate);
1927 if (PyErr_Occurred()) SWIG_fail;
1928 }
1929 resultobj = result;
1930 return resultobj;
1931 fail:
1932 return NULL;
1933 }
1934
1935
1936 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
1937 PyObject *obj;
1938 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1939 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
1940 Py_INCREF(obj);
1941 return Py_BuildValue((char *)"");
1942 }
1943 static PyObject *_wrap_new_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1944 PyObject *resultobj;
1945 wxColour *arg1 = 0 ;
1946 int arg2 = (int) 1 ;
1947 int arg3 = (int) wxSOLID ;
1948 wxPyPen *result;
1949 wxColour temp1 ;
1950 PyObject * obj0 = 0 ;
1951 PyObject * obj1 = 0 ;
1952 PyObject * obj2 = 0 ;
1953 char *kwnames[] = {
1954 (char *) "colour",(char *) "width",(char *) "style", NULL
1955 };
1956
1957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_PyPen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1958 {
1959 arg1 = &temp1;
1960 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1961 }
1962 if (obj1) {
1963 {
1964 arg2 = (int) SWIG_PyObj_AsInt(obj1);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 }
1967 }
1968 if (obj2) {
1969 {
1970 arg3 = (int) SWIG_PyObj_AsInt(obj2);
1971 if (PyErr_Occurred()) SWIG_fail;
1972 }
1973 }
1974 {
1975 PyThreadState* __tstate = wxPyBeginAllowThreads();
1976 result = (wxPyPen *)new wxPyPen(*arg1,arg2,arg3);
1977
1978 wxPyEndAllowThreads(__tstate);
1979 if (PyErr_Occurred()) SWIG_fail;
1980 }
1981 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyPen, 1);
1982 return resultobj;
1983 fail:
1984 return NULL;
1985 }
1986
1987
1988 static PyObject *_wrap_delete_PyPen(PyObject *self, PyObject *args, PyObject *kwargs) {
1989 PyObject *resultobj;
1990 wxPyPen *arg1 = (wxPyPen *) 0 ;
1991 PyObject * obj0 = 0 ;
1992 char *kwnames[] = {
1993 (char *) "self", NULL
1994 };
1995
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_PyPen",kwnames,&obj0)) goto fail;
1997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
1998 {
1999 PyThreadState* __tstate = wxPyBeginAllowThreads();
2000 delete arg1;
2001
2002 wxPyEndAllowThreads(__tstate);
2003 if (PyErr_Occurred()) SWIG_fail;
2004 }
2005 Py_INCREF(Py_None); resultobj = Py_None;
2006 return resultobj;
2007 fail:
2008 return NULL;
2009 }
2010
2011
2012 static PyObject *_wrap_PyPen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2013 PyObject *resultobj;
2014 wxPyPen *arg1 = (wxPyPen *) 0 ;
2015 int arg2 ;
2016 wxDash *arg3 = (wxDash *) 0 ;
2017 PyObject * obj0 = 0 ;
2018 PyObject * obj1 = 0 ;
2019 char *kwnames[] = {
2020 (char *) "self",(char *) "dashes", NULL
2021 };
2022
2023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyPen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2024 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2025 {
2026 arg2 = PyList_Size(obj1);
2027 arg3 = (wxDash*)byte_LIST_helper(obj1);
2028 if (arg3 == NULL) SWIG_fail;
2029 }
2030 {
2031 PyThreadState* __tstate = wxPyBeginAllowThreads();
2032 (arg1)->SetDashes(arg2,arg3);
2033
2034 wxPyEndAllowThreads(__tstate);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 }
2037 Py_INCREF(Py_None); resultobj = Py_None;
2038 {
2039 if (arg3) delete [] arg3;
2040 }
2041 return resultobj;
2042 fail:
2043 {
2044 if (arg3) delete [] arg3;
2045 }
2046 return NULL;
2047 }
2048
2049
2050 static PyObject * PyPen_swigregister(PyObject *self, PyObject *args) {
2051 PyObject *obj;
2052 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2053 SWIG_TypeClientData(SWIGTYPE_p_wxPyPen, obj);
2054 Py_INCREF(obj);
2055 return Py_BuildValue((char *)"");
2056 }
2057 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2058 PyObject *resultobj;
2059 wxColour *arg1 = 0 ;
2060 int arg2 = (int) wxSOLID ;
2061 wxBrush *result;
2062 wxColour temp1 ;
2063 PyObject * obj0 = 0 ;
2064 PyObject * obj1 = 0 ;
2065 char *kwnames[] = {
2066 (char *) "colour",(char *) "style", NULL
2067 };
2068
2069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2070 {
2071 arg1 = &temp1;
2072 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2073 }
2074 if (obj1) {
2075 {
2076 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 }
2079 }
2080 {
2081 PyThreadState* __tstate = wxPyBeginAllowThreads();
2082 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2083
2084 wxPyEndAllowThreads(__tstate);
2085 if (PyErr_Occurred()) SWIG_fail;
2086 }
2087 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 1);
2088 return resultobj;
2089 fail:
2090 return NULL;
2091 }
2092
2093
2094 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2095 PyObject *resultobj;
2096 wxBrush *arg1 = (wxBrush *) 0 ;
2097 PyObject * obj0 = 0 ;
2098 char *kwnames[] = {
2099 (char *) "self", NULL
2100 };
2101
2102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2104 {
2105 PyThreadState* __tstate = wxPyBeginAllowThreads();
2106 delete arg1;
2107
2108 wxPyEndAllowThreads(__tstate);
2109 if (PyErr_Occurred()) SWIG_fail;
2110 }
2111 Py_INCREF(Py_None); resultobj = Py_None;
2112 return resultobj;
2113 fail:
2114 return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 wxBrush *arg1 = (wxBrush *) 0 ;
2121 wxColour *arg2 = 0 ;
2122 wxColour temp2 ;
2123 PyObject * obj0 = 0 ;
2124 PyObject * obj1 = 0 ;
2125 char *kwnames[] = {
2126 (char *) "self",(char *) "col", NULL
2127 };
2128
2129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2130 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2131 {
2132 arg2 = &temp2;
2133 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2134 }
2135 {
2136 PyThreadState* __tstate = wxPyBeginAllowThreads();
2137 (arg1)->SetColour((wxColour const &)*arg2);
2138
2139 wxPyEndAllowThreads(__tstate);
2140 if (PyErr_Occurred()) SWIG_fail;
2141 }
2142 Py_INCREF(Py_None); resultobj = Py_None;
2143 return resultobj;
2144 fail:
2145 return NULL;
2146 }
2147
2148
2149 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2150 PyObject *resultobj;
2151 wxBrush *arg1 = (wxBrush *) 0 ;
2152 int arg2 ;
2153 PyObject * obj0 = 0 ;
2154 PyObject * obj1 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "self",(char *) "style", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2160 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2161 {
2162 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2163 if (PyErr_Occurred()) SWIG_fail;
2164 }
2165 {
2166 PyThreadState* __tstate = wxPyBeginAllowThreads();
2167 (arg1)->SetStyle(arg2);
2168
2169 wxPyEndAllowThreads(__tstate);
2170 if (PyErr_Occurred()) SWIG_fail;
2171 }
2172 Py_INCREF(Py_None); resultobj = Py_None;
2173 return resultobj;
2174 fail:
2175 return NULL;
2176 }
2177
2178
2179 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2180 PyObject *resultobj;
2181 wxBrush *arg1 = (wxBrush *) 0 ;
2182 wxBitmap *arg2 = 0 ;
2183 PyObject * obj0 = 0 ;
2184 PyObject * obj1 = 0 ;
2185 char *kwnames[] = {
2186 (char *) "self",(char *) "stipple", NULL
2187 };
2188
2189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2191 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2192 if (arg2 == NULL) {
2193 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2194 }
2195 {
2196 PyThreadState* __tstate = wxPyBeginAllowThreads();
2197 (arg1)->SetStipple((wxBitmap const &)*arg2);
2198
2199 wxPyEndAllowThreads(__tstate);
2200 if (PyErr_Occurred()) SWIG_fail;
2201 }
2202 Py_INCREF(Py_None); resultobj = Py_None;
2203 return resultobj;
2204 fail:
2205 return NULL;
2206 }
2207
2208
2209 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2210 PyObject *resultobj;
2211 wxBrush *arg1 = (wxBrush *) 0 ;
2212 wxColour result;
2213 PyObject * obj0 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self", NULL
2216 };
2217
2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2219 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2220 {
2221 PyThreadState* __tstate = wxPyBeginAllowThreads();
2222 result = ((wxBrush const *)arg1)->GetColour();
2223
2224 wxPyEndAllowThreads(__tstate);
2225 if (PyErr_Occurred()) SWIG_fail;
2226 }
2227 {
2228 wxColour * resultptr;
2229 resultptr = new wxColour((wxColour &) result);
2230 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
2231 }
2232 return resultobj;
2233 fail:
2234 return NULL;
2235 }
2236
2237
2238 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2239 PyObject *resultobj;
2240 wxBrush *arg1 = (wxBrush *) 0 ;
2241 int result;
2242 PyObject * obj0 = 0 ;
2243 char *kwnames[] = {
2244 (char *) "self", NULL
2245 };
2246
2247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2248 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2249 {
2250 PyThreadState* __tstate = wxPyBeginAllowThreads();
2251 result = (int)((wxBrush const *)arg1)->GetStyle();
2252
2253 wxPyEndAllowThreads(__tstate);
2254 if (PyErr_Occurred()) SWIG_fail;
2255 }
2256 resultobj = SWIG_PyObj_FromInt((int)result);
2257 return resultobj;
2258 fail:
2259 return NULL;
2260 }
2261
2262
2263 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2264 PyObject *resultobj;
2265 wxBrush *arg1 = (wxBrush *) 0 ;
2266 wxBitmap *result;
2267 PyObject * obj0 = 0 ;
2268 char *kwnames[] = {
2269 (char *) "self", NULL
2270 };
2271
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2273 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2274 {
2275 PyThreadState* __tstate = wxPyBeginAllowThreads();
2276 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2277
2278 wxPyEndAllowThreads(__tstate);
2279 if (PyErr_Occurred()) SWIG_fail;
2280 }
2281 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 0);
2282 return resultobj;
2283 fail:
2284 return NULL;
2285 }
2286
2287
2288 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2289 PyObject *resultobj;
2290 wxBrush *arg1 = (wxBrush *) 0 ;
2291 bool result;
2292 PyObject * obj0 = 0 ;
2293 char *kwnames[] = {
2294 (char *) "self", NULL
2295 };
2296
2297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2298 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2299 {
2300 PyThreadState* __tstate = wxPyBeginAllowThreads();
2301 result = (bool)(arg1)->Ok();
2302
2303 wxPyEndAllowThreads(__tstate);
2304 if (PyErr_Occurred()) SWIG_fail;
2305 }
2306 resultobj = SWIG_PyObj_FromBool((bool)result);
2307 return resultobj;
2308 fail:
2309 return NULL;
2310 }
2311
2312
2313 static PyObject *_wrap_Brush_GetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2314 PyObject *resultobj;
2315 wxBrush *arg1 = (wxBrush *) 0 ;
2316 short result;
2317 PyObject * obj0 = 0 ;
2318 char *kwnames[] = {
2319 (char *) "self", NULL
2320 };
2321
2322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetMacTheme",kwnames,&obj0)) goto fail;
2323 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2324 {
2325 PyThreadState* __tstate = wxPyBeginAllowThreads();
2326 result = (short)(arg1)->GetMacTheme();
2327
2328 wxPyEndAllowThreads(__tstate);
2329 if (PyErr_Occurred()) SWIG_fail;
2330 }
2331 resultobj = SWIG_PyObj_FromShort((short)result);
2332 return resultobj;
2333 fail:
2334 return NULL;
2335 }
2336
2337
2338 static PyObject *_wrap_Brush_SetMacTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2339 PyObject *resultobj;
2340 wxBrush *arg1 = (wxBrush *) 0 ;
2341 short arg2 ;
2342 PyObject * obj0 = 0 ;
2343 PyObject * obj1 = 0 ;
2344 char *kwnames[] = {
2345 (char *) "self",(char *) "macThemeBrush", NULL
2346 };
2347
2348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetMacTheme",kwnames,&obj0,&obj1)) goto fail;
2349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2350 {
2351 arg2 = (short) SWIG_PyObj_AsShort(obj1);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 {
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 (arg1)->SetMacTheme(arg2);
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 Py_INCREF(Py_None); resultobj = Py_None;
2362 return resultobj;
2363 fail:
2364 return NULL;
2365 }
2366
2367
2368 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2369 PyObject *obj;
2370 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2371 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2372 Py_INCREF(obj);
2373 return Py_BuildValue((char *)"");
2374 }
2375 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2376 PyObject *resultobj;
2377 wxString *arg1 = 0 ;
2378 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2379 wxBitmap *result;
2380 bool temp1 = False ;
2381 PyObject * obj0 = 0 ;
2382 PyObject * obj1 = 0 ;
2383 char *kwnames[] = {
2384 (char *) "name",(char *) "type", NULL
2385 };
2386
2387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2388 {
2389 arg1 = wxString_in_helper(obj0);
2390 if (arg1 == NULL) SWIG_fail;
2391 temp1 = True;
2392 }
2393 if (obj1) {
2394 {
2395 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
2396 if (PyErr_Occurred()) SWIG_fail;
2397 }
2398 }
2399 {
2400 PyThreadState* __tstate = wxPyBeginAllowThreads();
2401 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2402
2403 wxPyEndAllowThreads(__tstate);
2404 if (PyErr_Occurred()) SWIG_fail;
2405 }
2406 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2407 {
2408 if (temp1)
2409 delete arg1;
2410 }
2411 return resultobj;
2412 fail:
2413 {
2414 if (temp1)
2415 delete arg1;
2416 }
2417 return NULL;
2418 }
2419
2420
2421 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2422 PyObject *resultobj;
2423 wxBitmap *arg1 = (wxBitmap *) 0 ;
2424 PyObject * obj0 = 0 ;
2425 char *kwnames[] = {
2426 (char *) "self", NULL
2427 };
2428
2429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2430 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2431 {
2432 PyThreadState* __tstate = wxPyBeginAllowThreads();
2433 delete arg1;
2434
2435 wxPyEndAllowThreads(__tstate);
2436 if (PyErr_Occurred()) SWIG_fail;
2437 }
2438 Py_INCREF(Py_None); resultobj = Py_None;
2439 return resultobj;
2440 fail:
2441 return NULL;
2442 }
2443
2444
2445 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2446 PyObject *resultobj;
2447 int arg1 ;
2448 int arg2 ;
2449 int arg3 = (int) -1 ;
2450 wxBitmap *result;
2451 PyObject * obj0 = 0 ;
2452 PyObject * obj1 = 0 ;
2453 PyObject * obj2 = 0 ;
2454 char *kwnames[] = {
2455 (char *) "width",(char *) "height",(char *) "depth", NULL
2456 };
2457
2458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2459 {
2460 arg1 = (int) SWIG_PyObj_AsInt(obj0);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 {
2464 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2465 if (PyErr_Occurred()) SWIG_fail;
2466 }
2467 if (obj2) {
2468 {
2469 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 }
2473 {
2474 PyThreadState* __tstate = wxPyBeginAllowThreads();
2475 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2476
2477 wxPyEndAllowThreads(__tstate);
2478 if (PyErr_Occurred()) SWIG_fail;
2479 }
2480 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2481 return resultobj;
2482 fail:
2483 return NULL;
2484 }
2485
2486
2487 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2488 PyObject *resultobj;
2489 wxIcon *arg1 = 0 ;
2490 wxBitmap *result;
2491 PyObject * obj0 = 0 ;
2492 char *kwnames[] = {
2493 (char *) "icon", NULL
2494 };
2495
2496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2498 if (arg1 == NULL) {
2499 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2500 }
2501 {
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2504
2505 wxPyEndAllowThreads(__tstate);
2506 if (PyErr_Occurred()) SWIG_fail;
2507 }
2508 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2509 return resultobj;
2510 fail:
2511 return NULL;
2512 }
2513
2514
2515 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2516 PyObject *resultobj;
2517 wxImage *arg1 = 0 ;
2518 int arg2 = (int) -1 ;
2519 wxBitmap *result;
2520 PyObject * obj0 = 0 ;
2521 PyObject * obj1 = 0 ;
2522 char *kwnames[] = {
2523 (char *) "image",(char *) "depth", NULL
2524 };
2525
2526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2527 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2528 if (arg1 == NULL) {
2529 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2530 }
2531 if (obj1) {
2532 {
2533 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2534 if (PyErr_Occurred()) SWIG_fail;
2535 }
2536 }
2537 {
2538 PyThreadState* __tstate = wxPyBeginAllowThreads();
2539 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2540
2541 wxPyEndAllowThreads(__tstate);
2542 if (PyErr_Occurred()) SWIG_fail;
2543 }
2544 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2545 return resultobj;
2546 fail:
2547 return NULL;
2548 }
2549
2550
2551 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2552 PyObject *resultobj;
2553 PyObject *arg1 = (PyObject *) 0 ;
2554 wxBitmap *result;
2555 PyObject * obj0 = 0 ;
2556 char *kwnames[] = {
2557 (char *) "listOfStrings", NULL
2558 };
2559
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2561 arg1 = obj0;
2562 {
2563 PyThreadState* __tstate = wxPyBeginAllowThreads();
2564 result = (wxBitmap *)new_wxBitmap(arg1);
2565
2566 wxPyEndAllowThreads(__tstate);
2567 if (PyErr_Occurred()) SWIG_fail;
2568 }
2569 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2570 return resultobj;
2571 fail:
2572 return NULL;
2573 }
2574
2575
2576 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2577 PyObject *resultobj;
2578 PyObject *arg1 = (PyObject *) 0 ;
2579 int arg2 ;
2580 int arg3 ;
2581 int arg4 = (int) 1 ;
2582 wxBitmap *result;
2583 PyObject * obj0 = 0 ;
2584 PyObject * obj1 = 0 ;
2585 PyObject * obj2 = 0 ;
2586 PyObject * obj3 = 0 ;
2587 char *kwnames[] = {
2588 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2589 };
2590
2591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2592 arg1 = obj0;
2593 {
2594 arg2 = (int) SWIG_PyObj_AsInt(obj1);
2595 if (PyErr_Occurred()) SWIG_fail;
2596 }
2597 {
2598 arg3 = (int) SWIG_PyObj_AsInt(obj2);
2599 if (PyErr_Occurred()) SWIG_fail;
2600 }
2601 if (obj3) {
2602 {
2603 arg4 = (int) SWIG_PyObj_AsInt(obj3);
2604 if (PyErr_Occurred()) SWIG_fail;
2605 }
2606 }
2607 {
2608 PyThreadState* __tstate = wxPyBeginAllowThreads();
2609 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2610
2611 wxPyEndAllowThreads(__tstate);
2612 if (PyErr_Occurred()) SWIG_fail;
2613 }
2614 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBitmap, 1);
2615 return resultobj;
2616 fail:
2617 return NULL;
2618 }
2619
2620
2621 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2622 PyObject *resultobj;
2623 wxBitmap *arg1 = (wxBitmap *) 0 ;
2624 bool result;
2625 PyObject * obj0 = 0 ;
2626 char *kwnames[] = {
2627 (char *) "self", NULL
2628 };
2629
2630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2631 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2632 {
2633 PyThreadState* __tstate = wxPyBeginAllowThreads();
2634 result = (bool)(arg1)->Ok();
2635
2636 wxPyEndAllowThreads(__tstate);
2637 if (PyErr_Occurred()) SWIG_fail;
2638 }
2639 resultobj = SWIG_PyObj_FromBool((bool)result);
2640 return resultobj;
2641 fail:
2642 return NULL;
2643 }
2644
2645
2646 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2647 PyObject *resultobj;
2648 wxBitmap *arg1 = (wxBitmap *) 0 ;
2649 int result;
2650 PyObject * obj0 = 0 ;
2651 char *kwnames[] = {
2652 (char *) "self", NULL
2653 };
2654
2655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2657 {
2658 PyThreadState* __tstate = wxPyBeginAllowThreads();
2659 result = (int)(arg1)->GetWidth();
2660
2661 wxPyEndAllowThreads(__tstate);
2662 if (PyErr_Occurred()) SWIG_fail;
2663 }
2664 resultobj = SWIG_PyObj_FromInt((int)result);
2665 return resultobj;
2666 fail:
2667 return NULL;
2668 }
2669
2670
2671 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2672 PyObject *resultobj;
2673 wxBitmap *arg1 = (wxBitmap *) 0 ;
2674 int result;
2675 PyObject * obj0 = 0 ;
2676 char *kwnames[] = {
2677 (char *) "self", NULL
2678 };
2679
2680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2681 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2682 {
2683 PyThreadState* __tstate = wxPyBeginAllowThreads();
2684 result = (int)(arg1)->GetHeight();
2685
2686 wxPyEndAllowThreads(__tstate);
2687 if (PyErr_Occurred()) SWIG_fail;
2688 }
2689 resultobj = SWIG_PyObj_FromInt((int)result);
2690 return resultobj;
2691 fail:
2692 return NULL;
2693 }
2694
2695
2696 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2697 PyObject *resultobj;
2698 wxBitmap *arg1 = (wxBitmap *) 0 ;
2699 int result;
2700 PyObject * obj0 = 0 ;
2701 char *kwnames[] = {
2702 (char *) "self", NULL
2703 };
2704
2705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2706 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2707 {
2708 PyThreadState* __tstate = wxPyBeginAllowThreads();
2709 result = (int)(arg1)->GetDepth();
2710
2711 wxPyEndAllowThreads(__tstate);
2712 if (PyErr_Occurred()) SWIG_fail;
2713 }
2714 resultobj = SWIG_PyObj_FromInt((int)result);
2715 return resultobj;
2716 fail:
2717 return NULL;
2718 }
2719
2720
2721 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2722 PyObject *resultobj;
2723 wxBitmap *arg1 = (wxBitmap *) 0 ;
2724 SwigValueWrapper< wxImage > result;
2725 PyObject * obj0 = 0 ;
2726 char *kwnames[] = {
2727 (char *) "self", NULL
2728 };
2729
2730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2731 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2732 {
2733 PyThreadState* __tstate = wxPyBeginAllowThreads();
2734 result = ((wxBitmap const *)arg1)->ConvertToImage();
2735
2736 wxPyEndAllowThreads(__tstate);
2737 if (PyErr_Occurred()) SWIG_fail;
2738 }
2739 {
2740 wxImage * resultptr;
2741 resultptr = new wxImage((wxImage &) result);
2742 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxImage, 1);
2743 }
2744 return resultobj;
2745 fail:
2746 return NULL;
2747 }
2748
2749
2750 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2751 PyObject *resultobj;
2752 wxBitmap *arg1 = (wxBitmap *) 0 ;
2753 wxMask *result;
2754 PyObject * obj0 = 0 ;
2755 char *kwnames[] = {
2756 (char *) "self", NULL
2757 };
2758
2759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2760 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2761 {
2762 PyThreadState* __tstate = wxPyBeginAllowThreads();
2763 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2764
2765 wxPyEndAllowThreads(__tstate);
2766 if (PyErr_Occurred()) SWIG_fail;
2767 }
2768 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 0);
2769 return resultobj;
2770 fail:
2771 return NULL;
2772 }
2773
2774
2775 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2776 PyObject *resultobj;
2777 wxBitmap *arg1 = (wxBitmap *) 0 ;
2778 wxMask *arg2 = (wxMask *) 0 ;
2779 PyObject * obj0 = 0 ;
2780 PyObject * obj1 = 0 ;
2781 char *kwnames[] = {
2782 (char *) "self",(char *) "mask", NULL
2783 };
2784
2785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
2786 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2787 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxMask,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2788 {
2789 PyThreadState* __tstate = wxPyBeginAllowThreads();
2790 (arg1)->SetMask(arg2);
2791
2792 wxPyEndAllowThreads(__tstate);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 Py_INCREF(Py_None); resultobj = Py_None;
2796 return resultobj;
2797 fail:
2798 return NULL;
2799 }
2800
2801
2802 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2803 PyObject *resultobj;
2804 wxBitmap *arg1 = (wxBitmap *) 0 ;
2805 wxColour *arg2 = 0 ;
2806 wxColour temp2 ;
2807 PyObject * obj0 = 0 ;
2808 PyObject * obj1 = 0 ;
2809 char *kwnames[] = {
2810 (char *) "self",(char *) "colour", NULL
2811 };
2812
2813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
2814 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2815 {
2816 arg2 = &temp2;
2817 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2818 }
2819 {
2820 PyThreadState* __tstate = wxPyBeginAllowThreads();
2821 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
2822
2823 wxPyEndAllowThreads(__tstate);
2824 if (PyErr_Occurred()) SWIG_fail;
2825 }
2826 Py_INCREF(Py_None); resultobj = Py_None;
2827 return resultobj;
2828 fail:
2829 return NULL;
2830 }
2831
2832
2833 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2834 PyObject *resultobj;
2835 wxBitmap *arg1 = (wxBitmap *) 0 ;
2836 wxRect *arg2 = 0 ;
2837 SwigValueWrapper< wxBitmap > result;
2838 wxRect temp2 ;
2839 PyObject * obj0 = 0 ;
2840 PyObject * obj1 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "self",(char *) "rect", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
2846 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2847 {
2848 arg2 = &temp2;
2849 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
2850 }
2851 {
2852 PyThreadState* __tstate = wxPyBeginAllowThreads();
2853 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
2854
2855 wxPyEndAllowThreads(__tstate);
2856 if (PyErr_Occurred()) SWIG_fail;
2857 }
2858 {
2859 wxBitmap * resultptr;
2860 resultptr = new wxBitmap((wxBitmap &) result);
2861 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
2862 }
2863 return resultobj;
2864 fail:
2865 return NULL;
2866 }
2867
2868
2869 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2870 PyObject *resultobj;
2871 wxBitmap *arg1 = (wxBitmap *) 0 ;
2872 wxString *arg2 = 0 ;
2873 int arg3 ;
2874 wxPalette *arg4 = (wxPalette *) (wxPalette *) NULL ;
2875 bool result;
2876 bool temp2 = False ;
2877 PyObject * obj0 = 0 ;
2878 PyObject * obj1 = 0 ;
2879 PyObject * obj2 = 0 ;
2880 PyObject * obj3 = 0 ;
2881 char *kwnames[] = {
2882 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
2883 };
2884
2885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2886 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2887 {
2888 arg2 = wxString_in_helper(obj1);
2889 if (arg2 == NULL) SWIG_fail;
2890 temp2 = True;
2891 }
2892 {
2893 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2894 if (PyErr_Occurred()) SWIG_fail;
2895 }
2896 if (obj3) {
2897 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2898 }
2899 {
2900 PyThreadState* __tstate = wxPyBeginAllowThreads();
2901 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
2902
2903 wxPyEndAllowThreads(__tstate);
2904 if (PyErr_Occurred()) SWIG_fail;
2905 }
2906 resultobj = SWIG_PyObj_FromBool((bool)result);
2907 {
2908 if (temp2)
2909 delete arg2;
2910 }
2911 return resultobj;
2912 fail:
2913 {
2914 if (temp2)
2915 delete arg2;
2916 }
2917 return NULL;
2918 }
2919
2920
2921 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
2922 PyObject *resultobj;
2923 wxBitmap *arg1 = (wxBitmap *) 0 ;
2924 wxString *arg2 = 0 ;
2925 int arg3 ;
2926 bool result;
2927 bool temp2 = False ;
2928 PyObject * obj0 = 0 ;
2929 PyObject * obj1 = 0 ;
2930 PyObject * obj2 = 0 ;
2931 char *kwnames[] = {
2932 (char *) "self",(char *) "name",(char *) "type", NULL
2933 };
2934
2935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
2936 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2937 {
2938 arg2 = wxString_in_helper(obj1);
2939 if (arg2 == NULL) SWIG_fail;
2940 temp2 = True;
2941 }
2942 {
2943 arg3 = (wxBitmapType) SWIG_PyObj_AsInt(obj2);
2944 if (PyErr_Occurred()) SWIG_fail;
2945 }
2946 {
2947 PyThreadState* __tstate = wxPyBeginAllowThreads();
2948 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
2949
2950 wxPyEndAllowThreads(__tstate);
2951 if (PyErr_Occurred()) SWIG_fail;
2952 }
2953 resultobj = SWIG_PyObj_FromBool((bool)result);
2954 {
2955 if (temp2)
2956 delete arg2;
2957 }
2958 return resultobj;
2959 fail:
2960 {
2961 if (temp2)
2962 delete arg2;
2963 }
2964 return NULL;
2965 }
2966
2967
2968 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2969 PyObject *resultobj;
2970 wxBitmap *arg1 = (wxBitmap *) 0 ;
2971 wxIcon *arg2 = 0 ;
2972 bool result;
2973 PyObject * obj0 = 0 ;
2974 PyObject * obj1 = 0 ;
2975 char *kwnames[] = {
2976 (char *) "self",(char *) "icon", NULL
2977 };
2978
2979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
2980 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2981 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
2982 if (arg2 == NULL) {
2983 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
2984 }
2985 {
2986 PyThreadState* __tstate = wxPyBeginAllowThreads();
2987 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
2988
2989 wxPyEndAllowThreads(__tstate);
2990 if (PyErr_Occurred()) SWIG_fail;
2991 }
2992 resultobj = SWIG_PyObj_FromBool((bool)result);
2993 return resultobj;
2994 fail:
2995 return NULL;
2996 }
2997
2998
2999 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3000 PyObject *resultobj;
3001 wxBitmap *arg1 = (wxBitmap *) 0 ;
3002 int arg2 ;
3003 PyObject * obj0 = 0 ;
3004 PyObject * obj1 = 0 ;
3005 char *kwnames[] = {
3006 (char *) "self",(char *) "height", NULL
3007 };
3008
3009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3010 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3011 {
3012 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3013 if (PyErr_Occurred()) SWIG_fail;
3014 }
3015 {
3016 PyThreadState* __tstate = wxPyBeginAllowThreads();
3017 (arg1)->SetHeight(arg2);
3018
3019 wxPyEndAllowThreads(__tstate);
3020 if (PyErr_Occurred()) SWIG_fail;
3021 }
3022 Py_INCREF(Py_None); resultobj = Py_None;
3023 return resultobj;
3024 fail:
3025 return NULL;
3026 }
3027
3028
3029 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3030 PyObject *resultobj;
3031 wxBitmap *arg1 = (wxBitmap *) 0 ;
3032 int arg2 ;
3033 PyObject * obj0 = 0 ;
3034 PyObject * obj1 = 0 ;
3035 char *kwnames[] = {
3036 (char *) "self",(char *) "width", NULL
3037 };
3038
3039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3041 {
3042 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3043 if (PyErr_Occurred()) SWIG_fail;
3044 }
3045 {
3046 PyThreadState* __tstate = wxPyBeginAllowThreads();
3047 (arg1)->SetWidth(arg2);
3048
3049 wxPyEndAllowThreads(__tstate);
3050 if (PyErr_Occurred()) SWIG_fail;
3051 }
3052 Py_INCREF(Py_None); resultobj = Py_None;
3053 return resultobj;
3054 fail:
3055 return NULL;
3056 }
3057
3058
3059 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3060 PyObject *resultobj;
3061 wxBitmap *arg1 = (wxBitmap *) 0 ;
3062 int arg2 ;
3063 PyObject * obj0 = 0 ;
3064 PyObject * obj1 = 0 ;
3065 char *kwnames[] = {
3066 (char *) "self",(char *) "depth", NULL
3067 };
3068
3069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3070 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3071 {
3072 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3073 if (PyErr_Occurred()) SWIG_fail;
3074 }
3075 {
3076 PyThreadState* __tstate = wxPyBeginAllowThreads();
3077 (arg1)->SetDepth(arg2);
3078
3079 wxPyEndAllowThreads(__tstate);
3080 if (PyErr_Occurred()) SWIG_fail;
3081 }
3082 Py_INCREF(Py_None); resultobj = Py_None;
3083 return resultobj;
3084 fail:
3085 return NULL;
3086 }
3087
3088
3089 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3090 PyObject *obj;
3091 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3092 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3093 Py_INCREF(obj);
3094 return Py_BuildValue((char *)"");
3095 }
3096 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3097 PyObject *resultobj;
3098 wxBitmap *arg1 = 0 ;
3099 wxMask *result;
3100 PyObject * obj0 = 0 ;
3101 char *kwnames[] = {
3102 (char *) "bitmap", NULL
3103 };
3104
3105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_Mask",kwnames,&obj0)) goto fail;
3106 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3107 if (arg1 == NULL) {
3108 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3109 }
3110 {
3111 PyThreadState* __tstate = wxPyBeginAllowThreads();
3112 result = (wxMask *)new wxMask((wxBitmap const &)*arg1);
3113
3114 wxPyEndAllowThreads(__tstate);
3115 if (PyErr_Occurred()) SWIG_fail;
3116 }
3117 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3118 return resultobj;
3119 fail:
3120 return NULL;
3121 }
3122
3123
3124 static PyObject *_wrap_new_MaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3125 PyObject *resultobj;
3126 wxBitmap *arg1 = 0 ;
3127 wxColour *arg2 = 0 ;
3128 wxMask *result;
3129 wxColour temp2 ;
3130 PyObject * obj0 = 0 ;
3131 PyObject * obj1 = 0 ;
3132 char *kwnames[] = {
3133 (char *) "bitmap",(char *) "colour", NULL
3134 };
3135
3136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MaskColour",kwnames,&obj0,&obj1)) goto fail;
3137 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3138 if (arg1 == NULL) {
3139 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3140 }
3141 {
3142 arg2 = &temp2;
3143 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3144 }
3145 {
3146 PyThreadState* __tstate = wxPyBeginAllowThreads();
3147 result = (wxMask *)new wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3148
3149 wxPyEndAllowThreads(__tstate);
3150 if (PyErr_Occurred()) SWIG_fail;
3151 }
3152 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMask, 1);
3153 return resultobj;
3154 fail:
3155 return NULL;
3156 }
3157
3158
3159 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3160 PyObject *obj;
3161 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3162 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3163 Py_INCREF(obj);
3164 return Py_BuildValue((char *)"");
3165 }
3166 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3167 PyObject *resultobj;
3168 wxString *arg1 = 0 ;
3169 int arg2 ;
3170 int arg3 = (int) -1 ;
3171 int arg4 = (int) -1 ;
3172 wxIcon *result;
3173 bool temp1 = False ;
3174 PyObject * obj0 = 0 ;
3175 PyObject * obj1 = 0 ;
3176 PyObject * obj2 = 0 ;
3177 PyObject * obj3 = 0 ;
3178 char *kwnames[] = {
3179 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3180 };
3181
3182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3183 {
3184 arg1 = wxString_in_helper(obj0);
3185 if (arg1 == NULL) SWIG_fail;
3186 temp1 = True;
3187 }
3188 {
3189 arg2 = (wxBitmapType) SWIG_PyObj_AsInt(obj1);
3190 if (PyErr_Occurred()) SWIG_fail;
3191 }
3192 if (obj2) {
3193 {
3194 arg3 = (int) SWIG_PyObj_AsInt(obj2);
3195 if (PyErr_Occurred()) SWIG_fail;
3196 }
3197 }
3198 if (obj3) {
3199 {
3200 arg4 = (int) SWIG_PyObj_AsInt(obj3);
3201 if (PyErr_Occurred()) SWIG_fail;
3202 }
3203 }
3204 {
3205 PyThreadState* __tstate = wxPyBeginAllowThreads();
3206 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3207
3208 wxPyEndAllowThreads(__tstate);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 }
3211 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3212 {
3213 if (temp1)
3214 delete arg1;
3215 }
3216 return resultobj;
3217 fail:
3218 {
3219 if (temp1)
3220 delete arg1;
3221 }
3222 return NULL;
3223 }
3224
3225
3226 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3227 PyObject *resultobj;
3228 wxIcon *arg1 = (wxIcon *) 0 ;
3229 PyObject * obj0 = 0 ;
3230 char *kwnames[] = {
3231 (char *) "self", NULL
3232 };
3233
3234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3235 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3236 {
3237 PyThreadState* __tstate = wxPyBeginAllowThreads();
3238 delete arg1;
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
3243 Py_INCREF(Py_None); resultobj = Py_None;
3244 return resultobj;
3245 fail:
3246 return NULL;
3247 }
3248
3249
3250 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3251 PyObject *resultobj;
3252 wxIcon *result;
3253 char *kwnames[] = {
3254 NULL
3255 };
3256
3257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3258 {
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 result = (wxIcon *)new wxIcon();
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3266 return resultobj;
3267 fail:
3268 return NULL;
3269 }
3270
3271
3272 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3273 PyObject *resultobj;
3274 wxIconLocation *arg1 = 0 ;
3275 wxIcon *result;
3276 PyObject * obj0 = 0 ;
3277 char *kwnames[] = {
3278 (char *) "loc", NULL
3279 };
3280
3281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3282 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3283 if (arg1 == NULL) {
3284 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3285 }
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3294 return resultobj;
3295 fail:
3296 return NULL;
3297 }
3298
3299
3300 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxBitmap *arg1 = 0 ;
3303 wxIcon *result;
3304 PyObject * obj0 = 0 ;
3305 char *kwnames[] = {
3306 (char *) "bmp", NULL
3307 };
3308
3309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3311 if (arg1 == NULL) {
3312 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3313 }
3314 {
3315 PyThreadState* __tstate = wxPyBeginAllowThreads();
3316 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3317
3318 wxPyEndAllowThreads(__tstate);
3319 if (PyErr_Occurred()) SWIG_fail;
3320 }
3321 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3322 return resultobj;
3323 fail:
3324 return NULL;
3325 }
3326
3327
3328 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3329 PyObject *resultobj;
3330 PyObject *arg1 = (PyObject *) 0 ;
3331 wxIcon *result;
3332 PyObject * obj0 = 0 ;
3333 char *kwnames[] = {
3334 (char *) "listOfStrings", NULL
3335 };
3336
3337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3338 arg1 = obj0;
3339 {
3340 PyThreadState* __tstate = wxPyBeginAllowThreads();
3341 result = (wxIcon *)new_wxIcon(arg1);
3342
3343 wxPyEndAllowThreads(__tstate);
3344 if (PyErr_Occurred()) SWIG_fail;
3345 }
3346 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 1);
3347 return resultobj;
3348 fail:
3349 return NULL;
3350 }
3351
3352
3353 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3354 PyObject *resultobj;
3355 wxIcon *arg1 = (wxIcon *) 0 ;
3356 bool result;
3357 PyObject * obj0 = 0 ;
3358 char *kwnames[] = {
3359 (char *) "self", NULL
3360 };
3361
3362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3364 {
3365 PyThreadState* __tstate = wxPyBeginAllowThreads();
3366 result = (bool)(arg1)->Ok();
3367
3368 wxPyEndAllowThreads(__tstate);
3369 if (PyErr_Occurred()) SWIG_fail;
3370 }
3371 resultobj = SWIG_PyObj_FromBool((bool)result);
3372 return resultobj;
3373 fail:
3374 return NULL;
3375 }
3376
3377
3378 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3379 PyObject *resultobj;
3380 wxIcon *arg1 = (wxIcon *) 0 ;
3381 int result;
3382 PyObject * obj0 = 0 ;
3383 char *kwnames[] = {
3384 (char *) "self", NULL
3385 };
3386
3387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3388 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3389 {
3390 PyThreadState* __tstate = wxPyBeginAllowThreads();
3391 result = (int)(arg1)->GetWidth();
3392
3393 wxPyEndAllowThreads(__tstate);
3394 if (PyErr_Occurred()) SWIG_fail;
3395 }
3396 resultobj = SWIG_PyObj_FromInt((int)result);
3397 return resultobj;
3398 fail:
3399 return NULL;
3400 }
3401
3402
3403 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3404 PyObject *resultobj;
3405 wxIcon *arg1 = (wxIcon *) 0 ;
3406 int result;
3407 PyObject * obj0 = 0 ;
3408 char *kwnames[] = {
3409 (char *) "self", NULL
3410 };
3411
3412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3414 {
3415 PyThreadState* __tstate = wxPyBeginAllowThreads();
3416 result = (int)(arg1)->GetHeight();
3417
3418 wxPyEndAllowThreads(__tstate);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 }
3421 resultobj = SWIG_PyObj_FromInt((int)result);
3422 return resultobj;
3423 fail:
3424 return NULL;
3425 }
3426
3427
3428 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj;
3430 wxIcon *arg1 = (wxIcon *) 0 ;
3431 int result;
3432 PyObject * obj0 = 0 ;
3433 char *kwnames[] = {
3434 (char *) "self", NULL
3435 };
3436
3437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3439 {
3440 PyThreadState* __tstate = wxPyBeginAllowThreads();
3441 result = (int)(arg1)->GetDepth();
3442
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 }
3446 resultobj = SWIG_PyObj_FromInt((int)result);
3447 return resultobj;
3448 fail:
3449 return NULL;
3450 }
3451
3452
3453 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3454 PyObject *resultobj;
3455 wxIcon *arg1 = (wxIcon *) 0 ;
3456 int arg2 ;
3457 PyObject * obj0 = 0 ;
3458 PyObject * obj1 = 0 ;
3459 char *kwnames[] = {
3460 (char *) "self",(char *) "w", NULL
3461 };
3462
3463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3464 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3465 {
3466 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 {
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 (arg1)->SetWidth(arg2);
3472
3473 wxPyEndAllowThreads(__tstate);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 }
3476 Py_INCREF(Py_None); resultobj = Py_None;
3477 return resultobj;
3478 fail:
3479 return NULL;
3480 }
3481
3482
3483 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3484 PyObject *resultobj;
3485 wxIcon *arg1 = (wxIcon *) 0 ;
3486 int arg2 ;
3487 PyObject * obj0 = 0 ;
3488 PyObject * obj1 = 0 ;
3489 char *kwnames[] = {
3490 (char *) "self",(char *) "h", NULL
3491 };
3492
3493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3494 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3495 {
3496 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3497 if (PyErr_Occurred()) SWIG_fail;
3498 }
3499 {
3500 PyThreadState* __tstate = wxPyBeginAllowThreads();
3501 (arg1)->SetHeight(arg2);
3502
3503 wxPyEndAllowThreads(__tstate);
3504 if (PyErr_Occurred()) SWIG_fail;
3505 }
3506 Py_INCREF(Py_None); resultobj = Py_None;
3507 return resultobj;
3508 fail:
3509 return NULL;
3510 }
3511
3512
3513 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3514 PyObject *resultobj;
3515 wxIcon *arg1 = (wxIcon *) 0 ;
3516 int arg2 ;
3517 PyObject * obj0 = 0 ;
3518 PyObject * obj1 = 0 ;
3519 char *kwnames[] = {
3520 (char *) "self",(char *) "d", NULL
3521 };
3522
3523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3525 {
3526 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3527 if (PyErr_Occurred()) SWIG_fail;
3528 }
3529 {
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 (arg1)->SetDepth(arg2);
3532
3533 wxPyEndAllowThreads(__tstate);
3534 if (PyErr_Occurred()) SWIG_fail;
3535 }
3536 Py_INCREF(Py_None); resultobj = Py_None;
3537 return resultobj;
3538 fail:
3539 return NULL;
3540 }
3541
3542
3543 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3544 PyObject *resultobj;
3545 wxIcon *arg1 = (wxIcon *) 0 ;
3546 wxBitmap *arg2 = 0 ;
3547 PyObject * obj0 = 0 ;
3548 PyObject * obj1 = 0 ;
3549 char *kwnames[] = {
3550 (char *) "self",(char *) "bmp", NULL
3551 };
3552
3553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3554 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3555 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3556 if (arg2 == NULL) {
3557 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3558 }
3559 {
3560 PyThreadState* __tstate = wxPyBeginAllowThreads();
3561 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3562
3563 wxPyEndAllowThreads(__tstate);
3564 if (PyErr_Occurred()) SWIG_fail;
3565 }
3566 Py_INCREF(Py_None); resultobj = Py_None;
3567 return resultobj;
3568 fail:
3569 return NULL;
3570 }
3571
3572
3573 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3574 PyObject *obj;
3575 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3576 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3577 Py_INCREF(obj);
3578 return Py_BuildValue((char *)"");
3579 }
3580 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3581 PyObject *resultobj;
3582 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3583 int arg2 = (int) 0 ;
3584 wxIconLocation *result;
3585 bool temp1 = False ;
3586 PyObject * obj0 = 0 ;
3587 PyObject * obj1 = 0 ;
3588 char *kwnames[] = {
3589 (char *) "filename",(char *) "num", NULL
3590 };
3591
3592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3593 if (obj0) {
3594 {
3595 arg1 = wxString_in_helper(obj0);
3596 if (arg1 == NULL) SWIG_fail;
3597 temp1 = True;
3598 }
3599 }
3600 if (obj1) {
3601 {
3602 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3603 if (PyErr_Occurred()) SWIG_fail;
3604 }
3605 }
3606 {
3607 PyThreadState* __tstate = wxPyBeginAllowThreads();
3608 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3609
3610 wxPyEndAllowThreads(__tstate);
3611 if (PyErr_Occurred()) SWIG_fail;
3612 }
3613 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconLocation, 1);
3614 {
3615 if (temp1)
3616 delete arg1;
3617 }
3618 return resultobj;
3619 fail:
3620 {
3621 if (temp1)
3622 delete arg1;
3623 }
3624 return NULL;
3625 }
3626
3627
3628 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3629 PyObject *resultobj;
3630 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3631 PyObject * obj0 = 0 ;
3632 char *kwnames[] = {
3633 (char *) "self", NULL
3634 };
3635
3636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3638 {
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 delete arg1;
3641
3642 wxPyEndAllowThreads(__tstate);
3643 if (PyErr_Occurred()) SWIG_fail;
3644 }
3645 Py_INCREF(Py_None); resultobj = Py_None;
3646 return resultobj;
3647 fail:
3648 return NULL;
3649 }
3650
3651
3652 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3653 PyObject *resultobj;
3654 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3655 bool result;
3656 PyObject * obj0 = 0 ;
3657 char *kwnames[] = {
3658 (char *) "self", NULL
3659 };
3660
3661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3662 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3663 {
3664 PyThreadState* __tstate = wxPyBeginAllowThreads();
3665 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3666
3667 wxPyEndAllowThreads(__tstate);
3668 if (PyErr_Occurred()) SWIG_fail;
3669 }
3670 resultobj = SWIG_PyObj_FromBool((bool)result);
3671 return resultobj;
3672 fail:
3673 return NULL;
3674 }
3675
3676
3677 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3680 wxString *arg2 = 0 ;
3681 bool temp2 = False ;
3682 PyObject * obj0 = 0 ;
3683 PyObject * obj1 = 0 ;
3684 char *kwnames[] = {
3685 (char *) "self",(char *) "filename", NULL
3686 };
3687
3688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
3689 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3690 {
3691 arg2 = wxString_in_helper(obj1);
3692 if (arg2 == NULL) SWIG_fail;
3693 temp2 = True;
3694 }
3695 {
3696 PyThreadState* __tstate = wxPyBeginAllowThreads();
3697 (arg1)->SetFileName((wxString const &)*arg2);
3698
3699 wxPyEndAllowThreads(__tstate);
3700 if (PyErr_Occurred()) SWIG_fail;
3701 }
3702 Py_INCREF(Py_None); resultobj = Py_None;
3703 {
3704 if (temp2)
3705 delete arg2;
3706 }
3707 return resultobj;
3708 fail:
3709 {
3710 if (temp2)
3711 delete arg2;
3712 }
3713 return NULL;
3714 }
3715
3716
3717 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj;
3719 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3720 wxString *result;
3721 PyObject * obj0 = 0 ;
3722 char *kwnames[] = {
3723 (char *) "self", NULL
3724 };
3725
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
3727 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3728 {
3729 PyThreadState* __tstate = wxPyBeginAllowThreads();
3730 {
3731 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
3732 result = (wxString *) &_result_ref;
3733 }
3734
3735 wxPyEndAllowThreads(__tstate);
3736 if (PyErr_Occurred()) SWIG_fail;
3737 }
3738 {
3739 #if wxUSE_UNICODE
3740 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
3741 #else
3742 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
3743 #endif
3744 }
3745 return resultobj;
3746 fail:
3747 return NULL;
3748 }
3749
3750
3751 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3752 PyObject *resultobj;
3753 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3754 int arg2 ;
3755 PyObject * obj0 = 0 ;
3756 PyObject * obj1 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "self",(char *) "num", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
3762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3763 {
3764 arg2 = (int) SWIG_PyObj_AsInt(obj1);
3765 if (PyErr_Occurred()) SWIG_fail;
3766 }
3767 {
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 wxIconLocation_SetIndex(arg1,arg2);
3770
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 Py_INCREF(Py_None); resultobj = Py_None;
3775 return resultobj;
3776 fail:
3777 return NULL;
3778 }
3779
3780
3781 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
3782 PyObject *resultobj;
3783 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3784 int result;
3785 PyObject * obj0 = 0 ;
3786 char *kwnames[] = {
3787 (char *) "self", NULL
3788 };
3789
3790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
3791 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconLocation,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3792 {
3793 PyThreadState* __tstate = wxPyBeginAllowThreads();
3794 result = (int)wxIconLocation_GetIndex(arg1);
3795
3796 wxPyEndAllowThreads(__tstate);
3797 if (PyErr_Occurred()) SWIG_fail;
3798 }
3799 resultobj = SWIG_PyObj_FromInt((int)result);
3800 return resultobj;
3801 fail:
3802 return NULL;
3803 }
3804
3805
3806 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
3807 PyObject *obj;
3808 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3809 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
3810 Py_INCREF(obj);
3811 return Py_BuildValue((char *)"");
3812 }
3813 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj;
3815 wxIconBundle *result;
3816 char *kwnames[] = {
3817 NULL
3818 };
3819
3820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
3821 {
3822 PyThreadState* __tstate = wxPyBeginAllowThreads();
3823 result = (wxIconBundle *)new wxIconBundle();
3824
3825 wxPyEndAllowThreads(__tstate);
3826 if (PyErr_Occurred()) SWIG_fail;
3827 }
3828 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3829 return resultobj;
3830 fail:
3831 return NULL;
3832 }
3833
3834
3835 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3836 PyObject *resultobj;
3837 wxString *arg1 = 0 ;
3838 long arg2 ;
3839 wxIconBundle *result;
3840 bool temp1 = False ;
3841 PyObject * obj0 = 0 ;
3842 PyObject * obj1 = 0 ;
3843 char *kwnames[] = {
3844 (char *) "file",(char *) "type", NULL
3845 };
3846
3847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
3848 {
3849 arg1 = wxString_in_helper(obj0);
3850 if (arg1 == NULL) SWIG_fail;
3851 temp1 = True;
3852 }
3853 {
3854 arg2 = (long) SWIG_PyObj_AsLong(obj1);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
3860
3861 wxPyEndAllowThreads(__tstate);
3862 if (PyErr_Occurred()) SWIG_fail;
3863 }
3864 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3865 {
3866 if (temp1)
3867 delete arg1;
3868 }
3869 return resultobj;
3870 fail:
3871 {
3872 if (temp1)
3873 delete arg1;
3874 }
3875 return NULL;
3876 }
3877
3878
3879 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj;
3881 wxIcon *arg1 = 0 ;
3882 wxIconBundle *result;
3883 PyObject * obj0 = 0 ;
3884 char *kwnames[] = {
3885 (char *) "icon", NULL
3886 };
3887
3888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
3889 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3890 if (arg1 == NULL) {
3891 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3892 }
3893 {
3894 PyThreadState* __tstate = wxPyBeginAllowThreads();
3895 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
3896
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) SWIG_fail;
3899 }
3900 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIconBundle, 1);
3901 return resultobj;
3902 fail:
3903 return NULL;
3904 }
3905
3906
3907 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
3908 PyObject *resultobj;
3909 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3910 PyObject * obj0 = 0 ;
3911 char *kwnames[] = {
3912 (char *) "self", NULL
3913 };
3914
3915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
3916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3917 {
3918 PyThreadState* __tstate = wxPyBeginAllowThreads();
3919 delete arg1;
3920
3921 wxPyEndAllowThreads(__tstate);
3922 if (PyErr_Occurred()) SWIG_fail;
3923 }
3924 Py_INCREF(Py_None); resultobj = Py_None;
3925 return resultobj;
3926 fail:
3927 return NULL;
3928 }
3929
3930
3931 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3932 PyObject *resultobj;
3933 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3934 wxIcon *arg2 = 0 ;
3935 PyObject * obj0 = 0 ;
3936 PyObject * obj1 = 0 ;
3937 char *kwnames[] = {
3938 (char *) "self",(char *) "icon", NULL
3939 };
3940
3941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
3942 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3943 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3944 if (arg2 == NULL) {
3945 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
3946 }
3947 {
3948 PyThreadState* __tstate = wxPyBeginAllowThreads();
3949 (arg1)->AddIcon((wxIcon const &)*arg2);
3950
3951 wxPyEndAllowThreads(__tstate);
3952 if (PyErr_Occurred()) SWIG_fail;
3953 }
3954 Py_INCREF(Py_None); resultobj = Py_None;
3955 return resultobj;
3956 fail:
3957 return NULL;
3958 }
3959
3960
3961 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3962 PyObject *resultobj;
3963 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
3964 wxString *arg2 = 0 ;
3965 long arg3 ;
3966 bool temp2 = False ;
3967 PyObject * obj0 = 0 ;
3968 PyObject * obj1 = 0 ;
3969 PyObject * obj2 = 0 ;
3970 char *kwnames[] = {
3971 (char *) "self",(char *) "file",(char *) "type", NULL
3972 };
3973
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3975 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
3976 {
3977 arg2 = wxString_in_helper(obj1);
3978 if (arg2 == NULL) SWIG_fail;
3979 temp2 = True;
3980 }
3981 {
3982 arg3 = (long) SWIG_PyObj_AsLong(obj2);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 {
3986 PyThreadState* __tstate = wxPyBeginAllowThreads();
3987 (arg1)->AddIcon((wxString const &)*arg2,arg3);
3988
3989 wxPyEndAllowThreads(__tstate);
3990 if (PyErr_Occurred()) SWIG_fail;
3991 }
3992 Py_INCREF(Py_None); resultobj = Py_None;
3993 {
3994 if (temp2)
3995 delete arg2;
3996 }
3997 return resultobj;
3998 fail:
3999 {
4000 if (temp2)
4001 delete arg2;
4002 }
4003 return NULL;
4004 }
4005
4006
4007 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4008 PyObject *resultobj;
4009 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4010 wxSize *arg2 = 0 ;
4011 wxIcon *result;
4012 wxSize temp2 ;
4013 PyObject * obj0 = 0 ;
4014 PyObject * obj1 = 0 ;
4015 char *kwnames[] = {
4016 (char *) "self",(char *) "size", NULL
4017 };
4018
4019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4020 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxIconBundle,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4021 {
4022 arg2 = &temp2;
4023 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4024 }
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 {
4028 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4029 result = (wxIcon *) &_result_ref;
4030 }
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxIcon, 0);
4036 return resultobj;
4037 fail:
4038 return NULL;
4039 }
4040
4041
4042 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4043 PyObject *obj;
4044 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4045 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4046 Py_INCREF(obj);
4047 return Py_BuildValue((char *)"");
4048 }
4049 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4050 PyObject *resultobj;
4051 wxString *arg1 = (wxString *) 0 ;
4052 long arg2 ;
4053 int arg3 = (int) 0 ;
4054 int arg4 = (int) 0 ;
4055 wxCursor *result;
4056 bool temp1 = False ;
4057 PyObject * obj0 = 0 ;
4058 PyObject * obj1 = 0 ;
4059 PyObject * obj2 = 0 ;
4060 PyObject * obj3 = 0 ;
4061 char *kwnames[] = {
4062 (char *) "cursorName",(char *) "flags",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4063 };
4064
4065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4066 {
4067 arg1 = wxString_in_helper(obj0);
4068 if (arg1 == NULL) SWIG_fail;
4069 temp1 = True;
4070 }
4071 {
4072 arg2 = (long) SWIG_PyObj_AsLong(obj1);
4073 if (PyErr_Occurred()) SWIG_fail;
4074 }
4075 if (obj2) {
4076 {
4077 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 }
4081 if (obj3) {
4082 {
4083 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4084 if (PyErr_Occurred()) SWIG_fail;
4085 }
4086 }
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4090
4091 wxPyEndAllowThreads(__tstate);
4092 if (PyErr_Occurred()) SWIG_fail;
4093 }
4094 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4095 {
4096 if (temp1)
4097 delete arg1;
4098 }
4099 return resultobj;
4100 fail:
4101 {
4102 if (temp1)
4103 delete arg1;
4104 }
4105 return NULL;
4106 }
4107
4108
4109 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4110 PyObject *resultobj;
4111 wxCursor *arg1 = (wxCursor *) 0 ;
4112 PyObject * obj0 = 0 ;
4113 char *kwnames[] = {
4114 (char *) "self", NULL
4115 };
4116
4117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4119 {
4120 PyThreadState* __tstate = wxPyBeginAllowThreads();
4121 delete arg1;
4122
4123 wxPyEndAllowThreads(__tstate);
4124 if (PyErr_Occurred()) SWIG_fail;
4125 }
4126 Py_INCREF(Py_None); resultobj = Py_None;
4127 return resultobj;
4128 fail:
4129 return NULL;
4130 }
4131
4132
4133 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4134 PyObject *resultobj;
4135 int arg1 ;
4136 wxCursor *result;
4137 PyObject * obj0 = 0 ;
4138 char *kwnames[] = {
4139 (char *) "id", NULL
4140 };
4141
4142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4143 {
4144 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4145 if (PyErr_Occurred()) SWIG_fail;
4146 }
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 result = (wxCursor *)new wxCursor(arg1);
4150
4151 wxPyEndAllowThreads(__tstate);
4152 if (PyErr_Occurred()) SWIG_fail;
4153 }
4154 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4162 PyObject *resultobj;
4163 wxImage *arg1 = 0 ;
4164 wxCursor *result;
4165 PyObject * obj0 = 0 ;
4166 char *kwnames[] = {
4167 (char *) "image", NULL
4168 };
4169
4170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4171 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImage,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4172 if (arg1 == NULL) {
4173 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4174 }
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4178
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4183 return resultobj;
4184 fail:
4185 return NULL;
4186 }
4187
4188
4189 static PyObject *_wrap_new_CursorFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
4190 PyObject *resultobj;
4191 PyObject *arg1 = (PyObject *) 0 ;
4192 int arg2 ;
4193 int arg3 ;
4194 int arg4 = (int) -1 ;
4195 int arg5 = (int) -1 ;
4196 PyObject *arg6 = (PyObject *) 0 ;
4197 wxCursor *result;
4198 PyObject * obj0 = 0 ;
4199 PyObject * obj1 = 0 ;
4200 PyObject * obj2 = 0 ;
4201 PyObject * obj3 = 0 ;
4202 PyObject * obj4 = 0 ;
4203 PyObject * obj5 = 0 ;
4204 char *kwnames[] = {
4205 (char *) "bits",(char *) "width",(char *) "height",(char *) "hotSpotX",(char *) "hotSpotY",(char *) "maskBits", NULL
4206 };
4207
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:new_CursorFromBits",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
4209 arg1 = obj0;
4210 {
4211 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4212 if (PyErr_Occurred()) SWIG_fail;
4213 }
4214 {
4215 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 if (obj3) {
4219 {
4220 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 }
4224 if (obj4) {
4225 {
4226 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4227 if (PyErr_Occurred()) SWIG_fail;
4228 }
4229 }
4230 if (obj5) {
4231 arg6 = obj5;
4232 }
4233 {
4234 PyThreadState* __tstate = wxPyBeginAllowThreads();
4235 result = (wxCursor *)new_wxCursor(arg1,arg2,arg3,arg4,arg5,arg6);
4236
4237 wxPyEndAllowThreads(__tstate);
4238 if (PyErr_Occurred()) SWIG_fail;
4239 }
4240 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxCursor, 1);
4241 return resultobj;
4242 fail:
4243 return NULL;
4244 }
4245
4246
4247 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj;
4249 wxCursor *arg1 = (wxCursor *) 0 ;
4250 bool result;
4251 PyObject * obj0 = 0 ;
4252 char *kwnames[] = {
4253 (char *) "self", NULL
4254 };
4255
4256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4257 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxCursor,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4258 {
4259 PyThreadState* __tstate = wxPyBeginAllowThreads();
4260 result = (bool)(arg1)->Ok();
4261
4262 wxPyEndAllowThreads(__tstate);
4263 if (PyErr_Occurred()) SWIG_fail;
4264 }
4265 resultobj = SWIG_PyObj_FromBool((bool)result);
4266 return resultobj;
4267 fail:
4268 return NULL;
4269 }
4270
4271
4272 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4273 PyObject *obj;
4274 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4275 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4276 Py_INCREF(obj);
4277 return Py_BuildValue((char *)"");
4278 }
4279 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4280 PyObject *resultobj;
4281 int arg1 = (int) 0 ;
4282 int arg2 = (int) 0 ;
4283 int arg3 = (int) 0 ;
4284 int arg4 = (int) 0 ;
4285 wxRegion *result;
4286 PyObject * obj0 = 0 ;
4287 PyObject * obj1 = 0 ;
4288 PyObject * obj2 = 0 ;
4289 PyObject * obj3 = 0 ;
4290 char *kwnames[] = {
4291 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4292 };
4293
4294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4295 if (obj0) {
4296 {
4297 arg1 = (int) SWIG_PyObj_AsInt(obj0);
4298 if (PyErr_Occurred()) SWIG_fail;
4299 }
4300 }
4301 if (obj1) {
4302 {
4303 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4304 if (PyErr_Occurred()) SWIG_fail;
4305 }
4306 }
4307 if (obj2) {
4308 {
4309 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4310 if (PyErr_Occurred()) SWIG_fail;
4311 }
4312 }
4313 if (obj3) {
4314 {
4315 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4316 if (PyErr_Occurred()) SWIG_fail;
4317 }
4318 }
4319 {
4320 PyThreadState* __tstate = wxPyBeginAllowThreads();
4321 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4322
4323 wxPyEndAllowThreads(__tstate);
4324 if (PyErr_Occurred()) SWIG_fail;
4325 }
4326 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4327 return resultobj;
4328 fail:
4329 return NULL;
4330 }
4331
4332
4333 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4334 PyObject *resultobj;
4335 wxBitmap *arg1 = 0 ;
4336 wxColour const &arg2_defvalue = wxNullColour ;
4337 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4338 int arg3 = (int) 0 ;
4339 wxRegion *result;
4340 wxColour temp2 ;
4341 PyObject * obj0 = 0 ;
4342 PyObject * obj1 = 0 ;
4343 PyObject * obj2 = 0 ;
4344 char *kwnames[] = {
4345 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4346 };
4347
4348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4349 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4350 if (arg1 == NULL) {
4351 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4352 }
4353 if (obj1) {
4354 {
4355 arg2 = &temp2;
4356 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4357 }
4358 }
4359 if (obj2) {
4360 {
4361 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4362 if (PyErr_Occurred()) SWIG_fail;
4363 }
4364 }
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4368
4369 wxPyEndAllowThreads(__tstate);
4370 if (PyErr_Occurred()) SWIG_fail;
4371 }
4372 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4373 return resultobj;
4374 fail:
4375 return NULL;
4376 }
4377
4378
4379 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4380 PyObject *resultobj;
4381 int arg1 ;
4382 wxPoint *arg2 = (wxPoint *) 0 ;
4383 int arg3 = (int) wxWINDING_RULE ;
4384 wxRegion *result;
4385 PyObject * obj0 = 0 ;
4386 PyObject * obj1 = 0 ;
4387 char *kwnames[] = {
4388 (char *) "points",(char *) "fillStyle", NULL
4389 };
4390
4391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4392 {
4393 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4394 if (arg2 == NULL) SWIG_fail;
4395 }
4396 if (obj1) {
4397 {
4398 arg3 = (int) SWIG_PyObj_AsInt(obj1);
4399 if (PyErr_Occurred()) SWIG_fail;
4400 }
4401 }
4402 {
4403 PyThreadState* __tstate = wxPyBeginAllowThreads();
4404 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegion, 1);
4410 {
4411 if (arg2) delete [] arg2;
4412 }
4413 return resultobj;
4414 fail:
4415 {
4416 if (arg2) delete [] arg2;
4417 }
4418 return NULL;
4419 }
4420
4421
4422 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4423 PyObject *resultobj;
4424 wxRegion *arg1 = (wxRegion *) 0 ;
4425 PyObject * obj0 = 0 ;
4426 char *kwnames[] = {
4427 (char *) "self", NULL
4428 };
4429
4430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4431 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4432 {
4433 PyThreadState* __tstate = wxPyBeginAllowThreads();
4434 delete arg1;
4435
4436 wxPyEndAllowThreads(__tstate);
4437 if (PyErr_Occurred()) SWIG_fail;
4438 }
4439 Py_INCREF(Py_None); resultobj = Py_None;
4440 return resultobj;
4441 fail:
4442 return NULL;
4443 }
4444
4445
4446 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4447 PyObject *resultobj;
4448 wxRegion *arg1 = (wxRegion *) 0 ;
4449 PyObject * obj0 = 0 ;
4450 char *kwnames[] = {
4451 (char *) "self", NULL
4452 };
4453
4454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4455 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4456 {
4457 PyThreadState* __tstate = wxPyBeginAllowThreads();
4458 (arg1)->Clear();
4459
4460 wxPyEndAllowThreads(__tstate);
4461 if (PyErr_Occurred()) SWIG_fail;
4462 }
4463 Py_INCREF(Py_None); resultobj = Py_None;
4464 return resultobj;
4465 fail:
4466 return NULL;
4467 }
4468
4469
4470 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4471 PyObject *resultobj;
4472 wxRegion *arg1 = (wxRegion *) 0 ;
4473 int arg2 ;
4474 int arg3 ;
4475 int result;
4476 PyObject * obj0 = 0 ;
4477 PyObject * obj1 = 0 ;
4478 PyObject * obj2 = 0 ;
4479 char *kwnames[] = {
4480 (char *) "self",(char *) "x",(char *) "y", NULL
4481 };
4482
4483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4484 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4485 {
4486 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4487 if (PyErr_Occurred()) SWIG_fail;
4488 }
4489 {
4490 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4491 if (PyErr_Occurred()) SWIG_fail;
4492 }
4493 {
4494 PyThreadState* __tstate = wxPyBeginAllowThreads();
4495 result = (int)(arg1)->Contains(arg2,arg3);
4496
4497 wxPyEndAllowThreads(__tstate);
4498 if (PyErr_Occurred()) SWIG_fail;
4499 }
4500 resultobj = SWIG_PyObj_FromInt((int)result);
4501 return resultobj;
4502 fail:
4503 return NULL;
4504 }
4505
4506
4507 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4508 PyObject *resultobj;
4509 wxRegion *arg1 = (wxRegion *) 0 ;
4510 wxPoint *arg2 = 0 ;
4511 int result;
4512 wxPoint temp2 ;
4513 PyObject * obj0 = 0 ;
4514 PyObject * obj1 = 0 ;
4515 char *kwnames[] = {
4516 (char *) "self",(char *) "pt", NULL
4517 };
4518
4519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4521 {
4522 arg2 = &temp2;
4523 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4524 }
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 resultobj = SWIG_PyObj_FromInt((int)result);
4533 return resultobj;
4534 fail:
4535 return NULL;
4536 }
4537
4538
4539 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4540 PyObject *resultobj;
4541 wxRegion *arg1 = (wxRegion *) 0 ;
4542 wxRect *arg2 = 0 ;
4543 int result;
4544 wxRect temp2 ;
4545 PyObject * obj0 = 0 ;
4546 PyObject * obj1 = 0 ;
4547 char *kwnames[] = {
4548 (char *) "self",(char *) "rect", NULL
4549 };
4550
4551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4553 {
4554 arg2 = &temp2;
4555 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4556 }
4557 {
4558 PyThreadState* __tstate = wxPyBeginAllowThreads();
4559 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4560
4561 wxPyEndAllowThreads(__tstate);
4562 if (PyErr_Occurred()) SWIG_fail;
4563 }
4564 resultobj = SWIG_PyObj_FromInt((int)result);
4565 return resultobj;
4566 fail:
4567 return NULL;
4568 }
4569
4570
4571 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4572 PyObject *resultobj;
4573 wxRegion *arg1 = (wxRegion *) 0 ;
4574 int arg2 ;
4575 int arg3 ;
4576 int arg4 ;
4577 int arg5 ;
4578 int result;
4579 PyObject * obj0 = 0 ;
4580 PyObject * obj1 = 0 ;
4581 PyObject * obj2 = 0 ;
4582 PyObject * obj3 = 0 ;
4583 PyObject * obj4 = 0 ;
4584 char *kwnames[] = {
4585 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4586 };
4587
4588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4589 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4590 {
4591 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 {
4595 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 {
4599 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4600 if (PyErr_Occurred()) SWIG_fail;
4601 }
4602 {
4603 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 {
4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
4608 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4609
4610 wxPyEndAllowThreads(__tstate);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 resultobj = SWIG_PyObj_FromInt((int)result);
4614 return resultobj;
4615 fail:
4616 return NULL;
4617 }
4618
4619
4620 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4621 PyObject *resultobj;
4622 wxRegion *arg1 = (wxRegion *) 0 ;
4623 wxRect result;
4624 PyObject * obj0 = 0 ;
4625 char *kwnames[] = {
4626 (char *) "self", NULL
4627 };
4628
4629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4630 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4631 {
4632 PyThreadState* __tstate = wxPyBeginAllowThreads();
4633 result = (arg1)->GetBox();
4634
4635 wxPyEndAllowThreads(__tstate);
4636 if (PyErr_Occurred()) SWIG_fail;
4637 }
4638 {
4639 wxRect * resultptr;
4640 resultptr = new wxRect((wxRect &) result);
4641 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
4642 }
4643 return resultobj;
4644 fail:
4645 return NULL;
4646 }
4647
4648
4649 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4650 PyObject *resultobj;
4651 wxRegion *arg1 = (wxRegion *) 0 ;
4652 int arg2 ;
4653 int arg3 ;
4654 int arg4 ;
4655 int arg5 ;
4656 bool result;
4657 PyObject * obj0 = 0 ;
4658 PyObject * obj1 = 0 ;
4659 PyObject * obj2 = 0 ;
4660 PyObject * obj3 = 0 ;
4661 PyObject * obj4 = 0 ;
4662 char *kwnames[] = {
4663 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4664 };
4665
4666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4667 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4668 {
4669 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4670 if (PyErr_Occurred()) SWIG_fail;
4671 }
4672 {
4673 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4674 if (PyErr_Occurred()) SWIG_fail;
4675 }
4676 {
4677 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 {
4681 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4682 if (PyErr_Occurred()) SWIG_fail;
4683 }
4684 {
4685 PyThreadState* __tstate = wxPyBeginAllowThreads();
4686 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4687
4688 wxPyEndAllowThreads(__tstate);
4689 if (PyErr_Occurred()) SWIG_fail;
4690 }
4691 resultobj = SWIG_PyObj_FromBool((bool)result);
4692 return resultobj;
4693 fail:
4694 return NULL;
4695 }
4696
4697
4698 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4699 PyObject *resultobj;
4700 wxRegion *arg1 = (wxRegion *) 0 ;
4701 wxRect *arg2 = 0 ;
4702 bool result;
4703 wxRect temp2 ;
4704 PyObject * obj0 = 0 ;
4705 PyObject * obj1 = 0 ;
4706 char *kwnames[] = {
4707 (char *) "self",(char *) "rect", NULL
4708 };
4709
4710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4711 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4712 {
4713 arg2 = &temp2;
4714 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4715 }
4716 {
4717 PyThreadState* __tstate = wxPyBeginAllowThreads();
4718 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4719
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 resultobj = SWIG_PyObj_FromBool((bool)result);
4724 return resultobj;
4725 fail:
4726 return NULL;
4727 }
4728
4729
4730 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4731 PyObject *resultobj;
4732 wxRegion *arg1 = (wxRegion *) 0 ;
4733 wxRegion *arg2 = 0 ;
4734 bool result;
4735 PyObject * obj0 = 0 ;
4736 PyObject * obj1 = 0 ;
4737 char *kwnames[] = {
4738 (char *) "self",(char *) "region", NULL
4739 };
4740
4741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
4742 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4743 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4744 if (arg2 == NULL) {
4745 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4746 }
4747 {
4748 PyThreadState* __tstate = wxPyBeginAllowThreads();
4749 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
4750
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 resultobj = SWIG_PyObj_FromBool((bool)result);
4755 return resultobj;
4756 fail:
4757 return NULL;
4758 }
4759
4760
4761 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
4762 PyObject *resultobj;
4763 wxRegion *arg1 = (wxRegion *) 0 ;
4764 bool result;
4765 PyObject * obj0 = 0 ;
4766 char *kwnames[] = {
4767 (char *) "self", NULL
4768 };
4769
4770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
4771 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4772 {
4773 PyThreadState* __tstate = wxPyBeginAllowThreads();
4774 result = (bool)(arg1)->IsEmpty();
4775
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 resultobj = SWIG_PyObj_FromBool((bool)result);
4780 return resultobj;
4781 fail:
4782 return NULL;
4783 }
4784
4785
4786 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
4787 PyObject *resultobj;
4788 wxRegion *arg1 = (wxRegion *) 0 ;
4789 int arg2 ;
4790 int arg3 ;
4791 int arg4 ;
4792 int arg5 ;
4793 bool result;
4794 PyObject * obj0 = 0 ;
4795 PyObject * obj1 = 0 ;
4796 PyObject * obj2 = 0 ;
4797 PyObject * obj3 = 0 ;
4798 PyObject * obj4 = 0 ;
4799 char *kwnames[] = {
4800 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4801 };
4802
4803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4805 {
4806 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 {
4810 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 }
4813 {
4814 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4815 if (PyErr_Occurred()) SWIG_fail;
4816 }
4817 {
4818 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 PyThreadState* __tstate = wxPyBeginAllowThreads();
4823 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
4824
4825 wxPyEndAllowThreads(__tstate);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 }
4828 resultobj = SWIG_PyObj_FromBool((bool)result);
4829 return resultobj;
4830 fail:
4831 return NULL;
4832 }
4833
4834
4835 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4836 PyObject *resultobj;
4837 wxRegion *arg1 = (wxRegion *) 0 ;
4838 wxRect *arg2 = 0 ;
4839 bool result;
4840 wxRect temp2 ;
4841 PyObject * obj0 = 0 ;
4842 PyObject * obj1 = 0 ;
4843 char *kwnames[] = {
4844 (char *) "self",(char *) "rect", NULL
4845 };
4846
4847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
4848 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4849 {
4850 arg2 = &temp2;
4851 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4852 }
4853 {
4854 PyThreadState* __tstate = wxPyBeginAllowThreads();
4855 result = (bool)(arg1)->Union((wxRect const &)*arg2);
4856
4857 wxPyEndAllowThreads(__tstate);
4858 if (PyErr_Occurred()) SWIG_fail;
4859 }
4860 resultobj = SWIG_PyObj_FromBool((bool)result);
4861 return resultobj;
4862 fail:
4863 return NULL;
4864 }
4865
4866
4867 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4868 PyObject *resultobj;
4869 wxRegion *arg1 = (wxRegion *) 0 ;
4870 wxRegion *arg2 = 0 ;
4871 bool result;
4872 PyObject * obj0 = 0 ;
4873 PyObject * obj1 = 0 ;
4874 char *kwnames[] = {
4875 (char *) "self",(char *) "region", NULL
4876 };
4877
4878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
4879 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4880 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4881 if (arg2 == NULL) {
4882 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4883 }
4884 {
4885 PyThreadState* __tstate = wxPyBeginAllowThreads();
4886 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
4887
4888 wxPyEndAllowThreads(__tstate);
4889 if (PyErr_Occurred()) SWIG_fail;
4890 }
4891 resultobj = SWIG_PyObj_FromBool((bool)result);
4892 return resultobj;
4893 fail:
4894 return NULL;
4895 }
4896
4897
4898 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
4899 PyObject *resultobj;
4900 wxRegion *arg1 = (wxRegion *) 0 ;
4901 int arg2 ;
4902 int arg3 ;
4903 int arg4 ;
4904 int arg5 ;
4905 bool result;
4906 PyObject * obj0 = 0 ;
4907 PyObject * obj1 = 0 ;
4908 PyObject * obj2 = 0 ;
4909 PyObject * obj3 = 0 ;
4910 PyObject * obj4 = 0 ;
4911 char *kwnames[] = {
4912 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4913 };
4914
4915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4917 {
4918 arg2 = (int) SWIG_PyObj_AsInt(obj1);
4919 if (PyErr_Occurred()) SWIG_fail;
4920 }
4921 {
4922 arg3 = (int) SWIG_PyObj_AsInt(obj2);
4923 if (PyErr_Occurred()) SWIG_fail;
4924 }
4925 {
4926 arg4 = (int) SWIG_PyObj_AsInt(obj3);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 {
4930 arg5 = (int) SWIG_PyObj_AsInt(obj4);
4931 if (PyErr_Occurred()) SWIG_fail;
4932 }
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
4936
4937 wxPyEndAllowThreads(__tstate);
4938 if (PyErr_Occurred()) SWIG_fail;
4939 }
4940 resultobj = SWIG_PyObj_FromBool((bool)result);
4941 return resultobj;
4942 fail:
4943 return NULL;
4944 }
4945
4946
4947 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4948 PyObject *resultobj;
4949 wxRegion *arg1 = (wxRegion *) 0 ;
4950 wxRect *arg2 = 0 ;
4951 bool result;
4952 wxRect temp2 ;
4953 PyObject * obj0 = 0 ;
4954 PyObject * obj1 = 0 ;
4955 char *kwnames[] = {
4956 (char *) "self",(char *) "rect", NULL
4957 };
4958
4959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
4960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4961 {
4962 arg2 = &temp2;
4963 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4964 }
4965 {
4966 PyThreadState* __tstate = wxPyBeginAllowThreads();
4967 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
4968
4969 wxPyEndAllowThreads(__tstate);
4970 if (PyErr_Occurred()) SWIG_fail;
4971 }
4972 resultobj = SWIG_PyObj_FromBool((bool)result);
4973 return resultobj;
4974 fail:
4975 return NULL;
4976 }
4977
4978
4979 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
4980 PyObject *resultobj;
4981 wxRegion *arg1 = (wxRegion *) 0 ;
4982 wxRegion *arg2 = 0 ;
4983 bool result;
4984 PyObject * obj0 = 0 ;
4985 PyObject * obj1 = 0 ;
4986 char *kwnames[] = {
4987 (char *) "self",(char *) "region", NULL
4988 };
4989
4990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
4991 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4992 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
4993 if (arg2 == NULL) {
4994 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
4995 }
4996 {
4997 PyThreadState* __tstate = wxPyBeginAllowThreads();
4998 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
4999
5000 wxPyEndAllowThreads(__tstate);
5001 if (PyErr_Occurred()) SWIG_fail;
5002 }
5003 resultobj = SWIG_PyObj_FromBool((bool)result);
5004 return resultobj;
5005 fail:
5006 return NULL;
5007 }
5008
5009
5010 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5011 PyObject *resultobj;
5012 wxRegion *arg1 = (wxRegion *) 0 ;
5013 int arg2 ;
5014 int arg3 ;
5015 int arg4 ;
5016 int arg5 ;
5017 bool result;
5018 PyObject * obj0 = 0 ;
5019 PyObject * obj1 = 0 ;
5020 PyObject * obj2 = 0 ;
5021 PyObject * obj3 = 0 ;
5022 PyObject * obj4 = 0 ;
5023 char *kwnames[] = {
5024 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5025 };
5026
5027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5028 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5029 {
5030 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5031 if (PyErr_Occurred()) SWIG_fail;
5032 }
5033 {
5034 arg3 = (int) SWIG_PyObj_AsInt(obj2);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 {
5038 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5039 if (PyErr_Occurred()) SWIG_fail;
5040 }
5041 {
5042 arg5 = (int) SWIG_PyObj_AsInt(obj4);
5043 if (PyErr_Occurred()) SWIG_fail;
5044 }
5045 {
5046 PyThreadState* __tstate = wxPyBeginAllowThreads();
5047 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5048
5049 wxPyEndAllowThreads(__tstate);
5050 if (PyErr_Occurred()) SWIG_fail;
5051 }
5052 resultobj = SWIG_PyObj_FromBool((bool)result);
5053 return resultobj;
5054 fail:
5055 return NULL;
5056 }
5057
5058
5059 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5060 PyObject *resultobj;
5061 wxRegion *arg1 = (wxRegion *) 0 ;
5062 wxRect *arg2 = 0 ;
5063 bool result;
5064 wxRect temp2 ;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 char *kwnames[] = {
5068 (char *) "self",(char *) "rect", NULL
5069 };
5070
5071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5072 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5073 {
5074 arg2 = &temp2;
5075 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5076 }
5077 {
5078 PyThreadState* __tstate = wxPyBeginAllowThreads();
5079 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5080
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 resultobj = SWIG_PyObj_FromBool((bool)result);
5085 return resultobj;
5086 fail:
5087 return NULL;
5088 }
5089
5090
5091 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5092 PyObject *resultobj;
5093 wxRegion *arg1 = (wxRegion *) 0 ;
5094 wxRegion *arg2 = 0 ;
5095 bool result;
5096 PyObject * obj0 = 0 ;
5097 PyObject * obj1 = 0 ;
5098 char *kwnames[] = {
5099 (char *) "self",(char *) "region", NULL
5100 };
5101
5102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5105 if (arg2 == NULL) {
5106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5107 }
5108 {
5109 PyThreadState* __tstate = wxPyBeginAllowThreads();
5110 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5111
5112 wxPyEndAllowThreads(__tstate);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 }
5115 resultobj = SWIG_PyObj_FromBool((bool)result);
5116 return resultobj;
5117 fail:
5118 return NULL;
5119 }
5120
5121
5122 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5123 PyObject *resultobj;
5124 wxRegion *arg1 = (wxRegion *) 0 ;
5125 SwigValueWrapper< wxBitmap > result;
5126 PyObject * obj0 = 0 ;
5127 char *kwnames[] = {
5128 (char *) "self", NULL
5129 };
5130
5131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 result = (arg1)->ConvertToBitmap();
5136
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 {
5141 wxBitmap * resultptr;
5142 resultptr = new wxBitmap((wxBitmap &) result);
5143 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxBitmap, 1);
5144 }
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj;
5153 wxRegion *arg1 = (wxRegion *) 0 ;
5154 wxBitmap *arg2 = 0 ;
5155 wxColour const &arg3_defvalue = wxNullColour ;
5156 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5157 int arg4 = (int) 0 ;
5158 bool result;
5159 wxColour temp3 ;
5160 PyObject * obj0 = 0 ;
5161 PyObject * obj1 = 0 ;
5162 PyObject * obj2 = 0 ;
5163 PyObject * obj3 = 0 ;
5164 char *kwnames[] = {
5165 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5166 };
5167
5168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5170 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5171 if (arg2 == NULL) {
5172 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5173 }
5174 if (obj2) {
5175 {
5176 arg3 = &temp3;
5177 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5178 }
5179 }
5180 if (obj3) {
5181 {
5182 arg4 = (int) SWIG_PyObj_AsInt(obj3);
5183 if (PyErr_Occurred()) SWIG_fail;
5184 }
5185 }
5186 {
5187 PyThreadState* __tstate = wxPyBeginAllowThreads();
5188 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5189
5190 wxPyEndAllowThreads(__tstate);
5191 if (PyErr_Occurred()) SWIG_fail;
5192 }
5193 resultobj = SWIG_PyObj_FromBool((bool)result);
5194 return resultobj;
5195 fail:
5196 return NULL;
5197 }
5198
5199
5200 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5201 PyObject *obj;
5202 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5203 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5204 Py_INCREF(obj);
5205 return Py_BuildValue((char *)"");
5206 }
5207 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5208 PyObject *resultobj;
5209 wxRegion *arg1 = 0 ;
5210 wxRegionIterator *result;
5211 PyObject * obj0 = 0 ;
5212 char *kwnames[] = {
5213 (char *) "region", NULL
5214 };
5215
5216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5217 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5218 if (arg1 == NULL) {
5219 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5220 }
5221 {
5222 PyThreadState* __tstate = wxPyBeginAllowThreads();
5223 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5224
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxRegionIterator, 1);
5229 return resultobj;
5230 fail:
5231 return NULL;
5232 }
5233
5234
5235 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5236 PyObject *resultobj;
5237 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5238 PyObject * obj0 = 0 ;
5239 char *kwnames[] = {
5240 (char *) "self", NULL
5241 };
5242
5243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5244 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5245 {
5246 PyThreadState* __tstate = wxPyBeginAllowThreads();
5247 delete arg1;
5248
5249 wxPyEndAllowThreads(__tstate);
5250 if (PyErr_Occurred()) SWIG_fail;
5251 }
5252 Py_INCREF(Py_None); resultobj = Py_None;
5253 return resultobj;
5254 fail:
5255 return NULL;
5256 }
5257
5258
5259 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5260 PyObject *resultobj;
5261 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5262 int result;
5263 PyObject * obj0 = 0 ;
5264 char *kwnames[] = {
5265 (char *) "self", NULL
5266 };
5267
5268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5269 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5270 {
5271 PyThreadState* __tstate = wxPyBeginAllowThreads();
5272 result = (int)(arg1)->GetX();
5273
5274 wxPyEndAllowThreads(__tstate);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 resultobj = SWIG_PyObj_FromInt((int)result);
5278 return resultobj;
5279 fail:
5280 return NULL;
5281 }
5282
5283
5284 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5285 PyObject *resultobj;
5286 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5287 int result;
5288 PyObject * obj0 = 0 ;
5289 char *kwnames[] = {
5290 (char *) "self", NULL
5291 };
5292
5293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5295 {
5296 PyThreadState* __tstate = wxPyBeginAllowThreads();
5297 result = (int)(arg1)->GetY();
5298
5299 wxPyEndAllowThreads(__tstate);
5300 if (PyErr_Occurred()) SWIG_fail;
5301 }
5302 resultobj = SWIG_PyObj_FromInt((int)result);
5303 return resultobj;
5304 fail:
5305 return NULL;
5306 }
5307
5308
5309 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5310 PyObject *resultobj;
5311 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5312 int result;
5313 PyObject * obj0 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "self", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5320 {
5321 PyThreadState* __tstate = wxPyBeginAllowThreads();
5322 result = (int)(arg1)->GetW();
5323
5324 wxPyEndAllowThreads(__tstate);
5325 if (PyErr_Occurred()) SWIG_fail;
5326 }
5327 resultobj = SWIG_PyObj_FromInt((int)result);
5328 return resultobj;
5329 fail:
5330 return NULL;
5331 }
5332
5333
5334 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj;
5336 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5337 int result;
5338 PyObject * obj0 = 0 ;
5339 char *kwnames[] = {
5340 (char *) "self", NULL
5341 };
5342
5343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5344 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5345 {
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 result = (int)(arg1)->GetWidth();
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 resultobj = SWIG_PyObj_FromInt((int)result);
5353 return resultobj;
5354 fail:
5355 return NULL;
5356 }
5357
5358
5359 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj;
5361 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5362 int result;
5363 PyObject * obj0 = 0 ;
5364 char *kwnames[] = {
5365 (char *) "self", NULL
5366 };
5367
5368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5369 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5370 {
5371 PyThreadState* __tstate = wxPyBeginAllowThreads();
5372 result = (int)(arg1)->GetH();
5373
5374 wxPyEndAllowThreads(__tstate);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 resultobj = SWIG_PyObj_FromInt((int)result);
5378 return resultobj;
5379 fail:
5380 return NULL;
5381 }
5382
5383
5384 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5385 PyObject *resultobj;
5386 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5387 int result;
5388 PyObject * obj0 = 0 ;
5389 char *kwnames[] = {
5390 (char *) "self", NULL
5391 };
5392
5393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5394 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5395 {
5396 PyThreadState* __tstate = wxPyBeginAllowThreads();
5397 result = (int)(arg1)->GetHeight();
5398
5399 wxPyEndAllowThreads(__tstate);
5400 if (PyErr_Occurred()) SWIG_fail;
5401 }
5402 resultobj = SWIG_PyObj_FromInt((int)result);
5403 return resultobj;
5404 fail:
5405 return NULL;
5406 }
5407
5408
5409 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5410 PyObject *resultobj;
5411 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5412 wxRect result;
5413 PyObject * obj0 = 0 ;
5414 char *kwnames[] = {
5415 (char *) "self", NULL
5416 };
5417
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5419 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 result = (arg1)->GetRect();
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 {
5428 wxRect * resultptr;
5429 resultptr = new wxRect((wxRect &) result);
5430 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
5431 }
5432 return resultobj;
5433 fail:
5434 return NULL;
5435 }
5436
5437
5438 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5439 PyObject *resultobj;
5440 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5441 bool result;
5442 PyObject * obj0 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5449 {
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 result = (bool)(arg1)->HaveRects();
5452
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_PyObj_FromBool((bool)result);
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj;
5465 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5466 PyObject * obj0 = 0 ;
5467 char *kwnames[] = {
5468 (char *) "self", NULL
5469 };
5470
5471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5472 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5473 {
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 (arg1)->Reset();
5476
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 Py_INCREF(Py_None); resultobj = Py_None;
5481 return resultobj;
5482 fail:
5483 return NULL;
5484 }
5485
5486
5487 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5490 PyObject * obj0 = 0 ;
5491 char *kwnames[] = {
5492 (char *) "self", NULL
5493 };
5494
5495 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5496 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5497 {
5498 PyThreadState* __tstate = wxPyBeginAllowThreads();
5499 wxRegionIterator_Next(arg1);
5500
5501 wxPyEndAllowThreads(__tstate);
5502 if (PyErr_Occurred()) SWIG_fail;
5503 }
5504 Py_INCREF(Py_None); resultobj = Py_None;
5505 return resultobj;
5506 fail:
5507 return NULL;
5508 }
5509
5510
5511 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5512 PyObject *resultobj;
5513 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5514 bool result;
5515 PyObject * obj0 = 0 ;
5516 char *kwnames[] = {
5517 (char *) "self", NULL
5518 };
5519
5520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5521 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxRegionIterator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5522 {
5523 PyThreadState* __tstate = wxPyBeginAllowThreads();
5524 result = (bool)wxRegionIterator___nonzero__(arg1);
5525
5526 wxPyEndAllowThreads(__tstate);
5527 if (PyErr_Occurred()) SWIG_fail;
5528 }
5529 resultobj = SWIG_PyObj_FromBool((bool)result);
5530 return resultobj;
5531 fail:
5532 return NULL;
5533 }
5534
5535
5536 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5537 PyObject *obj;
5538 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5539 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5540 Py_INCREF(obj);
5541 return Py_BuildValue((char *)"");
5542 }
5543 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj;
5545 wxNativeFontInfo *result;
5546 char *kwnames[] = {
5547 NULL
5548 };
5549
5550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5551 {
5552 PyThreadState* __tstate = wxPyBeginAllowThreads();
5553 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5554
5555 wxPyEndAllowThreads(__tstate);
5556 if (PyErr_Occurred()) SWIG_fail;
5557 }
5558 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 1);
5559 return resultobj;
5560 fail:
5561 return NULL;
5562 }
5563
5564
5565 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5566 PyObject *resultobj;
5567 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5568 PyObject * obj0 = 0 ;
5569 char *kwnames[] = {
5570 (char *) "self", NULL
5571 };
5572
5573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5574 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 delete arg1;
5578
5579 wxPyEndAllowThreads(__tstate);
5580 if (PyErr_Occurred()) SWIG_fail;
5581 }
5582 Py_INCREF(Py_None); resultobj = Py_None;
5583 return resultobj;
5584 fail:
5585 return NULL;
5586 }
5587
5588
5589 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5590 PyObject *resultobj;
5591 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5592 PyObject * obj0 = 0 ;
5593 char *kwnames[] = {
5594 (char *) "self", NULL
5595 };
5596
5597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5598 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5599 {
5600 PyThreadState* __tstate = wxPyBeginAllowThreads();
5601 (arg1)->Init();
5602
5603 wxPyEndAllowThreads(__tstate);
5604 if (PyErr_Occurred()) SWIG_fail;
5605 }
5606 Py_INCREF(Py_None); resultobj = Py_None;
5607 return resultobj;
5608 fail:
5609 return NULL;
5610 }
5611
5612
5613 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5614 PyObject *resultobj;
5615 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5616 wxFont *arg2 = 0 ;
5617 PyObject * obj0 = 0 ;
5618 PyObject * obj1 = 0 ;
5619 char *kwnames[] = {
5620 (char *) "self",(char *) "font", NULL
5621 };
5622
5623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5624 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5625 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5626 if (arg2 == NULL) {
5627 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
5628 }
5629 {
5630 PyThreadState* __tstate = wxPyBeginAllowThreads();
5631 (arg1)->InitFromFont((wxFont const &)*arg2);
5632
5633 wxPyEndAllowThreads(__tstate);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 Py_INCREF(Py_None); resultobj = Py_None;
5637 return resultobj;
5638 fail:
5639 return NULL;
5640 }
5641
5642
5643 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5644 PyObject *resultobj;
5645 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5646 int result;
5647 PyObject * obj0 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5654 {
5655 PyThreadState* __tstate = wxPyBeginAllowThreads();
5656 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5657
5658 wxPyEndAllowThreads(__tstate);
5659 if (PyErr_Occurred()) SWIG_fail;
5660 }
5661 resultobj = SWIG_PyObj_FromInt((int)result);
5662 return resultobj;
5663 fail:
5664 return NULL;
5665 }
5666
5667
5668 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5669 PyObject *resultobj;
5670 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5671 int result;
5672 PyObject * obj0 = 0 ;
5673 char *kwnames[] = {
5674 (char *) "self", NULL
5675 };
5676
5677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
5678 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5679 {
5680 PyThreadState* __tstate = wxPyBeginAllowThreads();
5681 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
5682
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 resultobj = SWIG_PyObj_FromInt((int)result);
5687 return resultobj;
5688 fail:
5689 return NULL;
5690 }
5691
5692
5693 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5694 PyObject *resultobj;
5695 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5696 int result;
5697 PyObject * obj0 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5704 {
5705 PyThreadState* __tstate = wxPyBeginAllowThreads();
5706 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
5707
5708 wxPyEndAllowThreads(__tstate);
5709 if (PyErr_Occurred()) SWIG_fail;
5710 }
5711 resultobj = SWIG_PyObj_FromInt((int)result);
5712 return resultobj;
5713 fail:
5714 return NULL;
5715 }
5716
5717
5718 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5719 PyObject *resultobj;
5720 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5721 bool result;
5722 PyObject * obj0 = 0 ;
5723 char *kwnames[] = {
5724 (char *) "self", NULL
5725 };
5726
5727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
5728 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5729 {
5730 PyThreadState* __tstate = wxPyBeginAllowThreads();
5731 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
5732
5733 wxPyEndAllowThreads(__tstate);
5734 if (PyErr_Occurred()) SWIG_fail;
5735 }
5736 resultobj = SWIG_PyObj_FromBool((bool)result);
5737 return resultobj;
5738 fail:
5739 return NULL;
5740 }
5741
5742
5743 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5744 PyObject *resultobj;
5745 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5746 wxString result;
5747 PyObject * obj0 = 0 ;
5748 char *kwnames[] = {
5749 (char *) "self", NULL
5750 };
5751
5752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
5753 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5754 {
5755 PyThreadState* __tstate = wxPyBeginAllowThreads();
5756 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
5757
5758 wxPyEndAllowThreads(__tstate);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 }
5761 {
5762 #if wxUSE_UNICODE
5763 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
5764 #else
5765 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
5766 #endif
5767 }
5768 return resultobj;
5769 fail:
5770 return NULL;
5771 }
5772
5773
5774 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5775 PyObject *resultobj;
5776 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5777 int result;
5778 PyObject * obj0 = 0 ;
5779 char *kwnames[] = {
5780 (char *) "self", NULL
5781 };
5782
5783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
5784 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5785 {
5786 PyThreadState* __tstate = wxPyBeginAllowThreads();
5787 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
5788
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 resultobj = SWIG_PyObj_FromInt((int)result);
5793 return resultobj;
5794 fail:
5795 return NULL;
5796 }
5797
5798
5799 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj;
5801 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5802 int result;
5803 PyObject * obj0 = 0 ;
5804 char *kwnames[] = {
5805 (char *) "self", NULL
5806 };
5807
5808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
5809 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5810 {
5811 PyThreadState* __tstate = wxPyBeginAllowThreads();
5812 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
5813
5814 wxPyEndAllowThreads(__tstate);
5815 if (PyErr_Occurred()) SWIG_fail;
5816 }
5817 resultobj = SWIG_PyObj_FromInt((int)result);
5818 return resultobj;
5819 fail:
5820 return NULL;
5821 }
5822
5823
5824 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5825 PyObject *resultobj;
5826 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5827 int arg2 ;
5828 PyObject * obj0 = 0 ;
5829 PyObject * obj1 = 0 ;
5830 char *kwnames[] = {
5831 (char *) "self",(char *) "pointsize", NULL
5832 };
5833
5834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
5835 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5836 {
5837 arg2 = (int) SWIG_PyObj_AsInt(obj1);
5838 if (PyErr_Occurred()) SWIG_fail;
5839 }
5840 {
5841 PyThreadState* __tstate = wxPyBeginAllowThreads();
5842 (arg1)->SetPointSize(arg2);
5843
5844 wxPyEndAllowThreads(__tstate);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 }
5847 Py_INCREF(Py_None); resultobj = Py_None;
5848 return resultobj;
5849 fail:
5850 return NULL;
5851 }
5852
5853
5854 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5855 PyObject *resultobj;
5856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5857 int arg2 ;
5858 PyObject * obj0 = 0 ;
5859 PyObject * obj1 = 0 ;
5860 char *kwnames[] = {
5861 (char *) "self",(char *) "style", NULL
5862 };
5863
5864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
5865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5866 {
5867 arg2 = (wxFontStyle) SWIG_PyObj_AsInt(obj1);
5868 if (PyErr_Occurred()) SWIG_fail;
5869 }
5870 {
5871 PyThreadState* __tstate = wxPyBeginAllowThreads();
5872 (arg1)->SetStyle((wxFontStyle )arg2);
5873
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 Py_INCREF(Py_None); resultobj = Py_None;
5878 return resultobj;
5879 fail:
5880 return NULL;
5881 }
5882
5883
5884 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5885 PyObject *resultobj;
5886 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5887 int arg2 ;
5888 PyObject * obj0 = 0 ;
5889 PyObject * obj1 = 0 ;
5890 char *kwnames[] = {
5891 (char *) "self",(char *) "weight", NULL
5892 };
5893
5894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
5895 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5896 {
5897 arg2 = (wxFontWeight) SWIG_PyObj_AsInt(obj1);
5898 if (PyErr_Occurred()) SWIG_fail;
5899 }
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 (arg1)->SetWeight((wxFontWeight )arg2);
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 Py_INCREF(Py_None); resultobj = Py_None;
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5917 bool arg2 ;
5918 PyObject * obj0 = 0 ;
5919 PyObject * obj1 = 0 ;
5920 char *kwnames[] = {
5921 (char *) "self",(char *) "underlined", NULL
5922 };
5923
5924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
5925 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5926 {
5927 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 (arg1)->SetUnderlined(arg2);
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 Py_INCREF(Py_None); resultobj = Py_None;
5938 return resultobj;
5939 fail:
5940 return NULL;
5941 }
5942
5943
5944 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
5945 PyObject *resultobj;
5946 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5947 wxString arg2 ;
5948 PyObject * obj0 = 0 ;
5949 PyObject * obj1 = 0 ;
5950 char *kwnames[] = {
5951 (char *) "self",(char *) "facename", NULL
5952 };
5953
5954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
5955 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5956 {
5957 wxString* sptr = wxString_in_helper(obj1);
5958 if (sptr == NULL) SWIG_fail;
5959 arg2 = *sptr;
5960 delete sptr;
5961 }
5962 {
5963 PyThreadState* __tstate = wxPyBeginAllowThreads();
5964 (arg1)->SetFaceName(arg2);
5965
5966 wxPyEndAllowThreads(__tstate);
5967 if (PyErr_Occurred()) SWIG_fail;
5968 }
5969 Py_INCREF(Py_None); resultobj = Py_None;
5970 return resultobj;
5971 fail:
5972 return NULL;
5973 }
5974
5975
5976 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
5977 PyObject *resultobj;
5978 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5979 int arg2 ;
5980 PyObject * obj0 = 0 ;
5981 PyObject * obj1 = 0 ;
5982 char *kwnames[] = {
5983 (char *) "self",(char *) "family", NULL
5984 };
5985
5986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
5987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
5988 {
5989 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 {
5993 PyThreadState* __tstate = wxPyBeginAllowThreads();
5994 (arg1)->SetFamily((wxFontFamily )arg2);
5995
5996 wxPyEndAllowThreads(__tstate);
5997 if (PyErr_Occurred()) SWIG_fail;
5998 }
5999 Py_INCREF(Py_None); resultobj = Py_None;
6000 return resultobj;
6001 fail:
6002 return NULL;
6003 }
6004
6005
6006 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6007 PyObject *resultobj;
6008 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6009 int arg2 ;
6010 PyObject * obj0 = 0 ;
6011 PyObject * obj1 = 0 ;
6012 char *kwnames[] = {
6013 (char *) "self",(char *) "encoding", NULL
6014 };
6015
6016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6017 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6018 {
6019 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6020 if (PyErr_Occurred()) SWIG_fail;
6021 }
6022 {
6023 PyThreadState* __tstate = wxPyBeginAllowThreads();
6024 (arg1)->SetEncoding((wxFontEncoding )arg2);
6025
6026 wxPyEndAllowThreads(__tstate);
6027 if (PyErr_Occurred()) SWIG_fail;
6028 }
6029 Py_INCREF(Py_None); resultobj = Py_None;
6030 return resultobj;
6031 fail:
6032 return NULL;
6033 }
6034
6035
6036 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6037 PyObject *resultobj;
6038 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6039 wxString *arg2 = 0 ;
6040 bool result;
6041 bool temp2 = False ;
6042 PyObject * obj0 = 0 ;
6043 PyObject * obj1 = 0 ;
6044 char *kwnames[] = {
6045 (char *) "self",(char *) "s", NULL
6046 };
6047
6048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6049 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6050 {
6051 arg2 = wxString_in_helper(obj1);
6052 if (arg2 == NULL) SWIG_fail;
6053 temp2 = True;
6054 }
6055 {
6056 PyThreadState* __tstate = wxPyBeginAllowThreads();
6057 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6058
6059 wxPyEndAllowThreads(__tstate);
6060 if (PyErr_Occurred()) SWIG_fail;
6061 }
6062 resultobj = SWIG_PyObj_FromBool((bool)result);
6063 {
6064 if (temp2)
6065 delete arg2;
6066 }
6067 return resultobj;
6068 fail:
6069 {
6070 if (temp2)
6071 delete arg2;
6072 }
6073 return NULL;
6074 }
6075
6076
6077 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6078 PyObject *resultobj;
6079 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6080 wxString result;
6081 PyObject * obj0 = 0 ;
6082 char *kwnames[] = {
6083 (char *) "self", NULL
6084 };
6085
6086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6087 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6088 {
6089 PyThreadState* __tstate = wxPyBeginAllowThreads();
6090 result = ((wxNativeFontInfo const *)arg1)->ToString();
6091
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 {
6096 #if wxUSE_UNICODE
6097 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6098 #else
6099 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6100 #endif
6101 }
6102 return resultobj;
6103 fail:
6104 return NULL;
6105 }
6106
6107
6108 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6109 PyObject *resultobj;
6110 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6111 wxString result;
6112 PyObject * obj0 = 0 ;
6113 char *kwnames[] = {
6114 (char *) "self", NULL
6115 };
6116
6117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6119 {
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 result = wxNativeFontInfo___str__(arg1);
6122
6123 wxPyEndAllowThreads(__tstate);
6124 if (PyErr_Occurred()) SWIG_fail;
6125 }
6126 {
6127 #if wxUSE_UNICODE
6128 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6129 #else
6130 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6131 #endif
6132 }
6133 return resultobj;
6134 fail:
6135 return NULL;
6136 }
6137
6138
6139 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6140 PyObject *resultobj;
6141 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6142 wxString *arg2 = 0 ;
6143 bool result;
6144 bool temp2 = False ;
6145 PyObject * obj0 = 0 ;
6146 PyObject * obj1 = 0 ;
6147 char *kwnames[] = {
6148 (char *) "self",(char *) "s", NULL
6149 };
6150
6151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6152 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6153 {
6154 arg2 = wxString_in_helper(obj1);
6155 if (arg2 == NULL) SWIG_fail;
6156 temp2 = True;
6157 }
6158 {
6159 PyThreadState* __tstate = wxPyBeginAllowThreads();
6160 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6161
6162 wxPyEndAllowThreads(__tstate);
6163 if (PyErr_Occurred()) SWIG_fail;
6164 }
6165 resultobj = SWIG_PyObj_FromBool((bool)result);
6166 {
6167 if (temp2)
6168 delete arg2;
6169 }
6170 return resultobj;
6171 fail:
6172 {
6173 if (temp2)
6174 delete arg2;
6175 }
6176 return NULL;
6177 }
6178
6179
6180 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6181 PyObject *resultobj;
6182 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6183 wxString result;
6184 PyObject * obj0 = 0 ;
6185 char *kwnames[] = {
6186 (char *) "self", NULL
6187 };
6188
6189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6190 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6191 {
6192 PyThreadState* __tstate = wxPyBeginAllowThreads();
6193 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6194
6195 wxPyEndAllowThreads(__tstate);
6196 if (PyErr_Occurred()) SWIG_fail;
6197 }
6198 {
6199 #if wxUSE_UNICODE
6200 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6201 #else
6202 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6203 #endif
6204 }
6205 return resultobj;
6206 fail:
6207 return NULL;
6208 }
6209
6210
6211 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6212 PyObject *obj;
6213 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6214 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6215 Py_INCREF(obj);
6216 return Py_BuildValue((char *)"");
6217 }
6218 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj;
6220 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6221 wxString *arg2 = (wxString *) 0 ;
6222 bool temp2 = False ;
6223 PyObject * obj0 = 0 ;
6224 PyObject * obj1 = 0 ;
6225 char *kwnames[] = {
6226 (char *) "self",(char *) "facename", NULL
6227 };
6228
6229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6230 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6231 {
6232 arg2 = wxString_in_helper(obj1);
6233 if (arg2 == NULL) SWIG_fail;
6234 temp2 = True;
6235 }
6236 if (arg1) (arg1)->facename = *arg2;
6237
6238 Py_INCREF(Py_None); resultobj = Py_None;
6239 {
6240 if (temp2)
6241 delete arg2;
6242 }
6243 return resultobj;
6244 fail:
6245 {
6246 if (temp2)
6247 delete arg2;
6248 }
6249 return NULL;
6250 }
6251
6252
6253 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6254 PyObject *resultobj;
6255 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6256 wxString *result;
6257 PyObject * obj0 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6264 result = (wxString *)& ((arg1)->facename);
6265
6266 {
6267 #if wxUSE_UNICODE
6268 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6269 #else
6270 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6271 #endif
6272 }
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6282 int arg2 ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 char *kwnames[] = {
6286 (char *) "self",(char *) "encoding", NULL
6287 };
6288
6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6290 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6291 {
6292 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6296
6297 Py_INCREF(Py_None); resultobj = Py_None;
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6305 PyObject *resultobj;
6306 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6307 int result;
6308 PyObject * obj0 = 0 ;
6309 char *kwnames[] = {
6310 (char *) "self", NULL
6311 };
6312
6313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6314 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6315 result = (int) ((arg1)->encoding);
6316
6317 resultobj = SWIG_PyObj_FromInt((int)result);
6318 return resultobj;
6319 fail:
6320 return NULL;
6321 }
6322
6323
6324 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6325 PyObject *resultobj;
6326 wxNativeEncodingInfo *result;
6327 char *kwnames[] = {
6328 NULL
6329 };
6330
6331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6335
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
6339 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 1);
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6347 PyObject *resultobj;
6348 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6349 PyObject * obj0 = 0 ;
6350 char *kwnames[] = {
6351 (char *) "self", NULL
6352 };
6353
6354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6355 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6356 {
6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
6358 delete arg1;
6359
6360 wxPyEndAllowThreads(__tstate);
6361 if (PyErr_Occurred()) SWIG_fail;
6362 }
6363 Py_INCREF(Py_None); resultobj = Py_None;
6364 return resultobj;
6365 fail:
6366 return NULL;
6367 }
6368
6369
6370 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6371 PyObject *resultobj;
6372 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6373 wxString *arg2 = 0 ;
6374 bool result;
6375 bool temp2 = False ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 char *kwnames[] = {
6379 (char *) "self",(char *) "s", NULL
6380 };
6381
6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6383 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6384 {
6385 arg2 = wxString_in_helper(obj1);
6386 if (arg2 == NULL) SWIG_fail;
6387 temp2 = True;
6388 }
6389 {
6390 PyThreadState* __tstate = wxPyBeginAllowThreads();
6391 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6392
6393 wxPyEndAllowThreads(__tstate);
6394 if (PyErr_Occurred()) SWIG_fail;
6395 }
6396 resultobj = SWIG_PyObj_FromBool((bool)result);
6397 {
6398 if (temp2)
6399 delete arg2;
6400 }
6401 return resultobj;
6402 fail:
6403 {
6404 if (temp2)
6405 delete arg2;
6406 }
6407 return NULL;
6408 }
6409
6410
6411 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6412 PyObject *resultobj;
6413 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6414 wxString result;
6415 PyObject * obj0 = 0 ;
6416 char *kwnames[] = {
6417 (char *) "self", NULL
6418 };
6419
6420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6421 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6422 {
6423 PyThreadState* __tstate = wxPyBeginAllowThreads();
6424 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6425
6426 wxPyEndAllowThreads(__tstate);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 }
6429 {
6430 #if wxUSE_UNICODE
6431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6432 #else
6433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6434 #endif
6435 }
6436 return resultobj;
6437 fail:
6438 return NULL;
6439 }
6440
6441
6442 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6443 PyObject *obj;
6444 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6445 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6446 Py_INCREF(obj);
6447 return Py_BuildValue((char *)"");
6448 }
6449 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6450 PyObject *resultobj;
6451 int arg1 ;
6452 wxNativeEncodingInfo *result;
6453 PyObject * obj0 = 0 ;
6454 char *kwnames[] = {
6455 (char *) "encoding", NULL
6456 };
6457
6458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6459 {
6460 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeEncodingInfo, 0);
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject *resultobj;
6479 wxNativeEncodingInfo *arg1 = 0 ;
6480 bool result;
6481 PyObject * obj0 = 0 ;
6482 char *kwnames[] = {
6483 (char *) "info", NULL
6484 };
6485
6486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6487 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeEncodingInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6488 if (arg1 == NULL) {
6489 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
6490 }
6491 {
6492 PyThreadState* __tstate = wxPyBeginAllowThreads();
6493 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6494
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 resultobj = SWIG_PyObj_FromBool((bool)result);
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6506 PyObject *resultobj;
6507 wxFontMapper *result;
6508 char *kwnames[] = {
6509 NULL
6510 };
6511
6512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6513 {
6514 PyThreadState* __tstate = wxPyBeginAllowThreads();
6515 result = (wxFontMapper *)new wxFontMapper();
6516
6517 wxPyEndAllowThreads(__tstate);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 1);
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj;
6529 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6530 PyObject * obj0 = 0 ;
6531 char *kwnames[] = {
6532 (char *) "self", NULL
6533 };
6534
6535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6536 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6537 {
6538 PyThreadState* __tstate = wxPyBeginAllowThreads();
6539 delete arg1;
6540
6541 wxPyEndAllowThreads(__tstate);
6542 if (PyErr_Occurred()) SWIG_fail;
6543 }
6544 Py_INCREF(Py_None); resultobj = Py_None;
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxFontMapper *result;
6554 char *kwnames[] = {
6555 NULL
6556 };
6557
6558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6559 {
6560 PyThreadState* __tstate = wxPyBeginAllowThreads();
6561 result = (wxFontMapper *)wxFontMapper::Get();
6562
6563 wxPyEndAllowThreads(__tstate);
6564 if (PyErr_Occurred()) SWIG_fail;
6565 }
6566 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6567 return resultobj;
6568 fail:
6569 return NULL;
6570 }
6571
6572
6573 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6574 PyObject *resultobj;
6575 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6576 wxFontMapper *result;
6577 PyObject * obj0 = 0 ;
6578 char *kwnames[] = {
6579 (char *) "mapper", NULL
6580 };
6581
6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6583 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFontMapper, 0);
6592 return resultobj;
6593 fail:
6594 return NULL;
6595 }
6596
6597
6598 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6599 PyObject *resultobj;
6600 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6601 wxString *arg2 = 0 ;
6602 bool arg3 = (bool) True ;
6603 int result;
6604 bool temp2 = False ;
6605 PyObject * obj0 = 0 ;
6606 PyObject * obj1 = 0 ;
6607 PyObject * obj2 = 0 ;
6608 char *kwnames[] = {
6609 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6610 };
6611
6612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6613 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6614 {
6615 arg2 = wxString_in_helper(obj1);
6616 if (arg2 == NULL) SWIG_fail;
6617 temp2 = True;
6618 }
6619 if (obj2) {
6620 {
6621 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
6622 if (PyErr_Occurred()) SWIG_fail;
6623 }
6624 }
6625 {
6626 PyThreadState* __tstate = wxPyBeginAllowThreads();
6627 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6628
6629 wxPyEndAllowThreads(__tstate);
6630 if (PyErr_Occurred()) SWIG_fail;
6631 }
6632 resultobj = SWIG_PyObj_FromInt((int)result);
6633 {
6634 if (temp2)
6635 delete arg2;
6636 }
6637 return resultobj;
6638 fail:
6639 {
6640 if (temp2)
6641 delete arg2;
6642 }
6643 return NULL;
6644 }
6645
6646
6647 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6648 PyObject *resultobj;
6649 size_t result;
6650 char *kwnames[] = {
6651 NULL
6652 };
6653
6654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
6655 {
6656 PyThreadState* __tstate = wxPyBeginAllowThreads();
6657 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
6658
6659 wxPyEndAllowThreads(__tstate);
6660 if (PyErr_Occurred()) SWIG_fail;
6661 }
6662 resultobj = SWIG_PyObj_FromUnsignedLong((unsigned long)result);
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj;
6671 size_t arg1 ;
6672 int result;
6673 PyObject * obj0 = 0 ;
6674 char *kwnames[] = {
6675 (char *) "n", NULL
6676 };
6677
6678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
6679 {
6680 arg1 = (size_t) SWIG_PyObj_AsUnsignedLong(obj0);
6681 if (PyErr_Occurred()) SWIG_fail;
6682 }
6683 {
6684 PyThreadState* __tstate = wxPyBeginAllowThreads();
6685 result = (int)wxFontMapper::GetEncoding(arg1);
6686
6687 wxPyEndAllowThreads(__tstate);
6688 if (PyErr_Occurred()) SWIG_fail;
6689 }
6690 resultobj = SWIG_PyObj_FromInt((int)result);
6691 return resultobj;
6692 fail:
6693 return NULL;
6694 }
6695
6696
6697 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject *resultobj;
6699 int arg1 ;
6700 wxString result;
6701 PyObject * obj0 = 0 ;
6702 char *kwnames[] = {
6703 (char *) "encoding", NULL
6704 };
6705
6706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
6707 {
6708 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 {
6712 PyThreadState* __tstate = wxPyBeginAllowThreads();
6713 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
6714
6715 wxPyEndAllowThreads(__tstate);
6716 if (PyErr_Occurred()) SWIG_fail;
6717 }
6718 {
6719 #if wxUSE_UNICODE
6720 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6721 #else
6722 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6723 #endif
6724 }
6725 return resultobj;
6726 fail:
6727 return NULL;
6728 }
6729
6730
6731 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
6732 PyObject *resultobj;
6733 int arg1 ;
6734 wxString result;
6735 PyObject * obj0 = 0 ;
6736 char *kwnames[] = {
6737 (char *) "encoding", NULL
6738 };
6739
6740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
6741 {
6742 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 {
6746 PyThreadState* __tstate = wxPyBeginAllowThreads();
6747 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
6748
6749 wxPyEndAllowThreads(__tstate);
6750 if (PyErr_Occurred()) SWIG_fail;
6751 }
6752 {
6753 #if wxUSE_UNICODE
6754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6755 #else
6756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6757 #endif
6758 }
6759 return resultobj;
6760 fail:
6761 return NULL;
6762 }
6763
6764
6765 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
6766 PyObject *resultobj;
6767 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6768 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
6769 PyObject * obj0 = 0 ;
6770 PyObject * obj1 = 0 ;
6771 char *kwnames[] = {
6772 (char *) "self",(char *) "config", NULL
6773 };
6774
6775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
6776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6777 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxConfigBase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6778 {
6779 PyThreadState* __tstate = wxPyBeginAllowThreads();
6780 (arg1)->SetConfig(arg2);
6781
6782 wxPyEndAllowThreads(__tstate);
6783 if (PyErr_Occurred()) SWIG_fail;
6784 }
6785 Py_INCREF(Py_None); resultobj = Py_None;
6786 return resultobj;
6787 fail:
6788 return NULL;
6789 }
6790
6791
6792 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6793 PyObject *resultobj;
6794 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6795 wxString *arg2 = 0 ;
6796 bool temp2 = False ;
6797 PyObject * obj0 = 0 ;
6798 PyObject * obj1 = 0 ;
6799 char *kwnames[] = {
6800 (char *) "self",(char *) "prefix", NULL
6801 };
6802
6803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
6804 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6805 {
6806 arg2 = wxString_in_helper(obj1);
6807 if (arg2 == NULL) SWIG_fail;
6808 temp2 = True;
6809 }
6810 {
6811 PyThreadState* __tstate = wxPyBeginAllowThreads();
6812 (arg1)->SetConfigPath((wxString const &)*arg2);
6813
6814 wxPyEndAllowThreads(__tstate);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 Py_INCREF(Py_None); resultobj = Py_None;
6818 {
6819 if (temp2)
6820 delete arg2;
6821 }
6822 return resultobj;
6823 fail:
6824 {
6825 if (temp2)
6826 delete arg2;
6827 }
6828 return NULL;
6829 }
6830
6831
6832 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
6833 PyObject *resultobj;
6834 wxString result;
6835 char *kwnames[] = {
6836 NULL
6837 };
6838
6839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 result = wxFontMapper::GetDefaultConfigPath();
6843
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 {
6848 #if wxUSE_UNICODE
6849 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6850 #else
6851 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6852 #endif
6853 }
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6863 int arg2 ;
6864 wxString const &arg3_defvalue = wxPyEmptyString ;
6865 wxString *arg3 = (wxString *) &arg3_defvalue ;
6866 bool arg4 = (bool) True ;
6867 PyObject *result;
6868 bool temp3 = False ;
6869 PyObject * obj0 = 0 ;
6870 PyObject * obj1 = 0 ;
6871 PyObject * obj2 = 0 ;
6872 PyObject * obj3 = 0 ;
6873 char *kwnames[] = {
6874 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
6875 };
6876
6877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6878 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6879 {
6880 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6881 if (PyErr_Occurred()) SWIG_fail;
6882 }
6883 if (obj2) {
6884 {
6885 arg3 = wxString_in_helper(obj2);
6886 if (arg3 == NULL) SWIG_fail;
6887 temp3 = True;
6888 }
6889 }
6890 if (obj3) {
6891 {
6892 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
6893 if (PyErr_Occurred()) SWIG_fail;
6894 }
6895 }
6896 {
6897 PyThreadState* __tstate = wxPyBeginAllowThreads();
6898 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
6899
6900 wxPyEndAllowThreads(__tstate);
6901 if (PyErr_Occurred()) SWIG_fail;
6902 }
6903 resultobj = result;
6904 {
6905 if (temp3)
6906 delete arg3;
6907 }
6908 return resultobj;
6909 fail:
6910 {
6911 if (temp3)
6912 delete arg3;
6913 }
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6921 int arg2 ;
6922 wxString const &arg3_defvalue = wxPyEmptyString ;
6923 wxString *arg3 = (wxString *) &arg3_defvalue ;
6924 bool result;
6925 bool temp3 = False ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928 PyObject * obj2 = 0 ;
6929 char *kwnames[] = {
6930 (char *) "self",(char *) "encoding",(char *) "facename", NULL
6931 };
6932
6933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
6934 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6935 {
6936 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
6937 if (PyErr_Occurred()) SWIG_fail;
6938 }
6939 if (obj2) {
6940 {
6941 arg3 = wxString_in_helper(obj2);
6942 if (arg3 == NULL) SWIG_fail;
6943 temp3 = True;
6944 }
6945 }
6946 {
6947 PyThreadState* __tstate = wxPyBeginAllowThreads();
6948 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
6949
6950 wxPyEndAllowThreads(__tstate);
6951 if (PyErr_Occurred()) SWIG_fail;
6952 }
6953 resultobj = SWIG_PyObj_FromBool((bool)result);
6954 {
6955 if (temp3)
6956 delete arg3;
6957 }
6958 return resultobj;
6959 fail:
6960 {
6961 if (temp3)
6962 delete arg3;
6963 }
6964 return NULL;
6965 }
6966
6967
6968 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
6969 PyObject *resultobj;
6970 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6971 wxWindow *arg2 = (wxWindow *) 0 ;
6972 PyObject * obj0 = 0 ;
6973 PyObject * obj1 = 0 ;
6974 char *kwnames[] = {
6975 (char *) "self",(char *) "parent", NULL
6976 };
6977
6978 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
6979 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6980 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
6981 {
6982 PyThreadState* __tstate = wxPyBeginAllowThreads();
6983 (arg1)->SetDialogParent(arg2);
6984
6985 wxPyEndAllowThreads(__tstate);
6986 if (PyErr_Occurred()) SWIG_fail;
6987 }
6988 Py_INCREF(Py_None); resultobj = Py_None;
6989 return resultobj;
6990 fail:
6991 return NULL;
6992 }
6993
6994
6995 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
6996 PyObject *resultobj;
6997 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6998 wxString *arg2 = 0 ;
6999 bool temp2 = False ;
7000 PyObject * obj0 = 0 ;
7001 PyObject * obj1 = 0 ;
7002 char *kwnames[] = {
7003 (char *) "self",(char *) "title", NULL
7004 };
7005
7006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7007 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontMapper,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7008 {
7009 arg2 = wxString_in_helper(obj1);
7010 if (arg2 == NULL) SWIG_fail;
7011 temp2 = True;
7012 }
7013 {
7014 PyThreadState* __tstate = wxPyBeginAllowThreads();
7015 (arg1)->SetDialogTitle((wxString const &)*arg2);
7016
7017 wxPyEndAllowThreads(__tstate);
7018 if (PyErr_Occurred()) SWIG_fail;
7019 }
7020 Py_INCREF(Py_None); resultobj = Py_None;
7021 {
7022 if (temp2)
7023 delete arg2;
7024 }
7025 return resultobj;
7026 fail:
7027 {
7028 if (temp2)
7029 delete arg2;
7030 }
7031 return NULL;
7032 }
7033
7034
7035 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7036 PyObject *obj;
7037 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7038 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7039 Py_INCREF(obj);
7040 return Py_BuildValue((char *)"");
7041 }
7042 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7043 PyObject *resultobj;
7044 int arg1 ;
7045 int arg2 ;
7046 int arg3 ;
7047 int arg4 ;
7048 bool arg5 = (bool) False ;
7049 wxString const &arg6_defvalue = wxPyEmptyString ;
7050 wxString *arg6 = (wxString *) &arg6_defvalue ;
7051 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7052 wxFont *result;
7053 bool temp6 = False ;
7054 PyObject * obj0 = 0 ;
7055 PyObject * obj1 = 0 ;
7056 PyObject * obj2 = 0 ;
7057 PyObject * obj3 = 0 ;
7058 PyObject * obj4 = 0 ;
7059 PyObject * obj5 = 0 ;
7060 PyObject * obj6 = 0 ;
7061 char *kwnames[] = {
7062 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7063 };
7064
7065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7066 {
7067 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7068 if (PyErr_Occurred()) SWIG_fail;
7069 }
7070 {
7071 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7072 if (PyErr_Occurred()) SWIG_fail;
7073 }
7074 {
7075 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 {
7079 arg4 = (int) SWIG_PyObj_AsInt(obj3);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 if (obj4) {
7083 {
7084 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 }
7088 if (obj5) {
7089 {
7090 arg6 = wxString_in_helper(obj5);
7091 if (arg6 == NULL) SWIG_fail;
7092 temp6 = True;
7093 }
7094 }
7095 if (obj6) {
7096 {
7097 arg7 = (wxFontEncoding) SWIG_PyObj_AsInt(obj6);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 }
7101 {
7102 PyThreadState* __tstate = wxPyBeginAllowThreads();
7103 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7104
7105 wxPyEndAllowThreads(__tstate);
7106 if (PyErr_Occurred()) SWIG_fail;
7107 }
7108 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7109 {
7110 if (temp6)
7111 delete arg6;
7112 }
7113 return resultobj;
7114 fail:
7115 {
7116 if (temp6)
7117 delete arg6;
7118 }
7119 return NULL;
7120 }
7121
7122
7123 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj;
7125 wxFont *arg1 = (wxFont *) 0 ;
7126 PyObject * obj0 = 0 ;
7127 char *kwnames[] = {
7128 (char *) "self", NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7132 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7133 {
7134 PyThreadState* __tstate = wxPyBeginAllowThreads();
7135 delete arg1;
7136
7137 wxPyEndAllowThreads(__tstate);
7138 if (PyErr_Occurred()) SWIG_fail;
7139 }
7140 Py_INCREF(Py_None); resultobj = Py_None;
7141 return resultobj;
7142 fail:
7143 return NULL;
7144 }
7145
7146
7147 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7148 PyObject *resultobj;
7149 wxNativeFontInfo *arg1 = 0 ;
7150 wxFont *result;
7151 PyObject * obj0 = 0 ;
7152 char *kwnames[] = {
7153 (char *) "info", NULL
7154 };
7155
7156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7157 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7158 if (arg1 == NULL) {
7159 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7160 }
7161 {
7162 PyThreadState* __tstate = wxPyBeginAllowThreads();
7163 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7164
7165 wxPyEndAllowThreads(__tstate);
7166 if (PyErr_Occurred()) SWIG_fail;
7167 }
7168 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7169 return resultobj;
7170 fail:
7171 return NULL;
7172 }
7173
7174
7175 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7176 PyObject *resultobj;
7177 wxString *arg1 = 0 ;
7178 wxFont *result;
7179 bool temp1 = False ;
7180 PyObject * obj0 = 0 ;
7181 char *kwnames[] = {
7182 (char *) "info", NULL
7183 };
7184
7185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7186 {
7187 arg1 = wxString_in_helper(obj0);
7188 if (arg1 == NULL) SWIG_fail;
7189 temp1 = True;
7190 }
7191 {
7192 PyThreadState* __tstate = wxPyBeginAllowThreads();
7193 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7194
7195 wxPyEndAllowThreads(__tstate);
7196 if (PyErr_Occurred()) SWIG_fail;
7197 }
7198 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7199 {
7200 if (temp1)
7201 delete arg1;
7202 }
7203 return resultobj;
7204 fail:
7205 {
7206 if (temp1)
7207 delete arg1;
7208 }
7209 return NULL;
7210 }
7211
7212
7213 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7214 PyObject *resultobj;
7215 int arg1 ;
7216 int arg2 ;
7217 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7218 wxString const &arg4_defvalue = wxPyEmptyString ;
7219 wxString *arg4 = (wxString *) &arg4_defvalue ;
7220 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7221 wxFont *result;
7222 bool temp4 = False ;
7223 PyObject * obj0 = 0 ;
7224 PyObject * obj1 = 0 ;
7225 PyObject * obj2 = 0 ;
7226 PyObject * obj3 = 0 ;
7227 PyObject * obj4 = 0 ;
7228 char *kwnames[] = {
7229 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7230 };
7231
7232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7233 {
7234 arg1 = (int) SWIG_PyObj_AsInt(obj0);
7235 if (PyErr_Occurred()) SWIG_fail;
7236 }
7237 {
7238 arg2 = (wxFontFamily) SWIG_PyObj_AsInt(obj1);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 if (obj2) {
7242 {
7243 arg3 = (int) SWIG_PyObj_AsInt(obj2);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 }
7247 if (obj3) {
7248 {
7249 arg4 = wxString_in_helper(obj3);
7250 if (arg4 == NULL) SWIG_fail;
7251 temp4 = True;
7252 }
7253 }
7254 if (obj4) {
7255 {
7256 arg5 = (wxFontEncoding) SWIG_PyObj_AsInt(obj4);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 }
7260 {
7261 PyThreadState* __tstate = wxPyBeginAllowThreads();
7262 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7263
7264 wxPyEndAllowThreads(__tstate);
7265 if (PyErr_Occurred()) SWIG_fail;
7266 }
7267 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 1);
7268 {
7269 if (temp4)
7270 delete arg4;
7271 }
7272 return resultobj;
7273 fail:
7274 {
7275 if (temp4)
7276 delete arg4;
7277 }
7278 return NULL;
7279 }
7280
7281
7282 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7283 PyObject *resultobj;
7284 wxFont *arg1 = (wxFont *) 0 ;
7285 bool result;
7286 PyObject * obj0 = 0 ;
7287 char *kwnames[] = {
7288 (char *) "self", NULL
7289 };
7290
7291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7292 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7293 {
7294 PyThreadState* __tstate = wxPyBeginAllowThreads();
7295 result = (bool)((wxFont const *)arg1)->Ok();
7296
7297 wxPyEndAllowThreads(__tstate);
7298 if (PyErr_Occurred()) SWIG_fail;
7299 }
7300 resultobj = SWIG_PyObj_FromBool((bool)result);
7301 return resultobj;
7302 fail:
7303 return NULL;
7304 }
7305
7306
7307 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 wxFont *arg1 = (wxFont *) 0 ;
7310 wxFont *arg2 = 0 ;
7311 bool result;
7312 PyObject * obj0 = 0 ;
7313 PyObject * obj1 = 0 ;
7314 char *kwnames[] = {
7315 (char *) "self",(char *) "font", NULL
7316 };
7317
7318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7319 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7320 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7321 if (arg2 == NULL) {
7322 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7323 }
7324 {
7325 PyThreadState* __tstate = wxPyBeginAllowThreads();
7326 result = (bool)((wxFont const *)arg1)->operator ==((wxFont const &)*arg2);
7327
7328 wxPyEndAllowThreads(__tstate);
7329 if (PyErr_Occurred()) SWIG_fail;
7330 }
7331 resultobj = SWIG_PyObj_FromBool((bool)result);
7332 return resultobj;
7333 fail:
7334 return NULL;
7335 }
7336
7337
7338 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7339 PyObject *resultobj;
7340 wxFont *arg1 = (wxFont *) 0 ;
7341 wxFont *arg2 = 0 ;
7342 bool result;
7343 PyObject * obj0 = 0 ;
7344 PyObject * obj1 = 0 ;
7345 char *kwnames[] = {
7346 (char *) "self",(char *) "font", NULL
7347 };
7348
7349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7350 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7351 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7352 if (arg2 == NULL) {
7353 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7354 }
7355 {
7356 PyThreadState* __tstate = wxPyBeginAllowThreads();
7357 result = (bool)((wxFont const *)arg1)->operator !=((wxFont const &)*arg2);
7358
7359 wxPyEndAllowThreads(__tstate);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = SWIG_PyObj_FromBool((bool)result);
7363 return resultobj;
7364 fail:
7365 return NULL;
7366 }
7367
7368
7369 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7370 PyObject *resultobj;
7371 wxFont *arg1 = (wxFont *) 0 ;
7372 int result;
7373 PyObject * obj0 = 0 ;
7374 char *kwnames[] = {
7375 (char *) "self", NULL
7376 };
7377
7378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7380 {
7381 PyThreadState* __tstate = wxPyBeginAllowThreads();
7382 result = (int)((wxFont const *)arg1)->GetPointSize();
7383
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 resultobj = SWIG_PyObj_FromInt((int)result);
7388 return resultobj;
7389 fail:
7390 return NULL;
7391 }
7392
7393
7394 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7395 PyObject *resultobj;
7396 wxFont *arg1 = (wxFont *) 0 ;
7397 int result;
7398 PyObject * obj0 = 0 ;
7399 char *kwnames[] = {
7400 (char *) "self", NULL
7401 };
7402
7403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7404 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7405 {
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = (int)((wxFont const *)arg1)->GetFamily();
7408
7409 wxPyEndAllowThreads(__tstate);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 resultobj = SWIG_PyObj_FromInt((int)result);
7413 return resultobj;
7414 fail:
7415 return NULL;
7416 }
7417
7418
7419 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7420 PyObject *resultobj;
7421 wxFont *arg1 = (wxFont *) 0 ;
7422 int result;
7423 PyObject * obj0 = 0 ;
7424 char *kwnames[] = {
7425 (char *) "self", NULL
7426 };
7427
7428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7429 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7430 {
7431 PyThreadState* __tstate = wxPyBeginAllowThreads();
7432 result = (int)((wxFont const *)arg1)->GetStyle();
7433
7434 wxPyEndAllowThreads(__tstate);
7435 if (PyErr_Occurred()) SWIG_fail;
7436 }
7437 resultobj = SWIG_PyObj_FromInt((int)result);
7438 return resultobj;
7439 fail:
7440 return NULL;
7441 }
7442
7443
7444 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7445 PyObject *resultobj;
7446 wxFont *arg1 = (wxFont *) 0 ;
7447 int result;
7448 PyObject * obj0 = 0 ;
7449 char *kwnames[] = {
7450 (char *) "self", NULL
7451 };
7452
7453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7454 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7455 {
7456 PyThreadState* __tstate = wxPyBeginAllowThreads();
7457 result = (int)((wxFont const *)arg1)->GetWeight();
7458
7459 wxPyEndAllowThreads(__tstate);
7460 if (PyErr_Occurred()) SWIG_fail;
7461 }
7462 resultobj = SWIG_PyObj_FromInt((int)result);
7463 return resultobj;
7464 fail:
7465 return NULL;
7466 }
7467
7468
7469 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7470 PyObject *resultobj;
7471 wxFont *arg1 = (wxFont *) 0 ;
7472 bool result;
7473 PyObject * obj0 = 0 ;
7474 char *kwnames[] = {
7475 (char *) "self", NULL
7476 };
7477
7478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7480 {
7481 PyThreadState* __tstate = wxPyBeginAllowThreads();
7482 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7483
7484 wxPyEndAllowThreads(__tstate);
7485 if (PyErr_Occurred()) SWIG_fail;
7486 }
7487 resultobj = SWIG_PyObj_FromBool((bool)result);
7488 return resultobj;
7489 fail:
7490 return NULL;
7491 }
7492
7493
7494 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7495 PyObject *resultobj;
7496 wxFont *arg1 = (wxFont *) 0 ;
7497 wxString result;
7498 PyObject * obj0 = 0 ;
7499 char *kwnames[] = {
7500 (char *) "self", NULL
7501 };
7502
7503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7504 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7505 {
7506 PyThreadState* __tstate = wxPyBeginAllowThreads();
7507 result = ((wxFont const *)arg1)->GetFaceName();
7508
7509 wxPyEndAllowThreads(__tstate);
7510 if (PyErr_Occurred()) SWIG_fail;
7511 }
7512 {
7513 #if wxUSE_UNICODE
7514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7515 #else
7516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7517 #endif
7518 }
7519 return resultobj;
7520 fail:
7521 return NULL;
7522 }
7523
7524
7525 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7526 PyObject *resultobj;
7527 wxFont *arg1 = (wxFont *) 0 ;
7528 int result;
7529 PyObject * obj0 = 0 ;
7530 char *kwnames[] = {
7531 (char *) "self", NULL
7532 };
7533
7534 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7535 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7536 {
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 result = (int)((wxFont const *)arg1)->GetEncoding();
7539
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 resultobj = SWIG_PyObj_FromInt((int)result);
7544 return resultobj;
7545 fail:
7546 return NULL;
7547 }
7548
7549
7550 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7551 PyObject *resultobj;
7552 wxFont *arg1 = (wxFont *) 0 ;
7553 wxNativeFontInfo *result;
7554 PyObject * obj0 = 0 ;
7555 char *kwnames[] = {
7556 (char *) "self", NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7560 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7561 {
7562 PyThreadState* __tstate = wxPyBeginAllowThreads();
7563 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7564
7565 wxPyEndAllowThreads(__tstate);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxNativeFontInfo, 0);
7569 return resultobj;
7570 fail:
7571 return NULL;
7572 }
7573
7574
7575 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7576 PyObject *resultobj;
7577 wxFont *arg1 = (wxFont *) 0 ;
7578 bool result;
7579 PyObject * obj0 = 0 ;
7580 char *kwnames[] = {
7581 (char *) "self", NULL
7582 };
7583
7584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 resultobj = SWIG_PyObj_FromBool((bool)result);
7594 return resultobj;
7595 fail:
7596 return NULL;
7597 }
7598
7599
7600 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj;
7602 wxFont *arg1 = (wxFont *) 0 ;
7603 wxString result;
7604 PyObject * obj0 = 0 ;
7605 char *kwnames[] = {
7606 (char *) "self", NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7610 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7611 {
7612 PyThreadState* __tstate = wxPyBeginAllowThreads();
7613 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7614
7615 wxPyEndAllowThreads(__tstate);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 }
7618 {
7619 #if wxUSE_UNICODE
7620 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7621 #else
7622 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7623 #endif
7624 }
7625 return resultobj;
7626 fail:
7627 return NULL;
7628 }
7629
7630
7631 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7632 PyObject *resultobj;
7633 wxFont *arg1 = (wxFont *) 0 ;
7634 wxString result;
7635 PyObject * obj0 = 0 ;
7636 char *kwnames[] = {
7637 (char *) "self", NULL
7638 };
7639
7640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
7641 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7642 {
7643 PyThreadState* __tstate = wxPyBeginAllowThreads();
7644 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
7645
7646 wxPyEndAllowThreads(__tstate);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 {
7650 #if wxUSE_UNICODE
7651 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7652 #else
7653 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7654 #endif
7655 }
7656 return resultobj;
7657 fail:
7658 return NULL;
7659 }
7660
7661
7662 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7663 PyObject *resultobj;
7664 wxFont *arg1 = (wxFont *) 0 ;
7665 int arg2 ;
7666 PyObject * obj0 = 0 ;
7667 PyObject * obj1 = 0 ;
7668 char *kwnames[] = {
7669 (char *) "self",(char *) "pointSize", NULL
7670 };
7671
7672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
7673 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7674 {
7675 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7676 if (PyErr_Occurred()) SWIG_fail;
7677 }
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 (arg1)->SetPointSize(arg2);
7681
7682 wxPyEndAllowThreads(__tstate);
7683 if (PyErr_Occurred()) SWIG_fail;
7684 }
7685 Py_INCREF(Py_None); resultobj = Py_None;
7686 return resultobj;
7687 fail:
7688 return NULL;
7689 }
7690
7691
7692 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7693 PyObject *resultobj;
7694 wxFont *arg1 = (wxFont *) 0 ;
7695 int arg2 ;
7696 PyObject * obj0 = 0 ;
7697 PyObject * obj1 = 0 ;
7698 char *kwnames[] = {
7699 (char *) "self",(char *) "family", NULL
7700 };
7701
7702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7703 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7704 {
7705 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7706 if (PyErr_Occurred()) SWIG_fail;
7707 }
7708 {
7709 PyThreadState* __tstate = wxPyBeginAllowThreads();
7710 (arg1)->SetFamily(arg2);
7711
7712 wxPyEndAllowThreads(__tstate);
7713 if (PyErr_Occurred()) SWIG_fail;
7714 }
7715 Py_INCREF(Py_None); resultobj = Py_None;
7716 return resultobj;
7717 fail:
7718 return NULL;
7719 }
7720
7721
7722 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7723 PyObject *resultobj;
7724 wxFont *arg1 = (wxFont *) 0 ;
7725 int arg2 ;
7726 PyObject * obj0 = 0 ;
7727 PyObject * obj1 = 0 ;
7728 char *kwnames[] = {
7729 (char *) "self",(char *) "style", NULL
7730 };
7731
7732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
7733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7734 {
7735 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7736 if (PyErr_Occurred()) SWIG_fail;
7737 }
7738 {
7739 PyThreadState* __tstate = wxPyBeginAllowThreads();
7740 (arg1)->SetStyle(arg2);
7741
7742 wxPyEndAllowThreads(__tstate);
7743 if (PyErr_Occurred()) SWIG_fail;
7744 }
7745 Py_INCREF(Py_None); resultobj = Py_None;
7746 return resultobj;
7747 fail:
7748 return NULL;
7749 }
7750
7751
7752 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7753 PyObject *resultobj;
7754 wxFont *arg1 = (wxFont *) 0 ;
7755 int arg2 ;
7756 PyObject * obj0 = 0 ;
7757 PyObject * obj1 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self",(char *) "weight", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7764 {
7765 arg2 = (int) SWIG_PyObj_AsInt(obj1);
7766 if (PyErr_Occurred()) SWIG_fail;
7767 }
7768 {
7769 PyThreadState* __tstate = wxPyBeginAllowThreads();
7770 (arg1)->SetWeight(arg2);
7771
7772 wxPyEndAllowThreads(__tstate);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 Py_INCREF(Py_None); resultobj = Py_None;
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7783 PyObject *resultobj;
7784 wxFont *arg1 = (wxFont *) 0 ;
7785 wxString *arg2 = 0 ;
7786 bool temp2 = False ;
7787 PyObject * obj0 = 0 ;
7788 PyObject * obj1 = 0 ;
7789 char *kwnames[] = {
7790 (char *) "self",(char *) "faceName", NULL
7791 };
7792
7793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
7794 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7795 {
7796 arg2 = wxString_in_helper(obj1);
7797 if (arg2 == NULL) SWIG_fail;
7798 temp2 = True;
7799 }
7800 {
7801 PyThreadState* __tstate = wxPyBeginAllowThreads();
7802 (arg1)->SetFaceName((wxString const &)*arg2);
7803
7804 wxPyEndAllowThreads(__tstate);
7805 if (PyErr_Occurred()) SWIG_fail;
7806 }
7807 Py_INCREF(Py_None); resultobj = Py_None;
7808 {
7809 if (temp2)
7810 delete arg2;
7811 }
7812 return resultobj;
7813 fail:
7814 {
7815 if (temp2)
7816 delete arg2;
7817 }
7818 return NULL;
7819 }
7820
7821
7822 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7823 PyObject *resultobj;
7824 wxFont *arg1 = (wxFont *) 0 ;
7825 bool arg2 ;
7826 PyObject * obj0 = 0 ;
7827 PyObject * obj1 = 0 ;
7828 char *kwnames[] = {
7829 (char *) "self",(char *) "underlined", NULL
7830 };
7831
7832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
7833 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7834 {
7835 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
7836 if (PyErr_Occurred()) SWIG_fail;
7837 }
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 (arg1)->SetUnderlined(arg2);
7841
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 Py_INCREF(Py_None); resultobj = Py_None;
7846 return resultobj;
7847 fail:
7848 return NULL;
7849 }
7850
7851
7852 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7853 PyObject *resultobj;
7854 wxFont *arg1 = (wxFont *) 0 ;
7855 int arg2 ;
7856 PyObject * obj0 = 0 ;
7857 PyObject * obj1 = 0 ;
7858 char *kwnames[] = {
7859 (char *) "self",(char *) "encoding", NULL
7860 };
7861
7862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7864 {
7865 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
7866 if (PyErr_Occurred()) SWIG_fail;
7867 }
7868 {
7869 PyThreadState* __tstate = wxPyBeginAllowThreads();
7870 (arg1)->SetEncoding((wxFontEncoding )arg2);
7871
7872 wxPyEndAllowThreads(__tstate);
7873 if (PyErr_Occurred()) SWIG_fail;
7874 }
7875 Py_INCREF(Py_None); resultobj = Py_None;
7876 return resultobj;
7877 fail:
7878 return NULL;
7879 }
7880
7881
7882 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7883 PyObject *resultobj;
7884 wxFont *arg1 = (wxFont *) 0 ;
7885 wxNativeFontInfo *arg2 = 0 ;
7886 PyObject * obj0 = 0 ;
7887 PyObject * obj1 = 0 ;
7888 char *kwnames[] = {
7889 (char *) "self",(char *) "info", NULL
7890 };
7891
7892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
7893 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7894 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxNativeFontInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7895 if (arg2 == NULL) {
7896 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
7897 }
7898 {
7899 PyThreadState* __tstate = wxPyBeginAllowThreads();
7900 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
7901
7902 wxPyEndAllowThreads(__tstate);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 }
7905 Py_INCREF(Py_None); resultobj = Py_None;
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxFont *arg1 = (wxFont *) 0 ;
7915 wxString *arg2 = 0 ;
7916 bool temp2 = False ;
7917 PyObject * obj0 = 0 ;
7918 PyObject * obj1 = 0 ;
7919 char *kwnames[] = {
7920 (char *) "self",(char *) "info", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
7924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7925 {
7926 arg2 = wxString_in_helper(obj1);
7927 if (arg2 == NULL) SWIG_fail;
7928 temp2 = True;
7929 }
7930 {
7931 PyThreadState* __tstate = wxPyBeginAllowThreads();
7932 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
7933
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 Py_INCREF(Py_None); resultobj = Py_None;
7938 {
7939 if (temp2)
7940 delete arg2;
7941 }
7942 return resultobj;
7943 fail:
7944 {
7945 if (temp2)
7946 delete arg2;
7947 }
7948 return NULL;
7949 }
7950
7951
7952 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7953 PyObject *resultobj;
7954 wxFont *arg1 = (wxFont *) 0 ;
7955 wxString *arg2 = 0 ;
7956 bool temp2 = False ;
7957 PyObject * obj0 = 0 ;
7958 PyObject * obj1 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "self",(char *) "info", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
7964 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
7965 {
7966 arg2 = wxString_in_helper(obj1);
7967 if (arg2 == NULL) SWIG_fail;
7968 temp2 = True;
7969 }
7970 {
7971 PyThreadState* __tstate = wxPyBeginAllowThreads();
7972 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
7973
7974 wxPyEndAllowThreads(__tstate);
7975 if (PyErr_Occurred()) SWIG_fail;
7976 }
7977 Py_INCREF(Py_None); resultobj = Py_None;
7978 {
7979 if (temp2)
7980 delete arg2;
7981 }
7982 return resultobj;
7983 fail:
7984 {
7985 if (temp2)
7986 delete arg2;
7987 }
7988 return NULL;
7989 }
7990
7991
7992 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj;
7994 wxFont *arg1 = (wxFont *) 0 ;
7995 wxString result;
7996 PyObject * obj0 = 0 ;
7997 char *kwnames[] = {
7998 (char *) "self", NULL
7999 };
8000
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8002 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 result = ((wxFont const *)arg1)->GetFamilyString();
8006
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 {
8011 #if wxUSE_UNICODE
8012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8013 #else
8014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8015 #endif
8016 }
8017 return resultobj;
8018 fail:
8019 return NULL;
8020 }
8021
8022
8023 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8024 PyObject *resultobj;
8025 wxFont *arg1 = (wxFont *) 0 ;
8026 wxString result;
8027 PyObject * obj0 = 0 ;
8028 char *kwnames[] = {
8029 (char *) "self", NULL
8030 };
8031
8032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8033 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8034 {
8035 PyThreadState* __tstate = wxPyBeginAllowThreads();
8036 result = ((wxFont const *)arg1)->GetStyleString();
8037
8038 wxPyEndAllowThreads(__tstate);
8039 if (PyErr_Occurred()) SWIG_fail;
8040 }
8041 {
8042 #if wxUSE_UNICODE
8043 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8044 #else
8045 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8046 #endif
8047 }
8048 return resultobj;
8049 fail:
8050 return NULL;
8051 }
8052
8053
8054 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8055 PyObject *resultobj;
8056 wxFont *arg1 = (wxFont *) 0 ;
8057 wxString result;
8058 PyObject * obj0 = 0 ;
8059 char *kwnames[] = {
8060 (char *) "self", NULL
8061 };
8062
8063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8064 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8065 {
8066 PyThreadState* __tstate = wxPyBeginAllowThreads();
8067 result = ((wxFont const *)arg1)->GetWeightString();
8068
8069 wxPyEndAllowThreads(__tstate);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 }
8072 {
8073 #if wxUSE_UNICODE
8074 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8075 #else
8076 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8077 #endif
8078 }
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 wxFont *arg1 = (wxFont *) 0 ;
8088 bool arg2 = (bool) True ;
8089 PyObject * obj0 = 0 ;
8090 PyObject * obj1 = 0 ;
8091 char *kwnames[] = {
8092 (char *) "self",(char *) "no", NULL
8093 };
8094
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8096 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8097 if (obj1) {
8098 {
8099 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
8100 if (PyErr_Occurred()) SWIG_fail;
8101 }
8102 }
8103 {
8104 PyThreadState* __tstate = wxPyBeginAllowThreads();
8105 (arg1)->SetNoAntiAliasing(arg2);
8106
8107 wxPyEndAllowThreads(__tstate);
8108 if (PyErr_Occurred()) SWIG_fail;
8109 }
8110 Py_INCREF(Py_None); resultobj = Py_None;
8111 return resultobj;
8112 fail:
8113 return NULL;
8114 }
8115
8116
8117 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8118 PyObject *resultobj;
8119 wxFont *arg1 = (wxFont *) 0 ;
8120 bool result;
8121 PyObject * obj0 = 0 ;
8122 char *kwnames[] = {
8123 (char *) "self", NULL
8124 };
8125
8126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8127 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (bool)(arg1)->GetNoAntiAliasing();
8131
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 resultobj = SWIG_PyObj_FromBool((bool)result);
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj;
8144 int result;
8145 char *kwnames[] = {
8146 NULL
8147 };
8148
8149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8150 {
8151 PyThreadState* __tstate = wxPyBeginAllowThreads();
8152 result = (int)wxFont::GetDefaultEncoding();
8153
8154 wxPyEndAllowThreads(__tstate);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 }
8157 resultobj = SWIG_PyObj_FromInt((int)result);
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 int arg1 ;
8167 PyObject * obj0 = 0 ;
8168 char *kwnames[] = {
8169 (char *) "encoding", NULL
8170 };
8171
8172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8173 {
8174 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
8175 if (PyErr_Occurred()) SWIG_fail;
8176 }
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 Py_INCREF(Py_None); resultobj = Py_None;
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8192 PyObject *obj;
8193 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8194 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8195 Py_INCREF(obj);
8196 return Py_BuildValue((char *)"");
8197 }
8198 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj;
8200 wxPyFontEnumerator *result;
8201 char *kwnames[] = {
8202 NULL
8203 };
8204
8205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8206 {
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8209
8210 wxPyEndAllowThreads(__tstate);
8211 if (PyErr_Occurred()) SWIG_fail;
8212 }
8213 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPyFontEnumerator, 1);
8214 return resultobj;
8215 fail:
8216 return NULL;
8217 }
8218
8219
8220 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8221 PyObject *resultobj;
8222 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8223 PyObject * obj0 = 0 ;
8224 char *kwnames[] = {
8225 (char *) "self", NULL
8226 };
8227
8228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8229 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8230 {
8231 PyThreadState* __tstate = wxPyBeginAllowThreads();
8232 delete arg1;
8233
8234 wxPyEndAllowThreads(__tstate);
8235 if (PyErr_Occurred()) SWIG_fail;
8236 }
8237 Py_INCREF(Py_None); resultobj = Py_None;
8238 return resultobj;
8239 fail:
8240 return NULL;
8241 }
8242
8243
8244 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8245 PyObject *resultobj;
8246 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8247 PyObject *arg2 = (PyObject *) 0 ;
8248 PyObject *arg3 = (PyObject *) 0 ;
8249 bool arg4 ;
8250 PyObject * obj0 = 0 ;
8251 PyObject * obj1 = 0 ;
8252 PyObject * obj2 = 0 ;
8253 PyObject * obj3 = 0 ;
8254 char *kwnames[] = {
8255 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8256 };
8257
8258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8259 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8260 arg2 = obj1;
8261 arg3 = obj2;
8262 {
8263 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
8264 if (PyErr_Occurred()) SWIG_fail;
8265 }
8266 {
8267 PyThreadState* __tstate = wxPyBeginAllowThreads();
8268 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8269
8270 wxPyEndAllowThreads(__tstate);
8271 if (PyErr_Occurred()) SWIG_fail;
8272 }
8273 Py_INCREF(Py_None); resultobj = Py_None;
8274 return resultobj;
8275 fail:
8276 return NULL;
8277 }
8278
8279
8280 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8281 PyObject *resultobj;
8282 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8283 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8284 bool arg3 = (bool) False ;
8285 bool result;
8286 PyObject * obj0 = 0 ;
8287 PyObject * obj1 = 0 ;
8288 PyObject * obj2 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8295 if (obj1) {
8296 {
8297 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
8298 if (PyErr_Occurred()) SWIG_fail;
8299 }
8300 }
8301 if (obj2) {
8302 {
8303 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 }
8306 }
8307 {
8308 PyThreadState* __tstate = wxPyBeginAllowThreads();
8309 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8310
8311 wxPyEndAllowThreads(__tstate);
8312 if (PyErr_Occurred()) SWIG_fail;
8313 }
8314 resultobj = SWIG_PyObj_FromBool((bool)result);
8315 return resultobj;
8316 fail:
8317 return NULL;
8318 }
8319
8320
8321 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8322 PyObject *resultobj;
8323 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8324 wxString const &arg2_defvalue = wxPyEmptyString ;
8325 wxString *arg2 = (wxString *) &arg2_defvalue ;
8326 bool result;
8327 bool temp2 = False ;
8328 PyObject * obj0 = 0 ;
8329 PyObject * obj1 = 0 ;
8330 char *kwnames[] = {
8331 (char *) "self",(char *) "facename", NULL
8332 };
8333
8334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8336 if (obj1) {
8337 {
8338 arg2 = wxString_in_helper(obj1);
8339 if (arg2 == NULL) SWIG_fail;
8340 temp2 = True;
8341 }
8342 }
8343 {
8344 PyThreadState* __tstate = wxPyBeginAllowThreads();
8345 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8346
8347 wxPyEndAllowThreads(__tstate);
8348 if (PyErr_Occurred()) SWIG_fail;
8349 }
8350 resultobj = SWIG_PyObj_FromBool((bool)result);
8351 {
8352 if (temp2)
8353 delete arg2;
8354 }
8355 return resultobj;
8356 fail:
8357 {
8358 if (temp2)
8359 delete arg2;
8360 }
8361 return NULL;
8362 }
8363
8364
8365 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8366 PyObject *resultobj;
8367 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8368 PyObject *result;
8369 PyObject * obj0 = 0 ;
8370 char *kwnames[] = {
8371 (char *) "self", NULL
8372 };
8373
8374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8375 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8376 {
8377 PyThreadState* __tstate = wxPyBeginAllowThreads();
8378 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8379
8380 wxPyEndAllowThreads(__tstate);
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 resultobj = result;
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj;
8392 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8393 PyObject *result;
8394 PyObject * obj0 = 0 ;
8395 char *kwnames[] = {
8396 (char *) "self", NULL
8397 };
8398
8399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8400 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPyFontEnumerator,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8401 {
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8404
8405 wxPyEndAllowThreads(__tstate);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 resultobj = result;
8409 return resultobj;
8410 fail:
8411 return NULL;
8412 }
8413
8414
8415 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8416 PyObject *obj;
8417 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8418 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8419 Py_INCREF(obj);
8420 return Py_BuildValue((char *)"");
8421 }
8422 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8423 PyObject *resultobj;
8424 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8425 int arg2 ;
8426 PyObject * obj0 = 0 ;
8427 PyObject * obj1 = 0 ;
8428 char *kwnames[] = {
8429 (char *) "self",(char *) "Language", NULL
8430 };
8431
8432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8433 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8434 {
8435 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 if (arg1) (arg1)->Language = arg2;
8439
8440 Py_INCREF(Py_None); resultobj = Py_None;
8441 return resultobj;
8442 fail:
8443 return NULL;
8444 }
8445
8446
8447 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8448 PyObject *resultobj;
8449 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8450 int result;
8451 PyObject * obj0 = 0 ;
8452 char *kwnames[] = {
8453 (char *) "self", NULL
8454 };
8455
8456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8457 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8458 result = (int) ((arg1)->Language);
8459
8460 resultobj = SWIG_PyObj_FromInt((int)result);
8461 return resultobj;
8462 fail:
8463 return NULL;
8464 }
8465
8466
8467 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8468 PyObject *resultobj;
8469 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8470 wxString *arg2 = (wxString *) 0 ;
8471 bool temp2 = False ;
8472 PyObject * obj0 = 0 ;
8473 PyObject * obj1 = 0 ;
8474 char *kwnames[] = {
8475 (char *) "self",(char *) "CanonicalName", NULL
8476 };
8477
8478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8480 {
8481 arg2 = wxString_in_helper(obj1);
8482 if (arg2 == NULL) SWIG_fail;
8483 temp2 = True;
8484 }
8485 if (arg1) (arg1)->CanonicalName = *arg2;
8486
8487 Py_INCREF(Py_None); resultobj = Py_None;
8488 {
8489 if (temp2)
8490 delete arg2;
8491 }
8492 return resultobj;
8493 fail:
8494 {
8495 if (temp2)
8496 delete arg2;
8497 }
8498 return NULL;
8499 }
8500
8501
8502 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8503 PyObject *resultobj;
8504 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8505 wxString *result;
8506 PyObject * obj0 = 0 ;
8507 char *kwnames[] = {
8508 (char *) "self", NULL
8509 };
8510
8511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8512 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8513 result = (wxString *)& ((arg1)->CanonicalName);
8514
8515 {
8516 #if wxUSE_UNICODE
8517 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8518 #else
8519 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8520 #endif
8521 }
8522 return resultobj;
8523 fail:
8524 return NULL;
8525 }
8526
8527
8528 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8529 PyObject *resultobj;
8530 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8531 wxString *arg2 = (wxString *) 0 ;
8532 bool temp2 = False ;
8533 PyObject * obj0 = 0 ;
8534 PyObject * obj1 = 0 ;
8535 char *kwnames[] = {
8536 (char *) "self",(char *) "Description", NULL
8537 };
8538
8539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8540 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8541 {
8542 arg2 = wxString_in_helper(obj1);
8543 if (arg2 == NULL) SWIG_fail;
8544 temp2 = True;
8545 }
8546 if (arg1) (arg1)->Description = *arg2;
8547
8548 Py_INCREF(Py_None); resultobj = Py_None;
8549 {
8550 if (temp2)
8551 delete arg2;
8552 }
8553 return resultobj;
8554 fail:
8555 {
8556 if (temp2)
8557 delete arg2;
8558 }
8559 return NULL;
8560 }
8561
8562
8563 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8564 PyObject *resultobj;
8565 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8566 wxString *result;
8567 PyObject * obj0 = 0 ;
8568 char *kwnames[] = {
8569 (char *) "self", NULL
8570 };
8571
8572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8573 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8574 result = (wxString *)& ((arg1)->Description);
8575
8576 {
8577 #if wxUSE_UNICODE
8578 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8579 #else
8580 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8581 #endif
8582 }
8583 return resultobj;
8584 fail:
8585 return NULL;
8586 }
8587
8588
8589 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8590 PyObject *obj;
8591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8592 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8593 Py_INCREF(obj);
8594 return Py_BuildValue((char *)"");
8595 }
8596 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj;
8598 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8599 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8600 wxLocale *result;
8601 PyObject * obj0 = 0 ;
8602 PyObject * obj1 = 0 ;
8603 char *kwnames[] = {
8604 (char *) "language",(char *) "flags", NULL
8605 };
8606
8607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
8608 if (obj0) {
8609 {
8610 arg1 = (int) SWIG_PyObj_AsInt(obj0);
8611 if (PyErr_Occurred()) SWIG_fail;
8612 }
8613 }
8614 if (obj1) {
8615 {
8616 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8617 if (PyErr_Occurred()) SWIG_fail;
8618 }
8619 }
8620 {
8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
8622 result = (wxLocale *)new wxLocale(arg1,arg2);
8623
8624 wxPyEndAllowThreads(__tstate);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 1);
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxLocale *arg1 = (wxLocale *) 0 ;
8637 PyObject * obj0 = 0 ;
8638 char *kwnames[] = {
8639 (char *) "self", NULL
8640 };
8641
8642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
8643 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8644 {
8645 PyThreadState* __tstate = wxPyBeginAllowThreads();
8646 delete arg1;
8647
8648 wxPyEndAllowThreads(__tstate);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 Py_INCREF(Py_None); resultobj = Py_None;
8652 return resultobj;
8653 fail:
8654 return NULL;
8655 }
8656
8657
8658 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
8659 PyObject *resultobj;
8660 wxLocale *arg1 = (wxLocale *) 0 ;
8661 wxString *arg2 = 0 ;
8662 wxString const &arg3_defvalue = wxPyEmptyString ;
8663 wxString *arg3 = (wxString *) &arg3_defvalue ;
8664 wxString const &arg4_defvalue = wxPyEmptyString ;
8665 wxString *arg4 = (wxString *) &arg4_defvalue ;
8666 bool arg5 = (bool) True ;
8667 bool arg6 = (bool) False ;
8668 bool result;
8669 bool temp2 = False ;
8670 bool temp3 = False ;
8671 bool temp4 = False ;
8672 PyObject * obj0 = 0 ;
8673 PyObject * obj1 = 0 ;
8674 PyObject * obj2 = 0 ;
8675 PyObject * obj3 = 0 ;
8676 PyObject * obj4 = 0 ;
8677 PyObject * obj5 = 0 ;
8678 char *kwnames[] = {
8679 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
8683 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8684 {
8685 arg2 = wxString_in_helper(obj1);
8686 if (arg2 == NULL) SWIG_fail;
8687 temp2 = True;
8688 }
8689 if (obj2) {
8690 {
8691 arg3 = wxString_in_helper(obj2);
8692 if (arg3 == NULL) SWIG_fail;
8693 temp3 = True;
8694 }
8695 }
8696 if (obj3) {
8697 {
8698 arg4 = wxString_in_helper(obj3);
8699 if (arg4 == NULL) SWIG_fail;
8700 temp4 = True;
8701 }
8702 }
8703 if (obj4) {
8704 {
8705 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 }
8709 if (obj5) {
8710 {
8711 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
8712 if (PyErr_Occurred()) SWIG_fail;
8713 }
8714 }
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
8718
8719 wxPyEndAllowThreads(__tstate);
8720 if (PyErr_Occurred()) SWIG_fail;
8721 }
8722 resultobj = SWIG_PyObj_FromBool((bool)result);
8723 {
8724 if (temp2)
8725 delete arg2;
8726 }
8727 {
8728 if (temp3)
8729 delete arg3;
8730 }
8731 {
8732 if (temp4)
8733 delete arg4;
8734 }
8735 return resultobj;
8736 fail:
8737 {
8738 if (temp2)
8739 delete arg2;
8740 }
8741 {
8742 if (temp3)
8743 delete arg3;
8744 }
8745 {
8746 if (temp4)
8747 delete arg4;
8748 }
8749 return NULL;
8750 }
8751
8752
8753 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
8754 PyObject *resultobj;
8755 wxLocale *arg1 = (wxLocale *) 0 ;
8756 int arg2 = (int) wxLANGUAGE_DEFAULT ;
8757 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8758 bool result;
8759 PyObject * obj0 = 0 ;
8760 PyObject * obj1 = 0 ;
8761 PyObject * obj2 = 0 ;
8762 char *kwnames[] = {
8763 (char *) "self",(char *) "language",(char *) "flags", NULL
8764 };
8765
8766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
8767 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8768 if (obj1) {
8769 {
8770 arg2 = (int) SWIG_PyObj_AsInt(obj1);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 }
8774 if (obj2) {
8775 {
8776 arg3 = (int) SWIG_PyObj_AsInt(obj2);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 }
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 result = (bool)(arg1)->Init(arg2,arg3);
8783
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 resultobj = SWIG_PyObj_FromBool((bool)result);
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8795 PyObject *resultobj;
8796 int result;
8797 char *kwnames[] = {
8798 NULL
8799 };
8800
8801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
8802 {
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 result = (int)wxLocale::GetSystemLanguage();
8805
8806 wxPyEndAllowThreads(__tstate);
8807 if (PyErr_Occurred()) SWIG_fail;
8808 }
8809 resultobj = SWIG_PyObj_FromInt((int)result);
8810 return resultobj;
8811 fail:
8812 return NULL;
8813 }
8814
8815
8816 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8817 PyObject *resultobj;
8818 int result;
8819 char *kwnames[] = {
8820 NULL
8821 };
8822
8823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
8824 {
8825 PyThreadState* __tstate = wxPyBeginAllowThreads();
8826 result = (int)wxLocale::GetSystemEncoding();
8827
8828 wxPyEndAllowThreads(__tstate);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 }
8831 resultobj = SWIG_PyObj_FromInt((int)result);
8832 return resultobj;
8833 fail:
8834 return NULL;
8835 }
8836
8837
8838 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
8839 PyObject *resultobj;
8840 wxString result;
8841 char *kwnames[] = {
8842 NULL
8843 };
8844
8845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
8846 {
8847 PyThreadState* __tstate = wxPyBeginAllowThreads();
8848 result = wxLocale::GetSystemEncodingName();
8849
8850 wxPyEndAllowThreads(__tstate);
8851 if (PyErr_Occurred()) SWIG_fail;
8852 }
8853 {
8854 #if wxUSE_UNICODE
8855 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8856 #else
8857 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8858 #endif
8859 }
8860 return resultobj;
8861 fail:
8862 return NULL;
8863 }
8864
8865
8866 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
8867 PyObject *resultobj;
8868 wxLocale *arg1 = (wxLocale *) 0 ;
8869 bool result;
8870 PyObject * obj0 = 0 ;
8871 char *kwnames[] = {
8872 (char *) "self", NULL
8873 };
8874
8875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
8876 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8877 {
8878 PyThreadState* __tstate = wxPyBeginAllowThreads();
8879 result = (bool)((wxLocale const *)arg1)->IsOk();
8880
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 resultobj = SWIG_PyObj_FromBool((bool)result);
8885 return resultobj;
8886 fail:
8887 return NULL;
8888 }
8889
8890
8891 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj;
8893 wxLocale *arg1 = (wxLocale *) 0 ;
8894 wxString result;
8895 PyObject * obj0 = 0 ;
8896 char *kwnames[] = {
8897 (char *) "self", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
8901 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8902 {
8903 PyThreadState* __tstate = wxPyBeginAllowThreads();
8904 result = ((wxLocale const *)arg1)->GetLocale();
8905
8906 wxPyEndAllowThreads(__tstate);
8907 if (PyErr_Occurred()) SWIG_fail;
8908 }
8909 {
8910 #if wxUSE_UNICODE
8911 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8912 #else
8913 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8914 #endif
8915 }
8916 return resultobj;
8917 fail:
8918 return NULL;
8919 }
8920
8921
8922 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
8923 PyObject *resultobj;
8924 wxLocale *arg1 = (wxLocale *) 0 ;
8925 int result;
8926 PyObject * obj0 = 0 ;
8927 char *kwnames[] = {
8928 (char *) "self", NULL
8929 };
8930
8931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
8932 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8933 {
8934 PyThreadState* __tstate = wxPyBeginAllowThreads();
8935 result = (int)((wxLocale const *)arg1)->GetLanguage();
8936
8937 wxPyEndAllowThreads(__tstate);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 }
8940 resultobj = SWIG_PyObj_FromInt((int)result);
8941 return resultobj;
8942 fail:
8943 return NULL;
8944 }
8945
8946
8947 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
8948 PyObject *resultobj;
8949 wxLocale *arg1 = (wxLocale *) 0 ;
8950 wxString result;
8951 PyObject * obj0 = 0 ;
8952 char *kwnames[] = {
8953 (char *) "self", NULL
8954 };
8955
8956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
8957 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 result = ((wxLocale const *)arg1)->GetSysName();
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 {
8966 #if wxUSE_UNICODE
8967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8968 #else
8969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8970 #endif
8971 }
8972 return resultobj;
8973 fail:
8974 return NULL;
8975 }
8976
8977
8978 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
8979 PyObject *resultobj;
8980 wxLocale *arg1 = (wxLocale *) 0 ;
8981 wxString result;
8982 PyObject * obj0 = 0 ;
8983 char *kwnames[] = {
8984 (char *) "self", NULL
8985 };
8986
8987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
8988 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
8989 {
8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
8991 result = ((wxLocale const *)arg1)->GetCanonicalName();
8992
8993 wxPyEndAllowThreads(__tstate);
8994 if (PyErr_Occurred()) SWIG_fail;
8995 }
8996 {
8997 #if wxUSE_UNICODE
8998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8999 #else
9000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9001 #endif
9002 }
9003 return resultobj;
9004 fail:
9005 return NULL;
9006 }
9007
9008
9009 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9010 PyObject *resultobj;
9011 wxString *arg1 = 0 ;
9012 bool temp1 = False ;
9013 PyObject * obj0 = 0 ;
9014 char *kwnames[] = {
9015 (char *) "prefix", NULL
9016 };
9017
9018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9019 {
9020 arg1 = wxString_in_helper(obj0);
9021 if (arg1 == NULL) SWIG_fail;
9022 temp1 = True;
9023 }
9024 {
9025 PyThreadState* __tstate = wxPyBeginAllowThreads();
9026 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9027
9028 wxPyEndAllowThreads(__tstate);
9029 if (PyErr_Occurred()) SWIG_fail;
9030 }
9031 Py_INCREF(Py_None); resultobj = Py_None;
9032 {
9033 if (temp1)
9034 delete arg1;
9035 }
9036 return resultobj;
9037 fail:
9038 {
9039 if (temp1)
9040 delete arg1;
9041 }
9042 return NULL;
9043 }
9044
9045
9046 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj;
9048 wxLocale *arg1 = (wxLocale *) 0 ;
9049 wxString *arg2 = 0 ;
9050 bool result;
9051 bool temp2 = False ;
9052 PyObject * obj0 = 0 ;
9053 PyObject * obj1 = 0 ;
9054 char *kwnames[] = {
9055 (char *) "self",(char *) "szDomain", NULL
9056 };
9057
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9059 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9060 {
9061 arg2 = wxString_in_helper(obj1);
9062 if (arg2 == NULL) SWIG_fail;
9063 temp2 = True;
9064 }
9065 {
9066 PyThreadState* __tstate = wxPyBeginAllowThreads();
9067 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9068
9069 wxPyEndAllowThreads(__tstate);
9070 if (PyErr_Occurred()) SWIG_fail;
9071 }
9072 resultobj = SWIG_PyObj_FromBool((bool)result);
9073 {
9074 if (temp2)
9075 delete arg2;
9076 }
9077 return resultobj;
9078 fail:
9079 {
9080 if (temp2)
9081 delete arg2;
9082 }
9083 return NULL;
9084 }
9085
9086
9087 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9088 PyObject *resultobj;
9089 wxLocale *arg1 = (wxLocale *) 0 ;
9090 wxString *arg2 = 0 ;
9091 bool result;
9092 bool temp2 = False ;
9093 PyObject * obj0 = 0 ;
9094 PyObject * obj1 = 0 ;
9095 char *kwnames[] = {
9096 (char *) "self",(char *) "szDomain", NULL
9097 };
9098
9099 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9100 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9101 {
9102 arg2 = wxString_in_helper(obj1);
9103 if (arg2 == NULL) SWIG_fail;
9104 temp2 = True;
9105 }
9106 {
9107 PyThreadState* __tstate = wxPyBeginAllowThreads();
9108 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9109
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = SWIG_PyObj_FromBool((bool)result);
9114 {
9115 if (temp2)
9116 delete arg2;
9117 }
9118 return resultobj;
9119 fail:
9120 {
9121 if (temp2)
9122 delete arg2;
9123 }
9124 return NULL;
9125 }
9126
9127
9128 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9129 PyObject *resultobj;
9130 int arg1 ;
9131 wxLanguageInfo *result;
9132 PyObject * obj0 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "lang", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9138 {
9139 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9140 if (PyErr_Occurred()) SWIG_fail;
9141 }
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9145
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9150 return resultobj;
9151 fail:
9152 return NULL;
9153 }
9154
9155
9156 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9157 PyObject *resultobj;
9158 int arg1 ;
9159 wxString result;
9160 PyObject * obj0 = 0 ;
9161 char *kwnames[] = {
9162 (char *) "lang", NULL
9163 };
9164
9165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9166 {
9167 arg1 = (int) SWIG_PyObj_AsInt(obj0);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = wxLocale::GetLanguageName(arg1);
9173
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 {
9178 #if wxUSE_UNICODE
9179 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9180 #else
9181 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9182 #endif
9183 }
9184 return resultobj;
9185 fail:
9186 return NULL;
9187 }
9188
9189
9190 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9191 PyObject *resultobj;
9192 wxString *arg1 = 0 ;
9193 wxLanguageInfo *result;
9194 bool temp1 = False ;
9195 PyObject * obj0 = 0 ;
9196 char *kwnames[] = {
9197 (char *) "locale", NULL
9198 };
9199
9200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9201 {
9202 arg1 = wxString_in_helper(obj0);
9203 if (arg1 == NULL) SWIG_fail;
9204 temp1 = True;
9205 }
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9209
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLanguageInfo, 0);
9214 {
9215 if (temp1)
9216 delete arg1;
9217 }
9218 return resultobj;
9219 fail:
9220 {
9221 if (temp1)
9222 delete arg1;
9223 }
9224 return NULL;
9225 }
9226
9227
9228 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9229 PyObject *resultobj;
9230 wxLanguageInfo *arg1 = 0 ;
9231 PyObject * obj0 = 0 ;
9232 char *kwnames[] = {
9233 (char *) "info", NULL
9234 };
9235
9236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9237 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLanguageInfo,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9238 if (arg1 == NULL) {
9239 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
9240 }
9241 {
9242 PyThreadState* __tstate = wxPyBeginAllowThreads();
9243 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9244
9245 wxPyEndAllowThreads(__tstate);
9246 if (PyErr_Occurred()) SWIG_fail;
9247 }
9248 Py_INCREF(Py_None); resultobj = Py_None;
9249 return resultobj;
9250 fail:
9251 return NULL;
9252 }
9253
9254
9255 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9256 PyObject *resultobj;
9257 wxLocale *arg1 = (wxLocale *) 0 ;
9258 wxString *arg2 = 0 ;
9259 wxString const &arg3_defvalue = wxPyEmptyString ;
9260 wxString *arg3 = (wxString *) &arg3_defvalue ;
9261 wxString result;
9262 bool temp2 = False ;
9263 bool temp3 = False ;
9264 PyObject * obj0 = 0 ;
9265 PyObject * obj1 = 0 ;
9266 PyObject * obj2 = 0 ;
9267 char *kwnames[] = {
9268 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9269 };
9270
9271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9272 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9273 {
9274 arg2 = wxString_in_helper(obj1);
9275 if (arg2 == NULL) SWIG_fail;
9276 temp2 = True;
9277 }
9278 if (obj2) {
9279 {
9280 arg3 = wxString_in_helper(obj2);
9281 if (arg3 == NULL) SWIG_fail;
9282 temp3 = True;
9283 }
9284 }
9285 {
9286 PyThreadState* __tstate = wxPyBeginAllowThreads();
9287 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9288
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 {
9293 #if wxUSE_UNICODE
9294 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9295 #else
9296 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9297 #endif
9298 }
9299 {
9300 if (temp2)
9301 delete arg2;
9302 }
9303 {
9304 if (temp3)
9305 delete arg3;
9306 }
9307 return resultobj;
9308 fail:
9309 {
9310 if (temp2)
9311 delete arg2;
9312 }
9313 {
9314 if (temp3)
9315 delete arg3;
9316 }
9317 return NULL;
9318 }
9319
9320
9321 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9322 PyObject *resultobj;
9323 wxLocale *arg1 = (wxLocale *) 0 ;
9324 wxString *result;
9325 PyObject * obj0 = 0 ;
9326 char *kwnames[] = {
9327 (char *) "self", NULL
9328 };
9329
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxLocale,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9332 {
9333 PyThreadState* __tstate = wxPyBeginAllowThreads();
9334 {
9335 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9336 result = (wxString *) &_result_ref;
9337 }
9338
9339 wxPyEndAllowThreads(__tstate);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
9342 {
9343 #if wxUSE_UNICODE
9344 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9345 #else
9346 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9347 #endif
9348 }
9349 return resultobj;
9350 fail:
9351 return NULL;
9352 }
9353
9354
9355 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9356 PyObject *obj;
9357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9358 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9359 Py_INCREF(obj);
9360 return Py_BuildValue((char *)"");
9361 }
9362 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9363 PyObject *resultobj;
9364 wxLocale *result;
9365 char *kwnames[] = {
9366 NULL
9367 };
9368
9369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9370 {
9371 PyThreadState* __tstate = wxPyBeginAllowThreads();
9372 result = (wxLocale *)wxGetLocale();
9373
9374 wxPyEndAllowThreads(__tstate);
9375 if (PyErr_Occurred()) SWIG_fail;
9376 }
9377 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxLocale, 0);
9378 return resultobj;
9379 fail:
9380 return NULL;
9381 }
9382
9383
9384 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9385 PyObject *resultobj;
9386 wxString *arg1 = 0 ;
9387 wxString result;
9388 bool temp1 = False ;
9389 PyObject * obj0 = 0 ;
9390
9391 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9392 {
9393 arg1 = wxString_in_helper(obj0);
9394 if (arg1 == NULL) SWIG_fail;
9395 temp1 = True;
9396 }
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = wxGetTranslation((wxString const &)*arg1);
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 #if wxUSE_UNICODE
9406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9407 #else
9408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9409 #endif
9410 }
9411 {
9412 if (temp1)
9413 delete arg1;
9414 }
9415 return resultobj;
9416 fail:
9417 {
9418 if (temp1)
9419 delete arg1;
9420 }
9421 return NULL;
9422 }
9423
9424
9425 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9426 PyObject *resultobj;
9427 wxString *arg1 = 0 ;
9428 wxString *arg2 = 0 ;
9429 size_t arg3 ;
9430 wxString result;
9431 bool temp1 = False ;
9432 bool temp2 = False ;
9433 PyObject * obj0 = 0 ;
9434 PyObject * obj1 = 0 ;
9435 PyObject * obj2 = 0 ;
9436
9437 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9438 {
9439 arg1 = wxString_in_helper(obj0);
9440 if (arg1 == NULL) SWIG_fail;
9441 temp1 = True;
9442 }
9443 {
9444 arg2 = wxString_in_helper(obj1);
9445 if (arg2 == NULL) SWIG_fail;
9446 temp2 = True;
9447 }
9448 {
9449 arg3 = (size_t) SWIG_PyObj_AsUnsignedLong(obj2);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 {
9453 PyThreadState* __tstate = wxPyBeginAllowThreads();
9454 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9455
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 {
9460 #if wxUSE_UNICODE
9461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9462 #else
9463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9464 #endif
9465 }
9466 {
9467 if (temp1)
9468 delete arg1;
9469 }
9470 {
9471 if (temp2)
9472 delete arg2;
9473 }
9474 return resultobj;
9475 fail:
9476 {
9477 if (temp1)
9478 delete arg1;
9479 }
9480 {
9481 if (temp2)
9482 delete arg2;
9483 }
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9489 int argc;
9490 PyObject *argv[4];
9491 int ii;
9492
9493 argc = PyObject_Length(args);
9494 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9495 argv[ii] = PyTuple_GetItem(args,ii);
9496 }
9497 if (argc == 1) {
9498 int _v;
9499 {
9500 void *ptr;
9501 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9502 _v = 0;
9503 PyErr_Clear();
9504 } else {
9505 _v = 1;
9506 }
9507 }
9508 if (_v) {
9509 return _wrap_GetTranslation__SWIG_0(self,args);
9510 }
9511 }
9512 if (argc == 3) {
9513 int _v;
9514 {
9515 void *ptr;
9516 if (SWIG_ConvertPtr(argv[0], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9517 _v = 0;
9518 PyErr_Clear();
9519 } else {
9520 _v = 1;
9521 }
9522 }
9523 if (_v) {
9524 {
9525 void *ptr;
9526 if (SWIG_ConvertPtr(argv[1], (void **) &ptr, SWIGTYPE_p_wxString, 0) == -1) {
9527 _v = 0;
9528 PyErr_Clear();
9529 } else {
9530 _v = 1;
9531 }
9532 }
9533 if (_v) {
9534 {
9535 SWIG_PyObj_AsUnsignedLong(argv[2]);
9536 if (PyErr_Occurred()) {
9537 _v = 0;
9538 PyErr_Clear();
9539 } else {
9540 _v = 1;
9541 }
9542 }
9543 if (_v) {
9544 return _wrap_GetTranslation__SWIG_1(self,args);
9545 }
9546 }
9547 }
9548 }
9549
9550 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9551 return NULL;
9552 }
9553
9554
9555 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9556 PyObject *resultobj;
9557 wxEncodingConverter *result;
9558 char *kwnames[] = {
9559 NULL
9560 };
9561
9562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9563 {
9564 PyThreadState* __tstate = wxPyBeginAllowThreads();
9565 result = (wxEncodingConverter *)new wxEncodingConverter();
9566
9567 wxPyEndAllowThreads(__tstate);
9568 if (PyErr_Occurred()) SWIG_fail;
9569 }
9570 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEncodingConverter, 1);
9571 return resultobj;
9572 fail:
9573 return NULL;
9574 }
9575
9576
9577 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9578 PyObject *resultobj;
9579 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9580 PyObject * obj0 = 0 ;
9581 char *kwnames[] = {
9582 (char *) "self", NULL
9583 };
9584
9585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9586 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9587 {
9588 PyThreadState* __tstate = wxPyBeginAllowThreads();
9589 delete arg1;
9590
9591 wxPyEndAllowThreads(__tstate);
9592 if (PyErr_Occurred()) SWIG_fail;
9593 }
9594 Py_INCREF(Py_None); resultobj = Py_None;
9595 return resultobj;
9596 fail:
9597 return NULL;
9598 }
9599
9600
9601 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9602 PyObject *resultobj;
9603 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9604 int arg2 ;
9605 int arg3 ;
9606 int arg4 = (int) wxCONVERT_STRICT ;
9607 bool result;
9608 PyObject * obj0 = 0 ;
9609 PyObject * obj1 = 0 ;
9610 PyObject * obj2 = 0 ;
9611 PyObject * obj3 = 0 ;
9612 char *kwnames[] = {
9613 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9614 };
9615
9616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9617 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9618 {
9619 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9620 if (PyErr_Occurred()) SWIG_fail;
9621 }
9622 {
9623 arg3 = (wxFontEncoding) SWIG_PyObj_AsInt(obj2);
9624 if (PyErr_Occurred()) SWIG_fail;
9625 }
9626 if (obj3) {
9627 {
9628 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9629 if (PyErr_Occurred()) SWIG_fail;
9630 }
9631 }
9632 {
9633 PyThreadState* __tstate = wxPyBeginAllowThreads();
9634 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
9635
9636 wxPyEndAllowThreads(__tstate);
9637 if (PyErr_Occurred()) SWIG_fail;
9638 }
9639 resultobj = SWIG_PyObj_FromBool((bool)result);
9640 return resultobj;
9641 fail:
9642 return NULL;
9643 }
9644
9645
9646 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
9647 PyObject *resultobj;
9648 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9649 wxString *arg2 = 0 ;
9650 wxString result;
9651 bool temp2 = False ;
9652 PyObject * obj0 = 0 ;
9653 PyObject * obj1 = 0 ;
9654 char *kwnames[] = {
9655 (char *) "self",(char *) "input", NULL
9656 };
9657
9658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
9659 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEncodingConverter,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9660 {
9661 arg2 = wxString_in_helper(obj1);
9662 if (arg2 == NULL) SWIG_fail;
9663 temp2 = True;
9664 }
9665 {
9666 PyThreadState* __tstate = wxPyBeginAllowThreads();
9667 result = (arg1)->Convert((wxString const &)*arg2);
9668
9669 wxPyEndAllowThreads(__tstate);
9670 if (PyErr_Occurred()) SWIG_fail;
9671 }
9672 {
9673 #if wxUSE_UNICODE
9674 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9675 #else
9676 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9677 #endif
9678 }
9679 {
9680 if (temp2)
9681 delete arg2;
9682 }
9683 return resultobj;
9684 fail:
9685 {
9686 if (temp2)
9687 delete arg2;
9688 }
9689 return NULL;
9690 }
9691
9692
9693 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9694 PyObject *resultobj;
9695 int arg1 ;
9696 int arg2 = (int) wxPLATFORM_CURRENT ;
9697 wxFontEncodingArray result;
9698 PyObject * obj0 = 0 ;
9699 PyObject * obj1 = 0 ;
9700 char *kwnames[] = {
9701 (char *) "enc",(char *) "platform", NULL
9702 };
9703
9704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
9705 {
9706 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 if (obj1) {
9710 {
9711 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9712 if (PyErr_Occurred()) SWIG_fail;
9713 }
9714 }
9715 {
9716 PyThreadState* __tstate = wxPyBeginAllowThreads();
9717 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
9718
9719 wxPyEndAllowThreads(__tstate);
9720 if (PyErr_Occurred()) SWIG_fail;
9721 }
9722 {
9723 resultobj = PyList_New(0);
9724 for (size_t i=0; i < (&result)->GetCount(); i++) {
9725 PyObject* number = PyInt_FromLong((&result)->Item(i));
9726 PyList_Append(resultobj, number);
9727 Py_DECREF(number);
9728 }
9729 }
9730 return resultobj;
9731 fail:
9732 return NULL;
9733 }
9734
9735
9736 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
9737 PyObject *resultobj;
9738 int arg1 ;
9739 wxFontEncodingArray result;
9740 PyObject * obj0 = 0 ;
9741 char *kwnames[] = {
9742 (char *) "enc", NULL
9743 };
9744
9745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
9746 {
9747 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 {
9751 PyThreadState* __tstate = wxPyBeginAllowThreads();
9752 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
9753
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 {
9758 resultobj = PyList_New(0);
9759 for (size_t i=0; i < (&result)->GetCount(); i++) {
9760 PyObject* number = PyInt_FromLong((&result)->Item(i));
9761 PyList_Append(resultobj, number);
9762 Py_DECREF(number);
9763 }
9764 }
9765 return resultobj;
9766 fail:
9767 return NULL;
9768 }
9769
9770
9771 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
9772 PyObject *resultobj;
9773 int arg1 ;
9774 int arg2 ;
9775 bool result;
9776 PyObject * obj0 = 0 ;
9777 PyObject * obj1 = 0 ;
9778 char *kwnames[] = {
9779 (char *) "encIn",(char *) "encOut", NULL
9780 };
9781
9782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
9783 {
9784 arg1 = (wxFontEncoding) SWIG_PyObj_AsInt(obj0);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 arg2 = (wxFontEncoding) SWIG_PyObj_AsInt(obj1);
9789 if (PyErr_Occurred()) SWIG_fail;
9790 }
9791 {
9792 PyThreadState* __tstate = wxPyBeginAllowThreads();
9793 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
9794
9795 wxPyEndAllowThreads(__tstate);
9796 if (PyErr_Occurred()) SWIG_fail;
9797 }
9798 resultobj = SWIG_PyObj_FromBool((bool)result);
9799 return resultobj;
9800 fail:
9801 return NULL;
9802 }
9803
9804
9805 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
9806 PyObject *obj;
9807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9808 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
9809 Py_INCREF(obj);
9810 return Py_BuildValue((char *)"");
9811 }
9812 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
9813 PyObject *resultobj;
9814 wxDC *arg1 = (wxDC *) 0 ;
9815 PyObject * obj0 = 0 ;
9816 char *kwnames[] = {
9817 (char *) "self", NULL
9818 };
9819
9820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
9821 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9822 {
9823 PyThreadState* __tstate = wxPyBeginAllowThreads();
9824 delete arg1;
9825
9826 wxPyEndAllowThreads(__tstate);
9827 if (PyErr_Occurred()) SWIG_fail;
9828 }
9829 Py_INCREF(Py_None); resultobj = Py_None;
9830 return resultobj;
9831 fail:
9832 return NULL;
9833 }
9834
9835
9836 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9837 PyObject *resultobj;
9838 wxDC *arg1 = (wxDC *) 0 ;
9839 PyObject * obj0 = 0 ;
9840 char *kwnames[] = {
9841 (char *) "self", NULL
9842 };
9843
9844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
9845 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 (arg1)->BeginDrawing();
9849
9850 wxPyEndAllowThreads(__tstate);
9851 if (PyErr_Occurred()) SWIG_fail;
9852 }
9853 Py_INCREF(Py_None); resultobj = Py_None;
9854 return resultobj;
9855 fail:
9856 return NULL;
9857 }
9858
9859
9860 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj;
9862 wxDC *arg1 = (wxDC *) 0 ;
9863 PyObject * obj0 = 0 ;
9864 char *kwnames[] = {
9865 (char *) "self", NULL
9866 };
9867
9868 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
9869 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9870 {
9871 PyThreadState* __tstate = wxPyBeginAllowThreads();
9872 (arg1)->EndDrawing();
9873
9874 wxPyEndAllowThreads(__tstate);
9875 if (PyErr_Occurred()) SWIG_fail;
9876 }
9877 Py_INCREF(Py_None); resultobj = Py_None;
9878 return resultobj;
9879 fail:
9880 return NULL;
9881 }
9882
9883
9884 static PyObject *_wrap_DC_FloodFillXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9885 PyObject *resultobj;
9886 wxDC *arg1 = (wxDC *) 0 ;
9887 int arg2 ;
9888 int arg3 ;
9889 wxColour *arg4 = 0 ;
9890 int arg5 = (int) wxFLOOD_SURFACE ;
9891 bool result;
9892 wxColour temp4 ;
9893 PyObject * obj0 = 0 ;
9894 PyObject * obj1 = 0 ;
9895 PyObject * obj2 = 0 ;
9896 PyObject * obj3 = 0 ;
9897 PyObject * obj4 = 0 ;
9898 char *kwnames[] = {
9899 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
9900 };
9901
9902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFillXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
9903 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9904 {
9905 arg2 = (int) SWIG_PyObj_AsInt(obj1);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 {
9909 arg3 = (int) SWIG_PyObj_AsInt(obj2);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 }
9912 {
9913 arg4 = &temp4;
9914 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
9915 }
9916 if (obj4) {
9917 {
9918 arg5 = (int) SWIG_PyObj_AsInt(obj4);
9919 if (PyErr_Occurred()) SWIG_fail;
9920 }
9921 }
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
9925
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_PyObj_FromBool((bool)result);
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj;
9938 wxDC *arg1 = (wxDC *) 0 ;
9939 wxPoint *arg2 = 0 ;
9940 wxColour *arg3 = 0 ;
9941 int arg4 = (int) wxFLOOD_SURFACE ;
9942 bool result;
9943 wxPoint temp2 ;
9944 wxColour temp3 ;
9945 PyObject * obj0 = 0 ;
9946 PyObject * obj1 = 0 ;
9947 PyObject * obj2 = 0 ;
9948 PyObject * obj3 = 0 ;
9949 char *kwnames[] = {
9950 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
9951 };
9952
9953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9955 {
9956 arg2 = &temp2;
9957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
9958 }
9959 {
9960 arg3 = &temp3;
9961 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9962 }
9963 if (obj3) {
9964 {
9965 arg4 = (int) SWIG_PyObj_AsInt(obj3);
9966 if (PyErr_Occurred()) SWIG_fail;
9967 }
9968 }
9969 {
9970 PyThreadState* __tstate = wxPyBeginAllowThreads();
9971 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
9972
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 resultobj = SWIG_PyObj_FromBool((bool)result);
9977 return resultobj;
9978 fail:
9979 return NULL;
9980 }
9981
9982
9983 static PyObject *_wrap_DC_GetPixelXY(PyObject *self, PyObject *args, PyObject *kwargs) {
9984 PyObject *resultobj;
9985 wxDC *arg1 = (wxDC *) 0 ;
9986 int arg2 ;
9987 int arg3 ;
9988 wxColour result;
9989 PyObject * obj0 = 0 ;
9990 PyObject * obj1 = 0 ;
9991 PyObject * obj2 = 0 ;
9992 char *kwnames[] = {
9993 (char *) "self",(char *) "x",(char *) "y", NULL
9994 };
9995
9996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixelXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
9997 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
9998 {
9999 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10000 if (PyErr_Occurred()) SWIG_fail;
10001 }
10002 {
10003 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 }
10006 {
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 result = wxDC_GetPixelXY(arg1,arg2,arg3);
10009
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 {
10014 wxColour * resultptr;
10015 resultptr = new wxColour((wxColour &) result);
10016 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10017 }
10018 return resultobj;
10019 fail:
10020 return NULL;
10021 }
10022
10023
10024 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10025 PyObject *resultobj;
10026 wxDC *arg1 = (wxDC *) 0 ;
10027 wxPoint *arg2 = 0 ;
10028 wxColour result;
10029 wxPoint temp2 ;
10030 PyObject * obj0 = 0 ;
10031 PyObject * obj1 = 0 ;
10032 char *kwnames[] = {
10033 (char *) "self",(char *) "pt", NULL
10034 };
10035
10036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixel",kwnames,&obj0,&obj1)) goto fail;
10037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10038 {
10039 arg2 = &temp2;
10040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 result = wxDC_GetPixel(arg1,(wxPoint const &)*arg2);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 {
10050 wxColour * resultptr;
10051 resultptr = new wxColour((wxColour &) result);
10052 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
10053 }
10054 return resultobj;
10055 fail:
10056 return NULL;
10057 }
10058
10059
10060 static PyObject *_wrap_DC_DrawLineXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10061 PyObject *resultobj;
10062 wxDC *arg1 = (wxDC *) 0 ;
10063 int arg2 ;
10064 int arg3 ;
10065 int arg4 ;
10066 int arg5 ;
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 PyObject * obj2 = 0 ;
10070 PyObject * obj3 = 0 ;
10071 PyObject * obj4 = 0 ;
10072 char *kwnames[] = {
10073 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10074 };
10075
10076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLineXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10077 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10078 {
10079 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 {
10083 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10084 if (PyErr_Occurred()) SWIG_fail;
10085 }
10086 {
10087 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 {
10091 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 }
10094 {
10095 PyThreadState* __tstate = wxPyBeginAllowThreads();
10096 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10097
10098 wxPyEndAllowThreads(__tstate);
10099 if (PyErr_Occurred()) SWIG_fail;
10100 }
10101 Py_INCREF(Py_None); resultobj = Py_None;
10102 return resultobj;
10103 fail:
10104 return NULL;
10105 }
10106
10107
10108 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10109 PyObject *resultobj;
10110 wxDC *arg1 = (wxDC *) 0 ;
10111 wxPoint *arg2 = 0 ;
10112 wxPoint *arg3 = 0 ;
10113 wxPoint temp2 ;
10114 wxPoint temp3 ;
10115 PyObject * obj0 = 0 ;
10116 PyObject * obj1 = 0 ;
10117 PyObject * obj2 = 0 ;
10118 char *kwnames[] = {
10119 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10120 };
10121
10122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2)) goto fail;
10123 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10124 {
10125 arg2 = &temp2;
10126 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10127 }
10128 {
10129 arg3 = &temp3;
10130 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10131 }
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10135
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 Py_INCREF(Py_None); resultobj = Py_None;
10140 return resultobj;
10141 fail:
10142 return NULL;
10143 }
10144
10145
10146 static PyObject *_wrap_DC_CrossHairXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10147 PyObject *resultobj;
10148 wxDC *arg1 = (wxDC *) 0 ;
10149 int arg2 ;
10150 int arg3 ;
10151 PyObject * obj0 = 0 ;
10152 PyObject * obj1 = 0 ;
10153 PyObject * obj2 = 0 ;
10154 char *kwnames[] = {
10155 (char *) "self",(char *) "x",(char *) "y", NULL
10156 };
10157
10158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHairXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10159 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10160 {
10161 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10162 if (PyErr_Occurred()) SWIG_fail;
10163 }
10164 {
10165 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10166 if (PyErr_Occurred()) SWIG_fail;
10167 }
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 (arg1)->CrossHair(arg2,arg3);
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 Py_INCREF(Py_None); resultobj = Py_None;
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 wxDC *arg1 = (wxDC *) 0 ;
10185 wxPoint *arg2 = 0 ;
10186 wxPoint temp2 ;
10187 PyObject * obj0 = 0 ;
10188 PyObject * obj1 = 0 ;
10189 char *kwnames[] = {
10190 (char *) "self",(char *) "pt", NULL
10191 };
10192
10193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHair",kwnames,&obj0,&obj1)) goto fail;
10194 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10195 {
10196 arg2 = &temp2;
10197 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10198 }
10199 {
10200 PyThreadState* __tstate = wxPyBeginAllowThreads();
10201 (arg1)->CrossHair((wxPoint const &)*arg2);
10202
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 Py_INCREF(Py_None); resultobj = Py_None;
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 static PyObject *_wrap_DC_DrawArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj;
10215 wxDC *arg1 = (wxDC *) 0 ;
10216 int arg2 ;
10217 int arg3 ;
10218 int arg4 ;
10219 int arg5 ;
10220 int arg6 ;
10221 int arg7 ;
10222 PyObject * obj0 = 0 ;
10223 PyObject * obj1 = 0 ;
10224 PyObject * obj2 = 0 ;
10225 PyObject * obj3 = 0 ;
10226 PyObject * obj4 = 0 ;
10227 PyObject * obj5 = 0 ;
10228 PyObject * obj6 = 0 ;
10229 char *kwnames[] = {
10230 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10231 };
10232
10233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10234 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10235 {
10236 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10237 if (PyErr_Occurred()) SWIG_fail;
10238 }
10239 {
10240 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10241 if (PyErr_Occurred()) SWIG_fail;
10242 }
10243 {
10244 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 {
10248 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10249 if (PyErr_Occurred()) SWIG_fail;
10250 }
10251 {
10252 arg6 = (int) SWIG_PyObj_AsInt(obj5);
10253 if (PyErr_Occurred()) SWIG_fail;
10254 }
10255 {
10256 arg7 = (int) SWIG_PyObj_AsInt(obj6);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 }
10259 {
10260 PyThreadState* __tstate = wxPyBeginAllowThreads();
10261 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10262
10263 wxPyEndAllowThreads(__tstate);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 }
10266 Py_INCREF(Py_None); resultobj = Py_None;
10267 return resultobj;
10268 fail:
10269 return NULL;
10270 }
10271
10272
10273 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10274 PyObject *resultobj;
10275 wxDC *arg1 = (wxDC *) 0 ;
10276 wxPoint *arg2 = 0 ;
10277 wxPoint *arg3 = 0 ;
10278 wxPoint *arg4 = 0 ;
10279 wxPoint temp2 ;
10280 wxPoint temp3 ;
10281 wxPoint temp4 ;
10282 PyObject * obj0 = 0 ;
10283 PyObject * obj1 = 0 ;
10284 PyObject * obj2 = 0 ;
10285 PyObject * obj3 = 0 ;
10286 char *kwnames[] = {
10287 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10288 };
10289
10290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10292 {
10293 arg2 = &temp2;
10294 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10295 }
10296 {
10297 arg3 = &temp3;
10298 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10299 }
10300 {
10301 arg4 = &temp4;
10302 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10303 }
10304 {
10305 PyThreadState* __tstate = wxPyBeginAllowThreads();
10306 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10307
10308 wxPyEndAllowThreads(__tstate);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 }
10311 Py_INCREF(Py_None); resultobj = Py_None;
10312 return resultobj;
10313 fail:
10314 return NULL;
10315 }
10316
10317
10318 static PyObject *_wrap_DC_DrawCheckMarkXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10319 PyObject *resultobj;
10320 wxDC *arg1 = (wxDC *) 0 ;
10321 int arg2 ;
10322 int arg3 ;
10323 int arg4 ;
10324 int arg5 ;
10325 PyObject * obj0 = 0 ;
10326 PyObject * obj1 = 0 ;
10327 PyObject * obj2 = 0 ;
10328 PyObject * obj3 = 0 ;
10329 PyObject * obj4 = 0 ;
10330 char *kwnames[] = {
10331 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10332 };
10333
10334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMarkXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10336 {
10337 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10338 if (PyErr_Occurred()) SWIG_fail;
10339 }
10340 {
10341 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 }
10344 {
10345 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 {
10349 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 {
10353 PyThreadState* __tstate = wxPyBeginAllowThreads();
10354 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10355
10356 wxPyEndAllowThreads(__tstate);
10357 if (PyErr_Occurred()) SWIG_fail;
10358 }
10359 Py_INCREF(Py_None); resultobj = Py_None;
10360 return resultobj;
10361 fail:
10362 return NULL;
10363 }
10364
10365
10366 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10367 PyObject *resultobj;
10368 wxDC *arg1 = (wxDC *) 0 ;
10369 wxRect *arg2 = 0 ;
10370 wxRect temp2 ;
10371 PyObject * obj0 = 0 ;
10372 PyObject * obj1 = 0 ;
10373 char *kwnames[] = {
10374 (char *) "self",(char *) "rect", NULL
10375 };
10376
10377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMark",kwnames,&obj0,&obj1)) goto fail;
10378 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10379 {
10380 arg2 = &temp2;
10381 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10382 }
10383 {
10384 PyThreadState* __tstate = wxPyBeginAllowThreads();
10385 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10386
10387 wxPyEndAllowThreads(__tstate);
10388 if (PyErr_Occurred()) SWIG_fail;
10389 }
10390 Py_INCREF(Py_None); resultobj = Py_None;
10391 return resultobj;
10392 fail:
10393 return NULL;
10394 }
10395
10396
10397 static PyObject *_wrap_DC_DrawEllipticArcXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10398 PyObject *resultobj;
10399 wxDC *arg1 = (wxDC *) 0 ;
10400 int arg2 ;
10401 int arg3 ;
10402 int arg4 ;
10403 int arg5 ;
10404 double arg6 ;
10405 double arg7 ;
10406 PyObject * obj0 = 0 ;
10407 PyObject * obj1 = 0 ;
10408 PyObject * obj2 = 0 ;
10409 PyObject * obj3 = 0 ;
10410 PyObject * obj4 = 0 ;
10411 PyObject * obj5 = 0 ;
10412 PyObject * obj6 = 0 ;
10413 char *kwnames[] = {
10414 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10415 };
10416
10417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArcXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10418 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10419 {
10420 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10421 if (PyErr_Occurred()) SWIG_fail;
10422 }
10423 {
10424 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10425 if (PyErr_Occurred()) SWIG_fail;
10426 }
10427 {
10428 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10429 if (PyErr_Occurred()) SWIG_fail;
10430 }
10431 {
10432 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 {
10436 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 {
10440 arg7 = (double) SWIG_PyObj_AsDouble(obj6);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 {
10444 PyThreadState* __tstate = wxPyBeginAllowThreads();
10445 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10446
10447 wxPyEndAllowThreads(__tstate);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 }
10450 Py_INCREF(Py_None); resultobj = Py_None;
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj;
10459 wxDC *arg1 = (wxDC *) 0 ;
10460 wxPoint *arg2 = 0 ;
10461 wxSize *arg3 = 0 ;
10462 double arg4 ;
10463 double arg5 ;
10464 wxPoint temp2 ;
10465 wxSize temp3 ;
10466 PyObject * obj0 = 0 ;
10467 PyObject * obj1 = 0 ;
10468 PyObject * obj2 = 0 ;
10469 PyObject * obj3 = 0 ;
10470 PyObject * obj4 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10473 };
10474
10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10476 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10477 {
10478 arg2 = &temp2;
10479 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10480 }
10481 {
10482 arg3 = &temp3;
10483 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10484 }
10485 {
10486 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 {
10490 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 }
10493 {
10494 PyThreadState* __tstate = wxPyBeginAllowThreads();
10495 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10496
10497 wxPyEndAllowThreads(__tstate);
10498 if (PyErr_Occurred()) SWIG_fail;
10499 }
10500 Py_INCREF(Py_None); resultobj = Py_None;
10501 return resultobj;
10502 fail:
10503 return NULL;
10504 }
10505
10506
10507 static PyObject *_wrap_DC_DrawPointXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10508 PyObject *resultobj;
10509 wxDC *arg1 = (wxDC *) 0 ;
10510 int arg2 ;
10511 int arg3 ;
10512 PyObject * obj0 = 0 ;
10513 PyObject * obj1 = 0 ;
10514 PyObject * obj2 = 0 ;
10515 char *kwnames[] = {
10516 (char *) "self",(char *) "x",(char *) "y", NULL
10517 };
10518
10519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPointXY",kwnames,&obj0,&obj1,&obj2)) goto fail;
10520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10521 {
10522 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10523 if (PyErr_Occurred()) SWIG_fail;
10524 }
10525 {
10526 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10527 if (PyErr_Occurred()) SWIG_fail;
10528 }
10529 {
10530 PyThreadState* __tstate = wxPyBeginAllowThreads();
10531 (arg1)->DrawPoint(arg2,arg3);
10532
10533 wxPyEndAllowThreads(__tstate);
10534 if (PyErr_Occurred()) SWIG_fail;
10535 }
10536 Py_INCREF(Py_None); resultobj = Py_None;
10537 return resultobj;
10538 fail:
10539 return NULL;
10540 }
10541
10542
10543 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj;
10545 wxDC *arg1 = (wxDC *) 0 ;
10546 wxPoint *arg2 = 0 ;
10547 wxPoint temp2 ;
10548 PyObject * obj0 = 0 ;
10549 PyObject * obj1 = 0 ;
10550 char *kwnames[] = {
10551 (char *) "self",(char *) "pt", NULL
10552 };
10553
10554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPoint",kwnames,&obj0,&obj1)) goto fail;
10555 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10556 {
10557 arg2 = &temp2;
10558 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10559 }
10560 {
10561 PyThreadState* __tstate = wxPyBeginAllowThreads();
10562 (arg1)->DrawPoint((wxPoint const &)*arg2);
10563
10564 wxPyEndAllowThreads(__tstate);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 }
10567 Py_INCREF(Py_None); resultobj = Py_None;
10568 return resultobj;
10569 fail:
10570 return NULL;
10571 }
10572
10573
10574 static PyObject *_wrap_DC_DrawRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10575 PyObject *resultobj;
10576 wxDC *arg1 = (wxDC *) 0 ;
10577 int arg2 ;
10578 int arg3 ;
10579 int arg4 ;
10580 int arg5 ;
10581 PyObject * obj0 = 0 ;
10582 PyObject * obj1 = 0 ;
10583 PyObject * obj2 = 0 ;
10584 PyObject * obj3 = 0 ;
10585 PyObject * obj4 = 0 ;
10586 char *kwnames[] = {
10587 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10588 };
10589
10590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10591 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10592 {
10593 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10594 if (PyErr_Occurred()) SWIG_fail;
10595 }
10596 {
10597 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10598 if (PyErr_Occurred()) SWIG_fail;
10599 }
10600 {
10601 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 }
10604 {
10605 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 }
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10611
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 Py_INCREF(Py_None); resultobj = Py_None;
10616 return resultobj;
10617 fail:
10618 return NULL;
10619 }
10620
10621
10622 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10623 PyObject *resultobj;
10624 wxDC *arg1 = (wxDC *) 0 ;
10625 wxPoint *arg2 = 0 ;
10626 wxSize *arg3 = 0 ;
10627 wxPoint temp2 ;
10628 wxSize temp3 ;
10629 PyObject * obj0 = 0 ;
10630 PyObject * obj1 = 0 ;
10631 PyObject * obj2 = 0 ;
10632 char *kwnames[] = {
10633 (char *) "self",(char *) "pt",(char *) "sz", NULL
10634 };
10635
10636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10637 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10638 {
10639 arg2 = &temp2;
10640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10641 }
10642 {
10643 arg3 = &temp3;
10644 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10645 }
10646 {
10647 PyThreadState* __tstate = wxPyBeginAllowThreads();
10648 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
10649
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 Py_INCREF(Py_None); resultobj = Py_None;
10654 return resultobj;
10655 fail:
10656 return NULL;
10657 }
10658
10659
10660 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj;
10662 wxDC *arg1 = (wxDC *) 0 ;
10663 wxRect *arg2 = 0 ;
10664 wxRect temp2 ;
10665 PyObject * obj0 = 0 ;
10666 PyObject * obj1 = 0 ;
10667 char *kwnames[] = {
10668 (char *) "self",(char *) "rect", NULL
10669 };
10670
10671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10672 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10673 {
10674 arg2 = &temp2;
10675 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10676 }
10677 {
10678 PyThreadState* __tstate = wxPyBeginAllowThreads();
10679 (arg1)->DrawRectangle((wxRect const &)*arg2);
10680
10681 wxPyEndAllowThreads(__tstate);
10682 if (PyErr_Occurred()) SWIG_fail;
10683 }
10684 Py_INCREF(Py_None); resultobj = Py_None;
10685 return resultobj;
10686 fail:
10687 return NULL;
10688 }
10689
10690
10691 static PyObject *_wrap_DC_DrawRoundedRectangleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10692 PyObject *resultobj;
10693 wxDC *arg1 = (wxDC *) 0 ;
10694 int arg2 ;
10695 int arg3 ;
10696 int arg4 ;
10697 int arg5 ;
10698 double arg6 ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 PyObject * obj2 = 0 ;
10702 PyObject * obj3 = 0 ;
10703 PyObject * obj4 = 0 ;
10704 PyObject * obj5 = 0 ;
10705 char *kwnames[] = {
10706 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
10707 };
10708
10709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangleXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
10710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10711 {
10712 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10713 if (PyErr_Occurred()) SWIG_fail;
10714 }
10715 {
10716 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 }
10719 {
10720 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10721 if (PyErr_Occurred()) SWIG_fail;
10722 }
10723 {
10724 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10725 if (PyErr_Occurred()) SWIG_fail;
10726 }
10727 {
10728 arg6 = (double) SWIG_PyObj_AsDouble(obj5);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 }
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
10734
10735 wxPyEndAllowThreads(__tstate);
10736 if (PyErr_Occurred()) SWIG_fail;
10737 }
10738 Py_INCREF(Py_None); resultobj = Py_None;
10739 return resultobj;
10740 fail:
10741 return NULL;
10742 }
10743
10744
10745 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10746 PyObject *resultobj;
10747 wxDC *arg1 = (wxDC *) 0 ;
10748 wxPoint *arg2 = 0 ;
10749 wxSize *arg3 = 0 ;
10750 double arg4 ;
10751 wxPoint temp2 ;
10752 wxSize temp3 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 PyObject * obj2 = 0 ;
10756 PyObject * obj3 = 0 ;
10757 char *kwnames[] = {
10758 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
10759 };
10760
10761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10762 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10763 {
10764 arg2 = &temp2;
10765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10766 }
10767 {
10768 arg3 = &temp3;
10769 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10770 }
10771 {
10772 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 }
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
10778
10779 wxPyEndAllowThreads(__tstate);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 }
10782 Py_INCREF(Py_None); resultobj = Py_None;
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj;
10791 wxDC *arg1 = (wxDC *) 0 ;
10792 wxRect *arg2 = 0 ;
10793 double arg3 ;
10794 wxRect temp2 ;
10795 PyObject * obj0 = 0 ;
10796 PyObject * obj1 = 0 ;
10797 PyObject * obj2 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "self",(char *) "r",(char *) "radius", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
10803 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10804 {
10805 arg2 = &temp2;
10806 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10807 }
10808 {
10809 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 }
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
10815
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 Py_INCREF(Py_None); resultobj = Py_None;
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 static PyObject *_wrap_DC_DrawCircleXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj;
10828 wxDC *arg1 = (wxDC *) 0 ;
10829 int arg2 ;
10830 int arg3 ;
10831 int arg4 ;
10832 PyObject * obj0 = 0 ;
10833 PyObject * obj1 = 0 ;
10834 PyObject * obj2 = 0 ;
10835 PyObject * obj3 = 0 ;
10836 char *kwnames[] = {
10837 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
10838 };
10839
10840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircleXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10841 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10842 {
10843 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 }
10846 {
10847 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10848 if (PyErr_Occurred()) SWIG_fail;
10849 }
10850 {
10851 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 {
10855 PyThreadState* __tstate = wxPyBeginAllowThreads();
10856 (arg1)->DrawCircle(arg2,arg3,arg4);
10857
10858 wxPyEndAllowThreads(__tstate);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 }
10861 Py_INCREF(Py_None); resultobj = Py_None;
10862 return resultobj;
10863 fail:
10864 return NULL;
10865 }
10866
10867
10868 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
10869 PyObject *resultobj;
10870 wxDC *arg1 = (wxDC *) 0 ;
10871 wxPoint *arg2 = 0 ;
10872 int arg3 ;
10873 wxPoint temp2 ;
10874 PyObject * obj0 = 0 ;
10875 PyObject * obj1 = 0 ;
10876 PyObject * obj2 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "self",(char *) "pt",(char *) "radius", NULL
10879 };
10880
10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2)) goto fail;
10882 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10883 {
10884 arg2 = &temp2;
10885 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10886 }
10887 {
10888 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10889 if (PyErr_Occurred()) SWIG_fail;
10890 }
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
10894
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 Py_INCREF(Py_None); resultobj = Py_None;
10899 return resultobj;
10900 fail:
10901 return NULL;
10902 }
10903
10904
10905 static PyObject *_wrap_DC_DrawEllipseXY(PyObject *self, PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj;
10907 wxDC *arg1 = (wxDC *) 0 ;
10908 int arg2 ;
10909 int arg3 ;
10910 int arg4 ;
10911 int arg5 ;
10912 PyObject * obj0 = 0 ;
10913 PyObject * obj1 = 0 ;
10914 PyObject * obj2 = 0 ;
10915 PyObject * obj3 = 0 ;
10916 PyObject * obj4 = 0 ;
10917 char *kwnames[] = {
10918 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10919 };
10920
10921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipseXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10922 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10923 {
10924 arg2 = (int) SWIG_PyObj_AsInt(obj1);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 }
10927 {
10928 arg3 = (int) SWIG_PyObj_AsInt(obj2);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 }
10931 {
10932 arg4 = (int) SWIG_PyObj_AsInt(obj3);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 {
10936 arg5 = (int) SWIG_PyObj_AsInt(obj4);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 {
10940 PyThreadState* __tstate = wxPyBeginAllowThreads();
10941 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
10942
10943 wxPyEndAllowThreads(__tstate);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 }
10946 Py_INCREF(Py_None); resultobj = Py_None;
10947 return resultobj;
10948 fail:
10949 return NULL;
10950 }
10951
10952
10953 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
10954 PyObject *resultobj;
10955 wxDC *arg1 = (wxDC *) 0 ;
10956 wxPoint *arg2 = 0 ;
10957 wxSize *arg3 = 0 ;
10958 wxPoint temp2 ;
10959 wxSize temp3 ;
10960 PyObject * obj0 = 0 ;
10961 PyObject * obj1 = 0 ;
10962 PyObject * obj2 = 0 ;
10963 char *kwnames[] = {
10964 (char *) "self",(char *) "pt",(char *) "sz", NULL
10965 };
10966
10967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2)) goto fail;
10968 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
10969 {
10970 arg2 = &temp2;
10971 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10972 }
10973 {
10974 arg3 = &temp3;
10975 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10976 }
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
10980
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 Py_INCREF(Py_None); resultobj = Py_None;
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj;
10993 wxDC *arg1 = (wxDC *) 0 ;
10994 wxRect *arg2 = 0 ;
10995 wxRect temp2 ;
10996 PyObject * obj0 = 0 ;
10997 PyObject * obj1 = 0 ;
10998 char *kwnames[] = {
10999 (char *) "self",(char *) "rect", NULL
11000 };
11001
11002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11003 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11004 {
11005 arg2 = &temp2;
11006 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11007 }
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 (arg1)->DrawEllipse((wxRect const &)*arg2);
11011
11012 wxPyEndAllowThreads(__tstate);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 }
11015 Py_INCREF(Py_None); resultobj = Py_None;
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 static PyObject *_wrap_DC_DrawIconXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj;
11024 wxDC *arg1 = (wxDC *) 0 ;
11025 wxIcon *arg2 = 0 ;
11026 int arg3 ;
11027 int arg4 ;
11028 PyObject * obj0 = 0 ;
11029 PyObject * obj1 = 0 ;
11030 PyObject * obj2 = 0 ;
11031 PyObject * obj3 = 0 ;
11032 char *kwnames[] = {
11033 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11034 };
11035
11036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIconXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11037 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11038 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11039 if (arg2 == NULL) {
11040 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11041 }
11042 {
11043 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 {
11047 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 Py_INCREF(Py_None); resultobj = Py_None;
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj;
11066 wxDC *arg1 = (wxDC *) 0 ;
11067 wxIcon *arg2 = 0 ;
11068 wxPoint *arg3 = 0 ;
11069 wxPoint temp3 ;
11070 PyObject * obj0 = 0 ;
11071 PyObject * obj1 = 0 ;
11072 PyObject * obj2 = 0 ;
11073 char *kwnames[] = {
11074 (char *) "self",(char *) "icon",(char *) "pt", NULL
11075 };
11076
11077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2)) goto fail;
11078 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11079 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11080 if (arg2 == NULL) {
11081 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11082 }
11083 {
11084 arg3 = &temp3;
11085 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11086 }
11087 {
11088 PyThreadState* __tstate = wxPyBeginAllowThreads();
11089 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11090
11091 wxPyEndAllowThreads(__tstate);
11092 if (PyErr_Occurred()) SWIG_fail;
11093 }
11094 Py_INCREF(Py_None); resultobj = Py_None;
11095 return resultobj;
11096 fail:
11097 return NULL;
11098 }
11099
11100
11101 static PyObject *_wrap_DC_DrawBitmapXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11102 PyObject *resultobj;
11103 wxDC *arg1 = (wxDC *) 0 ;
11104 wxBitmap *arg2 = 0 ;
11105 int arg3 ;
11106 int arg4 ;
11107 bool arg5 = (bool) False ;
11108 PyObject * obj0 = 0 ;
11109 PyObject * obj1 = 0 ;
11110 PyObject * obj2 = 0 ;
11111 PyObject * obj3 = 0 ;
11112 PyObject * obj4 = 0 ;
11113 char *kwnames[] = {
11114 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11115 };
11116
11117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmapXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11119 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11120 if (arg2 == NULL) {
11121 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11122 }
11123 {
11124 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 {
11128 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 if (obj4) {
11132 {
11133 arg5 = (bool) SWIG_PyObj_AsBool(obj4);
11134 if (PyErr_Occurred()) SWIG_fail;
11135 }
11136 }
11137 {
11138 PyThreadState* __tstate = wxPyBeginAllowThreads();
11139 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11140
11141 wxPyEndAllowThreads(__tstate);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 }
11144 Py_INCREF(Py_None); resultobj = Py_None;
11145 return resultobj;
11146 fail:
11147 return NULL;
11148 }
11149
11150
11151 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11152 PyObject *resultobj;
11153 wxDC *arg1 = (wxDC *) 0 ;
11154 wxBitmap *arg2 = 0 ;
11155 wxPoint *arg3 = 0 ;
11156 bool arg4 = (bool) False ;
11157 wxPoint temp3 ;
11158 PyObject * obj0 = 0 ;
11159 PyObject * obj1 = 0 ;
11160 PyObject * obj2 = 0 ;
11161 PyObject * obj3 = 0 ;
11162 char *kwnames[] = {
11163 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11164 };
11165
11166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11167 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11168 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11169 if (arg2 == NULL) {
11170 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11171 }
11172 {
11173 arg3 = &temp3;
11174 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11175 }
11176 if (obj3) {
11177 {
11178 arg4 = (bool) SWIG_PyObj_AsBool(obj3);
11179 if (PyErr_Occurred()) SWIG_fail;
11180 }
11181 }
11182 {
11183 PyThreadState* __tstate = wxPyBeginAllowThreads();
11184 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11185
11186 wxPyEndAllowThreads(__tstate);
11187 if (PyErr_Occurred()) SWIG_fail;
11188 }
11189 Py_INCREF(Py_None); resultobj = Py_None;
11190 return resultobj;
11191 fail:
11192 return NULL;
11193 }
11194
11195
11196 static PyObject *_wrap_DC_DrawTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11197 PyObject *resultobj;
11198 wxDC *arg1 = (wxDC *) 0 ;
11199 wxString *arg2 = 0 ;
11200 int arg3 ;
11201 int arg4 ;
11202 bool temp2 = False ;
11203 PyObject * obj0 = 0 ;
11204 PyObject * obj1 = 0 ;
11205 PyObject * obj2 = 0 ;
11206 PyObject * obj3 = 0 ;
11207 char *kwnames[] = {
11208 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11209 };
11210
11211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawTextXY",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11212 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11213 {
11214 arg2 = wxString_in_helper(obj1);
11215 if (arg2 == NULL) SWIG_fail;
11216 temp2 = True;
11217 }
11218 {
11219 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 {
11223 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11224 if (PyErr_Occurred()) SWIG_fail;
11225 }
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
11228 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11229
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 Py_INCREF(Py_None); resultobj = Py_None;
11234 {
11235 if (temp2)
11236 delete arg2;
11237 }
11238 return resultobj;
11239 fail:
11240 {
11241 if (temp2)
11242 delete arg2;
11243 }
11244 return NULL;
11245 }
11246
11247
11248 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11249 PyObject *resultobj;
11250 wxDC *arg1 = (wxDC *) 0 ;
11251 wxString *arg2 = 0 ;
11252 wxPoint *arg3 = 0 ;
11253 bool temp2 = False ;
11254 wxPoint temp3 ;
11255 PyObject * obj0 = 0 ;
11256 PyObject * obj1 = 0 ;
11257 PyObject * obj2 = 0 ;
11258 char *kwnames[] = {
11259 (char *) "self",(char *) "text",(char *) "pt", NULL
11260 };
11261
11262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2)) goto fail;
11263 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11264 {
11265 arg2 = wxString_in_helper(obj1);
11266 if (arg2 == NULL) SWIG_fail;
11267 temp2 = True;
11268 }
11269 {
11270 arg3 = &temp3;
11271 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11272 }
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11276
11277 wxPyEndAllowThreads(__tstate);
11278 if (PyErr_Occurred()) SWIG_fail;
11279 }
11280 Py_INCREF(Py_None); resultobj = Py_None;
11281 {
11282 if (temp2)
11283 delete arg2;
11284 }
11285 return resultobj;
11286 fail:
11287 {
11288 if (temp2)
11289 delete arg2;
11290 }
11291 return NULL;
11292 }
11293
11294
11295 static PyObject *_wrap_DC_DrawRotatedTextXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11296 PyObject *resultobj;
11297 wxDC *arg1 = (wxDC *) 0 ;
11298 wxString *arg2 = 0 ;
11299 int arg3 ;
11300 int arg4 ;
11301 double arg5 ;
11302 bool temp2 = False ;
11303 PyObject * obj0 = 0 ;
11304 PyObject * obj1 = 0 ;
11305 PyObject * obj2 = 0 ;
11306 PyObject * obj3 = 0 ;
11307 PyObject * obj4 = 0 ;
11308 char *kwnames[] = {
11309 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11310 };
11311
11312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedTextXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11313 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11314 {
11315 arg2 = wxString_in_helper(obj1);
11316 if (arg2 == NULL) SWIG_fail;
11317 temp2 = True;
11318 }
11319 {
11320 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 {
11328 arg5 = (double) SWIG_PyObj_AsDouble(obj4);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 {
11332 PyThreadState* __tstate = wxPyBeginAllowThreads();
11333 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11334
11335 wxPyEndAllowThreads(__tstate);
11336 if (PyErr_Occurred()) SWIG_fail;
11337 }
11338 Py_INCREF(Py_None); resultobj = Py_None;
11339 {
11340 if (temp2)
11341 delete arg2;
11342 }
11343 return resultobj;
11344 fail:
11345 {
11346 if (temp2)
11347 delete arg2;
11348 }
11349 return NULL;
11350 }
11351
11352
11353 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj;
11355 wxDC *arg1 = (wxDC *) 0 ;
11356 wxString *arg2 = 0 ;
11357 wxPoint *arg3 = 0 ;
11358 double arg4 ;
11359 bool temp2 = False ;
11360 wxPoint temp3 ;
11361 PyObject * obj0 = 0 ;
11362 PyObject * obj1 = 0 ;
11363 PyObject * obj2 = 0 ;
11364 PyObject * obj3 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11367 };
11368
11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11370 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11371 {
11372 arg2 = wxString_in_helper(obj1);
11373 if (arg2 == NULL) SWIG_fail;
11374 temp2 = True;
11375 }
11376 {
11377 arg3 = &temp3;
11378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11379 }
11380 {
11381 arg4 = (double) SWIG_PyObj_AsDouble(obj3);
11382 if (PyErr_Occurred()) SWIG_fail;
11383 }
11384 {
11385 PyThreadState* __tstate = wxPyBeginAllowThreads();
11386 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11387
11388 wxPyEndAllowThreads(__tstate);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 }
11391 Py_INCREF(Py_None); resultobj = Py_None;
11392 {
11393 if (temp2)
11394 delete arg2;
11395 }
11396 return resultobj;
11397 fail:
11398 {
11399 if (temp2)
11400 delete arg2;
11401 }
11402 return NULL;
11403 }
11404
11405
11406 static PyObject *_wrap_DC_BlitXY(PyObject *self, PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj;
11408 wxDC *arg1 = (wxDC *) 0 ;
11409 int arg2 ;
11410 int arg3 ;
11411 int arg4 ;
11412 int arg5 ;
11413 wxDC *arg6 = (wxDC *) 0 ;
11414 int arg7 ;
11415 int arg8 ;
11416 int arg9 = (int) wxCOPY ;
11417 bool arg10 = (bool) False ;
11418 int arg11 = (int) -1 ;
11419 int arg12 = (int) -1 ;
11420 bool result;
11421 PyObject * obj0 = 0 ;
11422 PyObject * obj1 = 0 ;
11423 PyObject * obj2 = 0 ;
11424 PyObject * obj3 = 0 ;
11425 PyObject * obj4 = 0 ;
11426 PyObject * obj5 = 0 ;
11427 PyObject * obj6 = 0 ;
11428 PyObject * obj7 = 0 ;
11429 PyObject * obj8 = 0 ;
11430 PyObject * obj9 = 0 ;
11431 PyObject * obj10 = 0 ;
11432 PyObject * obj11 = 0 ;
11433 char *kwnames[] = {
11434 (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
11435 };
11436
11437 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;
11438 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11439 {
11440 arg2 = (int) SWIG_PyObj_AsInt(obj1);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 {
11444 arg3 = (int) SWIG_PyObj_AsInt(obj2);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 {
11448 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11449 if (PyErr_Occurred()) SWIG_fail;
11450 }
11451 {
11452 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 if ((SWIG_ConvertPtr(obj5,(void **) &arg6, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11456 {
11457 arg7 = (int) SWIG_PyObj_AsInt(obj6);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 {
11461 arg8 = (int) SWIG_PyObj_AsInt(obj7);
11462 if (PyErr_Occurred()) SWIG_fail;
11463 }
11464 if (obj8) {
11465 {
11466 arg9 = (int) SWIG_PyObj_AsInt(obj8);
11467 if (PyErr_Occurred()) SWIG_fail;
11468 }
11469 }
11470 if (obj9) {
11471 {
11472 arg10 = (bool) SWIG_PyObj_AsBool(obj9);
11473 if (PyErr_Occurred()) SWIG_fail;
11474 }
11475 }
11476 if (obj10) {
11477 {
11478 arg11 = (int) SWIG_PyObj_AsInt(obj10);
11479 if (PyErr_Occurred()) SWIG_fail;
11480 }
11481 }
11482 if (obj11) {
11483 {
11484 arg12 = (int) SWIG_PyObj_AsInt(obj11);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 }
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11491
11492 wxPyEndAllowThreads(__tstate);
11493 if (PyErr_Occurred()) SWIG_fail;
11494 }
11495 resultobj = SWIG_PyObj_FromBool((bool)result);
11496 return resultobj;
11497 fail:
11498 return NULL;
11499 }
11500
11501
11502 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11503 PyObject *resultobj;
11504 wxDC *arg1 = (wxDC *) 0 ;
11505 wxPoint *arg2 = 0 ;
11506 wxSize *arg3 = 0 ;
11507 wxDC *arg4 = (wxDC *) 0 ;
11508 wxPoint *arg5 = 0 ;
11509 int arg6 = (int) wxCOPY ;
11510 bool arg7 = (bool) False ;
11511 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11512 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11513 bool result;
11514 wxPoint temp2 ;
11515 wxSize temp3 ;
11516 wxPoint temp5 ;
11517 wxPoint temp8 ;
11518 PyObject * obj0 = 0 ;
11519 PyObject * obj1 = 0 ;
11520 PyObject * obj2 = 0 ;
11521 PyObject * obj3 = 0 ;
11522 PyObject * obj4 = 0 ;
11523 PyObject * obj5 = 0 ;
11524 PyObject * obj6 = 0 ;
11525 PyObject * obj7 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11532 {
11533 arg2 = &temp2;
11534 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11535 }
11536 {
11537 arg3 = &temp3;
11538 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11539 }
11540 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11541 {
11542 arg5 = &temp5;
11543 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11544 }
11545 if (obj5) {
11546 {
11547 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11548 if (PyErr_Occurred()) SWIG_fail;
11549 }
11550 }
11551 if (obj6) {
11552 {
11553 arg7 = (bool) SWIG_PyObj_AsBool(obj6);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 }
11556 }
11557 if (obj7) {
11558 {
11559 arg8 = &temp8;
11560 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11561 }
11562 }
11563 {
11564 PyThreadState* __tstate = wxPyBeginAllowThreads();
11565 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11566
11567 wxPyEndAllowThreads(__tstate);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 }
11570 resultobj = SWIG_PyObj_FromBool((bool)result);
11571 return resultobj;
11572 fail:
11573 return NULL;
11574 }
11575
11576
11577 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
11578 PyObject *resultobj;
11579 wxDC *arg1 = (wxDC *) 0 ;
11580 int arg2 ;
11581 wxPoint *arg3 = (wxPoint *) 0 ;
11582 int arg4 = (int) 0 ;
11583 int arg5 = (int) 0 ;
11584 PyObject * obj0 = 0 ;
11585 PyObject * obj1 = 0 ;
11586 PyObject * obj2 = 0 ;
11587 PyObject * obj3 = 0 ;
11588 char *kwnames[] = {
11589 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
11590 };
11591
11592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11593 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11594 {
11595 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11596 if (arg3 == NULL) SWIG_fail;
11597 }
11598 if (obj2) {
11599 {
11600 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 }
11604 if (obj3) {
11605 {
11606 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11607 if (PyErr_Occurred()) SWIG_fail;
11608 }
11609 }
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 Py_INCREF(Py_None); resultobj = Py_None;
11618 {
11619 if (arg3) delete [] arg3;
11620 }
11621 return resultobj;
11622 fail:
11623 {
11624 if (arg3) delete [] arg3;
11625 }
11626 return NULL;
11627 }
11628
11629
11630 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
11631 PyObject *resultobj;
11632 wxDC *arg1 = (wxDC *) 0 ;
11633 int arg2 ;
11634 wxPoint *arg3 = (wxPoint *) 0 ;
11635 int arg4 = (int) 0 ;
11636 int arg5 = (int) 0 ;
11637 int arg6 = (int) wxODDEVEN_RULE ;
11638 PyObject * obj0 = 0 ;
11639 PyObject * obj1 = 0 ;
11640 PyObject * obj2 = 0 ;
11641 PyObject * obj3 = 0 ;
11642 PyObject * obj4 = 0 ;
11643 char *kwnames[] = {
11644 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
11645 };
11646
11647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11648 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11649 {
11650 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11651 if (arg3 == NULL) SWIG_fail;
11652 }
11653 if (obj2) {
11654 {
11655 arg4 = (int) SWIG_PyObj_AsInt(obj2);
11656 if (PyErr_Occurred()) SWIG_fail;
11657 }
11658 }
11659 if (obj3) {
11660 {
11661 arg5 = (int) SWIG_PyObj_AsInt(obj3);
11662 if (PyErr_Occurred()) SWIG_fail;
11663 }
11664 }
11665 if (obj4) {
11666 {
11667 arg6 = (int) SWIG_PyObj_AsInt(obj4);
11668 if (PyErr_Occurred()) SWIG_fail;
11669 }
11670 }
11671 {
11672 PyThreadState* __tstate = wxPyBeginAllowThreads();
11673 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
11674
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 Py_INCREF(Py_None); resultobj = Py_None;
11679 {
11680 if (arg3) delete [] arg3;
11681 }
11682 return resultobj;
11683 fail:
11684 {
11685 if (arg3) delete [] arg3;
11686 }
11687 return NULL;
11688 }
11689
11690
11691 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11692 PyObject *resultobj;
11693 wxDC *arg1 = (wxDC *) 0 ;
11694 wxString *arg2 = 0 ;
11695 wxRect *arg3 = 0 ;
11696 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11697 int arg5 = (int) -1 ;
11698 bool temp2 = False ;
11699 wxRect temp3 ;
11700 PyObject * obj0 = 0 ;
11701 PyObject * obj1 = 0 ;
11702 PyObject * obj2 = 0 ;
11703 PyObject * obj3 = 0 ;
11704 PyObject * obj4 = 0 ;
11705 char *kwnames[] = {
11706 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11707 };
11708
11709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11710 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11711 {
11712 arg2 = wxString_in_helper(obj1);
11713 if (arg2 == NULL) SWIG_fail;
11714 temp2 = True;
11715 }
11716 {
11717 arg3 = &temp3;
11718 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
11719 }
11720 if (obj3) {
11721 {
11722 arg4 = (int) SWIG_PyObj_AsInt(obj3);
11723 if (PyErr_Occurred()) SWIG_fail;
11724 }
11725 }
11726 if (obj4) {
11727 {
11728 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 }
11731 }
11732 {
11733 PyThreadState* __tstate = wxPyBeginAllowThreads();
11734 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
11735
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 Py_INCREF(Py_None); resultobj = Py_None;
11740 {
11741 if (temp2)
11742 delete arg2;
11743 }
11744 return resultobj;
11745 fail:
11746 {
11747 if (temp2)
11748 delete arg2;
11749 }
11750 return NULL;
11751 }
11752
11753
11754 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj;
11756 wxDC *arg1 = (wxDC *) 0 ;
11757 wxString *arg2 = 0 ;
11758 wxBitmap *arg3 = 0 ;
11759 wxRect *arg4 = 0 ;
11760 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
11761 int arg6 = (int) -1 ;
11762 wxRect result;
11763 bool temp2 = False ;
11764 wxRect temp4 ;
11765 PyObject * obj0 = 0 ;
11766 PyObject * obj1 = 0 ;
11767 PyObject * obj2 = 0 ;
11768 PyObject * obj3 = 0 ;
11769 PyObject * obj4 = 0 ;
11770 PyObject * obj5 = 0 ;
11771 char *kwnames[] = {
11772 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
11773 };
11774
11775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11776 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11777 {
11778 arg2 = wxString_in_helper(obj1);
11779 if (arg2 == NULL) SWIG_fail;
11780 temp2 = True;
11781 }
11782 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11783 if (arg3 == NULL) {
11784 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
11785 }
11786 {
11787 arg4 = &temp4;
11788 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
11789 }
11790 if (obj4) {
11791 {
11792 arg5 = (int) SWIG_PyObj_AsInt(obj4);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 }
11795 }
11796 if (obj5) {
11797 {
11798 arg6 = (int) SWIG_PyObj_AsInt(obj5);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 }
11802 {
11803 PyThreadState* __tstate = wxPyBeginAllowThreads();
11804 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
11805
11806 wxPyEndAllowThreads(__tstate);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 }
11809 {
11810 wxRect * resultptr;
11811 resultptr = new wxRect((wxRect &) result);
11812 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
11813 }
11814 {
11815 if (temp2)
11816 delete arg2;
11817 }
11818 return resultobj;
11819 fail:
11820 {
11821 if (temp2)
11822 delete arg2;
11823 }
11824 return NULL;
11825 }
11826
11827
11828 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
11829 PyObject *resultobj;
11830 wxDC *arg1 = (wxDC *) 0 ;
11831 int arg2 ;
11832 wxPoint *arg3 = (wxPoint *) 0 ;
11833 PyObject * obj0 = 0 ;
11834 PyObject * obj1 = 0 ;
11835 char *kwnames[] = {
11836 (char *) "self",(char *) "points", NULL
11837 };
11838
11839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
11840 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11841 {
11842 arg3 = wxPoint_LIST_helper(obj1, &arg2);
11843 if (arg3 == NULL) SWIG_fail;
11844 }
11845 {
11846 PyThreadState* __tstate = wxPyBeginAllowThreads();
11847 (arg1)->DrawSpline(arg2,arg3);
11848
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 Py_INCREF(Py_None); resultobj = Py_None;
11853 {
11854 if (arg3) delete [] arg3;
11855 }
11856 return resultobj;
11857 fail:
11858 {
11859 if (arg3) delete [] arg3;
11860 }
11861 return NULL;
11862 }
11863
11864
11865 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
11866 PyObject *resultobj;
11867 wxDC *arg1 = (wxDC *) 0 ;
11868 PyObject * obj0 = 0 ;
11869 char *kwnames[] = {
11870 (char *) "self", NULL
11871 };
11872
11873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
11874 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11875 {
11876 PyThreadState* __tstate = wxPyBeginAllowThreads();
11877 (arg1)->Clear();
11878
11879 wxPyEndAllowThreads(__tstate);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 }
11882 Py_INCREF(Py_None); resultobj = Py_None;
11883 return resultobj;
11884 fail:
11885 return NULL;
11886 }
11887
11888
11889 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11890 PyObject *resultobj;
11891 wxDC *arg1 = (wxDC *) 0 ;
11892 wxString *arg2 = 0 ;
11893 bool result;
11894 bool temp2 = False ;
11895 PyObject * obj0 = 0 ;
11896 PyObject * obj1 = 0 ;
11897 char *kwnames[] = {
11898 (char *) "self",(char *) "message", NULL
11899 };
11900
11901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
11902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11903 {
11904 arg2 = wxString_in_helper(obj1);
11905 if (arg2 == NULL) SWIG_fail;
11906 temp2 = True;
11907 }
11908 {
11909 PyThreadState* __tstate = wxPyBeginAllowThreads();
11910 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
11911
11912 wxPyEndAllowThreads(__tstate);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 }
11915 resultobj = SWIG_PyObj_FromBool((bool)result);
11916 {
11917 if (temp2)
11918 delete arg2;
11919 }
11920 return resultobj;
11921 fail:
11922 {
11923 if (temp2)
11924 delete arg2;
11925 }
11926 return NULL;
11927 }
11928
11929
11930 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj;
11932 wxDC *arg1 = (wxDC *) 0 ;
11933 PyObject * obj0 = 0 ;
11934 char *kwnames[] = {
11935 (char *) "self", NULL
11936 };
11937
11938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
11939 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11940 {
11941 PyThreadState* __tstate = wxPyBeginAllowThreads();
11942 (arg1)->EndDoc();
11943
11944 wxPyEndAllowThreads(__tstate);
11945 if (PyErr_Occurred()) SWIG_fail;
11946 }
11947 Py_INCREF(Py_None); resultobj = Py_None;
11948 return resultobj;
11949 fail:
11950 return NULL;
11951 }
11952
11953
11954 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11955 PyObject *resultobj;
11956 wxDC *arg1 = (wxDC *) 0 ;
11957 PyObject * obj0 = 0 ;
11958 char *kwnames[] = {
11959 (char *) "self", NULL
11960 };
11961
11962 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
11963 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 (arg1)->StartPage();
11967
11968 wxPyEndAllowThreads(__tstate);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 }
11971 Py_INCREF(Py_None); resultobj = Py_None;
11972 return resultobj;
11973 fail:
11974 return NULL;
11975 }
11976
11977
11978 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
11979 PyObject *resultobj;
11980 wxDC *arg1 = (wxDC *) 0 ;
11981 PyObject * obj0 = 0 ;
11982 char *kwnames[] = {
11983 (char *) "self", NULL
11984 };
11985
11986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
11987 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
11988 {
11989 PyThreadState* __tstate = wxPyBeginAllowThreads();
11990 (arg1)->EndPage();
11991
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 Py_INCREF(Py_None); resultobj = Py_None;
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12003 PyObject *resultobj;
12004 wxDC *arg1 = (wxDC *) 0 ;
12005 wxFont *arg2 = 0 ;
12006 PyObject * obj0 = 0 ;
12007 PyObject * obj1 = 0 ;
12008 char *kwnames[] = {
12009 (char *) "self",(char *) "font", NULL
12010 };
12011
12012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12013 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12014 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12015 if (arg2 == NULL) {
12016 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12017 }
12018 {
12019 PyThreadState* __tstate = wxPyBeginAllowThreads();
12020 (arg1)->SetFont((wxFont const &)*arg2);
12021
12022 wxPyEndAllowThreads(__tstate);
12023 if (PyErr_Occurred()) SWIG_fail;
12024 }
12025 Py_INCREF(Py_None); resultobj = Py_None;
12026 return resultobj;
12027 fail:
12028 return NULL;
12029 }
12030
12031
12032 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12033 PyObject *resultobj;
12034 wxDC *arg1 = (wxDC *) 0 ;
12035 wxPen *arg2 = 0 ;
12036 PyObject * obj0 = 0 ;
12037 PyObject * obj1 = 0 ;
12038 char *kwnames[] = {
12039 (char *) "self",(char *) "pen", NULL
12040 };
12041
12042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12044 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12045 if (arg2 == NULL) {
12046 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12047 }
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 (arg1)->SetPen((wxPen const &)*arg2);
12051
12052 wxPyEndAllowThreads(__tstate);
12053 if (PyErr_Occurred()) SWIG_fail;
12054 }
12055 Py_INCREF(Py_None); resultobj = Py_None;
12056 return resultobj;
12057 fail:
12058 return NULL;
12059 }
12060
12061
12062 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12063 PyObject *resultobj;
12064 wxDC *arg1 = (wxDC *) 0 ;
12065 wxBrush *arg2 = 0 ;
12066 PyObject * obj0 = 0 ;
12067 PyObject * obj1 = 0 ;
12068 char *kwnames[] = {
12069 (char *) "self",(char *) "brush", NULL
12070 };
12071
12072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12073 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12074 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12075 if (arg2 == NULL) {
12076 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12077 }
12078 {
12079 PyThreadState* __tstate = wxPyBeginAllowThreads();
12080 (arg1)->SetBrush((wxBrush const &)*arg2);
12081
12082 wxPyEndAllowThreads(__tstate);
12083 if (PyErr_Occurred()) SWIG_fail;
12084 }
12085 Py_INCREF(Py_None); resultobj = Py_None;
12086 return resultobj;
12087 fail:
12088 return NULL;
12089 }
12090
12091
12092 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12093 PyObject *resultobj;
12094 wxDC *arg1 = (wxDC *) 0 ;
12095 wxBrush *arg2 = 0 ;
12096 PyObject * obj0 = 0 ;
12097 PyObject * obj1 = 0 ;
12098 char *kwnames[] = {
12099 (char *) "self",(char *) "brush", NULL
12100 };
12101
12102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12103 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12104 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12105 if (arg2 == NULL) {
12106 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12107 }
12108 {
12109 PyThreadState* __tstate = wxPyBeginAllowThreads();
12110 (arg1)->SetBackground((wxBrush const &)*arg2);
12111
12112 wxPyEndAllowThreads(__tstate);
12113 if (PyErr_Occurred()) SWIG_fail;
12114 }
12115 Py_INCREF(Py_None); resultobj = Py_None;
12116 return resultobj;
12117 fail:
12118 return NULL;
12119 }
12120
12121
12122 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12123 PyObject *resultobj;
12124 wxDC *arg1 = (wxDC *) 0 ;
12125 int arg2 ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 char *kwnames[] = {
12129 (char *) "self",(char *) "mode", NULL
12130 };
12131
12132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12133 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12134 {
12135 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 {
12139 PyThreadState* __tstate = wxPyBeginAllowThreads();
12140 (arg1)->SetBackgroundMode(arg2);
12141
12142 wxPyEndAllowThreads(__tstate);
12143 if (PyErr_Occurred()) SWIG_fail;
12144 }
12145 Py_INCREF(Py_None); resultobj = Py_None;
12146 return resultobj;
12147 fail:
12148 return NULL;
12149 }
12150
12151
12152 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12153 PyObject *resultobj;
12154 wxDC *arg1 = (wxDC *) 0 ;
12155 wxPalette *arg2 = 0 ;
12156 PyObject * obj0 = 0 ;
12157 PyObject * obj1 = 0 ;
12158 char *kwnames[] = {
12159 (char *) "self",(char *) "palette", NULL
12160 };
12161
12162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12163 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12164 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPalette,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12165 if (arg2 == NULL) {
12166 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12167 }
12168 {
12169 PyThreadState* __tstate = wxPyBeginAllowThreads();
12170 (arg1)->SetPalette((wxPalette const &)*arg2);
12171
12172 wxPyEndAllowThreads(__tstate);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 Py_INCREF(Py_None); resultobj = Py_None;
12176 return resultobj;
12177 fail:
12178 return NULL;
12179 }
12180
12181
12182 static PyObject *_wrap_DC_SetClippingRegionXY(PyObject *self, PyObject *args, PyObject *kwargs) {
12183 PyObject *resultobj;
12184 wxDC *arg1 = (wxDC *) 0 ;
12185 int arg2 ;
12186 int arg3 ;
12187 int arg4 ;
12188 int arg5 ;
12189 PyObject * obj0 = 0 ;
12190 PyObject * obj1 = 0 ;
12191 PyObject * obj2 = 0 ;
12192 PyObject * obj3 = 0 ;
12193 PyObject * obj4 = 0 ;
12194 char *kwnames[] = {
12195 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12196 };
12197
12198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegionXY",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12199 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12200 {
12201 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12202 if (PyErr_Occurred()) SWIG_fail;
12203 }
12204 {
12205 arg3 = (int) SWIG_PyObj_AsInt(obj2);
12206 if (PyErr_Occurred()) SWIG_fail;
12207 }
12208 {
12209 arg4 = (int) SWIG_PyObj_AsInt(obj3);
12210 if (PyErr_Occurred()) SWIG_fail;
12211 }
12212 {
12213 arg5 = (int) SWIG_PyObj_AsInt(obj4);
12214 if (PyErr_Occurred()) SWIG_fail;
12215 }
12216 {
12217 PyThreadState* __tstate = wxPyBeginAllowThreads();
12218 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12219
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 Py_INCREF(Py_None); resultobj = Py_None;
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12231 PyObject *resultobj;
12232 wxDC *arg1 = (wxDC *) 0 ;
12233 wxPoint *arg2 = 0 ;
12234 wxSize *arg3 = 0 ;
12235 wxPoint temp2 ;
12236 wxSize temp3 ;
12237 PyObject * obj0 = 0 ;
12238 PyObject * obj1 = 0 ;
12239 PyObject * obj2 = 0 ;
12240 char *kwnames[] = {
12241 (char *) "self",(char *) "pt",(char *) "sz", NULL
12242 };
12243
12244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2)) goto fail;
12245 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12246 {
12247 arg2 = &temp2;
12248 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12249 }
12250 {
12251 arg3 = &temp3;
12252 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12253 }
12254 {
12255 PyThreadState* __tstate = wxPyBeginAllowThreads();
12256 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12257
12258 wxPyEndAllowThreads(__tstate);
12259 if (PyErr_Occurred()) SWIG_fail;
12260 }
12261 Py_INCREF(Py_None); resultobj = Py_None;
12262 return resultobj;
12263 fail:
12264 return NULL;
12265 }
12266
12267
12268 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12269 PyObject *resultobj;
12270 wxDC *arg1 = (wxDC *) 0 ;
12271 wxRect *arg2 = 0 ;
12272 wxRect temp2 ;
12273 PyObject * obj0 = 0 ;
12274 PyObject * obj1 = 0 ;
12275 char *kwnames[] = {
12276 (char *) "self",(char *) "rect", NULL
12277 };
12278
12279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12280 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12281 {
12282 arg2 = &temp2;
12283 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12284 }
12285 {
12286 PyThreadState* __tstate = wxPyBeginAllowThreads();
12287 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12288
12289 wxPyEndAllowThreads(__tstate);
12290 if (PyErr_Occurred()) SWIG_fail;
12291 }
12292 Py_INCREF(Py_None); resultobj = Py_None;
12293 return resultobj;
12294 fail:
12295 return NULL;
12296 }
12297
12298
12299 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12300 PyObject *resultobj;
12301 wxDC *arg1 = (wxDC *) 0 ;
12302 wxRegion *arg2 = 0 ;
12303 PyObject * obj0 = 0 ;
12304 PyObject * obj1 = 0 ;
12305 char *kwnames[] = {
12306 (char *) "self",(char *) "region", NULL
12307 };
12308
12309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12310 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12311 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12312 if (arg2 == NULL) {
12313 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
12314 }
12315 {
12316 PyThreadState* __tstate = wxPyBeginAllowThreads();
12317 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12318
12319 wxPyEndAllowThreads(__tstate);
12320 if (PyErr_Occurred()) SWIG_fail;
12321 }
12322 Py_INCREF(Py_None); resultobj = Py_None;
12323 return resultobj;
12324 fail:
12325 return NULL;
12326 }
12327
12328
12329 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12330 PyObject *resultobj;
12331 wxDC *arg1 = (wxDC *) 0 ;
12332 PyObject * obj0 = 0 ;
12333 char *kwnames[] = {
12334 (char *) "self", NULL
12335 };
12336
12337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12338 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 (arg1)->DestroyClippingRegion();
12342
12343 wxPyEndAllowThreads(__tstate);
12344 if (PyErr_Occurred()) SWIG_fail;
12345 }
12346 Py_INCREF(Py_None); resultobj = Py_None;
12347 return resultobj;
12348 fail:
12349 return NULL;
12350 }
12351
12352
12353 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12354 PyObject *resultobj;
12355 wxDC *arg1 = (wxDC *) 0 ;
12356 int *arg2 = (int *) 0 ;
12357 int *arg3 = (int *) 0 ;
12358 int *arg4 = (int *) 0 ;
12359 int *arg5 = (int *) 0 ;
12360 int temp2 ;
12361 int temp3 ;
12362 int temp4 ;
12363 int temp5 ;
12364 PyObject * obj0 = 0 ;
12365 char *kwnames[] = {
12366 (char *) "self", NULL
12367 };
12368
12369 arg2 = &temp2;
12370 arg3 = &temp3;
12371 arg4 = &temp4;
12372 arg5 = &temp5;
12373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12374 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12375 {
12376 PyThreadState* __tstate = wxPyBeginAllowThreads();
12377 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12378
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 Py_INCREF(Py_None); resultobj = Py_None;
12383 {
12384 PyObject *o = PyInt_FromLong((long) (*arg2));
12385 resultobj = t_output_helper(resultobj,o);
12386 }
12387 {
12388 PyObject *o = PyInt_FromLong((long) (*arg3));
12389 resultobj = t_output_helper(resultobj,o);
12390 }
12391 {
12392 PyObject *o = PyInt_FromLong((long) (*arg4));
12393 resultobj = t_output_helper(resultobj,o);
12394 }
12395 {
12396 PyObject *o = PyInt_FromLong((long) (*arg5));
12397 resultobj = t_output_helper(resultobj,o);
12398 }
12399 return resultobj;
12400 fail:
12401 return NULL;
12402 }
12403
12404
12405 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12406 PyObject *resultobj;
12407 wxDC *arg1 = (wxDC *) 0 ;
12408 wxRect result;
12409 PyObject * obj0 = 0 ;
12410 char *kwnames[] = {
12411 (char *) "self", NULL
12412 };
12413
12414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12415 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12416 {
12417 PyThreadState* __tstate = wxPyBeginAllowThreads();
12418 result = wxDC_GetClippingRect(arg1);
12419
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 {
12424 wxRect * resultptr;
12425 resultptr = new wxRect((wxRect &) result);
12426 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxRect, 1);
12427 }
12428 return resultobj;
12429 fail:
12430 return NULL;
12431 }
12432
12433
12434 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12435 PyObject *resultobj;
12436 wxDC *arg1 = (wxDC *) 0 ;
12437 int result;
12438 PyObject * obj0 = 0 ;
12439 char *kwnames[] = {
12440 (char *) "self", NULL
12441 };
12442
12443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 result = (int)((wxDC const *)arg1)->GetCharHeight();
12448
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 resultobj = SWIG_PyObj_FromInt((int)result);
12453 return resultobj;
12454 fail:
12455 return NULL;
12456 }
12457
12458
12459 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj;
12461 wxDC *arg1 = (wxDC *) 0 ;
12462 int result;
12463 PyObject * obj0 = 0 ;
12464 char *kwnames[] = {
12465 (char *) "self", NULL
12466 };
12467
12468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12469 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = (int)((wxDC const *)arg1)->GetCharWidth();
12473
12474 wxPyEndAllowThreads(__tstate);
12475 if (PyErr_Occurred()) SWIG_fail;
12476 }
12477 resultobj = SWIG_PyObj_FromInt((int)result);
12478 return resultobj;
12479 fail:
12480 return NULL;
12481 }
12482
12483
12484 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12485 PyObject *resultobj;
12486 wxDC *arg1 = (wxDC *) 0 ;
12487 wxString *arg2 = 0 ;
12488 int *arg3 = (int *) 0 ;
12489 int *arg4 = (int *) 0 ;
12490 bool temp2 = False ;
12491 int temp3 ;
12492 int temp4 ;
12493 PyObject * obj0 = 0 ;
12494 PyObject * obj1 = 0 ;
12495 char *kwnames[] = {
12496 (char *) "self",(char *) "string", NULL
12497 };
12498
12499 arg3 = &temp3;
12500 arg4 = &temp4;
12501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12502 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12503 {
12504 arg2 = wxString_in_helper(obj1);
12505 if (arg2 == NULL) SWIG_fail;
12506 temp2 = True;
12507 }
12508 {
12509 PyThreadState* __tstate = wxPyBeginAllowThreads();
12510 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12511
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 Py_INCREF(Py_None); resultobj = Py_None;
12516 {
12517 PyObject *o = PyInt_FromLong((long) (*arg3));
12518 resultobj = t_output_helper(resultobj,o);
12519 }
12520 {
12521 PyObject *o = PyInt_FromLong((long) (*arg4));
12522 resultobj = t_output_helper(resultobj,o);
12523 }
12524 {
12525 if (temp2)
12526 delete arg2;
12527 }
12528 return resultobj;
12529 fail:
12530 {
12531 if (temp2)
12532 delete arg2;
12533 }
12534 return NULL;
12535 }
12536
12537
12538 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12539 PyObject *resultobj;
12540 wxDC *arg1 = (wxDC *) 0 ;
12541 wxString *arg2 = 0 ;
12542 int *arg3 = (int *) 0 ;
12543 int *arg4 = (int *) 0 ;
12544 int *arg5 = (int *) 0 ;
12545 int *arg6 = (int *) 0 ;
12546 wxFont *arg7 = (wxFont *) NULL ;
12547 bool temp2 = False ;
12548 int temp3 ;
12549 int temp4 ;
12550 int temp5 ;
12551 int temp6 ;
12552 PyObject * obj0 = 0 ;
12553 PyObject * obj1 = 0 ;
12554 PyObject * obj2 = 0 ;
12555 char *kwnames[] = {
12556 (char *) "self",(char *) "string",(char *) "font", NULL
12557 };
12558
12559 arg3 = &temp3;
12560 arg4 = &temp4;
12561 arg5 = &temp5;
12562 arg6 = &temp6;
12563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12564 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12565 {
12566 arg2 = wxString_in_helper(obj1);
12567 if (arg2 == NULL) SWIG_fail;
12568 temp2 = True;
12569 }
12570 if (obj2) {
12571 if ((SWIG_ConvertPtr(obj2,(void **) &arg7, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12572 }
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12576
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 Py_INCREF(Py_None); resultobj = Py_None;
12581 {
12582 PyObject *o = PyInt_FromLong((long) (*arg3));
12583 resultobj = t_output_helper(resultobj,o);
12584 }
12585 {
12586 PyObject *o = PyInt_FromLong((long) (*arg4));
12587 resultobj = t_output_helper(resultobj,o);
12588 }
12589 {
12590 PyObject *o = PyInt_FromLong((long) (*arg5));
12591 resultobj = t_output_helper(resultobj,o);
12592 }
12593 {
12594 PyObject *o = PyInt_FromLong((long) (*arg6));
12595 resultobj = t_output_helper(resultobj,o);
12596 }
12597 {
12598 if (temp2)
12599 delete arg2;
12600 }
12601 return resultobj;
12602 fail:
12603 {
12604 if (temp2)
12605 delete arg2;
12606 }
12607 return NULL;
12608 }
12609
12610
12611 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12612 PyObject *resultobj;
12613 wxDC *arg1 = (wxDC *) 0 ;
12614 wxString *arg2 = 0 ;
12615 int *arg3 = (int *) 0 ;
12616 int *arg4 = (int *) 0 ;
12617 int *arg5 = (int *) 0 ;
12618 wxFont *arg6 = (wxFont *) NULL ;
12619 bool temp2 = False ;
12620 int temp3 ;
12621 int temp4 ;
12622 int temp5 ;
12623 PyObject * obj0 = 0 ;
12624 PyObject * obj1 = 0 ;
12625 PyObject * obj2 = 0 ;
12626 char *kwnames[] = {
12627 (char *) "self",(char *) "text",(char *) "font", NULL
12628 };
12629
12630 arg3 = &temp3;
12631 arg4 = &temp4;
12632 arg5 = &temp5;
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12634 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12635 {
12636 arg2 = wxString_in_helper(obj1);
12637 if (arg2 == NULL) SWIG_fail;
12638 temp2 = True;
12639 }
12640 if (obj2) {
12641 if ((SWIG_ConvertPtr(obj2,(void **) &arg6, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12642 }
12643 {
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12646
12647 wxPyEndAllowThreads(__tstate);
12648 if (PyErr_Occurred()) SWIG_fail;
12649 }
12650 Py_INCREF(Py_None); resultobj = Py_None;
12651 {
12652 PyObject *o = PyInt_FromLong((long) (*arg3));
12653 resultobj = t_output_helper(resultobj,o);
12654 }
12655 {
12656 PyObject *o = PyInt_FromLong((long) (*arg4));
12657 resultobj = t_output_helper(resultobj,o);
12658 }
12659 {
12660 PyObject *o = PyInt_FromLong((long) (*arg5));
12661 resultobj = t_output_helper(resultobj,o);
12662 }
12663 {
12664 if (temp2)
12665 delete arg2;
12666 }
12667 return resultobj;
12668 fail:
12669 {
12670 if (temp2)
12671 delete arg2;
12672 }
12673 return NULL;
12674 }
12675
12676
12677 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj;
12679 wxDC *arg1 = (wxDC *) 0 ;
12680 wxSize result;
12681 PyObject * obj0 = 0 ;
12682 char *kwnames[] = {
12683 (char *) "self", NULL
12684 };
12685
12686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
12687 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12688 {
12689 PyThreadState* __tstate = wxPyBeginAllowThreads();
12690 result = (arg1)->GetSize();
12691
12692 wxPyEndAllowThreads(__tstate);
12693 if (PyErr_Occurred()) SWIG_fail;
12694 }
12695 {
12696 wxSize * resultptr;
12697 resultptr = new wxSize((wxSize &) result);
12698 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12699 }
12700 return resultobj;
12701 fail:
12702 return NULL;
12703 }
12704
12705
12706 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12707 PyObject *resultobj;
12708 wxDC *arg1 = (wxDC *) 0 ;
12709 int *arg2 = (int *) 0 ;
12710 int *arg3 = (int *) 0 ;
12711 int temp2 ;
12712 int temp3 ;
12713 PyObject * obj0 = 0 ;
12714 char *kwnames[] = {
12715 (char *) "self", NULL
12716 };
12717
12718 arg2 = &temp2;
12719 arg3 = &temp3;
12720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
12721 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12722 {
12723 PyThreadState* __tstate = wxPyBeginAllowThreads();
12724 (arg1)->GetSize(arg2,arg3);
12725
12726 wxPyEndAllowThreads(__tstate);
12727 if (PyErr_Occurred()) SWIG_fail;
12728 }
12729 Py_INCREF(Py_None); resultobj = Py_None;
12730 {
12731 PyObject *o = PyInt_FromLong((long) (*arg2));
12732 resultobj = t_output_helper(resultobj,o);
12733 }
12734 {
12735 PyObject *o = PyInt_FromLong((long) (*arg3));
12736 resultobj = t_output_helper(resultobj,o);
12737 }
12738 return resultobj;
12739 fail:
12740 return NULL;
12741 }
12742
12743
12744 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
12745 PyObject *resultobj;
12746 wxDC *arg1 = (wxDC *) 0 ;
12747 wxSize result;
12748 PyObject * obj0 = 0 ;
12749 char *kwnames[] = {
12750 (char *) "self", NULL
12751 };
12752
12753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
12754 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12755 {
12756 PyThreadState* __tstate = wxPyBeginAllowThreads();
12757 result = ((wxDC const *)arg1)->GetSizeMM();
12758
12759 wxPyEndAllowThreads(__tstate);
12760 if (PyErr_Occurred()) SWIG_fail;
12761 }
12762 {
12763 wxSize * resultptr;
12764 resultptr = new wxSize((wxSize &) result);
12765 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
12766 }
12767 return resultobj;
12768 fail:
12769 return NULL;
12770 }
12771
12772
12773 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
12774 PyObject *resultobj;
12775 wxDC *arg1 = (wxDC *) 0 ;
12776 int *arg2 = (int *) 0 ;
12777 int *arg3 = (int *) 0 ;
12778 int temp2 ;
12779 int temp3 ;
12780 PyObject * obj0 = 0 ;
12781 char *kwnames[] = {
12782 (char *) "self", NULL
12783 };
12784
12785 arg2 = &temp2;
12786 arg3 = &temp3;
12787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
12788 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12789 {
12790 PyThreadState* __tstate = wxPyBeginAllowThreads();
12791 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
12792
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 Py_INCREF(Py_None); resultobj = Py_None;
12797 {
12798 PyObject *o = PyInt_FromLong((long) (*arg2));
12799 resultobj = t_output_helper(resultobj,o);
12800 }
12801 {
12802 PyObject *o = PyInt_FromLong((long) (*arg3));
12803 resultobj = t_output_helper(resultobj,o);
12804 }
12805 return resultobj;
12806 fail:
12807 return NULL;
12808 }
12809
12810
12811 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
12812 PyObject *resultobj;
12813 wxDC *arg1 = (wxDC *) 0 ;
12814 int arg2 ;
12815 int result;
12816 PyObject * obj0 = 0 ;
12817 PyObject * obj1 = 0 ;
12818 char *kwnames[] = {
12819 (char *) "self",(char *) "x", NULL
12820 };
12821
12822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
12823 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12824 {
12825 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12826 if (PyErr_Occurred()) SWIG_fail;
12827 }
12828 {
12829 PyThreadState* __tstate = wxPyBeginAllowThreads();
12830 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
12831
12832 wxPyEndAllowThreads(__tstate);
12833 if (PyErr_Occurred()) SWIG_fail;
12834 }
12835 resultobj = SWIG_PyObj_FromInt((int)result);
12836 return resultobj;
12837 fail:
12838 return NULL;
12839 }
12840
12841
12842 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
12843 PyObject *resultobj;
12844 wxDC *arg1 = (wxDC *) 0 ;
12845 int arg2 ;
12846 int result;
12847 PyObject * obj0 = 0 ;
12848 PyObject * obj1 = 0 ;
12849 char *kwnames[] = {
12850 (char *) "self",(char *) "y", NULL
12851 };
12852
12853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
12854 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12855 {
12856 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12857 if (PyErr_Occurred()) SWIG_fail;
12858 }
12859 {
12860 PyThreadState* __tstate = wxPyBeginAllowThreads();
12861 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
12862
12863 wxPyEndAllowThreads(__tstate);
12864 if (PyErr_Occurred()) SWIG_fail;
12865 }
12866 resultobj = SWIG_PyObj_FromInt((int)result);
12867 return resultobj;
12868 fail:
12869 return NULL;
12870 }
12871
12872
12873 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12874 PyObject *resultobj;
12875 wxDC *arg1 = (wxDC *) 0 ;
12876 int arg2 ;
12877 int result;
12878 PyObject * obj0 = 0 ;
12879 PyObject * obj1 = 0 ;
12880 char *kwnames[] = {
12881 (char *) "self",(char *) "x", NULL
12882 };
12883
12884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
12885 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12886 {
12887 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12888 if (PyErr_Occurred()) SWIG_fail;
12889 }
12890 {
12891 PyThreadState* __tstate = wxPyBeginAllowThreads();
12892 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
12893
12894 wxPyEndAllowThreads(__tstate);
12895 if (PyErr_Occurred()) SWIG_fail;
12896 }
12897 resultobj = SWIG_PyObj_FromInt((int)result);
12898 return resultobj;
12899 fail:
12900 return NULL;
12901 }
12902
12903
12904 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12905 PyObject *resultobj;
12906 wxDC *arg1 = (wxDC *) 0 ;
12907 int arg2 ;
12908 int result;
12909 PyObject * obj0 = 0 ;
12910 PyObject * obj1 = 0 ;
12911 char *kwnames[] = {
12912 (char *) "self",(char *) "y", NULL
12913 };
12914
12915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
12916 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12917 {
12918 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12919 if (PyErr_Occurred()) SWIG_fail;
12920 }
12921 {
12922 PyThreadState* __tstate = wxPyBeginAllowThreads();
12923 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
12924
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = SWIG_PyObj_FromInt((int)result);
12929 return resultobj;
12930 fail:
12931 return NULL;
12932 }
12933
12934
12935 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
12936 PyObject *resultobj;
12937 wxDC *arg1 = (wxDC *) 0 ;
12938 int arg2 ;
12939 int result;
12940 PyObject * obj0 = 0 ;
12941 PyObject * obj1 = 0 ;
12942 char *kwnames[] = {
12943 (char *) "self",(char *) "x", NULL
12944 };
12945
12946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
12947 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12948 {
12949 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12950 if (PyErr_Occurred()) SWIG_fail;
12951 }
12952 {
12953 PyThreadState* __tstate = wxPyBeginAllowThreads();
12954 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
12955
12956 wxPyEndAllowThreads(__tstate);
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 resultobj = SWIG_PyObj_FromInt((int)result);
12960 return resultobj;
12961 fail:
12962 return NULL;
12963 }
12964
12965
12966 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
12967 PyObject *resultobj;
12968 wxDC *arg1 = (wxDC *) 0 ;
12969 int arg2 ;
12970 int result;
12971 PyObject * obj0 = 0 ;
12972 PyObject * obj1 = 0 ;
12973 char *kwnames[] = {
12974 (char *) "self",(char *) "y", NULL
12975 };
12976
12977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
12978 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
12979 {
12980 arg2 = (int) SWIG_PyObj_AsInt(obj1);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
12986
12987 wxPyEndAllowThreads(__tstate);
12988 if (PyErr_Occurred()) SWIG_fail;
12989 }
12990 resultobj = SWIG_PyObj_FromInt((int)result);
12991 return resultobj;
12992 fail:
12993 return NULL;
12994 }
12995
12996
12997 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
12998 PyObject *resultobj;
12999 wxDC *arg1 = (wxDC *) 0 ;
13000 int arg2 ;
13001 int result;
13002 PyObject * obj0 = 0 ;
13003 PyObject * obj1 = 0 ;
13004 char *kwnames[] = {
13005 (char *) "self",(char *) "x", NULL
13006 };
13007
13008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13009 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13010 {
13011 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13012 if (PyErr_Occurred()) SWIG_fail;
13013 }
13014 {
13015 PyThreadState* __tstate = wxPyBeginAllowThreads();
13016 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13017
13018 wxPyEndAllowThreads(__tstate);
13019 if (PyErr_Occurred()) SWIG_fail;
13020 }
13021 resultobj = SWIG_PyObj_FromInt((int)result);
13022 return resultobj;
13023 fail:
13024 return NULL;
13025 }
13026
13027
13028 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13029 PyObject *resultobj;
13030 wxDC *arg1 = (wxDC *) 0 ;
13031 int arg2 ;
13032 int result;
13033 PyObject * obj0 = 0 ;
13034 PyObject * obj1 = 0 ;
13035 char *kwnames[] = {
13036 (char *) "self",(char *) "y", NULL
13037 };
13038
13039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13040 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13041 {
13042 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13048
13049 wxPyEndAllowThreads(__tstate);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 resultobj = SWIG_PyObj_FromInt((int)result);
13053 return resultobj;
13054 fail:
13055 return NULL;
13056 }
13057
13058
13059 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj;
13061 wxDC *arg1 = (wxDC *) 0 ;
13062 bool result;
13063 PyObject * obj0 = 0 ;
13064 char *kwnames[] = {
13065 (char *) "self", NULL
13066 };
13067
13068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13069 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13070 {
13071 PyThreadState* __tstate = wxPyBeginAllowThreads();
13072 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13073
13074 wxPyEndAllowThreads(__tstate);
13075 if (PyErr_Occurred()) SWIG_fail;
13076 }
13077 resultobj = SWIG_PyObj_FromBool((bool)result);
13078 return resultobj;
13079 fail:
13080 return NULL;
13081 }
13082
13083
13084 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13085 PyObject *resultobj;
13086 wxDC *arg1 = (wxDC *) 0 ;
13087 bool result;
13088 PyObject * obj0 = 0 ;
13089 char *kwnames[] = {
13090 (char *) "self", NULL
13091 };
13092
13093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13094 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 resultobj = SWIG_PyObj_FromBool((bool)result);
13103 return resultobj;
13104 fail:
13105 return NULL;
13106 }
13107
13108
13109 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj;
13111 wxDC *arg1 = (wxDC *) 0 ;
13112 int result;
13113 PyObject * obj0 = 0 ;
13114 char *kwnames[] = {
13115 (char *) "self", NULL
13116 };
13117
13118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13119 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13120 {
13121 PyThreadState* __tstate = wxPyBeginAllowThreads();
13122 result = (int)((wxDC const *)arg1)->GetDepth();
13123
13124 wxPyEndAllowThreads(__tstate);
13125 if (PyErr_Occurred()) SWIG_fail;
13126 }
13127 resultobj = SWIG_PyObj_FromInt((int)result);
13128 return resultobj;
13129 fail:
13130 return NULL;
13131 }
13132
13133
13134 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13135 PyObject *resultobj;
13136 wxDC *arg1 = (wxDC *) 0 ;
13137 wxSize result;
13138 PyObject * obj0 = 0 ;
13139 char *kwnames[] = {
13140 (char *) "self", NULL
13141 };
13142
13143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13144 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13145 {
13146 PyThreadState* __tstate = wxPyBeginAllowThreads();
13147 result = ((wxDC const *)arg1)->GetPPI();
13148
13149 wxPyEndAllowThreads(__tstate);
13150 if (PyErr_Occurred()) SWIG_fail;
13151 }
13152 {
13153 wxSize * resultptr;
13154 resultptr = new wxSize((wxSize &) result);
13155 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxSize, 1);
13156 }
13157 return resultobj;
13158 fail:
13159 return NULL;
13160 }
13161
13162
13163 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13164 PyObject *resultobj;
13165 wxDC *arg1 = (wxDC *) 0 ;
13166 bool result;
13167 PyObject * obj0 = 0 ;
13168 char *kwnames[] = {
13169 (char *) "self", NULL
13170 };
13171
13172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13173 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13174 {
13175 PyThreadState* __tstate = wxPyBeginAllowThreads();
13176 result = (bool)((wxDC const *)arg1)->Ok();
13177
13178 wxPyEndAllowThreads(__tstate);
13179 if (PyErr_Occurred()) SWIG_fail;
13180 }
13181 resultobj = SWIG_PyObj_FromBool((bool)result);
13182 return resultobj;
13183 fail:
13184 return NULL;
13185 }
13186
13187
13188 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13189 PyObject *resultobj;
13190 wxDC *arg1 = (wxDC *) 0 ;
13191 int result;
13192 PyObject * obj0 = 0 ;
13193 char *kwnames[] = {
13194 (char *) "self", NULL
13195 };
13196
13197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13198 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13202
13203 wxPyEndAllowThreads(__tstate);
13204 if (PyErr_Occurred()) SWIG_fail;
13205 }
13206 resultobj = SWIG_PyObj_FromInt((int)result);
13207 return resultobj;
13208 fail:
13209 return NULL;
13210 }
13211
13212
13213 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13214 PyObject *resultobj;
13215 wxDC *arg1 = (wxDC *) 0 ;
13216 wxBrush *result;
13217 PyObject * obj0 = 0 ;
13218 char *kwnames[] = {
13219 (char *) "self", NULL
13220 };
13221
13222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13223 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13224 {
13225 PyThreadState* __tstate = wxPyBeginAllowThreads();
13226 {
13227 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13228 result = (wxBrush *) &_result_ref;
13229 }
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxDC *arg1 = (wxDC *) 0 ;
13244 wxBrush *result;
13245 PyObject * obj0 = 0 ;
13246 char *kwnames[] = {
13247 (char *) "self", NULL
13248 };
13249
13250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13252 {
13253 PyThreadState* __tstate = wxPyBeginAllowThreads();
13254 {
13255 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13256 result = (wxBrush *) &_result_ref;
13257 }
13258
13259 wxPyEndAllowThreads(__tstate);
13260 if (PyErr_Occurred()) SWIG_fail;
13261 }
13262 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
13263 return resultobj;
13264 fail:
13265 return NULL;
13266 }
13267
13268
13269 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13270 PyObject *resultobj;
13271 wxDC *arg1 = (wxDC *) 0 ;
13272 wxFont *result;
13273 PyObject * obj0 = 0 ;
13274 char *kwnames[] = {
13275 (char *) "self", NULL
13276 };
13277
13278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13279 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13280 {
13281 PyThreadState* __tstate = wxPyBeginAllowThreads();
13282 {
13283 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13284 result = (wxFont *) &_result_ref;
13285 }
13286
13287 wxPyEndAllowThreads(__tstate);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 }
13290 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
13291 return resultobj;
13292 fail:
13293 return NULL;
13294 }
13295
13296
13297 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13298 PyObject *resultobj;
13299 wxDC *arg1 = (wxDC *) 0 ;
13300 wxPen *result;
13301 PyObject * obj0 = 0 ;
13302 char *kwnames[] = {
13303 (char *) "self", NULL
13304 };
13305
13306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13307 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 {
13311 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13312 result = (wxPen *) &_result_ref;
13313 }
13314
13315 wxPyEndAllowThreads(__tstate);
13316 if (PyErr_Occurred()) SWIG_fail;
13317 }
13318 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
13319 return resultobj;
13320 fail:
13321 return NULL;
13322 }
13323
13324
13325 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13326 PyObject *resultobj;
13327 wxDC *arg1 = (wxDC *) 0 ;
13328 wxColour *result;
13329 PyObject * obj0 = 0 ;
13330 char *kwnames[] = {
13331 (char *) "self", NULL
13332 };
13333
13334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13335 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 {
13339 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13340 result = (wxColour *) &_result_ref;
13341 }
13342
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13347 return resultobj;
13348 fail:
13349 return NULL;
13350 }
13351
13352
13353 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13354 PyObject *resultobj;
13355 wxDC *arg1 = (wxDC *) 0 ;
13356 wxColour *result;
13357 PyObject * obj0 = 0 ;
13358 char *kwnames[] = {
13359 (char *) "self", NULL
13360 };
13361
13362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13363 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 {
13367 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13368 result = (wxColour *) &_result_ref;
13369 }
13370
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
13375 return resultobj;
13376 fail:
13377 return NULL;
13378 }
13379
13380
13381 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13382 PyObject *resultobj;
13383 wxDC *arg1 = (wxDC *) 0 ;
13384 wxColour *arg2 = 0 ;
13385 wxColour temp2 ;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 char *kwnames[] = {
13389 (char *) "self",(char *) "colour", NULL
13390 };
13391
13392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13393 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13394 {
13395 arg2 = &temp2;
13396 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13397 }
13398 {
13399 PyThreadState* __tstate = wxPyBeginAllowThreads();
13400 (arg1)->SetTextForeground((wxColour const &)*arg2);
13401
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 Py_INCREF(Py_None); resultobj = Py_None;
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13413 PyObject *resultobj;
13414 wxDC *arg1 = (wxDC *) 0 ;
13415 wxColour *arg2 = 0 ;
13416 wxColour temp2 ;
13417 PyObject * obj0 = 0 ;
13418 PyObject * obj1 = 0 ;
13419 char *kwnames[] = {
13420 (char *) "self",(char *) "colour", NULL
13421 };
13422
13423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13424 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13425 {
13426 arg2 = &temp2;
13427 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13428 }
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 (arg1)->SetTextBackground((wxColour const &)*arg2);
13432
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 Py_INCREF(Py_None); resultobj = Py_None;
13437 return resultobj;
13438 fail:
13439 return NULL;
13440 }
13441
13442
13443 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13444 PyObject *resultobj;
13445 wxDC *arg1 = (wxDC *) 0 ;
13446 int result;
13447 PyObject * obj0 = 0 ;
13448 char *kwnames[] = {
13449 (char *) "self", NULL
13450 };
13451
13452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13453 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13454 {
13455 PyThreadState* __tstate = wxPyBeginAllowThreads();
13456 result = (int)((wxDC const *)arg1)->GetMapMode();
13457
13458 wxPyEndAllowThreads(__tstate);
13459 if (PyErr_Occurred()) SWIG_fail;
13460 }
13461 resultobj = SWIG_PyObj_FromInt((int)result);
13462 return resultobj;
13463 fail:
13464 return NULL;
13465 }
13466
13467
13468 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13469 PyObject *resultobj;
13470 wxDC *arg1 = (wxDC *) 0 ;
13471 int arg2 ;
13472 PyObject * obj0 = 0 ;
13473 PyObject * obj1 = 0 ;
13474 char *kwnames[] = {
13475 (char *) "self",(char *) "mode", NULL
13476 };
13477
13478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13479 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13480 {
13481 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13482 if (PyErr_Occurred()) SWIG_fail;
13483 }
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 (arg1)->SetMapMode(arg2);
13487
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 Py_INCREF(Py_None); resultobj = Py_None;
13492 return resultobj;
13493 fail:
13494 return NULL;
13495 }
13496
13497
13498 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13499 PyObject *resultobj;
13500 wxDC *arg1 = (wxDC *) 0 ;
13501 double *arg2 = (double *) 0 ;
13502 double *arg3 = (double *) 0 ;
13503 double temp2 ;
13504 double temp3 ;
13505 PyObject * obj0 = 0 ;
13506 char *kwnames[] = {
13507 (char *) "self", NULL
13508 };
13509
13510 arg2 = &temp2;
13511 arg3 = &temp3;
13512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13513 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 Py_INCREF(Py_None); resultobj = Py_None;
13522 {
13523 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13524 resultobj = t_output_helper(resultobj,o);
13525 }
13526 {
13527 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13528 resultobj = t_output_helper(resultobj,o);
13529 }
13530 return resultobj;
13531 fail:
13532 return NULL;
13533 }
13534
13535
13536 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13537 PyObject *resultobj;
13538 wxDC *arg1 = (wxDC *) 0 ;
13539 double arg2 ;
13540 double arg3 ;
13541 PyObject * obj0 = 0 ;
13542 PyObject * obj1 = 0 ;
13543 PyObject * obj2 = 0 ;
13544 char *kwnames[] = {
13545 (char *) "self",(char *) "x",(char *) "y", NULL
13546 };
13547
13548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13549 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13550 {
13551 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13552 if (PyErr_Occurred()) SWIG_fail;
13553 }
13554 {
13555 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13556 if (PyErr_Occurred()) SWIG_fail;
13557 }
13558 {
13559 PyThreadState* __tstate = wxPyBeginAllowThreads();
13560 (arg1)->SetUserScale(arg2,arg3);
13561
13562 wxPyEndAllowThreads(__tstate);
13563 if (PyErr_Occurred()) SWIG_fail;
13564 }
13565 Py_INCREF(Py_None); resultobj = Py_None;
13566 return resultobj;
13567 fail:
13568 return NULL;
13569 }
13570
13571
13572 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13573 PyObject *resultobj;
13574 wxDC *arg1 = (wxDC *) 0 ;
13575 double *arg2 = (double *) 0 ;
13576 double *arg3 = (double *) 0 ;
13577 double temp2 ;
13578 double temp3 ;
13579 PyObject * obj0 = 0 ;
13580 char *kwnames[] = {
13581 (char *) "self", NULL
13582 };
13583
13584 arg2 = &temp2;
13585 arg3 = &temp3;
13586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13587 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13588 {
13589 PyThreadState* __tstate = wxPyBeginAllowThreads();
13590 (arg1)->GetLogicalScale(arg2,arg3);
13591
13592 wxPyEndAllowThreads(__tstate);
13593 if (PyErr_Occurred()) SWIG_fail;
13594 }
13595 Py_INCREF(Py_None); resultobj = Py_None;
13596 {
13597 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13598 resultobj = t_output_helper(resultobj,o);
13599 }
13600 {
13601 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13602 resultobj = t_output_helper(resultobj,o);
13603 }
13604 return resultobj;
13605 fail:
13606 return NULL;
13607 }
13608
13609
13610 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13611 PyObject *resultobj;
13612 wxDC *arg1 = (wxDC *) 0 ;
13613 double arg2 ;
13614 double arg3 ;
13615 PyObject * obj0 = 0 ;
13616 PyObject * obj1 = 0 ;
13617 PyObject * obj2 = 0 ;
13618 char *kwnames[] = {
13619 (char *) "self",(char *) "x",(char *) "y", NULL
13620 };
13621
13622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13623 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13624 {
13625 arg2 = (double) SWIG_PyObj_AsDouble(obj1);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 {
13629 arg3 = (double) SWIG_PyObj_AsDouble(obj2);
13630 if (PyErr_Occurred()) SWIG_fail;
13631 }
13632 {
13633 PyThreadState* __tstate = wxPyBeginAllowThreads();
13634 (arg1)->SetLogicalScale(arg2,arg3);
13635
13636 wxPyEndAllowThreads(__tstate);
13637 if (PyErr_Occurred()) SWIG_fail;
13638 }
13639 Py_INCREF(Py_None); resultobj = Py_None;
13640 return resultobj;
13641 fail:
13642 return NULL;
13643 }
13644
13645
13646 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13647 PyObject *resultobj;
13648 wxDC *arg1 = (wxDC *) 0 ;
13649 wxPoint result;
13650 PyObject * obj0 = 0 ;
13651 char *kwnames[] = {
13652 (char *) "self", NULL
13653 };
13654
13655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
13656 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = ((wxDC const *)arg1)->GetLogicalOrigin();
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 {
13665 wxPoint * resultptr;
13666 resultptr = new wxPoint((wxPoint &) result);
13667 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13668 }
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj;
13677 wxDC *arg1 = (wxDC *) 0 ;
13678 int *arg2 = (int *) 0 ;
13679 int *arg3 = (int *) 0 ;
13680 int temp2 ;
13681 int temp3 ;
13682 PyObject * obj0 = 0 ;
13683 char *kwnames[] = {
13684 (char *) "self", NULL
13685 };
13686
13687 arg2 = &temp2;
13688 arg3 = &temp3;
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
13694
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 Py_INCREF(Py_None); resultobj = Py_None;
13699 {
13700 PyObject *o = PyInt_FromLong((long) (*arg2));
13701 resultobj = t_output_helper(resultobj,o);
13702 }
13703 {
13704 PyObject *o = PyInt_FromLong((long) (*arg3));
13705 resultobj = t_output_helper(resultobj,o);
13706 }
13707 return resultobj;
13708 fail:
13709 return NULL;
13710 }
13711
13712
13713 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13714 PyObject *resultobj;
13715 wxDC *arg1 = (wxDC *) 0 ;
13716 int arg2 ;
13717 int arg3 ;
13718 PyObject * obj0 = 0 ;
13719 PyObject * obj1 = 0 ;
13720 PyObject * obj2 = 0 ;
13721 char *kwnames[] = {
13722 (char *) "self",(char *) "x",(char *) "y", NULL
13723 };
13724
13725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13726 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13727 {
13728 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13729 if (PyErr_Occurred()) SWIG_fail;
13730 }
13731 {
13732 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13733 if (PyErr_Occurred()) SWIG_fail;
13734 }
13735 {
13736 PyThreadState* __tstate = wxPyBeginAllowThreads();
13737 (arg1)->SetLogicalOrigin(arg2,arg3);
13738
13739 wxPyEndAllowThreads(__tstate);
13740 if (PyErr_Occurred()) SWIG_fail;
13741 }
13742 Py_INCREF(Py_None); resultobj = Py_None;
13743 return resultobj;
13744 fail:
13745 return NULL;
13746 }
13747
13748
13749 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13750 PyObject *resultobj;
13751 wxDC *arg1 = (wxDC *) 0 ;
13752 wxPoint result;
13753 PyObject * obj0 = 0 ;
13754 char *kwnames[] = {
13755 (char *) "self", NULL
13756 };
13757
13758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
13759 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13760 {
13761 PyThreadState* __tstate = wxPyBeginAllowThreads();
13762 result = ((wxDC const *)arg1)->GetDeviceOrigin();
13763
13764 wxPyEndAllowThreads(__tstate);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 {
13768 wxPoint * resultptr;
13769 resultptr = new wxPoint((wxPoint &) result);
13770 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxPoint, 1);
13771 }
13772 return resultobj;
13773 fail:
13774 return NULL;
13775 }
13776
13777
13778 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13779 PyObject *resultobj;
13780 wxDC *arg1 = (wxDC *) 0 ;
13781 int *arg2 = (int *) 0 ;
13782 int *arg3 = (int *) 0 ;
13783 int temp2 ;
13784 int temp3 ;
13785 PyObject * obj0 = 0 ;
13786 char *kwnames[] = {
13787 (char *) "self", NULL
13788 };
13789
13790 arg2 = &temp2;
13791 arg3 = &temp3;
13792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
13793 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13794 {
13795 PyThreadState* __tstate = wxPyBeginAllowThreads();
13796 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
13797
13798 wxPyEndAllowThreads(__tstate);
13799 if (PyErr_Occurred()) SWIG_fail;
13800 }
13801 Py_INCREF(Py_None); resultobj = Py_None;
13802 {
13803 PyObject *o = PyInt_FromLong((long) (*arg2));
13804 resultobj = t_output_helper(resultobj,o);
13805 }
13806 {
13807 PyObject *o = PyInt_FromLong((long) (*arg3));
13808 resultobj = t_output_helper(resultobj,o);
13809 }
13810 return resultobj;
13811 fail:
13812 return NULL;
13813 }
13814
13815
13816 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
13817 PyObject *resultobj;
13818 wxDC *arg1 = (wxDC *) 0 ;
13819 int arg2 ;
13820 int arg3 ;
13821 PyObject * obj0 = 0 ;
13822 PyObject * obj1 = 0 ;
13823 PyObject * obj2 = 0 ;
13824 char *kwnames[] = {
13825 (char *) "self",(char *) "x",(char *) "y", NULL
13826 };
13827
13828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
13829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13830 {
13831 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 }
13834 {
13835 arg3 = (int) SWIG_PyObj_AsInt(obj2);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 {
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 (arg1)->SetDeviceOrigin(arg2,arg3);
13841
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 Py_INCREF(Py_None); resultobj = Py_None;
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj;
13854 wxDC *arg1 = (wxDC *) 0 ;
13855 bool arg2 ;
13856 bool arg3 ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 PyObject * obj2 = 0 ;
13860 char *kwnames[] = {
13861 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
13862 };
13863
13864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
13865 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13866 {
13867 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13868 if (PyErr_Occurred()) SWIG_fail;
13869 }
13870 {
13871 arg3 = (bool) SWIG_PyObj_AsBool(obj2);
13872 if (PyErr_Occurred()) SWIG_fail;
13873 }
13874 {
13875 PyThreadState* __tstate = wxPyBeginAllowThreads();
13876 (arg1)->SetAxisOrientation(arg2,arg3);
13877
13878 wxPyEndAllowThreads(__tstate);
13879 if (PyErr_Occurred()) SWIG_fail;
13880 }
13881 Py_INCREF(Py_None); resultobj = Py_None;
13882 return resultobj;
13883 fail:
13884 return NULL;
13885 }
13886
13887
13888 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13889 PyObject *resultobj;
13890 wxDC *arg1 = (wxDC *) 0 ;
13891 int result;
13892 PyObject * obj0 = 0 ;
13893 char *kwnames[] = {
13894 (char *) "self", NULL
13895 };
13896
13897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
13898 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13899 {
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
13902
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 resultobj = SWIG_PyObj_FromInt((int)result);
13907 return resultobj;
13908 fail:
13909 return NULL;
13910 }
13911
13912
13913 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
13914 PyObject *resultobj;
13915 wxDC *arg1 = (wxDC *) 0 ;
13916 int arg2 ;
13917 PyObject * obj0 = 0 ;
13918 PyObject * obj1 = 0 ;
13919 char *kwnames[] = {
13920 (char *) "self",(char *) "function", NULL
13921 };
13922
13923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
13924 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13925 {
13926 arg2 = (int) SWIG_PyObj_AsInt(obj1);
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 {
13930 PyThreadState* __tstate = wxPyBeginAllowThreads();
13931 (arg1)->SetLogicalFunction(arg2);
13932
13933 wxPyEndAllowThreads(__tstate);
13934 if (PyErr_Occurred()) SWIG_fail;
13935 }
13936 Py_INCREF(Py_None); resultobj = Py_None;
13937 return resultobj;
13938 fail:
13939 return NULL;
13940 }
13941
13942
13943 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13944 PyObject *resultobj;
13945 wxDC *arg1 = (wxDC *) 0 ;
13946 bool arg2 ;
13947 PyObject * obj0 = 0 ;
13948 PyObject * obj1 = 0 ;
13949 char *kwnames[] = {
13950 (char *) "self",(char *) "opt", NULL
13951 };
13952
13953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
13954 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13955 {
13956 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
13957 if (PyErr_Occurred()) SWIG_fail;
13958 }
13959 {
13960 PyThreadState* __tstate = wxPyBeginAllowThreads();
13961 (arg1)->SetOptimization(arg2);
13962
13963 wxPyEndAllowThreads(__tstate);
13964 if (PyErr_Occurred()) SWIG_fail;
13965 }
13966 Py_INCREF(Py_None); resultobj = Py_None;
13967 return resultobj;
13968 fail:
13969 return NULL;
13970 }
13971
13972
13973 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
13974 PyObject *resultobj;
13975 wxDC *arg1 = (wxDC *) 0 ;
13976 bool result;
13977 PyObject * obj0 = 0 ;
13978 char *kwnames[] = {
13979 (char *) "self", NULL
13980 };
13981
13982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
13983 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
13984 {
13985 PyThreadState* __tstate = wxPyBeginAllowThreads();
13986 result = (bool)(arg1)->GetOptimization();
13987
13988 wxPyEndAllowThreads(__tstate);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 }
13991 resultobj = SWIG_PyObj_FromBool((bool)result);
13992 return resultobj;
13993 fail:
13994 return NULL;
13995 }
13996
13997
13998 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13999 PyObject *resultobj;
14000 wxDC *arg1 = (wxDC *) 0 ;
14001 int arg2 ;
14002 int arg3 ;
14003 PyObject * obj0 = 0 ;
14004 PyObject * obj1 = 0 ;
14005 PyObject * obj2 = 0 ;
14006 char *kwnames[] = {
14007 (char *) "self",(char *) "x",(char *) "y", NULL
14008 };
14009
14010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14011 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14012 {
14013 arg2 = (int) SWIG_PyObj_AsInt(obj1);
14014 if (PyErr_Occurred()) SWIG_fail;
14015 }
14016 {
14017 arg3 = (int) SWIG_PyObj_AsInt(obj2);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 }
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 (arg1)->CalcBoundingBox(arg2,arg3);
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 Py_INCREF(Py_None); resultobj = Py_None;
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxDC *arg1 = (wxDC *) 0 ;
14037 PyObject * obj0 = 0 ;
14038 char *kwnames[] = {
14039 (char *) "self", NULL
14040 };
14041
14042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14043 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
14046 (arg1)->ResetBoundingBox();
14047
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 Py_INCREF(Py_None); resultobj = Py_None;
14052 return resultobj;
14053 fail:
14054 return NULL;
14055 }
14056
14057
14058 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14059 PyObject *resultobj;
14060 wxDC *arg1 = (wxDC *) 0 ;
14061 int result;
14062 PyObject * obj0 = 0 ;
14063 char *kwnames[] = {
14064 (char *) "self", NULL
14065 };
14066
14067 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14068 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14069 {
14070 PyThreadState* __tstate = wxPyBeginAllowThreads();
14071 result = (int)((wxDC const *)arg1)->MinX();
14072
14073 wxPyEndAllowThreads(__tstate);
14074 if (PyErr_Occurred()) SWIG_fail;
14075 }
14076 resultobj = SWIG_PyObj_FromInt((int)result);
14077 return resultobj;
14078 fail:
14079 return NULL;
14080 }
14081
14082
14083 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14084 PyObject *resultobj;
14085 wxDC *arg1 = (wxDC *) 0 ;
14086 int result;
14087 PyObject * obj0 = 0 ;
14088 char *kwnames[] = {
14089 (char *) "self", NULL
14090 };
14091
14092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14093 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (int)((wxDC const *)arg1)->MaxX();
14097
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 resultobj = SWIG_PyObj_FromInt((int)result);
14102 return resultobj;
14103 fail:
14104 return NULL;
14105 }
14106
14107
14108 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14109 PyObject *resultobj;
14110 wxDC *arg1 = (wxDC *) 0 ;
14111 int result;
14112 PyObject * obj0 = 0 ;
14113 char *kwnames[] = {
14114 (char *) "self", NULL
14115 };
14116
14117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14118 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14119 {
14120 PyThreadState* __tstate = wxPyBeginAllowThreads();
14121 result = (int)((wxDC const *)arg1)->MinY();
14122
14123 wxPyEndAllowThreads(__tstate);
14124 if (PyErr_Occurred()) SWIG_fail;
14125 }
14126 resultobj = SWIG_PyObj_FromInt((int)result);
14127 return resultobj;
14128 fail:
14129 return NULL;
14130 }
14131
14132
14133 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj;
14135 wxDC *arg1 = (wxDC *) 0 ;
14136 int result;
14137 PyObject * obj0 = 0 ;
14138 char *kwnames[] = {
14139 (char *) "self", NULL
14140 };
14141
14142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14143 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14144 {
14145 PyThreadState* __tstate = wxPyBeginAllowThreads();
14146 result = (int)((wxDC const *)arg1)->MaxY();
14147
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 resultobj = SWIG_PyObj_FromInt((int)result);
14152 return resultobj;
14153 fail:
14154 return NULL;
14155 }
14156
14157
14158 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14159 PyObject *resultobj;
14160 wxDC *arg1 = (wxDC *) 0 ;
14161 int *arg2 = (int *) 0 ;
14162 int *arg3 = (int *) 0 ;
14163 int *arg4 = (int *) 0 ;
14164 int *arg5 = (int *) 0 ;
14165 int temp2 ;
14166 int temp3 ;
14167 int temp4 ;
14168 int temp5 ;
14169 PyObject * obj0 = 0 ;
14170 char *kwnames[] = {
14171 (char *) "self", NULL
14172 };
14173
14174 arg2 = &temp2;
14175 arg3 = &temp3;
14176 arg4 = &temp4;
14177 arg5 = &temp5;
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14180 {
14181 PyThreadState* __tstate = wxPyBeginAllowThreads();
14182 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14183
14184 wxPyEndAllowThreads(__tstate);
14185 if (PyErr_Occurred()) SWIG_fail;
14186 }
14187 Py_INCREF(Py_None); resultobj = Py_None;
14188 {
14189 PyObject *o = PyInt_FromLong((long) (*arg2));
14190 resultobj = t_output_helper(resultobj,o);
14191 }
14192 {
14193 PyObject *o = PyInt_FromLong((long) (*arg3));
14194 resultobj = t_output_helper(resultobj,o);
14195 }
14196 {
14197 PyObject *o = PyInt_FromLong((long) (*arg4));
14198 resultobj = t_output_helper(resultobj,o);
14199 }
14200 {
14201 PyObject *o = PyInt_FromLong((long) (*arg5));
14202 resultobj = t_output_helper(resultobj,o);
14203 }
14204 return resultobj;
14205 fail:
14206 return NULL;
14207 }
14208
14209
14210 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14211 PyObject *resultobj;
14212 wxDC *arg1 = (wxDC *) 0 ;
14213 PyObject *arg2 = (PyObject *) 0 ;
14214 PyObject *arg3 = (PyObject *) 0 ;
14215 PyObject *arg4 = (PyObject *) 0 ;
14216 PyObject *result;
14217 PyObject * obj0 = 0 ;
14218 PyObject * obj1 = 0 ;
14219 PyObject * obj2 = 0 ;
14220 PyObject * obj3 = 0 ;
14221 char *kwnames[] = {
14222 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14223 };
14224
14225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14226 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14227 arg2 = obj1;
14228 arg3 = obj2;
14229 arg4 = obj3;
14230 {
14231 PyThreadState* __tstate = wxPyBeginAllowThreads();
14232 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14233
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 resultobj = result;
14238 return resultobj;
14239 fail:
14240 return NULL;
14241 }
14242
14243
14244 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14245 PyObject *resultobj;
14246 wxDC *arg1 = (wxDC *) 0 ;
14247 PyObject *arg2 = (PyObject *) 0 ;
14248 PyObject *arg3 = (PyObject *) 0 ;
14249 PyObject *arg4 = (PyObject *) 0 ;
14250 PyObject *result;
14251 PyObject * obj0 = 0 ;
14252 PyObject * obj1 = 0 ;
14253 PyObject * obj2 = 0 ;
14254 PyObject * obj3 = 0 ;
14255 char *kwnames[] = {
14256 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14257 };
14258
14259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14260 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14261 arg2 = obj1;
14262 arg3 = obj2;
14263 arg4 = obj3;
14264 {
14265 PyThreadState* __tstate = wxPyBeginAllowThreads();
14266 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14267
14268 wxPyEndAllowThreads(__tstate);
14269 if (PyErr_Occurred()) SWIG_fail;
14270 }
14271 resultobj = result;
14272 return resultobj;
14273 fail:
14274 return NULL;
14275 }
14276
14277
14278 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14279 PyObject *resultobj;
14280 wxDC *arg1 = (wxDC *) 0 ;
14281 PyObject *arg2 = (PyObject *) 0 ;
14282 PyObject *arg3 = (PyObject *) 0 ;
14283 PyObject *arg4 = (PyObject *) 0 ;
14284 PyObject *result;
14285 PyObject * obj0 = 0 ;
14286 PyObject * obj1 = 0 ;
14287 PyObject * obj2 = 0 ;
14288 PyObject * obj3 = 0 ;
14289 char *kwnames[] = {
14290 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14291 };
14292
14293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14294 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14295 arg2 = obj1;
14296 arg3 = obj2;
14297 arg4 = obj3;
14298 {
14299 PyThreadState* __tstate = wxPyBeginAllowThreads();
14300 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14301
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 resultobj = result;
14306 return resultobj;
14307 fail:
14308 return NULL;
14309 }
14310
14311
14312 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj;
14314 wxDC *arg1 = (wxDC *) 0 ;
14315 PyObject *arg2 = (PyObject *) 0 ;
14316 PyObject *arg3 = (PyObject *) 0 ;
14317 PyObject *arg4 = (PyObject *) 0 ;
14318 PyObject *result;
14319 PyObject * obj0 = 0 ;
14320 PyObject * obj1 = 0 ;
14321 PyObject * obj2 = 0 ;
14322 PyObject * obj3 = 0 ;
14323 char *kwnames[] = {
14324 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14325 };
14326
14327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14328 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14329 arg2 = obj1;
14330 arg3 = obj2;
14331 arg4 = obj3;
14332 {
14333 PyThreadState* __tstate = wxPyBeginAllowThreads();
14334 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14335
14336 wxPyEndAllowThreads(__tstate);
14337 if (PyErr_Occurred()) SWIG_fail;
14338 }
14339 resultobj = result;
14340 return resultobj;
14341 fail:
14342 return NULL;
14343 }
14344
14345
14346 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14347 PyObject *resultobj;
14348 wxDC *arg1 = (wxDC *) 0 ;
14349 PyObject *arg2 = (PyObject *) 0 ;
14350 PyObject *arg3 = (PyObject *) 0 ;
14351 PyObject *arg4 = (PyObject *) 0 ;
14352 PyObject *result;
14353 PyObject * obj0 = 0 ;
14354 PyObject * obj1 = 0 ;
14355 PyObject * obj2 = 0 ;
14356 PyObject * obj3 = 0 ;
14357 char *kwnames[] = {
14358 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14359 };
14360
14361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14362 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14363 arg2 = obj1;
14364 arg3 = obj2;
14365 arg4 = obj3;
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14369
14370 wxPyEndAllowThreads(__tstate);
14371 if (PyErr_Occurred()) SWIG_fail;
14372 }
14373 resultobj = result;
14374 return resultobj;
14375 fail:
14376 return NULL;
14377 }
14378
14379
14380 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14381 PyObject *resultobj;
14382 wxDC *arg1 = (wxDC *) 0 ;
14383 PyObject *arg2 = (PyObject *) 0 ;
14384 PyObject *arg3 = (PyObject *) 0 ;
14385 PyObject *arg4 = (PyObject *) 0 ;
14386 PyObject *arg5 = (PyObject *) 0 ;
14387 PyObject *result;
14388 PyObject * obj0 = 0 ;
14389 PyObject * obj1 = 0 ;
14390 PyObject * obj2 = 0 ;
14391 PyObject * obj3 = 0 ;
14392 PyObject * obj4 = 0 ;
14393 char *kwnames[] = {
14394 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14395 };
14396
14397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14398 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14399 arg2 = obj1;
14400 arg3 = obj2;
14401 arg4 = obj3;
14402 arg5 = obj4;
14403 {
14404 PyThreadState* __tstate = wxPyBeginAllowThreads();
14405 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14406
14407 wxPyEndAllowThreads(__tstate);
14408 if (PyErr_Occurred()) SWIG_fail;
14409 }
14410 resultobj = result;
14411 return resultobj;
14412 fail:
14413 return NULL;
14414 }
14415
14416
14417 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14418 PyObject *obj;
14419 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14420 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14421 Py_INCREF(obj);
14422 return Py_BuildValue((char *)"");
14423 }
14424 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14425 PyObject *resultobj;
14426 wxMemoryDC *result;
14427 char *kwnames[] = {
14428 NULL
14429 };
14430
14431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (wxMemoryDC *)new wxMemoryDC();
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj;
14448 wxDC *arg1 = (wxDC *) 0 ;
14449 wxMemoryDC *result;
14450 PyObject * obj0 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "oldDC", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14456 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMemoryDC, 1);
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14474 wxBitmap *arg2 = 0 ;
14475 PyObject * obj0 = 0 ;
14476 PyObject * obj1 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self",(char *) "bitmap", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14482 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxMemoryDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14483 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14484 if (arg2 == NULL) {
14485 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14486 }
14487 {
14488 PyThreadState* __tstate = wxPyBeginAllowThreads();
14489 (arg1)->SelectObject((wxBitmap const &)*arg2);
14490
14491 wxPyEndAllowThreads(__tstate);
14492 if (PyErr_Occurred()) SWIG_fail;
14493 }
14494 Py_INCREF(Py_None); resultobj = Py_None;
14495 return resultobj;
14496 fail:
14497 return NULL;
14498 }
14499
14500
14501 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14502 PyObject *obj;
14503 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14504 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14505 Py_INCREF(obj);
14506 return Py_BuildValue((char *)"");
14507 }
14508 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj;
14510 wxDC *arg1 = (wxDC *) 0 ;
14511 wxBitmap *arg2 = 0 ;
14512 wxBufferedDC *result;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj1 = 0 ;
14515 char *kwnames[] = {
14516 (char *) "dc",(char *) "buffer", NULL
14517 };
14518
14519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDC",kwnames,&obj0,&obj1)) goto fail;
14520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14521 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14522 if (arg2 == NULL) {
14523 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14524 }
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
14528
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14533 return resultobj;
14534 fail:
14535 return NULL;
14536 }
14537
14538
14539 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
14540 PyObject *resultobj;
14541 wxDC *arg1 = (wxDC *) 0 ;
14542 wxSize *arg2 = 0 ;
14543 wxBufferedDC *result;
14544 wxSize temp2 ;
14545 PyObject * obj0 = 0 ;
14546 PyObject * obj1 = 0 ;
14547 char *kwnames[] = {
14548 (char *) "dc",(char *) "area", NULL
14549 };
14550
14551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_BufferedDCInternalBuffer",kwnames,&obj0,&obj1)) goto fail;
14552 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14553 {
14554 arg2 = &temp2;
14555 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14556 }
14557 {
14558 PyThreadState* __tstate = wxPyBeginAllowThreads();
14559 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
14560
14561 wxPyEndAllowThreads(__tstate);
14562 if (PyErr_Occurred()) SWIG_fail;
14563 }
14564 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedDC, 1);
14565 return resultobj;
14566 fail:
14567 return NULL;
14568 }
14569
14570
14571 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
14572 PyObject *resultobj;
14573 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
14574 PyObject * obj0 = 0 ;
14575 char *kwnames[] = {
14576 (char *) "self", NULL
14577 };
14578
14579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
14580 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBufferedDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 (arg1)->UnMask();
14584
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 Py_INCREF(Py_None); resultobj = Py_None;
14589 return resultobj;
14590 fail:
14591 return NULL;
14592 }
14593
14594
14595 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
14596 PyObject *obj;
14597 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14598 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
14599 Py_INCREF(obj);
14600 return Py_BuildValue((char *)"");
14601 }
14602 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14603 PyObject *resultobj;
14604 wxWindow *arg1 = (wxWindow *) 0 ;
14605 wxBitmap const &arg2_defvalue = wxNullBitmap ;
14606 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
14607 wxBufferedPaintDC *result;
14608 PyObject * obj0 = 0 ;
14609 PyObject * obj1 = 0 ;
14610 char *kwnames[] = {
14611 (char *) "window",(char *) "buffer", NULL
14612 };
14613
14614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
14615 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14616 if (obj1) {
14617 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14618 if (arg2 == NULL) {
14619 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14620 }
14621 }
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
14625
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBufferedPaintDC, 1);
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
14637 PyObject *obj;
14638 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14639 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
14640 Py_INCREF(obj);
14641 return Py_BuildValue((char *)"");
14642 }
14643 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14644 PyObject *resultobj;
14645 wxScreenDC *result;
14646 char *kwnames[] = {
14647 NULL
14648 };
14649
14650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
14651 {
14652 PyThreadState* __tstate = wxPyBeginAllowThreads();
14653 result = (wxScreenDC *)new wxScreenDC();
14654
14655 wxPyEndAllowThreads(__tstate);
14656 if (PyErr_Occurred()) SWIG_fail;
14657 }
14658 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxScreenDC, 1);
14659 return resultobj;
14660 fail:
14661 return NULL;
14662 }
14663
14664
14665 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
14666 PyObject *resultobj;
14667 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14668 wxWindow *arg2 = (wxWindow *) 0 ;
14669 bool result;
14670 PyObject * obj0 = 0 ;
14671 PyObject * obj1 = 0 ;
14672 char *kwnames[] = {
14673 (char *) "self",(char *) "window", NULL
14674 };
14675
14676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
14677 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14678 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14679 {
14680 PyThreadState* __tstate = wxPyBeginAllowThreads();
14681 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14682
14683 wxPyEndAllowThreads(__tstate);
14684 if (PyErr_Occurred()) SWIG_fail;
14685 }
14686 resultobj = SWIG_PyObj_FromBool((bool)result);
14687 return resultobj;
14688 fail:
14689 return NULL;
14690 }
14691
14692
14693 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14694 PyObject *resultobj;
14695 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14696 wxRect *arg2 = (wxRect *) NULL ;
14697 bool result;
14698 PyObject * obj0 = 0 ;
14699 PyObject * obj1 = 0 ;
14700 char *kwnames[] = {
14701 (char *) "self",(char *) "rect", NULL
14702 };
14703
14704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
14705 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14706 if (obj1) {
14707 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxRect,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14708 }
14709 {
14710 PyThreadState* __tstate = wxPyBeginAllowThreads();
14711 result = (bool)(arg1)->StartDrawingOnTop(arg2);
14712
14713 wxPyEndAllowThreads(__tstate);
14714 if (PyErr_Occurred()) SWIG_fail;
14715 }
14716 resultobj = SWIG_PyObj_FromBool((bool)result);
14717 return resultobj;
14718 fail:
14719 return NULL;
14720 }
14721
14722
14723 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
14724 PyObject *resultobj;
14725 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
14726 bool result;
14727 PyObject * obj0 = 0 ;
14728 char *kwnames[] = {
14729 (char *) "self", NULL
14730 };
14731
14732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
14733 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxScreenDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (bool)(arg1)->EndDrawingOnTop();
14737
14738 wxPyEndAllowThreads(__tstate);
14739 if (PyErr_Occurred()) SWIG_fail;
14740 }
14741 resultobj = SWIG_PyObj_FromBool((bool)result);
14742 return resultobj;
14743 fail:
14744 return NULL;
14745 }
14746
14747
14748 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
14749 PyObject *obj;
14750 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14751 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
14752 Py_INCREF(obj);
14753 return Py_BuildValue((char *)"");
14754 }
14755 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14756 PyObject *resultobj;
14757 wxWindow *arg1 = (wxWindow *) 0 ;
14758 wxClientDC *result;
14759 PyObject * obj0 = 0 ;
14760 char *kwnames[] = {
14761 (char *) "win", NULL
14762 };
14763
14764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
14765 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14766 {
14767 PyThreadState* __tstate = wxPyBeginAllowThreads();
14768 result = (wxClientDC *)new wxClientDC(arg1);
14769
14770 wxPyEndAllowThreads(__tstate);
14771 if (PyErr_Occurred()) SWIG_fail;
14772 }
14773 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxClientDC, 1);
14774 return resultobj;
14775 fail:
14776 return NULL;
14777 }
14778
14779
14780 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
14781 PyObject *obj;
14782 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14783 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
14784 Py_INCREF(obj);
14785 return Py_BuildValue((char *)"");
14786 }
14787 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14788 PyObject *resultobj;
14789 wxWindow *arg1 = (wxWindow *) 0 ;
14790 wxPaintDC *result;
14791 PyObject * obj0 = 0 ;
14792 char *kwnames[] = {
14793 (char *) "win", NULL
14794 };
14795
14796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
14797 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14798 {
14799 PyThreadState* __tstate = wxPyBeginAllowThreads();
14800 result = (wxPaintDC *)new wxPaintDC(arg1);
14801
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPaintDC, 1);
14806 return resultobj;
14807 fail:
14808 return NULL;
14809 }
14810
14811
14812 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
14813 PyObject *obj;
14814 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14815 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
14816 Py_INCREF(obj);
14817 return Py_BuildValue((char *)"");
14818 }
14819 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14820 PyObject *resultobj;
14821 wxWindow *arg1 = (wxWindow *) 0 ;
14822 wxWindowDC *result;
14823 PyObject * obj0 = 0 ;
14824 char *kwnames[] = {
14825 (char *) "win", NULL
14826 };
14827
14828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
14829 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxWindow,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14830 {
14831 PyThreadState* __tstate = wxPyBeginAllowThreads();
14832 result = (wxWindowDC *)new wxWindowDC(arg1);
14833
14834 wxPyEndAllowThreads(__tstate);
14835 if (PyErr_Occurred()) SWIG_fail;
14836 }
14837 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxWindowDC, 1);
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
14845 PyObject *obj;
14846 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14847 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
14848 Py_INCREF(obj);
14849 return Py_BuildValue((char *)"");
14850 }
14851 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14852 PyObject *resultobj;
14853 wxDC *arg1 = 0 ;
14854 bool arg2 ;
14855 wxMirrorDC *result;
14856 PyObject * obj0 = 0 ;
14857 PyObject * obj1 = 0 ;
14858 char *kwnames[] = {
14859 (char *) "dc",(char *) "mirror", NULL
14860 };
14861
14862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
14863 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14864 if (arg1 == NULL) {
14865 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14866 }
14867 {
14868 arg2 = (bool) SWIG_PyObj_AsBool(obj1);
14869 if (PyErr_Occurred()) SWIG_fail;
14870 }
14871 {
14872 PyThreadState* __tstate = wxPyBeginAllowThreads();
14873 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
14874
14875 wxPyEndAllowThreads(__tstate);
14876 if (PyErr_Occurred()) SWIG_fail;
14877 }
14878 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMirrorDC, 1);
14879 return resultobj;
14880 fail:
14881 return NULL;
14882 }
14883
14884
14885 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
14886 PyObject *obj;
14887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14888 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
14889 Py_INCREF(obj);
14890 return Py_BuildValue((char *)"");
14891 }
14892 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14893 PyObject *resultobj;
14894 wxPrintData *arg1 = 0 ;
14895 wxPostScriptDC *result;
14896 PyObject * obj0 = 0 ;
14897 char *kwnames[] = {
14898 (char *) "printData", NULL
14899 };
14900
14901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
14902 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14903 if (arg1 == NULL) {
14904 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14905 }
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
14909
14910 wxPyEndAllowThreads(__tstate);
14911 if (PyErr_Occurred()) SWIG_fail;
14912 }
14913 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPostScriptDC, 1);
14914 return resultobj;
14915 fail:
14916 return NULL;
14917 }
14918
14919
14920 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14921 PyObject *resultobj;
14922 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14923 wxPrintData *result;
14924 PyObject * obj0 = 0 ;
14925 char *kwnames[] = {
14926 (char *) "self", NULL
14927 };
14928
14929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
14930 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14931 {
14932 PyThreadState* __tstate = wxPyBeginAllowThreads();
14933 {
14934 wxPrintData &_result_ref = (arg1)->GetPrintData();
14935 result = (wxPrintData *) &_result_ref;
14936 }
14937
14938 wxPyEndAllowThreads(__tstate);
14939 if (PyErr_Occurred()) SWIG_fail;
14940 }
14941 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrintData, 0);
14942 return resultobj;
14943 fail:
14944 return NULL;
14945 }
14946
14947
14948 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
14949 PyObject *resultobj;
14950 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
14951 wxPrintData *arg2 = 0 ;
14952 PyObject * obj0 = 0 ;
14953 PyObject * obj1 = 0 ;
14954 char *kwnames[] = {
14955 (char *) "self",(char *) "data", NULL
14956 };
14957
14958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
14959 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPostScriptDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14960 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
14961 if (arg2 == NULL) {
14962 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
14963 }
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 (arg1)->SetPrintData((wxPrintData const &)*arg2);
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_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj;
14980 int arg1 ;
14981 PyObject * obj0 = 0 ;
14982 char *kwnames[] = {
14983 (char *) "ppi", NULL
14984 };
14985
14986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
14987 {
14988 arg1 = (int) SWIG_PyObj_AsInt(obj0);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 {
14992 PyThreadState* __tstate = wxPyBeginAllowThreads();
14993 wxPostScriptDC::SetResolution(arg1);
14994
14995 wxPyEndAllowThreads(__tstate);
14996 if (PyErr_Occurred()) SWIG_fail;
14997 }
14998 Py_INCREF(Py_None); resultobj = Py_None;
14999 return resultobj;
15000 fail:
15001 return NULL;
15002 }
15003
15004
15005 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15006 PyObject *resultobj;
15007 int result;
15008 char *kwnames[] = {
15009 NULL
15010 };
15011
15012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 result = (int)wxPostScriptDC::GetResolution();
15016
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 resultobj = SWIG_PyObj_FromInt((int)result);
15021 return resultobj;
15022 fail:
15023 return NULL;
15024 }
15025
15026
15027 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15028 PyObject *obj;
15029 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15030 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15031 Py_INCREF(obj);
15032 return Py_BuildValue((char *)"");
15033 }
15034 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15035 PyObject *resultobj;
15036 wxString const &arg1_defvalue = wxPyEmptyString ;
15037 wxString *arg1 = (wxString *) &arg1_defvalue ;
15038 wxMetaFile *result;
15039 bool temp1 = False ;
15040 PyObject * obj0 = 0 ;
15041 char *kwnames[] = {
15042 (char *) "filename", NULL
15043 };
15044
15045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15046 if (obj0) {
15047 {
15048 arg1 = wxString_in_helper(obj0);
15049 if (arg1 == NULL) SWIG_fail;
15050 temp1 = True;
15051 }
15052 }
15053 {
15054 PyThreadState* __tstate = wxPyBeginAllowThreads();
15055 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15056
15057 wxPyEndAllowThreads(__tstate);
15058 if (PyErr_Occurred()) SWIG_fail;
15059 }
15060 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFile, 1);
15061 {
15062 if (temp1)
15063 delete arg1;
15064 }
15065 return resultobj;
15066 fail:
15067 {
15068 if (temp1)
15069 delete arg1;
15070 }
15071 return NULL;
15072 }
15073
15074
15075 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15076 PyObject *obj;
15077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15078 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15079 Py_INCREF(obj);
15080 return Py_BuildValue((char *)"");
15081 }
15082 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15083 PyObject *resultobj;
15084 wxString const &arg1_defvalue = wxPyEmptyString ;
15085 wxString *arg1 = (wxString *) &arg1_defvalue ;
15086 int arg2 = (int) 0 ;
15087 int arg3 = (int) 0 ;
15088 wxString const &arg4_defvalue = wxPyEmptyString ;
15089 wxString *arg4 = (wxString *) &arg4_defvalue ;
15090 wxMetaFileDC *result;
15091 bool temp1 = False ;
15092 bool temp4 = False ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 PyObject * obj2 = 0 ;
15096 PyObject * obj3 = 0 ;
15097 char *kwnames[] = {
15098 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15099 };
15100
15101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15102 if (obj0) {
15103 {
15104 arg1 = wxString_in_helper(obj0);
15105 if (arg1 == NULL) SWIG_fail;
15106 temp1 = True;
15107 }
15108 }
15109 if (obj1) {
15110 {
15111 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 }
15115 if (obj2) {
15116 {
15117 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 }
15121 if (obj3) {
15122 {
15123 arg4 = wxString_in_helper(obj3);
15124 if (arg4 == NULL) SWIG_fail;
15125 temp4 = True;
15126 }
15127 }
15128 {
15129 PyThreadState* __tstate = wxPyBeginAllowThreads();
15130 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15131
15132 wxPyEndAllowThreads(__tstate);
15133 if (PyErr_Occurred()) SWIG_fail;
15134 }
15135 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxMetaFileDC, 1);
15136 {
15137 if (temp1)
15138 delete arg1;
15139 }
15140 {
15141 if (temp4)
15142 delete arg4;
15143 }
15144 return resultobj;
15145 fail:
15146 {
15147 if (temp1)
15148 delete arg1;
15149 }
15150 {
15151 if (temp4)
15152 delete arg4;
15153 }
15154 return NULL;
15155 }
15156
15157
15158 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15159 PyObject *obj;
15160 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15161 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15162 Py_INCREF(obj);
15163 return Py_BuildValue((char *)"");
15164 }
15165 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15166 PyObject *resultobj;
15167 wxPrintData *arg1 = 0 ;
15168 wxPrinterDC *result;
15169 PyObject * obj0 = 0 ;
15170 char *kwnames[] = {
15171 (char *) "printData", NULL
15172 };
15173
15174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15175 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPrintData,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15176 if (arg1 == NULL) {
15177 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15178 }
15179 {
15180 PyThreadState* __tstate = wxPyBeginAllowThreads();
15181 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15182
15183 wxPyEndAllowThreads(__tstate);
15184 if (PyErr_Occurred()) SWIG_fail;
15185 }
15186 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPrinterDC, 1);
15187 return resultobj;
15188 fail:
15189 return NULL;
15190 }
15191
15192
15193 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15194 PyObject *obj;
15195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15196 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15197 Py_INCREF(obj);
15198 return Py_BuildValue((char *)"");
15199 }
15200 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15201 PyObject *resultobj;
15202 int arg1 ;
15203 int arg2 ;
15204 int arg3 = (int) True ;
15205 int arg4 = (int) 1 ;
15206 wxImageList *result;
15207 PyObject * obj0 = 0 ;
15208 PyObject * obj1 = 0 ;
15209 PyObject * obj2 = 0 ;
15210 PyObject * obj3 = 0 ;
15211 char *kwnames[] = {
15212 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15213 };
15214
15215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15216 {
15217 arg1 = (int) SWIG_PyObj_AsInt(obj0);
15218 if (PyErr_Occurred()) SWIG_fail;
15219 }
15220 {
15221 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15222 if (PyErr_Occurred()) SWIG_fail;
15223 }
15224 if (obj2) {
15225 {
15226 arg3 = (int) SWIG_PyObj_AsInt(obj2);
15227 if (PyErr_Occurred()) SWIG_fail;
15228 }
15229 }
15230 if (obj3) {
15231 {
15232 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 }
15236 {
15237 PyThreadState* __tstate = wxPyBeginAllowThreads();
15238 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15239
15240 wxPyEndAllowThreads(__tstate);
15241 if (PyErr_Occurred()) SWIG_fail;
15242 }
15243 {
15244 resultobj = wxPyMake_wxObject(result);
15245 }
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15253 PyObject *resultobj;
15254 wxImageList *arg1 = (wxImageList *) 0 ;
15255 PyObject * obj0 = 0 ;
15256 char *kwnames[] = {
15257 (char *) "self", NULL
15258 };
15259
15260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15261 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15262 {
15263 PyThreadState* __tstate = wxPyBeginAllowThreads();
15264 delete arg1;
15265
15266 wxPyEndAllowThreads(__tstate);
15267 if (PyErr_Occurred()) SWIG_fail;
15268 }
15269 Py_INCREF(Py_None); resultobj = Py_None;
15270 return resultobj;
15271 fail:
15272 return NULL;
15273 }
15274
15275
15276 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
15277 PyObject *resultobj;
15278 wxImageList *arg1 = (wxImageList *) 0 ;
15279 wxBitmap *arg2 = 0 ;
15280 wxBitmap const &arg3_defvalue = wxNullBitmap ;
15281 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
15282 int result;
15283 PyObject * obj0 = 0 ;
15284 PyObject * obj1 = 0 ;
15285 PyObject * obj2 = 0 ;
15286 char *kwnames[] = {
15287 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
15288 };
15289
15290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
15291 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15292 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15293 if (arg2 == NULL) {
15294 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15295 }
15296 if (obj2) {
15297 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15298 if (arg3 == NULL) {
15299 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15300 }
15301 }
15302 {
15303 PyThreadState* __tstate = wxPyBeginAllowThreads();
15304 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
15305
15306 wxPyEndAllowThreads(__tstate);
15307 if (PyErr_Occurred()) SWIG_fail;
15308 }
15309 resultobj = SWIG_PyObj_FromInt((int)result);
15310 return resultobj;
15311 fail:
15312 return NULL;
15313 }
15314
15315
15316 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15317 PyObject *resultobj;
15318 wxImageList *arg1 = (wxImageList *) 0 ;
15319 wxBitmap *arg2 = 0 ;
15320 wxColour *arg3 = 0 ;
15321 int result;
15322 wxColour temp3 ;
15323 PyObject * obj0 = 0 ;
15324 PyObject * obj1 = 0 ;
15325 PyObject * obj2 = 0 ;
15326 char *kwnames[] = {
15327 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
15328 };
15329
15330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
15331 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15332 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15333 if (arg2 == NULL) {
15334 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15335 }
15336 {
15337 arg3 = &temp3;
15338 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15339 }
15340 {
15341 PyThreadState* __tstate = wxPyBeginAllowThreads();
15342 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
15343
15344 wxPyEndAllowThreads(__tstate);
15345 if (PyErr_Occurred()) SWIG_fail;
15346 }
15347 resultobj = SWIG_PyObj_FromInt((int)result);
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
15355 PyObject *resultobj;
15356 wxImageList *arg1 = (wxImageList *) 0 ;
15357 wxIcon *arg2 = 0 ;
15358 int result;
15359 PyObject * obj0 = 0 ;
15360 PyObject * obj1 = 0 ;
15361 char *kwnames[] = {
15362 (char *) "self",(char *) "icon", NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
15366 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15367 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxIcon,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15368 if (arg2 == NULL) {
15369 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15370 }
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 result = (int)(arg1)->Add((wxIcon const &)*arg2);
15374
15375 wxPyEndAllowThreads(__tstate);
15376 if (PyErr_Occurred()) SWIG_fail;
15377 }
15378 resultobj = SWIG_PyObj_FromInt((int)result);
15379 return resultobj;
15380 fail:
15381 return NULL;
15382 }
15383
15384
15385 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
15386 PyObject *resultobj;
15387 wxImageList *arg1 = (wxImageList *) 0 ;
15388 int arg2 ;
15389 wxBitmap *arg3 = 0 ;
15390 bool result;
15391 PyObject * obj0 = 0 ;
15392 PyObject * obj1 = 0 ;
15393 PyObject * obj2 = 0 ;
15394 char *kwnames[] = {
15395 (char *) "self",(char *) "index",(char *) "bitmap", NULL
15396 };
15397
15398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
15399 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15400 {
15401 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15405 if (arg3 == NULL) {
15406 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15407 }
15408 {
15409 PyThreadState* __tstate = wxPyBeginAllowThreads();
15410 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
15411
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 resultobj = SWIG_PyObj_FromBool((bool)result);
15416 return resultobj;
15417 fail:
15418 return NULL;
15419 }
15420
15421
15422 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
15423 PyObject *resultobj;
15424 wxImageList *arg1 = (wxImageList *) 0 ;
15425 int arg2 ;
15426 wxDC *arg3 = 0 ;
15427 int arg4 ;
15428 int arg5 ;
15429 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
15430 bool arg7 = (bool) (bool)False ;
15431 bool result;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 PyObject * obj2 = 0 ;
15435 PyObject * obj3 = 0 ;
15436 PyObject * obj4 = 0 ;
15437 PyObject * obj5 = 0 ;
15438 PyObject * obj6 = 0 ;
15439 char *kwnames[] = {
15440 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
15441 };
15442
15443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
15444 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15445 {
15446 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15447 if (PyErr_Occurred()) SWIG_fail;
15448 }
15449 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15450 if (arg3 == NULL) {
15451 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
15452 }
15453 {
15454 arg4 = (int) SWIG_PyObj_AsInt(obj3);
15455 if (PyErr_Occurred()) SWIG_fail;
15456 }
15457 {
15458 arg5 = (int) SWIG_PyObj_AsInt(obj4);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 if (obj5) {
15462 {
15463 arg6 = (int) SWIG_PyObj_AsInt(obj5);
15464 if (PyErr_Occurred()) SWIG_fail;
15465 }
15466 }
15467 if (obj6) {
15468 {
15469 arg7 = (bool const) SWIG_PyObj_AsBool(obj6);
15470 if (PyErr_Occurred()) SWIG_fail;
15471 }
15472 }
15473 {
15474 PyThreadState* __tstate = wxPyBeginAllowThreads();
15475 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
15476
15477 wxPyEndAllowThreads(__tstate);
15478 if (PyErr_Occurred()) SWIG_fail;
15479 }
15480 resultobj = SWIG_PyObj_FromBool((bool)result);
15481 return resultobj;
15482 fail:
15483 return NULL;
15484 }
15485
15486
15487 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
15488 PyObject *resultobj;
15489 wxImageList *arg1 = (wxImageList *) 0 ;
15490 int result;
15491 PyObject * obj0 = 0 ;
15492 char *kwnames[] = {
15493 (char *) "self", NULL
15494 };
15495
15496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
15497 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15498 {
15499 PyThreadState* __tstate = wxPyBeginAllowThreads();
15500 result = (int)(arg1)->GetImageCount();
15501
15502 wxPyEndAllowThreads(__tstate);
15503 if (PyErr_Occurred()) SWIG_fail;
15504 }
15505 resultobj = SWIG_PyObj_FromInt((int)result);
15506 return resultobj;
15507 fail:
15508 return NULL;
15509 }
15510
15511
15512 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
15513 PyObject *resultobj;
15514 wxImageList *arg1 = (wxImageList *) 0 ;
15515 int arg2 ;
15516 bool result;
15517 PyObject * obj0 = 0 ;
15518 PyObject * obj1 = 0 ;
15519 char *kwnames[] = {
15520 (char *) "self",(char *) "index", NULL
15521 };
15522
15523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
15524 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15525 {
15526 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (bool)(arg1)->Remove(arg2);
15532
15533 wxPyEndAllowThreads(__tstate);
15534 if (PyErr_Occurred()) SWIG_fail;
15535 }
15536 resultobj = SWIG_PyObj_FromBool((bool)result);
15537 return resultobj;
15538 fail:
15539 return NULL;
15540 }
15541
15542
15543 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
15544 PyObject *resultobj;
15545 wxImageList *arg1 = (wxImageList *) 0 ;
15546 bool result;
15547 PyObject * obj0 = 0 ;
15548 char *kwnames[] = {
15549 (char *) "self", NULL
15550 };
15551
15552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
15553 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15554 {
15555 PyThreadState* __tstate = wxPyBeginAllowThreads();
15556 result = (bool)(arg1)->RemoveAll();
15557
15558 wxPyEndAllowThreads(__tstate);
15559 if (PyErr_Occurred()) SWIG_fail;
15560 }
15561 resultobj = SWIG_PyObj_FromBool((bool)result);
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15569 PyObject *resultobj;
15570 wxImageList *arg1 = (wxImageList *) 0 ;
15571 int arg2 ;
15572 int *arg3 = 0 ;
15573 int *arg4 = 0 ;
15574 int temp3 ;
15575 int temp4 ;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 char *kwnames[] = {
15579 (char *) "self",(char *) "index", NULL
15580 };
15581
15582 arg3 = &temp3;
15583 arg4 = &temp4;
15584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
15585 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxImageList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
15586 {
15587 arg2 = (int) SWIG_PyObj_AsInt(obj1);
15588 if (PyErr_Occurred()) SWIG_fail;
15589 }
15590 {
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 (arg1)->GetSize(arg2,*arg3,*arg4);
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 Py_INCREF(Py_None); resultobj = Py_None;
15598 {
15599 PyObject *o = PyInt_FromLong((long) (*arg3));
15600 resultobj = t_output_helper(resultobj,o);
15601 }
15602 {
15603 PyObject *o = PyInt_FromLong((long) (*arg4));
15604 resultobj = t_output_helper(resultobj,o);
15605 }
15606 return resultobj;
15607 fail:
15608 return NULL;
15609 }
15610
15611
15612 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
15613 PyObject *obj;
15614 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15615 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
15616 Py_INCREF(obj);
15617 return Py_BuildValue((char *)"");
15618 }
15619 static int _wrap_NORMAL_FONT_set(PyObject *) {
15620 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
15621 return 1;
15622 }
15623
15624
15625 static PyObject *_wrap_NORMAL_FONT_get() {
15626 PyObject *pyobj;
15627
15628 pyobj = SWIG_NewPointerObj((void *) wxNORMAL_FONT, SWIGTYPE_p_wxFont, 0);
15629 return pyobj;
15630 }
15631
15632
15633 static int _wrap_SMALL_FONT_set(PyObject *) {
15634 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
15635 return 1;
15636 }
15637
15638
15639 static PyObject *_wrap_SMALL_FONT_get() {
15640 PyObject *pyobj;
15641
15642 pyobj = SWIG_NewPointerObj((void *) wxSMALL_FONT, SWIGTYPE_p_wxFont, 0);
15643 return pyobj;
15644 }
15645
15646
15647 static int _wrap_ITALIC_FONT_set(PyObject *) {
15648 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
15649 return 1;
15650 }
15651
15652
15653 static PyObject *_wrap_ITALIC_FONT_get() {
15654 PyObject *pyobj;
15655
15656 pyobj = SWIG_NewPointerObj((void *) wxITALIC_FONT, SWIGTYPE_p_wxFont, 0);
15657 return pyobj;
15658 }
15659
15660
15661 static int _wrap_SWISS_FONT_set(PyObject *) {
15662 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
15663 return 1;
15664 }
15665
15666
15667 static PyObject *_wrap_SWISS_FONT_get() {
15668 PyObject *pyobj;
15669
15670 pyobj = SWIG_NewPointerObj((void *) wxSWISS_FONT, SWIGTYPE_p_wxFont, 0);
15671 return pyobj;
15672 }
15673
15674
15675 static int _wrap_RED_PEN_set(PyObject *) {
15676 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
15677 return 1;
15678 }
15679
15680
15681 static PyObject *_wrap_RED_PEN_get() {
15682 PyObject *pyobj;
15683
15684 pyobj = SWIG_NewPointerObj((void *) wxRED_PEN, SWIGTYPE_p_wxPen, 0);
15685 return pyobj;
15686 }
15687
15688
15689 static int _wrap_CYAN_PEN_set(PyObject *) {
15690 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
15691 return 1;
15692 }
15693
15694
15695 static PyObject *_wrap_CYAN_PEN_get() {
15696 PyObject *pyobj;
15697
15698 pyobj = SWIG_NewPointerObj((void *) wxCYAN_PEN, SWIGTYPE_p_wxPen, 0);
15699 return pyobj;
15700 }
15701
15702
15703 static int _wrap_GREEN_PEN_set(PyObject *) {
15704 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
15705 return 1;
15706 }
15707
15708
15709 static PyObject *_wrap_GREEN_PEN_get() {
15710 PyObject *pyobj;
15711
15712 pyobj = SWIG_NewPointerObj((void *) wxGREEN_PEN, SWIGTYPE_p_wxPen, 0);
15713 return pyobj;
15714 }
15715
15716
15717 static int _wrap_BLACK_PEN_set(PyObject *) {
15718 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
15719 return 1;
15720 }
15721
15722
15723 static PyObject *_wrap_BLACK_PEN_get() {
15724 PyObject *pyobj;
15725
15726 pyobj = SWIG_NewPointerObj((void *) wxBLACK_PEN, SWIGTYPE_p_wxPen, 0);
15727 return pyobj;
15728 }
15729
15730
15731 static int _wrap_WHITE_PEN_set(PyObject *) {
15732 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
15733 return 1;
15734 }
15735
15736
15737 static PyObject *_wrap_WHITE_PEN_get() {
15738 PyObject *pyobj;
15739
15740 pyobj = SWIG_NewPointerObj((void *) wxWHITE_PEN, SWIGTYPE_p_wxPen, 0);
15741 return pyobj;
15742 }
15743
15744
15745 static int _wrap_TRANSPARENT_PEN_set(PyObject *) {
15746 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
15747 return 1;
15748 }
15749
15750
15751 static PyObject *_wrap_TRANSPARENT_PEN_get() {
15752 PyObject *pyobj;
15753
15754 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_PEN, SWIGTYPE_p_wxPen, 0);
15755 return pyobj;
15756 }
15757
15758
15759 static int _wrap_BLACK_DASHED_PEN_set(PyObject *) {
15760 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
15761 return 1;
15762 }
15763
15764
15765 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
15766 PyObject *pyobj;
15767
15768 pyobj = SWIG_NewPointerObj((void *) wxBLACK_DASHED_PEN, SWIGTYPE_p_wxPen, 0);
15769 return pyobj;
15770 }
15771
15772
15773 static int _wrap_GREY_PEN_set(PyObject *) {
15774 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
15775 return 1;
15776 }
15777
15778
15779 static PyObject *_wrap_GREY_PEN_get() {
15780 PyObject *pyobj;
15781
15782 pyobj = SWIG_NewPointerObj((void *) wxGREY_PEN, SWIGTYPE_p_wxPen, 0);
15783 return pyobj;
15784 }
15785
15786
15787 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *) {
15788 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
15789 return 1;
15790 }
15791
15792
15793 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
15794 PyObject *pyobj;
15795
15796 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15797 return pyobj;
15798 }
15799
15800
15801 static int _wrap_LIGHT_GREY_PEN_set(PyObject *) {
15802 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
15803 return 1;
15804 }
15805
15806
15807 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
15808 PyObject *pyobj;
15809
15810 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_PEN, SWIGTYPE_p_wxPen, 0);
15811 return pyobj;
15812 }
15813
15814
15815 static int _wrap_BLUE_BRUSH_set(PyObject *) {
15816 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
15817 return 1;
15818 }
15819
15820
15821 static PyObject *_wrap_BLUE_BRUSH_get() {
15822 PyObject *pyobj;
15823
15824 pyobj = SWIG_NewPointerObj((void *) wxBLUE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15825 return pyobj;
15826 }
15827
15828
15829 static int _wrap_GREEN_BRUSH_set(PyObject *) {
15830 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
15831 return 1;
15832 }
15833
15834
15835 static PyObject *_wrap_GREEN_BRUSH_get() {
15836 PyObject *pyobj;
15837
15838 pyobj = SWIG_NewPointerObj((void *) wxGREEN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15839 return pyobj;
15840 }
15841
15842
15843 static int _wrap_WHITE_BRUSH_set(PyObject *) {
15844 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
15845 return 1;
15846 }
15847
15848
15849 static PyObject *_wrap_WHITE_BRUSH_get() {
15850 PyObject *pyobj;
15851
15852 pyobj = SWIG_NewPointerObj((void *) wxWHITE_BRUSH, SWIGTYPE_p_wxBrush, 0);
15853 return pyobj;
15854 }
15855
15856
15857 static int _wrap_BLACK_BRUSH_set(PyObject *) {
15858 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
15859 return 1;
15860 }
15861
15862
15863 static PyObject *_wrap_BLACK_BRUSH_get() {
15864 PyObject *pyobj;
15865
15866 pyobj = SWIG_NewPointerObj((void *) wxBLACK_BRUSH, SWIGTYPE_p_wxBrush, 0);
15867 return pyobj;
15868 }
15869
15870
15871 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *) {
15872 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
15873 return 1;
15874 }
15875
15876
15877 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
15878 PyObject *pyobj;
15879
15880 pyobj = SWIG_NewPointerObj((void *) wxTRANSPARENT_BRUSH, SWIGTYPE_p_wxBrush, 0);
15881 return pyobj;
15882 }
15883
15884
15885 static int _wrap_CYAN_BRUSH_set(PyObject *) {
15886 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
15887 return 1;
15888 }
15889
15890
15891 static PyObject *_wrap_CYAN_BRUSH_get() {
15892 PyObject *pyobj;
15893
15894 pyobj = SWIG_NewPointerObj((void *) wxCYAN_BRUSH, SWIGTYPE_p_wxBrush, 0);
15895 return pyobj;
15896 }
15897
15898
15899 static int _wrap_RED_BRUSH_set(PyObject *) {
15900 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
15901 return 1;
15902 }
15903
15904
15905 static PyObject *_wrap_RED_BRUSH_get() {
15906 PyObject *pyobj;
15907
15908 pyobj = SWIG_NewPointerObj((void *) wxRED_BRUSH, SWIGTYPE_p_wxBrush, 0);
15909 return pyobj;
15910 }
15911
15912
15913 static int _wrap_GREY_BRUSH_set(PyObject *) {
15914 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
15915 return 1;
15916 }
15917
15918
15919 static PyObject *_wrap_GREY_BRUSH_get() {
15920 PyObject *pyobj;
15921
15922 pyobj = SWIG_NewPointerObj((void *) wxGREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15923 return pyobj;
15924 }
15925
15926
15927 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *) {
15928 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
15929 return 1;
15930 }
15931
15932
15933 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
15934 PyObject *pyobj;
15935
15936 pyobj = SWIG_NewPointerObj((void *) wxMEDIUM_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15937 return pyobj;
15938 }
15939
15940
15941 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *) {
15942 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
15943 return 1;
15944 }
15945
15946
15947 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
15948 PyObject *pyobj;
15949
15950 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY_BRUSH, SWIGTYPE_p_wxBrush, 0);
15951 return pyobj;
15952 }
15953
15954
15955 static int _wrap_BLACK_set(PyObject *) {
15956 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
15957 return 1;
15958 }
15959
15960
15961 static PyObject *_wrap_BLACK_get() {
15962 PyObject *pyobj;
15963
15964 pyobj = SWIG_NewPointerObj((void *) wxBLACK, SWIGTYPE_p_wxColour, 0);
15965 return pyobj;
15966 }
15967
15968
15969 static int _wrap_WHITE_set(PyObject *) {
15970 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
15971 return 1;
15972 }
15973
15974
15975 static PyObject *_wrap_WHITE_get() {
15976 PyObject *pyobj;
15977
15978 pyobj = SWIG_NewPointerObj((void *) wxWHITE, SWIGTYPE_p_wxColour, 0);
15979 return pyobj;
15980 }
15981
15982
15983 static int _wrap_RED_set(PyObject *) {
15984 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
15985 return 1;
15986 }
15987
15988
15989 static PyObject *_wrap_RED_get() {
15990 PyObject *pyobj;
15991
15992 pyobj = SWIG_NewPointerObj((void *) wxRED, SWIGTYPE_p_wxColour, 0);
15993 return pyobj;
15994 }
15995
15996
15997 static int _wrap_BLUE_set(PyObject *) {
15998 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
15999 return 1;
16000 }
16001
16002
16003 static PyObject *_wrap_BLUE_get() {
16004 PyObject *pyobj;
16005
16006 pyobj = SWIG_NewPointerObj((void *) wxBLUE, SWIGTYPE_p_wxColour, 0);
16007 return pyobj;
16008 }
16009
16010
16011 static int _wrap_GREEN_set(PyObject *) {
16012 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16013 return 1;
16014 }
16015
16016
16017 static PyObject *_wrap_GREEN_get() {
16018 PyObject *pyobj;
16019
16020 pyobj = SWIG_NewPointerObj((void *) wxGREEN, SWIGTYPE_p_wxColour, 0);
16021 return pyobj;
16022 }
16023
16024
16025 static int _wrap_CYAN_set(PyObject *) {
16026 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16027 return 1;
16028 }
16029
16030
16031 static PyObject *_wrap_CYAN_get() {
16032 PyObject *pyobj;
16033
16034 pyobj = SWIG_NewPointerObj((void *) wxCYAN, SWIGTYPE_p_wxColour, 0);
16035 return pyobj;
16036 }
16037
16038
16039 static int _wrap_LIGHT_GREY_set(PyObject *) {
16040 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16041 return 1;
16042 }
16043
16044
16045 static PyObject *_wrap_LIGHT_GREY_get() {
16046 PyObject *pyobj;
16047
16048 pyobj = SWIG_NewPointerObj((void *) wxLIGHT_GREY, SWIGTYPE_p_wxColour, 0);
16049 return pyobj;
16050 }
16051
16052
16053 static int _wrap_STANDARD_CURSOR_set(PyObject *) {
16054 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16055 return 1;
16056 }
16057
16058
16059 static PyObject *_wrap_STANDARD_CURSOR_get() {
16060 PyObject *pyobj;
16061
16062 pyobj = SWIG_NewPointerObj((void *) wxSTANDARD_CURSOR, SWIGTYPE_p_wxCursor, 0);
16063 return pyobj;
16064 }
16065
16066
16067 static int _wrap_HOURGLASS_CURSOR_set(PyObject *) {
16068 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16069 return 1;
16070 }
16071
16072
16073 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16074 PyObject *pyobj;
16075
16076 pyobj = SWIG_NewPointerObj((void *) wxHOURGLASS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16077 return pyobj;
16078 }
16079
16080
16081 static int _wrap_CROSS_CURSOR_set(PyObject *) {
16082 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16083 return 1;
16084 }
16085
16086
16087 static PyObject *_wrap_CROSS_CURSOR_get() {
16088 PyObject *pyobj;
16089
16090 pyobj = SWIG_NewPointerObj((void *) wxCROSS_CURSOR, SWIGTYPE_p_wxCursor, 0);
16091 return pyobj;
16092 }
16093
16094
16095 static int _wrap_NullBitmap_set(PyObject *) {
16096 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16097 return 1;
16098 }
16099
16100
16101 static PyObject *_wrap_NullBitmap_get() {
16102 PyObject *pyobj;
16103
16104 pyobj = SWIG_NewPointerObj((void *) &wxNullBitmap, SWIGTYPE_p_wxBitmap, 0);
16105 return pyobj;
16106 }
16107
16108
16109 static int _wrap_NullIcon_set(PyObject *) {
16110 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16111 return 1;
16112 }
16113
16114
16115 static PyObject *_wrap_NullIcon_get() {
16116 PyObject *pyobj;
16117
16118 pyobj = SWIG_NewPointerObj((void *) &wxNullIcon, SWIGTYPE_p_wxIcon, 0);
16119 return pyobj;
16120 }
16121
16122
16123 static int _wrap_NullCursor_set(PyObject *) {
16124 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16125 return 1;
16126 }
16127
16128
16129 static PyObject *_wrap_NullCursor_get() {
16130 PyObject *pyobj;
16131
16132 pyobj = SWIG_NewPointerObj((void *) &wxNullCursor, SWIGTYPE_p_wxCursor, 0);
16133 return pyobj;
16134 }
16135
16136
16137 static int _wrap_NullPen_set(PyObject *) {
16138 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16139 return 1;
16140 }
16141
16142
16143 static PyObject *_wrap_NullPen_get() {
16144 PyObject *pyobj;
16145
16146 pyobj = SWIG_NewPointerObj((void *) &wxNullPen, SWIGTYPE_p_wxPen, 0);
16147 return pyobj;
16148 }
16149
16150
16151 static int _wrap_NullBrush_set(PyObject *) {
16152 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16153 return 1;
16154 }
16155
16156
16157 static PyObject *_wrap_NullBrush_get() {
16158 PyObject *pyobj;
16159
16160 pyobj = SWIG_NewPointerObj((void *) &wxNullBrush, SWIGTYPE_p_wxBrush, 0);
16161 return pyobj;
16162 }
16163
16164
16165 static int _wrap_NullPalette_set(PyObject *) {
16166 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16167 return 1;
16168 }
16169
16170
16171 static PyObject *_wrap_NullPalette_get() {
16172 PyObject *pyobj;
16173
16174 pyobj = SWIG_NewPointerObj((void *) &wxNullPalette, SWIGTYPE_p_wxPalette, 0);
16175 return pyobj;
16176 }
16177
16178
16179 static int _wrap_NullFont_set(PyObject *) {
16180 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16181 return 1;
16182 }
16183
16184
16185 static PyObject *_wrap_NullFont_get() {
16186 PyObject *pyobj;
16187
16188 pyobj = SWIG_NewPointerObj((void *) &wxNullFont, SWIGTYPE_p_wxFont, 0);
16189 return pyobj;
16190 }
16191
16192
16193 static int _wrap_NullColour_set(PyObject *) {
16194 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16195 return 1;
16196 }
16197
16198
16199 static PyObject *_wrap_NullColour_get() {
16200 PyObject *pyobj;
16201
16202 pyobj = SWIG_NewPointerObj((void *) &wxNullColour, SWIGTYPE_p_wxColour, 0);
16203 return pyobj;
16204 }
16205
16206
16207 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16208 PyObject *resultobj;
16209 wxPenList *arg1 = (wxPenList *) 0 ;
16210 wxPen *arg2 = (wxPen *) 0 ;
16211 PyObject * obj0 = 0 ;
16212 PyObject * obj1 = 0 ;
16213 char *kwnames[] = {
16214 (char *) "self",(char *) "pen", NULL
16215 };
16216
16217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16218 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16219 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16220 {
16221 PyThreadState* __tstate = wxPyBeginAllowThreads();
16222 (arg1)->AddPen(arg2);
16223
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 Py_INCREF(Py_None); resultobj = Py_None;
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16235 PyObject *resultobj;
16236 wxPenList *arg1 = (wxPenList *) 0 ;
16237 wxColour *arg2 = 0 ;
16238 int arg3 ;
16239 int arg4 ;
16240 wxPen *result;
16241 wxColour temp2 ;
16242 PyObject * obj0 = 0 ;
16243 PyObject * obj1 = 0 ;
16244 PyObject * obj2 = 0 ;
16245 PyObject * obj3 = 0 ;
16246 char *kwnames[] = {
16247 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16248 };
16249
16250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16251 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16252 {
16253 arg2 = &temp2;
16254 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16255 }
16256 {
16257 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16258 if (PyErr_Occurred()) SWIG_fail;
16259 }
16260 {
16261 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16262 if (PyErr_Occurred()) SWIG_fail;
16263 }
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
16267
16268 wxPyEndAllowThreads(__tstate);
16269 if (PyErr_Occurred()) SWIG_fail;
16270 }
16271 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxPen, 0);
16272 return resultobj;
16273 fail:
16274 return NULL;
16275 }
16276
16277
16278 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16279 PyObject *resultobj;
16280 wxPenList *arg1 = (wxPenList *) 0 ;
16281 wxPen *arg2 = (wxPen *) 0 ;
16282 PyObject * obj0 = 0 ;
16283 PyObject * obj1 = 0 ;
16284 char *kwnames[] = {
16285 (char *) "self",(char *) "pen", NULL
16286 };
16287
16288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
16289 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16290 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxPen,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16291 {
16292 PyThreadState* __tstate = wxPyBeginAllowThreads();
16293 (arg1)->RemovePen(arg2);
16294
16295 wxPyEndAllowThreads(__tstate);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 }
16298 Py_INCREF(Py_None); resultobj = Py_None;
16299 return resultobj;
16300 fail:
16301 return NULL;
16302 }
16303
16304
16305 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16306 PyObject *resultobj;
16307 wxPenList *arg1 = (wxPenList *) 0 ;
16308 int result;
16309 PyObject * obj0 = 0 ;
16310 char *kwnames[] = {
16311 (char *) "self", NULL
16312 };
16313
16314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
16315 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxPenList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 result = (int)(arg1)->GetCount();
16319
16320 wxPyEndAllowThreads(__tstate);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 }
16323 resultobj = SWIG_PyObj_FromInt((int)result);
16324 return resultobj;
16325 fail:
16326 return NULL;
16327 }
16328
16329
16330 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
16331 PyObject *obj;
16332 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16333 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
16334 Py_INCREF(obj);
16335 return Py_BuildValue((char *)"");
16336 }
16337 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16338 PyObject *resultobj;
16339 wxBrushList *arg1 = (wxBrushList *) 0 ;
16340 wxBrush *arg2 = (wxBrush *) 0 ;
16341 PyObject * obj0 = 0 ;
16342 PyObject * obj1 = 0 ;
16343 char *kwnames[] = {
16344 (char *) "self",(char *) "brush", NULL
16345 };
16346
16347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
16348 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16349 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16350 {
16351 PyThreadState* __tstate = wxPyBeginAllowThreads();
16352 (arg1)->AddBrush(arg2);
16353
16354 wxPyEndAllowThreads(__tstate);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 }
16357 Py_INCREF(Py_None); resultobj = Py_None;
16358 return resultobj;
16359 fail:
16360 return NULL;
16361 }
16362
16363
16364 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16365 PyObject *resultobj;
16366 wxBrushList *arg1 = (wxBrushList *) 0 ;
16367 wxColour *arg2 = 0 ;
16368 int arg3 ;
16369 wxBrush *result;
16370 wxColour temp2 ;
16371 PyObject * obj0 = 0 ;
16372 PyObject * obj1 = 0 ;
16373 PyObject * obj2 = 0 ;
16374 char *kwnames[] = {
16375 (char *) "self",(char *) "colour",(char *) "style", NULL
16376 };
16377
16378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
16379 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16380 {
16381 arg2 = &temp2;
16382 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16383 }
16384 {
16385 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 {
16389 PyThreadState* __tstate = wxPyBeginAllowThreads();
16390 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
16391
16392 wxPyEndAllowThreads(__tstate);
16393 if (PyErr_Occurred()) SWIG_fail;
16394 }
16395 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxBrush, 0);
16396 return resultobj;
16397 fail:
16398 return NULL;
16399 }
16400
16401
16402 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
16403 PyObject *resultobj;
16404 wxBrushList *arg1 = (wxBrushList *) 0 ;
16405 wxBrush *arg2 = (wxBrush *) 0 ;
16406 PyObject * obj0 = 0 ;
16407 PyObject * obj1 = 0 ;
16408 char *kwnames[] = {
16409 (char *) "self",(char *) "brush", NULL
16410 };
16411
16412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
16413 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16414 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxBrush,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16415 {
16416 PyThreadState* __tstate = wxPyBeginAllowThreads();
16417 (arg1)->RemoveBrush(arg2);
16418
16419 wxPyEndAllowThreads(__tstate);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 Py_INCREF(Py_None); resultobj = Py_None;
16423 return resultobj;
16424 fail:
16425 return NULL;
16426 }
16427
16428
16429 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16430 PyObject *resultobj;
16431 wxBrushList *arg1 = (wxBrushList *) 0 ;
16432 int result;
16433 PyObject * obj0 = 0 ;
16434 char *kwnames[] = {
16435 (char *) "self", NULL
16436 };
16437
16438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
16439 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxBrushList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16440 {
16441 PyThreadState* __tstate = wxPyBeginAllowThreads();
16442 result = (int)(arg1)->GetCount();
16443
16444 wxPyEndAllowThreads(__tstate);
16445 if (PyErr_Occurred()) SWIG_fail;
16446 }
16447 resultobj = SWIG_PyObj_FromInt((int)result);
16448 return resultobj;
16449 fail:
16450 return NULL;
16451 }
16452
16453
16454 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
16455 PyObject *obj;
16456 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16457 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
16458 Py_INCREF(obj);
16459 return Py_BuildValue((char *)"");
16460 }
16461 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16462 PyObject *resultobj;
16463 wxColourDatabase *result;
16464 char *kwnames[] = {
16465 NULL
16466 };
16467
16468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
16469 {
16470 PyThreadState* __tstate = wxPyBeginAllowThreads();
16471 result = (wxColourDatabase *)new wxColourDatabase();
16472
16473 wxPyEndAllowThreads(__tstate);
16474 if (PyErr_Occurred()) SWIG_fail;
16475 }
16476 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColourDatabase, 1);
16477 return resultobj;
16478 fail:
16479 return NULL;
16480 }
16481
16482
16483 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
16484 PyObject *resultobj;
16485 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16486 PyObject * obj0 = 0 ;
16487 char *kwnames[] = {
16488 (char *) "self", NULL
16489 };
16490
16491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
16492 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16493 {
16494 PyThreadState* __tstate = wxPyBeginAllowThreads();
16495 delete arg1;
16496
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 Py_INCREF(Py_None); resultobj = Py_None;
16501 return resultobj;
16502 fail:
16503 return NULL;
16504 }
16505
16506
16507 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
16508 PyObject *resultobj;
16509 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16510 wxString *arg2 = 0 ;
16511 wxColour result;
16512 bool temp2 = False ;
16513 PyObject * obj0 = 0 ;
16514 PyObject * obj1 = 0 ;
16515 char *kwnames[] = {
16516 (char *) "self",(char *) "name", NULL
16517 };
16518
16519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
16520 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16521 {
16522 arg2 = wxString_in_helper(obj1);
16523 if (arg2 == NULL) SWIG_fail;
16524 temp2 = True;
16525 }
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
16529
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 {
16534 wxColour * resultptr;
16535 resultptr = new wxColour((wxColour &) result);
16536 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16537 }
16538 {
16539 if (temp2)
16540 delete arg2;
16541 }
16542 return resultobj;
16543 fail:
16544 {
16545 if (temp2)
16546 delete arg2;
16547 }
16548 return NULL;
16549 }
16550
16551
16552 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
16553 PyObject *resultobj;
16554 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16555 wxColour *arg2 = 0 ;
16556 wxString result;
16557 wxColour temp2 ;
16558 PyObject * obj0 = 0 ;
16559 PyObject * obj1 = 0 ;
16560 char *kwnames[] = {
16561 (char *) "self",(char *) "colour", NULL
16562 };
16563
16564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
16565 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16566 {
16567 arg2 = &temp2;
16568 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
16569 }
16570 {
16571 PyThreadState* __tstate = wxPyBeginAllowThreads();
16572 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
16573
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 {
16578 #if wxUSE_UNICODE
16579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16580 #else
16581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16582 #endif
16583 }
16584 return resultobj;
16585 fail:
16586 return NULL;
16587 }
16588
16589
16590 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16591 PyObject *resultobj;
16592 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16593 wxString *arg2 = 0 ;
16594 wxColour *arg3 = 0 ;
16595 bool temp2 = False ;
16596 wxColour temp3 ;
16597 PyObject * obj0 = 0 ;
16598 PyObject * obj1 = 0 ;
16599 PyObject * obj2 = 0 ;
16600 char *kwnames[] = {
16601 (char *) "self",(char *) "name",(char *) "colour", NULL
16602 };
16603
16604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
16605 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16606 {
16607 arg2 = wxString_in_helper(obj1);
16608 if (arg2 == NULL) SWIG_fail;
16609 temp2 = True;
16610 }
16611 {
16612 arg3 = &temp3;
16613 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16614 }
16615 {
16616 PyThreadState* __tstate = wxPyBeginAllowThreads();
16617 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
16618
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 Py_INCREF(Py_None); resultobj = Py_None;
16623 {
16624 if (temp2)
16625 delete arg2;
16626 }
16627 return resultobj;
16628 fail:
16629 {
16630 if (temp2)
16631 delete arg2;
16632 }
16633 return NULL;
16634 }
16635
16636
16637 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
16638 PyObject *resultobj;
16639 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
16640 wxString *arg2 = 0 ;
16641 int arg3 ;
16642 int arg4 ;
16643 int arg5 ;
16644 bool temp2 = False ;
16645 PyObject * obj0 = 0 ;
16646 PyObject * obj1 = 0 ;
16647 PyObject * obj2 = 0 ;
16648 PyObject * obj3 = 0 ;
16649 PyObject * obj4 = 0 ;
16650 char *kwnames[] = {
16651 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
16652 };
16653
16654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
16655 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxColourDatabase,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16656 {
16657 arg2 = wxString_in_helper(obj1);
16658 if (arg2 == NULL) SWIG_fail;
16659 temp2 = True;
16660 }
16661 {
16662 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 {
16666 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16667 if (PyErr_Occurred()) SWIG_fail;
16668 }
16669 {
16670 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16671 if (PyErr_Occurred()) SWIG_fail;
16672 }
16673 {
16674 PyThreadState* __tstate = wxPyBeginAllowThreads();
16675 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
16676
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 Py_INCREF(Py_None); resultobj = Py_None;
16681 {
16682 if (temp2)
16683 delete arg2;
16684 }
16685 return resultobj;
16686 fail:
16687 {
16688 if (temp2)
16689 delete arg2;
16690 }
16691 return NULL;
16692 }
16693
16694
16695 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
16696 PyObject *obj;
16697 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16698 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
16699 Py_INCREF(obj);
16700 return Py_BuildValue((char *)"");
16701 }
16702 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16703 PyObject *resultobj;
16704 wxFontList *arg1 = (wxFontList *) 0 ;
16705 wxFont *arg2 = (wxFont *) 0 ;
16706 PyObject * obj0 = 0 ;
16707 PyObject * obj1 = 0 ;
16708 char *kwnames[] = {
16709 (char *) "self",(char *) "font", NULL
16710 };
16711
16712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
16713 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16714 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16715 {
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 (arg1)->AddFont(arg2);
16718
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 Py_INCREF(Py_None); resultobj = Py_None;
16723 return resultobj;
16724 fail:
16725 return NULL;
16726 }
16727
16728
16729 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16730 PyObject *resultobj;
16731 wxFontList *arg1 = (wxFontList *) 0 ;
16732 int arg2 ;
16733 int arg3 ;
16734 int arg4 ;
16735 int arg5 ;
16736 bool arg6 = (bool) False ;
16737 wxString const &arg7_defvalue = wxPyEmptyString ;
16738 wxString *arg7 = (wxString *) &arg7_defvalue ;
16739 int arg8 = (int) wxFONTENCODING_DEFAULT ;
16740 wxFont *result;
16741 bool temp7 = False ;
16742 PyObject * obj0 = 0 ;
16743 PyObject * obj1 = 0 ;
16744 PyObject * obj2 = 0 ;
16745 PyObject * obj3 = 0 ;
16746 PyObject * obj4 = 0 ;
16747 PyObject * obj5 = 0 ;
16748 PyObject * obj6 = 0 ;
16749 PyObject * obj7 = 0 ;
16750 char *kwnames[] = {
16751 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
16752 };
16753
16754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
16755 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16756 {
16757 arg2 = (int) SWIG_PyObj_AsInt(obj1);
16758 if (PyErr_Occurred()) SWIG_fail;
16759 }
16760 {
16761 arg3 = (int) SWIG_PyObj_AsInt(obj2);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 {
16765 arg4 = (int) SWIG_PyObj_AsInt(obj3);
16766 if (PyErr_Occurred()) SWIG_fail;
16767 }
16768 {
16769 arg5 = (int) SWIG_PyObj_AsInt(obj4);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 }
16772 if (obj5) {
16773 {
16774 arg6 = (bool) SWIG_PyObj_AsBool(obj5);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 }
16778 if (obj6) {
16779 {
16780 arg7 = wxString_in_helper(obj6);
16781 if (arg7 == NULL) SWIG_fail;
16782 temp7 = True;
16783 }
16784 }
16785 if (obj7) {
16786 {
16787 arg8 = (wxFontEncoding) SWIG_PyObj_AsInt(obj7);
16788 if (PyErr_Occurred()) SWIG_fail;
16789 }
16790 }
16791 {
16792 PyThreadState* __tstate = wxPyBeginAllowThreads();
16793 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
16794
16795 wxPyEndAllowThreads(__tstate);
16796 if (PyErr_Occurred()) SWIG_fail;
16797 }
16798 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxFont, 0);
16799 {
16800 if (temp7)
16801 delete arg7;
16802 }
16803 return resultobj;
16804 fail:
16805 {
16806 if (temp7)
16807 delete arg7;
16808 }
16809 return NULL;
16810 }
16811
16812
16813 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
16814 PyObject *resultobj;
16815 wxFontList *arg1 = (wxFontList *) 0 ;
16816 wxFont *arg2 = (wxFont *) 0 ;
16817 PyObject * obj0 = 0 ;
16818 PyObject * obj1 = 0 ;
16819 char *kwnames[] = {
16820 (char *) "self",(char *) "font", NULL
16821 };
16822
16823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
16824 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16825 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxFont,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16826 {
16827 PyThreadState* __tstate = wxPyBeginAllowThreads();
16828 (arg1)->RemoveFont(arg2);
16829
16830 wxPyEndAllowThreads(__tstate);
16831 if (PyErr_Occurred()) SWIG_fail;
16832 }
16833 Py_INCREF(Py_None); resultobj = Py_None;
16834 return resultobj;
16835 fail:
16836 return NULL;
16837 }
16838
16839
16840 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16841 PyObject *resultobj;
16842 wxFontList *arg1 = (wxFontList *) 0 ;
16843 int result;
16844 PyObject * obj0 = 0 ;
16845 char *kwnames[] = {
16846 (char *) "self", NULL
16847 };
16848
16849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
16850 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxFontList,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16851 {
16852 PyThreadState* __tstate = wxPyBeginAllowThreads();
16853 result = (int)(arg1)->GetCount();
16854
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 resultobj = SWIG_PyObj_FromInt((int)result);
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
16866 PyObject *obj;
16867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16868 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
16869 Py_INCREF(obj);
16870 return Py_BuildValue((char *)"");
16871 }
16872 static int _wrap_TheFontList_set(PyObject *) {
16873 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
16874 return 1;
16875 }
16876
16877
16878 static PyObject *_wrap_TheFontList_get() {
16879 PyObject *pyobj;
16880
16881 pyobj = SWIG_NewPointerObj((void *) wxTheFontList, SWIGTYPE_p_wxFontList, 0);
16882 return pyobj;
16883 }
16884
16885
16886 static int _wrap_ThePenList_set(PyObject *) {
16887 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
16888 return 1;
16889 }
16890
16891
16892 static PyObject *_wrap_ThePenList_get() {
16893 PyObject *pyobj;
16894
16895 pyobj = SWIG_NewPointerObj((void *) wxThePenList, SWIGTYPE_p_wxPenList, 0);
16896 return pyobj;
16897 }
16898
16899
16900 static int _wrap_TheBrushList_set(PyObject *) {
16901 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
16902 return 1;
16903 }
16904
16905
16906 static PyObject *_wrap_TheBrushList_get() {
16907 PyObject *pyobj;
16908
16909 pyobj = SWIG_NewPointerObj((void *) wxTheBrushList, SWIGTYPE_p_wxBrushList, 0);
16910 return pyobj;
16911 }
16912
16913
16914 static int _wrap_TheColourDatabase_set(PyObject *) {
16915 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
16916 return 1;
16917 }
16918
16919
16920 static PyObject *_wrap_TheColourDatabase_get() {
16921 PyObject *pyobj;
16922
16923 pyobj = SWIG_NewPointerObj((void *) wxTheColourDatabase, SWIGTYPE_p_wxColourDatabase, 0);
16924 return pyobj;
16925 }
16926
16927
16928 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
16929 PyObject *resultobj;
16930 wxEffects *result;
16931 char *kwnames[] = {
16932 NULL
16933 };
16934
16935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
16936 {
16937 PyThreadState* __tstate = wxPyBeginAllowThreads();
16938 result = (wxEffects *)new wxEffects();
16939
16940 wxPyEndAllowThreads(__tstate);
16941 if (PyErr_Occurred()) SWIG_fail;
16942 }
16943 resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxEffects, 1);
16944 return resultobj;
16945 fail:
16946 return NULL;
16947 }
16948
16949
16950 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
16951 PyObject *resultobj;
16952 wxEffects *arg1 = (wxEffects *) 0 ;
16953 wxColour result;
16954 PyObject * obj0 = 0 ;
16955 char *kwnames[] = {
16956 (char *) "self", NULL
16957 };
16958
16959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
16960 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16961 {
16962 PyThreadState* __tstate = wxPyBeginAllowThreads();
16963 result = ((wxEffects const *)arg1)->GetHighlightColour();
16964
16965 wxPyEndAllowThreads(__tstate);
16966 if (PyErr_Occurred()) SWIG_fail;
16967 }
16968 {
16969 wxColour * resultptr;
16970 resultptr = new wxColour((wxColour &) result);
16971 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
16972 }
16973 return resultobj;
16974 fail:
16975 return NULL;
16976 }
16977
16978
16979 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
16980 PyObject *resultobj;
16981 wxEffects *arg1 = (wxEffects *) 0 ;
16982 wxColour result;
16983 PyObject * obj0 = 0 ;
16984 char *kwnames[] = {
16985 (char *) "self", NULL
16986 };
16987
16988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
16989 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
16990 {
16991 PyThreadState* __tstate = wxPyBeginAllowThreads();
16992 result = ((wxEffects const *)arg1)->GetLightShadow();
16993
16994 wxPyEndAllowThreads(__tstate);
16995 if (PyErr_Occurred()) SWIG_fail;
16996 }
16997 {
16998 wxColour * resultptr;
16999 resultptr = new wxColour((wxColour &) result);
17000 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17001 }
17002 return resultobj;
17003 fail:
17004 return NULL;
17005 }
17006
17007
17008 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17009 PyObject *resultobj;
17010 wxEffects *arg1 = (wxEffects *) 0 ;
17011 wxColour result;
17012 PyObject * obj0 = 0 ;
17013 char *kwnames[] = {
17014 (char *) "self", NULL
17015 };
17016
17017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17018 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17019 {
17020 PyThreadState* __tstate = wxPyBeginAllowThreads();
17021 result = ((wxEffects const *)arg1)->GetFaceColour();
17022
17023 wxPyEndAllowThreads(__tstate);
17024 if (PyErr_Occurred()) SWIG_fail;
17025 }
17026 {
17027 wxColour * resultptr;
17028 resultptr = new wxColour((wxColour &) result);
17029 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17030 }
17031 return resultobj;
17032 fail:
17033 return NULL;
17034 }
17035
17036
17037 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17038 PyObject *resultobj;
17039 wxEffects *arg1 = (wxEffects *) 0 ;
17040 wxColour result;
17041 PyObject * obj0 = 0 ;
17042 char *kwnames[] = {
17043 (char *) "self", NULL
17044 };
17045
17046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17047 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17048 {
17049 PyThreadState* __tstate = wxPyBeginAllowThreads();
17050 result = ((wxEffects const *)arg1)->GetMediumShadow();
17051
17052 wxPyEndAllowThreads(__tstate);
17053 if (PyErr_Occurred()) SWIG_fail;
17054 }
17055 {
17056 wxColour * resultptr;
17057 resultptr = new wxColour((wxColour &) result);
17058 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17059 }
17060 return resultobj;
17061 fail:
17062 return NULL;
17063 }
17064
17065
17066 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17067 PyObject *resultobj;
17068 wxEffects *arg1 = (wxEffects *) 0 ;
17069 wxColour result;
17070 PyObject * obj0 = 0 ;
17071 char *kwnames[] = {
17072 (char *) "self", NULL
17073 };
17074
17075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17076 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17077 {
17078 PyThreadState* __tstate = wxPyBeginAllowThreads();
17079 result = ((wxEffects const *)arg1)->GetDarkShadow();
17080
17081 wxPyEndAllowThreads(__tstate);
17082 if (PyErr_Occurred()) SWIG_fail;
17083 }
17084 {
17085 wxColour * resultptr;
17086 resultptr = new wxColour((wxColour &) result);
17087 resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
17088 }
17089 return resultobj;
17090 fail:
17091 return NULL;
17092 }
17093
17094
17095 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17096 PyObject *resultobj;
17097 wxEffects *arg1 = (wxEffects *) 0 ;
17098 wxColour *arg2 = 0 ;
17099 wxColour temp2 ;
17100 PyObject * obj0 = 0 ;
17101 PyObject * obj1 = 0 ;
17102 char *kwnames[] = {
17103 (char *) "self",(char *) "c", NULL
17104 };
17105
17106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17107 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17108 {
17109 arg2 = &temp2;
17110 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17111 }
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17115
17116 wxPyEndAllowThreads(__tstate);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 Py_INCREF(Py_None); resultobj = Py_None;
17120 return resultobj;
17121 fail:
17122 return NULL;
17123 }
17124
17125
17126 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17127 PyObject *resultobj;
17128 wxEffects *arg1 = (wxEffects *) 0 ;
17129 wxColour *arg2 = 0 ;
17130 wxColour temp2 ;
17131 PyObject * obj0 = 0 ;
17132 PyObject * obj1 = 0 ;
17133 char *kwnames[] = {
17134 (char *) "self",(char *) "c", NULL
17135 };
17136
17137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17138 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17139 {
17140 arg2 = &temp2;
17141 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17142 }
17143 {
17144 PyThreadState* __tstate = wxPyBeginAllowThreads();
17145 (arg1)->SetLightShadow((wxColour const &)*arg2);
17146
17147 wxPyEndAllowThreads(__tstate);
17148 if (PyErr_Occurred()) SWIG_fail;
17149 }
17150 Py_INCREF(Py_None); resultobj = Py_None;
17151 return resultobj;
17152 fail:
17153 return NULL;
17154 }
17155
17156
17157 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17158 PyObject *resultobj;
17159 wxEffects *arg1 = (wxEffects *) 0 ;
17160 wxColour *arg2 = 0 ;
17161 wxColour temp2 ;
17162 PyObject * obj0 = 0 ;
17163 PyObject * obj1 = 0 ;
17164 char *kwnames[] = {
17165 (char *) "self",(char *) "c", NULL
17166 };
17167
17168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17169 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17170 {
17171 arg2 = &temp2;
17172 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17173 }
17174 {
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 (arg1)->SetFaceColour((wxColour const &)*arg2);
17177
17178 wxPyEndAllowThreads(__tstate);
17179 if (PyErr_Occurred()) SWIG_fail;
17180 }
17181 Py_INCREF(Py_None); resultobj = Py_None;
17182 return resultobj;
17183 fail:
17184 return NULL;
17185 }
17186
17187
17188 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj;
17190 wxEffects *arg1 = (wxEffects *) 0 ;
17191 wxColour *arg2 = 0 ;
17192 wxColour temp2 ;
17193 PyObject * obj0 = 0 ;
17194 PyObject * obj1 = 0 ;
17195 char *kwnames[] = {
17196 (char *) "self",(char *) "c", NULL
17197 };
17198
17199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17200 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17201 {
17202 arg2 = &temp2;
17203 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17204 }
17205 {
17206 PyThreadState* __tstate = wxPyBeginAllowThreads();
17207 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17208
17209 wxPyEndAllowThreads(__tstate);
17210 if (PyErr_Occurred()) SWIG_fail;
17211 }
17212 Py_INCREF(Py_None); resultobj = Py_None;
17213 return resultobj;
17214 fail:
17215 return NULL;
17216 }
17217
17218
17219 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17220 PyObject *resultobj;
17221 wxEffects *arg1 = (wxEffects *) 0 ;
17222 wxColour *arg2 = 0 ;
17223 wxColour temp2 ;
17224 PyObject * obj0 = 0 ;
17225 PyObject * obj1 = 0 ;
17226 char *kwnames[] = {
17227 (char *) "self",(char *) "c", NULL
17228 };
17229
17230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17231 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17232 {
17233 arg2 = &temp2;
17234 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17235 }
17236 {
17237 PyThreadState* __tstate = wxPyBeginAllowThreads();
17238 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17239
17240 wxPyEndAllowThreads(__tstate);
17241 if (PyErr_Occurred()) SWIG_fail;
17242 }
17243 Py_INCREF(Py_None); resultobj = Py_None;
17244 return resultobj;
17245 fail:
17246 return NULL;
17247 }
17248
17249
17250 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
17251 PyObject *resultobj;
17252 wxEffects *arg1 = (wxEffects *) 0 ;
17253 wxColour *arg2 = 0 ;
17254 wxColour *arg3 = 0 ;
17255 wxColour *arg4 = 0 ;
17256 wxColour *arg5 = 0 ;
17257 wxColour *arg6 = 0 ;
17258 wxColour temp2 ;
17259 wxColour temp3 ;
17260 wxColour temp4 ;
17261 wxColour temp5 ;
17262 wxColour temp6 ;
17263 PyObject * obj0 = 0 ;
17264 PyObject * obj1 = 0 ;
17265 PyObject * obj2 = 0 ;
17266 PyObject * obj3 = 0 ;
17267 PyObject * obj4 = 0 ;
17268 PyObject * obj5 = 0 ;
17269 char *kwnames[] = {
17270 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
17271 };
17272
17273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
17274 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17275 {
17276 arg2 = &temp2;
17277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17278 }
17279 {
17280 arg3 = &temp3;
17281 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17282 }
17283 {
17284 arg4 = &temp4;
17285 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17286 }
17287 {
17288 arg5 = &temp5;
17289 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
17290 }
17291 {
17292 arg6 = &temp6;
17293 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
17294 }
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 Py_INCREF(Py_None); resultobj = Py_None;
17303 return resultobj;
17304 fail:
17305 return NULL;
17306 }
17307
17308
17309 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
17310 PyObject *resultobj;
17311 wxEffects *arg1 = (wxEffects *) 0 ;
17312 wxDC *arg2 = 0 ;
17313 wxRect *arg3 = 0 ;
17314 int arg4 = (int) 1 ;
17315 wxRect temp3 ;
17316 PyObject * obj0 = 0 ;
17317 PyObject * obj1 = 0 ;
17318 PyObject * obj2 = 0 ;
17319 PyObject * obj3 = 0 ;
17320 char *kwnames[] = {
17321 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
17322 };
17323
17324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17325 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17326 if ((SWIG_ConvertPtr(obj1,(void **) &arg2, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17327 if (arg2 == NULL) {
17328 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17329 }
17330 {
17331 arg3 = &temp3;
17332 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17333 }
17334 if (obj3) {
17335 {
17336 arg4 = (int) SWIG_PyObj_AsInt(obj3);
17337 if (PyErr_Occurred()) SWIG_fail;
17338 }
17339 }
17340 {
17341 PyThreadState* __tstate = wxPyBeginAllowThreads();
17342 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
17343
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 Py_INCREF(Py_None); resultobj = Py_None;
17348 return resultobj;
17349 fail:
17350 return NULL;
17351 }
17352
17353
17354 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj;
17356 wxEffects *arg1 = (wxEffects *) 0 ;
17357 wxRect *arg2 = 0 ;
17358 wxDC *arg3 = 0 ;
17359 wxBitmap *arg4 = 0 ;
17360 bool result;
17361 wxRect temp2 ;
17362 PyObject * obj0 = 0 ;
17363 PyObject * obj1 = 0 ;
17364 PyObject * obj2 = 0 ;
17365 PyObject * obj3 = 0 ;
17366 char *kwnames[] = {
17367 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
17368 };
17369
17370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17371 if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxEffects,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17372 {
17373 arg2 = &temp2;
17374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17375 }
17376 if ((SWIG_ConvertPtr(obj2,(void **) &arg3, SWIGTYPE_p_wxDC,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17377 if (arg3 == NULL) {
17378 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17379 }
17380 if ((SWIG_ConvertPtr(obj3,(void **) &arg4, SWIGTYPE_p_wxBitmap,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
17381 if (arg4 == NULL) {
17382 PyErr_SetString(PyExc_TypeError,"null reference"); SWIG_fail;
17383 }
17384 {
17385 PyThreadState* __tstate = wxPyBeginAllowThreads();
17386 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
17387
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 resultobj = SWIG_PyObj_FromBool((bool)result);
17392 return resultobj;
17393 fail:
17394 return NULL;
17395 }
17396
17397
17398 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
17399 PyObject *obj;
17400 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17401 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
17402 Py_INCREF(obj);
17403 return Py_BuildValue((char *)"");
17404 }
17405 static PyMethodDef SwigMethods[] = {
17406 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
17407 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
17408 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
17409 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
17410 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
17411 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
17412 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
17413 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
17414 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
17415 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
17416 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
17417 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
17418 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
17419 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
17420 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
17421 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
17422 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
17423 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
17424 { (char *)"Colour_InitFromName", (PyCFunction) _wrap_Colour_InitFromName, METH_VARARGS | METH_KEYWORDS },
17425 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
17426 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
17427 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
17428 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
17429 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
17430 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
17431 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
17432 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
17433 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
17434 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
17435 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
17436 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
17437 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
17438 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
17439 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
17440 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
17441 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
17442 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
17443 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
17444 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
17445 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
17446 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17447 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
17448 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
17449 { (char *)"new_PyPen", (PyCFunction) _wrap_new_PyPen, METH_VARARGS | METH_KEYWORDS },
17450 { (char *)"delete_PyPen", (PyCFunction) _wrap_delete_PyPen, METH_VARARGS | METH_KEYWORDS },
17451 { (char *)"PyPen_SetDashes", (PyCFunction) _wrap_PyPen_SetDashes, METH_VARARGS | METH_KEYWORDS },
17452 { (char *)"PyPen_swigregister", PyPen_swigregister, METH_VARARGS },
17453 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
17454 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
17455 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
17456 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
17457 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
17458 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
17459 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
17460 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
17461 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
17462 { (char *)"Brush_GetMacTheme", (PyCFunction) _wrap_Brush_GetMacTheme, METH_VARARGS | METH_KEYWORDS },
17463 { (char *)"Brush_SetMacTheme", (PyCFunction) _wrap_Brush_SetMacTheme, METH_VARARGS | METH_KEYWORDS },
17464 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
17465 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
17466 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
17467 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
17468 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
17469 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
17470 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
17471 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
17472 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
17473 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
17474 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
17475 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
17476 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
17477 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
17478 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
17479 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
17480 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
17481 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
17482 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
17483 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
17484 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
17485 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
17486 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
17487 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
17488 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
17489 { (char *)"new_MaskColour", (PyCFunction) _wrap_new_MaskColour, METH_VARARGS | METH_KEYWORDS },
17490 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
17491 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
17492 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
17493 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
17494 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
17495 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
17496 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
17497 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
17498 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
17499 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
17500 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
17501 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
17502 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
17503 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
17504 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
17505 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
17506 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
17507 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
17508 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
17509 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
17510 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
17511 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
17512 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
17513 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
17514 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
17515 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
17516 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
17517 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
17518 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
17519 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
17520 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
17521 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
17522 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
17523 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
17524 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
17525 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
17526 { (char *)"new_CursorFromBits", (PyCFunction) _wrap_new_CursorFromBits, METH_VARARGS | METH_KEYWORDS },
17527 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
17528 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
17529 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
17530 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
17531 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
17532 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
17533 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
17534 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
17535 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
17536 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
17537 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
17538 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
17539 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
17540 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
17541 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
17542 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
17543 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
17544 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
17545 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
17546 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
17547 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
17548 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
17549 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
17550 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
17551 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
17552 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
17553 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
17554 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
17555 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17556 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
17557 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
17558 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
17559 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
17560 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
17561 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
17562 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
17563 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
17564 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
17565 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
17566 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
17567 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
17568 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
17569 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17570 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17571 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
17572 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
17573 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17574 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
17575 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
17576 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17577 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17578 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
17579 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17580 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17581 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
17582 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
17583 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17584 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17585 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
17586 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17587 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17588 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17589 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
17590 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
17591 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
17592 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
17593 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
17594 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
17595 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
17596 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
17597 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17598 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
17599 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
17600 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
17601 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
17602 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
17603 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
17604 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
17605 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
17606 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
17607 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
17608 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
17609 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
17610 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17611 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
17612 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
17613 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
17614 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
17615 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
17616 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
17617 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
17618 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
17619 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
17620 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
17621 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
17622 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
17623 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
17624 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
17625 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
17626 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
17627 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
17628 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
17629 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
17630 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
17631 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
17632 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
17633 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
17634 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
17635 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
17636 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17637 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
17638 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
17639 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17640 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
17641 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
17642 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
17643 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
17644 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
17645 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
17646 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
17647 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
17648 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
17649 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
17650 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
17651 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
17652 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
17653 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17654 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
17655 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17656 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
17657 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
17658 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17659 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
17660 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
17661 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
17662 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
17663 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
17664 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
17665 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
17666 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
17667 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
17668 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
17669 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
17670 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
17671 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
17672 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
17673 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
17674 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
17675 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
17676 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
17677 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
17678 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
17679 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
17680 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
17681 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
17682 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
17683 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
17684 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
17685 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
17686 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
17687 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
17688 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17689 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
17690 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
17691 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
17692 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
17693 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
17694 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
17695 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
17696 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
17697 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17698 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
17699 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
17700 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
17701 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
17702 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
17703 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
17704 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
17705 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
17706 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
17707 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
17708 { (char *)"DC_FloodFillXY", (PyCFunction) _wrap_DC_FloodFillXY, METH_VARARGS | METH_KEYWORDS },
17709 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
17710 { (char *)"DC_GetPixelXY", (PyCFunction) _wrap_DC_GetPixelXY, METH_VARARGS | METH_KEYWORDS },
17711 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
17712 { (char *)"DC_DrawLineXY", (PyCFunction) _wrap_DC_DrawLineXY, METH_VARARGS | METH_KEYWORDS },
17713 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
17714 { (char *)"DC_CrossHairXY", (PyCFunction) _wrap_DC_CrossHairXY, METH_VARARGS | METH_KEYWORDS },
17715 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
17716 { (char *)"DC_DrawArcXY", (PyCFunction) _wrap_DC_DrawArcXY, METH_VARARGS | METH_KEYWORDS },
17717 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
17718 { (char *)"DC_DrawCheckMarkXY", (PyCFunction) _wrap_DC_DrawCheckMarkXY, METH_VARARGS | METH_KEYWORDS },
17719 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
17720 { (char *)"DC_DrawEllipticArcXY", (PyCFunction) _wrap_DC_DrawEllipticArcXY, METH_VARARGS | METH_KEYWORDS },
17721 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
17722 { (char *)"DC_DrawPointXY", (PyCFunction) _wrap_DC_DrawPointXY, METH_VARARGS | METH_KEYWORDS },
17723 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
17724 { (char *)"DC_DrawRectangleXY", (PyCFunction) _wrap_DC_DrawRectangleXY, METH_VARARGS | METH_KEYWORDS },
17725 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
17726 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
17727 { (char *)"DC_DrawRoundedRectangleXY", (PyCFunction) _wrap_DC_DrawRoundedRectangleXY, METH_VARARGS | METH_KEYWORDS },
17728 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
17729 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
17730 { (char *)"DC_DrawCircleXY", (PyCFunction) _wrap_DC_DrawCircleXY, METH_VARARGS | METH_KEYWORDS },
17731 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
17732 { (char *)"DC_DrawEllipseXY", (PyCFunction) _wrap_DC_DrawEllipseXY, METH_VARARGS | METH_KEYWORDS },
17733 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
17734 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
17735 { (char *)"DC_DrawIconXY", (PyCFunction) _wrap_DC_DrawIconXY, METH_VARARGS | METH_KEYWORDS },
17736 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
17737 { (char *)"DC_DrawBitmapXY", (PyCFunction) _wrap_DC_DrawBitmapXY, METH_VARARGS | METH_KEYWORDS },
17738 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
17739 { (char *)"DC_DrawTextXY", (PyCFunction) _wrap_DC_DrawTextXY, METH_VARARGS | METH_KEYWORDS },
17740 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
17741 { (char *)"DC_DrawRotatedTextXY", (PyCFunction) _wrap_DC_DrawRotatedTextXY, METH_VARARGS | METH_KEYWORDS },
17742 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
17743 { (char *)"DC_BlitXY", (PyCFunction) _wrap_DC_BlitXY, METH_VARARGS | METH_KEYWORDS },
17744 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
17745 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
17746 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
17747 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
17748 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
17749 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
17750 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
17751 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
17752 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
17753 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
17754 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
17755 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
17756 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
17757 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
17758 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
17759 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17760 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
17761 { (char *)"DC_SetClippingRegionXY", (PyCFunction) _wrap_DC_SetClippingRegionXY, METH_VARARGS | METH_KEYWORDS },
17762 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
17763 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
17764 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
17765 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
17766 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
17767 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
17768 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
17769 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
17770 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
17771 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
17772 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
17773 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
17774 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
17775 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
17776 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
17777 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
17778 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
17779 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
17780 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
17781 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
17782 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
17783 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
17784 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
17785 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
17786 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
17787 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
17788 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
17789 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
17790 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
17791 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
17792 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
17793 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
17794 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
17795 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
17796 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
17797 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
17798 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
17799 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
17800 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
17801 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
17802 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
17803 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17804 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
17805 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17806 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
17807 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
17808 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17809 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
17810 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
17811 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
17812 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17813 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
17814 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
17815 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
17816 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
17817 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17818 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
17819 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
17820 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
17821 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
17822 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
17823 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
17824 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
17825 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
17826 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
17827 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
17828 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
17829 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
17830 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
17831 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
17832 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
17833 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
17834 { (char *)"new_BufferedDC", (PyCFunction) _wrap_new_BufferedDC, METH_VARARGS | METH_KEYWORDS },
17835 { (char *)"new_BufferedDCInternalBuffer", (PyCFunction) _wrap_new_BufferedDCInternalBuffer, METH_VARARGS | METH_KEYWORDS },
17836 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
17837 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
17838 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
17839 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
17840 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
17841 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
17842 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17843 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
17844 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
17845 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
17846 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
17847 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
17848 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
17849 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
17850 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
17851 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
17852 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
17853 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
17854 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
17855 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
17856 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
17857 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
17858 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
17859 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
17860 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
17861 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
17862 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
17863 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
17864 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
17865 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
17866 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
17867 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
17868 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
17869 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
17870 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
17871 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
17872 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
17873 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
17874 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
17875 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
17876 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
17877 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
17878 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
17879 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
17880 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
17881 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
17882 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
17883 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
17884 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
17885 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
17886 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
17887 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17888 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
17889 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
17890 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
17891 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
17892 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
17893 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
17894 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
17895 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
17896 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
17897 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
17898 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
17899 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
17900 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17901 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
17902 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
17903 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17904 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17905 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
17906 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
17907 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
17908 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
17909 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
17910 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
17911 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
17912 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
17913 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
17914 { NULL, NULL }
17915 };
17916
17917
17918 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
17919
17920 static void *_p_wxControlTo_p_wxWindow(void *x) {
17921 return (void *)((wxWindow *) ((wxControl *) x));
17922 }
17923 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
17924 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
17925 }
17926 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
17927 return (void *)((wxWindow *) ((wxMenuBar *) x));
17928 }
17929 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
17930 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
17931 }
17932 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
17933 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
17934 }
17935 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
17936 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
17937 }
17938 static void *_p_wxPenTo_p_wxObject(void *x) {
17939 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
17940 }
17941 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
17942 return (void *)((wxObject *) ((wxRegionIterator *) x));
17943 }
17944 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
17945 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
17946 }
17947 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
17948 return (void *)((wxObject *) ((wxSizerItem *) x));
17949 }
17950 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
17951 return (void *)((wxObject *) ((wxColourDatabase *) x));
17952 }
17953 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
17954 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
17955 }
17956 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
17957 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
17958 }
17959 static void *_p_wxIconTo_p_wxObject(void *x) {
17960 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
17961 }
17962 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
17963 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
17964 }
17965 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
17966 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
17967 }
17968 static void *_p_wxSizerTo_p_wxObject(void *x) {
17969 return (void *)((wxObject *) ((wxSizer *) x));
17970 }
17971 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
17972 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
17973 }
17974 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
17975 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
17976 }
17977 static void *_p_wxPenListTo_p_wxObject(void *x) {
17978 return (void *)((wxObject *) ((wxPenList *) x));
17979 }
17980 static void *_p_wxEventTo_p_wxObject(void *x) {
17981 return (void *)((wxObject *) ((wxEvent *) x));
17982 }
17983 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
17984 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
17985 }
17986 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
17987 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
17988 }
17989 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
17990 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
17991 }
17992 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
17993 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
17994 }
17995 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
17996 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
17997 }
17998 static void *_p_wxDCTo_p_wxObject(void *x) {
17999 return (void *)((wxObject *) ((wxDC *) x));
18000 }
18001 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18002 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18003 }
18004 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18005 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18006 }
18007 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18008 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18009 }
18010 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18011 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18012 }
18013 static void *_p_wxControlTo_p_wxObject(void *x) {
18014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18015 }
18016 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18017 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18018 }
18019 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18020 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18021 }
18022 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18023 return (void *)((wxObject *) ((wxFSFile *) x));
18024 }
18025 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18026 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18027 }
18028 static void *_p_wxRegionTo_p_wxObject(void *x) {
18029 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18030 }
18031 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18032 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18033 }
18034 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18035 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18036 }
18037 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18038 return (void *)((wxObject *) ((wxGDIObject *) x));
18039 }
18040 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18041 return (void *)((wxObject *) ((wxEffects *) x));
18042 }
18043 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18044 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18045 }
18046 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18048 }
18049 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18050 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18051 }
18052 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18053 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18054 }
18055 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18056 return (void *)((wxObject *) ((wxMenuItem *) x));
18057 }
18058 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18059 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18060 }
18061 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18062 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18063 }
18064 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18065 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18066 }
18067 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18068 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18069 }
18070 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18071 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18072 }
18073 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18074 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18075 }
18076 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18077 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18078 }
18079 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18080 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18081 }
18082 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18083 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18084 }
18085 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18086 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18087 }
18088 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18089 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18090 }
18091 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18092 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18093 }
18094 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18095 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18096 }
18097 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18098 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18099 }
18100 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18101 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18102 }
18103 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18104 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18105 }
18106 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18107 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18108 }
18109 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18110 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18111 }
18112 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18113 return (void *)((wxObject *) ((wxImageHandler *) x));
18114 }
18115 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18116 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18117 }
18118 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18119 return (void *)((wxObject *) ((wxEvtHandler *) x));
18120 }
18121 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18122 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18123 }
18124 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18125 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18126 }
18127 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18128 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18129 }
18130 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18131 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18132 }
18133 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18134 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18135 }
18136 static void *_p_wxImageTo_p_wxObject(void *x) {
18137 return (void *)((wxObject *) ((wxImage *) x));
18138 }
18139 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18140 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18141 }
18142 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18143 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18144 }
18145 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18146 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18147 }
18148 static void *_p_wxImageListTo_p_wxObject(void *x) {
18149 return (void *)((wxObject *) ((wxImageList *) x));
18150 }
18151 static void *_p_wxCursorTo_p_wxObject(void *x) {
18152 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18153 }
18154 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18155 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18156 }
18157 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18158 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18159 }
18160 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18161 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18162 }
18163 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18164 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18165 }
18166 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18167 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18168 }
18169 static void *_p_wxWindowTo_p_wxObject(void *x) {
18170 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18171 }
18172 static void *_p_wxMenuTo_p_wxObject(void *x) {
18173 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18174 }
18175 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18176 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18177 }
18178 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18179 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18180 }
18181 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18182 return (void *)((wxObject *) ((wxBrushList *) x));
18183 }
18184 static void *_p_wxPyPenTo_p_wxObject(void *x) {
18185 return (void *)((wxObject *) (wxGDIObject *)(wxPen *) ((wxPyPen *) x));
18186 }
18187 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18188 return (void *)((wxObject *) ((wxFileSystem *) x));
18189 }
18190 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18191 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18192 }
18193 static void *_p_wxMaskTo_p_wxObject(void *x) {
18194 return (void *)((wxObject *) ((wxMask *) x));
18195 }
18196 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18197 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18198 }
18199 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18200 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18201 }
18202 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18203 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18204 }
18205 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18206 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18207 }
18208 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18209 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18210 }
18211 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18212 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18213 }
18214 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18215 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18216 }
18217 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18218 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18219 }
18220 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18221 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18222 }
18223 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18224 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18225 }
18226 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
18227 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
18228 }
18229 static void *_p_wxFontTo_p_wxObject(void *x) {
18230 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
18231 }
18232 static void *_p_wxBrushTo_p_wxObject(void *x) {
18233 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
18234 }
18235 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
18236 return (void *)((wxObject *) ((wxMetaFile *) x));
18237 }
18238 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
18239 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
18240 }
18241 static void *_p_wxColourTo_p_wxObject(void *x) {
18242 return (void *)((wxObject *) ((wxColour *) x));
18243 }
18244 static void *_p_wxFontListTo_p_wxObject(void *x) {
18245 return (void *)((wxObject *) ((wxFontList *) x));
18246 }
18247 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
18248 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
18249 }
18250 static void *_p_wxValidatorTo_p_wxObject(void *x) {
18251 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
18252 }
18253 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
18254 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
18255 }
18256 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
18257 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
18258 }
18259 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
18260 return (void *)((wxDC *) ((wxScreenDC *) x));
18261 }
18262 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
18263 return (void *)((wxDC *) ((wxMirrorDC *) x));
18264 }
18265 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
18266 return (void *)((wxDC *) ((wxMemoryDC *) x));
18267 }
18268 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
18269 return (void *)((wxDC *) ((wxWindowDC *) x));
18270 }
18271 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
18272 return (void *)((wxDC *) ((wxMetaFileDC *) x));
18273 }
18274 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
18275 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18276 }
18277 static void *_p_wxClientDCTo_p_wxDC(void *x) {
18278 return (void *)((wxDC *) ((wxClientDC *) x));
18279 }
18280 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
18281 return (void *)((wxDC *) ((wxPaintDC *) x));
18282 }
18283 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
18284 return (void *)((wxDC *) ((wxPostScriptDC *) x));
18285 }
18286 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
18287 return (void *)((wxDC *) ((wxPrinterDC *) x));
18288 }
18289 static void *_p_wxPyPenTo_p_wxGDIObject(void *x) {
18290 return (void *)((wxGDIObject *) (wxPen *) ((wxPyPen *) x));
18291 }
18292 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
18293 return (void *)((wxGDIObject *) ((wxIcon *) x));
18294 }
18295 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
18296 return (void *)((wxGDIObject *) ((wxPalette *) x));
18297 }
18298 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
18299 return (void *)((wxGDIObject *) ((wxPen *) x));
18300 }
18301 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
18302 return (void *)((wxGDIObject *) ((wxFont *) x));
18303 }
18304 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
18305 return (void *)((wxGDIObject *) ((wxCursor *) x));
18306 }
18307 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
18308 return (void *)((wxGDIObject *) ((wxBitmap *) x));
18309 }
18310 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
18311 return (void *)((wxGDIObject *) ((wxRegion *) x));
18312 }
18313 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
18314 return (void *)((wxGDIObject *) ((wxBrush *) x));
18315 }
18316 static void *_p_wxPyPenTo_p_wxPen(void *x) {
18317 return (void *)((wxPen *) ((wxPyPen *) x));
18318 }
18319 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0},{"_p_wxPostScriptDC"},{0}};
18320 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0},{"_p_wxBrush"},{0}};
18321 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0},{"_p_wxColour"},{0}};
18322 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}};
18323 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0},{"_p_wxMirrorDC"},{0}};
18324 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "byte *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18325 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0},{"_p_wxPyFontEnumerator"},{0}};
18326 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0},{"_p_char"},{0}};
18327 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0},{"_p_wxIconLocation"},{0}};
18328 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0},{"_p_wxImage"},{0}};
18329 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0},{"_p_wxMetaFileDC"},{0}};
18330 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0},{"_p_wxMask"},{0}};
18331 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0},{"_p_wxFont"},{0}};
18332 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}};
18333 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0},{"_p_wxSize"},{0}};
18334 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0},{"_p_double"},{0}};
18335 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}};
18336 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0},{"_p_wxFontMapper"},{0}};
18337 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0},{"_p_wxEffects"},{0}};
18338 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0},{"_p_wxNativeEncodingInfo"},{0}};
18339 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0},{"_p_wxPalette"},{0}};
18340 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0},{"_p_wxBitmap"},{0}};
18341 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}};
18342 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0},{"_p_wxRegionIterator"},{0}};
18343 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0},{"_p_wxRect"},{0}};
18344 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0},{"_p_wxString"},{0}};
18345 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0},{"_p_wxPrinterDC"},{0}};
18346 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0},{"_p_wxIconBundle"},{0}};
18347 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0},{"_p_wxPoint"},{0}};
18348 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0},{"_p_wxDash"},{0}};
18349 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0},{"_p_wxScreenDC"},{0}};
18350 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0},{"_p_wxCursor"},{0}};
18351 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0},{"_p_wxClientDC"},{0}};
18352 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0},{"_p_wxBufferedDC"},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC},{0}};
18353 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0},{"_p_wxImageList"},{0}};
18354 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0},{"_p_unsigned_char"},{"_p_byte"},{0}};
18355 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}};
18356 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0},{"_p_wxIcon"},{0}};
18357 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0},{"_p_wxLocale"},{0}};
18358 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0},{"_p_wxRegion"},{0}};
18359 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0},{"_p_wxLanguageInfo"},{0}};
18360 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0},{"_p_wxConfigBase"},{0}};
18361 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0},{"_p_wxWindowDC"},{0}};
18362 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0},{"_p_wxPrintData"},{0}};
18363 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0},{"_p_wxBrushList"},{0}};
18364 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0},{"_p_wxFontList"},{0}};
18365 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0},{"_p_wxPyPen", _p_wxPyPenTo_p_wxPen},{"_p_wxPen"},{0}};
18366 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0},{"_p_wxBufferedPaintDC"},{0}};
18367 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0},{"_p_wxPaintDC"},{0}};
18368 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0},{"_p_wxPenList"},{0}};
18369 static swig_type_info _swigt__p_wxPyPen[] = {{"_p_wxPyPen", 0, "wxPyPen *", 0},{"_p_wxPyPen"},{0}};
18370 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0},{"_p_int"},{0}};
18371 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0},{"_p_wxMetaFile"},{0}};
18372 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0},{"_p_wxNativeFontInfo"},{0}};
18373 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0},{"_p_wxEncodingConverter"},{0}};
18374 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0},{"_p_wxColourDatabase"},{0}};
18375
18376 static swig_type_info *swig_types_initial[] = {
18377 _swigt__p_wxPostScriptDC,
18378 _swigt__p_wxBrush,
18379 _swigt__p_wxColour,
18380 _swigt__p_wxDC,
18381 _swigt__p_wxMirrorDC,
18382 _swigt__p_byte,
18383 _swigt__p_wxPyFontEnumerator,
18384 _swigt__p_char,
18385 _swigt__p_wxIconLocation,
18386 _swigt__p_wxImage,
18387 _swigt__p_wxMetaFileDC,
18388 _swigt__p_wxMask,
18389 _swigt__p_wxFont,
18390 _swigt__p_wxWindow,
18391 _swigt__p_wxSize,
18392 _swigt__p_double,
18393 _swigt__p_wxMemoryDC,
18394 _swigt__p_wxFontMapper,
18395 _swigt__p_wxEffects,
18396 _swigt__p_wxNativeEncodingInfo,
18397 _swigt__p_wxPalette,
18398 _swigt__p_wxBitmap,
18399 _swigt__p_wxObject,
18400 _swigt__p_wxRegionIterator,
18401 _swigt__p_wxRect,
18402 _swigt__p_wxString,
18403 _swigt__p_wxPrinterDC,
18404 _swigt__p_wxIconBundle,
18405 _swigt__p_wxPoint,
18406 _swigt__p_wxDash,
18407 _swigt__p_wxScreenDC,
18408 _swigt__p_wxCursor,
18409 _swigt__p_wxClientDC,
18410 _swigt__p_wxBufferedDC,
18411 _swigt__p_wxImageList,
18412 _swigt__p_unsigned_char,
18413 _swigt__p_wxGDIObject,
18414 _swigt__p_wxIcon,
18415 _swigt__p_wxLocale,
18416 _swigt__p_wxRegion,
18417 _swigt__p_wxLanguageInfo,
18418 _swigt__p_wxConfigBase,
18419 _swigt__p_wxWindowDC,
18420 _swigt__p_wxPrintData,
18421 _swigt__p_wxBrushList,
18422 _swigt__p_wxFontList,
18423 _swigt__p_wxPen,
18424 _swigt__p_wxBufferedPaintDC,
18425 _swigt__p_wxPaintDC,
18426 _swigt__p_wxPenList,
18427 _swigt__p_wxPyPen,
18428 _swigt__p_int,
18429 _swigt__p_wxMetaFile,
18430 _swigt__p_wxNativeFontInfo,
18431 _swigt__p_wxEncodingConverter,
18432 _swigt__p_wxColourDatabase,
18433 0
18434 };
18435
18436
18437 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
18438
18439 static swig_const_info swig_const_table[] = {
18440 {0}};
18441
18442 #ifdef __cplusplus
18443 }
18444 #endif
18445
18446 #ifdef __cplusplus
18447 extern "C"
18448 #endif
18449 SWIGEXPORT(void) SWIG_init(void) {
18450 static PyObject *SWIG_globals = 0;
18451 static int typeinit = 0;
18452 PyObject *m, *d;
18453 int i;
18454 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
18455 m = Py_InitModule((char *) SWIG_name, SwigMethods);
18456 d = PyModule_GetDict(m);
18457
18458 if (!typeinit) {
18459 for (i = 0; swig_types_initial[i]; i++) {
18460 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
18461 }
18462 typeinit = 1;
18463 }
18464 SWIG_InstallConstants(d,swig_const_table);
18465
18466 PyDict_SetItemString(d,"OutRegion", SWIG_PyObj_FromInt((int)wxOutRegion));
18467 PyDict_SetItemString(d,"PartRegion", SWIG_PyObj_FromInt((int)wxPartRegion));
18468 PyDict_SetItemString(d,"InRegion", SWIG_PyObj_FromInt((int)wxInRegion));
18469 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DEFAULT));
18470 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_DECORATIVE));
18471 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_ROMAN));
18472 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SCRIPT));
18473 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_PyObj_FromInt((int)wxFONTFAMILY_SWISS));
18474 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MODERN));
18475 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_PyObj_FromInt((int)wxFONTFAMILY_TELETYPE));
18476 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_PyObj_FromInt((int)wxFONTFAMILY_MAX));
18477 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_PyObj_FromInt((int)wxFONTFAMILY_UNKNOWN));
18478 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_PyObj_FromInt((int)wxFONTSTYLE_NORMAL));
18479 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_PyObj_FromInt((int)wxFONTSTYLE_ITALIC));
18480 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_PyObj_FromInt((int)wxFONTSTYLE_SLANT));
18481 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_PyObj_FromInt((int)wxFONTSTYLE_MAX));
18482 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_NORMAL));
18483 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_LIGHT));
18484 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_BOLD));
18485 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_PyObj_FromInt((int)wxFONTWEIGHT_MAX));
18486 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTFLAG_DEFAULT));
18487 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_PyObj_FromInt((int)wxFONTFLAG_ITALIC));
18488 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_PyObj_FromInt((int)wxFONTFLAG_SLANT));
18489 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_PyObj_FromInt((int)wxFONTFLAG_LIGHT));
18490 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_PyObj_FromInt((int)wxFONTFLAG_BOLD));
18491 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_ANTIALIASED));
18492 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_PyObj_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
18493 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_PyObj_FromInt((int)wxFONTFLAG_UNDERLINED));
18494 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_PyObj_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
18495 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_PyObj_FromInt((int)wxFONTFLAG_MASK));
18496 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_PyObj_FromInt((int)wxFONTENCODING_SYSTEM));
18497 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_PyObj_FromInt((int)wxFONTENCODING_DEFAULT));
18498 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_1));
18499 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_2));
18500 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_3));
18501 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_4));
18502 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_5));
18503 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_6));
18504 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_7));
18505 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_8));
18506 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_9));
18507 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_10));
18508 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_11));
18509 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_12));
18510 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_13));
18511 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_14));
18512 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_15));
18513 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_ISO8859_MAX));
18514 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_PyObj_FromInt((int)wxFONTENCODING_KOI8));
18515 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_PyObj_FromInt((int)wxFONTENCODING_ALTERNATIVE));
18516 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_BULGARIAN));
18517 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP437));
18518 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP850));
18519 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP852));
18520 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP855));
18521 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP866));
18522 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP874));
18523 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP932));
18524 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP936));
18525 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP949));
18526 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP950));
18527 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1250));
18528 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1251));
18529 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1252));
18530 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1253));
18531 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1254));
18532 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1255));
18533 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1256));
18534 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP1257));
18535 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_CP12_MAX));
18536 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF7));
18537 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF8));
18538 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_PyObj_FromInt((int)wxFONTENCODING_EUC_JP));
18539 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16BE));
18540 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16LE));
18541 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32BE));
18542 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32LE));
18543 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMAN));
18544 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACJAPANESE));
18545 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
18546 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKOREAN));
18547 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABIC));
18548 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACHEBREW));
18549 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGREEK));
18550 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCYRILLIC));
18551 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
18552 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGURMUKHI));
18553 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGUJARATI));
18554 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACORIYA));
18555 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBENGALI));
18556 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTAMIL));
18557 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTELUGU));
18558 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKANNADA));
18559 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMALAJALAM));
18560 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSINHALESE));
18561 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACBURMESE));
18562 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKHMER));
18563 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTHAI));
18564 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACLAOTIAN));
18565 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGEORGIAN));
18566 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARMENIAN));
18567 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
18568 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTIBETAN));
18569 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
18570 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACETHIOPIC));
18571 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
18572 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
18573 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACARABICEXT));
18574 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACSYMBOL));
18575 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACDINGBATS));
18576 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACTURKISH));
18577 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCROATIAN));
18578 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACICELANDIC));
18579 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACROMANIAN));
18580 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACCELTIC));
18581 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACGAELIC));
18582 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACKEYBOARD));
18583 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMIN));
18584 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MACMAX));
18585 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_PyObj_FromInt((int)wxFONTENCODING_MAX));
18586 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF16));
18587 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_PyObj_FromInt((int)wxFONTENCODING_UTF32));
18588 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_PyObj_FromInt((int)wxFONTENCODING_UNICODE));
18589 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_PyObj_FromInt((int)wxFONTENCODING_GB2312));
18590 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_PyObj_FromInt((int)wxFONTENCODING_BIG5));
18591 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_PyObj_FromInt((int)wxFONTENCODING_SHIFT_JIS));
18592
18593 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
18594
18595 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_PyObj_FromInt((int)wxLANGUAGE_DEFAULT));
18596 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UNKNOWN));
18597 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ABKHAZIAN));
18598 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFAR));
18599 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_PyObj_FromInt((int)wxLANGUAGE_AFRIKAANS));
18600 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ALBANIAN));
18601 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AMHARIC));
18602 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC));
18603 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
18604 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
18605 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
18606 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
18607 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
18608 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
18609 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
18610 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
18611 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
18612 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
18613 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
18614 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
18615 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
18616 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
18617 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
18618 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_UAE));
18619 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
18620 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ARMENIAN));
18621 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ASSAMESE));
18622 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_PyObj_FromInt((int)wxLANGUAGE_AYMARA));
18623 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI));
18624 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
18625 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_AZERI_LATIN));
18626 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASHKIR));
18627 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BASQUE));
18628 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BELARUSIAN));
18629 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BENGALI));
18630 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BHUTANI));
18631 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_PyObj_FromInt((int)wxLANGUAGE_BIHARI));
18632 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_BISLAMA));
18633 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_PyObj_FromInt((int)wxLANGUAGE_BRETON));
18634 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_BULGARIAN));
18635 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_BURMESE));
18636 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CAMBODIAN));
18637 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CATALAN));
18638 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE));
18639 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
18640 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
18641 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
18642 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
18643 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
18644 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
18645 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CORSICAN));
18646 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_CROATIAN));
18647 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_PyObj_FromInt((int)wxLANGUAGE_CZECH));
18648 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DANISH));
18649 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH));
18650 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
18651 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH));
18652 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_UK));
18653 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_US));
18654 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
18655 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
18656 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
18657 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
18658 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
18659 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
18660 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
18661 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
18662 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
18663 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
18664 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
18665 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
18666 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_PyObj_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
18667 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESPERANTO));
18668 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ESTONIAN));
18669 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_FAEROESE));
18670 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FARSI));
18671 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_PyObj_FromInt((int)wxLANGUAGE_FIJI));
18672 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FINNISH));
18673 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH));
18674 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
18675 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
18676 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
18677 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
18678 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
18679 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_FRISIAN));
18680 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GALICIAN));
18681 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GEORGIAN));
18682 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN));
18683 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
18684 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
18685 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
18686 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
18687 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
18688 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREEK));
18689 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_GREENLANDIC));
18690 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUARANI));
18691 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_GUJARATI));
18692 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_HAUSA));
18693 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_PyObj_FromInt((int)wxLANGUAGE_HEBREW));
18694 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_HINDI));
18695 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_HUNGARIAN));
18696 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_ICELANDIC));
18697 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_INDONESIAN));
18698 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUA));
18699 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_PyObj_FromInt((int)wxLANGUAGE_INTERLINGUE));
18700 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUKTITUT));
18701 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_INUPIAK));
18702 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_IRISH));
18703 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN));
18704 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_PyObj_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
18705 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAPANESE));
18706 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_JAVANESE));
18707 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KANNADA));
18708 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI));
18709 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
18710 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KAZAKH));
18711 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_KERNEWEK));
18712 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_PyObj_FromInt((int)wxLANGUAGE_KINYARWANDA));
18713 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRGHIZ));
18714 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KIRUNDI));
18715 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_PyObj_FromInt((int)wxLANGUAGE_KONKANI));
18716 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_KOREAN));
18717 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_KURDISH));
18718 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LAOTHIAN));
18719 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATIN));
18720 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LATVIAN));
18721 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_LINGALA));
18722 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_LITHUANIAN));
18723 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MACEDONIAN));
18724 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAGASY));
18725 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY));
18726 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAYALAM));
18727 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
18728 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
18729 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_MALTESE));
18730 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MANIPURI));
18731 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MAORI));
18732 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_MARATHI));
18733 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MOLDAVIAN));
18734 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_MONGOLIAN));
18735 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_PyObj_FromInt((int)wxLANGUAGE_NAURU));
18736 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI));
18737 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
18738 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
18739 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_PyObj_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
18740 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_OCCITAN));
18741 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_ORIYA));
18742 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_PyObj_FromInt((int)wxLANGUAGE_OROMO));
18743 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_PyObj_FromInt((int)wxLANGUAGE_PASHTO));
18744 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_POLISH));
18745 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE));
18746 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
18747 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_PyObj_FromInt((int)wxLANGUAGE_PUNJABI));
18748 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_QUECHUA));
18749 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
18750 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_ROMANIAN));
18751 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN));
18752 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_PyObj_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
18753 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SAMOAN));
18754 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANGHO));
18755 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_PyObj_FromInt((int)wxLANGUAGE_SANSKRIT));
18756 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
18757 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN));
18758 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
18759 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
18760 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
18761 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SESOTHO));
18762 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SETSWANA));
18763 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SHONA));
18764 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINDHI));
18765 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SINHALESE));
18766 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SISWATI));
18767 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVAK));
18768 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SLOVENIAN));
18769 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SOMALI));
18770 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH));
18771 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
18772 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
18773 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
18774 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
18775 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
18776 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
18777 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
18778 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
18779 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
18780 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
18781 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
18782 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
18783 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
18784 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
18785 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
18786 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PERU));
18787 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
18788 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
18789 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_US));
18790 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_PyObj_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
18791 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_SUNDANESE));
18792 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWAHILI));
18793 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH));
18794 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_PyObj_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
18795 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAGALOG));
18796 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAJIK));
18797 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_PyObj_FromInt((int)wxLANGUAGE_TAMIL));
18798 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_PyObj_FromInt((int)wxLANGUAGE_TATAR));
18799 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_PyObj_FromInt((int)wxLANGUAGE_TELUGU));
18800 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_PyObj_FromInt((int)wxLANGUAGE_THAI));
18801 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIBETAN));
18802 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TIGRINYA));
18803 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TONGA));
18804 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_PyObj_FromInt((int)wxLANGUAGE_TSONGA));
18805 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKISH));
18806 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_PyObj_FromInt((int)wxLANGUAGE_TURKMEN));
18807 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_PyObj_FromInt((int)wxLANGUAGE_TWI));
18808 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_PyObj_FromInt((int)wxLANGUAGE_UIGHUR));
18809 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UKRAINIAN));
18810 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU));
18811 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_INDIA));
18812 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_PyObj_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
18813 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK));
18814 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
18815 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_PyObj_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
18816 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_PyObj_FromInt((int)wxLANGUAGE_VIETNAMESE));
18817 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_PyObj_FromInt((int)wxLANGUAGE_VOLAPUK));
18818 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_PyObj_FromInt((int)wxLANGUAGE_WELSH));
18819 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_PyObj_FromInt((int)wxLANGUAGE_WOLOF));
18820 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_PyObj_FromInt((int)wxLANGUAGE_XHOSA));
18821 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_PyObj_FromInt((int)wxLANGUAGE_YIDDISH));
18822 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_PyObj_FromInt((int)wxLANGUAGE_YORUBA));
18823 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZHUANG));
18824 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_PyObj_FromInt((int)wxLANGUAGE_ZULU));
18825 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_PyObj_FromInt((int)wxLANGUAGE_USER_DEFINED));
18826 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_NUMBER));
18827 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_DATE));
18828 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MONEY));
18829 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_PyObj_FromInt((int)wxLOCALE_CAT_MAX));
18830 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_PyObj_FromInt((int)wxLOCALE_THOUSANDS_SEP));
18831 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_PyObj_FromInt((int)wxLOCALE_DECIMAL_POINT));
18832 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_PyObj_FromInt((int)wxLOCALE_LOAD_DEFAULT));
18833 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_PyObj_FromInt((int)wxLOCALE_CONV_ENCODING));
18834 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_PyObj_FromInt((int)wxCONVERT_STRICT));
18835 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_PyObj_FromInt((int)wxCONVERT_SUBSTITUTE));
18836 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_PyObj_FromInt((int)wxPLATFORM_CURRENT));
18837 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_PyObj_FromInt((int)wxPLATFORM_UNIX));
18838 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_PyObj_FromInt((int)wxPLATFORM_WINDOWS));
18839 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_PyObj_FromInt((int)wxPLATFORM_OS2));
18840 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_PyObj_FromInt((int)wxPLATFORM_MAC));
18841 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
18842 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
18843 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
18844 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_PyObj_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
18845 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_NORMAL));
18846 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_SMALL));
18847 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_PyObj_FromInt((int)wxIMAGE_LIST_STATE));
18848 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
18849 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
18850 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
18851 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
18852 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
18853 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
18854 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
18855 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
18856 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
18857 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
18858 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
18859 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
18860 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
18861 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
18862 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
18863 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
18864 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
18865 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
18866 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
18867 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
18868 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
18869 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
18870 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
18871 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
18872 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
18873 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
18874 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
18875 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
18876 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
18877 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
18878 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
18879 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
18880 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
18881 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
18882 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
18883 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
18884 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
18885 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
18886 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
18887 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
18888 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
18889 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
18890 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
18891 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
18892 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
18893 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
18894 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
18895
18896 // Work around a chicken/egg problem in drawlist.cpp
18897 wxPyDrawList_SetAPIPtr();
18898
18899 }
18900