]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
doc tweaks
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_int swig_types[50]
260 #define SWIGTYPE_p_wxMetaFile swig_types[51]
261 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
262 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
263 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
264 static swig_type_info *swig_types[56];
265
266 /* -------- TYPES TABLE (END) -------- */
267
268
269 /*-----------------------------------------------
270 @(target):= _gdi_.so
271 ------------------------------------------------*/
272 #define SWIG_init init_gdi_
273
274 #define SWIG_name "_gdi_"
275
276 /* Auxiliar swig macros */
277
278 #ifdef __cplusplus
279 #define SWIGSTATICINLINE(a) static inline a
280 #define SWIGSTATIC(a) static a
281 #define swig_new_array(type, size) (new type[(size)])
282 #define swig_delete_array(cptr) delete[] cptr
283 #define swig_const_cast(type,a) const_cast<type>(a)
284 #define swig_static_cast(type,a) static_cast<type>(a)
285 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
286
287 #ifdef HAVE_NUMERIC_CAST
288 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
289 #else
290 #define swig_numeric_cast(type,a) static_cast<type>(a)
291 #endif
292
293 #else /* C case */
294
295 #define SWIGSTATICINLINE(a) static a
296 #define SWIGSTATIC(a) static a
297 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
298 #define swig_delete_array(cptr) free((char*)cptr)
299 #define swig_const_cast(type,a) (type)(a)
300 #define swig_static_cast(type,a) (type)(a)
301 #define swig_reinterpret_cast(type,a) (type)(a)
302 #define swig_numeric_cast(type,a) (type)(a)
303
304 #endif /* __cplusplus */
305
306
307 #define SWIG_FromSignedChar PyInt_FromLong
308 #define SWIG_FromUnsignedChar PyInt_FromLong
309 #define SWIG_FromShort PyInt_FromLong
310 #define SWIG_FromUnsignedShort PyInt_FromLong
311 #define SWIG_FromInt PyInt_FromLong
312 #define SWIG_FromLong PyInt_FromLong
313 #define SWIG_FromFloat PyFloat_FromDouble
314 #define SWIG_FromDouble PyFloat_FromDouble
315 #define SWIG_FromFloat PyFloat_FromDouble
316 #define SWIG_FromDouble PyFloat_FromDouble
317
318
319 #include "wx/wxPython/wxPython.h"
320 #include "wx/wxPython/pyclasses.h"
321
322
323 static const wxString wxPyEmptyString(wxEmptyString);
324
325 SWIGSTATICINLINE(bool)
326 SWIG_AsBool(PyObject *obj)
327 {
328 return PyObject_IsTrue(obj) ? true : false;
329 }
330
331
332 SWIGSTATICINLINE(int)
333 SWIG_CheckBool(PyObject* obj)
334 {
335 SWIG_AsBool(obj);
336 if (PyErr_Occurred()) {
337 PyErr_Clear();
338 return 0;
339 } else {
340 return 1;
341 }
342 }
343
344
345 #include <limits.h>
346
347
348 SWIGSTATICINLINE(unsigned long)
349 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
350 unsigned long max_value)
351 {
352 if (!PyErr_Occurred()) {
353 if (value > max_value) {
354 PyObject *err =
355 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
356 value, type, max_value);
357 PyErr_SetObject(PyExc_OverflowError, err);
358 Py_DECREF(err);
359 }
360 }
361 return value;
362 }
363
364
365 SWIGSTATICINLINE(long)
366 SWIG_AsLong(PyObject * obj)
367 {
368 if (PyNumber_Check(obj))
369 return PyInt_AsLong(obj);
370 else {
371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
372 obj->ob_type->tp_name);
373 PyErr_SetObject(PyExc_TypeError, errmsg);
374 Py_DECREF(errmsg);
375 return 0;
376 }
377 }
378
379
380 SWIGSTATICINLINE(unsigned long)
381 SWIG_AsUnsignedLong(PyObject * obj)
382 {
383 if (PyLong_Check(obj)) {
384 return PyLong_AsUnsignedLong(obj);
385 } else {
386 long i = SWIG_AsLong(obj);
387 if ( !PyErr_Occurred() && (i < 0)) {
388 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
389 }
390 return i;
391 }
392 }
393
394
395 SWIGSTATICINLINE(unsigned char)
396 SWIG_AsUnsignedChar(PyObject *obj)
397 {
398 return swig_numeric_cast(unsigned char,
399 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
400 "unsigned char", UCHAR_MAX));
401 }
402
403
404 SWIGSTATICINLINE(int)
405 SWIG_CheckUnsignedChar(PyObject* obj)
406 {
407 SWIG_AsUnsignedChar(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
414 }
415
416
417 SWIGSTATICINLINE(int)
418 SWIG_CheckUnsignedLong(PyObject* obj)
419 {
420 SWIG_AsUnsignedLong(obj);
421 if (PyErr_Occurred()) {
422 PyErr_Clear();
423 return 0;
424 } else {
425 return 1;
426 }
427 }
428
429 PyObject *wxColour_Get(wxColour *self){
430 PyObject* rv = PyTuple_New(3);
431 int red = -1;
432 int green = -1;
433 int blue = -1;
434 if (self->Ok()) {
435 red = self->Red();
436 green = self->Green();
437 blue = self->Blue();
438 }
439 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
440 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
441 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
442 return rv;
443 }
444 unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
448 SWIGSTATICINLINE(PyObject* )
449 SWIG_FromUnsignedLong(unsigned long value)
450 {
451 return (value > LONG_MAX) ?
452 PyLong_FromUnsignedLong(value)
453 : PyInt_FromLong(swig_numeric_cast(long,value));
454 }
455
456
457 SWIGSTATICINLINE(long)
458 SWIG_CheckLongInRange(long value, const char* type,
459 long min_value, long max_value)
460 {
461 if (!PyErr_Occurred()) {
462 if (value < min_value) {
463 PyObject *err =
464 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
465 value, type, min_value);
466
467 PyErr_SetObject(PyExc_OverflowError, err);
468 Py_DECREF(err);
469 } else if (value > max_value) {
470 PyObject *err =
471 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
472 value, type, max_value);
473 PyErr_SetObject(PyExc_OverflowError, err);
474 Py_DECREF(err);
475 }
476 }
477 return value;
478 }
479
480
481 #if INT_MAX != LONG_MAX
482 SWIGSTATICINLINE(int)
483 SWIG_AsInt(PyObject *obj)
484 {
485 return swig_numeric_cast(int,
486 SWIG_CheckLongInRange(SWIG_AsLong(obj),
487 "int", INT_MIN, INT_MAX));
488 }
489 #else
490 #define SWIG_AsInt SWIG_AsLong
491 #endif
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_CheckInt(PyObject* obj)
496 {
497 SWIG_AsInt(obj);
498 if (PyErr_Occurred()) {
499 PyErr_Clear();
500 return 0;
501 } else {
502 return 1;
503 }
504 }
505
506
507 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531 }
532
533 PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
536 bool blocked = wxPyBeginBlockThreads();
537 PyObject* retval = PyList_New(0);
538 for (int x=0; x<count; x++) {
539 PyObject* pyint = PyInt_FromLong(dashes[x]);
540 PyList_Append(retval, pyint);
541 Py_DECREF(pyint);
542 }
543 wxPyEndBlockThreads(blocked);
544 return retval;
545 }
546 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
547 bool blocked = wxPyBeginBlockThreads();
548 int size = PyList_Size(pyDashes);
549 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
550
551 // black magic warning! The array of wxDashes needs to exist as
552 // long as the pen does because wxPen does not copy the array. So
553 // stick a copy in a Python string object and attach it to _self,
554 // and then call SetDashes with a pointer to that array. Then
555 // when the Python pen object is destroyed the array will be
556 // cleaned up too.
557 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
558 PyObject_SetAttrString(_self, "_dashes", strDashes);
559
560 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
561 delete [] dashes;
562 Py_DECREF(strDashes);
563 wxPyEndBlockThreads(blocked);
564 }
565 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
567
568 #include <wx/image.h>
569
570 static char** ConvertListOfStrings(PyObject* listOfStrings) {
571 char** cArray = NULL;
572 int count;
573
574 if (!PyList_Check(listOfStrings)) {
575 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
576 return NULL;
577 }
578 count = PyList_Size(listOfStrings);
579 cArray = new char*[count];
580
581 for(int x=0; x<count; x++) {
582 // TODO: Need some validation and error checking here
583 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
584 }
585 return cArray;
586 }
587
588
589 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
590 char** cArray = NULL;
591 wxBitmap* bmp;
592
593 cArray = ConvertListOfStrings(listOfStrings);
594 if (! cArray)
595 return NULL;
596 bmp = new wxBitmap(cArray);
597 delete [] cArray;
598 return bmp;
599 }
600 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
601 char* buf;
602 int length;
603 PyString_AsStringAndSize(bits, &buf, &length);
604 return new wxBitmap(buf, width, height, depth);
605 }
606
607 SWIGSTATICINLINE(int)
608 SWIG_CheckLong(PyObject* obj)
609 {
610 SWIG_AsLong(obj);
611 if (PyErr_Occurred()) {
612 PyErr_Clear();
613 return 0;
614 } else {
615 return 1;
616 }
617 }
618
619 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
620 wxSize wxBitmap_GetSize(wxBitmap *self){
621 wxSize size(self->GetWidth(), self->GetHeight());
622 return size;
623 }
624 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
625 wxMask *mask = new wxMask(*self, colour);
626 self->SetMask(mask);
627 }
628 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
629 self->SetWidth(size.x);
630 self->SetHeight(size.y);
631 }
632 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
633 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
634 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
635 if ( !colour.Ok() )
636 return new wxMask(bitmap, *wxBLACK);
637 else
638 return new wxMask(bitmap, colour);
639 }
640
641 #include <wx/iconbndl.h>
642
643 wxIcon *new_wxIcon(wxBitmap const &bmp){
644 wxIcon* icon = new wxIcon();
645 icon->CopyFromBitmap(bmp);
646 return icon;
647 }
648 wxIcon *new_wxIcon(PyObject *listOfStrings){
649 char** cArray = NULL;
650 wxIcon* icon;
651
652 cArray = ConvertListOfStrings(listOfStrings);
653 if (! cArray)
654 return NULL;
655 icon = new wxIcon(cArray);
656 delete [] cArray;
657 return icon;
658 }
659 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
660 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
661
662 return new wxIconLocation(*filename, num);
663
664
665
666 }
667 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
668
669 self->SetIndex(num);
670
671
672
673 }
674 int wxIconLocation_GetIndex(wxIconLocation *self){
675
676 return self->GetIndex();
677
678
679
680 }
681 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
682 #ifdef __WXGTK__
683 wxCHECK_MSG(False, NULL,
684 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
685 #else
686 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
687 #endif
688 }
689 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
690
691
692 void wxRegionIterator_Next(wxRegionIterator *self){
693 (*self) ++;
694 }
695 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
696 return self->operator bool();
697 }
698
699 #include <wx/fontutil.h>
700 #include <wx/fontmap.h>
701 #include <wx/fontenum.h>
702
703 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
704 return self->ToString();
705 }
706
707 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
708 { wxPyRaiseNotImplemented(); return NULL; }
709
710 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
711 { wxPyRaiseNotImplemented(); return False; }
712
713 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
714 wxFontEncoding alt_enc;
715 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
716 return PyInt_FromLong(alt_enc);
717 else {
718 Py_INCREF(Py_None);
719 return Py_None;
720 }
721 }
722 wxFont *new_wxFont(wxString const &info){
723 wxNativeFontInfo nfi;
724 nfi.FromString(info);
725 return new wxFont(nfi);
726 }
727 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
728 return wxFont::New(pointSize, family, flags, face, encoding);
729 }
730 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
731 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
732
733 class wxPyFontEnumerator : public wxFontEnumerator {
734 public:
735 wxPyFontEnumerator() {}
736 ~wxPyFontEnumerator() {}
737
738 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
739 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
740
741 PYPRIVATE;
742 };
743
744 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
745 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
746
747
748 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
749 wxArrayString* arr = self->GetEncodings();
750 return wxArrayString2PyList_helper(*arr);
751 }
752 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
753 wxArrayString* arr = self->GetFacenames();
754 return wxArrayString2PyList_helper(*arr);
755 }
756
757
758 wxLocale *new_wxLocale(int language,int flags){
759 if (language == -1)
760 return new wxLocale();
761 else
762 return new wxLocale(language, flags);
763 }
764
765 #include "wx/wxPython/pydrawxxx.h"
766
767 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
768 wxColour col;
769 self->GetPixel(x, y, &col);
770 return col;
771 }
772 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
773 wxColour col;
774 self->GetPixel(pt, &col);
775 return col;
776 }
777
778 SWIGSTATICINLINE(double)
779 SWIG_AsDouble(PyObject *obj)
780 {
781 if (PyNumber_Check(obj))
782 return PyFloat_AsDouble(obj);
783 else {
784 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
785 obj->ob_type->tp_name);
786 PyErr_SetObject(PyExc_TypeError, errmsg);
787 Py_DECREF(errmsg);
788 return 0;
789 }
790 }
791
792
793 SWIGSTATICINLINE(int)
794 SWIG_CheckDouble(PyObject* obj)
795 {
796 SWIG_AsDouble(obj);
797 if (PyErr_Occurred()) {
798 PyErr_Clear();
799 return 0;
800 } else {
801 return 1;
802 }
803 }
804
805 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
806 wxRect rv;
807 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
808 return rv;
809 }
810 wxRect wxDC_GetClippingRect(wxDC *self){
811 wxRect rect;
812 self->GetClippingBox(rect);
813 return rect;
814 }
815 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
816 wxArrayInt widths;
817 self->GetPartialTextExtents(text, widths);
818 return widths;
819 }
820 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
821 self->SetLogicalOrigin(point.x, point.y);
822 }
823 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
824 self->SetDeviceOrigin(point.x, point.y);
825 }
826 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
827 self->CalcBoundingBox(point.x, point.y);
828 }
829 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
830 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
831 }
832 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
833 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
834 }
835 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
836 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
837 }
838 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
839 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
840 }
841 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
842 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
843 }
844 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
845 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
846 }
847
848 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
849 *x1 = dc->MinX();
850 *y1 = dc->MinY();
851 *x2 = dc->MaxX();
852 *y2 = dc->MaxY();
853 }
854
855
856 #include <wx/dcbuffer.h>
857
858
859 #include <wx/dcps.h>
860
861
862 #include <wx/metafile.h>
863
864
865
866 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
867 self->AddColour(name, wxColour(red, green, blue));
868 }
869
870 #include <wx/effects.h>
871
872 #ifdef __cplusplus
873 extern "C" {
874 #endif
875 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
876 PyObject *resultobj;
877 wxGDIObject *result;
878 char *kwnames[] = {
879 NULL
880 };
881
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
883 {
884 if (!wxPyCheckForApp()) SWIG_fail;
885 PyThreadState* __tstate = wxPyBeginAllowThreads();
886 result = (wxGDIObject *)new wxGDIObject();
887
888 wxPyEndAllowThreads(__tstate);
889 if (PyErr_Occurred()) SWIG_fail;
890 }
891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
892 return resultobj;
893 fail:
894 return NULL;
895 }
896
897
898 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
899 PyObject *resultobj;
900 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
901 PyObject * obj0 = 0 ;
902 char *kwnames[] = {
903 (char *) "self", NULL
904 };
905
906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
909 {
910 PyThreadState* __tstate = wxPyBeginAllowThreads();
911 delete arg1;
912
913 wxPyEndAllowThreads(__tstate);
914 if (PyErr_Occurred()) SWIG_fail;
915 }
916 Py_INCREF(Py_None); resultobj = Py_None;
917 return resultobj;
918 fail:
919 return NULL;
920 }
921
922
923 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject *resultobj;
925 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
926 bool result;
927 PyObject * obj0 = 0 ;
928 char *kwnames[] = {
929 (char *) "self", NULL
930 };
931
932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 result = (bool)(arg1)->GetVisible();
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) SWIG_fail;
941 }
942 {
943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
944 }
945 return resultobj;
946 fail:
947 return NULL;
948 }
949
950
951 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
952 PyObject *resultobj;
953 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
954 bool arg2 ;
955 PyObject * obj0 = 0 ;
956 PyObject * obj1 = 0 ;
957 char *kwnames[] = {
958 (char *) "self",(char *) "visible", NULL
959 };
960
961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
964 arg2 = (bool) SWIG_AsBool(obj1);
965 if (PyErr_Occurred()) SWIG_fail;
966 {
967 PyThreadState* __tstate = wxPyBeginAllowThreads();
968 (arg1)->SetVisible(arg2);
969
970 wxPyEndAllowThreads(__tstate);
971 if (PyErr_Occurred()) SWIG_fail;
972 }
973 Py_INCREF(Py_None); resultobj = Py_None;
974 return resultobj;
975 fail:
976 return NULL;
977 }
978
979
980 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
981 PyObject *resultobj;
982 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
983 bool result;
984 PyObject * obj0 = 0 ;
985 char *kwnames[] = {
986 (char *) "self", NULL
987 };
988
989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
992 {
993 PyThreadState* __tstate = wxPyBeginAllowThreads();
994 result = (bool)(arg1)->IsNull();
995
996 wxPyEndAllowThreads(__tstate);
997 if (PyErr_Occurred()) SWIG_fail;
998 }
999 {
1000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1001 }
1002 return resultobj;
1003 fail:
1004 return NULL;
1005 }
1006
1007
1008 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1009 PyObject *obj;
1010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1011 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1012 Py_INCREF(obj);
1013 return Py_BuildValue((char *)"");
1014 }
1015 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1016 PyObject *resultobj;
1017 byte arg1 = (byte) 0 ;
1018 byte arg2 = (byte) 0 ;
1019 byte arg3 = (byte) 0 ;
1020 wxColour *result;
1021 PyObject * obj0 = 0 ;
1022 PyObject * obj1 = 0 ;
1023 PyObject * obj2 = 0 ;
1024 char *kwnames[] = {
1025 (char *) "red",(char *) "green",(char *) "blue", NULL
1026 };
1027
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1029 if (obj0) {
1030 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1031 if (PyErr_Occurred()) SWIG_fail;
1032 }
1033 if (obj1) {
1034 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1035 if (PyErr_Occurred()) SWIG_fail;
1036 }
1037 if (obj2) {
1038 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1039 if (PyErr_Occurred()) SWIG_fail;
1040 }
1041 {
1042 PyThreadState* __tstate = wxPyBeginAllowThreads();
1043 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1044
1045 wxPyEndAllowThreads(__tstate);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1049 return resultobj;
1050 fail:
1051 return NULL;
1052 }
1053
1054
1055 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1056 PyObject *resultobj;
1057 wxString *arg1 = 0 ;
1058 wxColour *result;
1059 bool temp1 = False ;
1060 PyObject * obj0 = 0 ;
1061 char *kwnames[] = {
1062 (char *) "colorName", NULL
1063 };
1064
1065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1066 {
1067 arg1 = wxString_in_helper(obj0);
1068 if (arg1 == NULL) SWIG_fail;
1069 temp1 = True;
1070 }
1071 {
1072 PyThreadState* __tstate = wxPyBeginAllowThreads();
1073 result = (wxColour *)new wxColour((wxString const &)*arg1);
1074
1075 wxPyEndAllowThreads(__tstate);
1076 if (PyErr_Occurred()) SWIG_fail;
1077 }
1078 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1079 {
1080 if (temp1)
1081 delete arg1;
1082 }
1083 return resultobj;
1084 fail:
1085 {
1086 if (temp1)
1087 delete arg1;
1088 }
1089 return NULL;
1090 }
1091
1092
1093 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1094 PyObject *resultobj;
1095 unsigned long arg1 ;
1096 wxColour *result;
1097 PyObject * obj0 = 0 ;
1098 char *kwnames[] = {
1099 (char *) "colRGB", NULL
1100 };
1101
1102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1103 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1104 if (PyErr_Occurred()) SWIG_fail;
1105 {
1106 PyThreadState* __tstate = wxPyBeginAllowThreads();
1107 result = (wxColour *)new wxColour(arg1);
1108
1109 wxPyEndAllowThreads(__tstate);
1110 if (PyErr_Occurred()) SWIG_fail;
1111 }
1112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1113 return resultobj;
1114 fail:
1115 return NULL;
1116 }
1117
1118
1119 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1120 PyObject *resultobj;
1121 wxColour *arg1 = (wxColour *) 0 ;
1122 PyObject * obj0 = 0 ;
1123 char *kwnames[] = {
1124 (char *) "self", NULL
1125 };
1126
1127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1130 {
1131 PyThreadState* __tstate = wxPyBeginAllowThreads();
1132 delete arg1;
1133
1134 wxPyEndAllowThreads(__tstate);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
1137 Py_INCREF(Py_None); resultobj = Py_None;
1138 return resultobj;
1139 fail:
1140 return NULL;
1141 }
1142
1143
1144 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1145 PyObject *resultobj;
1146 wxColour *arg1 = (wxColour *) 0 ;
1147 byte result;
1148 PyObject * obj0 = 0 ;
1149 char *kwnames[] = {
1150 (char *) "self", NULL
1151 };
1152
1153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1156 {
1157 PyThreadState* __tstate = wxPyBeginAllowThreads();
1158 result = (byte)(arg1)->Red();
1159
1160 wxPyEndAllowThreads(__tstate);
1161 if (PyErr_Occurred()) SWIG_fail;
1162 }
1163 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1164 return resultobj;
1165 fail:
1166 return NULL;
1167 }
1168
1169
1170 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1171 PyObject *resultobj;
1172 wxColour *arg1 = (wxColour *) 0 ;
1173 byte result;
1174 PyObject * obj0 = 0 ;
1175 char *kwnames[] = {
1176 (char *) "self", NULL
1177 };
1178
1179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1182 {
1183 PyThreadState* __tstate = wxPyBeginAllowThreads();
1184 result = (byte)(arg1)->Green();
1185
1186 wxPyEndAllowThreads(__tstate);
1187 if (PyErr_Occurred()) SWIG_fail;
1188 }
1189 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1190 return resultobj;
1191 fail:
1192 return NULL;
1193 }
1194
1195
1196 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1197 PyObject *resultobj;
1198 wxColour *arg1 = (wxColour *) 0 ;
1199 byte result;
1200 PyObject * obj0 = 0 ;
1201 char *kwnames[] = {
1202 (char *) "self", NULL
1203 };
1204
1205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1208 {
1209 PyThreadState* __tstate = wxPyBeginAllowThreads();
1210 result = (byte)(arg1)->Blue();
1211
1212 wxPyEndAllowThreads(__tstate);
1213 if (PyErr_Occurred()) SWIG_fail;
1214 }
1215 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1216 return resultobj;
1217 fail:
1218 return NULL;
1219 }
1220
1221
1222 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1223 PyObject *resultobj;
1224 wxColour *arg1 = (wxColour *) 0 ;
1225 bool result;
1226 PyObject * obj0 = 0 ;
1227 char *kwnames[] = {
1228 (char *) "self", NULL
1229 };
1230
1231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1234 {
1235 PyThreadState* __tstate = wxPyBeginAllowThreads();
1236 result = (bool)(arg1)->Ok();
1237
1238 wxPyEndAllowThreads(__tstate);
1239 if (PyErr_Occurred()) SWIG_fail;
1240 }
1241 {
1242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1243 }
1244 return resultobj;
1245 fail:
1246 return NULL;
1247 }
1248
1249
1250 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1251 PyObject *resultobj;
1252 wxColour *arg1 = (wxColour *) 0 ;
1253 byte arg2 ;
1254 byte arg3 ;
1255 byte arg4 ;
1256 PyObject * obj0 = 0 ;
1257 PyObject * obj1 = 0 ;
1258 PyObject * obj2 = 0 ;
1259 PyObject * obj3 = 0 ;
1260 char *kwnames[] = {
1261 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1262 };
1263
1264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1267 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1268 if (PyErr_Occurred()) SWIG_fail;
1269 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1270 if (PyErr_Occurred()) SWIG_fail;
1271 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1272 if (PyErr_Occurred()) SWIG_fail;
1273 {
1274 PyThreadState* __tstate = wxPyBeginAllowThreads();
1275 (arg1)->Set(arg2,arg3,arg4);
1276
1277 wxPyEndAllowThreads(__tstate);
1278 if (PyErr_Occurred()) SWIG_fail;
1279 }
1280 Py_INCREF(Py_None); resultobj = Py_None;
1281 return resultobj;
1282 fail:
1283 return NULL;
1284 }
1285
1286
1287 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1288 PyObject *resultobj;
1289 wxColour *arg1 = (wxColour *) 0 ;
1290 unsigned long arg2 ;
1291 PyObject * obj0 = 0 ;
1292 PyObject * obj1 = 0 ;
1293 char *kwnames[] = {
1294 (char *) "self",(char *) "colRGB", NULL
1295 };
1296
1297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1300 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1301 if (PyErr_Occurred()) SWIG_fail;
1302 {
1303 PyThreadState* __tstate = wxPyBeginAllowThreads();
1304 (arg1)->Set(arg2);
1305
1306 wxPyEndAllowThreads(__tstate);
1307 if (PyErr_Occurred()) SWIG_fail;
1308 }
1309 Py_INCREF(Py_None); resultobj = Py_None;
1310 return resultobj;
1311 fail:
1312 return NULL;
1313 }
1314
1315
1316 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1317 PyObject *resultobj;
1318 wxColour *arg1 = (wxColour *) 0 ;
1319 wxString *arg2 = 0 ;
1320 bool temp2 = False ;
1321 PyObject * obj0 = 0 ;
1322 PyObject * obj1 = 0 ;
1323 char *kwnames[] = {
1324 (char *) "self",(char *) "colourName", NULL
1325 };
1326
1327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1330 {
1331 arg2 = wxString_in_helper(obj1);
1332 if (arg2 == NULL) SWIG_fail;
1333 temp2 = True;
1334 }
1335 {
1336 PyThreadState* __tstate = wxPyBeginAllowThreads();
1337 (arg1)->InitFromName((wxString const &)*arg2);
1338
1339 wxPyEndAllowThreads(__tstate);
1340 if (PyErr_Occurred()) SWIG_fail;
1341 }
1342 Py_INCREF(Py_None); resultobj = Py_None;
1343 {
1344 if (temp2)
1345 delete arg2;
1346 }
1347 return resultobj;
1348 fail:
1349 {
1350 if (temp2)
1351 delete arg2;
1352 }
1353 return NULL;
1354 }
1355
1356
1357 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1358 PyObject *resultobj;
1359 wxColour *arg1 = (wxColour *) 0 ;
1360 long result;
1361 PyObject * obj0 = 0 ;
1362 char *kwnames[] = {
1363 (char *) "self", NULL
1364 };
1365
1366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1369 {
1370 PyThreadState* __tstate = wxPyBeginAllowThreads();
1371 result = (long)((wxColour const *)arg1)->GetPixel();
1372
1373 wxPyEndAllowThreads(__tstate);
1374 if (PyErr_Occurred()) SWIG_fail;
1375 }
1376 resultobj = SWIG_FromLong((long)result);
1377 return resultobj;
1378 fail:
1379 return NULL;
1380 }
1381
1382
1383 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1384 PyObject *resultobj;
1385 wxColour *arg1 = (wxColour *) 0 ;
1386 wxColour *arg2 = 0 ;
1387 bool result;
1388 wxColour temp2 ;
1389 PyObject * obj0 = 0 ;
1390 PyObject * obj1 = 0 ;
1391 char *kwnames[] = {
1392 (char *) "self",(char *) "colour", NULL
1393 };
1394
1395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1398 {
1399 arg2 = &temp2;
1400 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1401 }
1402 {
1403 PyThreadState* __tstate = wxPyBeginAllowThreads();
1404 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1405
1406 wxPyEndAllowThreads(__tstate);
1407 if (PyErr_Occurred()) SWIG_fail;
1408 }
1409 {
1410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1411 }
1412 return resultobj;
1413 fail:
1414 return NULL;
1415 }
1416
1417
1418 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1419 PyObject *resultobj;
1420 wxColour *arg1 = (wxColour *) 0 ;
1421 wxColour *arg2 = 0 ;
1422 bool result;
1423 wxColour temp2 ;
1424 PyObject * obj0 = 0 ;
1425 PyObject * obj1 = 0 ;
1426 char *kwnames[] = {
1427 (char *) "self",(char *) "colour", NULL
1428 };
1429
1430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1433 {
1434 arg2 = &temp2;
1435 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1436 }
1437 {
1438 PyThreadState* __tstate = wxPyBeginAllowThreads();
1439 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1440
1441 wxPyEndAllowThreads(__tstate);
1442 if (PyErr_Occurred()) SWIG_fail;
1443 }
1444 {
1445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1446 }
1447 return resultobj;
1448 fail:
1449 return NULL;
1450 }
1451
1452
1453 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1454 PyObject *resultobj;
1455 wxColour *arg1 = (wxColour *) 0 ;
1456 PyObject *result;
1457 PyObject * obj0 = 0 ;
1458 char *kwnames[] = {
1459 (char *) "self", NULL
1460 };
1461
1462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1465 {
1466 PyThreadState* __tstate = wxPyBeginAllowThreads();
1467 result = (PyObject *)wxColour_Get(arg1);
1468
1469 wxPyEndAllowThreads(__tstate);
1470 if (PyErr_Occurred()) SWIG_fail;
1471 }
1472 resultobj = result;
1473 return resultobj;
1474 fail:
1475 return NULL;
1476 }
1477
1478
1479 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1480 PyObject *resultobj;
1481 wxColour *arg1 = (wxColour *) 0 ;
1482 unsigned long result;
1483 PyObject * obj0 = 0 ;
1484 char *kwnames[] = {
1485 (char *) "self", NULL
1486 };
1487
1488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1491 {
1492 PyThreadState* __tstate = wxPyBeginAllowThreads();
1493 result = (unsigned long)wxColour_GetRGB(arg1);
1494
1495 wxPyEndAllowThreads(__tstate);
1496 if (PyErr_Occurred()) SWIG_fail;
1497 }
1498 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1499 return resultobj;
1500 fail:
1501 return NULL;
1502 }
1503
1504
1505 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1506 PyObject *obj;
1507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1508 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1509 Py_INCREF(obj);
1510 return Py_BuildValue((char *)"");
1511 }
1512 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1513 PyObject *resultobj;
1514 int arg1 ;
1515 unsigned char *arg2 = (unsigned char *) 0 ;
1516 unsigned char *arg3 = (unsigned char *) 0 ;
1517 unsigned char *arg4 = (unsigned char *) 0 ;
1518 wxPalette *result;
1519 PyObject * obj0 = 0 ;
1520 PyObject * obj1 = 0 ;
1521 PyObject * obj2 = 0 ;
1522 PyObject * obj3 = 0 ;
1523 char *kwnames[] = {
1524 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1525 };
1526
1527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1528 arg1 = (int) SWIG_AsInt(obj0);
1529 if (PyErr_Occurred()) SWIG_fail;
1530 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1532 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1534 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1536 {
1537 if (!wxPyCheckForApp()) SWIG_fail;
1538 PyThreadState* __tstate = wxPyBeginAllowThreads();
1539 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1540
1541 wxPyEndAllowThreads(__tstate);
1542 if (PyErr_Occurred()) SWIG_fail;
1543 }
1544 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1545 return resultobj;
1546 fail:
1547 return NULL;
1548 }
1549
1550
1551 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1552 PyObject *resultobj;
1553 wxPalette *arg1 = (wxPalette *) 0 ;
1554 PyObject * obj0 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "self", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1562 {
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 delete arg1;
1565
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 Py_INCREF(Py_None); resultobj = Py_None;
1570 return resultobj;
1571 fail:
1572 return NULL;
1573 }
1574
1575
1576 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject *resultobj;
1578 wxPalette *arg1 = (wxPalette *) 0 ;
1579 byte arg2 ;
1580 byte arg3 ;
1581 byte arg4 ;
1582 int result;
1583 PyObject * obj0 = 0 ;
1584 PyObject * obj1 = 0 ;
1585 PyObject * obj2 = 0 ;
1586 PyObject * obj3 = 0 ;
1587 char *kwnames[] = {
1588 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1589 };
1590
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1594 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1595 if (PyErr_Occurred()) SWIG_fail;
1596 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1597 if (PyErr_Occurred()) SWIG_fail;
1598 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1599 if (PyErr_Occurred()) SWIG_fail;
1600 {
1601 PyThreadState* __tstate = wxPyBeginAllowThreads();
1602 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1603
1604 wxPyEndAllowThreads(__tstate);
1605 if (PyErr_Occurred()) SWIG_fail;
1606 }
1607 resultobj = SWIG_FromInt((int)result);
1608 return resultobj;
1609 fail:
1610 return NULL;
1611 }
1612
1613
1614 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1615 PyObject *resultobj;
1616 wxPalette *arg1 = (wxPalette *) 0 ;
1617 int arg2 ;
1618 byte *arg3 = (byte *) 0 ;
1619 byte *arg4 = (byte *) 0 ;
1620 byte *arg5 = (byte *) 0 ;
1621 bool result;
1622 byte temp3 ;
1623 byte temp4 ;
1624 byte temp5 ;
1625 PyObject * obj0 = 0 ;
1626 PyObject * obj1 = 0 ;
1627 char *kwnames[] = {
1628 (char *) "self",(char *) "pixel", NULL
1629 };
1630
1631 arg3 = &temp3;
1632 arg4 = &temp4;
1633 arg5 = &temp5;
1634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1637 arg2 = (int) SWIG_AsInt(obj1);
1638 if (PyErr_Occurred()) SWIG_fail;
1639 {
1640 PyThreadState* __tstate = wxPyBeginAllowThreads();
1641 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1642
1643 wxPyEndAllowThreads(__tstate);
1644 if (PyErr_Occurred()) SWIG_fail;
1645 }
1646 {
1647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1648 }
1649 {
1650 PyObject *o = PyInt_FromLong((long) (*arg3));
1651 resultobj = t_output_helper(resultobj,o);
1652 }
1653 {
1654 PyObject *o = PyInt_FromLong((long) (*arg4));
1655 resultobj = t_output_helper(resultobj,o);
1656 }
1657 {
1658 PyObject *o = PyInt_FromLong((long) (*arg5));
1659 resultobj = t_output_helper(resultobj,o);
1660 }
1661 return resultobj;
1662 fail:
1663 return NULL;
1664 }
1665
1666
1667 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1668 PyObject *resultobj;
1669 wxPalette *arg1 = (wxPalette *) 0 ;
1670 bool result;
1671 PyObject * obj0 = 0 ;
1672 char *kwnames[] = {
1673 (char *) "self", NULL
1674 };
1675
1676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1679 {
1680 PyThreadState* __tstate = wxPyBeginAllowThreads();
1681 result = (bool)(arg1)->Ok();
1682
1683 wxPyEndAllowThreads(__tstate);
1684 if (PyErr_Occurred()) SWIG_fail;
1685 }
1686 {
1687 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1688 }
1689 return resultobj;
1690 fail:
1691 return NULL;
1692 }
1693
1694
1695 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1696 PyObject *obj;
1697 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1698 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1699 Py_INCREF(obj);
1700 return Py_BuildValue((char *)"");
1701 }
1702 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1703 PyObject *resultobj;
1704 wxColour *arg1 = 0 ;
1705 int arg2 = (int) 1 ;
1706 int arg3 = (int) wxSOLID ;
1707 wxPen *result;
1708 wxColour temp1 ;
1709 PyObject * obj0 = 0 ;
1710 PyObject * obj1 = 0 ;
1711 PyObject * obj2 = 0 ;
1712 char *kwnames[] = {
1713 (char *) "colour",(char *) "width",(char *) "style", NULL
1714 };
1715
1716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1717 {
1718 arg1 = &temp1;
1719 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1720 }
1721 if (obj1) {
1722 arg2 = (int) SWIG_AsInt(obj1);
1723 if (PyErr_Occurred()) SWIG_fail;
1724 }
1725 if (obj2) {
1726 arg3 = (int) SWIG_AsInt(obj2);
1727 if (PyErr_Occurred()) SWIG_fail;
1728 }
1729 {
1730 if (!wxPyCheckForApp()) SWIG_fail;
1731 PyThreadState* __tstate = wxPyBeginAllowThreads();
1732 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1733
1734 wxPyEndAllowThreads(__tstate);
1735 if (PyErr_Occurred()) SWIG_fail;
1736 }
1737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1738 return resultobj;
1739 fail:
1740 return NULL;
1741 }
1742
1743
1744 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1745 PyObject *resultobj;
1746 wxPen *arg1 = (wxPen *) 0 ;
1747 PyObject * obj0 = 0 ;
1748 char *kwnames[] = {
1749 (char *) "self", NULL
1750 };
1751
1752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1755 {
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 delete arg1;
1758
1759 wxPyEndAllowThreads(__tstate);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 }
1762 Py_INCREF(Py_None); resultobj = Py_None;
1763 return resultobj;
1764 fail:
1765 return NULL;
1766 }
1767
1768
1769 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1770 PyObject *resultobj;
1771 wxPen *arg1 = (wxPen *) 0 ;
1772 int result;
1773 PyObject * obj0 = 0 ;
1774 char *kwnames[] = {
1775 (char *) "self", NULL
1776 };
1777
1778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1781 {
1782 PyThreadState* __tstate = wxPyBeginAllowThreads();
1783 result = (int)(arg1)->GetCap();
1784
1785 wxPyEndAllowThreads(__tstate);
1786 if (PyErr_Occurred()) SWIG_fail;
1787 }
1788 resultobj = SWIG_FromInt((int)result);
1789 return resultobj;
1790 fail:
1791 return NULL;
1792 }
1793
1794
1795 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1796 PyObject *resultobj;
1797 wxPen *arg1 = (wxPen *) 0 ;
1798 wxColour result;
1799 PyObject * obj0 = 0 ;
1800 char *kwnames[] = {
1801 (char *) "self", NULL
1802 };
1803
1804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1807 {
1808 PyThreadState* __tstate = wxPyBeginAllowThreads();
1809 result = (arg1)->GetColour();
1810
1811 wxPyEndAllowThreads(__tstate);
1812 if (PyErr_Occurred()) SWIG_fail;
1813 }
1814 {
1815 wxColour * resultptr;
1816 resultptr = new wxColour((wxColour &) result);
1817 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1818 }
1819 return resultobj;
1820 fail:
1821 return NULL;
1822 }
1823
1824
1825 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1826 PyObject *resultobj;
1827 wxPen *arg1 = (wxPen *) 0 ;
1828 int result;
1829 PyObject * obj0 = 0 ;
1830 char *kwnames[] = {
1831 (char *) "self", NULL
1832 };
1833
1834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1837 {
1838 PyThreadState* __tstate = wxPyBeginAllowThreads();
1839 result = (int)(arg1)->GetJoin();
1840
1841 wxPyEndAllowThreads(__tstate);
1842 if (PyErr_Occurred()) SWIG_fail;
1843 }
1844 resultobj = SWIG_FromInt((int)result);
1845 return resultobj;
1846 fail:
1847 return NULL;
1848 }
1849
1850
1851 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1852 PyObject *resultobj;
1853 wxPen *arg1 = (wxPen *) 0 ;
1854 int result;
1855 PyObject * obj0 = 0 ;
1856 char *kwnames[] = {
1857 (char *) "self", NULL
1858 };
1859
1860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1863 {
1864 PyThreadState* __tstate = wxPyBeginAllowThreads();
1865 result = (int)(arg1)->GetStyle();
1866
1867 wxPyEndAllowThreads(__tstate);
1868 if (PyErr_Occurred()) SWIG_fail;
1869 }
1870 resultobj = SWIG_FromInt((int)result);
1871 return resultobj;
1872 fail:
1873 return NULL;
1874 }
1875
1876
1877 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1878 PyObject *resultobj;
1879 wxPen *arg1 = (wxPen *) 0 ;
1880 int result;
1881 PyObject * obj0 = 0 ;
1882 char *kwnames[] = {
1883 (char *) "self", NULL
1884 };
1885
1886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1889 {
1890 PyThreadState* __tstate = wxPyBeginAllowThreads();
1891 result = (int)(arg1)->GetWidth();
1892
1893 wxPyEndAllowThreads(__tstate);
1894 if (PyErr_Occurred()) SWIG_fail;
1895 }
1896 resultobj = SWIG_FromInt((int)result);
1897 return resultobj;
1898 fail:
1899 return NULL;
1900 }
1901
1902
1903 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1904 PyObject *resultobj;
1905 wxPen *arg1 = (wxPen *) 0 ;
1906 bool result;
1907 PyObject * obj0 = 0 ;
1908 char *kwnames[] = {
1909 (char *) "self", NULL
1910 };
1911
1912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1915 {
1916 PyThreadState* __tstate = wxPyBeginAllowThreads();
1917 result = (bool)(arg1)->Ok();
1918
1919 wxPyEndAllowThreads(__tstate);
1920 if (PyErr_Occurred()) SWIG_fail;
1921 }
1922 {
1923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1924 }
1925 return resultobj;
1926 fail:
1927 return NULL;
1928 }
1929
1930
1931 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1932 PyObject *resultobj;
1933 wxPen *arg1 = (wxPen *) 0 ;
1934 int arg2 ;
1935 PyObject * obj0 = 0 ;
1936 PyObject * obj1 = 0 ;
1937 char *kwnames[] = {
1938 (char *) "self",(char *) "cap_style", NULL
1939 };
1940
1941 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1942 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1943 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1944 arg2 = (int) SWIG_AsInt(obj1);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 {
1947 PyThreadState* __tstate = wxPyBeginAllowThreads();
1948 (arg1)->SetCap(arg2);
1949
1950 wxPyEndAllowThreads(__tstate);
1951 if (PyErr_Occurred()) SWIG_fail;
1952 }
1953 Py_INCREF(Py_None); resultobj = Py_None;
1954 return resultobj;
1955 fail:
1956 return NULL;
1957 }
1958
1959
1960 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1961 PyObject *resultobj;
1962 wxPen *arg1 = (wxPen *) 0 ;
1963 wxColour *arg2 = 0 ;
1964 wxColour temp2 ;
1965 PyObject * obj0 = 0 ;
1966 PyObject * obj1 = 0 ;
1967 char *kwnames[] = {
1968 (char *) "self",(char *) "colour", NULL
1969 };
1970
1971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1974 {
1975 arg2 = &temp2;
1976 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1977 }
1978 {
1979 PyThreadState* __tstate = wxPyBeginAllowThreads();
1980 (arg1)->SetColour(*arg2);
1981
1982 wxPyEndAllowThreads(__tstate);
1983 if (PyErr_Occurred()) SWIG_fail;
1984 }
1985 Py_INCREF(Py_None); resultobj = Py_None;
1986 return resultobj;
1987 fail:
1988 return NULL;
1989 }
1990
1991
1992 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1993 PyObject *resultobj;
1994 wxPen *arg1 = (wxPen *) 0 ;
1995 int arg2 ;
1996 PyObject * obj0 = 0 ;
1997 PyObject * obj1 = 0 ;
1998 char *kwnames[] = {
1999 (char *) "self",(char *) "join_style", NULL
2000 };
2001
2002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2005 arg2 = (int) SWIG_AsInt(obj1);
2006 if (PyErr_Occurred()) SWIG_fail;
2007 {
2008 PyThreadState* __tstate = wxPyBeginAllowThreads();
2009 (arg1)->SetJoin(arg2);
2010
2011 wxPyEndAllowThreads(__tstate);
2012 if (PyErr_Occurred()) SWIG_fail;
2013 }
2014 Py_INCREF(Py_None); resultobj = Py_None;
2015 return resultobj;
2016 fail:
2017 return NULL;
2018 }
2019
2020
2021 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2022 PyObject *resultobj;
2023 wxPen *arg1 = (wxPen *) 0 ;
2024 int arg2 ;
2025 PyObject * obj0 = 0 ;
2026 PyObject * obj1 = 0 ;
2027 char *kwnames[] = {
2028 (char *) "self",(char *) "style", NULL
2029 };
2030
2031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2034 arg2 = (int) SWIG_AsInt(obj1);
2035 if (PyErr_Occurred()) SWIG_fail;
2036 {
2037 PyThreadState* __tstate = wxPyBeginAllowThreads();
2038 (arg1)->SetStyle(arg2);
2039
2040 wxPyEndAllowThreads(__tstate);
2041 if (PyErr_Occurred()) SWIG_fail;
2042 }
2043 Py_INCREF(Py_None); resultobj = Py_None;
2044 return resultobj;
2045 fail:
2046 return NULL;
2047 }
2048
2049
2050 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2051 PyObject *resultobj;
2052 wxPen *arg1 = (wxPen *) 0 ;
2053 int arg2 ;
2054 PyObject * obj0 = 0 ;
2055 PyObject * obj1 = 0 ;
2056 char *kwnames[] = {
2057 (char *) "self",(char *) "width", NULL
2058 };
2059
2060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2063 arg2 = (int) SWIG_AsInt(obj1);
2064 if (PyErr_Occurred()) SWIG_fail;
2065 {
2066 PyThreadState* __tstate = wxPyBeginAllowThreads();
2067 (arg1)->SetWidth(arg2);
2068
2069 wxPyEndAllowThreads(__tstate);
2070 if (PyErr_Occurred()) SWIG_fail;
2071 }
2072 Py_INCREF(Py_None); resultobj = Py_None;
2073 return resultobj;
2074 fail:
2075 return NULL;
2076 }
2077
2078
2079 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2080 PyObject *resultobj;
2081 wxPen *arg1 = (wxPen *) 0 ;
2082 int arg2 ;
2083 wxDash *arg3 = (wxDash *) 0 ;
2084 PyObject * obj0 = 0 ;
2085 PyObject * obj1 = 0 ;
2086 char *kwnames[] = {
2087 (char *) "self",(char *) "dashes", NULL
2088 };
2089
2090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2093 {
2094 arg2 = PyList_Size(obj1);
2095 arg3 = (wxDash*)byte_LIST_helper(obj1);
2096 if (arg3 == NULL) SWIG_fail;
2097 }
2098 {
2099 PyThreadState* __tstate = wxPyBeginAllowThreads();
2100 (arg1)->SetDashes(arg2,arg3);
2101
2102 wxPyEndAllowThreads(__tstate);
2103 if (PyErr_Occurred()) SWIG_fail;
2104 }
2105 Py_INCREF(Py_None); resultobj = Py_None;
2106 {
2107 if (arg3) delete [] arg3;
2108 }
2109 return resultobj;
2110 fail:
2111 {
2112 if (arg3) delete [] arg3;
2113 }
2114 return NULL;
2115 }
2116
2117
2118 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2119 PyObject *resultobj;
2120 wxPen *arg1 = (wxPen *) 0 ;
2121 PyObject *result;
2122 PyObject * obj0 = 0 ;
2123 char *kwnames[] = {
2124 (char *) "self", NULL
2125 };
2126
2127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2130 {
2131 PyThreadState* __tstate = wxPyBeginAllowThreads();
2132 result = (PyObject *)wxPen_GetDashes(arg1);
2133
2134 wxPyEndAllowThreads(__tstate);
2135 if (PyErr_Occurred()) SWIG_fail;
2136 }
2137 resultobj = result;
2138 return resultobj;
2139 fail:
2140 return NULL;
2141 }
2142
2143
2144 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2145 PyObject *resultobj;
2146 wxPen *arg1 = (wxPen *) 0 ;
2147 PyObject *arg2 = (PyObject *) 0 ;
2148 PyObject *arg3 = (PyObject *) 0 ;
2149 PyObject * obj0 = 0 ;
2150 PyObject * obj1 = 0 ;
2151 PyObject * obj2 = 0 ;
2152 char *kwnames[] = {
2153 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2154 };
2155
2156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2159 arg2 = obj1;
2160 arg3 = obj2;
2161 {
2162 PyThreadState* __tstate = wxPyBeginAllowThreads();
2163 wxPen__SetDashes(arg1,arg2,arg3);
2164
2165 wxPyEndAllowThreads(__tstate);
2166 if (PyErr_Occurred()) SWIG_fail;
2167 }
2168 Py_INCREF(Py_None); resultobj = Py_None;
2169 return resultobj;
2170 fail:
2171 return NULL;
2172 }
2173
2174
2175 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2176 PyObject *resultobj;
2177 wxPen *arg1 = (wxPen *) 0 ;
2178 int result;
2179 PyObject * obj0 = 0 ;
2180 char *kwnames[] = {
2181 (char *) "self", NULL
2182 };
2183
2184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2187 {
2188 PyThreadState* __tstate = wxPyBeginAllowThreads();
2189 result = (int)((wxPen const *)arg1)->GetDashCount();
2190
2191 wxPyEndAllowThreads(__tstate);
2192 if (PyErr_Occurred()) SWIG_fail;
2193 }
2194 resultobj = SWIG_FromInt((int)result);
2195 return resultobj;
2196 fail:
2197 return NULL;
2198 }
2199
2200
2201 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2202 PyObject *resultobj;
2203 wxPen *arg1 = (wxPen *) 0 ;
2204 wxBitmap *result;
2205 PyObject * obj0 = 0 ;
2206 char *kwnames[] = {
2207 (char *) "self", NULL
2208 };
2209
2210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2213 {
2214 PyThreadState* __tstate = wxPyBeginAllowThreads();
2215 result = (wxBitmap *)(arg1)->GetStipple();
2216
2217 wxPyEndAllowThreads(__tstate);
2218 if (PyErr_Occurred()) SWIG_fail;
2219 }
2220 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2221 return resultobj;
2222 fail:
2223 return NULL;
2224 }
2225
2226
2227 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2228 PyObject *resultobj;
2229 wxPen *arg1 = (wxPen *) 0 ;
2230 wxBitmap *arg2 = 0 ;
2231 PyObject * obj0 = 0 ;
2232 PyObject * obj1 = 0 ;
2233 char *kwnames[] = {
2234 (char *) "self",(char *) "stipple", NULL
2235 };
2236
2237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2240 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2241 SWIG_POINTER_EXCEPTION | 0)) == -1)
2242 SWIG_fail;
2243 if (arg2 == NULL) {
2244 PyErr_SetString(PyExc_TypeError,"null reference");
2245 SWIG_fail;
2246 }
2247 {
2248 PyThreadState* __tstate = wxPyBeginAllowThreads();
2249 (arg1)->SetStipple(*arg2);
2250
2251 wxPyEndAllowThreads(__tstate);
2252 if (PyErr_Occurred()) SWIG_fail;
2253 }
2254 Py_INCREF(Py_None); resultobj = Py_None;
2255 return resultobj;
2256 fail:
2257 return NULL;
2258 }
2259
2260
2261 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2262 PyObject *resultobj;
2263 wxPen *arg1 = (wxPen *) 0 ;
2264 wxPen *arg2 = (wxPen *) 0 ;
2265 bool result;
2266 PyObject * obj0 = 0 ;
2267 PyObject * obj1 = 0 ;
2268 char *kwnames[] = {
2269 (char *) "self",(char *) "other", NULL
2270 };
2271
2272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2277 {
2278 PyThreadState* __tstate = wxPyBeginAllowThreads();
2279 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2280
2281 wxPyEndAllowThreads(__tstate);
2282 if (PyErr_Occurred()) SWIG_fail;
2283 }
2284 {
2285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2286 }
2287 return resultobj;
2288 fail:
2289 return NULL;
2290 }
2291
2292
2293 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2294 PyObject *resultobj;
2295 wxPen *arg1 = (wxPen *) 0 ;
2296 wxPen *arg2 = (wxPen *) 0 ;
2297 bool result;
2298 PyObject * obj0 = 0 ;
2299 PyObject * obj1 = 0 ;
2300 char *kwnames[] = {
2301 (char *) "self",(char *) "other", NULL
2302 };
2303
2304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2309 {
2310 PyThreadState* __tstate = wxPyBeginAllowThreads();
2311 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2312
2313 wxPyEndAllowThreads(__tstate);
2314 if (PyErr_Occurred()) SWIG_fail;
2315 }
2316 {
2317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2318 }
2319 return resultobj;
2320 fail:
2321 return NULL;
2322 }
2323
2324
2325 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2326 PyObject *obj;
2327 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2328 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2329 Py_INCREF(obj);
2330 return Py_BuildValue((char *)"");
2331 }
2332 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxColour *arg1 = 0 ;
2335 int arg2 = (int) wxSOLID ;
2336 wxBrush *result;
2337 wxColour temp1 ;
2338 PyObject * obj0 = 0 ;
2339 PyObject * obj1 = 0 ;
2340 char *kwnames[] = {
2341 (char *) "colour",(char *) "style", NULL
2342 };
2343
2344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2345 {
2346 arg1 = &temp1;
2347 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2348 }
2349 if (obj1) {
2350 arg2 = (int) SWIG_AsInt(obj1);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 {
2354 if (!wxPyCheckForApp()) SWIG_fail;
2355 PyThreadState* __tstate = wxPyBeginAllowThreads();
2356 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2357
2358 wxPyEndAllowThreads(__tstate);
2359 if (PyErr_Occurred()) SWIG_fail;
2360 }
2361 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2362 return resultobj;
2363 fail:
2364 return NULL;
2365 }
2366
2367
2368 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2369 PyObject *resultobj;
2370 wxBrush *arg1 = (wxBrush *) 0 ;
2371 PyObject * obj0 = 0 ;
2372 char *kwnames[] = {
2373 (char *) "self", NULL
2374 };
2375
2376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 delete arg1;
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 Py_INCREF(Py_None); resultobj = Py_None;
2387 return resultobj;
2388 fail:
2389 return NULL;
2390 }
2391
2392
2393 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxBrush *arg1 = (wxBrush *) 0 ;
2396 wxColour *arg2 = 0 ;
2397 wxColour temp2 ;
2398 PyObject * obj0 = 0 ;
2399 PyObject * obj1 = 0 ;
2400 char *kwnames[] = {
2401 (char *) "self",(char *) "col", NULL
2402 };
2403
2404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2407 {
2408 arg2 = &temp2;
2409 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2410 }
2411 {
2412 PyThreadState* __tstate = wxPyBeginAllowThreads();
2413 (arg1)->SetColour((wxColour const &)*arg2);
2414
2415 wxPyEndAllowThreads(__tstate);
2416 if (PyErr_Occurred()) SWIG_fail;
2417 }
2418 Py_INCREF(Py_None); resultobj = Py_None;
2419 return resultobj;
2420 fail:
2421 return NULL;
2422 }
2423
2424
2425 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2426 PyObject *resultobj;
2427 wxBrush *arg1 = (wxBrush *) 0 ;
2428 int arg2 ;
2429 PyObject * obj0 = 0 ;
2430 PyObject * obj1 = 0 ;
2431 char *kwnames[] = {
2432 (char *) "self",(char *) "style", NULL
2433 };
2434
2435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2438 arg2 = (int) SWIG_AsInt(obj1);
2439 if (PyErr_Occurred()) SWIG_fail;
2440 {
2441 PyThreadState* __tstate = wxPyBeginAllowThreads();
2442 (arg1)->SetStyle(arg2);
2443
2444 wxPyEndAllowThreads(__tstate);
2445 if (PyErr_Occurred()) SWIG_fail;
2446 }
2447 Py_INCREF(Py_None); resultobj = Py_None;
2448 return resultobj;
2449 fail:
2450 return NULL;
2451 }
2452
2453
2454 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2455 PyObject *resultobj;
2456 wxBrush *arg1 = (wxBrush *) 0 ;
2457 wxBitmap *arg2 = 0 ;
2458 PyObject * obj0 = 0 ;
2459 PyObject * obj1 = 0 ;
2460 char *kwnames[] = {
2461 (char *) "self",(char *) "stipple", NULL
2462 };
2463
2464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2467 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2468 SWIG_POINTER_EXCEPTION | 0)) == -1)
2469 SWIG_fail;
2470 if (arg2 == NULL) {
2471 PyErr_SetString(PyExc_TypeError,"null reference");
2472 SWIG_fail;
2473 }
2474 {
2475 PyThreadState* __tstate = wxPyBeginAllowThreads();
2476 (arg1)->SetStipple((wxBitmap const &)*arg2);
2477
2478 wxPyEndAllowThreads(__tstate);
2479 if (PyErr_Occurred()) SWIG_fail;
2480 }
2481 Py_INCREF(Py_None); resultobj = Py_None;
2482 return resultobj;
2483 fail:
2484 return NULL;
2485 }
2486
2487
2488 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2489 PyObject *resultobj;
2490 wxBrush *arg1 = (wxBrush *) 0 ;
2491 wxColour result;
2492 PyObject * obj0 = 0 ;
2493 char *kwnames[] = {
2494 (char *) "self", NULL
2495 };
2496
2497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2500 {
2501 PyThreadState* __tstate = wxPyBeginAllowThreads();
2502 result = ((wxBrush const *)arg1)->GetColour();
2503
2504 wxPyEndAllowThreads(__tstate);
2505 if (PyErr_Occurred()) SWIG_fail;
2506 }
2507 {
2508 wxColour * resultptr;
2509 resultptr = new wxColour((wxColour &) result);
2510 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2511 }
2512 return resultobj;
2513 fail:
2514 return NULL;
2515 }
2516
2517
2518 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2519 PyObject *resultobj;
2520 wxBrush *arg1 = (wxBrush *) 0 ;
2521 int result;
2522 PyObject * obj0 = 0 ;
2523 char *kwnames[] = {
2524 (char *) "self", NULL
2525 };
2526
2527 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2528 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2530 {
2531 PyThreadState* __tstate = wxPyBeginAllowThreads();
2532 result = (int)((wxBrush const *)arg1)->GetStyle();
2533
2534 wxPyEndAllowThreads(__tstate);
2535 if (PyErr_Occurred()) SWIG_fail;
2536 }
2537 resultobj = SWIG_FromInt((int)result);
2538 return resultobj;
2539 fail:
2540 return NULL;
2541 }
2542
2543
2544 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 wxBrush *arg1 = (wxBrush *) 0 ;
2547 wxBitmap *result;
2548 PyObject * obj0 = 0 ;
2549 char *kwnames[] = {
2550 (char *) "self", NULL
2551 };
2552
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2556 {
2557 PyThreadState* __tstate = wxPyBeginAllowThreads();
2558 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2559
2560 wxPyEndAllowThreads(__tstate);
2561 if (PyErr_Occurred()) SWIG_fail;
2562 }
2563 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2564 return resultobj;
2565 fail:
2566 return NULL;
2567 }
2568
2569
2570 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2571 PyObject *resultobj;
2572 wxBrush *arg1 = (wxBrush *) 0 ;
2573 bool result;
2574 PyObject * obj0 = 0 ;
2575 char *kwnames[] = {
2576 (char *) "self", NULL
2577 };
2578
2579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2582 {
2583 PyThreadState* __tstate = wxPyBeginAllowThreads();
2584 result = (bool)(arg1)->Ok();
2585
2586 wxPyEndAllowThreads(__tstate);
2587 if (PyErr_Occurred()) SWIG_fail;
2588 }
2589 {
2590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2591 }
2592 return resultobj;
2593 fail:
2594 return NULL;
2595 }
2596
2597
2598 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2599 PyObject *obj;
2600 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2601 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2602 Py_INCREF(obj);
2603 return Py_BuildValue((char *)"");
2604 }
2605 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2606 PyObject *resultobj;
2607 wxString *arg1 = 0 ;
2608 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2609 wxBitmap *result;
2610 bool temp1 = False ;
2611 PyObject * obj0 = 0 ;
2612 PyObject * obj1 = 0 ;
2613 char *kwnames[] = {
2614 (char *) "name",(char *) "type", NULL
2615 };
2616
2617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2618 {
2619 arg1 = wxString_in_helper(obj0);
2620 if (arg1 == NULL) SWIG_fail;
2621 temp1 = True;
2622 }
2623 if (obj1) {
2624 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2625 if (PyErr_Occurred()) SWIG_fail;
2626 }
2627 {
2628 if (!wxPyCheckForApp()) SWIG_fail;
2629 PyThreadState* __tstate = wxPyBeginAllowThreads();
2630 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2631
2632 wxPyEndAllowThreads(__tstate);
2633 if (PyErr_Occurred()) SWIG_fail;
2634 }
2635 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2636 {
2637 if (temp1)
2638 delete arg1;
2639 }
2640 return resultobj;
2641 fail:
2642 {
2643 if (temp1)
2644 delete arg1;
2645 }
2646 return NULL;
2647 }
2648
2649
2650 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2651 PyObject *resultobj;
2652 wxBitmap *arg1 = (wxBitmap *) 0 ;
2653 PyObject * obj0 = 0 ;
2654 char *kwnames[] = {
2655 (char *) "self", NULL
2656 };
2657
2658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2661 {
2662 PyThreadState* __tstate = wxPyBeginAllowThreads();
2663 delete arg1;
2664
2665 wxPyEndAllowThreads(__tstate);
2666 if (PyErr_Occurred()) SWIG_fail;
2667 }
2668 Py_INCREF(Py_None); resultobj = Py_None;
2669 return resultobj;
2670 fail:
2671 return NULL;
2672 }
2673
2674
2675 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2676 PyObject *resultobj;
2677 int arg1 ;
2678 int arg2 ;
2679 int arg3 = (int) -1 ;
2680 wxBitmap *result;
2681 PyObject * obj0 = 0 ;
2682 PyObject * obj1 = 0 ;
2683 PyObject * obj2 = 0 ;
2684 char *kwnames[] = {
2685 (char *) "width",(char *) "height",(char *) "depth", NULL
2686 };
2687
2688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2689 arg1 = (int) SWIG_AsInt(obj0);
2690 if (PyErr_Occurred()) SWIG_fail;
2691 arg2 = (int) SWIG_AsInt(obj1);
2692 if (PyErr_Occurred()) SWIG_fail;
2693 if (obj2) {
2694 arg3 = (int) SWIG_AsInt(obj2);
2695 if (PyErr_Occurred()) SWIG_fail;
2696 }
2697 {
2698 if (!wxPyCheckForApp()) SWIG_fail;
2699 PyThreadState* __tstate = wxPyBeginAllowThreads();
2700 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2701
2702 wxPyEndAllowThreads(__tstate);
2703 if (PyErr_Occurred()) SWIG_fail;
2704 }
2705 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2706 return resultobj;
2707 fail:
2708 return NULL;
2709 }
2710
2711
2712 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2713 PyObject *resultobj;
2714 wxIcon *arg1 = 0 ;
2715 wxBitmap *result;
2716 PyObject * obj0 = 0 ;
2717 char *kwnames[] = {
2718 (char *) "icon", NULL
2719 };
2720
2721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2723 SWIG_POINTER_EXCEPTION | 0)) == -1)
2724 SWIG_fail;
2725 if (arg1 == NULL) {
2726 PyErr_SetString(PyExc_TypeError,"null reference");
2727 SWIG_fail;
2728 }
2729 {
2730 if (!wxPyCheckForApp()) SWIG_fail;
2731 PyThreadState* __tstate = wxPyBeginAllowThreads();
2732 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2733
2734 wxPyEndAllowThreads(__tstate);
2735 if (PyErr_Occurred()) SWIG_fail;
2736 }
2737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2738 return resultobj;
2739 fail:
2740 return NULL;
2741 }
2742
2743
2744 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2745 PyObject *resultobj;
2746 wxImage *arg1 = 0 ;
2747 int arg2 = (int) -1 ;
2748 wxBitmap *result;
2749 PyObject * obj0 = 0 ;
2750 PyObject * obj1 = 0 ;
2751 char *kwnames[] = {
2752 (char *) "image",(char *) "depth", NULL
2753 };
2754
2755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2757 SWIG_POINTER_EXCEPTION | 0)) == -1)
2758 SWIG_fail;
2759 if (arg1 == NULL) {
2760 PyErr_SetString(PyExc_TypeError,"null reference");
2761 SWIG_fail;
2762 }
2763 if (obj1) {
2764 arg2 = (int) SWIG_AsInt(obj1);
2765 if (PyErr_Occurred()) SWIG_fail;
2766 }
2767 {
2768 if (!wxPyCheckForApp()) SWIG_fail;
2769 PyThreadState* __tstate = wxPyBeginAllowThreads();
2770 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2771
2772 wxPyEndAllowThreads(__tstate);
2773 if (PyErr_Occurred()) SWIG_fail;
2774 }
2775 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2776 return resultobj;
2777 fail:
2778 return NULL;
2779 }
2780
2781
2782 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2783 PyObject *resultobj;
2784 PyObject *arg1 = (PyObject *) 0 ;
2785 wxBitmap *result;
2786 PyObject * obj0 = 0 ;
2787 char *kwnames[] = {
2788 (char *) "listOfStrings", NULL
2789 };
2790
2791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2792 arg1 = obj0;
2793 {
2794 if (!wxPyCheckForApp()) SWIG_fail;
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 result = (wxBitmap *)new_wxBitmap(arg1);
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 PyObject *arg1 = (PyObject *) 0 ;
2811 int arg2 ;
2812 int arg3 ;
2813 int arg4 = (int) 1 ;
2814 wxBitmap *result;
2815 PyObject * obj0 = 0 ;
2816 PyObject * obj1 = 0 ;
2817 PyObject * obj2 = 0 ;
2818 PyObject * obj3 = 0 ;
2819 char *kwnames[] = {
2820 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2821 };
2822
2823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2824 arg1 = obj0;
2825 arg2 = (int) SWIG_AsInt(obj1);
2826 if (PyErr_Occurred()) SWIG_fail;
2827 arg3 = (int) SWIG_AsInt(obj2);
2828 if (PyErr_Occurred()) SWIG_fail;
2829 if (obj3) {
2830 arg4 = (int) SWIG_AsInt(obj3);
2831 if (PyErr_Occurred()) SWIG_fail;
2832 }
2833 {
2834 if (!wxPyCheckForApp()) SWIG_fail;
2835 PyThreadState* __tstate = wxPyBeginAllowThreads();
2836 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2837
2838 wxPyEndAllowThreads(__tstate);
2839 if (PyErr_Occurred()) SWIG_fail;
2840 }
2841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2842 return resultobj;
2843 fail:
2844 return NULL;
2845 }
2846
2847
2848 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2849 PyObject *resultobj;
2850 wxBitmap *arg1 = (wxBitmap *) 0 ;
2851 wxPalette *arg2 = 0 ;
2852 PyObject * obj0 = 0 ;
2853 PyObject * obj1 = 0 ;
2854 char *kwnames[] = {
2855 (char *) "self",(char *) "palette", NULL
2856 };
2857
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2862 SWIG_POINTER_EXCEPTION | 0)) == -1)
2863 SWIG_fail;
2864 if (arg2 == NULL) {
2865 PyErr_SetString(PyExc_TypeError,"null reference");
2866 SWIG_fail;
2867 }
2868 {
2869 PyThreadState* __tstate = wxPyBeginAllowThreads();
2870 (arg1)->SetPalette(*arg2);
2871
2872 wxPyEndAllowThreads(__tstate);
2873 if (PyErr_Occurred()) SWIG_fail;
2874 }
2875 Py_INCREF(Py_None); resultobj = Py_None;
2876 return resultobj;
2877 fail:
2878 return NULL;
2879 }
2880
2881
2882 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2883 PyObject *resultobj;
2884 wxBitmap *arg1 = (wxBitmap *) 0 ;
2885 long result;
2886 PyObject * obj0 = 0 ;
2887 char *kwnames[] = {
2888 (char *) "self", NULL
2889 };
2890
2891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2894 {
2895 PyThreadState* __tstate = wxPyBeginAllowThreads();
2896 result = (long)(arg1)->GetHandle();
2897
2898 wxPyEndAllowThreads(__tstate);
2899 if (PyErr_Occurred()) SWIG_fail;
2900 }
2901 resultobj = SWIG_FromLong((long)result);
2902 return resultobj;
2903 fail:
2904 return NULL;
2905 }
2906
2907
2908 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2909 PyObject *resultobj;
2910 wxBitmap *arg1 = (wxBitmap *) 0 ;
2911 long arg2 ;
2912 PyObject * obj0 = 0 ;
2913 PyObject * obj1 = 0 ;
2914 char *kwnames[] = {
2915 (char *) "self",(char *) "handle", NULL
2916 };
2917
2918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2921 arg2 = (long) SWIG_AsLong(obj1);
2922 if (PyErr_Occurred()) SWIG_fail;
2923 {
2924 PyThreadState* __tstate = wxPyBeginAllowThreads();
2925 wxBitmap_SetHandle(arg1,arg2);
2926
2927 wxPyEndAllowThreads(__tstate);
2928 if (PyErr_Occurred()) SWIG_fail;
2929 }
2930 Py_INCREF(Py_None); resultobj = Py_None;
2931 return resultobj;
2932 fail:
2933 return NULL;
2934 }
2935
2936
2937 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2938 PyObject *resultobj;
2939 wxBitmap *arg1 = (wxBitmap *) 0 ;
2940 bool result;
2941 PyObject * obj0 = 0 ;
2942 char *kwnames[] = {
2943 (char *) "self", NULL
2944 };
2945
2946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2949 {
2950 PyThreadState* __tstate = wxPyBeginAllowThreads();
2951 result = (bool)(arg1)->Ok();
2952
2953 wxPyEndAllowThreads(__tstate);
2954 if (PyErr_Occurred()) SWIG_fail;
2955 }
2956 {
2957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2958 }
2959 return resultobj;
2960 fail:
2961 return NULL;
2962 }
2963
2964
2965 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2966 PyObject *resultobj;
2967 wxBitmap *arg1 = (wxBitmap *) 0 ;
2968 int result;
2969 PyObject * obj0 = 0 ;
2970 char *kwnames[] = {
2971 (char *) "self", NULL
2972 };
2973
2974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2977 {
2978 PyThreadState* __tstate = wxPyBeginAllowThreads();
2979 result = (int)(arg1)->GetWidth();
2980
2981 wxPyEndAllowThreads(__tstate);
2982 if (PyErr_Occurred()) SWIG_fail;
2983 }
2984 resultobj = SWIG_FromInt((int)result);
2985 return resultobj;
2986 fail:
2987 return NULL;
2988 }
2989
2990
2991 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2992 PyObject *resultobj;
2993 wxBitmap *arg1 = (wxBitmap *) 0 ;
2994 int result;
2995 PyObject * obj0 = 0 ;
2996 char *kwnames[] = {
2997 (char *) "self", NULL
2998 };
2999
3000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3003 {
3004 PyThreadState* __tstate = wxPyBeginAllowThreads();
3005 result = (int)(arg1)->GetHeight();
3006
3007 wxPyEndAllowThreads(__tstate);
3008 if (PyErr_Occurred()) SWIG_fail;
3009 }
3010 resultobj = SWIG_FromInt((int)result);
3011 return resultobj;
3012 fail:
3013 return NULL;
3014 }
3015
3016
3017 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3018 PyObject *resultobj;
3019 wxBitmap *arg1 = (wxBitmap *) 0 ;
3020 int result;
3021 PyObject * obj0 = 0 ;
3022 char *kwnames[] = {
3023 (char *) "self", NULL
3024 };
3025
3026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3029 {
3030 PyThreadState* __tstate = wxPyBeginAllowThreads();
3031 result = (int)(arg1)->GetDepth();
3032
3033 wxPyEndAllowThreads(__tstate);
3034 if (PyErr_Occurred()) SWIG_fail;
3035 }
3036 resultobj = SWIG_FromInt((int)result);
3037 return resultobj;
3038 fail:
3039 return NULL;
3040 }
3041
3042
3043 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3044 PyObject *resultobj;
3045 wxBitmap *arg1 = (wxBitmap *) 0 ;
3046 wxSize result;
3047 PyObject * obj0 = 0 ;
3048 char *kwnames[] = {
3049 (char *) "self", NULL
3050 };
3051
3052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3055 {
3056 PyThreadState* __tstate = wxPyBeginAllowThreads();
3057 result = wxBitmap_GetSize(arg1);
3058
3059 wxPyEndAllowThreads(__tstate);
3060 if (PyErr_Occurred()) SWIG_fail;
3061 }
3062 {
3063 wxSize * resultptr;
3064 resultptr = new wxSize((wxSize &) result);
3065 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3066 }
3067 return resultobj;
3068 fail:
3069 return NULL;
3070 }
3071
3072
3073 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3074 PyObject *resultobj;
3075 wxBitmap *arg1 = (wxBitmap *) 0 ;
3076 SwigValueWrapper< wxImage > result;
3077 PyObject * obj0 = 0 ;
3078 char *kwnames[] = {
3079 (char *) "self", NULL
3080 };
3081
3082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3085 {
3086 PyThreadState* __tstate = wxPyBeginAllowThreads();
3087 result = ((wxBitmap const *)arg1)->ConvertToImage();
3088
3089 wxPyEndAllowThreads(__tstate);
3090 if (PyErr_Occurred()) SWIG_fail;
3091 }
3092 {
3093 wxImage * resultptr;
3094 resultptr = new wxImage((wxImage &) result);
3095 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3096 }
3097 return resultobj;
3098 fail:
3099 return NULL;
3100 }
3101
3102
3103 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3104 PyObject *resultobj;
3105 wxBitmap *arg1 = (wxBitmap *) 0 ;
3106 wxMask *result;
3107 PyObject * obj0 = 0 ;
3108 char *kwnames[] = {
3109 (char *) "self", NULL
3110 };
3111
3112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3115 {
3116 PyThreadState* __tstate = wxPyBeginAllowThreads();
3117 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3118
3119 wxPyEndAllowThreads(__tstate);
3120 if (PyErr_Occurred()) SWIG_fail;
3121 }
3122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3123 return resultobj;
3124 fail:
3125 return NULL;
3126 }
3127
3128
3129 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3130 PyObject *resultobj;
3131 wxBitmap *arg1 = (wxBitmap *) 0 ;
3132 wxMask *arg2 = (wxMask *) 0 ;
3133 PyObject * obj0 = 0 ;
3134 PyObject * obj1 = 0 ;
3135 char *kwnames[] = {
3136 (char *) "self",(char *) "mask", NULL
3137 };
3138
3139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3142 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3144 {
3145 PyThreadState* __tstate = wxPyBeginAllowThreads();
3146 (arg1)->SetMask(arg2);
3147
3148 wxPyEndAllowThreads(__tstate);
3149 if (PyErr_Occurred()) SWIG_fail;
3150 }
3151 Py_INCREF(Py_None); resultobj = Py_None;
3152 return resultobj;
3153 fail:
3154 return NULL;
3155 }
3156
3157
3158 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3159 PyObject *resultobj;
3160 wxBitmap *arg1 = (wxBitmap *) 0 ;
3161 wxColour *arg2 = 0 ;
3162 wxColour temp2 ;
3163 PyObject * obj0 = 0 ;
3164 PyObject * obj1 = 0 ;
3165 char *kwnames[] = {
3166 (char *) "self",(char *) "colour", NULL
3167 };
3168
3169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3172 {
3173 arg2 = &temp2;
3174 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3175 }
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 Py_INCREF(Py_None); resultobj = Py_None;
3184 return resultobj;
3185 fail:
3186 return NULL;
3187 }
3188
3189
3190 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3191 PyObject *resultobj;
3192 wxBitmap *arg1 = (wxBitmap *) 0 ;
3193 wxRect *arg2 = 0 ;
3194 SwigValueWrapper< wxBitmap > result;
3195 wxRect temp2 ;
3196 PyObject * obj0 = 0 ;
3197 PyObject * obj1 = 0 ;
3198 char *kwnames[] = {
3199 (char *) "self",(char *) "rect", NULL
3200 };
3201
3202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3205 {
3206 arg2 = &temp2;
3207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3208 }
3209 {
3210 PyThreadState* __tstate = wxPyBeginAllowThreads();
3211 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3212
3213 wxPyEndAllowThreads(__tstate);
3214 if (PyErr_Occurred()) SWIG_fail;
3215 }
3216 {
3217 wxBitmap * resultptr;
3218 resultptr = new wxBitmap((wxBitmap &) result);
3219 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3220 }
3221 return resultobj;
3222 fail:
3223 return NULL;
3224 }
3225
3226
3227 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3228 PyObject *resultobj;
3229 wxBitmap *arg1 = (wxBitmap *) 0 ;
3230 wxString *arg2 = 0 ;
3231 int arg3 ;
3232 wxPalette *arg4 = (wxPalette *) NULL ;
3233 bool result;
3234 bool temp2 = False ;
3235 PyObject * obj0 = 0 ;
3236 PyObject * obj1 = 0 ;
3237 PyObject * obj2 = 0 ;
3238 PyObject * obj3 = 0 ;
3239 char *kwnames[] = {
3240 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3241 };
3242
3243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3246 {
3247 arg2 = wxString_in_helper(obj1);
3248 if (arg2 == NULL) SWIG_fail;
3249 temp2 = True;
3250 }
3251 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3252 if (PyErr_Occurred()) SWIG_fail;
3253 if (obj3) {
3254 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3256 }
3257 {
3258 PyThreadState* __tstate = wxPyBeginAllowThreads();
3259 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3260
3261 wxPyEndAllowThreads(__tstate);
3262 if (PyErr_Occurred()) SWIG_fail;
3263 }
3264 {
3265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3266 }
3267 {
3268 if (temp2)
3269 delete arg2;
3270 }
3271 return resultobj;
3272 fail:
3273 {
3274 if (temp2)
3275 delete arg2;
3276 }
3277 return NULL;
3278 }
3279
3280
3281 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxBitmap *arg1 = (wxBitmap *) 0 ;
3284 wxString *arg2 = 0 ;
3285 int arg3 ;
3286 bool result;
3287 bool temp2 = False ;
3288 PyObject * obj0 = 0 ;
3289 PyObject * obj1 = 0 ;
3290 PyObject * obj2 = 0 ;
3291 char *kwnames[] = {
3292 (char *) "self",(char *) "name",(char *) "type", NULL
3293 };
3294
3295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3298 {
3299 arg2 = wxString_in_helper(obj1);
3300 if (arg2 == NULL) SWIG_fail;
3301 temp2 = True;
3302 }
3303 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 {
3313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3314 }
3315 {
3316 if (temp2)
3317 delete arg2;
3318 }
3319 return resultobj;
3320 fail:
3321 {
3322 if (temp2)
3323 delete arg2;
3324 }
3325 return NULL;
3326 }
3327
3328
3329 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3330 PyObject *resultobj;
3331 wxBitmap *arg1 = (wxBitmap *) 0 ;
3332 wxIcon *arg2 = 0 ;
3333 bool result;
3334 PyObject * obj0 = 0 ;
3335 PyObject * obj1 = 0 ;
3336 char *kwnames[] = {
3337 (char *) "self",(char *) "icon", NULL
3338 };
3339
3340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3343 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3344 SWIG_POINTER_EXCEPTION | 0)) == -1)
3345 SWIG_fail;
3346 if (arg2 == NULL) {
3347 PyErr_SetString(PyExc_TypeError,"null reference");
3348 SWIG_fail;
3349 }
3350 {
3351 PyThreadState* __tstate = wxPyBeginAllowThreads();
3352 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3353
3354 wxPyEndAllowThreads(__tstate);
3355 if (PyErr_Occurred()) SWIG_fail;
3356 }
3357 {
3358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3359 }
3360 return resultobj;
3361 fail:
3362 return NULL;
3363 }
3364
3365
3366 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3367 PyObject *resultobj;
3368 wxBitmap *arg1 = (wxBitmap *) 0 ;
3369 int arg2 ;
3370 PyObject * obj0 = 0 ;
3371 PyObject * obj1 = 0 ;
3372 char *kwnames[] = {
3373 (char *) "self",(char *) "height", NULL
3374 };
3375
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3379 arg2 = (int) SWIG_AsInt(obj1);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 {
3382 PyThreadState* __tstate = wxPyBeginAllowThreads();
3383 (arg1)->SetHeight(arg2);
3384
3385 wxPyEndAllowThreads(__tstate);
3386 if (PyErr_Occurred()) SWIG_fail;
3387 }
3388 Py_INCREF(Py_None); resultobj = Py_None;
3389 return resultobj;
3390 fail:
3391 return NULL;
3392 }
3393
3394
3395 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3396 PyObject *resultobj;
3397 wxBitmap *arg1 = (wxBitmap *) 0 ;
3398 int arg2 ;
3399 PyObject * obj0 = 0 ;
3400 PyObject * obj1 = 0 ;
3401 char *kwnames[] = {
3402 (char *) "self",(char *) "width", NULL
3403 };
3404
3405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3408 arg2 = (int) SWIG_AsInt(obj1);
3409 if (PyErr_Occurred()) SWIG_fail;
3410 {
3411 PyThreadState* __tstate = wxPyBeginAllowThreads();
3412 (arg1)->SetWidth(arg2);
3413
3414 wxPyEndAllowThreads(__tstate);
3415 if (PyErr_Occurred()) SWIG_fail;
3416 }
3417 Py_INCREF(Py_None); resultobj = Py_None;
3418 return resultobj;
3419 fail:
3420 return NULL;
3421 }
3422
3423
3424 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3425 PyObject *resultobj;
3426 wxBitmap *arg1 = (wxBitmap *) 0 ;
3427 int arg2 ;
3428 PyObject * obj0 = 0 ;
3429 PyObject * obj1 = 0 ;
3430 char *kwnames[] = {
3431 (char *) "self",(char *) "depth", NULL
3432 };
3433
3434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3437 arg2 = (int) SWIG_AsInt(obj1);
3438 if (PyErr_Occurred()) SWIG_fail;
3439 {
3440 PyThreadState* __tstate = wxPyBeginAllowThreads();
3441 (arg1)->SetDepth(arg2);
3442
3443 wxPyEndAllowThreads(__tstate);
3444 if (PyErr_Occurred()) SWIG_fail;
3445 }
3446 Py_INCREF(Py_None); resultobj = Py_None;
3447 return resultobj;
3448 fail:
3449 return NULL;
3450 }
3451
3452
3453 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3454 PyObject *resultobj;
3455 wxBitmap *arg1 = (wxBitmap *) 0 ;
3456 wxSize *arg2 = 0 ;
3457 wxSize temp2 ;
3458 PyObject * obj0 = 0 ;
3459 PyObject * obj1 = 0 ;
3460 char *kwnames[] = {
3461 (char *) "self",(char *) "size", NULL
3462 };
3463
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3467 {
3468 arg2 = &temp2;
3469 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3470 }
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 Py_INCREF(Py_None); resultobj = Py_None;
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3486 PyObject *resultobj;
3487 wxBitmap *arg1 = (wxBitmap *) 0 ;
3488 wxCursor *arg2 = 0 ;
3489 bool result;
3490 PyObject * obj0 = 0 ;
3491 PyObject * obj1 = 0 ;
3492 char *kwnames[] = {
3493 (char *) "self",(char *) "cursor", NULL
3494 };
3495
3496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3499 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3500 SWIG_POINTER_EXCEPTION | 0)) == -1)
3501 SWIG_fail;
3502 if (arg2 == NULL) {
3503 PyErr_SetString(PyExc_TypeError,"null reference");
3504 SWIG_fail;
3505 }
3506 {
3507 PyThreadState* __tstate = wxPyBeginAllowThreads();
3508 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3509
3510 wxPyEndAllowThreads(__tstate);
3511 if (PyErr_Occurred()) SWIG_fail;
3512 }
3513 {
3514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3515 }
3516 return resultobj;
3517 fail:
3518 return NULL;
3519 }
3520
3521
3522 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3523 PyObject *resultobj;
3524 wxBitmap *arg1 = (wxBitmap *) 0 ;
3525 int result;
3526 PyObject * obj0 = 0 ;
3527 char *kwnames[] = {
3528 (char *) "self", NULL
3529 };
3530
3531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3534 {
3535 PyThreadState* __tstate = wxPyBeginAllowThreads();
3536 result = (int)(arg1)->GetQuality();
3537
3538 wxPyEndAllowThreads(__tstate);
3539 if (PyErr_Occurred()) SWIG_fail;
3540 }
3541 resultobj = SWIG_FromInt((int)result);
3542 return resultobj;
3543 fail:
3544 return NULL;
3545 }
3546
3547
3548 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3549 PyObject *resultobj;
3550 wxBitmap *arg1 = (wxBitmap *) 0 ;
3551 int arg2 ;
3552 PyObject * obj0 = 0 ;
3553 PyObject * obj1 = 0 ;
3554 char *kwnames[] = {
3555 (char *) "self",(char *) "q", NULL
3556 };
3557
3558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3561 arg2 = (int) SWIG_AsInt(obj1);
3562 if (PyErr_Occurred()) SWIG_fail;
3563 {
3564 PyThreadState* __tstate = wxPyBeginAllowThreads();
3565 (arg1)->SetQuality(arg2);
3566
3567 wxPyEndAllowThreads(__tstate);
3568 if (PyErr_Occurred()) SWIG_fail;
3569 }
3570 Py_INCREF(Py_None); resultobj = Py_None;
3571 return resultobj;
3572 fail:
3573 return NULL;
3574 }
3575
3576
3577 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3578 PyObject *resultobj;
3579 wxBitmap *arg1 = (wxBitmap *) 0 ;
3580 wxBitmap *arg2 = (wxBitmap *) 0 ;
3581 bool result;
3582 PyObject * obj0 = 0 ;
3583 PyObject * obj1 = 0 ;
3584 char *kwnames[] = {
3585 (char *) "self",(char *) "other", NULL
3586 };
3587
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3596
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 {
3601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3602 }
3603 return resultobj;
3604 fail:
3605 return NULL;
3606 }
3607
3608
3609 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3610 PyObject *resultobj;
3611 wxBitmap *arg1 = (wxBitmap *) 0 ;
3612 wxBitmap *arg2 = (wxBitmap *) 0 ;
3613 bool result;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 char *kwnames[] = {
3617 (char *) "self",(char *) "other", NULL
3618 };
3619
3620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3623 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3625 {
3626 PyThreadState* __tstate = wxPyBeginAllowThreads();
3627 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3628
3629 wxPyEndAllowThreads(__tstate);
3630 if (PyErr_Occurred()) SWIG_fail;
3631 }
3632 {
3633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3634 }
3635 return resultobj;
3636 fail:
3637 return NULL;
3638 }
3639
3640
3641 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3642 PyObject *obj;
3643 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3644 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3645 Py_INCREF(obj);
3646 return Py_BuildValue((char *)"");
3647 }
3648 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3649 PyObject *resultobj;
3650 wxBitmap *arg1 = 0 ;
3651 wxColour const &arg2_defvalue = wxNullColour ;
3652 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3653 wxMask *result;
3654 wxColour temp2 ;
3655 PyObject * obj0 = 0 ;
3656 PyObject * obj1 = 0 ;
3657 char *kwnames[] = {
3658 (char *) "bitmap",(char *) "colour", NULL
3659 };
3660
3661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3663 SWIG_POINTER_EXCEPTION | 0)) == -1)
3664 SWIG_fail;
3665 if (arg1 == NULL) {
3666 PyErr_SetString(PyExc_TypeError,"null reference");
3667 SWIG_fail;
3668 }
3669 if (obj1) {
3670 {
3671 arg2 = &temp2;
3672 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3673 }
3674 }
3675 {
3676 if (!wxPyCheckForApp()) SWIG_fail;
3677 PyThreadState* __tstate = wxPyBeginAllowThreads();
3678 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3679
3680 wxPyEndAllowThreads(__tstate);
3681 if (PyErr_Occurred()) SWIG_fail;
3682 }
3683 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3684 return resultobj;
3685 fail:
3686 return NULL;
3687 }
3688
3689
3690 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3691 PyObject *obj;
3692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3693 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3694 Py_INCREF(obj);
3695 return Py_BuildValue((char *)"");
3696 }
3697 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3698 PyObject *resultobj;
3699 wxString *arg1 = 0 ;
3700 int arg2 ;
3701 int arg3 = (int) -1 ;
3702 int arg4 = (int) -1 ;
3703 wxIcon *result;
3704 bool temp1 = False ;
3705 PyObject * obj0 = 0 ;
3706 PyObject * obj1 = 0 ;
3707 PyObject * obj2 = 0 ;
3708 PyObject * obj3 = 0 ;
3709 char *kwnames[] = {
3710 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3711 };
3712
3713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3714 {
3715 arg1 = wxString_in_helper(obj0);
3716 if (arg1 == NULL) SWIG_fail;
3717 temp1 = True;
3718 }
3719 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 if (obj2) {
3722 arg3 = (int) SWIG_AsInt(obj2);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 if (obj3) {
3726 arg4 = (int) SWIG_AsInt(obj3);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 {
3730 if (!wxPyCheckForApp()) SWIG_fail;
3731 PyThreadState* __tstate = wxPyBeginAllowThreads();
3732 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3733
3734 wxPyEndAllowThreads(__tstate);
3735 if (PyErr_Occurred()) SWIG_fail;
3736 }
3737 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3738 {
3739 if (temp1)
3740 delete arg1;
3741 }
3742 return resultobj;
3743 fail:
3744 {
3745 if (temp1)
3746 delete arg1;
3747 }
3748 return NULL;
3749 }
3750
3751
3752 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3753 PyObject *resultobj;
3754 wxIcon *arg1 = (wxIcon *) 0 ;
3755 PyObject * obj0 = 0 ;
3756 char *kwnames[] = {
3757 (char *) "self", NULL
3758 };
3759
3760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3763 {
3764 PyThreadState* __tstate = wxPyBeginAllowThreads();
3765 delete arg1;
3766
3767 wxPyEndAllowThreads(__tstate);
3768 if (PyErr_Occurred()) SWIG_fail;
3769 }
3770 Py_INCREF(Py_None); resultobj = Py_None;
3771 return resultobj;
3772 fail:
3773 return NULL;
3774 }
3775
3776
3777 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3778 PyObject *resultobj;
3779 wxIcon *result;
3780 char *kwnames[] = {
3781 NULL
3782 };
3783
3784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3785 {
3786 if (!wxPyCheckForApp()) SWIG_fail;
3787 PyThreadState* __tstate = wxPyBeginAllowThreads();
3788 result = (wxIcon *)new wxIcon();
3789
3790 wxPyEndAllowThreads(__tstate);
3791 if (PyErr_Occurred()) SWIG_fail;
3792 }
3793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3794 return resultobj;
3795 fail:
3796 return NULL;
3797 }
3798
3799
3800 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3801 PyObject *resultobj;
3802 wxIconLocation *arg1 = 0 ;
3803 wxIcon *result;
3804 PyObject * obj0 = 0 ;
3805 char *kwnames[] = {
3806 (char *) "loc", NULL
3807 };
3808
3809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3811 SWIG_POINTER_EXCEPTION | 0)) == -1)
3812 SWIG_fail;
3813 if (arg1 == NULL) {
3814 PyErr_SetString(PyExc_TypeError,"null reference");
3815 SWIG_fail;
3816 }
3817 {
3818 if (!wxPyCheckForApp()) SWIG_fail;
3819 PyThreadState* __tstate = wxPyBeginAllowThreads();
3820 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3821
3822 wxPyEndAllowThreads(__tstate);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 }
3825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3826 return resultobj;
3827 fail:
3828 return NULL;
3829 }
3830
3831
3832 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3833 PyObject *resultobj;
3834 wxBitmap *arg1 = 0 ;
3835 wxIcon *result;
3836 PyObject * obj0 = 0 ;
3837 char *kwnames[] = {
3838 (char *) "bmp", NULL
3839 };
3840
3841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3843 SWIG_POINTER_EXCEPTION | 0)) == -1)
3844 SWIG_fail;
3845 if (arg1 == NULL) {
3846 PyErr_SetString(PyExc_TypeError,"null reference");
3847 SWIG_fail;
3848 }
3849 {
3850 if (!wxPyCheckForApp()) SWIG_fail;
3851 PyThreadState* __tstate = wxPyBeginAllowThreads();
3852 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3853
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3858 return resultobj;
3859 fail:
3860 return NULL;
3861 }
3862
3863
3864 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj;
3866 PyObject *arg1 = (PyObject *) 0 ;
3867 wxIcon *result;
3868 PyObject * obj0 = 0 ;
3869 char *kwnames[] = {
3870 (char *) "listOfStrings", NULL
3871 };
3872
3873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3874 arg1 = obj0;
3875 {
3876 if (!wxPyCheckForApp()) SWIG_fail;
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = (wxIcon *)new_wxIcon(arg1);
3879
3880 wxPyEndAllowThreads(__tstate);
3881 if (PyErr_Occurred()) SWIG_fail;
3882 }
3883 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3884 return resultobj;
3885 fail:
3886 return NULL;
3887 }
3888
3889
3890 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3891 PyObject *resultobj;
3892 wxIcon *arg1 = (wxIcon *) 0 ;
3893 wxString *arg2 = 0 ;
3894 int arg3 ;
3895 bool result;
3896 bool temp2 = False ;
3897 PyObject * obj0 = 0 ;
3898 PyObject * obj1 = 0 ;
3899 PyObject * obj2 = 0 ;
3900 char *kwnames[] = {
3901 (char *) "self",(char *) "name",(char *) "type", NULL
3902 };
3903
3904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3907 {
3908 arg2 = wxString_in_helper(obj1);
3909 if (arg2 == NULL) SWIG_fail;
3910 temp2 = True;
3911 }
3912 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3913 if (PyErr_Occurred()) SWIG_fail;
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3917
3918 wxPyEndAllowThreads(__tstate);
3919 if (PyErr_Occurred()) SWIG_fail;
3920 }
3921 {
3922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3923 }
3924 {
3925 if (temp2)
3926 delete arg2;
3927 }
3928 return resultobj;
3929 fail:
3930 {
3931 if (temp2)
3932 delete arg2;
3933 }
3934 return NULL;
3935 }
3936
3937
3938 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3939 PyObject *resultobj;
3940 wxIcon *arg1 = (wxIcon *) 0 ;
3941 long result;
3942 PyObject * obj0 = 0 ;
3943 char *kwnames[] = {
3944 (char *) "self", NULL
3945 };
3946
3947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3950 {
3951 PyThreadState* __tstate = wxPyBeginAllowThreads();
3952 result = (long)(arg1)->GetHandle();
3953
3954 wxPyEndAllowThreads(__tstate);
3955 if (PyErr_Occurred()) SWIG_fail;
3956 }
3957 resultobj = SWIG_FromLong((long)result);
3958 return resultobj;
3959 fail:
3960 return NULL;
3961 }
3962
3963
3964 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3965 PyObject *resultobj;
3966 wxIcon *arg1 = (wxIcon *) 0 ;
3967 long arg2 ;
3968 PyObject * obj0 = 0 ;
3969 PyObject * obj1 = 0 ;
3970 char *kwnames[] = {
3971 (char *) "self",(char *) "handle", NULL
3972 };
3973
3974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3977 arg2 = (long) SWIG_AsLong(obj1);
3978 if (PyErr_Occurred()) SWIG_fail;
3979 {
3980 PyThreadState* __tstate = wxPyBeginAllowThreads();
3981 wxIcon_SetHandle(arg1,arg2);
3982
3983 wxPyEndAllowThreads(__tstate);
3984 if (PyErr_Occurred()) SWIG_fail;
3985 }
3986 Py_INCREF(Py_None); resultobj = Py_None;
3987 return resultobj;
3988 fail:
3989 return NULL;
3990 }
3991
3992
3993 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3994 PyObject *resultobj;
3995 wxIcon *arg1 = (wxIcon *) 0 ;
3996 bool result;
3997 PyObject * obj0 = 0 ;
3998 char *kwnames[] = {
3999 (char *) "self", NULL
4000 };
4001
4002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4005 {
4006 PyThreadState* __tstate = wxPyBeginAllowThreads();
4007 result = (bool)(arg1)->Ok();
4008
4009 wxPyEndAllowThreads(__tstate);
4010 if (PyErr_Occurred()) SWIG_fail;
4011 }
4012 {
4013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4014 }
4015 return resultobj;
4016 fail:
4017 return NULL;
4018 }
4019
4020
4021 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4022 PyObject *resultobj;
4023 wxIcon *arg1 = (wxIcon *) 0 ;
4024 int result;
4025 PyObject * obj0 = 0 ;
4026 char *kwnames[] = {
4027 (char *) "self", NULL
4028 };
4029
4030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4033 {
4034 PyThreadState* __tstate = wxPyBeginAllowThreads();
4035 result = (int)(arg1)->GetWidth();
4036
4037 wxPyEndAllowThreads(__tstate);
4038 if (PyErr_Occurred()) SWIG_fail;
4039 }
4040 resultobj = SWIG_FromInt((int)result);
4041 return resultobj;
4042 fail:
4043 return NULL;
4044 }
4045
4046
4047 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4048 PyObject *resultobj;
4049 wxIcon *arg1 = (wxIcon *) 0 ;
4050 int result;
4051 PyObject * obj0 = 0 ;
4052 char *kwnames[] = {
4053 (char *) "self", NULL
4054 };
4055
4056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (int)(arg1)->GetHeight();
4062
4063 wxPyEndAllowThreads(__tstate);
4064 if (PyErr_Occurred()) SWIG_fail;
4065 }
4066 resultobj = SWIG_FromInt((int)result);
4067 return resultobj;
4068 fail:
4069 return NULL;
4070 }
4071
4072
4073 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4074 PyObject *resultobj;
4075 wxIcon *arg1 = (wxIcon *) 0 ;
4076 int result;
4077 PyObject * obj0 = 0 ;
4078 char *kwnames[] = {
4079 (char *) "self", NULL
4080 };
4081
4082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (int)(arg1)->GetDepth();
4088
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = SWIG_FromInt((int)result);
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj;
4101 wxIcon *arg1 = (wxIcon *) 0 ;
4102 int arg2 ;
4103 PyObject * obj0 = 0 ;
4104 PyObject * obj1 = 0 ;
4105 char *kwnames[] = {
4106 (char *) "self",(char *) "w", NULL
4107 };
4108
4109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4112 arg2 = (int) SWIG_AsInt(obj1);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 {
4115 PyThreadState* __tstate = wxPyBeginAllowThreads();
4116 (arg1)->SetWidth(arg2);
4117
4118 wxPyEndAllowThreads(__tstate);
4119 if (PyErr_Occurred()) SWIG_fail;
4120 }
4121 Py_INCREF(Py_None); resultobj = Py_None;
4122 return resultobj;
4123 fail:
4124 return NULL;
4125 }
4126
4127
4128 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4129 PyObject *resultobj;
4130 wxIcon *arg1 = (wxIcon *) 0 ;
4131 int arg2 ;
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 char *kwnames[] = {
4135 (char *) "self",(char *) "h", NULL
4136 };
4137
4138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4141 arg2 = (int) SWIG_AsInt(obj1);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 {
4144 PyThreadState* __tstate = wxPyBeginAllowThreads();
4145 (arg1)->SetHeight(arg2);
4146
4147 wxPyEndAllowThreads(__tstate);
4148 if (PyErr_Occurred()) SWIG_fail;
4149 }
4150 Py_INCREF(Py_None); resultobj = Py_None;
4151 return resultobj;
4152 fail:
4153 return NULL;
4154 }
4155
4156
4157 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4158 PyObject *resultobj;
4159 wxIcon *arg1 = (wxIcon *) 0 ;
4160 int arg2 ;
4161 PyObject * obj0 = 0 ;
4162 PyObject * obj1 = 0 ;
4163 char *kwnames[] = {
4164 (char *) "self",(char *) "d", NULL
4165 };
4166
4167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4170 arg2 = (int) SWIG_AsInt(obj1);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 {
4173 PyThreadState* __tstate = wxPyBeginAllowThreads();
4174 (arg1)->SetDepth(arg2);
4175
4176 wxPyEndAllowThreads(__tstate);
4177 if (PyErr_Occurred()) SWIG_fail;
4178 }
4179 Py_INCREF(Py_None); resultobj = Py_None;
4180 return resultobj;
4181 fail:
4182 return NULL;
4183 }
4184
4185
4186 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4187 PyObject *resultobj;
4188 wxIcon *arg1 = (wxIcon *) 0 ;
4189 wxSize *arg2 = 0 ;
4190 wxSize temp2 ;
4191 PyObject * obj0 = 0 ;
4192 PyObject * obj1 = 0 ;
4193 char *kwnames[] = {
4194 (char *) "self",(char *) "size", NULL
4195 };
4196
4197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4200 {
4201 arg2 = &temp2;
4202 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4203 }
4204 {
4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
4206 (arg1)->SetSize((wxSize const &)*arg2);
4207
4208 wxPyEndAllowThreads(__tstate);
4209 if (PyErr_Occurred()) SWIG_fail;
4210 }
4211 Py_INCREF(Py_None); resultobj = Py_None;
4212 return resultobj;
4213 fail:
4214 return NULL;
4215 }
4216
4217
4218 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4219 PyObject *resultobj;
4220 wxIcon *arg1 = (wxIcon *) 0 ;
4221 wxBitmap *arg2 = 0 ;
4222 PyObject * obj0 = 0 ;
4223 PyObject * obj1 = 0 ;
4224 char *kwnames[] = {
4225 (char *) "self",(char *) "bmp", NULL
4226 };
4227
4228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4231 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4232 SWIG_POINTER_EXCEPTION | 0)) == -1)
4233 SWIG_fail;
4234 if (arg2 == NULL) {
4235 PyErr_SetString(PyExc_TypeError,"null reference");
4236 SWIG_fail;
4237 }
4238 {
4239 PyThreadState* __tstate = wxPyBeginAllowThreads();
4240 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4241
4242 wxPyEndAllowThreads(__tstate);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4245 Py_INCREF(Py_None); resultobj = Py_None;
4246 return resultobj;
4247 fail:
4248 return NULL;
4249 }
4250
4251
4252 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4253 PyObject *obj;
4254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4255 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4256 Py_INCREF(obj);
4257 return Py_BuildValue((char *)"");
4258 }
4259 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4260 PyObject *resultobj;
4261 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4262 int arg2 = (int) 0 ;
4263 wxIconLocation *result;
4264 bool temp1 = False ;
4265 PyObject * obj0 = 0 ;
4266 PyObject * obj1 = 0 ;
4267 char *kwnames[] = {
4268 (char *) "filename",(char *) "num", NULL
4269 };
4270
4271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4272 if (obj0) {
4273 {
4274 arg1 = wxString_in_helper(obj0);
4275 if (arg1 == NULL) SWIG_fail;
4276 temp1 = True;
4277 }
4278 }
4279 if (obj1) {
4280 arg2 = (int) SWIG_AsInt(obj1);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 {
4284 PyThreadState* __tstate = wxPyBeginAllowThreads();
4285 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4286
4287 wxPyEndAllowThreads(__tstate);
4288 if (PyErr_Occurred()) SWIG_fail;
4289 }
4290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4291 {
4292 if (temp1)
4293 delete arg1;
4294 }
4295 return resultobj;
4296 fail:
4297 {
4298 if (temp1)
4299 delete arg1;
4300 }
4301 return NULL;
4302 }
4303
4304
4305 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4306 PyObject *resultobj;
4307 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4308 PyObject * obj0 = 0 ;
4309 char *kwnames[] = {
4310 (char *) "self", NULL
4311 };
4312
4313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4316 {
4317 PyThreadState* __tstate = wxPyBeginAllowThreads();
4318 delete arg1;
4319
4320 wxPyEndAllowThreads(__tstate);
4321 if (PyErr_Occurred()) SWIG_fail;
4322 }
4323 Py_INCREF(Py_None); resultobj = Py_None;
4324 return resultobj;
4325 fail:
4326 return NULL;
4327 }
4328
4329
4330 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4331 PyObject *resultobj;
4332 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4333 bool result;
4334 PyObject * obj0 = 0 ;
4335 char *kwnames[] = {
4336 (char *) "self", NULL
4337 };
4338
4339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4342 {
4343 PyThreadState* __tstate = wxPyBeginAllowThreads();
4344 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4345
4346 wxPyEndAllowThreads(__tstate);
4347 if (PyErr_Occurred()) SWIG_fail;
4348 }
4349 {
4350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4351 }
4352 return resultobj;
4353 fail:
4354 return NULL;
4355 }
4356
4357
4358 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4359 PyObject *resultobj;
4360 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4361 wxString *arg2 = 0 ;
4362 bool temp2 = False ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 char *kwnames[] = {
4366 (char *) "self",(char *) "filename", NULL
4367 };
4368
4369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4372 {
4373 arg2 = wxString_in_helper(obj1);
4374 if (arg2 == NULL) SWIG_fail;
4375 temp2 = True;
4376 }
4377 {
4378 PyThreadState* __tstate = wxPyBeginAllowThreads();
4379 (arg1)->SetFileName((wxString const &)*arg2);
4380
4381 wxPyEndAllowThreads(__tstate);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 Py_INCREF(Py_None); resultobj = Py_None;
4385 {
4386 if (temp2)
4387 delete arg2;
4388 }
4389 return resultobj;
4390 fail:
4391 {
4392 if (temp2)
4393 delete arg2;
4394 }
4395 return NULL;
4396 }
4397
4398
4399 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4400 PyObject *resultobj;
4401 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4402 wxString *result;
4403 PyObject * obj0 = 0 ;
4404 char *kwnames[] = {
4405 (char *) "self", NULL
4406 };
4407
4408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4411 {
4412 PyThreadState* __tstate = wxPyBeginAllowThreads();
4413 {
4414 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4415 result = (wxString *) &_result_ref;
4416 }
4417
4418 wxPyEndAllowThreads(__tstate);
4419 if (PyErr_Occurred()) SWIG_fail;
4420 }
4421 {
4422 #if wxUSE_UNICODE
4423 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4424 #else
4425 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4426 #endif
4427 }
4428 return resultobj;
4429 fail:
4430 return NULL;
4431 }
4432
4433
4434 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4435 PyObject *resultobj;
4436 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4437 int arg2 ;
4438 PyObject * obj0 = 0 ;
4439 PyObject * obj1 = 0 ;
4440 char *kwnames[] = {
4441 (char *) "self",(char *) "num", NULL
4442 };
4443
4444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4447 arg2 = (int) SWIG_AsInt(obj1);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 {
4450 PyThreadState* __tstate = wxPyBeginAllowThreads();
4451 wxIconLocation_SetIndex(arg1,arg2);
4452
4453 wxPyEndAllowThreads(__tstate);
4454 if (PyErr_Occurred()) SWIG_fail;
4455 }
4456 Py_INCREF(Py_None); resultobj = Py_None;
4457 return resultobj;
4458 fail:
4459 return NULL;
4460 }
4461
4462
4463 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4464 PyObject *resultobj;
4465 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4466 int result;
4467 PyObject * obj0 = 0 ;
4468 char *kwnames[] = {
4469 (char *) "self", NULL
4470 };
4471
4472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 result = (int)wxIconLocation_GetIndex(arg1);
4478
4479 wxPyEndAllowThreads(__tstate);
4480 if (PyErr_Occurred()) SWIG_fail;
4481 }
4482 resultobj = SWIG_FromInt((int)result);
4483 return resultobj;
4484 fail:
4485 return NULL;
4486 }
4487
4488
4489 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4490 PyObject *obj;
4491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4492 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4493 Py_INCREF(obj);
4494 return Py_BuildValue((char *)"");
4495 }
4496 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4497 PyObject *resultobj;
4498 wxIconBundle *result;
4499 char *kwnames[] = {
4500 NULL
4501 };
4502
4503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 result = (wxIconBundle *)new wxIconBundle();
4507
4508 wxPyEndAllowThreads(__tstate);
4509 if (PyErr_Occurred()) SWIG_fail;
4510 }
4511 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4512 return resultobj;
4513 fail:
4514 return NULL;
4515 }
4516
4517
4518 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4519 PyObject *resultobj;
4520 wxString *arg1 = 0 ;
4521 long arg2 ;
4522 wxIconBundle *result;
4523 bool temp1 = False ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char *kwnames[] = {
4527 (char *) "file",(char *) "type", NULL
4528 };
4529
4530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4531 {
4532 arg1 = wxString_in_helper(obj0);
4533 if (arg1 == NULL) SWIG_fail;
4534 temp1 = True;
4535 }
4536 arg2 = (long) SWIG_AsLong(obj1);
4537 if (PyErr_Occurred()) SWIG_fail;
4538 {
4539 PyThreadState* __tstate = wxPyBeginAllowThreads();
4540 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4541
4542 wxPyEndAllowThreads(__tstate);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 }
4545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4546 {
4547 if (temp1)
4548 delete arg1;
4549 }
4550 return resultobj;
4551 fail:
4552 {
4553 if (temp1)
4554 delete arg1;
4555 }
4556 return NULL;
4557 }
4558
4559
4560 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4561 PyObject *resultobj;
4562 wxIcon *arg1 = 0 ;
4563 wxIconBundle *result;
4564 PyObject * obj0 = 0 ;
4565 char *kwnames[] = {
4566 (char *) "icon", NULL
4567 };
4568
4569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4571 SWIG_POINTER_EXCEPTION | 0)) == -1)
4572 SWIG_fail;
4573 if (arg1 == NULL) {
4574 PyErr_SetString(PyExc_TypeError,"null reference");
4575 SWIG_fail;
4576 }
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4585 return resultobj;
4586 fail:
4587 return NULL;
4588 }
4589
4590
4591 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4592 PyObject *resultobj;
4593 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4594 PyObject * obj0 = 0 ;
4595 char *kwnames[] = {
4596 (char *) "self", NULL
4597 };
4598
4599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4602 {
4603 PyThreadState* __tstate = wxPyBeginAllowThreads();
4604 delete arg1;
4605
4606 wxPyEndAllowThreads(__tstate);
4607 if (PyErr_Occurred()) SWIG_fail;
4608 }
4609 Py_INCREF(Py_None); resultobj = Py_None;
4610 return resultobj;
4611 fail:
4612 return NULL;
4613 }
4614
4615
4616 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4617 PyObject *resultobj;
4618 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4619 wxIcon *arg2 = 0 ;
4620 PyObject * obj0 = 0 ;
4621 PyObject * obj1 = 0 ;
4622 char *kwnames[] = {
4623 (char *) "self",(char *) "icon", NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4629 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4630 SWIG_POINTER_EXCEPTION | 0)) == -1)
4631 SWIG_fail;
4632 if (arg2 == NULL) {
4633 PyErr_SetString(PyExc_TypeError,"null reference");
4634 SWIG_fail;
4635 }
4636 {
4637 PyThreadState* __tstate = wxPyBeginAllowThreads();
4638 (arg1)->AddIcon((wxIcon const &)*arg2);
4639
4640 wxPyEndAllowThreads(__tstate);
4641 if (PyErr_Occurred()) SWIG_fail;
4642 }
4643 Py_INCREF(Py_None); resultobj = Py_None;
4644 return resultobj;
4645 fail:
4646 return NULL;
4647 }
4648
4649
4650 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4651 PyObject *resultobj;
4652 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4653 wxString *arg2 = 0 ;
4654 long arg3 ;
4655 bool temp2 = False ;
4656 PyObject * obj0 = 0 ;
4657 PyObject * obj1 = 0 ;
4658 PyObject * obj2 = 0 ;
4659 char *kwnames[] = {
4660 (char *) "self",(char *) "file",(char *) "type", NULL
4661 };
4662
4663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4666 {
4667 arg2 = wxString_in_helper(obj1);
4668 if (arg2 == NULL) SWIG_fail;
4669 temp2 = True;
4670 }
4671 arg3 = (long) SWIG_AsLong(obj2);
4672 if (PyErr_Occurred()) SWIG_fail;
4673 {
4674 PyThreadState* __tstate = wxPyBeginAllowThreads();
4675 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4676
4677 wxPyEndAllowThreads(__tstate);
4678 if (PyErr_Occurred()) SWIG_fail;
4679 }
4680 Py_INCREF(Py_None); resultobj = Py_None;
4681 {
4682 if (temp2)
4683 delete arg2;
4684 }
4685 return resultobj;
4686 fail:
4687 {
4688 if (temp2)
4689 delete arg2;
4690 }
4691 return NULL;
4692 }
4693
4694
4695 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4696 PyObject *resultobj;
4697 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4698 wxSize *arg2 = 0 ;
4699 wxIcon *result;
4700 wxSize temp2 ;
4701 PyObject * obj0 = 0 ;
4702 PyObject * obj1 = 0 ;
4703 char *kwnames[] = {
4704 (char *) "self",(char *) "size", NULL
4705 };
4706
4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4710 {
4711 arg2 = &temp2;
4712 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4713 }
4714 {
4715 PyThreadState* __tstate = wxPyBeginAllowThreads();
4716 {
4717 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4718 result = (wxIcon *) &_result_ref;
4719 }
4720
4721 wxPyEndAllowThreads(__tstate);
4722 if (PyErr_Occurred()) SWIG_fail;
4723 }
4724 {
4725 wxIcon* resultptr = new wxIcon(*result);
4726 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4727 }
4728 return resultobj;
4729 fail:
4730 return NULL;
4731 }
4732
4733
4734 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4735 PyObject *obj;
4736 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4737 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4738 Py_INCREF(obj);
4739 return Py_BuildValue((char *)"");
4740 }
4741 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4742 PyObject *resultobj;
4743 wxString *arg1 = (wxString *) 0 ;
4744 long arg2 ;
4745 int arg3 = (int) 0 ;
4746 int arg4 = (int) 0 ;
4747 wxCursor *result;
4748 bool temp1 = False ;
4749 PyObject * obj0 = 0 ;
4750 PyObject * obj1 = 0 ;
4751 PyObject * obj2 = 0 ;
4752 PyObject * obj3 = 0 ;
4753 char *kwnames[] = {
4754 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4755 };
4756
4757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4758 {
4759 arg1 = wxString_in_helper(obj0);
4760 if (arg1 == NULL) SWIG_fail;
4761 temp1 = True;
4762 }
4763 arg2 = (long) SWIG_AsLong(obj1);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 if (obj2) {
4766 arg3 = (int) SWIG_AsInt(obj2);
4767 if (PyErr_Occurred()) SWIG_fail;
4768 }
4769 if (obj3) {
4770 arg4 = (int) SWIG_AsInt(obj3);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 {
4774 if (!wxPyCheckForApp()) SWIG_fail;
4775 PyThreadState* __tstate = wxPyBeginAllowThreads();
4776 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4777
4778 wxPyEndAllowThreads(__tstate);
4779 if (PyErr_Occurred()) SWIG_fail;
4780 }
4781 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4782 {
4783 if (temp1)
4784 delete arg1;
4785 }
4786 return resultobj;
4787 fail:
4788 {
4789 if (temp1)
4790 delete arg1;
4791 }
4792 return NULL;
4793 }
4794
4795
4796 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4797 PyObject *resultobj;
4798 wxCursor *arg1 = (wxCursor *) 0 ;
4799 PyObject * obj0 = 0 ;
4800 char *kwnames[] = {
4801 (char *) "self", NULL
4802 };
4803
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4807 {
4808 PyThreadState* __tstate = wxPyBeginAllowThreads();
4809 delete arg1;
4810
4811 wxPyEndAllowThreads(__tstate);
4812 if (PyErr_Occurred()) SWIG_fail;
4813 }
4814 Py_INCREF(Py_None); resultobj = Py_None;
4815 return resultobj;
4816 fail:
4817 return NULL;
4818 }
4819
4820
4821 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4822 PyObject *resultobj;
4823 int arg1 ;
4824 wxCursor *result;
4825 PyObject * obj0 = 0 ;
4826 char *kwnames[] = {
4827 (char *) "id", NULL
4828 };
4829
4830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4831 arg1 = (int) SWIG_AsInt(obj0);
4832 if (PyErr_Occurred()) SWIG_fail;
4833 {
4834 if (!wxPyCheckForApp()) SWIG_fail;
4835 PyThreadState* __tstate = wxPyBeginAllowThreads();
4836 result = (wxCursor *)new wxCursor(arg1);
4837
4838 wxPyEndAllowThreads(__tstate);
4839 if (PyErr_Occurred()) SWIG_fail;
4840 }
4841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4842 return resultobj;
4843 fail:
4844 return NULL;
4845 }
4846
4847
4848 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4849 PyObject *resultobj;
4850 wxImage *arg1 = 0 ;
4851 wxCursor *result;
4852 PyObject * obj0 = 0 ;
4853 char *kwnames[] = {
4854 (char *) "image", NULL
4855 };
4856
4857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4859 SWIG_POINTER_EXCEPTION | 0)) == -1)
4860 SWIG_fail;
4861 if (arg1 == NULL) {
4862 PyErr_SetString(PyExc_TypeError,"null reference");
4863 SWIG_fail;
4864 }
4865 {
4866 if (!wxPyCheckForApp()) SWIG_fail;
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4874 return resultobj;
4875 fail:
4876 return NULL;
4877 }
4878
4879
4880 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj;
4882 wxCursor *arg1 = (wxCursor *) 0 ;
4883 long result;
4884 PyObject * obj0 = 0 ;
4885 char *kwnames[] = {
4886 (char *) "self", NULL
4887 };
4888
4889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4892 {
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (long)(arg1)->GetHandle();
4895
4896 wxPyEndAllowThreads(__tstate);
4897 if (PyErr_Occurred()) SWIG_fail;
4898 }
4899 resultobj = SWIG_FromLong((long)result);
4900 return resultobj;
4901 fail:
4902 return NULL;
4903 }
4904
4905
4906 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4907 PyObject *resultobj;
4908 wxCursor *arg1 = (wxCursor *) 0 ;
4909 long arg2 ;
4910 PyObject * obj0 = 0 ;
4911 PyObject * obj1 = 0 ;
4912 char *kwnames[] = {
4913 (char *) "self",(char *) "handle", NULL
4914 };
4915
4916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4919 arg2 = (long) SWIG_AsLong(obj1);
4920 if (PyErr_Occurred()) SWIG_fail;
4921 {
4922 PyThreadState* __tstate = wxPyBeginAllowThreads();
4923 wxCursor_SetHandle(arg1,arg2);
4924
4925 wxPyEndAllowThreads(__tstate);
4926 if (PyErr_Occurred()) SWIG_fail;
4927 }
4928 Py_INCREF(Py_None); resultobj = Py_None;
4929 return resultobj;
4930 fail:
4931 return NULL;
4932 }
4933
4934
4935 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4936 PyObject *resultobj;
4937 wxCursor *arg1 = (wxCursor *) 0 ;
4938 bool result;
4939 PyObject * obj0 = 0 ;
4940 char *kwnames[] = {
4941 (char *) "self", NULL
4942 };
4943
4944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4947 {
4948 PyThreadState* __tstate = wxPyBeginAllowThreads();
4949 result = (bool)(arg1)->Ok();
4950
4951 wxPyEndAllowThreads(__tstate);
4952 if (PyErr_Occurred()) SWIG_fail;
4953 }
4954 {
4955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4956 }
4957 return resultobj;
4958 fail:
4959 return NULL;
4960 }
4961
4962
4963 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4964 PyObject *resultobj;
4965 wxCursor *arg1 = (wxCursor *) 0 ;
4966 int result;
4967 PyObject * obj0 = 0 ;
4968 char *kwnames[] = {
4969 (char *) "self", NULL
4970 };
4971
4972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4975 {
4976 PyThreadState* __tstate = wxPyBeginAllowThreads();
4977 result = (int)(arg1)->GetWidth();
4978
4979 wxPyEndAllowThreads(__tstate);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 }
4982 resultobj = SWIG_FromInt((int)result);
4983 return resultobj;
4984 fail:
4985 return NULL;
4986 }
4987
4988
4989 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4990 PyObject *resultobj;
4991 wxCursor *arg1 = (wxCursor *) 0 ;
4992 int result;
4993 PyObject * obj0 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5001 {
5002 PyThreadState* __tstate = wxPyBeginAllowThreads();
5003 result = (int)(arg1)->GetHeight();
5004
5005 wxPyEndAllowThreads(__tstate);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 }
5008 resultobj = SWIG_FromInt((int)result);
5009 return resultobj;
5010 fail:
5011 return NULL;
5012 }
5013
5014
5015 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5016 PyObject *resultobj;
5017 wxCursor *arg1 = (wxCursor *) 0 ;
5018 int result;
5019 PyObject * obj0 = 0 ;
5020 char *kwnames[] = {
5021 (char *) "self", NULL
5022 };
5023
5024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5027 {
5028 PyThreadState* __tstate = wxPyBeginAllowThreads();
5029 result = (int)(arg1)->GetDepth();
5030
5031 wxPyEndAllowThreads(__tstate);
5032 if (PyErr_Occurred()) SWIG_fail;
5033 }
5034 resultobj = SWIG_FromInt((int)result);
5035 return resultobj;
5036 fail:
5037 return NULL;
5038 }
5039
5040
5041 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5042 PyObject *resultobj;
5043 wxCursor *arg1 = (wxCursor *) 0 ;
5044 int arg2 ;
5045 PyObject * obj0 = 0 ;
5046 PyObject * obj1 = 0 ;
5047 char *kwnames[] = {
5048 (char *) "self",(char *) "w", NULL
5049 };
5050
5051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5054 arg2 = (int) SWIG_AsInt(obj1);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 {
5057 PyThreadState* __tstate = wxPyBeginAllowThreads();
5058 (arg1)->SetWidth(arg2);
5059
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 Py_INCREF(Py_None); resultobj = Py_None;
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj;
5072 wxCursor *arg1 = (wxCursor *) 0 ;
5073 int arg2 ;
5074 PyObject * obj0 = 0 ;
5075 PyObject * obj1 = 0 ;
5076 char *kwnames[] = {
5077 (char *) "self",(char *) "h", NULL
5078 };
5079
5080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5083 arg2 = (int) SWIG_AsInt(obj1);
5084 if (PyErr_Occurred()) SWIG_fail;
5085 {
5086 PyThreadState* __tstate = wxPyBeginAllowThreads();
5087 (arg1)->SetHeight(arg2);
5088
5089 wxPyEndAllowThreads(__tstate);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 }
5092 Py_INCREF(Py_None); resultobj = Py_None;
5093 return resultobj;
5094 fail:
5095 return NULL;
5096 }
5097
5098
5099 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5100 PyObject *resultobj;
5101 wxCursor *arg1 = (wxCursor *) 0 ;
5102 int arg2 ;
5103 PyObject * obj0 = 0 ;
5104 PyObject * obj1 = 0 ;
5105 char *kwnames[] = {
5106 (char *) "self",(char *) "d", NULL
5107 };
5108
5109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5112 arg2 = (int) SWIG_AsInt(obj1);
5113 if (PyErr_Occurred()) SWIG_fail;
5114 {
5115 PyThreadState* __tstate = wxPyBeginAllowThreads();
5116 (arg1)->SetDepth(arg2);
5117
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 Py_INCREF(Py_None); resultobj = Py_None;
5122 return resultobj;
5123 fail:
5124 return NULL;
5125 }
5126
5127
5128 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5129 PyObject *resultobj;
5130 wxCursor *arg1 = (wxCursor *) 0 ;
5131 wxSize *arg2 = 0 ;
5132 wxSize temp2 ;
5133 PyObject * obj0 = 0 ;
5134 PyObject * obj1 = 0 ;
5135 char *kwnames[] = {
5136 (char *) "self",(char *) "size", NULL
5137 };
5138
5139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5142 {
5143 arg2 = &temp2;
5144 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5145 }
5146 {
5147 PyThreadState* __tstate = wxPyBeginAllowThreads();
5148 (arg1)->SetSize((wxSize const &)*arg2);
5149
5150 wxPyEndAllowThreads(__tstate);
5151 if (PyErr_Occurred()) SWIG_fail;
5152 }
5153 Py_INCREF(Py_None); resultobj = Py_None;
5154 return resultobj;
5155 fail:
5156 return NULL;
5157 }
5158
5159
5160 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5161 PyObject *obj;
5162 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5163 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5164 Py_INCREF(obj);
5165 return Py_BuildValue((char *)"");
5166 }
5167 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5168 PyObject *resultobj;
5169 int arg1 = (int) 0 ;
5170 int arg2 = (int) 0 ;
5171 int arg3 = (int) 0 ;
5172 int arg4 = (int) 0 ;
5173 wxRegion *result;
5174 PyObject * obj0 = 0 ;
5175 PyObject * obj1 = 0 ;
5176 PyObject * obj2 = 0 ;
5177 PyObject * obj3 = 0 ;
5178 char *kwnames[] = {
5179 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5180 };
5181
5182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5183 if (obj0) {
5184 arg1 = (int) SWIG_AsInt(obj0);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 if (obj1) {
5188 arg2 = (int) SWIG_AsInt(obj1);
5189 if (PyErr_Occurred()) SWIG_fail;
5190 }
5191 if (obj2) {
5192 arg3 = (int) SWIG_AsInt(obj2);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 if (obj3) {
5196 arg4 = (int) SWIG_AsInt(obj3);
5197 if (PyErr_Occurred()) SWIG_fail;
5198 }
5199 {
5200 if (!wxPyCheckForApp()) SWIG_fail;
5201 PyThreadState* __tstate = wxPyBeginAllowThreads();
5202 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5203
5204 wxPyEndAllowThreads(__tstate);
5205 if (PyErr_Occurred()) SWIG_fail;
5206 }
5207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5208 return resultobj;
5209 fail:
5210 return NULL;
5211 }
5212
5213
5214 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5215 PyObject *resultobj;
5216 wxBitmap *arg1 = 0 ;
5217 wxColour const &arg2_defvalue = wxNullColour ;
5218 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
5219 int arg3 = (int) 0 ;
5220 wxRegion *result;
5221 wxColour temp2 ;
5222 PyObject * obj0 = 0 ;
5223 PyObject * obj1 = 0 ;
5224 PyObject * obj2 = 0 ;
5225 char *kwnames[] = {
5226 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5227 };
5228
5229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
5230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5231 SWIG_POINTER_EXCEPTION | 0)) == -1)
5232 SWIG_fail;
5233 if (arg1 == NULL) {
5234 PyErr_SetString(PyExc_TypeError,"null reference");
5235 SWIG_fail;
5236 }
5237 if (obj1) {
5238 {
5239 arg2 = &temp2;
5240 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5241 }
5242 }
5243 if (obj2) {
5244 arg3 = (int) SWIG_AsInt(obj2);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 {
5248 if (!wxPyCheckForApp()) SWIG_fail;
5249 PyThreadState* __tstate = wxPyBeginAllowThreads();
5250 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5251
5252 wxPyEndAllowThreads(__tstate);
5253 if (PyErr_Occurred()) SWIG_fail;
5254 }
5255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5256 return resultobj;
5257 fail:
5258 return NULL;
5259 }
5260
5261
5262 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj;
5264 int arg1 ;
5265 wxPoint *arg2 = (wxPoint *) 0 ;
5266 int arg3 = (int) wxWINDING_RULE ;
5267 wxRegion *result;
5268 PyObject * obj0 = 0 ;
5269 PyObject * obj1 = 0 ;
5270 char *kwnames[] = {
5271 (char *) "points",(char *) "fillStyle", NULL
5272 };
5273
5274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5275 {
5276 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5277 if (arg2 == NULL) SWIG_fail;
5278 }
5279 if (obj1) {
5280 arg3 = (int) SWIG_AsInt(obj1);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 {
5284 if (!wxPyCheckForApp()) SWIG_fail;
5285 PyThreadState* __tstate = wxPyBeginAllowThreads();
5286 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5287
5288 wxPyEndAllowThreads(__tstate);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 }
5291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5292 {
5293 if (arg2) delete [] arg2;
5294 }
5295 return resultobj;
5296 fail:
5297 {
5298 if (arg2) delete [] arg2;
5299 }
5300 return NULL;
5301 }
5302
5303
5304 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5305 PyObject *resultobj;
5306 wxRegion *arg1 = (wxRegion *) 0 ;
5307 PyObject * obj0 = 0 ;
5308 char *kwnames[] = {
5309 (char *) "self", NULL
5310 };
5311
5312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5315 {
5316 PyThreadState* __tstate = wxPyBeginAllowThreads();
5317 delete arg1;
5318
5319 wxPyEndAllowThreads(__tstate);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 }
5322 Py_INCREF(Py_None); resultobj = Py_None;
5323 return resultobj;
5324 fail:
5325 return NULL;
5326 }
5327
5328
5329 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5330 PyObject *resultobj;
5331 wxRegion *arg1 = (wxRegion *) 0 ;
5332 PyObject * obj0 = 0 ;
5333 char *kwnames[] = {
5334 (char *) "self", NULL
5335 };
5336
5337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5340 {
5341 PyThreadState* __tstate = wxPyBeginAllowThreads();
5342 (arg1)->Clear();
5343
5344 wxPyEndAllowThreads(__tstate);
5345 if (PyErr_Occurred()) SWIG_fail;
5346 }
5347 Py_INCREF(Py_None); resultobj = Py_None;
5348 return resultobj;
5349 fail:
5350 return NULL;
5351 }
5352
5353
5354 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5355 PyObject *resultobj;
5356 wxRegion *arg1 = (wxRegion *) 0 ;
5357 int arg2 ;
5358 int arg3 ;
5359 bool result;
5360 PyObject * obj0 = 0 ;
5361 PyObject * obj1 = 0 ;
5362 PyObject * obj2 = 0 ;
5363 char *kwnames[] = {
5364 (char *) "self",(char *) "x",(char *) "y", NULL
5365 };
5366
5367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5370 arg2 = (int) SWIG_AsInt(obj1);
5371 if (PyErr_Occurred()) SWIG_fail;
5372 arg3 = (int) SWIG_AsInt(obj2);
5373 if (PyErr_Occurred()) SWIG_fail;
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 result = (bool)(arg1)->Offset(arg2,arg3);
5377
5378 wxPyEndAllowThreads(__tstate);
5379 if (PyErr_Occurred()) SWIG_fail;
5380 }
5381 {
5382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5383 }
5384 return resultobj;
5385 fail:
5386 return NULL;
5387 }
5388
5389
5390 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5391 PyObject *resultobj;
5392 wxRegion *arg1 = (wxRegion *) 0 ;
5393 int arg2 ;
5394 int arg3 ;
5395 int result;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 PyObject * obj2 = 0 ;
5399 char *kwnames[] = {
5400 (char *) "self",(char *) "x",(char *) "y", NULL
5401 };
5402
5403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5406 arg2 = (int) SWIG_AsInt(obj1);
5407 if (PyErr_Occurred()) SWIG_fail;
5408 arg3 = (int) SWIG_AsInt(obj2);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 {
5411 PyThreadState* __tstate = wxPyBeginAllowThreads();
5412 result = (int)(arg1)->Contains(arg2,arg3);
5413
5414 wxPyEndAllowThreads(__tstate);
5415 if (PyErr_Occurred()) SWIG_fail;
5416 }
5417 resultobj = SWIG_FromInt((int)result);
5418 return resultobj;
5419 fail:
5420 return NULL;
5421 }
5422
5423
5424 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5425 PyObject *resultobj;
5426 wxRegion *arg1 = (wxRegion *) 0 ;
5427 wxPoint *arg2 = 0 ;
5428 int result;
5429 wxPoint temp2 ;
5430 PyObject * obj0 = 0 ;
5431 PyObject * obj1 = 0 ;
5432 char *kwnames[] = {
5433 (char *) "self",(char *) "pt", NULL
5434 };
5435
5436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5439 {
5440 arg2 = &temp2;
5441 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5442 }
5443 {
5444 PyThreadState* __tstate = wxPyBeginAllowThreads();
5445 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5446
5447 wxPyEndAllowThreads(__tstate);
5448 if (PyErr_Occurred()) SWIG_fail;
5449 }
5450 resultobj = SWIG_FromInt((int)result);
5451 return resultobj;
5452 fail:
5453 return NULL;
5454 }
5455
5456
5457 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj;
5459 wxRegion *arg1 = (wxRegion *) 0 ;
5460 wxRect *arg2 = 0 ;
5461 int result;
5462 wxRect temp2 ;
5463 PyObject * obj0 = 0 ;
5464 PyObject * obj1 = 0 ;
5465 char *kwnames[] = {
5466 (char *) "self",(char *) "rect", NULL
5467 };
5468
5469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5472 {
5473 arg2 = &temp2;
5474 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5475 }
5476 {
5477 PyThreadState* __tstate = wxPyBeginAllowThreads();
5478 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5479
5480 wxPyEndAllowThreads(__tstate);
5481 if (PyErr_Occurred()) SWIG_fail;
5482 }
5483 resultobj = SWIG_FromInt((int)result);
5484 return resultobj;
5485 fail:
5486 return NULL;
5487 }
5488
5489
5490 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5491 PyObject *resultobj;
5492 wxRegion *arg1 = (wxRegion *) 0 ;
5493 int arg2 ;
5494 int arg3 ;
5495 int arg4 ;
5496 int arg5 ;
5497 int result;
5498 PyObject * obj0 = 0 ;
5499 PyObject * obj1 = 0 ;
5500 PyObject * obj2 = 0 ;
5501 PyObject * obj3 = 0 ;
5502 PyObject * obj4 = 0 ;
5503 char *kwnames[] = {
5504 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5505 };
5506
5507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5508 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5509 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5510 arg2 = (int) SWIG_AsInt(obj1);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 arg3 = (int) SWIG_AsInt(obj2);
5513 if (PyErr_Occurred()) SWIG_fail;
5514 arg4 = (int) SWIG_AsInt(obj3);
5515 if (PyErr_Occurred()) SWIG_fail;
5516 arg5 = (int) SWIG_AsInt(obj4);
5517 if (PyErr_Occurred()) SWIG_fail;
5518 {
5519 PyThreadState* __tstate = wxPyBeginAllowThreads();
5520 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5521
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_FromInt((int)result);
5526 return resultobj;
5527 fail:
5528 return NULL;
5529 }
5530
5531
5532 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5533 PyObject *resultobj;
5534 wxRegion *arg1 = (wxRegion *) 0 ;
5535 wxRect result;
5536 PyObject * obj0 = 0 ;
5537 char *kwnames[] = {
5538 (char *) "self", NULL
5539 };
5540
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5544 {
5545 PyThreadState* __tstate = wxPyBeginAllowThreads();
5546 result = (arg1)->GetBox();
5547
5548 wxPyEndAllowThreads(__tstate);
5549 if (PyErr_Occurred()) SWIG_fail;
5550 }
5551 {
5552 wxRect * resultptr;
5553 resultptr = new wxRect((wxRect &) result);
5554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5555 }
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj;
5564 wxRegion *arg1 = (wxRegion *) 0 ;
5565 int arg2 ;
5566 int arg3 ;
5567 int arg4 ;
5568 int arg5 ;
5569 bool result;
5570 PyObject * obj0 = 0 ;
5571 PyObject * obj1 = 0 ;
5572 PyObject * obj2 = 0 ;
5573 PyObject * obj3 = 0 ;
5574 PyObject * obj4 = 0 ;
5575 char *kwnames[] = {
5576 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5577 };
5578
5579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5582 arg2 = (int) SWIG_AsInt(obj1);
5583 if (PyErr_Occurred()) SWIG_fail;
5584 arg3 = (int) SWIG_AsInt(obj2);
5585 if (PyErr_Occurred()) SWIG_fail;
5586 arg4 = (int) SWIG_AsInt(obj3);
5587 if (PyErr_Occurred()) SWIG_fail;
5588 arg5 = (int) SWIG_AsInt(obj4);
5589 if (PyErr_Occurred()) SWIG_fail;
5590 {
5591 PyThreadState* __tstate = wxPyBeginAllowThreads();
5592 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5593
5594 wxPyEndAllowThreads(__tstate);
5595 if (PyErr_Occurred()) SWIG_fail;
5596 }
5597 {
5598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5599 }
5600 return resultobj;
5601 fail:
5602 return NULL;
5603 }
5604
5605
5606 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5607 PyObject *resultobj;
5608 wxRegion *arg1 = (wxRegion *) 0 ;
5609 wxRect *arg2 = 0 ;
5610 bool result;
5611 wxRect temp2 ;
5612 PyObject * obj0 = 0 ;
5613 PyObject * obj1 = 0 ;
5614 char *kwnames[] = {
5615 (char *) "self",(char *) "rect", NULL
5616 };
5617
5618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5621 {
5622 arg2 = &temp2;
5623 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5624 }
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5628
5629 wxPyEndAllowThreads(__tstate);
5630 if (PyErr_Occurred()) SWIG_fail;
5631 }
5632 {
5633 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5634 }
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj;
5643 wxRegion *arg1 = (wxRegion *) 0 ;
5644 wxRegion *arg2 = 0 ;
5645 bool result;
5646 PyObject * obj0 = 0 ;
5647 PyObject * obj1 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self",(char *) "region", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5655 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5656 SWIG_POINTER_EXCEPTION | 0)) == -1)
5657 SWIG_fail;
5658 if (arg2 == NULL) {
5659 PyErr_SetString(PyExc_TypeError,"null reference");
5660 SWIG_fail;
5661 }
5662 {
5663 PyThreadState* __tstate = wxPyBeginAllowThreads();
5664 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5665
5666 wxPyEndAllowThreads(__tstate);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 }
5669 {
5670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5671 }
5672 return resultobj;
5673 fail:
5674 return NULL;
5675 }
5676
5677
5678 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5679 PyObject *resultobj;
5680 wxRegion *arg1 = (wxRegion *) 0 ;
5681 bool result;
5682 PyObject * obj0 = 0 ;
5683 char *kwnames[] = {
5684 (char *) "self", NULL
5685 };
5686
5687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 result = (bool)(arg1)->IsEmpty();
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) SWIG_fail;
5696 }
5697 {
5698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5699 }
5700 return resultobj;
5701 fail:
5702 return NULL;
5703 }
5704
5705
5706 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxRegion *arg1 = (wxRegion *) 0 ;
5709 int arg2 ;
5710 int arg3 ;
5711 int arg4 ;
5712 int arg5 ;
5713 bool result;
5714 PyObject * obj0 = 0 ;
5715 PyObject * obj1 = 0 ;
5716 PyObject * obj2 = 0 ;
5717 PyObject * obj3 = 0 ;
5718 PyObject * obj4 = 0 ;
5719 char *kwnames[] = {
5720 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5721 };
5722
5723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5726 arg2 = (int) SWIG_AsInt(obj1);
5727 if (PyErr_Occurred()) SWIG_fail;
5728 arg3 = (int) SWIG_AsInt(obj2);
5729 if (PyErr_Occurred()) SWIG_fail;
5730 arg4 = (int) SWIG_AsInt(obj3);
5731 if (PyErr_Occurred()) SWIG_fail;
5732 arg5 = (int) SWIG_AsInt(obj4);
5733 if (PyErr_Occurred()) SWIG_fail;
5734 {
5735 PyThreadState* __tstate = wxPyBeginAllowThreads();
5736 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5737
5738 wxPyEndAllowThreads(__tstate);
5739 if (PyErr_Occurred()) SWIG_fail;
5740 }
5741 {
5742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5743 }
5744 return resultobj;
5745 fail:
5746 return NULL;
5747 }
5748
5749
5750 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5751 PyObject *resultobj;
5752 wxRegion *arg1 = (wxRegion *) 0 ;
5753 wxRect *arg2 = 0 ;
5754 bool result;
5755 wxRect temp2 ;
5756 PyObject * obj0 = 0 ;
5757 PyObject * obj1 = 0 ;
5758 char *kwnames[] = {
5759 (char *) "self",(char *) "rect", NULL
5760 };
5761
5762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5765 {
5766 arg2 = &temp2;
5767 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5768 }
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5772
5773 wxPyEndAllowThreads(__tstate);
5774 if (PyErr_Occurred()) SWIG_fail;
5775 }
5776 {
5777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5778 }
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj;
5787 wxRegion *arg1 = (wxRegion *) 0 ;
5788 wxRegion *arg2 = 0 ;
5789 bool result;
5790 PyObject * obj0 = 0 ;
5791 PyObject * obj1 = 0 ;
5792 char *kwnames[] = {
5793 (char *) "self",(char *) "region", NULL
5794 };
5795
5796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5799 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5800 SWIG_POINTER_EXCEPTION | 0)) == -1)
5801 SWIG_fail;
5802 if (arg2 == NULL) {
5803 PyErr_SetString(PyExc_TypeError,"null reference");
5804 SWIG_fail;
5805 }
5806 {
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5809
5810 wxPyEndAllowThreads(__tstate);
5811 if (PyErr_Occurred()) SWIG_fail;
5812 }
5813 {
5814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5815 }
5816 return resultobj;
5817 fail:
5818 return NULL;
5819 }
5820
5821
5822 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5823 PyObject *resultobj;
5824 wxRegion *arg1 = (wxRegion *) 0 ;
5825 int arg2 ;
5826 int arg3 ;
5827 int arg4 ;
5828 int arg5 ;
5829 bool result;
5830 PyObject * obj0 = 0 ;
5831 PyObject * obj1 = 0 ;
5832 PyObject * obj2 = 0 ;
5833 PyObject * obj3 = 0 ;
5834 PyObject * obj4 = 0 ;
5835 char *kwnames[] = {
5836 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5837 };
5838
5839 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5840 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5841 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5842 arg2 = (int) SWIG_AsInt(obj1);
5843 if (PyErr_Occurred()) SWIG_fail;
5844 arg3 = (int) SWIG_AsInt(obj2);
5845 if (PyErr_Occurred()) SWIG_fail;
5846 arg4 = (int) SWIG_AsInt(obj3);
5847 if (PyErr_Occurred()) SWIG_fail;
5848 arg5 = (int) SWIG_AsInt(obj4);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 {
5851 PyThreadState* __tstate = wxPyBeginAllowThreads();
5852 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5853
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 {
5858 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5859 }
5860 return resultobj;
5861 fail:
5862 return NULL;
5863 }
5864
5865
5866 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5867 PyObject *resultobj;
5868 wxRegion *arg1 = (wxRegion *) 0 ;
5869 wxRect *arg2 = 0 ;
5870 bool result;
5871 wxRect temp2 ;
5872 PyObject * obj0 = 0 ;
5873 PyObject * obj1 = 0 ;
5874 char *kwnames[] = {
5875 (char *) "self",(char *) "rect", NULL
5876 };
5877
5878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5881 {
5882 arg2 = &temp2;
5883 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5884 }
5885 {
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5888
5889 wxPyEndAllowThreads(__tstate);
5890 if (PyErr_Occurred()) SWIG_fail;
5891 }
5892 {
5893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5894 }
5895 return resultobj;
5896 fail:
5897 return NULL;
5898 }
5899
5900
5901 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5902 PyObject *resultobj;
5903 wxRegion *arg1 = (wxRegion *) 0 ;
5904 wxRegion *arg2 = 0 ;
5905 bool result;
5906 PyObject * obj0 = 0 ;
5907 PyObject * obj1 = 0 ;
5908 char *kwnames[] = {
5909 (char *) "self",(char *) "region", NULL
5910 };
5911
5912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5915 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5916 SWIG_POINTER_EXCEPTION | 0)) == -1)
5917 SWIG_fail;
5918 if (arg2 == NULL) {
5919 PyErr_SetString(PyExc_TypeError,"null reference");
5920 SWIG_fail;
5921 }
5922 {
5923 PyThreadState* __tstate = wxPyBeginAllowThreads();
5924 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5925
5926 wxPyEndAllowThreads(__tstate);
5927 if (PyErr_Occurred()) SWIG_fail;
5928 }
5929 {
5930 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5931 }
5932 return resultobj;
5933 fail:
5934 return NULL;
5935 }
5936
5937
5938 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5939 PyObject *resultobj;
5940 wxRegion *arg1 = (wxRegion *) 0 ;
5941 int arg2 ;
5942 int arg3 ;
5943 int arg4 ;
5944 int arg5 ;
5945 bool result;
5946 PyObject * obj0 = 0 ;
5947 PyObject * obj1 = 0 ;
5948 PyObject * obj2 = 0 ;
5949 PyObject * obj3 = 0 ;
5950 PyObject * obj4 = 0 ;
5951 char *kwnames[] = {
5952 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5953 };
5954
5955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5958 arg2 = (int) SWIG_AsInt(obj1);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 arg3 = (int) SWIG_AsInt(obj2);
5961 if (PyErr_Occurred()) SWIG_fail;
5962 arg4 = (int) SWIG_AsInt(obj3);
5963 if (PyErr_Occurred()) SWIG_fail;
5964 arg5 = (int) SWIG_AsInt(obj4);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5969
5970 wxPyEndAllowThreads(__tstate);
5971 if (PyErr_Occurred()) SWIG_fail;
5972 }
5973 {
5974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5975 }
5976 return resultobj;
5977 fail:
5978 return NULL;
5979 }
5980
5981
5982 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5983 PyObject *resultobj;
5984 wxRegion *arg1 = (wxRegion *) 0 ;
5985 wxRect *arg2 = 0 ;
5986 bool result;
5987 wxRect temp2 ;
5988 PyObject * obj0 = 0 ;
5989 PyObject * obj1 = 0 ;
5990 char *kwnames[] = {
5991 (char *) "self",(char *) "rect", NULL
5992 };
5993
5994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5997 {
5998 arg2 = &temp2;
5999 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6000 }
6001 {
6002 PyThreadState* __tstate = wxPyBeginAllowThreads();
6003 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6004
6005 wxPyEndAllowThreads(__tstate);
6006 if (PyErr_Occurred()) SWIG_fail;
6007 }
6008 {
6009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6010 }
6011 return resultobj;
6012 fail:
6013 return NULL;
6014 }
6015
6016
6017 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6018 PyObject *resultobj;
6019 wxRegion *arg1 = (wxRegion *) 0 ;
6020 wxRegion *arg2 = 0 ;
6021 bool result;
6022 PyObject * obj0 = 0 ;
6023 PyObject * obj1 = 0 ;
6024 char *kwnames[] = {
6025 (char *) "self",(char *) "region", NULL
6026 };
6027
6028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6031 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6032 SWIG_POINTER_EXCEPTION | 0)) == -1)
6033 SWIG_fail;
6034 if (arg2 == NULL) {
6035 PyErr_SetString(PyExc_TypeError,"null reference");
6036 SWIG_fail;
6037 }
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6041
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 {
6046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6047 }
6048 return resultobj;
6049 fail:
6050 return NULL;
6051 }
6052
6053
6054 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6055 PyObject *resultobj;
6056 wxRegion *arg1 = (wxRegion *) 0 ;
6057 SwigValueWrapper< wxBitmap > result;
6058 PyObject * obj0 = 0 ;
6059 char *kwnames[] = {
6060 (char *) "self", NULL
6061 };
6062
6063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6066 {
6067 PyThreadState* __tstate = wxPyBeginAllowThreads();
6068 result = (arg1)->ConvertToBitmap();
6069
6070 wxPyEndAllowThreads(__tstate);
6071 if (PyErr_Occurred()) SWIG_fail;
6072 }
6073 {
6074 wxBitmap * resultptr;
6075 resultptr = new wxBitmap((wxBitmap &) result);
6076 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6077 }
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj;
6086 wxRegion *arg1 = (wxRegion *) 0 ;
6087 wxBitmap *arg2 = 0 ;
6088 wxColour const &arg3_defvalue = wxNullColour ;
6089 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
6090 int arg4 = (int) 0 ;
6091 bool result;
6092 wxColour temp3 ;
6093 PyObject * obj0 = 0 ;
6094 PyObject * obj1 = 0 ;
6095 PyObject * obj2 = 0 ;
6096 PyObject * obj3 = 0 ;
6097 char *kwnames[] = {
6098 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6099 };
6100
6101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6105 SWIG_POINTER_EXCEPTION | 0)) == -1)
6106 SWIG_fail;
6107 if (arg2 == NULL) {
6108 PyErr_SetString(PyExc_TypeError,"null reference");
6109 SWIG_fail;
6110 }
6111 if (obj2) {
6112 {
6113 arg3 = &temp3;
6114 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6115 }
6116 }
6117 if (obj3) {
6118 arg4 = (int) SWIG_AsInt(obj3);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6124
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 {
6129 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6130 }
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6138 PyObject *obj;
6139 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6140 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6141 Py_INCREF(obj);
6142 return Py_BuildValue((char *)"");
6143 }
6144 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj;
6146 wxRegion *arg1 = 0 ;
6147 wxRegionIterator *result;
6148 PyObject * obj0 = 0 ;
6149 char *kwnames[] = {
6150 (char *) "region", NULL
6151 };
6152
6153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6155 SWIG_POINTER_EXCEPTION | 0)) == -1)
6156 SWIG_fail;
6157 if (arg1 == NULL) {
6158 PyErr_SetString(PyExc_TypeError,"null reference");
6159 SWIG_fail;
6160 }
6161 {
6162 if (!wxPyCheckForApp()) SWIG_fail;
6163 PyThreadState* __tstate = wxPyBeginAllowThreads();
6164 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6165
6166 wxPyEndAllowThreads(__tstate);
6167 if (PyErr_Occurred()) SWIG_fail;
6168 }
6169 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6170 return resultobj;
6171 fail:
6172 return NULL;
6173 }
6174
6175
6176 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6177 PyObject *resultobj;
6178 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6179 PyObject * obj0 = 0 ;
6180 char *kwnames[] = {
6181 (char *) "self", NULL
6182 };
6183
6184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6187 {
6188 PyThreadState* __tstate = wxPyBeginAllowThreads();
6189 delete arg1;
6190
6191 wxPyEndAllowThreads(__tstate);
6192 if (PyErr_Occurred()) SWIG_fail;
6193 }
6194 Py_INCREF(Py_None); resultobj = Py_None;
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6202 PyObject *resultobj;
6203 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6204 int result;
6205 PyObject * obj0 = 0 ;
6206 char *kwnames[] = {
6207 (char *) "self", NULL
6208 };
6209
6210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6213 {
6214 PyThreadState* __tstate = wxPyBeginAllowThreads();
6215 result = (int)(arg1)->GetX();
6216
6217 wxPyEndAllowThreads(__tstate);
6218 if (PyErr_Occurred()) SWIG_fail;
6219 }
6220 resultobj = SWIG_FromInt((int)result);
6221 return resultobj;
6222 fail:
6223 return NULL;
6224 }
6225
6226
6227 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6228 PyObject *resultobj;
6229 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6230 int result;
6231 PyObject * obj0 = 0 ;
6232 char *kwnames[] = {
6233 (char *) "self", NULL
6234 };
6235
6236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6239 {
6240 PyThreadState* __tstate = wxPyBeginAllowThreads();
6241 result = (int)(arg1)->GetY();
6242
6243 wxPyEndAllowThreads(__tstate);
6244 if (PyErr_Occurred()) SWIG_fail;
6245 }
6246 resultobj = SWIG_FromInt((int)result);
6247 return resultobj;
6248 fail:
6249 return NULL;
6250 }
6251
6252
6253 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6254 PyObject *resultobj;
6255 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6256 int result;
6257 PyObject * obj0 = 0 ;
6258 char *kwnames[] = {
6259 (char *) "self", NULL
6260 };
6261
6262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 result = (int)(arg1)->GetW();
6268
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 resultobj = SWIG_FromInt((int)result);
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6282 int result;
6283 PyObject * obj0 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6291 {
6292 PyThreadState* __tstate = wxPyBeginAllowThreads();
6293 result = (int)(arg1)->GetWidth();
6294
6295 wxPyEndAllowThreads(__tstate);
6296 if (PyErr_Occurred()) SWIG_fail;
6297 }
6298 resultobj = SWIG_FromInt((int)result);
6299 return resultobj;
6300 fail:
6301 return NULL;
6302 }
6303
6304
6305 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6306 PyObject *resultobj;
6307 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6308 int result;
6309 PyObject * obj0 = 0 ;
6310 char *kwnames[] = {
6311 (char *) "self", NULL
6312 };
6313
6314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6317 {
6318 PyThreadState* __tstate = wxPyBeginAllowThreads();
6319 result = (int)(arg1)->GetH();
6320
6321 wxPyEndAllowThreads(__tstate);
6322 if (PyErr_Occurred()) SWIG_fail;
6323 }
6324 resultobj = SWIG_FromInt((int)result);
6325 return resultobj;
6326 fail:
6327 return NULL;
6328 }
6329
6330
6331 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6332 PyObject *resultobj;
6333 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6334 int result;
6335 PyObject * obj0 = 0 ;
6336 char *kwnames[] = {
6337 (char *) "self", NULL
6338 };
6339
6340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 result = (int)(arg1)->GetHeight();
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 resultobj = SWIG_FromInt((int)result);
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj;
6359 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6360 wxRect result;
6361 PyObject * obj0 = 0 ;
6362 char *kwnames[] = {
6363 (char *) "self", NULL
6364 };
6365
6366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 result = (arg1)->GetRect();
6372
6373 wxPyEndAllowThreads(__tstate);
6374 if (PyErr_Occurred()) SWIG_fail;
6375 }
6376 {
6377 wxRect * resultptr;
6378 resultptr = new wxRect((wxRect &) result);
6379 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6380 }
6381 return resultobj;
6382 fail:
6383 return NULL;
6384 }
6385
6386
6387 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj;
6389 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6390 bool result;
6391 PyObject * obj0 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 {
6400 PyThreadState* __tstate = wxPyBeginAllowThreads();
6401 result = (bool)(arg1)->HaveRects();
6402
6403 wxPyEndAllowThreads(__tstate);
6404 if (PyErr_Occurred()) SWIG_fail;
6405 }
6406 {
6407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6408 }
6409 return resultobj;
6410 fail:
6411 return NULL;
6412 }
6413
6414
6415 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6416 PyObject *resultobj;
6417 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6418 PyObject * obj0 = 0 ;
6419 char *kwnames[] = {
6420 (char *) "self", NULL
6421 };
6422
6423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 (arg1)->Reset();
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 Py_INCREF(Py_None); resultobj = Py_None;
6434 return resultobj;
6435 fail:
6436 return NULL;
6437 }
6438
6439
6440 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6441 PyObject *resultobj;
6442 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6443 PyObject * obj0 = 0 ;
6444 char *kwnames[] = {
6445 (char *) "self", NULL
6446 };
6447
6448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6451 {
6452 PyThreadState* __tstate = wxPyBeginAllowThreads();
6453 wxRegionIterator_Next(arg1);
6454
6455 wxPyEndAllowThreads(__tstate);
6456 if (PyErr_Occurred()) SWIG_fail;
6457 }
6458 Py_INCREF(Py_None); resultobj = Py_None;
6459 return resultobj;
6460 fail:
6461 return NULL;
6462 }
6463
6464
6465 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6466 PyObject *resultobj;
6467 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6468 bool result;
6469 PyObject * obj0 = 0 ;
6470 char *kwnames[] = {
6471 (char *) "self", NULL
6472 };
6473
6474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6477 {
6478 PyThreadState* __tstate = wxPyBeginAllowThreads();
6479 result = (bool)wxRegionIterator___nonzero__(arg1);
6480
6481 wxPyEndAllowThreads(__tstate);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 {
6485 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6486 }
6487 return resultobj;
6488 fail:
6489 return NULL;
6490 }
6491
6492
6493 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6494 PyObject *obj;
6495 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6496 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6497 Py_INCREF(obj);
6498 return Py_BuildValue((char *)"");
6499 }
6500 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6501 PyObject *resultobj;
6502 wxNativeFontInfo *result;
6503 char *kwnames[] = {
6504 NULL
6505 };
6506
6507 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6508 {
6509 PyThreadState* __tstate = wxPyBeginAllowThreads();
6510 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6511
6512 wxPyEndAllowThreads(__tstate);
6513 if (PyErr_Occurred()) SWIG_fail;
6514 }
6515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6516 return resultobj;
6517 fail:
6518 return NULL;
6519 }
6520
6521
6522 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6523 PyObject *resultobj;
6524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6525 PyObject * obj0 = 0 ;
6526 char *kwnames[] = {
6527 (char *) "self", NULL
6528 };
6529
6530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6533 {
6534 PyThreadState* __tstate = wxPyBeginAllowThreads();
6535 delete arg1;
6536
6537 wxPyEndAllowThreads(__tstate);
6538 if (PyErr_Occurred()) SWIG_fail;
6539 }
6540 Py_INCREF(Py_None); resultobj = Py_None;
6541 return resultobj;
6542 fail:
6543 return NULL;
6544 }
6545
6546
6547 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6548 PyObject *resultobj;
6549 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6550 PyObject * obj0 = 0 ;
6551 char *kwnames[] = {
6552 (char *) "self", NULL
6553 };
6554
6555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6558 {
6559 PyThreadState* __tstate = wxPyBeginAllowThreads();
6560 (arg1)->Init();
6561
6562 wxPyEndAllowThreads(__tstate);
6563 if (PyErr_Occurred()) SWIG_fail;
6564 }
6565 Py_INCREF(Py_None); resultobj = Py_None;
6566 return resultobj;
6567 fail:
6568 return NULL;
6569 }
6570
6571
6572 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6573 PyObject *resultobj;
6574 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6575 wxFont *arg2 = 0 ;
6576 PyObject * obj0 = 0 ;
6577 PyObject * obj1 = 0 ;
6578 char *kwnames[] = {
6579 (char *) "self",(char *) "font", NULL
6580 };
6581
6582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6585 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6586 SWIG_POINTER_EXCEPTION | 0)) == -1)
6587 SWIG_fail;
6588 if (arg2 == NULL) {
6589 PyErr_SetString(PyExc_TypeError,"null reference");
6590 SWIG_fail;
6591 }
6592 {
6593 PyThreadState* __tstate = wxPyBeginAllowThreads();
6594 (arg1)->InitFromFont((wxFont const &)*arg2);
6595
6596 wxPyEndAllowThreads(__tstate);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 Py_INCREF(Py_None); resultobj = Py_None;
6600 return resultobj;
6601 fail:
6602 return NULL;
6603 }
6604
6605
6606 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6607 PyObject *resultobj;
6608 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6609 int result;
6610 PyObject * obj0 = 0 ;
6611 char *kwnames[] = {
6612 (char *) "self", NULL
6613 };
6614
6615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6618 {
6619 PyThreadState* __tstate = wxPyBeginAllowThreads();
6620 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6621
6622 wxPyEndAllowThreads(__tstate);
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 resultobj = SWIG_FromInt((int)result);
6626 return resultobj;
6627 fail:
6628 return NULL;
6629 }
6630
6631
6632 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6633 PyObject *resultobj;
6634 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6635 int result;
6636 PyObject * obj0 = 0 ;
6637 char *kwnames[] = {
6638 (char *) "self", NULL
6639 };
6640
6641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6644 {
6645 PyThreadState* __tstate = wxPyBeginAllowThreads();
6646 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6647
6648 wxPyEndAllowThreads(__tstate);
6649 if (PyErr_Occurred()) SWIG_fail;
6650 }
6651 resultobj = SWIG_FromInt((int)result);
6652 return resultobj;
6653 fail:
6654 return NULL;
6655 }
6656
6657
6658 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject *resultobj;
6660 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6661 int result;
6662 PyObject * obj0 = 0 ;
6663 char *kwnames[] = {
6664 (char *) "self", NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 resultobj = SWIG_FromInt((int)result);
6678 return resultobj;
6679 fail:
6680 return NULL;
6681 }
6682
6683
6684 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6685 PyObject *resultobj;
6686 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6687 bool result;
6688 PyObject * obj0 = 0 ;
6689 char *kwnames[] = {
6690 (char *) "self", NULL
6691 };
6692
6693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6696 {
6697 PyThreadState* __tstate = wxPyBeginAllowThreads();
6698 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6699
6700 wxPyEndAllowThreads(__tstate);
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 {
6704 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6705 }
6706 return resultobj;
6707 fail:
6708 return NULL;
6709 }
6710
6711
6712 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6713 PyObject *resultobj;
6714 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6715 wxString result;
6716 PyObject * obj0 = 0 ;
6717 char *kwnames[] = {
6718 (char *) "self", NULL
6719 };
6720
6721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6724 {
6725 PyThreadState* __tstate = wxPyBeginAllowThreads();
6726 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6727
6728 wxPyEndAllowThreads(__tstate);
6729 if (PyErr_Occurred()) SWIG_fail;
6730 }
6731 {
6732 #if wxUSE_UNICODE
6733 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6734 #else
6735 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6736 #endif
6737 }
6738 return resultobj;
6739 fail:
6740 return NULL;
6741 }
6742
6743
6744 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6745 PyObject *resultobj;
6746 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6747 int result;
6748 PyObject * obj0 = 0 ;
6749 char *kwnames[] = {
6750 (char *) "self", NULL
6751 };
6752
6753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6756 {
6757 PyThreadState* __tstate = wxPyBeginAllowThreads();
6758 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6759
6760 wxPyEndAllowThreads(__tstate);
6761 if (PyErr_Occurred()) SWIG_fail;
6762 }
6763 resultobj = SWIG_FromInt((int)result);
6764 return resultobj;
6765 fail:
6766 return NULL;
6767 }
6768
6769
6770 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6771 PyObject *resultobj;
6772 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6773 int result;
6774 PyObject * obj0 = 0 ;
6775 char *kwnames[] = {
6776 (char *) "self", NULL
6777 };
6778
6779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6782 {
6783 PyThreadState* __tstate = wxPyBeginAllowThreads();
6784 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6785
6786 wxPyEndAllowThreads(__tstate);
6787 if (PyErr_Occurred()) SWIG_fail;
6788 }
6789 resultobj = SWIG_FromInt((int)result);
6790 return resultobj;
6791 fail:
6792 return NULL;
6793 }
6794
6795
6796 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6797 PyObject *resultobj;
6798 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6799 int arg2 ;
6800 PyObject * obj0 = 0 ;
6801 PyObject * obj1 = 0 ;
6802 char *kwnames[] = {
6803 (char *) "self",(char *) "pointsize", NULL
6804 };
6805
6806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6809 arg2 = (int) SWIG_AsInt(obj1);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 {
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 (arg1)->SetPointSize(arg2);
6814
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 Py_INCREF(Py_None); resultobj = Py_None;
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6828 int arg2 ;
6829 PyObject * obj0 = 0 ;
6830 PyObject * obj1 = 0 ;
6831 char *kwnames[] = {
6832 (char *) "self",(char *) "style", NULL
6833 };
6834
6835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6838 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 {
6841 PyThreadState* __tstate = wxPyBeginAllowThreads();
6842 (arg1)->SetStyle((wxFontStyle )arg2);
6843
6844 wxPyEndAllowThreads(__tstate);
6845 if (PyErr_Occurred()) SWIG_fail;
6846 }
6847 Py_INCREF(Py_None); resultobj = Py_None;
6848 return resultobj;
6849 fail:
6850 return NULL;
6851 }
6852
6853
6854 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6855 PyObject *resultobj;
6856 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6857 int arg2 ;
6858 PyObject * obj0 = 0 ;
6859 PyObject * obj1 = 0 ;
6860 char *kwnames[] = {
6861 (char *) "self",(char *) "weight", NULL
6862 };
6863
6864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6867 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6868 if (PyErr_Occurred()) SWIG_fail;
6869 {
6870 PyThreadState* __tstate = wxPyBeginAllowThreads();
6871 (arg1)->SetWeight((wxFontWeight )arg2);
6872
6873 wxPyEndAllowThreads(__tstate);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 }
6876 Py_INCREF(Py_None); resultobj = Py_None;
6877 return resultobj;
6878 fail:
6879 return NULL;
6880 }
6881
6882
6883 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6884 PyObject *resultobj;
6885 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6886 bool arg2 ;
6887 PyObject * obj0 = 0 ;
6888 PyObject * obj1 = 0 ;
6889 char *kwnames[] = {
6890 (char *) "self",(char *) "underlined", NULL
6891 };
6892
6893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6896 arg2 = (bool) SWIG_AsBool(obj1);
6897 if (PyErr_Occurred()) SWIG_fail;
6898 {
6899 PyThreadState* __tstate = wxPyBeginAllowThreads();
6900 (arg1)->SetUnderlined(arg2);
6901
6902 wxPyEndAllowThreads(__tstate);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 }
6905 Py_INCREF(Py_None); resultobj = Py_None;
6906 return resultobj;
6907 fail:
6908 return NULL;
6909 }
6910
6911
6912 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6913 PyObject *resultobj;
6914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6915 wxString arg2 ;
6916 PyObject * obj0 = 0 ;
6917 PyObject * obj1 = 0 ;
6918 char *kwnames[] = {
6919 (char *) "self",(char *) "facename", NULL
6920 };
6921
6922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6925 {
6926 wxString* sptr = wxString_in_helper(obj1);
6927 if (sptr == NULL) SWIG_fail;
6928 arg2 = *sptr;
6929 delete sptr;
6930 }
6931 {
6932 PyThreadState* __tstate = wxPyBeginAllowThreads();
6933 (arg1)->SetFaceName(arg2);
6934
6935 wxPyEndAllowThreads(__tstate);
6936 if (PyErr_Occurred()) SWIG_fail;
6937 }
6938 Py_INCREF(Py_None); resultobj = Py_None;
6939 return resultobj;
6940 fail:
6941 return NULL;
6942 }
6943
6944
6945 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6946 PyObject *resultobj;
6947 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6948 int arg2 ;
6949 PyObject * obj0 = 0 ;
6950 PyObject * obj1 = 0 ;
6951 char *kwnames[] = {
6952 (char *) "self",(char *) "family", NULL
6953 };
6954
6955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6958 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6959 if (PyErr_Occurred()) SWIG_fail;
6960 {
6961 PyThreadState* __tstate = wxPyBeginAllowThreads();
6962 (arg1)->SetFamily((wxFontFamily )arg2);
6963
6964 wxPyEndAllowThreads(__tstate);
6965 if (PyErr_Occurred()) SWIG_fail;
6966 }
6967 Py_INCREF(Py_None); resultobj = Py_None;
6968 return resultobj;
6969 fail:
6970 return NULL;
6971 }
6972
6973
6974 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6975 PyObject *resultobj;
6976 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6977 int arg2 ;
6978 PyObject * obj0 = 0 ;
6979 PyObject * obj1 = 0 ;
6980 char *kwnames[] = {
6981 (char *) "self",(char *) "encoding", NULL
6982 };
6983
6984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6987 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6988 if (PyErr_Occurred()) SWIG_fail;
6989 {
6990 PyThreadState* __tstate = wxPyBeginAllowThreads();
6991 (arg1)->SetEncoding((wxFontEncoding )arg2);
6992
6993 wxPyEndAllowThreads(__tstate);
6994 if (PyErr_Occurred()) SWIG_fail;
6995 }
6996 Py_INCREF(Py_None); resultobj = Py_None;
6997 return resultobj;
6998 fail:
6999 return NULL;
7000 }
7001
7002
7003 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7004 PyObject *resultobj;
7005 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7006 wxString *arg2 = 0 ;
7007 bool result;
7008 bool temp2 = False ;
7009 PyObject * obj0 = 0 ;
7010 PyObject * obj1 = 0 ;
7011 char *kwnames[] = {
7012 (char *) "self",(char *) "s", NULL
7013 };
7014
7015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7018 {
7019 arg2 = wxString_in_helper(obj1);
7020 if (arg2 == NULL) SWIG_fail;
7021 temp2 = True;
7022 }
7023 {
7024 PyThreadState* __tstate = wxPyBeginAllowThreads();
7025 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7026
7027 wxPyEndAllowThreads(__tstate);
7028 if (PyErr_Occurred()) SWIG_fail;
7029 }
7030 {
7031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7032 }
7033 {
7034 if (temp2)
7035 delete arg2;
7036 }
7037 return resultobj;
7038 fail:
7039 {
7040 if (temp2)
7041 delete arg2;
7042 }
7043 return NULL;
7044 }
7045
7046
7047 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj;
7049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7050 wxString result;
7051 PyObject * obj0 = 0 ;
7052 char *kwnames[] = {
7053 (char *) "self", NULL
7054 };
7055
7056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7059 {
7060 PyThreadState* __tstate = wxPyBeginAllowThreads();
7061 result = ((wxNativeFontInfo const *)arg1)->ToString();
7062
7063 wxPyEndAllowThreads(__tstate);
7064 if (PyErr_Occurred()) SWIG_fail;
7065 }
7066 {
7067 #if wxUSE_UNICODE
7068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7069 #else
7070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7071 #endif
7072 }
7073 return resultobj;
7074 fail:
7075 return NULL;
7076 }
7077
7078
7079 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7080 PyObject *resultobj;
7081 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7082 wxString result;
7083 PyObject * obj0 = 0 ;
7084 char *kwnames[] = {
7085 (char *) "self", NULL
7086 };
7087
7088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7091 {
7092 PyThreadState* __tstate = wxPyBeginAllowThreads();
7093 result = wxNativeFontInfo___str__(arg1);
7094
7095 wxPyEndAllowThreads(__tstate);
7096 if (PyErr_Occurred()) SWIG_fail;
7097 }
7098 {
7099 #if wxUSE_UNICODE
7100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7101 #else
7102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7103 #endif
7104 }
7105 return resultobj;
7106 fail:
7107 return NULL;
7108 }
7109
7110
7111 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7112 PyObject *resultobj;
7113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7114 wxString *arg2 = 0 ;
7115 bool result;
7116 bool temp2 = False ;
7117 PyObject * obj0 = 0 ;
7118 PyObject * obj1 = 0 ;
7119 char *kwnames[] = {
7120 (char *) "self",(char *) "s", NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7126 {
7127 arg2 = wxString_in_helper(obj1);
7128 if (arg2 == NULL) SWIG_fail;
7129 temp2 = True;
7130 }
7131 {
7132 PyThreadState* __tstate = wxPyBeginAllowThreads();
7133 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7134
7135 wxPyEndAllowThreads(__tstate);
7136 if (PyErr_Occurred()) SWIG_fail;
7137 }
7138 {
7139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7140 }
7141 {
7142 if (temp2)
7143 delete arg2;
7144 }
7145 return resultobj;
7146 fail:
7147 {
7148 if (temp2)
7149 delete arg2;
7150 }
7151 return NULL;
7152 }
7153
7154
7155 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7156 PyObject *resultobj;
7157 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7158 wxString result;
7159 PyObject * obj0 = 0 ;
7160 char *kwnames[] = {
7161 (char *) "self", NULL
7162 };
7163
7164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7167 {
7168 PyThreadState* __tstate = wxPyBeginAllowThreads();
7169 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7170
7171 wxPyEndAllowThreads(__tstate);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 {
7175 #if wxUSE_UNICODE
7176 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7177 #else
7178 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7179 #endif
7180 }
7181 return resultobj;
7182 fail:
7183 return NULL;
7184 }
7185
7186
7187 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7188 PyObject *obj;
7189 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7190 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7191 Py_INCREF(obj);
7192 return Py_BuildValue((char *)"");
7193 }
7194 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7195 PyObject *resultobj;
7196 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7197 wxString *arg2 = (wxString *) 0 ;
7198 bool temp2 = False ;
7199 PyObject * obj0 = 0 ;
7200 PyObject * obj1 = 0 ;
7201 char *kwnames[] = {
7202 (char *) "self",(char *) "facename", NULL
7203 };
7204
7205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7208 {
7209 arg2 = wxString_in_helper(obj1);
7210 if (arg2 == NULL) SWIG_fail;
7211 temp2 = True;
7212 }
7213 if (arg1) (arg1)->facename = *arg2;
7214
7215 Py_INCREF(Py_None); resultobj = Py_None;
7216 {
7217 if (temp2)
7218 delete arg2;
7219 }
7220 return resultobj;
7221 fail:
7222 {
7223 if (temp2)
7224 delete arg2;
7225 }
7226 return NULL;
7227 }
7228
7229
7230 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj;
7232 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7233 wxString *result;
7234 PyObject * obj0 = 0 ;
7235 char *kwnames[] = {
7236 (char *) "self", NULL
7237 };
7238
7239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7242 result = (wxString *)& ((arg1)->facename);
7243
7244 {
7245 #if wxUSE_UNICODE
7246 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7247 #else
7248 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7249 #endif
7250 }
7251 return resultobj;
7252 fail:
7253 return NULL;
7254 }
7255
7256
7257 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7258 PyObject *resultobj;
7259 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7260 int arg2 ;
7261 PyObject * obj0 = 0 ;
7262 PyObject * obj1 = 0 ;
7263 char *kwnames[] = {
7264 (char *) "self",(char *) "encoding", NULL
7265 };
7266
7267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7270 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7273
7274 Py_INCREF(Py_None); resultobj = Py_None;
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7282 PyObject *resultobj;
7283 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7284 int result;
7285 PyObject * obj0 = 0 ;
7286 char *kwnames[] = {
7287 (char *) "self", NULL
7288 };
7289
7290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7293 result = (int) ((arg1)->encoding);
7294
7295 resultobj = SWIG_FromInt((int)result);
7296 return resultobj;
7297 fail:
7298 return NULL;
7299 }
7300
7301
7302 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7303 PyObject *resultobj;
7304 wxNativeEncodingInfo *result;
7305 char *kwnames[] = {
7306 NULL
7307 };
7308
7309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7310 {
7311 PyThreadState* __tstate = wxPyBeginAllowThreads();
7312 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7313
7314 wxPyEndAllowThreads(__tstate);
7315 if (PyErr_Occurred()) SWIG_fail;
7316 }
7317 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7318 return resultobj;
7319 fail:
7320 return NULL;
7321 }
7322
7323
7324 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7325 PyObject *resultobj;
7326 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7327 PyObject * obj0 = 0 ;
7328 char *kwnames[] = {
7329 (char *) "self", NULL
7330 };
7331
7332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 delete arg1;
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 return resultobj;
7344 fail:
7345 return NULL;
7346 }
7347
7348
7349 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7350 PyObject *resultobj;
7351 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7352 wxString *arg2 = 0 ;
7353 bool result;
7354 bool temp2 = False ;
7355 PyObject * obj0 = 0 ;
7356 PyObject * obj1 = 0 ;
7357 char *kwnames[] = {
7358 (char *) "self",(char *) "s", NULL
7359 };
7360
7361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7364 {
7365 arg2 = wxString_in_helper(obj1);
7366 if (arg2 == NULL) SWIG_fail;
7367 temp2 = True;
7368 }
7369 {
7370 PyThreadState* __tstate = wxPyBeginAllowThreads();
7371 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7372
7373 wxPyEndAllowThreads(__tstate);
7374 if (PyErr_Occurred()) SWIG_fail;
7375 }
7376 {
7377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7378 }
7379 {
7380 if (temp2)
7381 delete arg2;
7382 }
7383 return resultobj;
7384 fail:
7385 {
7386 if (temp2)
7387 delete arg2;
7388 }
7389 return NULL;
7390 }
7391
7392
7393 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7394 PyObject *resultobj;
7395 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7396 wxString result;
7397 PyObject * obj0 = 0 ;
7398 char *kwnames[] = {
7399 (char *) "self", NULL
7400 };
7401
7402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7405 {
7406 PyThreadState* __tstate = wxPyBeginAllowThreads();
7407 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7408
7409 wxPyEndAllowThreads(__tstate);
7410 if (PyErr_Occurred()) SWIG_fail;
7411 }
7412 {
7413 #if wxUSE_UNICODE
7414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7415 #else
7416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7417 #endif
7418 }
7419 return resultobj;
7420 fail:
7421 return NULL;
7422 }
7423
7424
7425 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7426 PyObject *obj;
7427 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7428 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7429 Py_INCREF(obj);
7430 return Py_BuildValue((char *)"");
7431 }
7432 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 int arg1 ;
7435 wxNativeEncodingInfo *result;
7436 PyObject * obj0 = 0 ;
7437 char *kwnames[] = {
7438 (char *) "encoding", NULL
7439 };
7440
7441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7442 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7443 if (PyErr_Occurred()) SWIG_fail;
7444 {
7445 PyThreadState* __tstate = wxPyBeginAllowThreads();
7446 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7447
7448 wxPyEndAllowThreads(__tstate);
7449 if (PyErr_Occurred()) SWIG_fail;
7450 }
7451 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7452 return resultobj;
7453 fail:
7454 return NULL;
7455 }
7456
7457
7458 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7459 PyObject *resultobj;
7460 wxNativeEncodingInfo *arg1 = 0 ;
7461 bool result;
7462 PyObject * obj0 = 0 ;
7463 char *kwnames[] = {
7464 (char *) "info", NULL
7465 };
7466
7467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7469 SWIG_POINTER_EXCEPTION | 0)) == -1)
7470 SWIG_fail;
7471 if (arg1 == NULL) {
7472 PyErr_SetString(PyExc_TypeError,"null reference");
7473 SWIG_fail;
7474 }
7475 {
7476 PyThreadState* __tstate = wxPyBeginAllowThreads();
7477 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7478
7479 wxPyEndAllowThreads(__tstate);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 {
7483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7484 }
7485 return resultobj;
7486 fail:
7487 return NULL;
7488 }
7489
7490
7491 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7492 PyObject *resultobj;
7493 wxFontMapper *result;
7494 char *kwnames[] = {
7495 NULL
7496 };
7497
7498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7499 {
7500 PyThreadState* __tstate = wxPyBeginAllowThreads();
7501 result = (wxFontMapper *)new wxFontMapper();
7502
7503 wxPyEndAllowThreads(__tstate);
7504 if (PyErr_Occurred()) SWIG_fail;
7505 }
7506 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7507 return resultobj;
7508 fail:
7509 return NULL;
7510 }
7511
7512
7513 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7514 PyObject *resultobj;
7515 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7516 PyObject * obj0 = 0 ;
7517 char *kwnames[] = {
7518 (char *) "self", NULL
7519 };
7520
7521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7524 {
7525 PyThreadState* __tstate = wxPyBeginAllowThreads();
7526 delete arg1;
7527
7528 wxPyEndAllowThreads(__tstate);
7529 if (PyErr_Occurred()) SWIG_fail;
7530 }
7531 Py_INCREF(Py_None); resultobj = Py_None;
7532 return resultobj;
7533 fail:
7534 return NULL;
7535 }
7536
7537
7538 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7539 PyObject *resultobj;
7540 wxFontMapper *result;
7541 char *kwnames[] = {
7542 NULL
7543 };
7544
7545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7546 {
7547 PyThreadState* __tstate = wxPyBeginAllowThreads();
7548 result = (wxFontMapper *)wxFontMapper::Get();
7549
7550 wxPyEndAllowThreads(__tstate);
7551 if (PyErr_Occurred()) SWIG_fail;
7552 }
7553 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7554 return resultobj;
7555 fail:
7556 return NULL;
7557 }
7558
7559
7560 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7561 PyObject *resultobj;
7562 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7563 wxFontMapper *result;
7564 PyObject * obj0 = 0 ;
7565 char *kwnames[] = {
7566 (char *) "mapper", NULL
7567 };
7568
7569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7572 {
7573 PyThreadState* __tstate = wxPyBeginAllowThreads();
7574 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7575
7576 wxPyEndAllowThreads(__tstate);
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7580 return resultobj;
7581 fail:
7582 return NULL;
7583 }
7584
7585
7586 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7587 PyObject *resultobj;
7588 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7589 wxString *arg2 = 0 ;
7590 bool arg3 = (bool) True ;
7591 int result;
7592 bool temp2 = False ;
7593 PyObject * obj0 = 0 ;
7594 PyObject * obj1 = 0 ;
7595 PyObject * obj2 = 0 ;
7596 char *kwnames[] = {
7597 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7598 };
7599
7600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7603 {
7604 arg2 = wxString_in_helper(obj1);
7605 if (arg2 == NULL) SWIG_fail;
7606 temp2 = True;
7607 }
7608 if (obj2) {
7609 arg3 = (bool) SWIG_AsBool(obj2);
7610 if (PyErr_Occurred()) SWIG_fail;
7611 }
7612 {
7613 PyThreadState* __tstate = wxPyBeginAllowThreads();
7614 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7615
7616 wxPyEndAllowThreads(__tstate);
7617 if (PyErr_Occurred()) SWIG_fail;
7618 }
7619 resultobj = SWIG_FromInt((int)result);
7620 {
7621 if (temp2)
7622 delete arg2;
7623 }
7624 return resultobj;
7625 fail:
7626 {
7627 if (temp2)
7628 delete arg2;
7629 }
7630 return NULL;
7631 }
7632
7633
7634 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj;
7636 size_t result;
7637 char *kwnames[] = {
7638 NULL
7639 };
7640
7641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7642 {
7643 PyThreadState* __tstate = wxPyBeginAllowThreads();
7644 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7645
7646 wxPyEndAllowThreads(__tstate);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7650 return resultobj;
7651 fail:
7652 return NULL;
7653 }
7654
7655
7656 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 size_t arg1 ;
7659 int result;
7660 PyObject * obj0 = 0 ;
7661 char *kwnames[] = {
7662 (char *) "n", NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7666 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7667 if (PyErr_Occurred()) SWIG_fail;
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 result = (int)wxFontMapper::GetEncoding(arg1);
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 resultobj = SWIG_FromInt((int)result);
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj;
7684 int arg1 ;
7685 wxString result;
7686 PyObject * obj0 = 0 ;
7687 char *kwnames[] = {
7688 (char *) "encoding", NULL
7689 };
7690
7691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7692 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7693 if (PyErr_Occurred()) SWIG_fail;
7694 {
7695 PyThreadState* __tstate = wxPyBeginAllowThreads();
7696 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7697
7698 wxPyEndAllowThreads(__tstate);
7699 if (PyErr_Occurred()) SWIG_fail;
7700 }
7701 {
7702 #if wxUSE_UNICODE
7703 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7704 #else
7705 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7706 #endif
7707 }
7708 return resultobj;
7709 fail:
7710 return NULL;
7711 }
7712
7713
7714 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7715 PyObject *resultobj;
7716 int arg1 ;
7717 wxString result;
7718 PyObject * obj0 = 0 ;
7719 char *kwnames[] = {
7720 (char *) "encoding", NULL
7721 };
7722
7723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7724 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7725 if (PyErr_Occurred()) SWIG_fail;
7726 {
7727 PyThreadState* __tstate = wxPyBeginAllowThreads();
7728 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7729
7730 wxPyEndAllowThreads(__tstate);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 }
7733 {
7734 #if wxUSE_UNICODE
7735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7736 #else
7737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7738 #endif
7739 }
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj;
7748 wxString *arg1 = 0 ;
7749 int result;
7750 bool temp1 = False ;
7751 PyObject * obj0 = 0 ;
7752 char *kwnames[] = {
7753 (char *) "name", NULL
7754 };
7755
7756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7757 {
7758 arg1 = wxString_in_helper(obj0);
7759 if (arg1 == NULL) SWIG_fail;
7760 temp1 = True;
7761 }
7762 {
7763 PyThreadState* __tstate = wxPyBeginAllowThreads();
7764 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7765
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 resultobj = SWIG_FromInt((int)result);
7770 {
7771 if (temp1)
7772 delete arg1;
7773 }
7774 return resultobj;
7775 fail:
7776 {
7777 if (temp1)
7778 delete arg1;
7779 }
7780 return NULL;
7781 }
7782
7783
7784 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7785 PyObject *resultobj;
7786 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7787 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7788 PyObject * obj0 = 0 ;
7789 PyObject * obj1 = 0 ;
7790 char *kwnames[] = {
7791 (char *) "self",(char *) "config", NULL
7792 };
7793
7794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7797 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7799 {
7800 PyThreadState* __tstate = wxPyBeginAllowThreads();
7801 (arg1)->SetConfig(arg2);
7802
7803 wxPyEndAllowThreads(__tstate);
7804 if (PyErr_Occurred()) SWIG_fail;
7805 }
7806 Py_INCREF(Py_None); resultobj = Py_None;
7807 return resultobj;
7808 fail:
7809 return NULL;
7810 }
7811
7812
7813 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj;
7815 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7816 wxString *arg2 = 0 ;
7817 bool temp2 = False ;
7818 PyObject * obj0 = 0 ;
7819 PyObject * obj1 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "self",(char *) "prefix", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7827 {
7828 arg2 = wxString_in_helper(obj1);
7829 if (arg2 == NULL) SWIG_fail;
7830 temp2 = True;
7831 }
7832 {
7833 PyThreadState* __tstate = wxPyBeginAllowThreads();
7834 (arg1)->SetConfigPath((wxString const &)*arg2);
7835
7836 wxPyEndAllowThreads(__tstate);
7837 if (PyErr_Occurred()) SWIG_fail;
7838 }
7839 Py_INCREF(Py_None); resultobj = Py_None;
7840 {
7841 if (temp2)
7842 delete arg2;
7843 }
7844 return resultobj;
7845 fail:
7846 {
7847 if (temp2)
7848 delete arg2;
7849 }
7850 return NULL;
7851 }
7852
7853
7854 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7855 PyObject *resultobj;
7856 wxString result;
7857 char *kwnames[] = {
7858 NULL
7859 };
7860
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7862 {
7863 PyThreadState* __tstate = wxPyBeginAllowThreads();
7864 result = wxFontMapper::GetDefaultConfigPath();
7865
7866 wxPyEndAllowThreads(__tstate);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 }
7869 {
7870 #if wxUSE_UNICODE
7871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7872 #else
7873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7874 #endif
7875 }
7876 return resultobj;
7877 fail:
7878 return NULL;
7879 }
7880
7881
7882 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7883 PyObject *resultobj;
7884 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7885 int arg2 ;
7886 wxString const &arg3_defvalue = wxPyEmptyString ;
7887 wxString *arg3 = (wxString *) &arg3_defvalue ;
7888 bool arg4 = (bool) True ;
7889 PyObject *result;
7890 bool temp3 = False ;
7891 PyObject * obj0 = 0 ;
7892 PyObject * obj1 = 0 ;
7893 PyObject * obj2 = 0 ;
7894 PyObject * obj3 = 0 ;
7895 char *kwnames[] = {
7896 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7897 };
7898
7899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7902 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7903 if (PyErr_Occurred()) SWIG_fail;
7904 if (obj2) {
7905 {
7906 arg3 = wxString_in_helper(obj2);
7907 if (arg3 == NULL) SWIG_fail;
7908 temp3 = True;
7909 }
7910 }
7911 if (obj3) {
7912 arg4 = (bool) SWIG_AsBool(obj3);
7913 if (PyErr_Occurred()) SWIG_fail;
7914 }
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = result;
7923 {
7924 if (temp3)
7925 delete arg3;
7926 }
7927 return resultobj;
7928 fail:
7929 {
7930 if (temp3)
7931 delete arg3;
7932 }
7933 return NULL;
7934 }
7935
7936
7937 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7938 PyObject *resultobj;
7939 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7940 int arg2 ;
7941 wxString const &arg3_defvalue = wxPyEmptyString ;
7942 wxString *arg3 = (wxString *) &arg3_defvalue ;
7943 bool result;
7944 bool temp3 = False ;
7945 PyObject * obj0 = 0 ;
7946 PyObject * obj1 = 0 ;
7947 PyObject * obj2 = 0 ;
7948 char *kwnames[] = {
7949 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7950 };
7951
7952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7955 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 if (obj2) {
7958 {
7959 arg3 = wxString_in_helper(obj2);
7960 if (arg3 == NULL) SWIG_fail;
7961 temp3 = True;
7962 }
7963 }
7964 {
7965 PyThreadState* __tstate = wxPyBeginAllowThreads();
7966 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7967
7968 wxPyEndAllowThreads(__tstate);
7969 if (PyErr_Occurred()) SWIG_fail;
7970 }
7971 {
7972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7973 }
7974 {
7975 if (temp3)
7976 delete arg3;
7977 }
7978 return resultobj;
7979 fail:
7980 {
7981 if (temp3)
7982 delete arg3;
7983 }
7984 return NULL;
7985 }
7986
7987
7988 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7989 PyObject *resultobj;
7990 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7991 wxWindow *arg2 = (wxWindow *) 0 ;
7992 PyObject * obj0 = 0 ;
7993 PyObject * obj1 = 0 ;
7994 char *kwnames[] = {
7995 (char *) "self",(char *) "parent", NULL
7996 };
7997
7998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 (arg1)->SetDialogParent(arg2);
8006
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 Py_INCREF(Py_None); resultobj = Py_None;
8011 return resultobj;
8012 fail:
8013 return NULL;
8014 }
8015
8016
8017 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8018 PyObject *resultobj;
8019 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8020 wxString *arg2 = 0 ;
8021 bool temp2 = False ;
8022 PyObject * obj0 = 0 ;
8023 PyObject * obj1 = 0 ;
8024 char *kwnames[] = {
8025 (char *) "self",(char *) "title", NULL
8026 };
8027
8028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8031 {
8032 arg2 = wxString_in_helper(obj1);
8033 if (arg2 == NULL) SWIG_fail;
8034 temp2 = True;
8035 }
8036 {
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 (arg1)->SetDialogTitle((wxString const &)*arg2);
8039
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 Py_INCREF(Py_None); resultobj = Py_None;
8044 {
8045 if (temp2)
8046 delete arg2;
8047 }
8048 return resultobj;
8049 fail:
8050 {
8051 if (temp2)
8052 delete arg2;
8053 }
8054 return NULL;
8055 }
8056
8057
8058 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8059 PyObject *obj;
8060 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8061 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8062 Py_INCREF(obj);
8063 return Py_BuildValue((char *)"");
8064 }
8065 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8066 PyObject *resultobj;
8067 int arg1 ;
8068 int arg2 ;
8069 int arg3 ;
8070 int arg4 ;
8071 bool arg5 = (bool) False ;
8072 wxString const &arg6_defvalue = wxPyEmptyString ;
8073 wxString *arg6 = (wxString *) &arg6_defvalue ;
8074 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8075 wxFont *result;
8076 bool temp6 = False ;
8077 PyObject * obj0 = 0 ;
8078 PyObject * obj1 = 0 ;
8079 PyObject * obj2 = 0 ;
8080 PyObject * obj3 = 0 ;
8081 PyObject * obj4 = 0 ;
8082 PyObject * obj5 = 0 ;
8083 PyObject * obj6 = 0 ;
8084 char *kwnames[] = {
8085 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8086 };
8087
8088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8089 arg1 = (int) SWIG_AsInt(obj0);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 arg2 = (int) SWIG_AsInt(obj1);
8092 if (PyErr_Occurred()) SWIG_fail;
8093 arg3 = (int) SWIG_AsInt(obj2);
8094 if (PyErr_Occurred()) SWIG_fail;
8095 arg4 = (int) SWIG_AsInt(obj3);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 if (obj4) {
8098 arg5 = (bool) SWIG_AsBool(obj4);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 if (obj5) {
8102 {
8103 arg6 = wxString_in_helper(obj5);
8104 if (arg6 == NULL) SWIG_fail;
8105 temp6 = True;
8106 }
8107 }
8108 if (obj6) {
8109 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8110 if (PyErr_Occurred()) SWIG_fail;
8111 }
8112 {
8113 if (!wxPyCheckForApp()) SWIG_fail;
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8121 {
8122 if (temp6)
8123 delete arg6;
8124 }
8125 return resultobj;
8126 fail:
8127 {
8128 if (temp6)
8129 delete arg6;
8130 }
8131 return NULL;
8132 }
8133
8134
8135 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8136 PyObject *resultobj;
8137 wxFont *arg1 = (wxFont *) 0 ;
8138 PyObject * obj0 = 0 ;
8139 char *kwnames[] = {
8140 (char *) "self", NULL
8141 };
8142
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8146 {
8147 PyThreadState* __tstate = wxPyBeginAllowThreads();
8148 delete arg1;
8149
8150 wxPyEndAllowThreads(__tstate);
8151 if (PyErr_Occurred()) SWIG_fail;
8152 }
8153 Py_INCREF(Py_None); resultobj = Py_None;
8154 return resultobj;
8155 fail:
8156 return NULL;
8157 }
8158
8159
8160 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8161 PyObject *resultobj;
8162 wxNativeFontInfo *arg1 = 0 ;
8163 wxFont *result;
8164 PyObject * obj0 = 0 ;
8165 char *kwnames[] = {
8166 (char *) "info", NULL
8167 };
8168
8169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8171 SWIG_POINTER_EXCEPTION | 0)) == -1)
8172 SWIG_fail;
8173 if (arg1 == NULL) {
8174 PyErr_SetString(PyExc_TypeError,"null reference");
8175 SWIG_fail;
8176 }
8177 {
8178 if (!wxPyCheckForApp()) SWIG_fail;
8179 PyThreadState* __tstate = wxPyBeginAllowThreads();
8180 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8181
8182 wxPyEndAllowThreads(__tstate);
8183 if (PyErr_Occurred()) SWIG_fail;
8184 }
8185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8186 return resultobj;
8187 fail:
8188 return NULL;
8189 }
8190
8191
8192 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8193 PyObject *resultobj;
8194 wxString *arg1 = 0 ;
8195 wxFont *result;
8196 bool temp1 = False ;
8197 PyObject * obj0 = 0 ;
8198 char *kwnames[] = {
8199 (char *) "info", NULL
8200 };
8201
8202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8203 {
8204 arg1 = wxString_in_helper(obj0);
8205 if (arg1 == NULL) SWIG_fail;
8206 temp1 = True;
8207 }
8208 {
8209 if (!wxPyCheckForApp()) SWIG_fail;
8210 PyThreadState* __tstate = wxPyBeginAllowThreads();
8211 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8212
8213 wxPyEndAllowThreads(__tstate);
8214 if (PyErr_Occurred()) SWIG_fail;
8215 }
8216 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8217 {
8218 if (temp1)
8219 delete arg1;
8220 }
8221 return resultobj;
8222 fail:
8223 {
8224 if (temp1)
8225 delete arg1;
8226 }
8227 return NULL;
8228 }
8229
8230
8231 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8232 PyObject *resultobj;
8233 int arg1 ;
8234 int arg2 ;
8235 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8236 wxString const &arg4_defvalue = wxPyEmptyString ;
8237 wxString *arg4 = (wxString *) &arg4_defvalue ;
8238 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8239 wxFont *result;
8240 bool temp4 = False ;
8241 PyObject * obj0 = 0 ;
8242 PyObject * obj1 = 0 ;
8243 PyObject * obj2 = 0 ;
8244 PyObject * obj3 = 0 ;
8245 PyObject * obj4 = 0 ;
8246 char *kwnames[] = {
8247 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8248 };
8249
8250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8251 arg1 = (int) SWIG_AsInt(obj0);
8252 if (PyErr_Occurred()) SWIG_fail;
8253 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 if (obj2) {
8256 arg3 = (int) SWIG_AsInt(obj2);
8257 if (PyErr_Occurred()) SWIG_fail;
8258 }
8259 if (obj3) {
8260 {
8261 arg4 = wxString_in_helper(obj3);
8262 if (arg4 == NULL) SWIG_fail;
8263 temp4 = True;
8264 }
8265 }
8266 if (obj4) {
8267 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 }
8270 {
8271 if (!wxPyCheckForApp()) SWIG_fail;
8272 PyThreadState* __tstate = wxPyBeginAllowThreads();
8273 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8274
8275 wxPyEndAllowThreads(__tstate);
8276 if (PyErr_Occurred()) SWIG_fail;
8277 }
8278 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8279 {
8280 if (temp4)
8281 delete arg4;
8282 }
8283 return resultobj;
8284 fail:
8285 {
8286 if (temp4)
8287 delete arg4;
8288 }
8289 return NULL;
8290 }
8291
8292
8293 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj;
8295 wxFont *arg1 = (wxFont *) 0 ;
8296 bool result;
8297 PyObject * obj0 = 0 ;
8298 char *kwnames[] = {
8299 (char *) "self", NULL
8300 };
8301
8302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8305 {
8306 PyThreadState* __tstate = wxPyBeginAllowThreads();
8307 result = (bool)((wxFont const *)arg1)->Ok();
8308
8309 wxPyEndAllowThreads(__tstate);
8310 if (PyErr_Occurred()) SWIG_fail;
8311 }
8312 {
8313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8314 }
8315 return resultobj;
8316 fail:
8317 return NULL;
8318 }
8319
8320
8321 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8322 PyObject *resultobj;
8323 wxFont *arg1 = (wxFont *) 0 ;
8324 wxFont *arg2 = (wxFont *) 0 ;
8325 bool result;
8326 PyObject * obj0 = 0 ;
8327 PyObject * obj1 = 0 ;
8328 char *kwnames[] = {
8329 (char *) "self",(char *) "other", NULL
8330 };
8331
8332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8337 {
8338 PyThreadState* __tstate = wxPyBeginAllowThreads();
8339 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8340
8341 wxPyEndAllowThreads(__tstate);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 {
8345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8346 }
8347 return resultobj;
8348 fail:
8349 return NULL;
8350 }
8351
8352
8353 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj;
8355 wxFont *arg1 = (wxFont *) 0 ;
8356 wxFont *arg2 = (wxFont *) 0 ;
8357 bool result;
8358 PyObject * obj0 = 0 ;
8359 PyObject * obj1 = 0 ;
8360 char *kwnames[] = {
8361 (char *) "self",(char *) "other", NULL
8362 };
8363
8364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8367 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8369 {
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8372
8373 wxPyEndAllowThreads(__tstate);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 {
8377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8378 }
8379 return resultobj;
8380 fail:
8381 return NULL;
8382 }
8383
8384
8385 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8386 PyObject *resultobj;
8387 wxFont *arg1 = (wxFont *) 0 ;
8388 int result;
8389 PyObject * obj0 = 0 ;
8390 char *kwnames[] = {
8391 (char *) "self", NULL
8392 };
8393
8394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8397 {
8398 PyThreadState* __tstate = wxPyBeginAllowThreads();
8399 result = (int)((wxFont const *)arg1)->GetPointSize();
8400
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 resultobj = SWIG_FromInt((int)result);
8405 return resultobj;
8406 fail:
8407 return NULL;
8408 }
8409
8410
8411 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj;
8413 wxFont *arg1 = (wxFont *) 0 ;
8414 int result;
8415 PyObject * obj0 = 0 ;
8416 char *kwnames[] = {
8417 (char *) "self", NULL
8418 };
8419
8420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8423 {
8424 PyThreadState* __tstate = wxPyBeginAllowThreads();
8425 result = (int)((wxFont const *)arg1)->GetFamily();
8426
8427 wxPyEndAllowThreads(__tstate);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 resultobj = SWIG_FromInt((int)result);
8431 return resultobj;
8432 fail:
8433 return NULL;
8434 }
8435
8436
8437 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8438 PyObject *resultobj;
8439 wxFont *arg1 = (wxFont *) 0 ;
8440 int result;
8441 PyObject * obj0 = 0 ;
8442 char *kwnames[] = {
8443 (char *) "self", NULL
8444 };
8445
8446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8449 {
8450 PyThreadState* __tstate = wxPyBeginAllowThreads();
8451 result = (int)((wxFont const *)arg1)->GetStyle();
8452
8453 wxPyEndAllowThreads(__tstate);
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 resultobj = SWIG_FromInt((int)result);
8457 return resultobj;
8458 fail:
8459 return NULL;
8460 }
8461
8462
8463 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8464 PyObject *resultobj;
8465 wxFont *arg1 = (wxFont *) 0 ;
8466 int result;
8467 PyObject * obj0 = 0 ;
8468 char *kwnames[] = {
8469 (char *) "self", NULL
8470 };
8471
8472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8475 {
8476 PyThreadState* __tstate = wxPyBeginAllowThreads();
8477 result = (int)((wxFont const *)arg1)->GetWeight();
8478
8479 wxPyEndAllowThreads(__tstate);
8480 if (PyErr_Occurred()) SWIG_fail;
8481 }
8482 resultobj = SWIG_FromInt((int)result);
8483 return resultobj;
8484 fail:
8485 return NULL;
8486 }
8487
8488
8489 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8490 PyObject *resultobj;
8491 wxFont *arg1 = (wxFont *) 0 ;
8492 bool result;
8493 PyObject * obj0 = 0 ;
8494 char *kwnames[] = {
8495 (char *) "self", NULL
8496 };
8497
8498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8501 {
8502 PyThreadState* __tstate = wxPyBeginAllowThreads();
8503 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8504
8505 wxPyEndAllowThreads(__tstate);
8506 if (PyErr_Occurred()) SWIG_fail;
8507 }
8508 {
8509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8510 }
8511 return resultobj;
8512 fail:
8513 return NULL;
8514 }
8515
8516
8517 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8518 PyObject *resultobj;
8519 wxFont *arg1 = (wxFont *) 0 ;
8520 wxString result;
8521 PyObject * obj0 = 0 ;
8522 char *kwnames[] = {
8523 (char *) "self", NULL
8524 };
8525
8526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8528 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8529 {
8530 PyThreadState* __tstate = wxPyBeginAllowThreads();
8531 result = ((wxFont const *)arg1)->GetFaceName();
8532
8533 wxPyEndAllowThreads(__tstate);
8534 if (PyErr_Occurred()) SWIG_fail;
8535 }
8536 {
8537 #if wxUSE_UNICODE
8538 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8539 #else
8540 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8541 #endif
8542 }
8543 return resultobj;
8544 fail:
8545 return NULL;
8546 }
8547
8548
8549 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8550 PyObject *resultobj;
8551 wxFont *arg1 = (wxFont *) 0 ;
8552 int result;
8553 PyObject * obj0 = 0 ;
8554 char *kwnames[] = {
8555 (char *) "self", NULL
8556 };
8557
8558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8561 {
8562 PyThreadState* __tstate = wxPyBeginAllowThreads();
8563 result = (int)((wxFont const *)arg1)->GetEncoding();
8564
8565 wxPyEndAllowThreads(__tstate);
8566 if (PyErr_Occurred()) SWIG_fail;
8567 }
8568 resultobj = SWIG_FromInt((int)result);
8569 return resultobj;
8570 fail:
8571 return NULL;
8572 }
8573
8574
8575 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8576 PyObject *resultobj;
8577 wxFont *arg1 = (wxFont *) 0 ;
8578 wxNativeFontInfo *result;
8579 PyObject * obj0 = 0 ;
8580 char *kwnames[] = {
8581 (char *) "self", NULL
8582 };
8583
8584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8587 {
8588 PyThreadState* __tstate = wxPyBeginAllowThreads();
8589 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8590
8591 wxPyEndAllowThreads(__tstate);
8592 if (PyErr_Occurred()) SWIG_fail;
8593 }
8594 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8595 return resultobj;
8596 fail:
8597 return NULL;
8598 }
8599
8600
8601 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj;
8603 wxFont *arg1 = (wxFont *) 0 ;
8604 bool result;
8605 PyObject * obj0 = 0 ;
8606 char *kwnames[] = {
8607 (char *) "self", NULL
8608 };
8609
8610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8613 {
8614 PyThreadState* __tstate = wxPyBeginAllowThreads();
8615 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8616
8617 wxPyEndAllowThreads(__tstate);
8618 if (PyErr_Occurred()) SWIG_fail;
8619 }
8620 {
8621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8622 }
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8630 PyObject *resultobj;
8631 wxFont *arg1 = (wxFont *) 0 ;
8632 wxString result;
8633 PyObject * obj0 = 0 ;
8634 char *kwnames[] = {
8635 (char *) "self", NULL
8636 };
8637
8638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8644
8645 wxPyEndAllowThreads(__tstate);
8646 if (PyErr_Occurred()) SWIG_fail;
8647 }
8648 {
8649 #if wxUSE_UNICODE
8650 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8651 #else
8652 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8653 #endif
8654 }
8655 return resultobj;
8656 fail:
8657 return NULL;
8658 }
8659
8660
8661 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8662 PyObject *resultobj;
8663 wxFont *arg1 = (wxFont *) 0 ;
8664 wxString result;
8665 PyObject * obj0 = 0 ;
8666 char *kwnames[] = {
8667 (char *) "self", NULL
8668 };
8669
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8673 {
8674 PyThreadState* __tstate = wxPyBeginAllowThreads();
8675 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8676
8677 wxPyEndAllowThreads(__tstate);
8678 if (PyErr_Occurred()) SWIG_fail;
8679 }
8680 {
8681 #if wxUSE_UNICODE
8682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8683 #else
8684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8685 #endif
8686 }
8687 return resultobj;
8688 fail:
8689 return NULL;
8690 }
8691
8692
8693 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj;
8695 wxFont *arg1 = (wxFont *) 0 ;
8696 int arg2 ;
8697 PyObject * obj0 = 0 ;
8698 PyObject * obj1 = 0 ;
8699 char *kwnames[] = {
8700 (char *) "self",(char *) "pointSize", NULL
8701 };
8702
8703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8706 arg2 = (int) SWIG_AsInt(obj1);
8707 if (PyErr_Occurred()) SWIG_fail;
8708 {
8709 PyThreadState* __tstate = wxPyBeginAllowThreads();
8710 (arg1)->SetPointSize(arg2);
8711
8712 wxPyEndAllowThreads(__tstate);
8713 if (PyErr_Occurred()) SWIG_fail;
8714 }
8715 Py_INCREF(Py_None); resultobj = Py_None;
8716 return resultobj;
8717 fail:
8718 return NULL;
8719 }
8720
8721
8722 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8723 PyObject *resultobj;
8724 wxFont *arg1 = (wxFont *) 0 ;
8725 int arg2 ;
8726 PyObject * obj0 = 0 ;
8727 PyObject * obj1 = 0 ;
8728 char *kwnames[] = {
8729 (char *) "self",(char *) "family", NULL
8730 };
8731
8732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8735 arg2 = (int) SWIG_AsInt(obj1);
8736 if (PyErr_Occurred()) SWIG_fail;
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 (arg1)->SetFamily(arg2);
8740
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 Py_INCREF(Py_None); resultobj = Py_None;
8745 return resultobj;
8746 fail:
8747 return NULL;
8748 }
8749
8750
8751 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8752 PyObject *resultobj;
8753 wxFont *arg1 = (wxFont *) 0 ;
8754 int arg2 ;
8755 PyObject * obj0 = 0 ;
8756 PyObject * obj1 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self",(char *) "style", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 arg2 = (int) SWIG_AsInt(obj1);
8765 if (PyErr_Occurred()) SWIG_fail;
8766 {
8767 PyThreadState* __tstate = wxPyBeginAllowThreads();
8768 (arg1)->SetStyle(arg2);
8769
8770 wxPyEndAllowThreads(__tstate);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 }
8773 Py_INCREF(Py_None); resultobj = Py_None;
8774 return resultobj;
8775 fail:
8776 return NULL;
8777 }
8778
8779
8780 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8781 PyObject *resultobj;
8782 wxFont *arg1 = (wxFont *) 0 ;
8783 int arg2 ;
8784 PyObject * obj0 = 0 ;
8785 PyObject * obj1 = 0 ;
8786 char *kwnames[] = {
8787 (char *) "self",(char *) "weight", NULL
8788 };
8789
8790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8793 arg2 = (int) SWIG_AsInt(obj1);
8794 if (PyErr_Occurred()) SWIG_fail;
8795 {
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 (arg1)->SetWeight(arg2);
8798
8799 wxPyEndAllowThreads(__tstate);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 }
8802 Py_INCREF(Py_None); resultobj = Py_None;
8803 return resultobj;
8804 fail:
8805 return NULL;
8806 }
8807
8808
8809 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8810 PyObject *resultobj;
8811 wxFont *arg1 = (wxFont *) 0 ;
8812 wxString *arg2 = 0 ;
8813 bool temp2 = False ;
8814 PyObject * obj0 = 0 ;
8815 PyObject * obj1 = 0 ;
8816 char *kwnames[] = {
8817 (char *) "self",(char *) "faceName", NULL
8818 };
8819
8820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8823 {
8824 arg2 = wxString_in_helper(obj1);
8825 if (arg2 == NULL) SWIG_fail;
8826 temp2 = True;
8827 }
8828 {
8829 PyThreadState* __tstate = wxPyBeginAllowThreads();
8830 (arg1)->SetFaceName((wxString const &)*arg2);
8831
8832 wxPyEndAllowThreads(__tstate);
8833 if (PyErr_Occurred()) SWIG_fail;
8834 }
8835 Py_INCREF(Py_None); resultobj = Py_None;
8836 {
8837 if (temp2)
8838 delete arg2;
8839 }
8840 return resultobj;
8841 fail:
8842 {
8843 if (temp2)
8844 delete arg2;
8845 }
8846 return NULL;
8847 }
8848
8849
8850 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8851 PyObject *resultobj;
8852 wxFont *arg1 = (wxFont *) 0 ;
8853 bool arg2 ;
8854 PyObject * obj0 = 0 ;
8855 PyObject * obj1 = 0 ;
8856 char *kwnames[] = {
8857 (char *) "self",(char *) "underlined", NULL
8858 };
8859
8860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8863 arg2 = (bool) SWIG_AsBool(obj1);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 {
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 (arg1)->SetUnderlined(arg2);
8868
8869 wxPyEndAllowThreads(__tstate);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 }
8872 Py_INCREF(Py_None); resultobj = Py_None;
8873 return resultobj;
8874 fail:
8875 return NULL;
8876 }
8877
8878
8879 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8880 PyObject *resultobj;
8881 wxFont *arg1 = (wxFont *) 0 ;
8882 int arg2 ;
8883 PyObject * obj0 = 0 ;
8884 PyObject * obj1 = 0 ;
8885 char *kwnames[] = {
8886 (char *) "self",(char *) "encoding", NULL
8887 };
8888
8889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8892 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8893 if (PyErr_Occurred()) SWIG_fail;
8894 {
8895 PyThreadState* __tstate = wxPyBeginAllowThreads();
8896 (arg1)->SetEncoding((wxFontEncoding )arg2);
8897
8898 wxPyEndAllowThreads(__tstate);
8899 if (PyErr_Occurred()) SWIG_fail;
8900 }
8901 Py_INCREF(Py_None); resultobj = Py_None;
8902 return resultobj;
8903 fail:
8904 return NULL;
8905 }
8906
8907
8908 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj;
8910 wxFont *arg1 = (wxFont *) 0 ;
8911 wxNativeFontInfo *arg2 = 0 ;
8912 PyObject * obj0 = 0 ;
8913 PyObject * obj1 = 0 ;
8914 char *kwnames[] = {
8915 (char *) "self",(char *) "info", NULL
8916 };
8917
8918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8921 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8922 SWIG_POINTER_EXCEPTION | 0)) == -1)
8923 SWIG_fail;
8924 if (arg2 == NULL) {
8925 PyErr_SetString(PyExc_TypeError,"null reference");
8926 SWIG_fail;
8927 }
8928 {
8929 PyThreadState* __tstate = wxPyBeginAllowThreads();
8930 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8931
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 Py_INCREF(Py_None); resultobj = Py_None;
8936 return resultobj;
8937 fail:
8938 return NULL;
8939 }
8940
8941
8942 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8943 PyObject *resultobj;
8944 wxFont *arg1 = (wxFont *) 0 ;
8945 wxString *arg2 = 0 ;
8946 bool temp2 = False ;
8947 PyObject * obj0 = 0 ;
8948 PyObject * obj1 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self",(char *) "info", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 {
8957 arg2 = wxString_in_helper(obj1);
8958 if (arg2 == NULL) SWIG_fail;
8959 temp2 = True;
8960 }
8961 {
8962 PyThreadState* __tstate = wxPyBeginAllowThreads();
8963 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8964
8965 wxPyEndAllowThreads(__tstate);
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
8968 Py_INCREF(Py_None); resultobj = Py_None;
8969 {
8970 if (temp2)
8971 delete arg2;
8972 }
8973 return resultobj;
8974 fail:
8975 {
8976 if (temp2)
8977 delete arg2;
8978 }
8979 return NULL;
8980 }
8981
8982
8983 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8984 PyObject *resultobj;
8985 wxFont *arg1 = (wxFont *) 0 ;
8986 wxString *arg2 = 0 ;
8987 bool temp2 = False ;
8988 PyObject * obj0 = 0 ;
8989 PyObject * obj1 = 0 ;
8990 char *kwnames[] = {
8991 (char *) "self",(char *) "info", NULL
8992 };
8993
8994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8997 {
8998 arg2 = wxString_in_helper(obj1);
8999 if (arg2 == NULL) SWIG_fail;
9000 temp2 = True;
9001 }
9002 {
9003 PyThreadState* __tstate = wxPyBeginAllowThreads();
9004 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9005
9006 wxPyEndAllowThreads(__tstate);
9007 if (PyErr_Occurred()) SWIG_fail;
9008 }
9009 Py_INCREF(Py_None); resultobj = Py_None;
9010 {
9011 if (temp2)
9012 delete arg2;
9013 }
9014 return resultobj;
9015 fail:
9016 {
9017 if (temp2)
9018 delete arg2;
9019 }
9020 return NULL;
9021 }
9022
9023
9024 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
9025 PyObject *resultobj;
9026 wxFont *arg1 = (wxFont *) 0 ;
9027 wxString result;
9028 PyObject * obj0 = 0 ;
9029 char *kwnames[] = {
9030 (char *) "self", NULL
9031 };
9032
9033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9036 {
9037 PyThreadState* __tstate = wxPyBeginAllowThreads();
9038 result = ((wxFont const *)arg1)->GetFamilyString();
9039
9040 wxPyEndAllowThreads(__tstate);
9041 if (PyErr_Occurred()) SWIG_fail;
9042 }
9043 {
9044 #if wxUSE_UNICODE
9045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9046 #else
9047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9048 #endif
9049 }
9050 return resultobj;
9051 fail:
9052 return NULL;
9053 }
9054
9055
9056 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9057 PyObject *resultobj;
9058 wxFont *arg1 = (wxFont *) 0 ;
9059 wxString result;
9060 PyObject * obj0 = 0 ;
9061 char *kwnames[] = {
9062 (char *) "self", NULL
9063 };
9064
9065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9068 {
9069 PyThreadState* __tstate = wxPyBeginAllowThreads();
9070 result = ((wxFont const *)arg1)->GetStyleString();
9071
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) SWIG_fail;
9074 }
9075 {
9076 #if wxUSE_UNICODE
9077 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9078 #else
9079 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9080 #endif
9081 }
9082 return resultobj;
9083 fail:
9084 return NULL;
9085 }
9086
9087
9088 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9089 PyObject *resultobj;
9090 wxFont *arg1 = (wxFont *) 0 ;
9091 wxString result;
9092 PyObject * obj0 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "self", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = ((wxFont const *)arg1)->GetWeightString();
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 #if wxUSE_UNICODE
9109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9110 #else
9111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9112 #endif
9113 }
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 wxFont *arg1 = (wxFont *) 0 ;
9123 bool arg2 = (bool) True ;
9124 PyObject * obj0 = 0 ;
9125 PyObject * obj1 = 0 ;
9126 char *kwnames[] = {
9127 (char *) "self",(char *) "no", NULL
9128 };
9129
9130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9133 if (obj1) {
9134 arg2 = (bool) SWIG_AsBool(obj1);
9135 if (PyErr_Occurred()) SWIG_fail;
9136 }
9137 {
9138 PyThreadState* __tstate = wxPyBeginAllowThreads();
9139 (arg1)->SetNoAntiAliasing(arg2);
9140
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 Py_INCREF(Py_None); resultobj = Py_None;
9145 return resultobj;
9146 fail:
9147 return NULL;
9148 }
9149
9150
9151 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9152 PyObject *resultobj;
9153 wxFont *arg1 = (wxFont *) 0 ;
9154 bool result;
9155 PyObject * obj0 = 0 ;
9156 char *kwnames[] = {
9157 (char *) "self", NULL
9158 };
9159
9160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9163 {
9164 PyThreadState* __tstate = wxPyBeginAllowThreads();
9165 result = (bool)(arg1)->GetNoAntiAliasing();
9166
9167 wxPyEndAllowThreads(__tstate);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 {
9171 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9172 }
9173 return resultobj;
9174 fail:
9175 return NULL;
9176 }
9177
9178
9179 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject *resultobj;
9181 int result;
9182 char *kwnames[] = {
9183 NULL
9184 };
9185
9186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9187 {
9188 if (!wxPyCheckForApp()) SWIG_fail;
9189 PyThreadState* __tstate = wxPyBeginAllowThreads();
9190 result = (int)wxFont::GetDefaultEncoding();
9191
9192 wxPyEndAllowThreads(__tstate);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 resultobj = SWIG_FromInt((int)result);
9196 return resultobj;
9197 fail:
9198 return NULL;
9199 }
9200
9201
9202 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9203 PyObject *resultobj;
9204 int arg1 ;
9205 PyObject * obj0 = 0 ;
9206 char *kwnames[] = {
9207 (char *) "encoding", NULL
9208 };
9209
9210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9211 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9212 if (PyErr_Occurred()) SWIG_fail;
9213 {
9214 if (!wxPyCheckForApp()) SWIG_fail;
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9217
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 Py_INCREF(Py_None); resultobj = Py_None;
9222 return resultobj;
9223 fail:
9224 return NULL;
9225 }
9226
9227
9228 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9229 PyObject *obj;
9230 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9231 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9232 Py_INCREF(obj);
9233 return Py_BuildValue((char *)"");
9234 }
9235 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj;
9237 wxPyFontEnumerator *result;
9238 char *kwnames[] = {
9239 NULL
9240 };
9241
9242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9243 {
9244 if (!wxPyCheckForApp()) SWIG_fail;
9245 PyThreadState* __tstate = wxPyBeginAllowThreads();
9246 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9247
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9261 PyObject * obj0 = 0 ;
9262 char *kwnames[] = {
9263 (char *) "self", NULL
9264 };
9265
9266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9269 {
9270 PyThreadState* __tstate = wxPyBeginAllowThreads();
9271 delete arg1;
9272
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 Py_INCREF(Py_None); resultobj = Py_None;
9277 return resultobj;
9278 fail:
9279 return NULL;
9280 }
9281
9282
9283 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9284 PyObject *resultobj;
9285 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9286 PyObject *arg2 = (PyObject *) 0 ;
9287 PyObject *arg3 = (PyObject *) 0 ;
9288 bool arg4 ;
9289 PyObject * obj0 = 0 ;
9290 PyObject * obj1 = 0 ;
9291 PyObject * obj2 = 0 ;
9292 PyObject * obj3 = 0 ;
9293 char *kwnames[] = {
9294 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9295 };
9296
9297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9300 arg2 = obj1;
9301 arg3 = obj2;
9302 arg4 = (bool) SWIG_AsBool(obj3);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 {
9305 PyThreadState* __tstate = wxPyBeginAllowThreads();
9306 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9307
9308 wxPyEndAllowThreads(__tstate);
9309 if (PyErr_Occurred()) SWIG_fail;
9310 }
9311 Py_INCREF(Py_None); resultobj = Py_None;
9312 return resultobj;
9313 fail:
9314 return NULL;
9315 }
9316
9317
9318 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj;
9320 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9321 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9322 bool arg3 = (bool) False ;
9323 bool result;
9324 PyObject * obj0 = 0 ;
9325 PyObject * obj1 = 0 ;
9326 PyObject * obj2 = 0 ;
9327 char *kwnames[] = {
9328 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9329 };
9330
9331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9334 if (obj1) {
9335 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9336 if (PyErr_Occurred()) SWIG_fail;
9337 }
9338 if (obj2) {
9339 arg3 = (bool) SWIG_AsBool(obj2);
9340 if (PyErr_Occurred()) SWIG_fail;
9341 }
9342 {
9343 PyThreadState* __tstate = wxPyBeginAllowThreads();
9344 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9345
9346 wxPyEndAllowThreads(__tstate);
9347 if (PyErr_Occurred()) SWIG_fail;
9348 }
9349 {
9350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9351 }
9352 return resultobj;
9353 fail:
9354 return NULL;
9355 }
9356
9357
9358 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9359 PyObject *resultobj;
9360 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9361 wxString const &arg2_defvalue = wxPyEmptyString ;
9362 wxString *arg2 = (wxString *) &arg2_defvalue ;
9363 bool result;
9364 bool temp2 = False ;
9365 PyObject * obj0 = 0 ;
9366 PyObject * obj1 = 0 ;
9367 char *kwnames[] = {
9368 (char *) "self",(char *) "facename", NULL
9369 };
9370
9371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9374 if (obj1) {
9375 {
9376 arg2 = wxString_in_helper(obj1);
9377 if (arg2 == NULL) SWIG_fail;
9378 temp2 = True;
9379 }
9380 }
9381 {
9382 PyThreadState* __tstate = wxPyBeginAllowThreads();
9383 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9384
9385 wxPyEndAllowThreads(__tstate);
9386 if (PyErr_Occurred()) SWIG_fail;
9387 }
9388 {
9389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9390 }
9391 {
9392 if (temp2)
9393 delete arg2;
9394 }
9395 return resultobj;
9396 fail:
9397 {
9398 if (temp2)
9399 delete arg2;
9400 }
9401 return NULL;
9402 }
9403
9404
9405 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9406 PyObject *resultobj;
9407 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9408 PyObject *result;
9409 PyObject * obj0 = 0 ;
9410 char *kwnames[] = {
9411 (char *) "self", NULL
9412 };
9413
9414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9417 {
9418 PyThreadState* __tstate = wxPyBeginAllowThreads();
9419 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9420
9421 wxPyEndAllowThreads(__tstate);
9422 if (PyErr_Occurred()) SWIG_fail;
9423 }
9424 resultobj = result;
9425 return resultobj;
9426 fail:
9427 return NULL;
9428 }
9429
9430
9431 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9432 PyObject *resultobj;
9433 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9434 PyObject *result;
9435 PyObject * obj0 = 0 ;
9436 char *kwnames[] = {
9437 (char *) "self", NULL
9438 };
9439
9440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9446
9447 wxPyEndAllowThreads(__tstate);
9448 if (PyErr_Occurred()) SWIG_fail;
9449 }
9450 resultobj = result;
9451 return resultobj;
9452 fail:
9453 return NULL;
9454 }
9455
9456
9457 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9458 PyObject *obj;
9459 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9460 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9461 Py_INCREF(obj);
9462 return Py_BuildValue((char *)"");
9463 }
9464 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9465 PyObject *resultobj;
9466 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9467 int arg2 ;
9468 PyObject * obj0 = 0 ;
9469 PyObject * obj1 = 0 ;
9470 char *kwnames[] = {
9471 (char *) "self",(char *) "Language", NULL
9472 };
9473
9474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9477 arg2 = (int) SWIG_AsInt(obj1);
9478 if (PyErr_Occurred()) SWIG_fail;
9479 if (arg1) (arg1)->Language = arg2;
9480
9481 Py_INCREF(Py_None); resultobj = Py_None;
9482 return resultobj;
9483 fail:
9484 return NULL;
9485 }
9486
9487
9488 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9489 PyObject *resultobj;
9490 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9491 int result;
9492 PyObject * obj0 = 0 ;
9493 char *kwnames[] = {
9494 (char *) "self", NULL
9495 };
9496
9497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9500 result = (int) ((arg1)->Language);
9501
9502 resultobj = SWIG_FromInt((int)result);
9503 return resultobj;
9504 fail:
9505 return NULL;
9506 }
9507
9508
9509 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9510 PyObject *resultobj;
9511 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9512 wxString *arg2 = (wxString *) 0 ;
9513 bool temp2 = False ;
9514 PyObject * obj0 = 0 ;
9515 PyObject * obj1 = 0 ;
9516 char *kwnames[] = {
9517 (char *) "self",(char *) "CanonicalName", NULL
9518 };
9519
9520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9523 {
9524 arg2 = wxString_in_helper(obj1);
9525 if (arg2 == NULL) SWIG_fail;
9526 temp2 = True;
9527 }
9528 if (arg1) (arg1)->CanonicalName = *arg2;
9529
9530 Py_INCREF(Py_None); resultobj = Py_None;
9531 {
9532 if (temp2)
9533 delete arg2;
9534 }
9535 return resultobj;
9536 fail:
9537 {
9538 if (temp2)
9539 delete arg2;
9540 }
9541 return NULL;
9542 }
9543
9544
9545 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9546 PyObject *resultobj;
9547 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9548 wxString *result;
9549 PyObject * obj0 = 0 ;
9550 char *kwnames[] = {
9551 (char *) "self", NULL
9552 };
9553
9554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9557 result = (wxString *)& ((arg1)->CanonicalName);
9558
9559 {
9560 #if wxUSE_UNICODE
9561 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9562 #else
9563 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9564 #endif
9565 }
9566 return resultobj;
9567 fail:
9568 return NULL;
9569 }
9570
9571
9572 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9573 PyObject *resultobj;
9574 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9575 wxString *arg2 = (wxString *) 0 ;
9576 bool temp2 = False ;
9577 PyObject * obj0 = 0 ;
9578 PyObject * obj1 = 0 ;
9579 char *kwnames[] = {
9580 (char *) "self",(char *) "Description", NULL
9581 };
9582
9583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9586 {
9587 arg2 = wxString_in_helper(obj1);
9588 if (arg2 == NULL) SWIG_fail;
9589 temp2 = True;
9590 }
9591 if (arg1) (arg1)->Description = *arg2;
9592
9593 Py_INCREF(Py_None); resultobj = Py_None;
9594 {
9595 if (temp2)
9596 delete arg2;
9597 }
9598 return resultobj;
9599 fail:
9600 {
9601 if (temp2)
9602 delete arg2;
9603 }
9604 return NULL;
9605 }
9606
9607
9608 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9609 PyObject *resultobj;
9610 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9611 wxString *result;
9612 PyObject * obj0 = 0 ;
9613 char *kwnames[] = {
9614 (char *) "self", NULL
9615 };
9616
9617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9620 result = (wxString *)& ((arg1)->Description);
9621
9622 {
9623 #if wxUSE_UNICODE
9624 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9625 #else
9626 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9627 #endif
9628 }
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9636 PyObject *obj;
9637 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9638 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9639 Py_INCREF(obj);
9640 return Py_BuildValue((char *)"");
9641 }
9642 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj;
9644 int arg1 = (int) -1 ;
9645 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9646 wxLocale *result;
9647 PyObject * obj0 = 0 ;
9648 PyObject * obj1 = 0 ;
9649 char *kwnames[] = {
9650 (char *) "language",(char *) "flags", NULL
9651 };
9652
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9654 if (obj0) {
9655 arg1 = (int) SWIG_AsInt(obj0);
9656 if (PyErr_Occurred()) SWIG_fail;
9657 }
9658 if (obj1) {
9659 arg2 = (int) SWIG_AsInt(obj1);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 result = (wxLocale *)new_wxLocale(arg1,arg2);
9665
9666 wxPyEndAllowThreads(__tstate);
9667 if (PyErr_Occurred()) SWIG_fail;
9668 }
9669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9670 return resultobj;
9671 fail:
9672 return NULL;
9673 }
9674
9675
9676 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9677 PyObject *resultobj;
9678 wxLocale *arg1 = (wxLocale *) 0 ;
9679 PyObject * obj0 = 0 ;
9680 char *kwnames[] = {
9681 (char *) "self", NULL
9682 };
9683
9684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9687 {
9688 PyThreadState* __tstate = wxPyBeginAllowThreads();
9689 delete arg1;
9690
9691 wxPyEndAllowThreads(__tstate);
9692 if (PyErr_Occurred()) SWIG_fail;
9693 }
9694 Py_INCREF(Py_None); resultobj = Py_None;
9695 return resultobj;
9696 fail:
9697 return NULL;
9698 }
9699
9700
9701 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9702 PyObject *resultobj;
9703 wxLocale *arg1 = (wxLocale *) 0 ;
9704 wxString *arg2 = 0 ;
9705 wxString const &arg3_defvalue = wxPyEmptyString ;
9706 wxString *arg3 = (wxString *) &arg3_defvalue ;
9707 wxString const &arg4_defvalue = wxPyEmptyString ;
9708 wxString *arg4 = (wxString *) &arg4_defvalue ;
9709 bool arg5 = (bool) True ;
9710 bool arg6 = (bool) False ;
9711 bool result;
9712 bool temp2 = False ;
9713 bool temp3 = False ;
9714 bool temp4 = False ;
9715 PyObject * obj0 = 0 ;
9716 PyObject * obj1 = 0 ;
9717 PyObject * obj2 = 0 ;
9718 PyObject * obj3 = 0 ;
9719 PyObject * obj4 = 0 ;
9720 PyObject * obj5 = 0 ;
9721 char *kwnames[] = {
9722 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9723 };
9724
9725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9728 {
9729 arg2 = wxString_in_helper(obj1);
9730 if (arg2 == NULL) SWIG_fail;
9731 temp2 = True;
9732 }
9733 if (obj2) {
9734 {
9735 arg3 = wxString_in_helper(obj2);
9736 if (arg3 == NULL) SWIG_fail;
9737 temp3 = True;
9738 }
9739 }
9740 if (obj3) {
9741 {
9742 arg4 = wxString_in_helper(obj3);
9743 if (arg4 == NULL) SWIG_fail;
9744 temp4 = True;
9745 }
9746 }
9747 if (obj4) {
9748 arg5 = (bool) SWIG_AsBool(obj4);
9749 if (PyErr_Occurred()) SWIG_fail;
9750 }
9751 if (obj5) {
9752 arg6 = (bool) SWIG_AsBool(obj5);
9753 if (PyErr_Occurred()) SWIG_fail;
9754 }
9755 {
9756 PyThreadState* __tstate = wxPyBeginAllowThreads();
9757 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9758
9759 wxPyEndAllowThreads(__tstate);
9760 if (PyErr_Occurred()) SWIG_fail;
9761 }
9762 {
9763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9764 }
9765 {
9766 if (temp2)
9767 delete arg2;
9768 }
9769 {
9770 if (temp3)
9771 delete arg3;
9772 }
9773 {
9774 if (temp4)
9775 delete arg4;
9776 }
9777 return resultobj;
9778 fail:
9779 {
9780 if (temp2)
9781 delete arg2;
9782 }
9783 {
9784 if (temp3)
9785 delete arg3;
9786 }
9787 {
9788 if (temp4)
9789 delete arg4;
9790 }
9791 return NULL;
9792 }
9793
9794
9795 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9796 PyObject *resultobj;
9797 wxLocale *arg1 = (wxLocale *) 0 ;
9798 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9799 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9800 bool result;
9801 PyObject * obj0 = 0 ;
9802 PyObject * obj1 = 0 ;
9803 PyObject * obj2 = 0 ;
9804 char *kwnames[] = {
9805 (char *) "self",(char *) "language",(char *) "flags", NULL
9806 };
9807
9808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9811 if (obj1) {
9812 arg2 = (int) SWIG_AsInt(obj1);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 if (obj2) {
9816 arg3 = (int) SWIG_AsInt(obj2);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (bool)(arg1)->Init(arg2,arg3);
9822
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 {
9827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9828 }
9829 return resultobj;
9830 fail:
9831 return NULL;
9832 }
9833
9834
9835 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 int result;
9838 char *kwnames[] = {
9839 NULL
9840 };
9841
9842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9843 {
9844 PyThreadState* __tstate = wxPyBeginAllowThreads();
9845 result = (int)wxLocale::GetSystemLanguage();
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 resultobj = SWIG_FromInt((int)result);
9851 return resultobj;
9852 fail:
9853 return NULL;
9854 }
9855
9856
9857 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9858 PyObject *resultobj;
9859 int result;
9860 char *kwnames[] = {
9861 NULL
9862 };
9863
9864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (int)wxLocale::GetSystemEncoding();
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = SWIG_FromInt((int)result);
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9880 PyObject *resultobj;
9881 wxString result;
9882 char *kwnames[] = {
9883 NULL
9884 };
9885
9886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9887 {
9888 PyThreadState* __tstate = wxPyBeginAllowThreads();
9889 result = wxLocale::GetSystemEncodingName();
9890
9891 wxPyEndAllowThreads(__tstate);
9892 if (PyErr_Occurred()) SWIG_fail;
9893 }
9894 {
9895 #if wxUSE_UNICODE
9896 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9897 #else
9898 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9899 #endif
9900 }
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj;
9909 wxLocale *arg1 = (wxLocale *) 0 ;
9910 bool result;
9911 PyObject * obj0 = 0 ;
9912 char *kwnames[] = {
9913 (char *) "self", NULL
9914 };
9915
9916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9919 {
9920 PyThreadState* __tstate = wxPyBeginAllowThreads();
9921 result = (bool)((wxLocale const *)arg1)->IsOk();
9922
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 {
9927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9928 }
9929 return resultobj;
9930 fail:
9931 return NULL;
9932 }
9933
9934
9935 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9936 PyObject *resultobj;
9937 wxLocale *arg1 = (wxLocale *) 0 ;
9938 wxString result;
9939 PyObject * obj0 = 0 ;
9940 char *kwnames[] = {
9941 (char *) "self", NULL
9942 };
9943
9944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9947 {
9948 PyThreadState* __tstate = wxPyBeginAllowThreads();
9949 result = ((wxLocale const *)arg1)->GetLocale();
9950
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 {
9955 #if wxUSE_UNICODE
9956 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9957 #else
9958 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9959 #endif
9960 }
9961 return resultobj;
9962 fail:
9963 return NULL;
9964 }
9965
9966
9967 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9968 PyObject *resultobj;
9969 wxLocale *arg1 = (wxLocale *) 0 ;
9970 int result;
9971 PyObject * obj0 = 0 ;
9972 char *kwnames[] = {
9973 (char *) "self", NULL
9974 };
9975
9976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = (int)((wxLocale const *)arg1)->GetLanguage();
9982
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 resultobj = SWIG_FromInt((int)result);
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9994 PyObject *resultobj;
9995 wxLocale *arg1 = (wxLocale *) 0 ;
9996 wxString result;
9997 PyObject * obj0 = 0 ;
9998 char *kwnames[] = {
9999 (char *) "self", NULL
10000 };
10001
10002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 result = ((wxLocale const *)arg1)->GetSysName();
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 }
10012 {
10013 #if wxUSE_UNICODE
10014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10015 #else
10016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10017 #endif
10018 }
10019 return resultobj;
10020 fail:
10021 return NULL;
10022 }
10023
10024
10025 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
10026 PyObject *resultobj;
10027 wxLocale *arg1 = (wxLocale *) 0 ;
10028 wxString result;
10029 PyObject * obj0 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10037 {
10038 PyThreadState* __tstate = wxPyBeginAllowThreads();
10039 result = ((wxLocale const *)arg1)->GetCanonicalName();
10040
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 {
10045 #if wxUSE_UNICODE
10046 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10047 #else
10048 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10049 #endif
10050 }
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxString *arg1 = 0 ;
10060 bool temp1 = False ;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "prefix", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10067 {
10068 arg1 = wxString_in_helper(obj0);
10069 if (arg1 == NULL) SWIG_fail;
10070 temp1 = True;
10071 }
10072 {
10073 PyThreadState* __tstate = wxPyBeginAllowThreads();
10074 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10075
10076 wxPyEndAllowThreads(__tstate);
10077 if (PyErr_Occurred()) SWIG_fail;
10078 }
10079 Py_INCREF(Py_None); resultobj = Py_None;
10080 {
10081 if (temp1)
10082 delete arg1;
10083 }
10084 return resultobj;
10085 fail:
10086 {
10087 if (temp1)
10088 delete arg1;
10089 }
10090 return NULL;
10091 }
10092
10093
10094 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10095 PyObject *resultobj;
10096 wxLocale *arg1 = (wxLocale *) 0 ;
10097 wxString *arg2 = 0 ;
10098 bool result;
10099 bool temp2 = False ;
10100 PyObject * obj0 = 0 ;
10101 PyObject * obj1 = 0 ;
10102 char *kwnames[] = {
10103 (char *) "self",(char *) "szDomain", NULL
10104 };
10105
10106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10109 {
10110 arg2 = wxString_in_helper(obj1);
10111 if (arg2 == NULL) SWIG_fail;
10112 temp2 = True;
10113 }
10114 {
10115 PyThreadState* __tstate = wxPyBeginAllowThreads();
10116 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10117
10118 wxPyEndAllowThreads(__tstate);
10119 if (PyErr_Occurred()) SWIG_fail;
10120 }
10121 {
10122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10123 }
10124 {
10125 if (temp2)
10126 delete arg2;
10127 }
10128 return resultobj;
10129 fail:
10130 {
10131 if (temp2)
10132 delete arg2;
10133 }
10134 return NULL;
10135 }
10136
10137
10138 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10139 PyObject *resultobj;
10140 wxLocale *arg1 = (wxLocale *) 0 ;
10141 wxString *arg2 = 0 ;
10142 bool result;
10143 bool temp2 = False ;
10144 PyObject * obj0 = 0 ;
10145 PyObject * obj1 = 0 ;
10146 char *kwnames[] = {
10147 (char *) "self",(char *) "szDomain", NULL
10148 };
10149
10150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10153 {
10154 arg2 = wxString_in_helper(obj1);
10155 if (arg2 == NULL) SWIG_fail;
10156 temp2 = True;
10157 }
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10161
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 {
10166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10167 }
10168 {
10169 if (temp2)
10170 delete arg2;
10171 }
10172 return resultobj;
10173 fail:
10174 {
10175 if (temp2)
10176 delete arg2;
10177 }
10178 return NULL;
10179 }
10180
10181
10182 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj;
10184 int arg1 ;
10185 wxLanguageInfo *result;
10186 PyObject * obj0 = 0 ;
10187 char *kwnames[] = {
10188 (char *) "lang", NULL
10189 };
10190
10191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10192 arg1 = (int) SWIG_AsInt(obj0);
10193 if (PyErr_Occurred()) SWIG_fail;
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10202 return resultobj;
10203 fail:
10204 return NULL;
10205 }
10206
10207
10208 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10209 PyObject *resultobj;
10210 int arg1 ;
10211 wxString result;
10212 PyObject * obj0 = 0 ;
10213 char *kwnames[] = {
10214 (char *) "lang", NULL
10215 };
10216
10217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10218 arg1 = (int) SWIG_AsInt(obj0);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 {
10221 PyThreadState* __tstate = wxPyBeginAllowThreads();
10222 result = wxLocale::GetLanguageName(arg1);
10223
10224 wxPyEndAllowThreads(__tstate);
10225 if (PyErr_Occurred()) SWIG_fail;
10226 }
10227 {
10228 #if wxUSE_UNICODE
10229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10230 #else
10231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10232 #endif
10233 }
10234 return resultobj;
10235 fail:
10236 return NULL;
10237 }
10238
10239
10240 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10241 PyObject *resultobj;
10242 wxString *arg1 = 0 ;
10243 wxLanguageInfo *result;
10244 bool temp1 = False ;
10245 PyObject * obj0 = 0 ;
10246 char *kwnames[] = {
10247 (char *) "locale", NULL
10248 };
10249
10250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10251 {
10252 arg1 = wxString_in_helper(obj0);
10253 if (arg1 == NULL) SWIG_fail;
10254 temp1 = True;
10255 }
10256 {
10257 PyThreadState* __tstate = wxPyBeginAllowThreads();
10258 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10259
10260 wxPyEndAllowThreads(__tstate);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 }
10263 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10264 {
10265 if (temp1)
10266 delete arg1;
10267 }
10268 return resultobj;
10269 fail:
10270 {
10271 if (temp1)
10272 delete arg1;
10273 }
10274 return NULL;
10275 }
10276
10277
10278 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10279 PyObject *resultobj;
10280 wxLanguageInfo *arg1 = 0 ;
10281 PyObject * obj0 = 0 ;
10282 char *kwnames[] = {
10283 (char *) "info", NULL
10284 };
10285
10286 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10287 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10288 SWIG_POINTER_EXCEPTION | 0)) == -1)
10289 SWIG_fail;
10290 if (arg1 == NULL) {
10291 PyErr_SetString(PyExc_TypeError,"null reference");
10292 SWIG_fail;
10293 }
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 Py_INCREF(Py_None); resultobj = Py_None;
10302 return resultobj;
10303 fail:
10304 return NULL;
10305 }
10306
10307
10308 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxLocale *arg1 = (wxLocale *) 0 ;
10311 wxString *arg2 = 0 ;
10312 wxString const &arg3_defvalue = wxPyEmptyString ;
10313 wxString *arg3 = (wxString *) &arg3_defvalue ;
10314 wxString result;
10315 bool temp2 = False ;
10316 bool temp3 = False ;
10317 PyObject * obj0 = 0 ;
10318 PyObject * obj1 = 0 ;
10319 PyObject * obj2 = 0 ;
10320 char *kwnames[] = {
10321 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10322 };
10323
10324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10327 {
10328 arg2 = wxString_in_helper(obj1);
10329 if (arg2 == NULL) SWIG_fail;
10330 temp2 = True;
10331 }
10332 if (obj2) {
10333 {
10334 arg3 = wxString_in_helper(obj2);
10335 if (arg3 == NULL) SWIG_fail;
10336 temp3 = True;
10337 }
10338 }
10339 {
10340 PyThreadState* __tstate = wxPyBeginAllowThreads();
10341 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10342
10343 wxPyEndAllowThreads(__tstate);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 #if wxUSE_UNICODE
10348 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10349 #else
10350 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10351 #endif
10352 }
10353 {
10354 if (temp2)
10355 delete arg2;
10356 }
10357 {
10358 if (temp3)
10359 delete arg3;
10360 }
10361 return resultobj;
10362 fail:
10363 {
10364 if (temp2)
10365 delete arg2;
10366 }
10367 {
10368 if (temp3)
10369 delete arg3;
10370 }
10371 return NULL;
10372 }
10373
10374
10375 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10376 PyObject *resultobj;
10377 wxLocale *arg1 = (wxLocale *) 0 ;
10378 wxString *result;
10379 PyObject * obj0 = 0 ;
10380 char *kwnames[] = {
10381 (char *) "self", NULL
10382 };
10383
10384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10387 {
10388 PyThreadState* __tstate = wxPyBeginAllowThreads();
10389 {
10390 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10391 result = (wxString *) &_result_ref;
10392 }
10393
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 {
10398 #if wxUSE_UNICODE
10399 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10400 #else
10401 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10402 #endif
10403 }
10404 return resultobj;
10405 fail:
10406 return NULL;
10407 }
10408
10409
10410 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10411 PyObject *obj;
10412 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10413 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10414 Py_INCREF(obj);
10415 return Py_BuildValue((char *)"");
10416 }
10417 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10418 PyObject *resultobj;
10419 wxLocale *result;
10420 char *kwnames[] = {
10421 NULL
10422 };
10423
10424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10425 {
10426 PyThreadState* __tstate = wxPyBeginAllowThreads();
10427 result = (wxLocale *)wxGetLocale();
10428
10429 wxPyEndAllowThreads(__tstate);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 }
10432 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10433 return resultobj;
10434 fail:
10435 return NULL;
10436 }
10437
10438
10439 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10440 PyObject *resultobj;
10441 wxString *arg1 = 0 ;
10442 wxString result;
10443 bool temp1 = False ;
10444 PyObject * obj0 = 0 ;
10445
10446 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10447 {
10448 arg1 = wxString_in_helper(obj0);
10449 if (arg1 == NULL) SWIG_fail;
10450 temp1 = True;
10451 }
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 result = wxGetTranslation((wxString const &)*arg1);
10455
10456 wxPyEndAllowThreads(__tstate);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 }
10459 {
10460 #if wxUSE_UNICODE
10461 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10462 #else
10463 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10464 #endif
10465 }
10466 {
10467 if (temp1)
10468 delete arg1;
10469 }
10470 return resultobj;
10471 fail:
10472 {
10473 if (temp1)
10474 delete arg1;
10475 }
10476 return NULL;
10477 }
10478
10479
10480 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10481 PyObject *resultobj;
10482 wxString *arg1 = 0 ;
10483 wxString *arg2 = 0 ;
10484 size_t arg3 ;
10485 wxString result;
10486 bool temp1 = False ;
10487 bool temp2 = False ;
10488 PyObject * obj0 = 0 ;
10489 PyObject * obj1 = 0 ;
10490 PyObject * obj2 = 0 ;
10491
10492 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10493 {
10494 arg1 = wxString_in_helper(obj0);
10495 if (arg1 == NULL) SWIG_fail;
10496 temp1 = True;
10497 }
10498 {
10499 arg2 = wxString_in_helper(obj1);
10500 if (arg2 == NULL) SWIG_fail;
10501 temp2 = True;
10502 }
10503 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10508
10509 wxPyEndAllowThreads(__tstate);
10510 if (PyErr_Occurred()) SWIG_fail;
10511 }
10512 {
10513 #if wxUSE_UNICODE
10514 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10515 #else
10516 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10517 #endif
10518 }
10519 {
10520 if (temp1)
10521 delete arg1;
10522 }
10523 {
10524 if (temp2)
10525 delete arg2;
10526 }
10527 return resultobj;
10528 fail:
10529 {
10530 if (temp1)
10531 delete arg1;
10532 }
10533 {
10534 if (temp2)
10535 delete arg2;
10536 }
10537 return NULL;
10538 }
10539
10540
10541 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10542 int argc;
10543 PyObject *argv[4];
10544 int ii;
10545
10546 argc = PyObject_Length(args);
10547 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10548 argv[ii] = PyTuple_GetItem(args,ii);
10549 }
10550 if (argc == 1) {
10551 int _v;
10552 {
10553 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10554 }
10555 if (_v) {
10556 return _wrap_GetTranslation__SWIG_0(self,args);
10557 }
10558 }
10559 if (argc == 3) {
10560 int _v;
10561 {
10562 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10563 }
10564 if (_v) {
10565 {
10566 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10567 }
10568 if (_v) {
10569 _v = SWIG_CheckUnsignedLong(argv[2]);
10570 if (_v) {
10571 return _wrap_GetTranslation__SWIG_1(self,args);
10572 }
10573 }
10574 }
10575 }
10576
10577 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10578 return NULL;
10579 }
10580
10581
10582 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj;
10584 wxEncodingConverter *result;
10585 char *kwnames[] = {
10586 NULL
10587 };
10588
10589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10590 {
10591 PyThreadState* __tstate = wxPyBeginAllowThreads();
10592 result = (wxEncodingConverter *)new wxEncodingConverter();
10593
10594 wxPyEndAllowThreads(__tstate);
10595 if (PyErr_Occurred()) SWIG_fail;
10596 }
10597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10598 return resultobj;
10599 fail:
10600 return NULL;
10601 }
10602
10603
10604 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10605 PyObject *resultobj;
10606 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10607 PyObject * obj0 = 0 ;
10608 char *kwnames[] = {
10609 (char *) "self", NULL
10610 };
10611
10612 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10613 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10614 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10615 {
10616 PyThreadState* __tstate = wxPyBeginAllowThreads();
10617 delete arg1;
10618
10619 wxPyEndAllowThreads(__tstate);
10620 if (PyErr_Occurred()) SWIG_fail;
10621 }
10622 Py_INCREF(Py_None); resultobj = Py_None;
10623 return resultobj;
10624 fail:
10625 return NULL;
10626 }
10627
10628
10629 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10630 PyObject *resultobj;
10631 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10632 int arg2 ;
10633 int arg3 ;
10634 int arg4 = (int) wxCONVERT_STRICT ;
10635 bool result;
10636 PyObject * obj0 = 0 ;
10637 PyObject * obj1 = 0 ;
10638 PyObject * obj2 = 0 ;
10639 PyObject * obj3 = 0 ;
10640 char *kwnames[] = {
10641 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10642 };
10643
10644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10647 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10648 if (PyErr_Occurred()) SWIG_fail;
10649 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10650 if (PyErr_Occurred()) SWIG_fail;
10651 if (obj3) {
10652 arg4 = (int) SWIG_AsInt(obj3);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 }
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10658
10659 wxPyEndAllowThreads(__tstate);
10660 if (PyErr_Occurred()) SWIG_fail;
10661 }
10662 {
10663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10664 }
10665 return resultobj;
10666 fail:
10667 return NULL;
10668 }
10669
10670
10671 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10672 PyObject *resultobj;
10673 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10674 wxString *arg2 = 0 ;
10675 wxString result;
10676 bool temp2 = False ;
10677 PyObject * obj0 = 0 ;
10678 PyObject * obj1 = 0 ;
10679 char *kwnames[] = {
10680 (char *) "self",(char *) "input", NULL
10681 };
10682
10683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10686 {
10687 arg2 = wxString_in_helper(obj1);
10688 if (arg2 == NULL) SWIG_fail;
10689 temp2 = True;
10690 }
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (arg1)->Convert((wxString const &)*arg2);
10694
10695 wxPyEndAllowThreads(__tstate);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 }
10698 {
10699 #if wxUSE_UNICODE
10700 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10701 #else
10702 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10703 #endif
10704 }
10705 {
10706 if (temp2)
10707 delete arg2;
10708 }
10709 return resultobj;
10710 fail:
10711 {
10712 if (temp2)
10713 delete arg2;
10714 }
10715 return NULL;
10716 }
10717
10718
10719 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10720 PyObject *resultobj;
10721 int arg1 ;
10722 int arg2 = (int) wxPLATFORM_CURRENT ;
10723 wxFontEncodingArray result;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 char *kwnames[] = {
10727 (char *) "enc",(char *) "platform", NULL
10728 };
10729
10730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10731 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 if (obj1) {
10734 arg2 = (int) SWIG_AsInt(obj1);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 {
10738 PyThreadState* __tstate = wxPyBeginAllowThreads();
10739 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10740
10741 wxPyEndAllowThreads(__tstate);
10742 if (PyErr_Occurred()) SWIG_fail;
10743 }
10744 {
10745 resultobj = PyList_New(0);
10746 for (size_t i=0; i < (&result)->GetCount(); i++) {
10747 PyObject* number = PyInt_FromLong((&result)->Item(i));
10748 PyList_Append(resultobj, number);
10749 Py_DECREF(number);
10750 }
10751 }
10752 return resultobj;
10753 fail:
10754 return NULL;
10755 }
10756
10757
10758 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10759 PyObject *resultobj;
10760 int arg1 ;
10761 wxFontEncodingArray result;
10762 PyObject * obj0 = 0 ;
10763 char *kwnames[] = {
10764 (char *) "enc", NULL
10765 };
10766
10767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10768 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 {
10771 PyThreadState* __tstate = wxPyBeginAllowThreads();
10772 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10773
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 {
10778 resultobj = PyList_New(0);
10779 for (size_t i=0; i < (&result)->GetCount(); i++) {
10780 PyObject* number = PyInt_FromLong((&result)->Item(i));
10781 PyList_Append(resultobj, number);
10782 Py_DECREF(number);
10783 }
10784 }
10785 return resultobj;
10786 fail:
10787 return NULL;
10788 }
10789
10790
10791 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10792 PyObject *resultobj;
10793 int arg1 ;
10794 int arg2 ;
10795 bool result;
10796 PyObject * obj0 = 0 ;
10797 PyObject * obj1 = 0 ;
10798 char *kwnames[] = {
10799 (char *) "encIn",(char *) "encOut", NULL
10800 };
10801
10802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10803 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 {
10808 PyThreadState* __tstate = wxPyBeginAllowThreads();
10809 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10810
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 {
10815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10816 }
10817 return resultobj;
10818 fail:
10819 return NULL;
10820 }
10821
10822
10823 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10824 PyObject *obj;
10825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10826 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10827 Py_INCREF(obj);
10828 return Py_BuildValue((char *)"");
10829 }
10830 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj;
10832 wxDC *arg1 = (wxDC *) 0 ;
10833 PyObject * obj0 = 0 ;
10834 char *kwnames[] = {
10835 (char *) "self", NULL
10836 };
10837
10838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10841 {
10842 PyThreadState* __tstate = wxPyBeginAllowThreads();
10843 delete arg1;
10844
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 Py_INCREF(Py_None); resultobj = Py_None;
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 wxDC *arg1 = (wxDC *) 0 ;
10858 PyObject * obj0 = 0 ;
10859 char *kwnames[] = {
10860 (char *) "self", NULL
10861 };
10862
10863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10866 {
10867 PyThreadState* __tstate = wxPyBeginAllowThreads();
10868 (arg1)->BeginDrawing();
10869
10870 wxPyEndAllowThreads(__tstate);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 }
10873 Py_INCREF(Py_None); resultobj = Py_None;
10874 return resultobj;
10875 fail:
10876 return NULL;
10877 }
10878
10879
10880 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10881 PyObject *resultobj;
10882 wxDC *arg1 = (wxDC *) 0 ;
10883 PyObject * obj0 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10891 {
10892 PyThreadState* __tstate = wxPyBeginAllowThreads();
10893 (arg1)->EndDrawing();
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_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10906 PyObject *resultobj;
10907 wxDC *arg1 = (wxDC *) 0 ;
10908 int arg2 ;
10909 int arg3 ;
10910 wxColour *arg4 = 0 ;
10911 int arg5 = (int) wxFLOOD_SURFACE ;
10912 bool result;
10913 wxColour temp4 ;
10914 PyObject * obj0 = 0 ;
10915 PyObject * obj1 = 0 ;
10916 PyObject * obj2 = 0 ;
10917 PyObject * obj3 = 0 ;
10918 PyObject * obj4 = 0 ;
10919 char *kwnames[] = {
10920 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10921 };
10922
10923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10926 arg2 = (int) SWIG_AsInt(obj1);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 arg3 = (int) SWIG_AsInt(obj2);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 {
10931 arg4 = &temp4;
10932 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10933 }
10934 if (obj4) {
10935 arg5 = (int) SWIG_AsInt(obj4);
10936 if (PyErr_Occurred()) SWIG_fail;
10937 }
10938 {
10939 PyThreadState* __tstate = wxPyBeginAllowThreads();
10940 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10941
10942 wxPyEndAllowThreads(__tstate);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 {
10946 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10947 }
10948 return resultobj;
10949 fail:
10950 return NULL;
10951 }
10952
10953
10954 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10955 PyObject *resultobj;
10956 wxDC *arg1 = (wxDC *) 0 ;
10957 wxPoint *arg2 = 0 ;
10958 wxColour *arg3 = 0 ;
10959 int arg4 = (int) wxFLOOD_SURFACE ;
10960 bool result;
10961 wxPoint temp2 ;
10962 wxColour temp3 ;
10963 PyObject * obj0 = 0 ;
10964 PyObject * obj1 = 0 ;
10965 PyObject * obj2 = 0 ;
10966 PyObject * obj3 = 0 ;
10967 char *kwnames[] = {
10968 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10969 };
10970
10971 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10972 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10973 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10974 {
10975 arg2 = &temp2;
10976 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10977 }
10978 {
10979 arg3 = &temp3;
10980 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10981 }
10982 if (obj3) {
10983 arg4 = (int) SWIG_AsInt(obj3);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 {
10987 PyThreadState* __tstate = wxPyBeginAllowThreads();
10988 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10989
10990 wxPyEndAllowThreads(__tstate);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 }
10993 {
10994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10995 }
10996 return resultobj;
10997 fail:
10998 return NULL;
10999 }
11000
11001
11002 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11003 PyObject *resultobj;
11004 wxDC *arg1 = (wxDC *) 0 ;
11005 int arg2 ;
11006 int arg3 ;
11007 wxColour result;
11008 PyObject * obj0 = 0 ;
11009 PyObject * obj1 = 0 ;
11010 PyObject * obj2 = 0 ;
11011 char *kwnames[] = {
11012 (char *) "self",(char *) "x",(char *) "y", NULL
11013 };
11014
11015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
11016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11018 arg2 = (int) SWIG_AsInt(obj1);
11019 if (PyErr_Occurred()) SWIG_fail;
11020 arg3 = (int) SWIG_AsInt(obj2);
11021 if (PyErr_Occurred()) SWIG_fail;
11022 {
11023 PyThreadState* __tstate = wxPyBeginAllowThreads();
11024 result = wxDC_GetPixel(arg1,arg2,arg3);
11025
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 {
11030 wxColour * resultptr;
11031 resultptr = new wxColour((wxColour &) result);
11032 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11033 }
11034 return resultobj;
11035 fail:
11036 return NULL;
11037 }
11038
11039
11040 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11041 PyObject *resultobj;
11042 wxDC *arg1 = (wxDC *) 0 ;
11043 wxPoint *arg2 = 0 ;
11044 wxColour result;
11045 wxPoint temp2 ;
11046 PyObject * obj0 = 0 ;
11047 PyObject * obj1 = 0 ;
11048 char *kwnames[] = {
11049 (char *) "self",(char *) "pt", NULL
11050 };
11051
11052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
11053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11055 {
11056 arg2 = &temp2;
11057 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11058 }
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
11062
11063 wxPyEndAllowThreads(__tstate);
11064 if (PyErr_Occurred()) SWIG_fail;
11065 }
11066 {
11067 wxColour * resultptr;
11068 resultptr = new wxColour((wxColour &) result);
11069 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11070 }
11071 return resultobj;
11072 fail:
11073 return NULL;
11074 }
11075
11076
11077 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11078 PyObject *resultobj;
11079 wxDC *arg1 = (wxDC *) 0 ;
11080 int arg2 ;
11081 int arg3 ;
11082 int arg4 ;
11083 int arg5 ;
11084 PyObject * obj0 = 0 ;
11085 PyObject * obj1 = 0 ;
11086 PyObject * obj2 = 0 ;
11087 PyObject * obj3 = 0 ;
11088 PyObject * obj4 = 0 ;
11089 char *kwnames[] = {
11090 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11091 };
11092
11093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11096 arg2 = (int) SWIG_AsInt(obj1);
11097 if (PyErr_Occurred()) SWIG_fail;
11098 arg3 = (int) SWIG_AsInt(obj2);
11099 if (PyErr_Occurred()) SWIG_fail;
11100 arg4 = (int) SWIG_AsInt(obj3);
11101 if (PyErr_Occurred()) SWIG_fail;
11102 arg5 = (int) SWIG_AsInt(obj4);
11103 if (PyErr_Occurred()) SWIG_fail;
11104 {
11105 PyThreadState* __tstate = wxPyBeginAllowThreads();
11106 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11107
11108 wxPyEndAllowThreads(__tstate);
11109 if (PyErr_Occurred()) SWIG_fail;
11110 }
11111 Py_INCREF(Py_None); resultobj = Py_None;
11112 return resultobj;
11113 fail:
11114 return NULL;
11115 }
11116
11117
11118 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11119 PyObject *resultobj;
11120 wxDC *arg1 = (wxDC *) 0 ;
11121 wxPoint *arg2 = 0 ;
11122 wxPoint *arg3 = 0 ;
11123 wxPoint temp2 ;
11124 wxPoint temp3 ;
11125 PyObject * obj0 = 0 ;
11126 PyObject * obj1 = 0 ;
11127 PyObject * obj2 = 0 ;
11128 char *kwnames[] = {
11129 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11130 };
11131
11132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11135 {
11136 arg2 = &temp2;
11137 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11138 }
11139 {
11140 arg3 = &temp3;
11141 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11142 }
11143 {
11144 PyThreadState* __tstate = wxPyBeginAllowThreads();
11145 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11146
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 Py_INCREF(Py_None); resultobj = Py_None;
11151 return resultobj;
11152 fail:
11153 return NULL;
11154 }
11155
11156
11157 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11158 PyObject *resultobj;
11159 wxDC *arg1 = (wxDC *) 0 ;
11160 int arg2 ;
11161 int arg3 ;
11162 PyObject * obj0 = 0 ;
11163 PyObject * obj1 = 0 ;
11164 PyObject * obj2 = 0 ;
11165 char *kwnames[] = {
11166 (char *) "self",(char *) "x",(char *) "y", NULL
11167 };
11168
11169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11172 arg2 = (int) SWIG_AsInt(obj1);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 arg3 = (int) SWIG_AsInt(obj2);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 {
11177 PyThreadState* __tstate = wxPyBeginAllowThreads();
11178 (arg1)->CrossHair(arg2,arg3);
11179
11180 wxPyEndAllowThreads(__tstate);
11181 if (PyErr_Occurred()) SWIG_fail;
11182 }
11183 Py_INCREF(Py_None); resultobj = Py_None;
11184 return resultobj;
11185 fail:
11186 return NULL;
11187 }
11188
11189
11190 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11191 PyObject *resultobj;
11192 wxDC *arg1 = (wxDC *) 0 ;
11193 wxPoint *arg2 = 0 ;
11194 wxPoint temp2 ;
11195 PyObject * obj0 = 0 ;
11196 PyObject * obj1 = 0 ;
11197 char *kwnames[] = {
11198 (char *) "self",(char *) "pt", NULL
11199 };
11200
11201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11204 {
11205 arg2 = &temp2;
11206 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11207 }
11208 {
11209 PyThreadState* __tstate = wxPyBeginAllowThreads();
11210 (arg1)->CrossHair((wxPoint const &)*arg2);
11211
11212 wxPyEndAllowThreads(__tstate);
11213 if (PyErr_Occurred()) SWIG_fail;
11214 }
11215 Py_INCREF(Py_None); resultobj = Py_None;
11216 return resultobj;
11217 fail:
11218 return NULL;
11219 }
11220
11221
11222 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11223 PyObject *resultobj;
11224 wxDC *arg1 = (wxDC *) 0 ;
11225 int arg2 ;
11226 int arg3 ;
11227 int arg4 ;
11228 int arg5 ;
11229 int arg6 ;
11230 int arg7 ;
11231 PyObject * obj0 = 0 ;
11232 PyObject * obj1 = 0 ;
11233 PyObject * obj2 = 0 ;
11234 PyObject * obj3 = 0 ;
11235 PyObject * obj4 = 0 ;
11236 PyObject * obj5 = 0 ;
11237 PyObject * obj6 = 0 ;
11238 char *kwnames[] = {
11239 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11240 };
11241
11242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11245 arg2 = (int) SWIG_AsInt(obj1);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 arg3 = (int) SWIG_AsInt(obj2);
11248 if (PyErr_Occurred()) SWIG_fail;
11249 arg4 = (int) SWIG_AsInt(obj3);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 arg5 = (int) SWIG_AsInt(obj4);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 arg6 = (int) SWIG_AsInt(obj5);
11254 if (PyErr_Occurred()) SWIG_fail;
11255 arg7 = (int) SWIG_AsInt(obj6);
11256 if (PyErr_Occurred()) SWIG_fail;
11257 {
11258 PyThreadState* __tstate = wxPyBeginAllowThreads();
11259 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11260
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 Py_INCREF(Py_None); resultobj = Py_None;
11265 return resultobj;
11266 fail:
11267 return NULL;
11268 }
11269
11270
11271 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11272 PyObject *resultobj;
11273 wxDC *arg1 = (wxDC *) 0 ;
11274 wxPoint *arg2 = 0 ;
11275 wxPoint *arg3 = 0 ;
11276 wxPoint *arg4 = 0 ;
11277 wxPoint temp2 ;
11278 wxPoint temp3 ;
11279 wxPoint temp4 ;
11280 PyObject * obj0 = 0 ;
11281 PyObject * obj1 = 0 ;
11282 PyObject * obj2 = 0 ;
11283 PyObject * obj3 = 0 ;
11284 char *kwnames[] = {
11285 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11286 };
11287
11288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11291 {
11292 arg2 = &temp2;
11293 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11294 }
11295 {
11296 arg3 = &temp3;
11297 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11298 }
11299 {
11300 arg4 = &temp4;
11301 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11302 }
11303 {
11304 PyThreadState* __tstate = wxPyBeginAllowThreads();
11305 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11306
11307 wxPyEndAllowThreads(__tstate);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 }
11310 Py_INCREF(Py_None); resultobj = Py_None;
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj;
11319 wxDC *arg1 = (wxDC *) 0 ;
11320 int arg2 ;
11321 int arg3 ;
11322 int arg4 ;
11323 int arg5 ;
11324 PyObject * obj0 = 0 ;
11325 PyObject * obj1 = 0 ;
11326 PyObject * obj2 = 0 ;
11327 PyObject * obj3 = 0 ;
11328 PyObject * obj4 = 0 ;
11329 char *kwnames[] = {
11330 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11331 };
11332
11333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11336 arg2 = (int) SWIG_AsInt(obj1);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 arg3 = (int) SWIG_AsInt(obj2);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 arg4 = (int) SWIG_AsInt(obj3);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 arg5 = (int) SWIG_AsInt(obj4);
11343 if (PyErr_Occurred()) SWIG_fail;
11344 {
11345 PyThreadState* __tstate = wxPyBeginAllowThreads();
11346 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11347
11348 wxPyEndAllowThreads(__tstate);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 Py_INCREF(Py_None); resultobj = Py_None;
11352 return resultobj;
11353 fail:
11354 return NULL;
11355 }
11356
11357
11358 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11359 PyObject *resultobj;
11360 wxDC *arg1 = (wxDC *) 0 ;
11361 wxRect *arg2 = 0 ;
11362 wxRect temp2 ;
11363 PyObject * obj0 = 0 ;
11364 PyObject * obj1 = 0 ;
11365 char *kwnames[] = {
11366 (char *) "self",(char *) "rect", NULL
11367 };
11368
11369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11372 {
11373 arg2 = &temp2;
11374 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11375 }
11376 {
11377 PyThreadState* __tstate = wxPyBeginAllowThreads();
11378 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11379
11380 wxPyEndAllowThreads(__tstate);
11381 if (PyErr_Occurred()) SWIG_fail;
11382 }
11383 Py_INCREF(Py_None); resultobj = Py_None;
11384 return resultobj;
11385 fail:
11386 return NULL;
11387 }
11388
11389
11390 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11391 PyObject *resultobj;
11392 wxDC *arg1 = (wxDC *) 0 ;
11393 int arg2 ;
11394 int arg3 ;
11395 int arg4 ;
11396 int arg5 ;
11397 double arg6 ;
11398 double arg7 ;
11399 PyObject * obj0 = 0 ;
11400 PyObject * obj1 = 0 ;
11401 PyObject * obj2 = 0 ;
11402 PyObject * obj3 = 0 ;
11403 PyObject * obj4 = 0 ;
11404 PyObject * obj5 = 0 ;
11405 PyObject * obj6 = 0 ;
11406 char *kwnames[] = {
11407 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11408 };
11409
11410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11413 arg2 = (int) SWIG_AsInt(obj1);
11414 if (PyErr_Occurred()) SWIG_fail;
11415 arg3 = (int) SWIG_AsInt(obj2);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 arg4 = (int) SWIG_AsInt(obj3);
11418 if (PyErr_Occurred()) SWIG_fail;
11419 arg5 = (int) SWIG_AsInt(obj4);
11420 if (PyErr_Occurred()) SWIG_fail;
11421 arg6 = (double) SWIG_AsDouble(obj5);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 arg7 = (double) SWIG_AsDouble(obj6);
11424 if (PyErr_Occurred()) SWIG_fail;
11425 {
11426 PyThreadState* __tstate = wxPyBeginAllowThreads();
11427 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11428
11429 wxPyEndAllowThreads(__tstate);
11430 if (PyErr_Occurred()) SWIG_fail;
11431 }
11432 Py_INCREF(Py_None); resultobj = Py_None;
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11440 PyObject *resultobj;
11441 wxDC *arg1 = (wxDC *) 0 ;
11442 wxPoint *arg2 = 0 ;
11443 wxSize *arg3 = 0 ;
11444 double arg4 ;
11445 double arg5 ;
11446 wxPoint temp2 ;
11447 wxSize temp3 ;
11448 PyObject * obj0 = 0 ;
11449 PyObject * obj1 = 0 ;
11450 PyObject * obj2 = 0 ;
11451 PyObject * obj3 = 0 ;
11452 PyObject * obj4 = 0 ;
11453 char *kwnames[] = {
11454 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11455 };
11456
11457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11460 {
11461 arg2 = &temp2;
11462 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11463 }
11464 {
11465 arg3 = &temp3;
11466 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11467 }
11468 arg4 = (double) SWIG_AsDouble(obj3);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 arg5 = (double) SWIG_AsDouble(obj4);
11471 if (PyErr_Occurred()) SWIG_fail;
11472 {
11473 PyThreadState* __tstate = wxPyBeginAllowThreads();
11474 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11475
11476 wxPyEndAllowThreads(__tstate);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 Py_INCREF(Py_None); resultobj = Py_None;
11480 return resultobj;
11481 fail:
11482 return NULL;
11483 }
11484
11485
11486 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11487 PyObject *resultobj;
11488 wxDC *arg1 = (wxDC *) 0 ;
11489 int arg2 ;
11490 int arg3 ;
11491 PyObject * obj0 = 0 ;
11492 PyObject * obj1 = 0 ;
11493 PyObject * obj2 = 0 ;
11494 char *kwnames[] = {
11495 (char *) "self",(char *) "x",(char *) "y", NULL
11496 };
11497
11498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11501 arg2 = (int) SWIG_AsInt(obj1);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 arg3 = (int) SWIG_AsInt(obj2);
11504 if (PyErr_Occurred()) SWIG_fail;
11505 {
11506 PyThreadState* __tstate = wxPyBeginAllowThreads();
11507 (arg1)->DrawPoint(arg2,arg3);
11508
11509 wxPyEndAllowThreads(__tstate);
11510 if (PyErr_Occurred()) SWIG_fail;
11511 }
11512 Py_INCREF(Py_None); resultobj = Py_None;
11513 return resultobj;
11514 fail:
11515 return NULL;
11516 }
11517
11518
11519 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11520 PyObject *resultobj;
11521 wxDC *arg1 = (wxDC *) 0 ;
11522 wxPoint *arg2 = 0 ;
11523 wxPoint temp2 ;
11524 PyObject * obj0 = 0 ;
11525 PyObject * obj1 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self",(char *) "pt", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11533 {
11534 arg2 = &temp2;
11535 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11536 }
11537 {
11538 PyThreadState* __tstate = wxPyBeginAllowThreads();
11539 (arg1)->DrawPoint((wxPoint const &)*arg2);
11540
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 }
11544 Py_INCREF(Py_None); resultobj = Py_None;
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj;
11553 wxDC *arg1 = (wxDC *) 0 ;
11554 int arg2 ;
11555 int arg3 ;
11556 int arg4 ;
11557 int arg5 ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 PyObject * obj2 = 0 ;
11561 PyObject * obj3 = 0 ;
11562 PyObject * obj4 = 0 ;
11563 char *kwnames[] = {
11564 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11565 };
11566
11567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11570 arg2 = (int) SWIG_AsInt(obj1);
11571 if (PyErr_Occurred()) SWIG_fail;
11572 arg3 = (int) SWIG_AsInt(obj2);
11573 if (PyErr_Occurred()) SWIG_fail;
11574 arg4 = (int) SWIG_AsInt(obj3);
11575 if (PyErr_Occurred()) SWIG_fail;
11576 arg5 = (int) SWIG_AsInt(obj4);
11577 if (PyErr_Occurred()) SWIG_fail;
11578 {
11579 PyThreadState* __tstate = wxPyBeginAllowThreads();
11580 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11581
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 Py_INCREF(Py_None); resultobj = Py_None;
11586 return resultobj;
11587 fail:
11588 return NULL;
11589 }
11590
11591
11592 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11593 PyObject *resultobj;
11594 wxDC *arg1 = (wxDC *) 0 ;
11595 wxRect *arg2 = 0 ;
11596 wxRect temp2 ;
11597 PyObject * obj0 = 0 ;
11598 PyObject * obj1 = 0 ;
11599 char *kwnames[] = {
11600 (char *) "self",(char *) "rect", NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11606 {
11607 arg2 = &temp2;
11608 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11609 }
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 (arg1)->DrawRectangle((wxRect const &)*arg2);
11613
11614 wxPyEndAllowThreads(__tstate);
11615 if (PyErr_Occurred()) SWIG_fail;
11616 }
11617 Py_INCREF(Py_None); resultobj = Py_None;
11618 return resultobj;
11619 fail:
11620 return NULL;
11621 }
11622
11623
11624 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11625 PyObject *resultobj;
11626 wxDC *arg1 = (wxDC *) 0 ;
11627 wxPoint *arg2 = 0 ;
11628 wxSize *arg3 = 0 ;
11629 wxPoint temp2 ;
11630 wxSize temp3 ;
11631 PyObject * obj0 = 0 ;
11632 PyObject * obj1 = 0 ;
11633 PyObject * obj2 = 0 ;
11634 char *kwnames[] = {
11635 (char *) "self",(char *) "pt",(char *) "sz", NULL
11636 };
11637
11638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11641 {
11642 arg2 = &temp2;
11643 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11644 }
11645 {
11646 arg3 = &temp3;
11647 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11648 }
11649 {
11650 PyThreadState* __tstate = wxPyBeginAllowThreads();
11651 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11652
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 Py_INCREF(Py_None); resultobj = Py_None;
11657 return resultobj;
11658 fail:
11659 return NULL;
11660 }
11661
11662
11663 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11664 PyObject *resultobj;
11665 wxDC *arg1 = (wxDC *) 0 ;
11666 int arg2 ;
11667 int arg3 ;
11668 int arg4 ;
11669 int arg5 ;
11670 double arg6 ;
11671 PyObject * obj0 = 0 ;
11672 PyObject * obj1 = 0 ;
11673 PyObject * obj2 = 0 ;
11674 PyObject * obj3 = 0 ;
11675 PyObject * obj4 = 0 ;
11676 PyObject * obj5 = 0 ;
11677 char *kwnames[] = {
11678 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11679 };
11680
11681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11684 arg2 = (int) SWIG_AsInt(obj1);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 arg3 = (int) SWIG_AsInt(obj2);
11687 if (PyErr_Occurred()) SWIG_fail;
11688 arg4 = (int) SWIG_AsInt(obj3);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 arg5 = (int) SWIG_AsInt(obj4);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 arg6 = (double) SWIG_AsDouble(obj5);
11693 if (PyErr_Occurred()) SWIG_fail;
11694 {
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11697
11698 wxPyEndAllowThreads(__tstate);
11699 if (PyErr_Occurred()) SWIG_fail;
11700 }
11701 Py_INCREF(Py_None); resultobj = Py_None;
11702 return resultobj;
11703 fail:
11704 return NULL;
11705 }
11706
11707
11708 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11709 PyObject *resultobj;
11710 wxDC *arg1 = (wxDC *) 0 ;
11711 wxRect *arg2 = 0 ;
11712 double arg3 ;
11713 wxRect temp2 ;
11714 PyObject * obj0 = 0 ;
11715 PyObject * obj1 = 0 ;
11716 PyObject * obj2 = 0 ;
11717 char *kwnames[] = {
11718 (char *) "self",(char *) "r",(char *) "radius", NULL
11719 };
11720
11721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11724 {
11725 arg2 = &temp2;
11726 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11727 }
11728 arg3 = (double) SWIG_AsDouble(obj2);
11729 if (PyErr_Occurred()) SWIG_fail;
11730 {
11731 PyThreadState* __tstate = wxPyBeginAllowThreads();
11732 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11733
11734 wxPyEndAllowThreads(__tstate);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 }
11737 Py_INCREF(Py_None); resultobj = Py_None;
11738 return resultobj;
11739 fail:
11740 return NULL;
11741 }
11742
11743
11744 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11745 PyObject *resultobj;
11746 wxDC *arg1 = (wxDC *) 0 ;
11747 wxPoint *arg2 = 0 ;
11748 wxSize *arg3 = 0 ;
11749 double arg4 ;
11750 wxPoint temp2 ;
11751 wxSize temp3 ;
11752 PyObject * obj0 = 0 ;
11753 PyObject * obj1 = 0 ;
11754 PyObject * obj2 = 0 ;
11755 PyObject * obj3 = 0 ;
11756 char *kwnames[] = {
11757 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11758 };
11759
11760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11763 {
11764 arg2 = &temp2;
11765 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11766 }
11767 {
11768 arg3 = &temp3;
11769 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11770 }
11771 arg4 = (double) SWIG_AsDouble(obj3);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 {
11774 PyThreadState* __tstate = wxPyBeginAllowThreads();
11775 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11776
11777 wxPyEndAllowThreads(__tstate);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 }
11780 Py_INCREF(Py_None); resultobj = Py_None;
11781 return resultobj;
11782 fail:
11783 return NULL;
11784 }
11785
11786
11787 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11788 PyObject *resultobj;
11789 wxDC *arg1 = (wxDC *) 0 ;
11790 int arg2 ;
11791 int arg3 ;
11792 int arg4 ;
11793 PyObject * obj0 = 0 ;
11794 PyObject * obj1 = 0 ;
11795 PyObject * obj2 = 0 ;
11796 PyObject * obj3 = 0 ;
11797 char *kwnames[] = {
11798 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11799 };
11800
11801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11804 arg2 = (int) SWIG_AsInt(obj1);
11805 if (PyErr_Occurred()) SWIG_fail;
11806 arg3 = (int) SWIG_AsInt(obj2);
11807 if (PyErr_Occurred()) SWIG_fail;
11808 arg4 = (int) SWIG_AsInt(obj3);
11809 if (PyErr_Occurred()) SWIG_fail;
11810 {
11811 PyThreadState* __tstate = wxPyBeginAllowThreads();
11812 (arg1)->DrawCircle(arg2,arg3,arg4);
11813
11814 wxPyEndAllowThreads(__tstate);
11815 if (PyErr_Occurred()) SWIG_fail;
11816 }
11817 Py_INCREF(Py_None); resultobj = Py_None;
11818 return resultobj;
11819 fail:
11820 return NULL;
11821 }
11822
11823
11824 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11825 PyObject *resultobj;
11826 wxDC *arg1 = (wxDC *) 0 ;
11827 wxPoint *arg2 = 0 ;
11828 int arg3 ;
11829 wxPoint temp2 ;
11830 PyObject * obj0 = 0 ;
11831 PyObject * obj1 = 0 ;
11832 PyObject * obj2 = 0 ;
11833 char *kwnames[] = {
11834 (char *) "self",(char *) "pt",(char *) "radius", NULL
11835 };
11836
11837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11840 {
11841 arg2 = &temp2;
11842 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11843 }
11844 arg3 = (int) SWIG_AsInt(obj2);
11845 if (PyErr_Occurred()) SWIG_fail;
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11849
11850 wxPyEndAllowThreads(__tstate);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 }
11853 Py_INCREF(Py_None); resultobj = Py_None;
11854 return resultobj;
11855 fail:
11856 return NULL;
11857 }
11858
11859
11860 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11861 PyObject *resultobj;
11862 wxDC *arg1 = (wxDC *) 0 ;
11863 int arg2 ;
11864 int arg3 ;
11865 int arg4 ;
11866 int arg5 ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 PyObject * obj2 = 0 ;
11870 PyObject * obj3 = 0 ;
11871 PyObject * obj4 = 0 ;
11872 char *kwnames[] = {
11873 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11874 };
11875
11876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11879 arg2 = (int) SWIG_AsInt(obj1);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 arg3 = (int) SWIG_AsInt(obj2);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 arg4 = (int) SWIG_AsInt(obj3);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 arg5 = (int) SWIG_AsInt(obj4);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 {
11888 PyThreadState* __tstate = wxPyBeginAllowThreads();
11889 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11890
11891 wxPyEndAllowThreads(__tstate);
11892 if (PyErr_Occurred()) SWIG_fail;
11893 }
11894 Py_INCREF(Py_None); resultobj = Py_None;
11895 return resultobj;
11896 fail:
11897 return NULL;
11898 }
11899
11900
11901 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11902 PyObject *resultobj;
11903 wxDC *arg1 = (wxDC *) 0 ;
11904 wxRect *arg2 = 0 ;
11905 wxRect temp2 ;
11906 PyObject * obj0 = 0 ;
11907 PyObject * obj1 = 0 ;
11908 char *kwnames[] = {
11909 (char *) "self",(char *) "rect", NULL
11910 };
11911
11912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11915 {
11916 arg2 = &temp2;
11917 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 (arg1)->DrawEllipse((wxRect const &)*arg2);
11922
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 Py_INCREF(Py_None); resultobj = Py_None;
11927 return resultobj;
11928 fail:
11929 return NULL;
11930 }
11931
11932
11933 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11934 PyObject *resultobj;
11935 wxDC *arg1 = (wxDC *) 0 ;
11936 wxPoint *arg2 = 0 ;
11937 wxSize *arg3 = 0 ;
11938 wxPoint temp2 ;
11939 wxSize temp3 ;
11940 PyObject * obj0 = 0 ;
11941 PyObject * obj1 = 0 ;
11942 PyObject * obj2 = 0 ;
11943 char *kwnames[] = {
11944 (char *) "self",(char *) "pt",(char *) "sz", NULL
11945 };
11946
11947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11950 {
11951 arg2 = &temp2;
11952 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11953 }
11954 {
11955 arg3 = &temp3;
11956 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11957 }
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11961
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 Py_INCREF(Py_None); resultobj = Py_None;
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11973 PyObject *resultobj;
11974 wxDC *arg1 = (wxDC *) 0 ;
11975 wxIcon *arg2 = 0 ;
11976 int arg3 ;
11977 int arg4 ;
11978 PyObject * obj0 = 0 ;
11979 PyObject * obj1 = 0 ;
11980 PyObject * obj2 = 0 ;
11981 PyObject * obj3 = 0 ;
11982 char *kwnames[] = {
11983 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11984 };
11985
11986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11989 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11990 SWIG_POINTER_EXCEPTION | 0)) == -1)
11991 SWIG_fail;
11992 if (arg2 == NULL) {
11993 PyErr_SetString(PyExc_TypeError,"null reference");
11994 SWIG_fail;
11995 }
11996 arg3 = (int) SWIG_AsInt(obj2);
11997 if (PyErr_Occurred()) SWIG_fail;
11998 arg4 = (int) SWIG_AsInt(obj3);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 {
12001 PyThreadState* __tstate = wxPyBeginAllowThreads();
12002 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12003
12004 wxPyEndAllowThreads(__tstate);
12005 if (PyErr_Occurred()) SWIG_fail;
12006 }
12007 Py_INCREF(Py_None); resultobj = Py_None;
12008 return resultobj;
12009 fail:
12010 return NULL;
12011 }
12012
12013
12014 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12015 PyObject *resultobj;
12016 wxDC *arg1 = (wxDC *) 0 ;
12017 wxIcon *arg2 = 0 ;
12018 wxPoint *arg3 = 0 ;
12019 wxPoint temp3 ;
12020 PyObject * obj0 = 0 ;
12021 PyObject * obj1 = 0 ;
12022 PyObject * obj2 = 0 ;
12023 char *kwnames[] = {
12024 (char *) "self",(char *) "icon",(char *) "pt", NULL
12025 };
12026
12027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12030 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12031 SWIG_POINTER_EXCEPTION | 0)) == -1)
12032 SWIG_fail;
12033 if (arg2 == NULL) {
12034 PyErr_SetString(PyExc_TypeError,"null reference");
12035 SWIG_fail;
12036 }
12037 {
12038 arg3 = &temp3;
12039 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12040 }
12041 {
12042 PyThreadState* __tstate = wxPyBeginAllowThreads();
12043 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12044
12045 wxPyEndAllowThreads(__tstate);
12046 if (PyErr_Occurred()) SWIG_fail;
12047 }
12048 Py_INCREF(Py_None); resultobj = Py_None;
12049 return resultobj;
12050 fail:
12051 return NULL;
12052 }
12053
12054
12055 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12056 PyObject *resultobj;
12057 wxDC *arg1 = (wxDC *) 0 ;
12058 wxBitmap *arg2 = 0 ;
12059 int arg3 ;
12060 int arg4 ;
12061 bool arg5 = (bool) False ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 PyObject * obj2 = 0 ;
12065 PyObject * obj3 = 0 ;
12066 PyObject * obj4 = 0 ;
12067 char *kwnames[] = {
12068 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12069 };
12070
12071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12075 SWIG_POINTER_EXCEPTION | 0)) == -1)
12076 SWIG_fail;
12077 if (arg2 == NULL) {
12078 PyErr_SetString(PyExc_TypeError,"null reference");
12079 SWIG_fail;
12080 }
12081 arg3 = (int) SWIG_AsInt(obj2);
12082 if (PyErr_Occurred()) SWIG_fail;
12083 arg4 = (int) SWIG_AsInt(obj3);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 if (obj4) {
12086 arg5 = (bool) SWIG_AsBool(obj4);
12087 if (PyErr_Occurred()) SWIG_fail;
12088 }
12089 {
12090 PyThreadState* __tstate = wxPyBeginAllowThreads();
12091 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12092
12093 wxPyEndAllowThreads(__tstate);
12094 if (PyErr_Occurred()) SWIG_fail;
12095 }
12096 Py_INCREF(Py_None); resultobj = Py_None;
12097 return resultobj;
12098 fail:
12099 return NULL;
12100 }
12101
12102
12103 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12104 PyObject *resultobj;
12105 wxDC *arg1 = (wxDC *) 0 ;
12106 wxBitmap *arg2 = 0 ;
12107 wxPoint *arg3 = 0 ;
12108 bool arg4 = (bool) False ;
12109 wxPoint temp3 ;
12110 PyObject * obj0 = 0 ;
12111 PyObject * obj1 = 0 ;
12112 PyObject * obj2 = 0 ;
12113 PyObject * obj3 = 0 ;
12114 char *kwnames[] = {
12115 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12116 };
12117
12118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12122 SWIG_POINTER_EXCEPTION | 0)) == -1)
12123 SWIG_fail;
12124 if (arg2 == NULL) {
12125 PyErr_SetString(PyExc_TypeError,"null reference");
12126 SWIG_fail;
12127 }
12128 {
12129 arg3 = &temp3;
12130 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12131 }
12132 if (obj3) {
12133 arg4 = (bool) SWIG_AsBool(obj3);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12139
12140 wxPyEndAllowThreads(__tstate);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 Py_INCREF(Py_None); resultobj = Py_None;
12144 return resultobj;
12145 fail:
12146 return NULL;
12147 }
12148
12149
12150 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12151 PyObject *resultobj;
12152 wxDC *arg1 = (wxDC *) 0 ;
12153 wxString *arg2 = 0 ;
12154 int arg3 ;
12155 int arg4 ;
12156 bool temp2 = False ;
12157 PyObject * obj0 = 0 ;
12158 PyObject * obj1 = 0 ;
12159 PyObject * obj2 = 0 ;
12160 PyObject * obj3 = 0 ;
12161 char *kwnames[] = {
12162 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12163 };
12164
12165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12168 {
12169 arg2 = wxString_in_helper(obj1);
12170 if (arg2 == NULL) SWIG_fail;
12171 temp2 = True;
12172 }
12173 arg3 = (int) SWIG_AsInt(obj2);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 arg4 = (int) SWIG_AsInt(obj3);
12176 if (PyErr_Occurred()) SWIG_fail;
12177 {
12178 PyThreadState* __tstate = wxPyBeginAllowThreads();
12179 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12180
12181 wxPyEndAllowThreads(__tstate);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 Py_INCREF(Py_None); resultobj = Py_None;
12185 {
12186 if (temp2)
12187 delete arg2;
12188 }
12189 return resultobj;
12190 fail:
12191 {
12192 if (temp2)
12193 delete arg2;
12194 }
12195 return NULL;
12196 }
12197
12198
12199 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12200 PyObject *resultobj;
12201 wxDC *arg1 = (wxDC *) 0 ;
12202 wxString *arg2 = 0 ;
12203 wxPoint *arg3 = 0 ;
12204 bool temp2 = False ;
12205 wxPoint temp3 ;
12206 PyObject * obj0 = 0 ;
12207 PyObject * obj1 = 0 ;
12208 PyObject * obj2 = 0 ;
12209 char *kwnames[] = {
12210 (char *) "self",(char *) "text",(char *) "pt", NULL
12211 };
12212
12213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12216 {
12217 arg2 = wxString_in_helper(obj1);
12218 if (arg2 == NULL) SWIG_fail;
12219 temp2 = True;
12220 }
12221 {
12222 arg3 = &temp3;
12223 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12224 }
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12228
12229 wxPyEndAllowThreads(__tstate);
12230 if (PyErr_Occurred()) SWIG_fail;
12231 }
12232 Py_INCREF(Py_None); resultobj = Py_None;
12233 {
12234 if (temp2)
12235 delete arg2;
12236 }
12237 return resultobj;
12238 fail:
12239 {
12240 if (temp2)
12241 delete arg2;
12242 }
12243 return NULL;
12244 }
12245
12246
12247 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12248 PyObject *resultobj;
12249 wxDC *arg1 = (wxDC *) 0 ;
12250 wxString *arg2 = 0 ;
12251 int arg3 ;
12252 int arg4 ;
12253 double arg5 ;
12254 bool temp2 = False ;
12255 PyObject * obj0 = 0 ;
12256 PyObject * obj1 = 0 ;
12257 PyObject * obj2 = 0 ;
12258 PyObject * obj3 = 0 ;
12259 PyObject * obj4 = 0 ;
12260 char *kwnames[] = {
12261 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12262 };
12263
12264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12267 {
12268 arg2 = wxString_in_helper(obj1);
12269 if (arg2 == NULL) SWIG_fail;
12270 temp2 = True;
12271 }
12272 arg3 = (int) SWIG_AsInt(obj2);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 arg4 = (int) SWIG_AsInt(obj3);
12275 if (PyErr_Occurred()) SWIG_fail;
12276 arg5 = (double) SWIG_AsDouble(obj4);
12277 if (PyErr_Occurred()) SWIG_fail;
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12281
12282 wxPyEndAllowThreads(__tstate);
12283 if (PyErr_Occurred()) SWIG_fail;
12284 }
12285 Py_INCREF(Py_None); resultobj = Py_None;
12286 {
12287 if (temp2)
12288 delete arg2;
12289 }
12290 return resultobj;
12291 fail:
12292 {
12293 if (temp2)
12294 delete arg2;
12295 }
12296 return NULL;
12297 }
12298
12299
12300 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12301 PyObject *resultobj;
12302 wxDC *arg1 = (wxDC *) 0 ;
12303 wxString *arg2 = 0 ;
12304 wxPoint *arg3 = 0 ;
12305 double arg4 ;
12306 bool temp2 = False ;
12307 wxPoint temp3 ;
12308 PyObject * obj0 = 0 ;
12309 PyObject * obj1 = 0 ;
12310 PyObject * obj2 = 0 ;
12311 PyObject * obj3 = 0 ;
12312 char *kwnames[] = {
12313 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12314 };
12315
12316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12319 {
12320 arg2 = wxString_in_helper(obj1);
12321 if (arg2 == NULL) SWIG_fail;
12322 temp2 = True;
12323 }
12324 {
12325 arg3 = &temp3;
12326 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12327 }
12328 arg4 = (double) SWIG_AsDouble(obj3);
12329 if (PyErr_Occurred()) SWIG_fail;
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12333
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 Py_INCREF(Py_None); resultobj = Py_None;
12338 {
12339 if (temp2)
12340 delete arg2;
12341 }
12342 return resultobj;
12343 fail:
12344 {
12345 if (temp2)
12346 delete arg2;
12347 }
12348 return NULL;
12349 }
12350
12351
12352 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12353 PyObject *resultobj;
12354 wxDC *arg1 = (wxDC *) 0 ;
12355 int arg2 ;
12356 int arg3 ;
12357 int arg4 ;
12358 int arg5 ;
12359 wxDC *arg6 = (wxDC *) 0 ;
12360 int arg7 ;
12361 int arg8 ;
12362 int arg9 = (int) wxCOPY ;
12363 bool arg10 = (bool) False ;
12364 int arg11 = (int) -1 ;
12365 int arg12 = (int) -1 ;
12366 bool result;
12367 PyObject * obj0 = 0 ;
12368 PyObject * obj1 = 0 ;
12369 PyObject * obj2 = 0 ;
12370 PyObject * obj3 = 0 ;
12371 PyObject * obj4 = 0 ;
12372 PyObject * obj5 = 0 ;
12373 PyObject * obj6 = 0 ;
12374 PyObject * obj7 = 0 ;
12375 PyObject * obj8 = 0 ;
12376 PyObject * obj9 = 0 ;
12377 PyObject * obj10 = 0 ;
12378 PyObject * obj11 = 0 ;
12379 char *kwnames[] = {
12380 (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
12381 };
12382
12383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO|OOOO:DC_Blit",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10,&obj11)) goto fail;
12384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12386 arg2 = (int) SWIG_AsInt(obj1);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 arg3 = (int) SWIG_AsInt(obj2);
12389 if (PyErr_Occurred()) SWIG_fail;
12390 arg4 = (int) SWIG_AsInt(obj3);
12391 if (PyErr_Occurred()) SWIG_fail;
12392 arg5 = (int) SWIG_AsInt(obj4);
12393 if (PyErr_Occurred()) SWIG_fail;
12394 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12396 arg7 = (int) SWIG_AsInt(obj6);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 arg8 = (int) SWIG_AsInt(obj7);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 if (obj8) {
12401 arg9 = (int) SWIG_AsInt(obj8);
12402 if (PyErr_Occurred()) SWIG_fail;
12403 }
12404 if (obj9) {
12405 arg10 = (bool) SWIG_AsBool(obj9);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 if (obj10) {
12409 arg11 = (int) SWIG_AsInt(obj10);
12410 if (PyErr_Occurred()) SWIG_fail;
12411 }
12412 if (obj11) {
12413 arg12 = (int) SWIG_AsInt(obj11);
12414 if (PyErr_Occurred()) SWIG_fail;
12415 }
12416 {
12417 PyThreadState* __tstate = wxPyBeginAllowThreads();
12418 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12419
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 {
12424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12425 }
12426 return resultobj;
12427 fail:
12428 return NULL;
12429 }
12430
12431
12432 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12433 PyObject *resultobj;
12434 wxDC *arg1 = (wxDC *) 0 ;
12435 wxPoint *arg2 = 0 ;
12436 wxSize *arg3 = 0 ;
12437 wxDC *arg4 = (wxDC *) 0 ;
12438 wxPoint *arg5 = 0 ;
12439 int arg6 = (int) wxCOPY ;
12440 bool arg7 = (bool) False ;
12441 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12442 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12443 bool result;
12444 wxPoint temp2 ;
12445 wxSize temp3 ;
12446 wxPoint temp5 ;
12447 wxPoint temp8 ;
12448 PyObject * obj0 = 0 ;
12449 PyObject * obj1 = 0 ;
12450 PyObject * obj2 = 0 ;
12451 PyObject * obj3 = 0 ;
12452 PyObject * obj4 = 0 ;
12453 PyObject * obj5 = 0 ;
12454 PyObject * obj6 = 0 ;
12455 PyObject * obj7 = 0 ;
12456 char *kwnames[] = {
12457 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12458 };
12459
12460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12463 {
12464 arg2 = &temp2;
12465 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12466 }
12467 {
12468 arg3 = &temp3;
12469 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12470 }
12471 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12473 {
12474 arg5 = &temp5;
12475 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12476 }
12477 if (obj5) {
12478 arg6 = (int) SWIG_AsInt(obj5);
12479 if (PyErr_Occurred()) SWIG_fail;
12480 }
12481 if (obj6) {
12482 arg7 = (bool) SWIG_AsBool(obj6);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 if (obj7) {
12486 {
12487 arg8 = &temp8;
12488 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12489 }
12490 }
12491 {
12492 PyThreadState* __tstate = wxPyBeginAllowThreads();
12493 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12494
12495 wxPyEndAllowThreads(__tstate);
12496 if (PyErr_Occurred()) SWIG_fail;
12497 }
12498 {
12499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12500 }
12501 return resultobj;
12502 fail:
12503 return NULL;
12504 }
12505
12506
12507 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12508 PyObject *resultobj;
12509 wxDC *arg1 = (wxDC *) 0 ;
12510 int arg2 ;
12511 int arg3 ;
12512 int arg4 ;
12513 int arg5 ;
12514 PyObject * obj0 = 0 ;
12515 PyObject * obj1 = 0 ;
12516 PyObject * obj2 = 0 ;
12517 PyObject * obj3 = 0 ;
12518 PyObject * obj4 = 0 ;
12519 char *kwnames[] = {
12520 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12521 };
12522
12523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12526 arg2 = (int) SWIG_AsInt(obj1);
12527 if (PyErr_Occurred()) SWIG_fail;
12528 arg3 = (int) SWIG_AsInt(obj2);
12529 if (PyErr_Occurred()) SWIG_fail;
12530 arg4 = (int) SWIG_AsInt(obj3);
12531 if (PyErr_Occurred()) SWIG_fail;
12532 arg5 = (int) SWIG_AsInt(obj4);
12533 if (PyErr_Occurred()) SWIG_fail;
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12537
12538 wxPyEndAllowThreads(__tstate);
12539 if (PyErr_Occurred()) SWIG_fail;
12540 }
12541 Py_INCREF(Py_None); resultobj = Py_None;
12542 return resultobj;
12543 fail:
12544 return NULL;
12545 }
12546
12547
12548 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12549 PyObject *resultobj;
12550 wxDC *arg1 = (wxDC *) 0 ;
12551 wxPoint *arg2 = 0 ;
12552 wxSize *arg3 = 0 ;
12553 wxPoint temp2 ;
12554 wxSize temp3 ;
12555 PyObject * obj0 = 0 ;
12556 PyObject * obj1 = 0 ;
12557 PyObject * obj2 = 0 ;
12558 char *kwnames[] = {
12559 (char *) "self",(char *) "pt",(char *) "sz", NULL
12560 };
12561
12562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12565 {
12566 arg2 = &temp2;
12567 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12568 }
12569 {
12570 arg3 = &temp3;
12571 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12572 }
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12576
12577 wxPyEndAllowThreads(__tstate);
12578 if (PyErr_Occurred()) SWIG_fail;
12579 }
12580 Py_INCREF(Py_None); resultobj = Py_None;
12581 return resultobj;
12582 fail:
12583 return NULL;
12584 }
12585
12586
12587 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12588 PyObject *resultobj;
12589 wxDC *arg1 = (wxDC *) 0 ;
12590 wxRegion *arg2 = 0 ;
12591 PyObject * obj0 = 0 ;
12592 PyObject * obj1 = 0 ;
12593 char *kwnames[] = {
12594 (char *) "self",(char *) "region", NULL
12595 };
12596
12597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12600 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12601 SWIG_POINTER_EXCEPTION | 0)) == -1)
12602 SWIG_fail;
12603 if (arg2 == NULL) {
12604 PyErr_SetString(PyExc_TypeError,"null reference");
12605 SWIG_fail;
12606 }
12607 {
12608 PyThreadState* __tstate = wxPyBeginAllowThreads();
12609 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12610
12611 wxPyEndAllowThreads(__tstate);
12612 if (PyErr_Occurred()) SWIG_fail;
12613 }
12614 Py_INCREF(Py_None); resultobj = Py_None;
12615 return resultobj;
12616 fail:
12617 return NULL;
12618 }
12619
12620
12621 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12622 PyObject *resultobj;
12623 wxDC *arg1 = (wxDC *) 0 ;
12624 wxRect *arg2 = 0 ;
12625 wxRect temp2 ;
12626 PyObject * obj0 = 0 ;
12627 PyObject * obj1 = 0 ;
12628 char *kwnames[] = {
12629 (char *) "self",(char *) "rect", NULL
12630 };
12631
12632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12635 {
12636 arg2 = &temp2;
12637 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12638 }
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12642
12643 wxPyEndAllowThreads(__tstate);
12644 if (PyErr_Occurred()) SWIG_fail;
12645 }
12646 Py_INCREF(Py_None); resultobj = Py_None;
12647 return resultobj;
12648 fail:
12649 return NULL;
12650 }
12651
12652
12653 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12654 PyObject *resultobj;
12655 wxDC *arg1 = (wxDC *) 0 ;
12656 int arg2 ;
12657 wxPoint *arg3 = (wxPoint *) 0 ;
12658 int arg4 = (int) 0 ;
12659 int arg5 = (int) 0 ;
12660 PyObject * obj0 = 0 ;
12661 PyObject * obj1 = 0 ;
12662 PyObject * obj2 = 0 ;
12663 PyObject * obj3 = 0 ;
12664 char *kwnames[] = {
12665 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12666 };
12667
12668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12671 {
12672 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12673 if (arg3 == NULL) SWIG_fail;
12674 }
12675 if (obj2) {
12676 arg4 = (int) SWIG_AsInt(obj2);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 if (obj3) {
12680 arg5 = (int) SWIG_AsInt(obj3);
12681 if (PyErr_Occurred()) SWIG_fail;
12682 }
12683 {
12684 PyThreadState* __tstate = wxPyBeginAllowThreads();
12685 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12686
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 Py_INCREF(Py_None); resultobj = Py_None;
12691 {
12692 if (arg3) delete [] arg3;
12693 }
12694 return resultobj;
12695 fail:
12696 {
12697 if (arg3) delete [] arg3;
12698 }
12699 return NULL;
12700 }
12701
12702
12703 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj;
12705 wxDC *arg1 = (wxDC *) 0 ;
12706 int arg2 ;
12707 wxPoint *arg3 = (wxPoint *) 0 ;
12708 int arg4 = (int) 0 ;
12709 int arg5 = (int) 0 ;
12710 int arg6 = (int) wxODDEVEN_RULE ;
12711 PyObject * obj0 = 0 ;
12712 PyObject * obj1 = 0 ;
12713 PyObject * obj2 = 0 ;
12714 PyObject * obj3 = 0 ;
12715 PyObject * obj4 = 0 ;
12716 char *kwnames[] = {
12717 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12718 };
12719
12720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12723 {
12724 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12725 if (arg3 == NULL) SWIG_fail;
12726 }
12727 if (obj2) {
12728 arg4 = (int) SWIG_AsInt(obj2);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 if (obj3) {
12732 arg5 = (int) SWIG_AsInt(obj3);
12733 if (PyErr_Occurred()) SWIG_fail;
12734 }
12735 if (obj4) {
12736 arg6 = (int) SWIG_AsInt(obj4);
12737 if (PyErr_Occurred()) SWIG_fail;
12738 }
12739 {
12740 PyThreadState* __tstate = wxPyBeginAllowThreads();
12741 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12742
12743 wxPyEndAllowThreads(__tstate);
12744 if (PyErr_Occurred()) SWIG_fail;
12745 }
12746 Py_INCREF(Py_None); resultobj = Py_None;
12747 {
12748 if (arg3) delete [] arg3;
12749 }
12750 return resultobj;
12751 fail:
12752 {
12753 if (arg3) delete [] arg3;
12754 }
12755 return NULL;
12756 }
12757
12758
12759 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxDC *arg1 = (wxDC *) 0 ;
12762 wxString *arg2 = 0 ;
12763 wxRect *arg3 = 0 ;
12764 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12765 int arg5 = (int) -1 ;
12766 bool temp2 = False ;
12767 wxRect temp3 ;
12768 PyObject * obj0 = 0 ;
12769 PyObject * obj1 = 0 ;
12770 PyObject * obj2 = 0 ;
12771 PyObject * obj3 = 0 ;
12772 PyObject * obj4 = 0 ;
12773 char *kwnames[] = {
12774 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12775 };
12776
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12780 {
12781 arg2 = wxString_in_helper(obj1);
12782 if (arg2 == NULL) SWIG_fail;
12783 temp2 = True;
12784 }
12785 {
12786 arg3 = &temp3;
12787 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12788 }
12789 if (obj3) {
12790 arg4 = (int) SWIG_AsInt(obj3);
12791 if (PyErr_Occurred()) SWIG_fail;
12792 }
12793 if (obj4) {
12794 arg5 = (int) SWIG_AsInt(obj4);
12795 if (PyErr_Occurred()) SWIG_fail;
12796 }
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12800
12801 wxPyEndAllowThreads(__tstate);
12802 if (PyErr_Occurred()) SWIG_fail;
12803 }
12804 Py_INCREF(Py_None); resultobj = Py_None;
12805 {
12806 if (temp2)
12807 delete arg2;
12808 }
12809 return resultobj;
12810 fail:
12811 {
12812 if (temp2)
12813 delete arg2;
12814 }
12815 return NULL;
12816 }
12817
12818
12819 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12820 PyObject *resultobj;
12821 wxDC *arg1 = (wxDC *) 0 ;
12822 wxString *arg2 = 0 ;
12823 wxBitmap *arg3 = 0 ;
12824 wxRect *arg4 = 0 ;
12825 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12826 int arg6 = (int) -1 ;
12827 wxRect result;
12828 bool temp2 = False ;
12829 wxRect temp4 ;
12830 PyObject * obj0 = 0 ;
12831 PyObject * obj1 = 0 ;
12832 PyObject * obj2 = 0 ;
12833 PyObject * obj3 = 0 ;
12834 PyObject * obj4 = 0 ;
12835 PyObject * obj5 = 0 ;
12836 char *kwnames[] = {
12837 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12838 };
12839
12840 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12841 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12842 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12843 {
12844 arg2 = wxString_in_helper(obj1);
12845 if (arg2 == NULL) SWIG_fail;
12846 temp2 = True;
12847 }
12848 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12849 SWIG_POINTER_EXCEPTION | 0)) == -1)
12850 SWIG_fail;
12851 if (arg3 == NULL) {
12852 PyErr_SetString(PyExc_TypeError,"null reference");
12853 SWIG_fail;
12854 }
12855 {
12856 arg4 = &temp4;
12857 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12858 }
12859 if (obj4) {
12860 arg5 = (int) SWIG_AsInt(obj4);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 if (obj5) {
12864 arg6 = (int) SWIG_AsInt(obj5);
12865 if (PyErr_Occurred()) SWIG_fail;
12866 }
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12870
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 {
12875 wxRect * resultptr;
12876 resultptr = new wxRect((wxRect &) result);
12877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12878 }
12879 {
12880 if (temp2)
12881 delete arg2;
12882 }
12883 return resultobj;
12884 fail:
12885 {
12886 if (temp2)
12887 delete arg2;
12888 }
12889 return NULL;
12890 }
12891
12892
12893 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12894 PyObject *resultobj;
12895 wxDC *arg1 = (wxDC *) 0 ;
12896 int arg2 ;
12897 wxPoint *arg3 = (wxPoint *) 0 ;
12898 PyObject * obj0 = 0 ;
12899 PyObject * obj1 = 0 ;
12900 char *kwnames[] = {
12901 (char *) "self",(char *) "points", NULL
12902 };
12903
12904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12907 {
12908 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12909 if (arg3 == NULL) SWIG_fail;
12910 }
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 (arg1)->DrawSpline(arg2,arg3);
12914
12915 wxPyEndAllowThreads(__tstate);
12916 if (PyErr_Occurred()) SWIG_fail;
12917 }
12918 Py_INCREF(Py_None); resultobj = Py_None;
12919 {
12920 if (arg3) delete [] arg3;
12921 }
12922 return resultobj;
12923 fail:
12924 {
12925 if (arg3) delete [] arg3;
12926 }
12927 return NULL;
12928 }
12929
12930
12931 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12932 PyObject *resultobj;
12933 wxDC *arg1 = (wxDC *) 0 ;
12934 PyObject * obj0 = 0 ;
12935 char *kwnames[] = {
12936 (char *) "self", NULL
12937 };
12938
12939 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12940 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12941 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12942 {
12943 PyThreadState* __tstate = wxPyBeginAllowThreads();
12944 (arg1)->Clear();
12945
12946 wxPyEndAllowThreads(__tstate);
12947 if (PyErr_Occurred()) SWIG_fail;
12948 }
12949 Py_INCREF(Py_None); resultobj = Py_None;
12950 return resultobj;
12951 fail:
12952 return NULL;
12953 }
12954
12955
12956 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12957 PyObject *resultobj;
12958 wxDC *arg1 = (wxDC *) 0 ;
12959 wxString *arg2 = 0 ;
12960 bool result;
12961 bool temp2 = False ;
12962 PyObject * obj0 = 0 ;
12963 PyObject * obj1 = 0 ;
12964 char *kwnames[] = {
12965 (char *) "self",(char *) "message", NULL
12966 };
12967
12968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12971 {
12972 arg2 = wxString_in_helper(obj1);
12973 if (arg2 == NULL) SWIG_fail;
12974 temp2 = True;
12975 }
12976 {
12977 PyThreadState* __tstate = wxPyBeginAllowThreads();
12978 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12979
12980 wxPyEndAllowThreads(__tstate);
12981 if (PyErr_Occurred()) SWIG_fail;
12982 }
12983 {
12984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12985 }
12986 {
12987 if (temp2)
12988 delete arg2;
12989 }
12990 return resultobj;
12991 fail:
12992 {
12993 if (temp2)
12994 delete arg2;
12995 }
12996 return NULL;
12997 }
12998
12999
13000 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
13001 PyObject *resultobj;
13002 wxDC *arg1 = (wxDC *) 0 ;
13003 PyObject * obj0 = 0 ;
13004 char *kwnames[] = {
13005 (char *) "self", NULL
13006 };
13007
13008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
13009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13011 {
13012 PyThreadState* __tstate = wxPyBeginAllowThreads();
13013 (arg1)->EndDoc();
13014
13015 wxPyEndAllowThreads(__tstate);
13016 if (PyErr_Occurred()) SWIG_fail;
13017 }
13018 Py_INCREF(Py_None); resultobj = Py_None;
13019 return resultobj;
13020 fail:
13021 return NULL;
13022 }
13023
13024
13025 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13026 PyObject *resultobj;
13027 wxDC *arg1 = (wxDC *) 0 ;
13028 PyObject * obj0 = 0 ;
13029 char *kwnames[] = {
13030 (char *) "self", NULL
13031 };
13032
13033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13036 {
13037 PyThreadState* __tstate = wxPyBeginAllowThreads();
13038 (arg1)->StartPage();
13039
13040 wxPyEndAllowThreads(__tstate);
13041 if (PyErr_Occurred()) SWIG_fail;
13042 }
13043 Py_INCREF(Py_None); resultobj = Py_None;
13044 return resultobj;
13045 fail:
13046 return NULL;
13047 }
13048
13049
13050 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13051 PyObject *resultobj;
13052 wxDC *arg1 = (wxDC *) 0 ;
13053 PyObject * obj0 = 0 ;
13054 char *kwnames[] = {
13055 (char *) "self", NULL
13056 };
13057
13058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 (arg1)->EndPage();
13064
13065 wxPyEndAllowThreads(__tstate);
13066 if (PyErr_Occurred()) SWIG_fail;
13067 }
13068 Py_INCREF(Py_None); resultobj = Py_None;
13069 return resultobj;
13070 fail:
13071 return NULL;
13072 }
13073
13074
13075 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13076 PyObject *resultobj;
13077 wxDC *arg1 = (wxDC *) 0 ;
13078 wxFont *arg2 = 0 ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 char *kwnames[] = {
13082 (char *) "self",(char *) "font", NULL
13083 };
13084
13085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13089 SWIG_POINTER_EXCEPTION | 0)) == -1)
13090 SWIG_fail;
13091 if (arg2 == NULL) {
13092 PyErr_SetString(PyExc_TypeError,"null reference");
13093 SWIG_fail;
13094 }
13095 {
13096 PyThreadState* __tstate = wxPyBeginAllowThreads();
13097 (arg1)->SetFont((wxFont const &)*arg2);
13098
13099 wxPyEndAllowThreads(__tstate);
13100 if (PyErr_Occurred()) SWIG_fail;
13101 }
13102 Py_INCREF(Py_None); resultobj = Py_None;
13103 return resultobj;
13104 fail:
13105 return NULL;
13106 }
13107
13108
13109 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13110 PyObject *resultobj;
13111 wxDC *arg1 = (wxDC *) 0 ;
13112 wxPen *arg2 = 0 ;
13113 PyObject * obj0 = 0 ;
13114 PyObject * obj1 = 0 ;
13115 char *kwnames[] = {
13116 (char *) "self",(char *) "pen", NULL
13117 };
13118
13119 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13120 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13121 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13122 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13123 SWIG_POINTER_EXCEPTION | 0)) == -1)
13124 SWIG_fail;
13125 if (arg2 == NULL) {
13126 PyErr_SetString(PyExc_TypeError,"null reference");
13127 SWIG_fail;
13128 }
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 (arg1)->SetPen((wxPen const &)*arg2);
13132
13133 wxPyEndAllowThreads(__tstate);
13134 if (PyErr_Occurred()) SWIG_fail;
13135 }
13136 Py_INCREF(Py_None); resultobj = Py_None;
13137 return resultobj;
13138 fail:
13139 return NULL;
13140 }
13141
13142
13143 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13144 PyObject *resultobj;
13145 wxDC *arg1 = (wxDC *) 0 ;
13146 wxBrush *arg2 = 0 ;
13147 PyObject * obj0 = 0 ;
13148 PyObject * obj1 = 0 ;
13149 char *kwnames[] = {
13150 (char *) "self",(char *) "brush", NULL
13151 };
13152
13153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13156 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1)
13158 SWIG_fail;
13159 if (arg2 == NULL) {
13160 PyErr_SetString(PyExc_TypeError,"null reference");
13161 SWIG_fail;
13162 }
13163 {
13164 PyThreadState* __tstate = wxPyBeginAllowThreads();
13165 (arg1)->SetBrush((wxBrush const &)*arg2);
13166
13167 wxPyEndAllowThreads(__tstate);
13168 if (PyErr_Occurred()) SWIG_fail;
13169 }
13170 Py_INCREF(Py_None); resultobj = Py_None;
13171 return resultobj;
13172 fail:
13173 return NULL;
13174 }
13175
13176
13177 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13178 PyObject *resultobj;
13179 wxDC *arg1 = (wxDC *) 0 ;
13180 wxBrush *arg2 = 0 ;
13181 PyObject * obj0 = 0 ;
13182 PyObject * obj1 = 0 ;
13183 char *kwnames[] = {
13184 (char *) "self",(char *) "brush", NULL
13185 };
13186
13187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13190 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13191 SWIG_POINTER_EXCEPTION | 0)) == -1)
13192 SWIG_fail;
13193 if (arg2 == NULL) {
13194 PyErr_SetString(PyExc_TypeError,"null reference");
13195 SWIG_fail;
13196 }
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 (arg1)->SetBackground((wxBrush const &)*arg2);
13200
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 Py_INCREF(Py_None); resultobj = Py_None;
13205 return resultobj;
13206 fail:
13207 return NULL;
13208 }
13209
13210
13211 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13212 PyObject *resultobj;
13213 wxDC *arg1 = (wxDC *) 0 ;
13214 int arg2 ;
13215 PyObject * obj0 = 0 ;
13216 PyObject * obj1 = 0 ;
13217 char *kwnames[] = {
13218 (char *) "self",(char *) "mode", NULL
13219 };
13220
13221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13224 arg2 = (int) SWIG_AsInt(obj1);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 (arg1)->SetBackgroundMode(arg2);
13229
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 Py_INCREF(Py_None); resultobj = Py_None;
13234 return resultobj;
13235 fail:
13236 return NULL;
13237 }
13238
13239
13240 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj;
13242 wxDC *arg1 = (wxDC *) 0 ;
13243 wxPalette *arg2 = 0 ;
13244 PyObject * obj0 = 0 ;
13245 PyObject * obj1 = 0 ;
13246 char *kwnames[] = {
13247 (char *) "self",(char *) "palette", NULL
13248 };
13249
13250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13254 SWIG_POINTER_EXCEPTION | 0)) == -1)
13255 SWIG_fail;
13256 if (arg2 == NULL) {
13257 PyErr_SetString(PyExc_TypeError,"null reference");
13258 SWIG_fail;
13259 }
13260 {
13261 PyThreadState* __tstate = wxPyBeginAllowThreads();
13262 (arg1)->SetPalette((wxPalette const &)*arg2);
13263
13264 wxPyEndAllowThreads(__tstate);
13265 if (PyErr_Occurred()) SWIG_fail;
13266 }
13267 Py_INCREF(Py_None); resultobj = Py_None;
13268 return resultobj;
13269 fail:
13270 return NULL;
13271 }
13272
13273
13274 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13275 PyObject *resultobj;
13276 wxDC *arg1 = (wxDC *) 0 ;
13277 PyObject * obj0 = 0 ;
13278 char *kwnames[] = {
13279 (char *) "self", NULL
13280 };
13281
13282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13285 {
13286 PyThreadState* __tstate = wxPyBeginAllowThreads();
13287 (arg1)->DestroyClippingRegion();
13288
13289 wxPyEndAllowThreads(__tstate);
13290 if (PyErr_Occurred()) SWIG_fail;
13291 }
13292 Py_INCREF(Py_None); resultobj = Py_None;
13293 return resultobj;
13294 fail:
13295 return NULL;
13296 }
13297
13298
13299 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13300 PyObject *resultobj;
13301 wxDC *arg1 = (wxDC *) 0 ;
13302 int *arg2 = (int *) 0 ;
13303 int *arg3 = (int *) 0 ;
13304 int *arg4 = (int *) 0 ;
13305 int *arg5 = (int *) 0 ;
13306 int temp2 ;
13307 int temp3 ;
13308 int temp4 ;
13309 int temp5 ;
13310 PyObject * obj0 = 0 ;
13311 char *kwnames[] = {
13312 (char *) "self", NULL
13313 };
13314
13315 arg2 = &temp2;
13316 arg3 = &temp3;
13317 arg4 = &temp4;
13318 arg5 = &temp5;
13319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13322 {
13323 PyThreadState* __tstate = wxPyBeginAllowThreads();
13324 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13325
13326 wxPyEndAllowThreads(__tstate);
13327 if (PyErr_Occurred()) SWIG_fail;
13328 }
13329 Py_INCREF(Py_None); resultobj = Py_None;
13330 {
13331 PyObject *o = PyInt_FromLong((long) (*arg2));
13332 resultobj = t_output_helper(resultobj,o);
13333 }
13334 {
13335 PyObject *o = PyInt_FromLong((long) (*arg3));
13336 resultobj = t_output_helper(resultobj,o);
13337 }
13338 {
13339 PyObject *o = PyInt_FromLong((long) (*arg4));
13340 resultobj = t_output_helper(resultobj,o);
13341 }
13342 {
13343 PyObject *o = PyInt_FromLong((long) (*arg5));
13344 resultobj = t_output_helper(resultobj,o);
13345 }
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj;
13354 wxDC *arg1 = (wxDC *) 0 ;
13355 wxRect result;
13356 PyObject * obj0 = 0 ;
13357 char *kwnames[] = {
13358 (char *) "self", NULL
13359 };
13360
13361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = wxDC_GetClippingRect(arg1);
13367
13368 wxPyEndAllowThreads(__tstate);
13369 if (PyErr_Occurred()) SWIG_fail;
13370 }
13371 {
13372 wxRect * resultptr;
13373 resultptr = new wxRect((wxRect &) result);
13374 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13375 }
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13383 PyObject *resultobj;
13384 wxDC *arg1 = (wxDC *) 0 ;
13385 int result;
13386 PyObject * obj0 = 0 ;
13387 char *kwnames[] = {
13388 (char *) "self", NULL
13389 };
13390
13391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13394 {
13395 PyThreadState* __tstate = wxPyBeginAllowThreads();
13396 result = (int)((wxDC const *)arg1)->GetCharHeight();
13397
13398 wxPyEndAllowThreads(__tstate);
13399 if (PyErr_Occurred()) SWIG_fail;
13400 }
13401 resultobj = SWIG_FromInt((int)result);
13402 return resultobj;
13403 fail:
13404 return NULL;
13405 }
13406
13407
13408 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13409 PyObject *resultobj;
13410 wxDC *arg1 = (wxDC *) 0 ;
13411 int result;
13412 PyObject * obj0 = 0 ;
13413 char *kwnames[] = {
13414 (char *) "self", NULL
13415 };
13416
13417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13420 {
13421 PyThreadState* __tstate = wxPyBeginAllowThreads();
13422 result = (int)((wxDC const *)arg1)->GetCharWidth();
13423
13424 wxPyEndAllowThreads(__tstate);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 }
13427 resultobj = SWIG_FromInt((int)result);
13428 return resultobj;
13429 fail:
13430 return NULL;
13431 }
13432
13433
13434 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13435 PyObject *resultobj;
13436 wxDC *arg1 = (wxDC *) 0 ;
13437 wxString *arg2 = 0 ;
13438 int *arg3 = (int *) 0 ;
13439 int *arg4 = (int *) 0 ;
13440 bool temp2 = False ;
13441 int temp3 ;
13442 int temp4 ;
13443 PyObject * obj0 = 0 ;
13444 PyObject * obj1 = 0 ;
13445 char *kwnames[] = {
13446 (char *) "self",(char *) "string", NULL
13447 };
13448
13449 arg3 = &temp3;
13450 arg4 = &temp4;
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13454 {
13455 arg2 = wxString_in_helper(obj1);
13456 if (arg2 == NULL) SWIG_fail;
13457 temp2 = True;
13458 }
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 Py_INCREF(Py_None); resultobj = Py_None;
13467 {
13468 PyObject *o = PyInt_FromLong((long) (*arg3));
13469 resultobj = t_output_helper(resultobj,o);
13470 }
13471 {
13472 PyObject *o = PyInt_FromLong((long) (*arg4));
13473 resultobj = t_output_helper(resultobj,o);
13474 }
13475 {
13476 if (temp2)
13477 delete arg2;
13478 }
13479 return resultobj;
13480 fail:
13481 {
13482 if (temp2)
13483 delete arg2;
13484 }
13485 return NULL;
13486 }
13487
13488
13489 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13490 PyObject *resultobj;
13491 wxDC *arg1 = (wxDC *) 0 ;
13492 wxString *arg2 = 0 ;
13493 int *arg3 = (int *) 0 ;
13494 int *arg4 = (int *) 0 ;
13495 int *arg5 = (int *) 0 ;
13496 int *arg6 = (int *) 0 ;
13497 wxFont *arg7 = (wxFont *) NULL ;
13498 bool temp2 = False ;
13499 int temp3 ;
13500 int temp4 ;
13501 int temp5 ;
13502 int temp6 ;
13503 PyObject * obj0 = 0 ;
13504 PyObject * obj1 = 0 ;
13505 PyObject * obj2 = 0 ;
13506 char *kwnames[] = {
13507 (char *) "self",(char *) "string",(char *) "font", NULL
13508 };
13509
13510 arg3 = &temp3;
13511 arg4 = &temp4;
13512 arg5 = &temp5;
13513 arg6 = &temp6;
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13517 {
13518 arg2 = wxString_in_helper(obj1);
13519 if (arg2 == NULL) SWIG_fail;
13520 temp2 = True;
13521 }
13522 if (obj2) {
13523 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13525 }
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13529
13530 wxPyEndAllowThreads(__tstate);
13531 if (PyErr_Occurred()) SWIG_fail;
13532 }
13533 Py_INCREF(Py_None); resultobj = Py_None;
13534 {
13535 PyObject *o = PyInt_FromLong((long) (*arg3));
13536 resultobj = t_output_helper(resultobj,o);
13537 }
13538 {
13539 PyObject *o = PyInt_FromLong((long) (*arg4));
13540 resultobj = t_output_helper(resultobj,o);
13541 }
13542 {
13543 PyObject *o = PyInt_FromLong((long) (*arg5));
13544 resultobj = t_output_helper(resultobj,o);
13545 }
13546 {
13547 PyObject *o = PyInt_FromLong((long) (*arg6));
13548 resultobj = t_output_helper(resultobj,o);
13549 }
13550 {
13551 if (temp2)
13552 delete arg2;
13553 }
13554 return resultobj;
13555 fail:
13556 {
13557 if (temp2)
13558 delete arg2;
13559 }
13560 return NULL;
13561 }
13562
13563
13564 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13565 PyObject *resultobj;
13566 wxDC *arg1 = (wxDC *) 0 ;
13567 wxString *arg2 = 0 ;
13568 int *arg3 = (int *) 0 ;
13569 int *arg4 = (int *) 0 ;
13570 int *arg5 = (int *) 0 ;
13571 wxFont *arg6 = (wxFont *) NULL ;
13572 bool temp2 = False ;
13573 int temp3 ;
13574 int temp4 ;
13575 int temp5 ;
13576 PyObject * obj0 = 0 ;
13577 PyObject * obj1 = 0 ;
13578 PyObject * obj2 = 0 ;
13579 char *kwnames[] = {
13580 (char *) "self",(char *) "text",(char *) "font", NULL
13581 };
13582
13583 arg3 = &temp3;
13584 arg4 = &temp4;
13585 arg5 = &temp5;
13586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13589 {
13590 arg2 = wxString_in_helper(obj1);
13591 if (arg2 == NULL) SWIG_fail;
13592 temp2 = True;
13593 }
13594 if (obj2) {
13595 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13597 }
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13601
13602 wxPyEndAllowThreads(__tstate);
13603 if (PyErr_Occurred()) SWIG_fail;
13604 }
13605 Py_INCREF(Py_None); resultobj = Py_None;
13606 {
13607 PyObject *o = PyInt_FromLong((long) (*arg3));
13608 resultobj = t_output_helper(resultobj,o);
13609 }
13610 {
13611 PyObject *o = PyInt_FromLong((long) (*arg4));
13612 resultobj = t_output_helper(resultobj,o);
13613 }
13614 {
13615 PyObject *o = PyInt_FromLong((long) (*arg5));
13616 resultobj = t_output_helper(resultobj,o);
13617 }
13618 {
13619 if (temp2)
13620 delete arg2;
13621 }
13622 return resultobj;
13623 fail:
13624 {
13625 if (temp2)
13626 delete arg2;
13627 }
13628 return NULL;
13629 }
13630
13631
13632 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13633 PyObject *resultobj;
13634 wxDC *arg1 = (wxDC *) 0 ;
13635 wxString *arg2 = 0 ;
13636 wxArrayInt result;
13637 bool temp2 = False ;
13638 PyObject * obj0 = 0 ;
13639 PyObject * obj1 = 0 ;
13640 char *kwnames[] = {
13641 (char *) "self",(char *) "text", NULL
13642 };
13643
13644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13647 {
13648 arg2 = wxString_in_helper(obj1);
13649 if (arg2 == NULL) SWIG_fail;
13650 temp2 = True;
13651 }
13652 {
13653 PyThreadState* __tstate = wxPyBeginAllowThreads();
13654 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13655
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 {
13660 resultobj = PyList_New(0);
13661 size_t idx;
13662 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13663 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13664 PyList_Append(resultobj, val);
13665 Py_DECREF(val);
13666 }
13667 }
13668 {
13669 if (temp2)
13670 delete arg2;
13671 }
13672 return resultobj;
13673 fail:
13674 {
13675 if (temp2)
13676 delete arg2;
13677 }
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 wxSize result;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 result = (arg1)->GetSize();
13697
13698 wxPyEndAllowThreads(__tstate);
13699 if (PyErr_Occurred()) SWIG_fail;
13700 }
13701 {
13702 wxSize * resultptr;
13703 resultptr = new wxSize((wxSize &) result);
13704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13705 }
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxDC *arg1 = (wxDC *) 0 ;
13715 int *arg2 = (int *) 0 ;
13716 int *arg3 = (int *) 0 ;
13717 int temp2 ;
13718 int temp3 ;
13719 PyObject * obj0 = 0 ;
13720 char *kwnames[] = {
13721 (char *) "self", NULL
13722 };
13723
13724 arg2 = &temp2;
13725 arg3 = &temp3;
13726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13729 {
13730 PyThreadState* __tstate = wxPyBeginAllowThreads();
13731 (arg1)->GetSize(arg2,arg3);
13732
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 Py_INCREF(Py_None); resultobj = Py_None;
13737 {
13738 PyObject *o = PyInt_FromLong((long) (*arg2));
13739 resultobj = t_output_helper(resultobj,o);
13740 }
13741 {
13742 PyObject *o = PyInt_FromLong((long) (*arg3));
13743 resultobj = t_output_helper(resultobj,o);
13744 }
13745 return resultobj;
13746 fail:
13747 return NULL;
13748 }
13749
13750
13751 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj;
13753 wxDC *arg1 = (wxDC *) 0 ;
13754 wxSize result;
13755 PyObject * obj0 = 0 ;
13756 char *kwnames[] = {
13757 (char *) "self", NULL
13758 };
13759
13760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13763 {
13764 PyThreadState* __tstate = wxPyBeginAllowThreads();
13765 result = ((wxDC const *)arg1)->GetSizeMM();
13766
13767 wxPyEndAllowThreads(__tstate);
13768 if (PyErr_Occurred()) SWIG_fail;
13769 }
13770 {
13771 wxSize * resultptr;
13772 resultptr = new wxSize((wxSize &) result);
13773 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13774 }
13775 return resultobj;
13776 fail:
13777 return NULL;
13778 }
13779
13780
13781 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13782 PyObject *resultobj;
13783 wxDC *arg1 = (wxDC *) 0 ;
13784 int *arg2 = (int *) 0 ;
13785 int *arg3 = (int *) 0 ;
13786 int temp2 ;
13787 int temp3 ;
13788 PyObject * obj0 = 0 ;
13789 char *kwnames[] = {
13790 (char *) "self", NULL
13791 };
13792
13793 arg2 = &temp2;
13794 arg3 = &temp3;
13795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13798 {
13799 PyThreadState* __tstate = wxPyBeginAllowThreads();
13800 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13801
13802 wxPyEndAllowThreads(__tstate);
13803 if (PyErr_Occurred()) SWIG_fail;
13804 }
13805 Py_INCREF(Py_None); resultobj = Py_None;
13806 {
13807 PyObject *o = PyInt_FromLong((long) (*arg2));
13808 resultobj = t_output_helper(resultobj,o);
13809 }
13810 {
13811 PyObject *o = PyInt_FromLong((long) (*arg3));
13812 resultobj = t_output_helper(resultobj,o);
13813 }
13814 return resultobj;
13815 fail:
13816 return NULL;
13817 }
13818
13819
13820 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13821 PyObject *resultobj;
13822 wxDC *arg1 = (wxDC *) 0 ;
13823 int arg2 ;
13824 int result;
13825 PyObject * obj0 = 0 ;
13826 PyObject * obj1 = 0 ;
13827 char *kwnames[] = {
13828 (char *) "self",(char *) "x", NULL
13829 };
13830
13831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13834 arg2 = (int) SWIG_AsInt(obj1);
13835 if (PyErr_Occurred()) SWIG_fail;
13836 {
13837 PyThreadState* __tstate = wxPyBeginAllowThreads();
13838 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13839
13840 wxPyEndAllowThreads(__tstate);
13841 if (PyErr_Occurred()) SWIG_fail;
13842 }
13843 resultobj = SWIG_FromInt((int)result);
13844 return resultobj;
13845 fail:
13846 return NULL;
13847 }
13848
13849
13850 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13851 PyObject *resultobj;
13852 wxDC *arg1 = (wxDC *) 0 ;
13853 int arg2 ;
13854 int result;
13855 PyObject * obj0 = 0 ;
13856 PyObject * obj1 = 0 ;
13857 char *kwnames[] = {
13858 (char *) "self",(char *) "y", NULL
13859 };
13860
13861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13864 arg2 = (int) SWIG_AsInt(obj1);
13865 if (PyErr_Occurred()) SWIG_fail;
13866 {
13867 PyThreadState* __tstate = wxPyBeginAllowThreads();
13868 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13869
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_FromInt((int)result);
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13881 PyObject *resultobj;
13882 wxDC *arg1 = (wxDC *) 0 ;
13883 int arg2 ;
13884 int result;
13885 PyObject * obj0 = 0 ;
13886 PyObject * obj1 = 0 ;
13887 char *kwnames[] = {
13888 (char *) "self",(char *) "x", NULL
13889 };
13890
13891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13894 arg2 = (int) SWIG_AsInt(obj1);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 {
13897 PyThreadState* __tstate = wxPyBeginAllowThreads();
13898 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13899
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 resultobj = SWIG_FromInt((int)result);
13904 return resultobj;
13905 fail:
13906 return NULL;
13907 }
13908
13909
13910 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13911 PyObject *resultobj;
13912 wxDC *arg1 = (wxDC *) 0 ;
13913 int arg2 ;
13914 int result;
13915 PyObject * obj0 = 0 ;
13916 PyObject * obj1 = 0 ;
13917 char *kwnames[] = {
13918 (char *) "self",(char *) "y", NULL
13919 };
13920
13921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13924 arg2 = (int) SWIG_AsInt(obj1);
13925 if (PyErr_Occurred()) SWIG_fail;
13926 {
13927 PyThreadState* __tstate = wxPyBeginAllowThreads();
13928 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13929
13930 wxPyEndAllowThreads(__tstate);
13931 if (PyErr_Occurred()) SWIG_fail;
13932 }
13933 resultobj = SWIG_FromInt((int)result);
13934 return resultobj;
13935 fail:
13936 return NULL;
13937 }
13938
13939
13940 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13941 PyObject *resultobj;
13942 wxDC *arg1 = (wxDC *) 0 ;
13943 int arg2 ;
13944 int result;
13945 PyObject * obj0 = 0 ;
13946 PyObject * obj1 = 0 ;
13947 char *kwnames[] = {
13948 (char *) "self",(char *) "x", NULL
13949 };
13950
13951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13954 arg2 = (int) SWIG_AsInt(obj1);
13955 if (PyErr_Occurred()) SWIG_fail;
13956 {
13957 PyThreadState* __tstate = wxPyBeginAllowThreads();
13958 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13959
13960 wxPyEndAllowThreads(__tstate);
13961 if (PyErr_Occurred()) SWIG_fail;
13962 }
13963 resultobj = SWIG_FromInt((int)result);
13964 return resultobj;
13965 fail:
13966 return NULL;
13967 }
13968
13969
13970 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13971 PyObject *resultobj;
13972 wxDC *arg1 = (wxDC *) 0 ;
13973 int arg2 ;
13974 int result;
13975 PyObject * obj0 = 0 ;
13976 PyObject * obj1 = 0 ;
13977 char *kwnames[] = {
13978 (char *) "self",(char *) "y", NULL
13979 };
13980
13981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13984 arg2 = (int) SWIG_AsInt(obj1);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 {
13987 PyThreadState* __tstate = wxPyBeginAllowThreads();
13988 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13989
13990 wxPyEndAllowThreads(__tstate);
13991 if (PyErr_Occurred()) SWIG_fail;
13992 }
13993 resultobj = SWIG_FromInt((int)result);
13994 return resultobj;
13995 fail:
13996 return NULL;
13997 }
13998
13999
14000 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14001 PyObject *resultobj;
14002 wxDC *arg1 = (wxDC *) 0 ;
14003 int arg2 ;
14004 int result;
14005 PyObject * obj0 = 0 ;
14006 PyObject * obj1 = 0 ;
14007 char *kwnames[] = {
14008 (char *) "self",(char *) "x", NULL
14009 };
14010
14011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14014 arg2 = (int) SWIG_AsInt(obj1);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14019
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 resultobj = SWIG_FromInt((int)result);
14024 return resultobj;
14025 fail:
14026 return NULL;
14027 }
14028
14029
14030 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 wxDC *arg1 = (wxDC *) 0 ;
14033 int arg2 ;
14034 int result;
14035 PyObject * obj0 = 0 ;
14036 PyObject * obj1 = 0 ;
14037 char *kwnames[] = {
14038 (char *) "self",(char *) "y", NULL
14039 };
14040
14041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14044 arg2 = (int) SWIG_AsInt(obj1);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 {
14047 PyThreadState* __tstate = wxPyBeginAllowThreads();
14048 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14049
14050 wxPyEndAllowThreads(__tstate);
14051 if (PyErr_Occurred()) SWIG_fail;
14052 }
14053 resultobj = SWIG_FromInt((int)result);
14054 return resultobj;
14055 fail:
14056 return NULL;
14057 }
14058
14059
14060 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14061 PyObject *resultobj;
14062 wxDC *arg1 = (wxDC *) 0 ;
14063 bool result;
14064 PyObject * obj0 = 0 ;
14065 char *kwnames[] = {
14066 (char *) "self", NULL
14067 };
14068
14069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14072 {
14073 PyThreadState* __tstate = wxPyBeginAllowThreads();
14074 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14075
14076 wxPyEndAllowThreads(__tstate);
14077 if (PyErr_Occurred()) SWIG_fail;
14078 }
14079 {
14080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14081 }
14082 return resultobj;
14083 fail:
14084 return NULL;
14085 }
14086
14087
14088 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14089 PyObject *resultobj;
14090 wxDC *arg1 = (wxDC *) 0 ;
14091 bool result;
14092 PyObject * obj0 = 0 ;
14093 char *kwnames[] = {
14094 (char *) "self", NULL
14095 };
14096
14097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14100 {
14101 PyThreadState* __tstate = wxPyBeginAllowThreads();
14102 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14103
14104 wxPyEndAllowThreads(__tstate);
14105 if (PyErr_Occurred()) SWIG_fail;
14106 }
14107 {
14108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14109 }
14110 return resultobj;
14111 fail:
14112 return NULL;
14113 }
14114
14115
14116 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14117 PyObject *resultobj;
14118 wxDC *arg1 = (wxDC *) 0 ;
14119 int result;
14120 PyObject * obj0 = 0 ;
14121 char *kwnames[] = {
14122 (char *) "self", NULL
14123 };
14124
14125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14128 {
14129 PyThreadState* __tstate = wxPyBeginAllowThreads();
14130 result = (int)((wxDC const *)arg1)->GetDepth();
14131
14132 wxPyEndAllowThreads(__tstate);
14133 if (PyErr_Occurred()) SWIG_fail;
14134 }
14135 resultobj = SWIG_FromInt((int)result);
14136 return resultobj;
14137 fail:
14138 return NULL;
14139 }
14140
14141
14142 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14143 PyObject *resultobj;
14144 wxDC *arg1 = (wxDC *) 0 ;
14145 wxSize result;
14146 PyObject * obj0 = 0 ;
14147 char *kwnames[] = {
14148 (char *) "self", NULL
14149 };
14150
14151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14154 {
14155 PyThreadState* __tstate = wxPyBeginAllowThreads();
14156 result = ((wxDC const *)arg1)->GetPPI();
14157
14158 wxPyEndAllowThreads(__tstate);
14159 if (PyErr_Occurred()) SWIG_fail;
14160 }
14161 {
14162 wxSize * resultptr;
14163 resultptr = new wxSize((wxSize &) result);
14164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14165 }
14166 return resultobj;
14167 fail:
14168 return NULL;
14169 }
14170
14171
14172 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14173 PyObject *resultobj;
14174 wxDC *arg1 = (wxDC *) 0 ;
14175 bool result;
14176 PyObject * obj0 = 0 ;
14177 char *kwnames[] = {
14178 (char *) "self", NULL
14179 };
14180
14181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = (bool)((wxDC const *)arg1)->Ok();
14187
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14193 }
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14201 PyObject *resultobj;
14202 wxDC *arg1 = (wxDC *) 0 ;
14203 int result;
14204 PyObject * obj0 = 0 ;
14205 char *kwnames[] = {
14206 (char *) "self", NULL
14207 };
14208
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14212 {
14213 PyThreadState* __tstate = wxPyBeginAllowThreads();
14214 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14215
14216 wxPyEndAllowThreads(__tstate);
14217 if (PyErr_Occurred()) SWIG_fail;
14218 }
14219 resultobj = SWIG_FromInt((int)result);
14220 return resultobj;
14221 fail:
14222 return NULL;
14223 }
14224
14225
14226 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14227 PyObject *resultobj;
14228 wxDC *arg1 = (wxDC *) 0 ;
14229 wxBrush *result;
14230 PyObject * obj0 = 0 ;
14231 char *kwnames[] = {
14232 (char *) "self", NULL
14233 };
14234
14235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 {
14241 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14242 result = (wxBrush *) &_result_ref;
14243 }
14244
14245 wxPyEndAllowThreads(__tstate);
14246 if (PyErr_Occurred()) SWIG_fail;
14247 }
14248 {
14249 wxBrush* resultptr = new wxBrush(*result);
14250 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14251 }
14252 return resultobj;
14253 fail:
14254 return NULL;
14255 }
14256
14257
14258 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj;
14260 wxDC *arg1 = (wxDC *) 0 ;
14261 wxBrush *result;
14262 PyObject * obj0 = 0 ;
14263 char *kwnames[] = {
14264 (char *) "self", NULL
14265 };
14266
14267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14270 {
14271 PyThreadState* __tstate = wxPyBeginAllowThreads();
14272 {
14273 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14274 result = (wxBrush *) &_result_ref;
14275 }
14276
14277 wxPyEndAllowThreads(__tstate);
14278 if (PyErr_Occurred()) SWIG_fail;
14279 }
14280 {
14281 wxBrush* resultptr = new wxBrush(*result);
14282 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14283 }
14284 return resultobj;
14285 fail:
14286 return NULL;
14287 }
14288
14289
14290 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14291 PyObject *resultobj;
14292 wxDC *arg1 = (wxDC *) 0 ;
14293 wxFont *result;
14294 PyObject * obj0 = 0 ;
14295 char *kwnames[] = {
14296 (char *) "self", NULL
14297 };
14298
14299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14302 {
14303 PyThreadState* __tstate = wxPyBeginAllowThreads();
14304 {
14305 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14306 result = (wxFont *) &_result_ref;
14307 }
14308
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 {
14313 wxFont* resultptr = new wxFont(*result);
14314 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14315 }
14316 return resultobj;
14317 fail:
14318 return NULL;
14319 }
14320
14321
14322 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14323 PyObject *resultobj;
14324 wxDC *arg1 = (wxDC *) 0 ;
14325 wxPen *result;
14326 PyObject * obj0 = 0 ;
14327 char *kwnames[] = {
14328 (char *) "self", NULL
14329 };
14330
14331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14334 {
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 {
14337 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14338 result = (wxPen *) &_result_ref;
14339 }
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 {
14345 wxPen* resultptr = new wxPen(*result);
14346 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14347 }
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj;
14356 wxDC *arg1 = (wxDC *) 0 ;
14357 wxColour *result;
14358 PyObject * obj0 = 0 ;
14359 char *kwnames[] = {
14360 (char *) "self", NULL
14361 };
14362
14363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 {
14369 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14370 result = (wxColour *) &_result_ref;
14371 }
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxDC *arg1 = (wxDC *) 0 ;
14386 wxColour *result;
14387 PyObject * obj0 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14395 {
14396 PyThreadState* __tstate = wxPyBeginAllowThreads();
14397 {
14398 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14399 result = (wxColour *) &_result_ref;
14400 }
14401
14402 wxPyEndAllowThreads(__tstate);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 }
14405 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14406 return resultobj;
14407 fail:
14408 return NULL;
14409 }
14410
14411
14412 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14413 PyObject *resultobj;
14414 wxDC *arg1 = (wxDC *) 0 ;
14415 wxColour *arg2 = 0 ;
14416 wxColour temp2 ;
14417 PyObject * obj0 = 0 ;
14418 PyObject * obj1 = 0 ;
14419 char *kwnames[] = {
14420 (char *) "self",(char *) "colour", NULL
14421 };
14422
14423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14426 {
14427 arg2 = &temp2;
14428 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14429 }
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 (arg1)->SetTextForeground((wxColour const &)*arg2);
14433
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 Py_INCREF(Py_None); resultobj = Py_None;
14438 return resultobj;
14439 fail:
14440 return NULL;
14441 }
14442
14443
14444 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14445 PyObject *resultobj;
14446 wxDC *arg1 = (wxDC *) 0 ;
14447 wxColour *arg2 = 0 ;
14448 wxColour temp2 ;
14449 PyObject * obj0 = 0 ;
14450 PyObject * obj1 = 0 ;
14451 char *kwnames[] = {
14452 (char *) "self",(char *) "colour", NULL
14453 };
14454
14455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14458 {
14459 arg2 = &temp2;
14460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14461 }
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 (arg1)->SetTextBackground((wxColour const &)*arg2);
14465
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 Py_INCREF(Py_None); resultobj = Py_None;
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14477 PyObject *resultobj;
14478 wxDC *arg1 = (wxDC *) 0 ;
14479 int result;
14480 PyObject * obj0 = 0 ;
14481 char *kwnames[] = {
14482 (char *) "self", NULL
14483 };
14484
14485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14488 {
14489 PyThreadState* __tstate = wxPyBeginAllowThreads();
14490 result = (int)((wxDC const *)arg1)->GetMapMode();
14491
14492 wxPyEndAllowThreads(__tstate);
14493 if (PyErr_Occurred()) SWIG_fail;
14494 }
14495 resultobj = SWIG_FromInt((int)result);
14496 return resultobj;
14497 fail:
14498 return NULL;
14499 }
14500
14501
14502 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14503 PyObject *resultobj;
14504 wxDC *arg1 = (wxDC *) 0 ;
14505 int arg2 ;
14506 PyObject * obj0 = 0 ;
14507 PyObject * obj1 = 0 ;
14508 char *kwnames[] = {
14509 (char *) "self",(char *) "mode", NULL
14510 };
14511
14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 arg2 = (int) SWIG_AsInt(obj1);
14516 if (PyErr_Occurred()) SWIG_fail;
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 (arg1)->SetMapMode(arg2);
14520
14521 wxPyEndAllowThreads(__tstate);
14522 if (PyErr_Occurred()) SWIG_fail;
14523 }
14524 Py_INCREF(Py_None); resultobj = Py_None;
14525 return resultobj;
14526 fail:
14527 return NULL;
14528 }
14529
14530
14531 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14532 PyObject *resultobj;
14533 wxDC *arg1 = (wxDC *) 0 ;
14534 double *arg2 = (double *) 0 ;
14535 double *arg3 = (double *) 0 ;
14536 double temp2 ;
14537 double temp3 ;
14538 PyObject * obj0 = 0 ;
14539 char *kwnames[] = {
14540 (char *) "self", NULL
14541 };
14542
14543 arg2 = &temp2;
14544 arg3 = &temp3;
14545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14548 {
14549 PyThreadState* __tstate = wxPyBeginAllowThreads();
14550 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14551
14552 wxPyEndAllowThreads(__tstate);
14553 if (PyErr_Occurred()) SWIG_fail;
14554 }
14555 Py_INCREF(Py_None); resultobj = Py_None;
14556 {
14557 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14558 resultobj = t_output_helper(resultobj,o);
14559 }
14560 {
14561 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14562 resultobj = t_output_helper(resultobj,o);
14563 }
14564 return resultobj;
14565 fail:
14566 return NULL;
14567 }
14568
14569
14570 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14571 PyObject *resultobj;
14572 wxDC *arg1 = (wxDC *) 0 ;
14573 double arg2 ;
14574 double arg3 ;
14575 PyObject * obj0 = 0 ;
14576 PyObject * obj1 = 0 ;
14577 PyObject * obj2 = 0 ;
14578 char *kwnames[] = {
14579 (char *) "self",(char *) "x",(char *) "y", NULL
14580 };
14581
14582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14585 arg2 = (double) SWIG_AsDouble(obj1);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 arg3 = (double) SWIG_AsDouble(obj2);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 {
14590 PyThreadState* __tstate = wxPyBeginAllowThreads();
14591 (arg1)->SetUserScale(arg2,arg3);
14592
14593 wxPyEndAllowThreads(__tstate);
14594 if (PyErr_Occurred()) SWIG_fail;
14595 }
14596 Py_INCREF(Py_None); resultobj = Py_None;
14597 return resultobj;
14598 fail:
14599 return NULL;
14600 }
14601
14602
14603 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14604 PyObject *resultobj;
14605 wxDC *arg1 = (wxDC *) 0 ;
14606 double *arg2 = (double *) 0 ;
14607 double *arg3 = (double *) 0 ;
14608 double temp2 ;
14609 double temp3 ;
14610 PyObject * obj0 = 0 ;
14611 char *kwnames[] = {
14612 (char *) "self", NULL
14613 };
14614
14615 arg2 = &temp2;
14616 arg3 = &temp3;
14617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14620 {
14621 PyThreadState* __tstate = wxPyBeginAllowThreads();
14622 (arg1)->GetLogicalScale(arg2,arg3);
14623
14624 wxPyEndAllowThreads(__tstate);
14625 if (PyErr_Occurred()) SWIG_fail;
14626 }
14627 Py_INCREF(Py_None); resultobj = Py_None;
14628 {
14629 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14630 resultobj = t_output_helper(resultobj,o);
14631 }
14632 {
14633 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14634 resultobj = t_output_helper(resultobj,o);
14635 }
14636 return resultobj;
14637 fail:
14638 return NULL;
14639 }
14640
14641
14642 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14643 PyObject *resultobj;
14644 wxDC *arg1 = (wxDC *) 0 ;
14645 double arg2 ;
14646 double arg3 ;
14647 PyObject * obj0 = 0 ;
14648 PyObject * obj1 = 0 ;
14649 PyObject * obj2 = 0 ;
14650 char *kwnames[] = {
14651 (char *) "self",(char *) "x",(char *) "y", NULL
14652 };
14653
14654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14657 arg2 = (double) SWIG_AsDouble(obj1);
14658 if (PyErr_Occurred()) SWIG_fail;
14659 arg3 = (double) SWIG_AsDouble(obj2);
14660 if (PyErr_Occurred()) SWIG_fail;
14661 {
14662 PyThreadState* __tstate = wxPyBeginAllowThreads();
14663 (arg1)->SetLogicalScale(arg2,arg3);
14664
14665 wxPyEndAllowThreads(__tstate);
14666 if (PyErr_Occurred()) SWIG_fail;
14667 }
14668 Py_INCREF(Py_None); resultobj = Py_None;
14669 return resultobj;
14670 fail:
14671 return NULL;
14672 }
14673
14674
14675 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14676 PyObject *resultobj;
14677 wxDC *arg1 = (wxDC *) 0 ;
14678 wxPoint result;
14679 PyObject * obj0 = 0 ;
14680 char *kwnames[] = {
14681 (char *) "self", NULL
14682 };
14683
14684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14687 {
14688 PyThreadState* __tstate = wxPyBeginAllowThreads();
14689 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14690
14691 wxPyEndAllowThreads(__tstate);
14692 if (PyErr_Occurred()) SWIG_fail;
14693 }
14694 {
14695 wxPoint * resultptr;
14696 resultptr = new wxPoint((wxPoint &) result);
14697 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14698 }
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14706 PyObject *resultobj;
14707 wxDC *arg1 = (wxDC *) 0 ;
14708 int *arg2 = (int *) 0 ;
14709 int *arg3 = (int *) 0 ;
14710 int temp2 ;
14711 int temp3 ;
14712 PyObject * obj0 = 0 ;
14713 char *kwnames[] = {
14714 (char *) "self", NULL
14715 };
14716
14717 arg2 = &temp2;
14718 arg3 = &temp3;
14719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14722 {
14723 PyThreadState* __tstate = wxPyBeginAllowThreads();
14724 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14725
14726 wxPyEndAllowThreads(__tstate);
14727 if (PyErr_Occurred()) SWIG_fail;
14728 }
14729 Py_INCREF(Py_None); resultobj = Py_None;
14730 {
14731 PyObject *o = PyInt_FromLong((long) (*arg2));
14732 resultobj = t_output_helper(resultobj,o);
14733 }
14734 {
14735 PyObject *o = PyInt_FromLong((long) (*arg3));
14736 resultobj = t_output_helper(resultobj,o);
14737 }
14738 return resultobj;
14739 fail:
14740 return NULL;
14741 }
14742
14743
14744 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14745 PyObject *resultobj;
14746 wxDC *arg1 = (wxDC *) 0 ;
14747 int arg2 ;
14748 int arg3 ;
14749 PyObject * obj0 = 0 ;
14750 PyObject * obj1 = 0 ;
14751 PyObject * obj2 = 0 ;
14752 char *kwnames[] = {
14753 (char *) "self",(char *) "x",(char *) "y", NULL
14754 };
14755
14756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14759 arg2 = (int) SWIG_AsInt(obj1);
14760 if (PyErr_Occurred()) SWIG_fail;
14761 arg3 = (int) SWIG_AsInt(obj2);
14762 if (PyErr_Occurred()) SWIG_fail;
14763 {
14764 PyThreadState* __tstate = wxPyBeginAllowThreads();
14765 (arg1)->SetLogicalOrigin(arg2,arg3);
14766
14767 wxPyEndAllowThreads(__tstate);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
14770 Py_INCREF(Py_None); resultobj = Py_None;
14771 return resultobj;
14772 fail:
14773 return NULL;
14774 }
14775
14776
14777 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14778 PyObject *resultobj;
14779 wxDC *arg1 = (wxDC *) 0 ;
14780 wxPoint *arg2 = 0 ;
14781 wxPoint temp2 ;
14782 PyObject * obj0 = 0 ;
14783 PyObject * obj1 = 0 ;
14784 char *kwnames[] = {
14785 (char *) "self",(char *) "point", NULL
14786 };
14787
14788 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14789 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14790 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14791 {
14792 arg2 = &temp2;
14793 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14794 }
14795 {
14796 PyThreadState* __tstate = wxPyBeginAllowThreads();
14797 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14798
14799 wxPyEndAllowThreads(__tstate);
14800 if (PyErr_Occurred()) SWIG_fail;
14801 }
14802 Py_INCREF(Py_None); resultobj = Py_None;
14803 return resultobj;
14804 fail:
14805 return NULL;
14806 }
14807
14808
14809 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14810 PyObject *resultobj;
14811 wxDC *arg1 = (wxDC *) 0 ;
14812 wxPoint result;
14813 PyObject * obj0 = 0 ;
14814 char *kwnames[] = {
14815 (char *) "self", NULL
14816 };
14817
14818 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14819 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14820 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14824
14825 wxPyEndAllowThreads(__tstate);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 {
14829 wxPoint * resultptr;
14830 resultptr = new wxPoint((wxPoint &) result);
14831 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14832 }
14833 return resultobj;
14834 fail:
14835 return NULL;
14836 }
14837
14838
14839 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14840 PyObject *resultobj;
14841 wxDC *arg1 = (wxDC *) 0 ;
14842 int *arg2 = (int *) 0 ;
14843 int *arg3 = (int *) 0 ;
14844 int temp2 ;
14845 int temp3 ;
14846 PyObject * obj0 = 0 ;
14847 char *kwnames[] = {
14848 (char *) "self", NULL
14849 };
14850
14851 arg2 = &temp2;
14852 arg3 = &temp3;
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14859
14860 wxPyEndAllowThreads(__tstate);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 Py_INCREF(Py_None); resultobj = Py_None;
14864 {
14865 PyObject *o = PyInt_FromLong((long) (*arg2));
14866 resultobj = t_output_helper(resultobj,o);
14867 }
14868 {
14869 PyObject *o = PyInt_FromLong((long) (*arg3));
14870 resultobj = t_output_helper(resultobj,o);
14871 }
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14879 PyObject *resultobj;
14880 wxDC *arg1 = (wxDC *) 0 ;
14881 int arg2 ;
14882 int arg3 ;
14883 PyObject * obj0 = 0 ;
14884 PyObject * obj1 = 0 ;
14885 PyObject * obj2 = 0 ;
14886 char *kwnames[] = {
14887 (char *) "self",(char *) "x",(char *) "y", NULL
14888 };
14889
14890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14893 arg2 = (int) SWIG_AsInt(obj1);
14894 if (PyErr_Occurred()) SWIG_fail;
14895 arg3 = (int) SWIG_AsInt(obj2);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 {
14898 PyThreadState* __tstate = wxPyBeginAllowThreads();
14899 (arg1)->SetDeviceOrigin(arg2,arg3);
14900
14901 wxPyEndAllowThreads(__tstate);
14902 if (PyErr_Occurred()) SWIG_fail;
14903 }
14904 Py_INCREF(Py_None); resultobj = Py_None;
14905 return resultobj;
14906 fail:
14907 return NULL;
14908 }
14909
14910
14911 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14912 PyObject *resultobj;
14913 wxDC *arg1 = (wxDC *) 0 ;
14914 wxPoint *arg2 = 0 ;
14915 wxPoint temp2 ;
14916 PyObject * obj0 = 0 ;
14917 PyObject * obj1 = 0 ;
14918 char *kwnames[] = {
14919 (char *) "self",(char *) "point", NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14925 {
14926 arg2 = &temp2;
14927 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14928 }
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14932
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 Py_INCREF(Py_None); resultobj = Py_None;
14937 return resultobj;
14938 fail:
14939 return NULL;
14940 }
14941
14942
14943 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj;
14945 wxDC *arg1 = (wxDC *) 0 ;
14946 bool arg2 ;
14947 bool arg3 ;
14948 PyObject * obj0 = 0 ;
14949 PyObject * obj1 = 0 ;
14950 PyObject * obj2 = 0 ;
14951 char *kwnames[] = {
14952 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14953 };
14954
14955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14958 arg2 = (bool) SWIG_AsBool(obj1);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 arg3 = (bool) SWIG_AsBool(obj2);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 {
14963 PyThreadState* __tstate = wxPyBeginAllowThreads();
14964 (arg1)->SetAxisOrientation(arg2,arg3);
14965
14966 wxPyEndAllowThreads(__tstate);
14967 if (PyErr_Occurred()) SWIG_fail;
14968 }
14969 Py_INCREF(Py_None); resultobj = Py_None;
14970 return resultobj;
14971 fail:
14972 return NULL;
14973 }
14974
14975
14976 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14977 PyObject *resultobj;
14978 wxDC *arg1 = (wxDC *) 0 ;
14979 int result;
14980 PyObject * obj0 = 0 ;
14981 char *kwnames[] = {
14982 (char *) "self", NULL
14983 };
14984
14985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14991
14992 wxPyEndAllowThreads(__tstate);
14993 if (PyErr_Occurred()) SWIG_fail;
14994 }
14995 resultobj = SWIG_FromInt((int)result);
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15003 PyObject *resultobj;
15004 wxDC *arg1 = (wxDC *) 0 ;
15005 int arg2 ;
15006 PyObject * obj0 = 0 ;
15007 PyObject * obj1 = 0 ;
15008 char *kwnames[] = {
15009 (char *) "self",(char *) "function", NULL
15010 };
15011
15012 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15015 arg2 = (int) SWIG_AsInt(obj1);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 (arg1)->SetLogicalFunction(arg2);
15020
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 Py_INCREF(Py_None); resultobj = Py_None;
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj;
15033 wxDC *arg1 = (wxDC *) 0 ;
15034 bool arg2 ;
15035 PyObject * obj0 = 0 ;
15036 PyObject * obj1 = 0 ;
15037 char *kwnames[] = {
15038 (char *) "self",(char *) "opt", NULL
15039 };
15040
15041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15044 arg2 = (bool) SWIG_AsBool(obj1);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 {
15047 PyThreadState* __tstate = wxPyBeginAllowThreads();
15048 (arg1)->SetOptimization(arg2);
15049
15050 wxPyEndAllowThreads(__tstate);
15051 if (PyErr_Occurred()) SWIG_fail;
15052 }
15053 Py_INCREF(Py_None); resultobj = Py_None;
15054 return resultobj;
15055 fail:
15056 return NULL;
15057 }
15058
15059
15060 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15061 PyObject *resultobj;
15062 wxDC *arg1 = (wxDC *) 0 ;
15063 bool result;
15064 PyObject * obj0 = 0 ;
15065 char *kwnames[] = {
15066 (char *) "self", NULL
15067 };
15068
15069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15072 {
15073 PyThreadState* __tstate = wxPyBeginAllowThreads();
15074 result = (bool)(arg1)->GetOptimization();
15075
15076 wxPyEndAllowThreads(__tstate);
15077 if (PyErr_Occurred()) SWIG_fail;
15078 }
15079 {
15080 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj;
15090 wxDC *arg1 = (wxDC *) 0 ;
15091 int arg2 ;
15092 int arg3 ;
15093 PyObject * obj0 = 0 ;
15094 PyObject * obj1 = 0 ;
15095 PyObject * obj2 = 0 ;
15096 char *kwnames[] = {
15097 (char *) "self",(char *) "x",(char *) "y", NULL
15098 };
15099
15100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15103 arg2 = (int) SWIG_AsInt(obj1);
15104 if (PyErr_Occurred()) SWIG_fail;
15105 arg3 = (int) SWIG_AsInt(obj2);
15106 if (PyErr_Occurred()) SWIG_fail;
15107 {
15108 PyThreadState* __tstate = wxPyBeginAllowThreads();
15109 (arg1)->CalcBoundingBox(arg2,arg3);
15110
15111 wxPyEndAllowThreads(__tstate);
15112 if (PyErr_Occurred()) SWIG_fail;
15113 }
15114 Py_INCREF(Py_None); resultobj = Py_None;
15115 return resultobj;
15116 fail:
15117 return NULL;
15118 }
15119
15120
15121 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
15122 PyObject *resultobj;
15123 wxDC *arg1 = (wxDC *) 0 ;
15124 wxPoint *arg2 = 0 ;
15125 wxPoint temp2 ;
15126 PyObject * obj0 = 0 ;
15127 PyObject * obj1 = 0 ;
15128 char *kwnames[] = {
15129 (char *) "self",(char *) "point", NULL
15130 };
15131
15132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15135 {
15136 arg2 = &temp2;
15137 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15138 }
15139 {
15140 PyThreadState* __tstate = wxPyBeginAllowThreads();
15141 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15142
15143 wxPyEndAllowThreads(__tstate);
15144 if (PyErr_Occurred()) SWIG_fail;
15145 }
15146 Py_INCREF(Py_None); resultobj = Py_None;
15147 return resultobj;
15148 fail:
15149 return NULL;
15150 }
15151
15152
15153 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15154 PyObject *resultobj;
15155 wxDC *arg1 = (wxDC *) 0 ;
15156 PyObject * obj0 = 0 ;
15157 char *kwnames[] = {
15158 (char *) "self", NULL
15159 };
15160
15161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15164 {
15165 PyThreadState* __tstate = wxPyBeginAllowThreads();
15166 (arg1)->ResetBoundingBox();
15167
15168 wxPyEndAllowThreads(__tstate);
15169 if (PyErr_Occurred()) SWIG_fail;
15170 }
15171 Py_INCREF(Py_None); resultobj = Py_None;
15172 return resultobj;
15173 fail:
15174 return NULL;
15175 }
15176
15177
15178 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj;
15180 wxDC *arg1 = (wxDC *) 0 ;
15181 int result;
15182 PyObject * obj0 = 0 ;
15183 char *kwnames[] = {
15184 (char *) "self", NULL
15185 };
15186
15187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15190 {
15191 PyThreadState* __tstate = wxPyBeginAllowThreads();
15192 result = (int)((wxDC const *)arg1)->MinX();
15193
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 resultobj = SWIG_FromInt((int)result);
15198 return resultobj;
15199 fail:
15200 return NULL;
15201 }
15202
15203
15204 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15205 PyObject *resultobj;
15206 wxDC *arg1 = (wxDC *) 0 ;
15207 int result;
15208 PyObject * obj0 = 0 ;
15209 char *kwnames[] = {
15210 (char *) "self", NULL
15211 };
15212
15213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15216 {
15217 PyThreadState* __tstate = wxPyBeginAllowThreads();
15218 result = (int)((wxDC const *)arg1)->MaxX();
15219
15220 wxPyEndAllowThreads(__tstate);
15221 if (PyErr_Occurred()) SWIG_fail;
15222 }
15223 resultobj = SWIG_FromInt((int)result);
15224 return resultobj;
15225 fail:
15226 return NULL;
15227 }
15228
15229
15230 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15231 PyObject *resultobj;
15232 wxDC *arg1 = (wxDC *) 0 ;
15233 int result;
15234 PyObject * obj0 = 0 ;
15235 char *kwnames[] = {
15236 (char *) "self", NULL
15237 };
15238
15239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15242 {
15243 PyThreadState* __tstate = wxPyBeginAllowThreads();
15244 result = (int)((wxDC const *)arg1)->MinY();
15245
15246 wxPyEndAllowThreads(__tstate);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 resultobj = SWIG_FromInt((int)result);
15250 return resultobj;
15251 fail:
15252 return NULL;
15253 }
15254
15255
15256 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15257 PyObject *resultobj;
15258 wxDC *arg1 = (wxDC *) 0 ;
15259 int result;
15260 PyObject * obj0 = 0 ;
15261 char *kwnames[] = {
15262 (char *) "self", NULL
15263 };
15264
15265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15268 {
15269 PyThreadState* __tstate = wxPyBeginAllowThreads();
15270 result = (int)((wxDC const *)arg1)->MaxY();
15271
15272 wxPyEndAllowThreads(__tstate);
15273 if (PyErr_Occurred()) SWIG_fail;
15274 }
15275 resultobj = SWIG_FromInt((int)result);
15276 return resultobj;
15277 fail:
15278 return NULL;
15279 }
15280
15281
15282 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15283 PyObject *resultobj;
15284 wxDC *arg1 = (wxDC *) 0 ;
15285 int *arg2 = (int *) 0 ;
15286 int *arg3 = (int *) 0 ;
15287 int *arg4 = (int *) 0 ;
15288 int *arg5 = (int *) 0 ;
15289 int temp2 ;
15290 int temp3 ;
15291 int temp4 ;
15292 int temp5 ;
15293 PyObject * obj0 = 0 ;
15294 char *kwnames[] = {
15295 (char *) "self", NULL
15296 };
15297
15298 arg2 = &temp2;
15299 arg3 = &temp3;
15300 arg4 = &temp4;
15301 arg5 = &temp5;
15302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15305 {
15306 PyThreadState* __tstate = wxPyBeginAllowThreads();
15307 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15308
15309 wxPyEndAllowThreads(__tstate);
15310 if (PyErr_Occurred()) SWIG_fail;
15311 }
15312 Py_INCREF(Py_None); resultobj = Py_None;
15313 {
15314 PyObject *o = PyInt_FromLong((long) (*arg2));
15315 resultobj = t_output_helper(resultobj,o);
15316 }
15317 {
15318 PyObject *o = PyInt_FromLong((long) (*arg3));
15319 resultobj = t_output_helper(resultobj,o);
15320 }
15321 {
15322 PyObject *o = PyInt_FromLong((long) (*arg4));
15323 resultobj = t_output_helper(resultobj,o);
15324 }
15325 {
15326 PyObject *o = PyInt_FromLong((long) (*arg5));
15327 resultobj = t_output_helper(resultobj,o);
15328 }
15329 return resultobj;
15330 fail:
15331 return NULL;
15332 }
15333
15334
15335 static PyObject *_wrap_DC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15336 PyObject *resultobj;
15337 wxDC *arg1 = (wxDC *) 0 ;
15338 long result;
15339 PyObject * obj0 = 0 ;
15340 char *kwnames[] = {
15341 (char *) "self", NULL
15342 };
15343
15344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
15345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 result = (long)(arg1)->GetHDC();
15350
15351 wxPyEndAllowThreads(__tstate);
15352 if (PyErr_Occurred()) SWIG_fail;
15353 }
15354 resultobj = SWIG_FromLong((long)result);
15355 return resultobj;
15356 fail:
15357 return NULL;
15358 }
15359
15360
15361 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15362 PyObject *resultobj;
15363 wxDC *arg1 = (wxDC *) 0 ;
15364 PyObject *arg2 = (PyObject *) 0 ;
15365 PyObject *arg3 = (PyObject *) 0 ;
15366 PyObject *arg4 = (PyObject *) 0 ;
15367 PyObject *result;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 PyObject * obj2 = 0 ;
15371 PyObject * obj3 = 0 ;
15372 char *kwnames[] = {
15373 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15374 };
15375
15376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15379 arg2 = obj1;
15380 arg3 = obj2;
15381 arg4 = obj3;
15382 {
15383 PyThreadState* __tstate = wxPyBeginAllowThreads();
15384 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15385
15386 wxPyEndAllowThreads(__tstate);
15387 if (PyErr_Occurred()) SWIG_fail;
15388 }
15389 resultobj = result;
15390 return resultobj;
15391 fail:
15392 return NULL;
15393 }
15394
15395
15396 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15397 PyObject *resultobj;
15398 wxDC *arg1 = (wxDC *) 0 ;
15399 PyObject *arg2 = (PyObject *) 0 ;
15400 PyObject *arg3 = (PyObject *) 0 ;
15401 PyObject *arg4 = (PyObject *) 0 ;
15402 PyObject *result;
15403 PyObject * obj0 = 0 ;
15404 PyObject * obj1 = 0 ;
15405 PyObject * obj2 = 0 ;
15406 PyObject * obj3 = 0 ;
15407 char *kwnames[] = {
15408 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15409 };
15410
15411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15414 arg2 = obj1;
15415 arg3 = obj2;
15416 arg4 = obj3;
15417 {
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = result;
15425 return resultobj;
15426 fail:
15427 return NULL;
15428 }
15429
15430
15431 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj;
15433 wxDC *arg1 = (wxDC *) 0 ;
15434 PyObject *arg2 = (PyObject *) 0 ;
15435 PyObject *arg3 = (PyObject *) 0 ;
15436 PyObject *arg4 = (PyObject *) 0 ;
15437 PyObject *result;
15438 PyObject * obj0 = 0 ;
15439 PyObject * obj1 = 0 ;
15440 PyObject * obj2 = 0 ;
15441 PyObject * obj3 = 0 ;
15442 char *kwnames[] = {
15443 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15444 };
15445
15446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15449 arg2 = obj1;
15450 arg3 = obj2;
15451 arg4 = obj3;
15452 {
15453 PyThreadState* __tstate = wxPyBeginAllowThreads();
15454 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15455
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 resultobj = result;
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj;
15468 wxDC *arg1 = (wxDC *) 0 ;
15469 PyObject *arg2 = (PyObject *) 0 ;
15470 PyObject *arg3 = (PyObject *) 0 ;
15471 PyObject *arg4 = (PyObject *) 0 ;
15472 PyObject *result;
15473 PyObject * obj0 = 0 ;
15474 PyObject * obj1 = 0 ;
15475 PyObject * obj2 = 0 ;
15476 PyObject * obj3 = 0 ;
15477 char *kwnames[] = {
15478 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15479 };
15480
15481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15484 arg2 = obj1;
15485 arg3 = obj2;
15486 arg4 = obj3;
15487 {
15488 PyThreadState* __tstate = wxPyBeginAllowThreads();
15489 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15490
15491 wxPyEndAllowThreads(__tstate);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 }
15494 resultobj = result;
15495 return resultobj;
15496 fail:
15497 return NULL;
15498 }
15499
15500
15501 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15502 PyObject *resultobj;
15503 wxDC *arg1 = (wxDC *) 0 ;
15504 PyObject *arg2 = (PyObject *) 0 ;
15505 PyObject *arg3 = (PyObject *) 0 ;
15506 PyObject *arg4 = (PyObject *) 0 ;
15507 PyObject *result;
15508 PyObject * obj0 = 0 ;
15509 PyObject * obj1 = 0 ;
15510 PyObject * obj2 = 0 ;
15511 PyObject * obj3 = 0 ;
15512 char *kwnames[] = {
15513 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15514 };
15515
15516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15519 arg2 = obj1;
15520 arg3 = obj2;
15521 arg4 = obj3;
15522 {
15523 PyThreadState* __tstate = wxPyBeginAllowThreads();
15524 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15525
15526 wxPyEndAllowThreads(__tstate);
15527 if (PyErr_Occurred()) SWIG_fail;
15528 }
15529 resultobj = result;
15530 return resultobj;
15531 fail:
15532 return NULL;
15533 }
15534
15535
15536 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15537 PyObject *resultobj;
15538 wxDC *arg1 = (wxDC *) 0 ;
15539 PyObject *arg2 = (PyObject *) 0 ;
15540 PyObject *arg3 = (PyObject *) 0 ;
15541 PyObject *arg4 = (PyObject *) 0 ;
15542 PyObject *arg5 = (PyObject *) 0 ;
15543 PyObject *result;
15544 PyObject * obj0 = 0 ;
15545 PyObject * obj1 = 0 ;
15546 PyObject * obj2 = 0 ;
15547 PyObject * obj3 = 0 ;
15548 PyObject * obj4 = 0 ;
15549 char *kwnames[] = {
15550 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15551 };
15552
15553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15556 arg2 = obj1;
15557 arg3 = obj2;
15558 arg4 = obj3;
15559 arg5 = obj4;
15560 {
15561 PyThreadState* __tstate = wxPyBeginAllowThreads();
15562 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15563
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = result;
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15575 PyObject *obj;
15576 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15577 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15578 Py_INCREF(obj);
15579 return Py_BuildValue((char *)"");
15580 }
15581 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15582 PyObject *resultobj;
15583 wxMemoryDC *result;
15584 char *kwnames[] = {
15585 NULL
15586 };
15587
15588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15589 {
15590 if (!wxPyCheckForApp()) SWIG_fail;
15591 PyThreadState* __tstate = wxPyBeginAllowThreads();
15592 result = (wxMemoryDC *)new wxMemoryDC();
15593
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15598 return resultobj;
15599 fail:
15600 return NULL;
15601 }
15602
15603
15604 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj;
15606 wxDC *arg1 = (wxDC *) 0 ;
15607 wxMemoryDC *result;
15608 PyObject * obj0 = 0 ;
15609 char *kwnames[] = {
15610 (char *) "oldDC", NULL
15611 };
15612
15613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15616 {
15617 if (!wxPyCheckForApp()) SWIG_fail;
15618 PyThreadState* __tstate = wxPyBeginAllowThreads();
15619 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15620
15621 wxPyEndAllowThreads(__tstate);
15622 if (PyErr_Occurred()) SWIG_fail;
15623 }
15624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15625 return resultobj;
15626 fail:
15627 return NULL;
15628 }
15629
15630
15631 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15632 PyObject *resultobj;
15633 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15634 wxBitmap *arg2 = 0 ;
15635 PyObject * obj0 = 0 ;
15636 PyObject * obj1 = 0 ;
15637 char *kwnames[] = {
15638 (char *) "self",(char *) "bitmap", NULL
15639 };
15640
15641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15644 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15645 SWIG_POINTER_EXCEPTION | 0)) == -1)
15646 SWIG_fail;
15647 if (arg2 == NULL) {
15648 PyErr_SetString(PyExc_TypeError,"null reference");
15649 SWIG_fail;
15650 }
15651 {
15652 PyThreadState* __tstate = wxPyBeginAllowThreads();
15653 (arg1)->SelectObject((wxBitmap const &)*arg2);
15654
15655 wxPyEndAllowThreads(__tstate);
15656 if (PyErr_Occurred()) SWIG_fail;
15657 }
15658 Py_INCREF(Py_None); resultobj = Py_None;
15659 return resultobj;
15660 fail:
15661 return NULL;
15662 }
15663
15664
15665 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15666 PyObject *obj;
15667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15668 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15669 Py_INCREF(obj);
15670 return Py_BuildValue((char *)"");
15671 }
15672 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15673 PyObject *resultobj;
15674 wxDC *arg1 = (wxDC *) 0 ;
15675 wxBitmap *arg2 = 0 ;
15676 wxBufferedDC *result;
15677 PyObject * obj0 = 0 ;
15678 PyObject * obj1 = 0 ;
15679
15680 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15683 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15684 SWIG_POINTER_EXCEPTION | 0)) == -1)
15685 SWIG_fail;
15686 if (arg2 == NULL) {
15687 PyErr_SetString(PyExc_TypeError,"null reference");
15688 SWIG_fail;
15689 }
15690 {
15691 if (!wxPyCheckForApp()) SWIG_fail;
15692 PyThreadState* __tstate = wxPyBeginAllowThreads();
15693 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15694
15695 wxPyEndAllowThreads(__tstate);
15696 if (PyErr_Occurred()) SWIG_fail;
15697 }
15698 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15699 return resultobj;
15700 fail:
15701 return NULL;
15702 }
15703
15704
15705 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15706 PyObject *resultobj;
15707 wxDC *arg1 = (wxDC *) 0 ;
15708 wxSize *arg2 = 0 ;
15709 wxBufferedDC *result;
15710 wxSize temp2 ;
15711 PyObject * obj0 = 0 ;
15712 PyObject * obj1 = 0 ;
15713
15714 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15717 {
15718 arg2 = &temp2;
15719 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15720 }
15721 {
15722 if (!wxPyCheckForApp()) SWIG_fail;
15723 PyThreadState* __tstate = wxPyBeginAllowThreads();
15724 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15725
15726 wxPyEndAllowThreads(__tstate);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15730 return resultobj;
15731 fail:
15732 return NULL;
15733 }
15734
15735
15736 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15737 int argc;
15738 PyObject *argv[3];
15739 int ii;
15740
15741 argc = PyObject_Length(args);
15742 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15743 argv[ii] = PyTuple_GetItem(args,ii);
15744 }
15745 if (argc == 2) {
15746 int _v;
15747 {
15748 void *ptr;
15749 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15750 _v = 0;
15751 PyErr_Clear();
15752 } else {
15753 _v = 1;
15754 }
15755 }
15756 if (_v) {
15757 {
15758 void *ptr;
15759 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15760 _v = 0;
15761 PyErr_Clear();
15762 } else {
15763 _v = 1;
15764 }
15765 }
15766 if (_v) {
15767 return _wrap_new_BufferedDC__SWIG_0(self,args);
15768 }
15769 }
15770 }
15771 if (argc == 2) {
15772 int _v;
15773 {
15774 void *ptr;
15775 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15776 _v = 0;
15777 PyErr_Clear();
15778 } else {
15779 _v = 1;
15780 }
15781 }
15782 if (_v) {
15783 {
15784 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15785 }
15786 if (_v) {
15787 return _wrap_new_BufferedDC__SWIG_1(self,args);
15788 }
15789 }
15790 }
15791
15792 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15793 return NULL;
15794 }
15795
15796
15797 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15798 PyObject *resultobj;
15799 wxDC *arg1 = (wxDC *) 0 ;
15800 wxSize *arg2 = 0 ;
15801 wxBufferedDC *result;
15802 wxSize temp2 ;
15803 PyObject * obj0 = 0 ;
15804 PyObject * obj1 = 0 ;
15805
15806 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15809 {
15810 arg2 = &temp2;
15811 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15812 }
15813 {
15814 if (!wxPyCheckForApp()) SWIG_fail;
15815 PyThreadState* __tstate = wxPyBeginAllowThreads();
15816 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15817
15818 wxPyEndAllowThreads(__tstate);
15819 if (PyErr_Occurred()) SWIG_fail;
15820 }
15821 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15822 return resultobj;
15823 fail:
15824 return NULL;
15825 }
15826
15827
15828 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15829 PyObject *resultobj;
15830 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15831 PyObject * obj0 = 0 ;
15832 char *kwnames[] = {
15833 (char *) "self", NULL
15834 };
15835
15836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15839 {
15840 PyThreadState* __tstate = wxPyBeginAllowThreads();
15841 delete arg1;
15842
15843 wxPyEndAllowThreads(__tstate);
15844 if (PyErr_Occurred()) SWIG_fail;
15845 }
15846 Py_INCREF(Py_None); resultobj = Py_None;
15847 return resultobj;
15848 fail:
15849 return NULL;
15850 }
15851
15852
15853 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15854 PyObject *resultobj;
15855 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15856 PyObject * obj0 = 0 ;
15857 char *kwnames[] = {
15858 (char *) "self", NULL
15859 };
15860
15861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 (arg1)->UnMask();
15867
15868 wxPyEndAllowThreads(__tstate);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 }
15871 Py_INCREF(Py_None); resultobj = Py_None;
15872 return resultobj;
15873 fail:
15874 return NULL;
15875 }
15876
15877
15878 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15879 PyObject *obj;
15880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15881 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15882 Py_INCREF(obj);
15883 return Py_BuildValue((char *)"");
15884 }
15885 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj;
15887 wxWindow *arg1 = (wxWindow *) 0 ;
15888 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15889 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15890 wxBufferedPaintDC *result;
15891 PyObject * obj0 = 0 ;
15892 PyObject * obj1 = 0 ;
15893 char *kwnames[] = {
15894 (char *) "window",(char *) "buffer", NULL
15895 };
15896
15897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15900 if (obj1) {
15901 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15902 SWIG_POINTER_EXCEPTION | 0)) == -1)
15903 SWIG_fail;
15904 if (arg2 == NULL) {
15905 PyErr_SetString(PyExc_TypeError,"null reference");
15906 SWIG_fail;
15907 }
15908 }
15909 {
15910 if (!wxPyCheckForApp()) SWIG_fail;
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15913
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15918 return resultobj;
15919 fail:
15920 return NULL;
15921 }
15922
15923
15924 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15925 PyObject *obj;
15926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15927 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15928 Py_INCREF(obj);
15929 return Py_BuildValue((char *)"");
15930 }
15931 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj;
15933 wxScreenDC *result;
15934 char *kwnames[] = {
15935 NULL
15936 };
15937
15938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15939 {
15940 if (!wxPyCheckForApp()) SWIG_fail;
15941 PyThreadState* __tstate = wxPyBeginAllowThreads();
15942 result = (wxScreenDC *)new wxScreenDC();
15943
15944 wxPyEndAllowThreads(__tstate);
15945 if (PyErr_Occurred()) SWIG_fail;
15946 }
15947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15948 return resultobj;
15949 fail:
15950 return NULL;
15951 }
15952
15953
15954 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15955 PyObject *resultobj;
15956 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15957 wxWindow *arg2 = (wxWindow *) 0 ;
15958 bool result;
15959 PyObject * obj0 = 0 ;
15960 PyObject * obj1 = 0 ;
15961 char *kwnames[] = {
15962 (char *) "self",(char *) "window", NULL
15963 };
15964
15965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15968 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15970 {
15971 PyThreadState* __tstate = wxPyBeginAllowThreads();
15972 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15973
15974 wxPyEndAllowThreads(__tstate);
15975 if (PyErr_Occurred()) SWIG_fail;
15976 }
15977 {
15978 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15979 }
15980 return resultobj;
15981 fail:
15982 return NULL;
15983 }
15984
15985
15986 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15987 PyObject *resultobj;
15988 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15989 wxRect *arg2 = (wxRect *) NULL ;
15990 bool result;
15991 PyObject * obj0 = 0 ;
15992 PyObject * obj1 = 0 ;
15993 char *kwnames[] = {
15994 (char *) "self",(char *) "rect", NULL
15995 };
15996
15997 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15998 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15999 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16000 if (obj1) {
16001 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16003 }
16004 {
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16007
16008 wxPyEndAllowThreads(__tstate);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 {
16012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16013 }
16014 return resultobj;
16015 fail:
16016 return NULL;
16017 }
16018
16019
16020 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj;
16022 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16023 bool result;
16024 PyObject * obj0 = 0 ;
16025 char *kwnames[] = {
16026 (char *) "self", NULL
16027 };
16028
16029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16032 {
16033 PyThreadState* __tstate = wxPyBeginAllowThreads();
16034 result = (bool)(arg1)->EndDrawingOnTop();
16035
16036 wxPyEndAllowThreads(__tstate);
16037 if (PyErr_Occurred()) SWIG_fail;
16038 }
16039 {
16040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16041 }
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
16049 PyObject *obj;
16050 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16051 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16052 Py_INCREF(obj);
16053 return Py_BuildValue((char *)"");
16054 }
16055 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16056 PyObject *resultobj;
16057 wxWindow *arg1 = (wxWindow *) 0 ;
16058 wxClientDC *result;
16059 PyObject * obj0 = 0 ;
16060 char *kwnames[] = {
16061 (char *) "win", NULL
16062 };
16063
16064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16067 {
16068 if (!wxPyCheckForApp()) SWIG_fail;
16069 PyThreadState* __tstate = wxPyBeginAllowThreads();
16070 result = (wxClientDC *)new wxClientDC(arg1);
16071
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16076 return resultobj;
16077 fail:
16078 return NULL;
16079 }
16080
16081
16082 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16083 PyObject *obj;
16084 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16085 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16086 Py_INCREF(obj);
16087 return Py_BuildValue((char *)"");
16088 }
16089 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16090 PyObject *resultobj;
16091 wxWindow *arg1 = (wxWindow *) 0 ;
16092 wxPaintDC *result;
16093 PyObject * obj0 = 0 ;
16094 char *kwnames[] = {
16095 (char *) "win", NULL
16096 };
16097
16098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16101 {
16102 if (!wxPyCheckForApp()) SWIG_fail;
16103 PyThreadState* __tstate = wxPyBeginAllowThreads();
16104 result = (wxPaintDC *)new wxPaintDC(arg1);
16105
16106 wxPyEndAllowThreads(__tstate);
16107 if (PyErr_Occurred()) SWIG_fail;
16108 }
16109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16110 return resultobj;
16111 fail:
16112 return NULL;
16113 }
16114
16115
16116 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16117 PyObject *obj;
16118 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16119 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16120 Py_INCREF(obj);
16121 return Py_BuildValue((char *)"");
16122 }
16123 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16124 PyObject *resultobj;
16125 wxWindow *arg1 = (wxWindow *) 0 ;
16126 wxWindowDC *result;
16127 PyObject * obj0 = 0 ;
16128 char *kwnames[] = {
16129 (char *) "win", NULL
16130 };
16131
16132 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16133 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16134 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16135 {
16136 if (!wxPyCheckForApp()) SWIG_fail;
16137 PyThreadState* __tstate = wxPyBeginAllowThreads();
16138 result = (wxWindowDC *)new wxWindowDC(arg1);
16139
16140 wxPyEndAllowThreads(__tstate);
16141 if (PyErr_Occurred()) SWIG_fail;
16142 }
16143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16144 return resultobj;
16145 fail:
16146 return NULL;
16147 }
16148
16149
16150 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16151 PyObject *obj;
16152 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16153 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16154 Py_INCREF(obj);
16155 return Py_BuildValue((char *)"");
16156 }
16157 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16158 PyObject *resultobj;
16159 wxDC *arg1 = 0 ;
16160 bool arg2 ;
16161 wxMirrorDC *result;
16162 PyObject * obj0 = 0 ;
16163 PyObject * obj1 = 0 ;
16164 char *kwnames[] = {
16165 (char *) "dc",(char *) "mirror", NULL
16166 };
16167
16168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16170 SWIG_POINTER_EXCEPTION | 0)) == -1)
16171 SWIG_fail;
16172 if (arg1 == NULL) {
16173 PyErr_SetString(PyExc_TypeError,"null reference");
16174 SWIG_fail;
16175 }
16176 arg2 = (bool) SWIG_AsBool(obj1);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 {
16179 if (!wxPyCheckForApp()) SWIG_fail;
16180 PyThreadState* __tstate = wxPyBeginAllowThreads();
16181 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16182
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16187 return resultobj;
16188 fail:
16189 return NULL;
16190 }
16191
16192
16193 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16194 PyObject *obj;
16195 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16196 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16197 Py_INCREF(obj);
16198 return Py_BuildValue((char *)"");
16199 }
16200 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16201 PyObject *resultobj;
16202 wxPrintData *arg1 = 0 ;
16203 wxPostScriptDC *result;
16204 PyObject * obj0 = 0 ;
16205 char *kwnames[] = {
16206 (char *) "printData", NULL
16207 };
16208
16209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16211 SWIG_POINTER_EXCEPTION | 0)) == -1)
16212 SWIG_fail;
16213 if (arg1 == NULL) {
16214 PyErr_SetString(PyExc_TypeError,"null reference");
16215 SWIG_fail;
16216 }
16217 {
16218 if (!wxPyCheckForApp()) SWIG_fail;
16219 PyThreadState* __tstate = wxPyBeginAllowThreads();
16220 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16221
16222 wxPyEndAllowThreads(__tstate);
16223 if (PyErr_Occurred()) SWIG_fail;
16224 }
16225 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16226 return resultobj;
16227 fail:
16228 return NULL;
16229 }
16230
16231
16232 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16233 PyObject *resultobj;
16234 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16235 wxPrintData *result;
16236 PyObject * obj0 = 0 ;
16237 char *kwnames[] = {
16238 (char *) "self", NULL
16239 };
16240
16241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16244 {
16245 PyThreadState* __tstate = wxPyBeginAllowThreads();
16246 {
16247 wxPrintData &_result_ref = (arg1)->GetPrintData();
16248 result = (wxPrintData *) &_result_ref;
16249 }
16250
16251 wxPyEndAllowThreads(__tstate);
16252 if (PyErr_Occurred()) SWIG_fail;
16253 }
16254 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16255 return resultobj;
16256 fail:
16257 return NULL;
16258 }
16259
16260
16261 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16262 PyObject *resultobj;
16263 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16264 wxPrintData *arg2 = 0 ;
16265 PyObject * obj0 = 0 ;
16266 PyObject * obj1 = 0 ;
16267 char *kwnames[] = {
16268 (char *) "self",(char *) "data", NULL
16269 };
16270
16271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16275 SWIG_POINTER_EXCEPTION | 0)) == -1)
16276 SWIG_fail;
16277 if (arg2 == NULL) {
16278 PyErr_SetString(PyExc_TypeError,"null reference");
16279 SWIG_fail;
16280 }
16281 {
16282 PyThreadState* __tstate = wxPyBeginAllowThreads();
16283 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16284
16285 wxPyEndAllowThreads(__tstate);
16286 if (PyErr_Occurred()) SWIG_fail;
16287 }
16288 Py_INCREF(Py_None); resultobj = Py_None;
16289 return resultobj;
16290 fail:
16291 return NULL;
16292 }
16293
16294
16295 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16296 PyObject *resultobj;
16297 int arg1 ;
16298 PyObject * obj0 = 0 ;
16299 char *kwnames[] = {
16300 (char *) "ppi", NULL
16301 };
16302
16303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16304 arg1 = (int) SWIG_AsInt(obj0);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 {
16307 PyThreadState* __tstate = wxPyBeginAllowThreads();
16308 wxPostScriptDC::SetResolution(arg1);
16309
16310 wxPyEndAllowThreads(__tstate);
16311 if (PyErr_Occurred()) SWIG_fail;
16312 }
16313 Py_INCREF(Py_None); resultobj = Py_None;
16314 return resultobj;
16315 fail:
16316 return NULL;
16317 }
16318
16319
16320 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16321 PyObject *resultobj;
16322 int result;
16323 char *kwnames[] = {
16324 NULL
16325 };
16326
16327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16328 {
16329 PyThreadState* __tstate = wxPyBeginAllowThreads();
16330 result = (int)wxPostScriptDC::GetResolution();
16331
16332 wxPyEndAllowThreads(__tstate);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 }
16335 resultobj = SWIG_FromInt((int)result);
16336 return resultobj;
16337 fail:
16338 return NULL;
16339 }
16340
16341
16342 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16343 PyObject *obj;
16344 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16345 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16346 Py_INCREF(obj);
16347 return Py_BuildValue((char *)"");
16348 }
16349 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj;
16351 wxString const &arg1_defvalue = wxPyEmptyString ;
16352 wxString *arg1 = (wxString *) &arg1_defvalue ;
16353 wxMetaFile *result;
16354 bool temp1 = False ;
16355 PyObject * obj0 = 0 ;
16356 char *kwnames[] = {
16357 (char *) "filename", NULL
16358 };
16359
16360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16361 if (obj0) {
16362 {
16363 arg1 = wxString_in_helper(obj0);
16364 if (arg1 == NULL) SWIG_fail;
16365 temp1 = True;
16366 }
16367 }
16368 {
16369 if (!wxPyCheckForApp()) SWIG_fail;
16370 PyThreadState* __tstate = wxPyBeginAllowThreads();
16371 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16372
16373 wxPyEndAllowThreads(__tstate);
16374 if (PyErr_Occurred()) SWIG_fail;
16375 }
16376 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16377 {
16378 if (temp1)
16379 delete arg1;
16380 }
16381 return resultobj;
16382 fail:
16383 {
16384 if (temp1)
16385 delete arg1;
16386 }
16387 return NULL;
16388 }
16389
16390
16391 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16392 PyObject *resultobj;
16393 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16394 PyObject * obj0 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "self", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 delete arg1;
16405
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 Py_INCREF(Py_None); resultobj = Py_None;
16410 return resultobj;
16411 fail:
16412 return NULL;
16413 }
16414
16415
16416 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16417 PyObject *resultobj;
16418 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16419 bool result;
16420 PyObject * obj0 = 0 ;
16421 char *kwnames[] = {
16422 (char *) "self", NULL
16423 };
16424
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16428 {
16429 PyThreadState* __tstate = wxPyBeginAllowThreads();
16430 result = (bool)(arg1)->Ok();
16431
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 {
16436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16437 }
16438 return resultobj;
16439 fail:
16440 return NULL;
16441 }
16442
16443
16444 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16445 PyObject *resultobj;
16446 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16447 int arg2 = (int) 0 ;
16448 int arg3 = (int) 0 ;
16449 bool result;
16450 PyObject * obj0 = 0 ;
16451 PyObject * obj1 = 0 ;
16452 PyObject * obj2 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self",(char *) "width",(char *) "height", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 if (obj1) {
16461 arg2 = (int) SWIG_AsInt(obj1);
16462 if (PyErr_Occurred()) SWIG_fail;
16463 }
16464 if (obj2) {
16465 arg3 = (int) SWIG_AsInt(obj2);
16466 if (PyErr_Occurred()) SWIG_fail;
16467 }
16468 {
16469 PyThreadState* __tstate = wxPyBeginAllowThreads();
16470 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16471
16472 wxPyEndAllowThreads(__tstate);
16473 if (PyErr_Occurred()) SWIG_fail;
16474 }
16475 {
16476 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16477 }
16478 return resultobj;
16479 fail:
16480 return NULL;
16481 }
16482
16483
16484 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16485 PyObject *resultobj;
16486 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16487 wxSize result;
16488 PyObject * obj0 = 0 ;
16489 char *kwnames[] = {
16490 (char *) "self", NULL
16491 };
16492
16493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16496 {
16497 PyThreadState* __tstate = wxPyBeginAllowThreads();
16498 result = (arg1)->GetSize();
16499
16500 wxPyEndAllowThreads(__tstate);
16501 if (PyErr_Occurred()) SWIG_fail;
16502 }
16503 {
16504 wxSize * resultptr;
16505 resultptr = new wxSize((wxSize &) result);
16506 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16507 }
16508 return resultobj;
16509 fail:
16510 return NULL;
16511 }
16512
16513
16514 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16515 PyObject *resultobj;
16516 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16517 int result;
16518 PyObject * obj0 = 0 ;
16519 char *kwnames[] = {
16520 (char *) "self", NULL
16521 };
16522
16523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16526 {
16527 PyThreadState* __tstate = wxPyBeginAllowThreads();
16528 result = (int)(arg1)->GetWidth();
16529
16530 wxPyEndAllowThreads(__tstate);
16531 if (PyErr_Occurred()) SWIG_fail;
16532 }
16533 resultobj = SWIG_FromInt((int)result);
16534 return resultobj;
16535 fail:
16536 return NULL;
16537 }
16538
16539
16540 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16541 PyObject *resultobj;
16542 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16543 int result;
16544 PyObject * obj0 = 0 ;
16545 char *kwnames[] = {
16546 (char *) "self", NULL
16547 };
16548
16549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16552 {
16553 PyThreadState* __tstate = wxPyBeginAllowThreads();
16554 result = (int)(arg1)->GetHeight();
16555
16556 wxPyEndAllowThreads(__tstate);
16557 if (PyErr_Occurred()) SWIG_fail;
16558 }
16559 resultobj = SWIG_FromInt((int)result);
16560 return resultobj;
16561 fail:
16562 return NULL;
16563 }
16564
16565
16566 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16567 PyObject *resultobj;
16568 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16569 wxString *result;
16570 PyObject * obj0 = 0 ;
16571 char *kwnames[] = {
16572 (char *) "self", NULL
16573 };
16574
16575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16578 {
16579 PyThreadState* __tstate = wxPyBeginAllowThreads();
16580 {
16581 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16582 result = (wxString *) &_result_ref;
16583 }
16584
16585 wxPyEndAllowThreads(__tstate);
16586 if (PyErr_Occurred()) SWIG_fail;
16587 }
16588 {
16589 #if wxUSE_UNICODE
16590 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16591 #else
16592 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16593 #endif
16594 }
16595 return resultobj;
16596 fail:
16597 return NULL;
16598 }
16599
16600
16601 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16602 PyObject *obj;
16603 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16604 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16605 Py_INCREF(obj);
16606 return Py_BuildValue((char *)"");
16607 }
16608 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16609 PyObject *resultobj;
16610 wxString const &arg1_defvalue = wxPyEmptyString ;
16611 wxString *arg1 = (wxString *) &arg1_defvalue ;
16612 int arg2 = (int) 0 ;
16613 int arg3 = (int) 0 ;
16614 wxString const &arg4_defvalue = wxPyEmptyString ;
16615 wxString *arg4 = (wxString *) &arg4_defvalue ;
16616 wxMetaFileDC *result;
16617 bool temp1 = False ;
16618 bool temp4 = False ;
16619 PyObject * obj0 = 0 ;
16620 PyObject * obj1 = 0 ;
16621 PyObject * obj2 = 0 ;
16622 PyObject * obj3 = 0 ;
16623 char *kwnames[] = {
16624 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16625 };
16626
16627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16628 if (obj0) {
16629 {
16630 arg1 = wxString_in_helper(obj0);
16631 if (arg1 == NULL) SWIG_fail;
16632 temp1 = True;
16633 }
16634 }
16635 if (obj1) {
16636 arg2 = (int) SWIG_AsInt(obj1);
16637 if (PyErr_Occurred()) SWIG_fail;
16638 }
16639 if (obj2) {
16640 arg3 = (int) SWIG_AsInt(obj2);
16641 if (PyErr_Occurred()) SWIG_fail;
16642 }
16643 if (obj3) {
16644 {
16645 arg4 = wxString_in_helper(obj3);
16646 if (arg4 == NULL) SWIG_fail;
16647 temp4 = True;
16648 }
16649 }
16650 {
16651 if (!wxPyCheckForApp()) SWIG_fail;
16652 PyThreadState* __tstate = wxPyBeginAllowThreads();
16653 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16654
16655 wxPyEndAllowThreads(__tstate);
16656 if (PyErr_Occurred()) SWIG_fail;
16657 }
16658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16659 {
16660 if (temp1)
16661 delete arg1;
16662 }
16663 {
16664 if (temp4)
16665 delete arg4;
16666 }
16667 return resultobj;
16668 fail:
16669 {
16670 if (temp1)
16671 delete arg1;
16672 }
16673 {
16674 if (temp4)
16675 delete arg4;
16676 }
16677 return NULL;
16678 }
16679
16680
16681 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16682 PyObject *resultobj;
16683 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16684 wxMetaFile *result;
16685 PyObject * obj0 = 0 ;
16686 char *kwnames[] = {
16687 (char *) "self", NULL
16688 };
16689
16690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16693 {
16694 PyThreadState* __tstate = wxPyBeginAllowThreads();
16695 result = (wxMetaFile *)(arg1)->Close();
16696
16697 wxPyEndAllowThreads(__tstate);
16698 if (PyErr_Occurred()) SWIG_fail;
16699 }
16700 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16701 return resultobj;
16702 fail:
16703 return NULL;
16704 }
16705
16706
16707 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16708 PyObject *obj;
16709 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16710 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16711 Py_INCREF(obj);
16712 return Py_BuildValue((char *)"");
16713 }
16714 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16715 PyObject *resultobj;
16716 wxPrintData *arg1 = 0 ;
16717 wxPrinterDC *result;
16718 PyObject * obj0 = 0 ;
16719 char *kwnames[] = {
16720 (char *) "printData", NULL
16721 };
16722
16723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16725 SWIG_POINTER_EXCEPTION | 0)) == -1)
16726 SWIG_fail;
16727 if (arg1 == NULL) {
16728 PyErr_SetString(PyExc_TypeError,"null reference");
16729 SWIG_fail;
16730 }
16731 {
16732 if (!wxPyCheckForApp()) SWIG_fail;
16733 PyThreadState* __tstate = wxPyBeginAllowThreads();
16734 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16735
16736 wxPyEndAllowThreads(__tstate);
16737 if (PyErr_Occurred()) SWIG_fail;
16738 }
16739 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16740 return resultobj;
16741 fail:
16742 return NULL;
16743 }
16744
16745
16746 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16747 PyObject *obj;
16748 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16749 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16750 Py_INCREF(obj);
16751 return Py_BuildValue((char *)"");
16752 }
16753 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16754 PyObject *resultobj;
16755 int arg1 ;
16756 int arg2 ;
16757 int arg3 = (int) True ;
16758 int arg4 = (int) 1 ;
16759 wxImageList *result;
16760 PyObject * obj0 = 0 ;
16761 PyObject * obj1 = 0 ;
16762 PyObject * obj2 = 0 ;
16763 PyObject * obj3 = 0 ;
16764 char *kwnames[] = {
16765 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16766 };
16767
16768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16769 arg1 = (int) SWIG_AsInt(obj0);
16770 if (PyErr_Occurred()) SWIG_fail;
16771 arg2 = (int) SWIG_AsInt(obj1);
16772 if (PyErr_Occurred()) SWIG_fail;
16773 if (obj2) {
16774 arg3 = (int) SWIG_AsInt(obj2);
16775 if (PyErr_Occurred()) SWIG_fail;
16776 }
16777 if (obj3) {
16778 arg4 = (int) SWIG_AsInt(obj3);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 {
16782 if (!wxPyCheckForApp()) SWIG_fail;
16783 PyThreadState* __tstate = wxPyBeginAllowThreads();
16784 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16785
16786 wxPyEndAllowThreads(__tstate);
16787 if (PyErr_Occurred()) SWIG_fail;
16788 }
16789 {
16790 resultobj = wxPyMake_wxObject(result);
16791 }
16792 return resultobj;
16793 fail:
16794 return NULL;
16795 }
16796
16797
16798 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16799 PyObject *resultobj;
16800 wxImageList *arg1 = (wxImageList *) 0 ;
16801 PyObject * obj0 = 0 ;
16802 char *kwnames[] = {
16803 (char *) "self", NULL
16804 };
16805
16806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16809 {
16810 PyThreadState* __tstate = wxPyBeginAllowThreads();
16811 delete arg1;
16812
16813 wxPyEndAllowThreads(__tstate);
16814 if (PyErr_Occurred()) SWIG_fail;
16815 }
16816 Py_INCREF(Py_None); resultobj = Py_None;
16817 return resultobj;
16818 fail:
16819 return NULL;
16820 }
16821
16822
16823 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16824 PyObject *resultobj;
16825 wxImageList *arg1 = (wxImageList *) 0 ;
16826 wxBitmap *arg2 = 0 ;
16827 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16828 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16829 int result;
16830 PyObject * obj0 = 0 ;
16831 PyObject * obj1 = 0 ;
16832 PyObject * obj2 = 0 ;
16833 char *kwnames[] = {
16834 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16835 };
16836
16837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16840 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16841 SWIG_POINTER_EXCEPTION | 0)) == -1)
16842 SWIG_fail;
16843 if (arg2 == NULL) {
16844 PyErr_SetString(PyExc_TypeError,"null reference");
16845 SWIG_fail;
16846 }
16847 if (obj2) {
16848 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16849 SWIG_POINTER_EXCEPTION | 0)) == -1)
16850 SWIG_fail;
16851 if (arg3 == NULL) {
16852 PyErr_SetString(PyExc_TypeError,"null reference");
16853 SWIG_fail;
16854 }
16855 }
16856 {
16857 PyThreadState* __tstate = wxPyBeginAllowThreads();
16858 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16859
16860 wxPyEndAllowThreads(__tstate);
16861 if (PyErr_Occurred()) SWIG_fail;
16862 }
16863 resultobj = SWIG_FromInt((int)result);
16864 return resultobj;
16865 fail:
16866 return NULL;
16867 }
16868
16869
16870 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16871 PyObject *resultobj;
16872 wxImageList *arg1 = (wxImageList *) 0 ;
16873 wxBitmap *arg2 = 0 ;
16874 wxColour *arg3 = 0 ;
16875 int result;
16876 wxColour temp3 ;
16877 PyObject * obj0 = 0 ;
16878 PyObject * obj1 = 0 ;
16879 PyObject * obj2 = 0 ;
16880 char *kwnames[] = {
16881 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16882 };
16883
16884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16887 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16888 SWIG_POINTER_EXCEPTION | 0)) == -1)
16889 SWIG_fail;
16890 if (arg2 == NULL) {
16891 PyErr_SetString(PyExc_TypeError,"null reference");
16892 SWIG_fail;
16893 }
16894 {
16895 arg3 = &temp3;
16896 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16897 }
16898 {
16899 PyThreadState* __tstate = wxPyBeginAllowThreads();
16900 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16901
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 resultobj = SWIG_FromInt((int)result);
16906 return resultobj;
16907 fail:
16908 return NULL;
16909 }
16910
16911
16912 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16913 PyObject *resultobj;
16914 wxImageList *arg1 = (wxImageList *) 0 ;
16915 wxIcon *arg2 = 0 ;
16916 int result;
16917 PyObject * obj0 = 0 ;
16918 PyObject * obj1 = 0 ;
16919 char *kwnames[] = {
16920 (char *) "self",(char *) "icon", NULL
16921 };
16922
16923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16926 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16927 SWIG_POINTER_EXCEPTION | 0)) == -1)
16928 SWIG_fail;
16929 if (arg2 == NULL) {
16930 PyErr_SetString(PyExc_TypeError,"null reference");
16931 SWIG_fail;
16932 }
16933 {
16934 PyThreadState* __tstate = wxPyBeginAllowThreads();
16935 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16936
16937 wxPyEndAllowThreads(__tstate);
16938 if (PyErr_Occurred()) SWIG_fail;
16939 }
16940 resultobj = SWIG_FromInt((int)result);
16941 return resultobj;
16942 fail:
16943 return NULL;
16944 }
16945
16946
16947 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16948 PyObject *resultobj;
16949 wxImageList *arg1 = (wxImageList *) 0 ;
16950 int arg2 ;
16951 wxBitmap *arg3 = 0 ;
16952 wxBitmap const &arg4_defvalue = wxNullBitmap ;
16953 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
16954 bool result;
16955 PyObject * obj0 = 0 ;
16956 PyObject * obj1 = 0 ;
16957 PyObject * obj2 = 0 ;
16958 PyObject * obj3 = 0 ;
16959 char *kwnames[] = {
16960 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
16961 };
16962
16963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16966 arg2 = (int) SWIG_AsInt(obj1);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16969 SWIG_POINTER_EXCEPTION | 0)) == -1)
16970 SWIG_fail;
16971 if (arg3 == NULL) {
16972 PyErr_SetString(PyExc_TypeError,"null reference");
16973 SWIG_fail;
16974 }
16975 if (obj3) {
16976 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
16977 SWIG_POINTER_EXCEPTION | 0)) == -1)
16978 SWIG_fail;
16979 if (arg4 == NULL) {
16980 PyErr_SetString(PyExc_TypeError,"null reference");
16981 SWIG_fail;
16982 }
16983 }
16984 {
16985 PyThreadState* __tstate = wxPyBeginAllowThreads();
16986 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
16987
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 {
16992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16993 }
16994 return resultobj;
16995 fail:
16996 return NULL;
16997 }
16998
16999
17000 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
17001 PyObject *resultobj;
17002 wxImageList *arg1 = (wxImageList *) 0 ;
17003 int arg2 ;
17004 wxDC *arg3 = 0 ;
17005 int arg4 ;
17006 int arg5 ;
17007 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
17008 bool arg7 = (bool) (bool)False ;
17009 bool result;
17010 PyObject * obj0 = 0 ;
17011 PyObject * obj1 = 0 ;
17012 PyObject * obj2 = 0 ;
17013 PyObject * obj3 = 0 ;
17014 PyObject * obj4 = 0 ;
17015 PyObject * obj5 = 0 ;
17016 PyObject * obj6 = 0 ;
17017 char *kwnames[] = {
17018 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
17019 };
17020
17021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17024 arg2 = (int) SWIG_AsInt(obj1);
17025 if (PyErr_Occurred()) SWIG_fail;
17026 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17027 SWIG_POINTER_EXCEPTION | 0)) == -1)
17028 SWIG_fail;
17029 if (arg3 == NULL) {
17030 PyErr_SetString(PyExc_TypeError,"null reference");
17031 SWIG_fail;
17032 }
17033 arg4 = (int) SWIG_AsInt(obj3);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 arg5 = (int) SWIG_AsInt(obj4);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 if (obj5) {
17038 arg6 = (int) SWIG_AsInt(obj5);
17039 if (PyErr_Occurred()) SWIG_fail;
17040 }
17041 if (obj6) {
17042 arg7 = (bool const) SWIG_AsBool(obj6);
17043 if (PyErr_Occurred()) SWIG_fail;
17044 }
17045 {
17046 PyThreadState* __tstate = wxPyBeginAllowThreads();
17047 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17048
17049 wxPyEndAllowThreads(__tstate);
17050 if (PyErr_Occurred()) SWIG_fail;
17051 }
17052 {
17053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17054 }
17055 return resultobj;
17056 fail:
17057 return NULL;
17058 }
17059
17060
17061 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17062 PyObject *resultobj;
17063 wxImageList *arg1 = (wxImageList *) 0 ;
17064 int result;
17065 PyObject * obj0 = 0 ;
17066 char *kwnames[] = {
17067 (char *) "self", NULL
17068 };
17069
17070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17073 {
17074 PyThreadState* __tstate = wxPyBeginAllowThreads();
17075 result = (int)(arg1)->GetImageCount();
17076
17077 wxPyEndAllowThreads(__tstate);
17078 if (PyErr_Occurred()) SWIG_fail;
17079 }
17080 resultobj = SWIG_FromInt((int)result);
17081 return resultobj;
17082 fail:
17083 return NULL;
17084 }
17085
17086
17087 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17088 PyObject *resultobj;
17089 wxImageList *arg1 = (wxImageList *) 0 ;
17090 int arg2 ;
17091 bool result;
17092 PyObject * obj0 = 0 ;
17093 PyObject * obj1 = 0 ;
17094 char *kwnames[] = {
17095 (char *) "self",(char *) "index", NULL
17096 };
17097
17098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17101 arg2 = (int) SWIG_AsInt(obj1);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 {
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 result = (bool)(arg1)->Remove(arg2);
17106
17107 wxPyEndAllowThreads(__tstate);
17108 if (PyErr_Occurred()) SWIG_fail;
17109 }
17110 {
17111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17112 }
17113 return resultobj;
17114 fail:
17115 return NULL;
17116 }
17117
17118
17119 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17120 PyObject *resultobj;
17121 wxImageList *arg1 = (wxImageList *) 0 ;
17122 bool result;
17123 PyObject * obj0 = 0 ;
17124 char *kwnames[] = {
17125 (char *) "self", NULL
17126 };
17127
17128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17131 {
17132 PyThreadState* __tstate = wxPyBeginAllowThreads();
17133 result = (bool)(arg1)->RemoveAll();
17134
17135 wxPyEndAllowThreads(__tstate);
17136 if (PyErr_Occurred()) SWIG_fail;
17137 }
17138 {
17139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17140 }
17141 return resultobj;
17142 fail:
17143 return NULL;
17144 }
17145
17146
17147 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17148 PyObject *resultobj;
17149 wxImageList *arg1 = (wxImageList *) 0 ;
17150 int arg2 ;
17151 int *arg3 = 0 ;
17152 int *arg4 = 0 ;
17153 int temp3 ;
17154 int temp4 ;
17155 PyObject * obj0 = 0 ;
17156 PyObject * obj1 = 0 ;
17157 char *kwnames[] = {
17158 (char *) "self",(char *) "index", NULL
17159 };
17160
17161 arg3 = &temp3;
17162 arg4 = &temp4;
17163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17166 arg2 = (int) SWIG_AsInt(obj1);
17167 if (PyErr_Occurred()) SWIG_fail;
17168 {
17169 PyThreadState* __tstate = wxPyBeginAllowThreads();
17170 (arg1)->GetSize(arg2,*arg3,*arg4);
17171
17172 wxPyEndAllowThreads(__tstate);
17173 if (PyErr_Occurred()) SWIG_fail;
17174 }
17175 Py_INCREF(Py_None); resultobj = Py_None;
17176 {
17177 PyObject *o = PyInt_FromLong((long) (*arg3));
17178 resultobj = t_output_helper(resultobj,o);
17179 }
17180 {
17181 PyObject *o = PyInt_FromLong((long) (*arg4));
17182 resultobj = t_output_helper(resultobj,o);
17183 }
17184 return resultobj;
17185 fail:
17186 return NULL;
17187 }
17188
17189
17190 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17191 PyObject *obj;
17192 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17193 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17194 Py_INCREF(obj);
17195 return Py_BuildValue((char *)"");
17196 }
17197 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17198 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17199 return 1;
17200 }
17201
17202
17203 static PyObject *_wrap_NORMAL_FONT_get() {
17204 PyObject *pyobj;
17205
17206 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17207 return pyobj;
17208 }
17209
17210
17211 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17212 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17213 return 1;
17214 }
17215
17216
17217 static PyObject *_wrap_SMALL_FONT_get() {
17218 PyObject *pyobj;
17219
17220 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17221 return pyobj;
17222 }
17223
17224
17225 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17226 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17227 return 1;
17228 }
17229
17230
17231 static PyObject *_wrap_ITALIC_FONT_get() {
17232 PyObject *pyobj;
17233
17234 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17235 return pyobj;
17236 }
17237
17238
17239 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17240 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17241 return 1;
17242 }
17243
17244
17245 static PyObject *_wrap_SWISS_FONT_get() {
17246 PyObject *pyobj;
17247
17248 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17249 return pyobj;
17250 }
17251
17252
17253 static int _wrap_RED_PEN_set(PyObject *_val) {
17254 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17255 return 1;
17256 }
17257
17258
17259 static PyObject *_wrap_RED_PEN_get() {
17260 PyObject *pyobj;
17261
17262 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17263 return pyobj;
17264 }
17265
17266
17267 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17268 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17269 return 1;
17270 }
17271
17272
17273 static PyObject *_wrap_CYAN_PEN_get() {
17274 PyObject *pyobj;
17275
17276 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17277 return pyobj;
17278 }
17279
17280
17281 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17282 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17283 return 1;
17284 }
17285
17286
17287 static PyObject *_wrap_GREEN_PEN_get() {
17288 PyObject *pyobj;
17289
17290 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17291 return pyobj;
17292 }
17293
17294
17295 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17296 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17297 return 1;
17298 }
17299
17300
17301 static PyObject *_wrap_BLACK_PEN_get() {
17302 PyObject *pyobj;
17303
17304 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17305 return pyobj;
17306 }
17307
17308
17309 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17310 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17311 return 1;
17312 }
17313
17314
17315 static PyObject *_wrap_WHITE_PEN_get() {
17316 PyObject *pyobj;
17317
17318 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17319 return pyobj;
17320 }
17321
17322
17323 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17324 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17325 return 1;
17326 }
17327
17328
17329 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17330 PyObject *pyobj;
17331
17332 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17333 return pyobj;
17334 }
17335
17336
17337 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17338 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17339 return 1;
17340 }
17341
17342
17343 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17344 PyObject *pyobj;
17345
17346 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17347 return pyobj;
17348 }
17349
17350
17351 static int _wrap_GREY_PEN_set(PyObject *_val) {
17352 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17353 return 1;
17354 }
17355
17356
17357 static PyObject *_wrap_GREY_PEN_get() {
17358 PyObject *pyobj;
17359
17360 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17361 return pyobj;
17362 }
17363
17364
17365 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17366 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17367 return 1;
17368 }
17369
17370
17371 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17372 PyObject *pyobj;
17373
17374 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17375 return pyobj;
17376 }
17377
17378
17379 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17380 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17381 return 1;
17382 }
17383
17384
17385 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17386 PyObject *pyobj;
17387
17388 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17389 return pyobj;
17390 }
17391
17392
17393 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17394 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17395 return 1;
17396 }
17397
17398
17399 static PyObject *_wrap_BLUE_BRUSH_get() {
17400 PyObject *pyobj;
17401
17402 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17403 return pyobj;
17404 }
17405
17406
17407 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17408 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17409 return 1;
17410 }
17411
17412
17413 static PyObject *_wrap_GREEN_BRUSH_get() {
17414 PyObject *pyobj;
17415
17416 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17417 return pyobj;
17418 }
17419
17420
17421 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17422 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17423 return 1;
17424 }
17425
17426
17427 static PyObject *_wrap_WHITE_BRUSH_get() {
17428 PyObject *pyobj;
17429
17430 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17431 return pyobj;
17432 }
17433
17434
17435 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17436 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17437 return 1;
17438 }
17439
17440
17441 static PyObject *_wrap_BLACK_BRUSH_get() {
17442 PyObject *pyobj;
17443
17444 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17445 return pyobj;
17446 }
17447
17448
17449 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17450 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17451 return 1;
17452 }
17453
17454
17455 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17456 PyObject *pyobj;
17457
17458 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17459 return pyobj;
17460 }
17461
17462
17463 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17464 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17465 return 1;
17466 }
17467
17468
17469 static PyObject *_wrap_CYAN_BRUSH_get() {
17470 PyObject *pyobj;
17471
17472 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17473 return pyobj;
17474 }
17475
17476
17477 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17478 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17479 return 1;
17480 }
17481
17482
17483 static PyObject *_wrap_RED_BRUSH_get() {
17484 PyObject *pyobj;
17485
17486 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17487 return pyobj;
17488 }
17489
17490
17491 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17492 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17493 return 1;
17494 }
17495
17496
17497 static PyObject *_wrap_GREY_BRUSH_get() {
17498 PyObject *pyobj;
17499
17500 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17501 return pyobj;
17502 }
17503
17504
17505 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17506 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17507 return 1;
17508 }
17509
17510
17511 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17512 PyObject *pyobj;
17513
17514 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17515 return pyobj;
17516 }
17517
17518
17519 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17520 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17521 return 1;
17522 }
17523
17524
17525 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17526 PyObject *pyobj;
17527
17528 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17529 return pyobj;
17530 }
17531
17532
17533 static int _wrap_BLACK_set(PyObject *_val) {
17534 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17535 return 1;
17536 }
17537
17538
17539 static PyObject *_wrap_BLACK_get() {
17540 PyObject *pyobj;
17541
17542 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17543 return pyobj;
17544 }
17545
17546
17547 static int _wrap_WHITE_set(PyObject *_val) {
17548 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17549 return 1;
17550 }
17551
17552
17553 static PyObject *_wrap_WHITE_get() {
17554 PyObject *pyobj;
17555
17556 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17557 return pyobj;
17558 }
17559
17560
17561 static int _wrap_RED_set(PyObject *_val) {
17562 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17563 return 1;
17564 }
17565
17566
17567 static PyObject *_wrap_RED_get() {
17568 PyObject *pyobj;
17569
17570 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17571 return pyobj;
17572 }
17573
17574
17575 static int _wrap_BLUE_set(PyObject *_val) {
17576 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17577 return 1;
17578 }
17579
17580
17581 static PyObject *_wrap_BLUE_get() {
17582 PyObject *pyobj;
17583
17584 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17585 return pyobj;
17586 }
17587
17588
17589 static int _wrap_GREEN_set(PyObject *_val) {
17590 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17591 return 1;
17592 }
17593
17594
17595 static PyObject *_wrap_GREEN_get() {
17596 PyObject *pyobj;
17597
17598 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17599 return pyobj;
17600 }
17601
17602
17603 static int _wrap_CYAN_set(PyObject *_val) {
17604 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17605 return 1;
17606 }
17607
17608
17609 static PyObject *_wrap_CYAN_get() {
17610 PyObject *pyobj;
17611
17612 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17613 return pyobj;
17614 }
17615
17616
17617 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17618 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17619 return 1;
17620 }
17621
17622
17623 static PyObject *_wrap_LIGHT_GREY_get() {
17624 PyObject *pyobj;
17625
17626 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17627 return pyobj;
17628 }
17629
17630
17631 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17632 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17633 return 1;
17634 }
17635
17636
17637 static PyObject *_wrap_STANDARD_CURSOR_get() {
17638 PyObject *pyobj;
17639
17640 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17641 return pyobj;
17642 }
17643
17644
17645 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17646 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17647 return 1;
17648 }
17649
17650
17651 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17652 PyObject *pyobj;
17653
17654 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17655 return pyobj;
17656 }
17657
17658
17659 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17660 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17661 return 1;
17662 }
17663
17664
17665 static PyObject *_wrap_CROSS_CURSOR_get() {
17666 PyObject *pyobj;
17667
17668 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17669 return pyobj;
17670 }
17671
17672
17673 static int _wrap_NullBitmap_set(PyObject *_val) {
17674 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17675 return 1;
17676 }
17677
17678
17679 static PyObject *_wrap_NullBitmap_get() {
17680 PyObject *pyobj;
17681
17682 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17683 return pyobj;
17684 }
17685
17686
17687 static int _wrap_NullIcon_set(PyObject *_val) {
17688 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17689 return 1;
17690 }
17691
17692
17693 static PyObject *_wrap_NullIcon_get() {
17694 PyObject *pyobj;
17695
17696 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17697 return pyobj;
17698 }
17699
17700
17701 static int _wrap_NullCursor_set(PyObject *_val) {
17702 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17703 return 1;
17704 }
17705
17706
17707 static PyObject *_wrap_NullCursor_get() {
17708 PyObject *pyobj;
17709
17710 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17711 return pyobj;
17712 }
17713
17714
17715 static int _wrap_NullPen_set(PyObject *_val) {
17716 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17717 return 1;
17718 }
17719
17720
17721 static PyObject *_wrap_NullPen_get() {
17722 PyObject *pyobj;
17723
17724 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17725 return pyobj;
17726 }
17727
17728
17729 static int _wrap_NullBrush_set(PyObject *_val) {
17730 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17731 return 1;
17732 }
17733
17734
17735 static PyObject *_wrap_NullBrush_get() {
17736 PyObject *pyobj;
17737
17738 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17739 return pyobj;
17740 }
17741
17742
17743 static int _wrap_NullPalette_set(PyObject *_val) {
17744 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17745 return 1;
17746 }
17747
17748
17749 static PyObject *_wrap_NullPalette_get() {
17750 PyObject *pyobj;
17751
17752 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17753 return pyobj;
17754 }
17755
17756
17757 static int _wrap_NullFont_set(PyObject *_val) {
17758 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17759 return 1;
17760 }
17761
17762
17763 static PyObject *_wrap_NullFont_get() {
17764 PyObject *pyobj;
17765
17766 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17767 return pyobj;
17768 }
17769
17770
17771 static int _wrap_NullColour_set(PyObject *_val) {
17772 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17773 return 1;
17774 }
17775
17776
17777 static PyObject *_wrap_NullColour_get() {
17778 PyObject *pyobj;
17779
17780 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17781 return pyobj;
17782 }
17783
17784
17785 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17786 PyObject *resultobj;
17787 wxPenList *arg1 = (wxPenList *) 0 ;
17788 wxPen *arg2 = (wxPen *) 0 ;
17789 PyObject * obj0 = 0 ;
17790 PyObject * obj1 = 0 ;
17791 char *kwnames[] = {
17792 (char *) "self",(char *) "pen", NULL
17793 };
17794
17795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17798 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17799 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17800 {
17801 PyThreadState* __tstate = wxPyBeginAllowThreads();
17802 (arg1)->AddPen(arg2);
17803
17804 wxPyEndAllowThreads(__tstate);
17805 if (PyErr_Occurred()) SWIG_fail;
17806 }
17807 Py_INCREF(Py_None); resultobj = Py_None;
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxPenList *arg1 = (wxPenList *) 0 ;
17817 wxColour *arg2 = 0 ;
17818 int arg3 ;
17819 int arg4 ;
17820 wxPen *result;
17821 wxColour temp2 ;
17822 PyObject * obj0 = 0 ;
17823 PyObject * obj1 = 0 ;
17824 PyObject * obj2 = 0 ;
17825 PyObject * obj3 = 0 ;
17826 char *kwnames[] = {
17827 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17833 {
17834 arg2 = &temp2;
17835 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17836 }
17837 arg3 = (int) SWIG_AsInt(obj2);
17838 if (PyErr_Occurred()) SWIG_fail;
17839 arg4 = (int) SWIG_AsInt(obj3);
17840 if (PyErr_Occurred()) SWIG_fail;
17841 {
17842 PyThreadState* __tstate = wxPyBeginAllowThreads();
17843 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17844
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17849 return resultobj;
17850 fail:
17851 return NULL;
17852 }
17853
17854
17855 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17856 PyObject *resultobj;
17857 wxPenList *arg1 = (wxPenList *) 0 ;
17858 wxPen *arg2 = (wxPen *) 0 ;
17859 PyObject * obj0 = 0 ;
17860 PyObject * obj1 = 0 ;
17861 char *kwnames[] = {
17862 (char *) "self",(char *) "pen", NULL
17863 };
17864
17865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17868 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 (arg1)->RemovePen(arg2);
17873
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 Py_INCREF(Py_None); resultobj = Py_None;
17878 return resultobj;
17879 fail:
17880 return NULL;
17881 }
17882
17883
17884 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17885 PyObject *resultobj;
17886 wxPenList *arg1 = (wxPenList *) 0 ;
17887 int result;
17888 PyObject * obj0 = 0 ;
17889 char *kwnames[] = {
17890 (char *) "self", NULL
17891 };
17892
17893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17896 {
17897 PyThreadState* __tstate = wxPyBeginAllowThreads();
17898 result = (int)(arg1)->GetCount();
17899
17900 wxPyEndAllowThreads(__tstate);
17901 if (PyErr_Occurred()) SWIG_fail;
17902 }
17903 resultobj = SWIG_FromInt((int)result);
17904 return resultobj;
17905 fail:
17906 return NULL;
17907 }
17908
17909
17910 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17911 PyObject *obj;
17912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17913 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17914 Py_INCREF(obj);
17915 return Py_BuildValue((char *)"");
17916 }
17917 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17918 PyObject *resultobj;
17919 wxBrushList *arg1 = (wxBrushList *) 0 ;
17920 wxBrush *arg2 = (wxBrush *) 0 ;
17921 PyObject * obj0 = 0 ;
17922 PyObject * obj1 = 0 ;
17923 char *kwnames[] = {
17924 (char *) "self",(char *) "brush", NULL
17925 };
17926
17927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17930 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17932 {
17933 PyThreadState* __tstate = wxPyBeginAllowThreads();
17934 (arg1)->AddBrush(arg2);
17935
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 Py_INCREF(Py_None); resultobj = Py_None;
17940 return resultobj;
17941 fail:
17942 return NULL;
17943 }
17944
17945
17946 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17947 PyObject *resultobj;
17948 wxBrushList *arg1 = (wxBrushList *) 0 ;
17949 wxColour *arg2 = 0 ;
17950 int arg3 ;
17951 wxBrush *result;
17952 wxColour temp2 ;
17953 PyObject * obj0 = 0 ;
17954 PyObject * obj1 = 0 ;
17955 PyObject * obj2 = 0 ;
17956 char *kwnames[] = {
17957 (char *) "self",(char *) "colour",(char *) "style", NULL
17958 };
17959
17960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17963 {
17964 arg2 = &temp2;
17965 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17966 }
17967 arg3 = (int) SWIG_AsInt(obj2);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 {
17970 PyThreadState* __tstate = wxPyBeginAllowThreads();
17971 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17972
17973 wxPyEndAllowThreads(__tstate);
17974 if (PyErr_Occurred()) SWIG_fail;
17975 }
17976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17977 return resultobj;
17978 fail:
17979 return NULL;
17980 }
17981
17982
17983 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17984 PyObject *resultobj;
17985 wxBrushList *arg1 = (wxBrushList *) 0 ;
17986 wxBrush *arg2 = (wxBrush *) 0 ;
17987 PyObject * obj0 = 0 ;
17988 PyObject * obj1 = 0 ;
17989 char *kwnames[] = {
17990 (char *) "self",(char *) "brush", NULL
17991 };
17992
17993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17996 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 (arg1)->RemoveBrush(arg2);
18001
18002 wxPyEndAllowThreads(__tstate);
18003 if (PyErr_Occurred()) SWIG_fail;
18004 }
18005 Py_INCREF(Py_None); resultobj = Py_None;
18006 return resultobj;
18007 fail:
18008 return NULL;
18009 }
18010
18011
18012 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18013 PyObject *resultobj;
18014 wxBrushList *arg1 = (wxBrushList *) 0 ;
18015 int result;
18016 PyObject * obj0 = 0 ;
18017 char *kwnames[] = {
18018 (char *) "self", NULL
18019 };
18020
18021 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
18022 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18023 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18024 {
18025 PyThreadState* __tstate = wxPyBeginAllowThreads();
18026 result = (int)(arg1)->GetCount();
18027
18028 wxPyEndAllowThreads(__tstate);
18029 if (PyErr_Occurred()) SWIG_fail;
18030 }
18031 resultobj = SWIG_FromInt((int)result);
18032 return resultobj;
18033 fail:
18034 return NULL;
18035 }
18036
18037
18038 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
18039 PyObject *obj;
18040 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18041 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18042 Py_INCREF(obj);
18043 return Py_BuildValue((char *)"");
18044 }
18045 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18046 PyObject *resultobj;
18047 wxColourDatabase *result;
18048 char *kwnames[] = {
18049 NULL
18050 };
18051
18052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18053 {
18054 if (!wxPyCheckForApp()) SWIG_fail;
18055 PyThreadState* __tstate = wxPyBeginAllowThreads();
18056 result = (wxColourDatabase *)new wxColourDatabase();
18057
18058 wxPyEndAllowThreads(__tstate);
18059 if (PyErr_Occurred()) SWIG_fail;
18060 }
18061 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18062 return resultobj;
18063 fail:
18064 return NULL;
18065 }
18066
18067
18068 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18069 PyObject *resultobj;
18070 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18071 PyObject * obj0 = 0 ;
18072 char *kwnames[] = {
18073 (char *) "self", NULL
18074 };
18075
18076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18079 {
18080 PyThreadState* __tstate = wxPyBeginAllowThreads();
18081 delete arg1;
18082
18083 wxPyEndAllowThreads(__tstate);
18084 if (PyErr_Occurred()) SWIG_fail;
18085 }
18086 Py_INCREF(Py_None); resultobj = Py_None;
18087 return resultobj;
18088 fail:
18089 return NULL;
18090 }
18091
18092
18093 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18094 PyObject *resultobj;
18095 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18096 wxString *arg2 = 0 ;
18097 wxColour result;
18098 bool temp2 = False ;
18099 PyObject * obj0 = 0 ;
18100 PyObject * obj1 = 0 ;
18101 char *kwnames[] = {
18102 (char *) "self",(char *) "name", NULL
18103 };
18104
18105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18108 {
18109 arg2 = wxString_in_helper(obj1);
18110 if (arg2 == NULL) SWIG_fail;
18111 temp2 = True;
18112 }
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18116
18117 wxPyEndAllowThreads(__tstate);
18118 if (PyErr_Occurred()) SWIG_fail;
18119 }
18120 {
18121 wxColour * resultptr;
18122 resultptr = new wxColour((wxColour &) result);
18123 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18124 }
18125 {
18126 if (temp2)
18127 delete arg2;
18128 }
18129 return resultobj;
18130 fail:
18131 {
18132 if (temp2)
18133 delete arg2;
18134 }
18135 return NULL;
18136 }
18137
18138
18139 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj;
18141 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18142 wxColour *arg2 = 0 ;
18143 wxString result;
18144 wxColour temp2 ;
18145 PyObject * obj0 = 0 ;
18146 PyObject * obj1 = 0 ;
18147 char *kwnames[] = {
18148 (char *) "self",(char *) "colour", NULL
18149 };
18150
18151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18154 {
18155 arg2 = &temp2;
18156 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18157 }
18158 {
18159 PyThreadState* __tstate = wxPyBeginAllowThreads();
18160 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18161
18162 wxPyEndAllowThreads(__tstate);
18163 if (PyErr_Occurred()) SWIG_fail;
18164 }
18165 {
18166 #if wxUSE_UNICODE
18167 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18168 #else
18169 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18170 #endif
18171 }
18172 return resultobj;
18173 fail:
18174 return NULL;
18175 }
18176
18177
18178 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18179 PyObject *resultobj;
18180 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18181 wxString *arg2 = 0 ;
18182 wxColour *arg3 = 0 ;
18183 bool temp2 = False ;
18184 wxColour temp3 ;
18185 PyObject * obj0 = 0 ;
18186 PyObject * obj1 = 0 ;
18187 PyObject * obj2 = 0 ;
18188 char *kwnames[] = {
18189 (char *) "self",(char *) "name",(char *) "colour", NULL
18190 };
18191
18192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18195 {
18196 arg2 = wxString_in_helper(obj1);
18197 if (arg2 == NULL) SWIG_fail;
18198 temp2 = True;
18199 }
18200 {
18201 arg3 = &temp3;
18202 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18203 }
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18207
18208 wxPyEndAllowThreads(__tstate);
18209 if (PyErr_Occurred()) SWIG_fail;
18210 }
18211 Py_INCREF(Py_None); resultobj = Py_None;
18212 {
18213 if (temp2)
18214 delete arg2;
18215 }
18216 return resultobj;
18217 fail:
18218 {
18219 if (temp2)
18220 delete arg2;
18221 }
18222 return NULL;
18223 }
18224
18225
18226 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18227 PyObject *resultobj;
18228 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18229 wxString *arg2 = 0 ;
18230 int arg3 ;
18231 int arg4 ;
18232 int arg5 ;
18233 bool temp2 = False ;
18234 PyObject * obj0 = 0 ;
18235 PyObject * obj1 = 0 ;
18236 PyObject * obj2 = 0 ;
18237 PyObject * obj3 = 0 ;
18238 PyObject * obj4 = 0 ;
18239 char *kwnames[] = {
18240 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18241 };
18242
18243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18246 {
18247 arg2 = wxString_in_helper(obj1);
18248 if (arg2 == NULL) SWIG_fail;
18249 temp2 = True;
18250 }
18251 arg3 = (int) SWIG_AsInt(obj2);
18252 if (PyErr_Occurred()) SWIG_fail;
18253 arg4 = (int) SWIG_AsInt(obj3);
18254 if (PyErr_Occurred()) SWIG_fail;
18255 arg5 = (int) SWIG_AsInt(obj4);
18256 if (PyErr_Occurred()) SWIG_fail;
18257 {
18258 PyThreadState* __tstate = wxPyBeginAllowThreads();
18259 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18260
18261 wxPyEndAllowThreads(__tstate);
18262 if (PyErr_Occurred()) SWIG_fail;
18263 }
18264 Py_INCREF(Py_None); resultobj = Py_None;
18265 {
18266 if (temp2)
18267 delete arg2;
18268 }
18269 return resultobj;
18270 fail:
18271 {
18272 if (temp2)
18273 delete arg2;
18274 }
18275 return NULL;
18276 }
18277
18278
18279 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18280 PyObject *obj;
18281 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18282 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18283 Py_INCREF(obj);
18284 return Py_BuildValue((char *)"");
18285 }
18286 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18287 PyObject *resultobj;
18288 wxFontList *arg1 = (wxFontList *) 0 ;
18289 wxFont *arg2 = (wxFont *) 0 ;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char *kwnames[] = {
18293 (char *) "self",(char *) "font", NULL
18294 };
18295
18296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18299 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18301 {
18302 PyThreadState* __tstate = wxPyBeginAllowThreads();
18303 (arg1)->AddFont(arg2);
18304
18305 wxPyEndAllowThreads(__tstate);
18306 if (PyErr_Occurred()) SWIG_fail;
18307 }
18308 Py_INCREF(Py_None); resultobj = Py_None;
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18316 PyObject *resultobj;
18317 wxFontList *arg1 = (wxFontList *) 0 ;
18318 int arg2 ;
18319 int arg3 ;
18320 int arg4 ;
18321 int arg5 ;
18322 bool arg6 = (bool) False ;
18323 wxString const &arg7_defvalue = wxPyEmptyString ;
18324 wxString *arg7 = (wxString *) &arg7_defvalue ;
18325 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18326 wxFont *result;
18327 bool temp7 = False ;
18328 PyObject * obj0 = 0 ;
18329 PyObject * obj1 = 0 ;
18330 PyObject * obj2 = 0 ;
18331 PyObject * obj3 = 0 ;
18332 PyObject * obj4 = 0 ;
18333 PyObject * obj5 = 0 ;
18334 PyObject * obj6 = 0 ;
18335 PyObject * obj7 = 0 ;
18336 char *kwnames[] = {
18337 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18338 };
18339
18340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18343 arg2 = (int) SWIG_AsInt(obj1);
18344 if (PyErr_Occurred()) SWIG_fail;
18345 arg3 = (int) SWIG_AsInt(obj2);
18346 if (PyErr_Occurred()) SWIG_fail;
18347 arg4 = (int) SWIG_AsInt(obj3);
18348 if (PyErr_Occurred()) SWIG_fail;
18349 arg5 = (int) SWIG_AsInt(obj4);
18350 if (PyErr_Occurred()) SWIG_fail;
18351 if (obj5) {
18352 arg6 = (bool) SWIG_AsBool(obj5);
18353 if (PyErr_Occurred()) SWIG_fail;
18354 }
18355 if (obj6) {
18356 {
18357 arg7 = wxString_in_helper(obj6);
18358 if (arg7 == NULL) SWIG_fail;
18359 temp7 = True;
18360 }
18361 }
18362 if (obj7) {
18363 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18364 if (PyErr_Occurred()) SWIG_fail;
18365 }
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18369
18370 wxPyEndAllowThreads(__tstate);
18371 if (PyErr_Occurred()) SWIG_fail;
18372 }
18373 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18374 {
18375 if (temp7)
18376 delete arg7;
18377 }
18378 return resultobj;
18379 fail:
18380 {
18381 if (temp7)
18382 delete arg7;
18383 }
18384 return NULL;
18385 }
18386
18387
18388 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18389 PyObject *resultobj;
18390 wxFontList *arg1 = (wxFontList *) 0 ;
18391 wxFont *arg2 = (wxFont *) 0 ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 char *kwnames[] = {
18395 (char *) "self",(char *) "font", NULL
18396 };
18397
18398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18401 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18403 {
18404 PyThreadState* __tstate = wxPyBeginAllowThreads();
18405 (arg1)->RemoveFont(arg2);
18406
18407 wxPyEndAllowThreads(__tstate);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 }
18410 Py_INCREF(Py_None); resultobj = Py_None;
18411 return resultobj;
18412 fail:
18413 return NULL;
18414 }
18415
18416
18417 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18418 PyObject *resultobj;
18419 wxFontList *arg1 = (wxFontList *) 0 ;
18420 int result;
18421 PyObject * obj0 = 0 ;
18422 char *kwnames[] = {
18423 (char *) "self", NULL
18424 };
18425
18426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18429 {
18430 PyThreadState* __tstate = wxPyBeginAllowThreads();
18431 result = (int)(arg1)->GetCount();
18432
18433 wxPyEndAllowThreads(__tstate);
18434 if (PyErr_Occurred()) SWIG_fail;
18435 }
18436 resultobj = SWIG_FromInt((int)result);
18437 return resultobj;
18438 fail:
18439 return NULL;
18440 }
18441
18442
18443 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18444 PyObject *obj;
18445 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18446 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18447 Py_INCREF(obj);
18448 return Py_BuildValue((char *)"");
18449 }
18450 static int _wrap_TheFontList_set(PyObject *_val) {
18451 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18452 return 1;
18453 }
18454
18455
18456 static PyObject *_wrap_TheFontList_get() {
18457 PyObject *pyobj;
18458
18459 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18460 return pyobj;
18461 }
18462
18463
18464 static int _wrap_ThePenList_set(PyObject *_val) {
18465 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18466 return 1;
18467 }
18468
18469
18470 static PyObject *_wrap_ThePenList_get() {
18471 PyObject *pyobj;
18472
18473 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18474 return pyobj;
18475 }
18476
18477
18478 static int _wrap_TheBrushList_set(PyObject *_val) {
18479 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18480 return 1;
18481 }
18482
18483
18484 static PyObject *_wrap_TheBrushList_get() {
18485 PyObject *pyobj;
18486
18487 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18488 return pyobj;
18489 }
18490
18491
18492 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18493 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18494 return 1;
18495 }
18496
18497
18498 static PyObject *_wrap_TheColourDatabase_get() {
18499 PyObject *pyobj;
18500
18501 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18502 return pyobj;
18503 }
18504
18505
18506 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18507 PyObject *resultobj;
18508 wxEffects *result;
18509 char *kwnames[] = {
18510 NULL
18511 };
18512
18513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18514 {
18515 PyThreadState* __tstate = wxPyBeginAllowThreads();
18516 result = (wxEffects *)new wxEffects();
18517
18518 wxPyEndAllowThreads(__tstate);
18519 if (PyErr_Occurred()) SWIG_fail;
18520 }
18521 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18522 return resultobj;
18523 fail:
18524 return NULL;
18525 }
18526
18527
18528 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18529 PyObject *resultobj;
18530 wxEffects *arg1 = (wxEffects *) 0 ;
18531 wxColour result;
18532 PyObject * obj0 = 0 ;
18533 char *kwnames[] = {
18534 (char *) "self", NULL
18535 };
18536
18537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18540 {
18541 PyThreadState* __tstate = wxPyBeginAllowThreads();
18542 result = ((wxEffects const *)arg1)->GetHighlightColour();
18543
18544 wxPyEndAllowThreads(__tstate);
18545 if (PyErr_Occurred()) SWIG_fail;
18546 }
18547 {
18548 wxColour * resultptr;
18549 resultptr = new wxColour((wxColour &) result);
18550 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18551 }
18552 return resultobj;
18553 fail:
18554 return NULL;
18555 }
18556
18557
18558 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18559 PyObject *resultobj;
18560 wxEffects *arg1 = (wxEffects *) 0 ;
18561 wxColour result;
18562 PyObject * obj0 = 0 ;
18563 char *kwnames[] = {
18564 (char *) "self", NULL
18565 };
18566
18567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 result = ((wxEffects const *)arg1)->GetLightShadow();
18573
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 {
18578 wxColour * resultptr;
18579 resultptr = new wxColour((wxColour &) result);
18580 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18581 }
18582 return resultobj;
18583 fail:
18584 return NULL;
18585 }
18586
18587
18588 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18589 PyObject *resultobj;
18590 wxEffects *arg1 = (wxEffects *) 0 ;
18591 wxColour result;
18592 PyObject * obj0 = 0 ;
18593 char *kwnames[] = {
18594 (char *) "self", NULL
18595 };
18596
18597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 result = ((wxEffects const *)arg1)->GetFaceColour();
18603
18604 wxPyEndAllowThreads(__tstate);
18605 if (PyErr_Occurred()) SWIG_fail;
18606 }
18607 {
18608 wxColour * resultptr;
18609 resultptr = new wxColour((wxColour &) result);
18610 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18611 }
18612 return resultobj;
18613 fail:
18614 return NULL;
18615 }
18616
18617
18618 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18619 PyObject *resultobj;
18620 wxEffects *arg1 = (wxEffects *) 0 ;
18621 wxColour result;
18622 PyObject * obj0 = 0 ;
18623 char *kwnames[] = {
18624 (char *) "self", NULL
18625 };
18626
18627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18630 {
18631 PyThreadState* __tstate = wxPyBeginAllowThreads();
18632 result = ((wxEffects const *)arg1)->GetMediumShadow();
18633
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 {
18638 wxColour * resultptr;
18639 resultptr = new wxColour((wxColour &) result);
18640 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18641 }
18642 return resultobj;
18643 fail:
18644 return NULL;
18645 }
18646
18647
18648 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18649 PyObject *resultobj;
18650 wxEffects *arg1 = (wxEffects *) 0 ;
18651 wxColour result;
18652 PyObject * obj0 = 0 ;
18653 char *kwnames[] = {
18654 (char *) "self", NULL
18655 };
18656
18657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18660 {
18661 PyThreadState* __tstate = wxPyBeginAllowThreads();
18662 result = ((wxEffects const *)arg1)->GetDarkShadow();
18663
18664 wxPyEndAllowThreads(__tstate);
18665 if (PyErr_Occurred()) SWIG_fail;
18666 }
18667 {
18668 wxColour * resultptr;
18669 resultptr = new wxColour((wxColour &) result);
18670 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18671 }
18672 return resultobj;
18673 fail:
18674 return NULL;
18675 }
18676
18677
18678 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18679 PyObject *resultobj;
18680 wxEffects *arg1 = (wxEffects *) 0 ;
18681 wxColour *arg2 = 0 ;
18682 wxColour temp2 ;
18683 PyObject * obj0 = 0 ;
18684 PyObject * obj1 = 0 ;
18685 char *kwnames[] = {
18686 (char *) "self",(char *) "c", NULL
18687 };
18688
18689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18692 {
18693 arg2 = &temp2;
18694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18695 }
18696 {
18697 PyThreadState* __tstate = wxPyBeginAllowThreads();
18698 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18699
18700 wxPyEndAllowThreads(__tstate);
18701 if (PyErr_Occurred()) SWIG_fail;
18702 }
18703 Py_INCREF(Py_None); resultobj = Py_None;
18704 return resultobj;
18705 fail:
18706 return NULL;
18707 }
18708
18709
18710 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18711 PyObject *resultobj;
18712 wxEffects *arg1 = (wxEffects *) 0 ;
18713 wxColour *arg2 = 0 ;
18714 wxColour temp2 ;
18715 PyObject * obj0 = 0 ;
18716 PyObject * obj1 = 0 ;
18717 char *kwnames[] = {
18718 (char *) "self",(char *) "c", NULL
18719 };
18720
18721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18724 {
18725 arg2 = &temp2;
18726 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18727 }
18728 {
18729 PyThreadState* __tstate = wxPyBeginAllowThreads();
18730 (arg1)->SetLightShadow((wxColour const &)*arg2);
18731
18732 wxPyEndAllowThreads(__tstate);
18733 if (PyErr_Occurred()) SWIG_fail;
18734 }
18735 Py_INCREF(Py_None); resultobj = Py_None;
18736 return resultobj;
18737 fail:
18738 return NULL;
18739 }
18740
18741
18742 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18743 PyObject *resultobj;
18744 wxEffects *arg1 = (wxEffects *) 0 ;
18745 wxColour *arg2 = 0 ;
18746 wxColour temp2 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 char *kwnames[] = {
18750 (char *) "self",(char *) "c", NULL
18751 };
18752
18753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18756 {
18757 arg2 = &temp2;
18758 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18759 }
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->SetFaceColour((wxColour const &)*arg2);
18763
18764 wxPyEndAllowThreads(__tstate);
18765 if (PyErr_Occurred()) SWIG_fail;
18766 }
18767 Py_INCREF(Py_None); resultobj = Py_None;
18768 return resultobj;
18769 fail:
18770 return NULL;
18771 }
18772
18773
18774 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18775 PyObject *resultobj;
18776 wxEffects *arg1 = (wxEffects *) 0 ;
18777 wxColour *arg2 = 0 ;
18778 wxColour temp2 ;
18779 PyObject * obj0 = 0 ;
18780 PyObject * obj1 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self",(char *) "c", NULL
18783 };
18784
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 {
18789 arg2 = &temp2;
18790 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18791 }
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18795
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 Py_INCREF(Py_None); resultobj = Py_None;
18800 return resultobj;
18801 fail:
18802 return NULL;
18803 }
18804
18805
18806 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18807 PyObject *resultobj;
18808 wxEffects *arg1 = (wxEffects *) 0 ;
18809 wxColour *arg2 = 0 ;
18810 wxColour temp2 ;
18811 PyObject * obj0 = 0 ;
18812 PyObject * obj1 = 0 ;
18813 char *kwnames[] = {
18814 (char *) "self",(char *) "c", NULL
18815 };
18816
18817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18820 {
18821 arg2 = &temp2;
18822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18823 }
18824 {
18825 PyThreadState* __tstate = wxPyBeginAllowThreads();
18826 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18827
18828 wxPyEndAllowThreads(__tstate);
18829 if (PyErr_Occurred()) SWIG_fail;
18830 }
18831 Py_INCREF(Py_None); resultobj = Py_None;
18832 return resultobj;
18833 fail:
18834 return NULL;
18835 }
18836
18837
18838 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18839 PyObject *resultobj;
18840 wxEffects *arg1 = (wxEffects *) 0 ;
18841 wxColour *arg2 = 0 ;
18842 wxColour *arg3 = 0 ;
18843 wxColour *arg4 = 0 ;
18844 wxColour *arg5 = 0 ;
18845 wxColour *arg6 = 0 ;
18846 wxColour temp2 ;
18847 wxColour temp3 ;
18848 wxColour temp4 ;
18849 wxColour temp5 ;
18850 wxColour temp6 ;
18851 PyObject * obj0 = 0 ;
18852 PyObject * obj1 = 0 ;
18853 PyObject * obj2 = 0 ;
18854 PyObject * obj3 = 0 ;
18855 PyObject * obj4 = 0 ;
18856 PyObject * obj5 = 0 ;
18857 char *kwnames[] = {
18858 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18859 };
18860
18861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18864 {
18865 arg2 = &temp2;
18866 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18867 }
18868 {
18869 arg3 = &temp3;
18870 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18871 }
18872 {
18873 arg4 = &temp4;
18874 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18875 }
18876 {
18877 arg5 = &temp5;
18878 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18879 }
18880 {
18881 arg6 = &temp6;
18882 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18883 }
18884 {
18885 PyThreadState* __tstate = wxPyBeginAllowThreads();
18886 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18887
18888 wxPyEndAllowThreads(__tstate);
18889 if (PyErr_Occurred()) SWIG_fail;
18890 }
18891 Py_INCREF(Py_None); resultobj = Py_None;
18892 return resultobj;
18893 fail:
18894 return NULL;
18895 }
18896
18897
18898 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18899 PyObject *resultobj;
18900 wxEffects *arg1 = (wxEffects *) 0 ;
18901 wxDC *arg2 = 0 ;
18902 wxRect *arg3 = 0 ;
18903 int arg4 = (int) 1 ;
18904 wxRect temp3 ;
18905 PyObject * obj0 = 0 ;
18906 PyObject * obj1 = 0 ;
18907 PyObject * obj2 = 0 ;
18908 PyObject * obj3 = 0 ;
18909 char *kwnames[] = {
18910 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18911 };
18912
18913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18917 SWIG_POINTER_EXCEPTION | 0)) == -1)
18918 SWIG_fail;
18919 if (arg2 == NULL) {
18920 PyErr_SetString(PyExc_TypeError,"null reference");
18921 SWIG_fail;
18922 }
18923 {
18924 arg3 = &temp3;
18925 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18926 }
18927 if (obj3) {
18928 arg4 = (int) SWIG_AsInt(obj3);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 {
18932 PyThreadState* __tstate = wxPyBeginAllowThreads();
18933 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18934
18935 wxPyEndAllowThreads(__tstate);
18936 if (PyErr_Occurred()) SWIG_fail;
18937 }
18938 Py_INCREF(Py_None); resultobj = Py_None;
18939 return resultobj;
18940 fail:
18941 return NULL;
18942 }
18943
18944
18945 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18946 PyObject *resultobj;
18947 wxEffects *arg1 = (wxEffects *) 0 ;
18948 wxRect *arg2 = 0 ;
18949 wxDC *arg3 = 0 ;
18950 wxBitmap *arg4 = 0 ;
18951 bool result;
18952 wxRect temp2 ;
18953 PyObject * obj0 = 0 ;
18954 PyObject * obj1 = 0 ;
18955 PyObject * obj2 = 0 ;
18956 PyObject * obj3 = 0 ;
18957 char *kwnames[] = {
18958 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18959 };
18960
18961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18964 {
18965 arg2 = &temp2;
18966 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18967 }
18968 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18969 SWIG_POINTER_EXCEPTION | 0)) == -1)
18970 SWIG_fail;
18971 if (arg3 == NULL) {
18972 PyErr_SetString(PyExc_TypeError,"null reference");
18973 SWIG_fail;
18974 }
18975 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18976 SWIG_POINTER_EXCEPTION | 0)) == -1)
18977 SWIG_fail;
18978 if (arg4 == NULL) {
18979 PyErr_SetString(PyExc_TypeError,"null reference");
18980 SWIG_fail;
18981 }
18982 {
18983 PyThreadState* __tstate = wxPyBeginAllowThreads();
18984 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18985
18986 wxPyEndAllowThreads(__tstate);
18987 if (PyErr_Occurred()) SWIG_fail;
18988 }
18989 {
18990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18991 }
18992 return resultobj;
18993 fail:
18994 return NULL;
18995 }
18996
18997
18998 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18999 PyObject *obj;
19000 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19001 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
19002 Py_INCREF(obj);
19003 return Py_BuildValue((char *)"");
19004 }
19005 static PyMethodDef SwigMethods[] = {
19006 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
19007 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
19008 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
19009 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
19010 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
19011 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
19012 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
19013 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
19014 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
19015 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
19016 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
19017 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
19018 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
19019 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
19020 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
19021 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
19022 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
19023 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
19024 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
19025 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
19026 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
19027 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
19028 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
19029 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
19030 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
19031 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
19032 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
19033 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
19034 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
19035 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
19036 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
19037 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
19038 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
19039 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
19040 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
19041 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
19042 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
19043 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
19044 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
19045 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
19046 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
19047 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
19048 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
19049 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
19050 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
19051 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
19052 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
19053 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
19054 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
19055 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
19056 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
19057 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
19058 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
19059 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
19060 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
19061 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
19062 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
19063 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
19064 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
19065 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
19066 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
19067 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
19068 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
19069 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
19070 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
19076 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19093 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19099 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19100 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19102 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19121 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19129 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19131 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19137 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19152 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19164 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19166 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19179 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19185 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19193 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19201 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19216 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19217 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19226 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19245 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19246 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19259 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19283 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19291 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19292 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19298 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19312 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19320 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19322 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19330 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
19349 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
19357 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
19364 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19384 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19386 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19388 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19389 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19394 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19396 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19401 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19406 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19421 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19422 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19425 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19427 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19428 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19430 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19433 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19434 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19438 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
19439 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19440 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19442 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19443 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19444 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19445 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19447 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19449 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19450 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19452 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19454 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19455 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19456 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19458 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19459 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19460 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19461 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19464 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19465 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19466 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19469 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19470 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19471 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19472 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19473 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19474 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19475 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19476 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19477 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19478 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19479 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19480 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19481 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19482 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19483 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19484 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19485 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19486 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19487 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19488 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19489 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19490 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19491 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19492 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19493 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19494 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19495 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19496 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19497 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19498 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19499 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19500 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19501 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19502 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19503 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19504 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19505 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19506 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19507 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19508 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19509 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19510 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19511 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19512 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19513 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19514 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19515 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19516 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19517 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19518 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19519 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19520 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19521 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19522 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19523 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19524 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19525 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19526 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19527 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19528 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19529 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19530 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19531 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19532 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19533 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19534 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19535 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19536 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19537 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19538 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19539 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19540 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19541 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19542 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19543 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19544 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19545 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19546 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19547 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19548 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19549 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19550 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19551 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19552 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19553 { NULL, NULL }
19554 };
19555
19556
19557 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19558
19559 static void *_p_wxControlTo_p_wxWindow(void *x) {
19560 return (void *)((wxWindow *) ((wxControl *) x));
19561 }
19562 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19563 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19564 }
19565 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19566 return (void *)((wxWindow *) ((wxMenuBar *) x));
19567 }
19568 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19569 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19570 }
19571 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19572 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19573 }
19574 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19575 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19576 }
19577 static void *_p_wxPenTo_p_wxObject(void *x) {
19578 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19579 }
19580 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19581 return (void *)((wxObject *) ((wxRegionIterator *) x));
19582 }
19583 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19584 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19585 }
19586 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19587 return (void *)((wxObject *) ((wxSizerItem *) x));
19588 }
19589 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19590 return (void *)((wxObject *) ((wxColourDatabase *) x));
19591 }
19592 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19593 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19594 }
19595 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19596 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19597 }
19598 static void *_p_wxIconTo_p_wxObject(void *x) {
19599 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19600 }
19601 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19602 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19603 }
19604 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19605 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19606 }
19607 static void *_p_wxSizerTo_p_wxObject(void *x) {
19608 return (void *)((wxObject *) ((wxSizer *) x));
19609 }
19610 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19611 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19612 }
19613 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19614 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19615 }
19616 static void *_p_wxPenListTo_p_wxObject(void *x) {
19617 return (void *)((wxObject *) ((wxPenList *) x));
19618 }
19619 static void *_p_wxEventTo_p_wxObject(void *x) {
19620 return (void *)((wxObject *) ((wxEvent *) x));
19621 }
19622 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19623 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19624 }
19625 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19626 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19627 }
19628 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19629 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19630 }
19631 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19632 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19633 }
19634 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19635 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19636 }
19637 static void *_p_wxDCTo_p_wxObject(void *x) {
19638 return (void *)((wxObject *) ((wxDC *) x));
19639 }
19640 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19641 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19642 }
19643 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19644 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19645 }
19646 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19647 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19648 }
19649 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19650 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19651 }
19652 static void *_p_wxControlTo_p_wxObject(void *x) {
19653 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19654 }
19655 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19656 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19657 }
19658 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19659 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19660 }
19661 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19662 return (void *)((wxObject *) ((wxFSFile *) x));
19663 }
19664 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19665 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19666 }
19667 static void *_p_wxRegionTo_p_wxObject(void *x) {
19668 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19669 }
19670 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19671 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19672 }
19673 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19674 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19675 }
19676 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19677 return (void *)((wxObject *) ((wxGDIObject *) x));
19678 }
19679 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19680 return (void *)((wxObject *) ((wxEffects *) x));
19681 }
19682 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19683 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19684 }
19685 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19686 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19687 }
19688 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19689 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19690 }
19691 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19692 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19693 }
19694 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19695 return (void *)((wxObject *) ((wxMenuItem *) x));
19696 }
19697 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19698 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19699 }
19700 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19701 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19702 }
19703 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19704 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19705 }
19706 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19707 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19708 }
19709 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19710 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19711 }
19712 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19713 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19714 }
19715 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19716 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19717 }
19718 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19719 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19720 }
19721 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19722 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19723 }
19724 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19725 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19726 }
19727 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19728 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19729 }
19730 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19731 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19732 }
19733 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19734 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19735 }
19736 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19737 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19738 }
19739 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19740 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19741 }
19742 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19743 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19744 }
19745 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19746 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19747 }
19748 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19749 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19750 }
19751 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19752 return (void *)((wxObject *) ((wxImageHandler *) x));
19753 }
19754 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19755 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19756 }
19757 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19758 return (void *)((wxObject *) ((wxEvtHandler *) x));
19759 }
19760 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19761 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19762 }
19763 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19764 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19765 }
19766 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19767 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19768 }
19769 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19770 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19771 }
19772 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19773 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19774 }
19775 static void *_p_wxImageTo_p_wxObject(void *x) {
19776 return (void *)((wxObject *) ((wxImage *) x));
19777 }
19778 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19779 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19780 }
19781 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19782 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19783 }
19784 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19785 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19786 }
19787 static void *_p_wxImageListTo_p_wxObject(void *x) {
19788 return (void *)((wxObject *) ((wxImageList *) x));
19789 }
19790 static void *_p_wxCursorTo_p_wxObject(void *x) {
19791 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19792 }
19793 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19794 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19795 }
19796 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19797 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19798 }
19799 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19800 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19801 }
19802 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19803 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19804 }
19805 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19806 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19807 }
19808 static void *_p_wxWindowTo_p_wxObject(void *x) {
19809 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19810 }
19811 static void *_p_wxMenuTo_p_wxObject(void *x) {
19812 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19813 }
19814 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19816 }
19817 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19818 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19819 }
19820 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19821 return (void *)((wxObject *) ((wxBrushList *) x));
19822 }
19823 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19824 return (void *)((wxObject *) ((wxFileSystem *) x));
19825 }
19826 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19827 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19828 }
19829 static void *_p_wxMaskTo_p_wxObject(void *x) {
19830 return (void *)((wxObject *) ((wxMask *) x));
19831 }
19832 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19833 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19834 }
19835 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19836 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19837 }
19838 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19839 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19840 }
19841 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19842 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19843 }
19844 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19845 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19846 }
19847 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19848 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19849 }
19850 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19851 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19852 }
19853 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19854 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19855 }
19856 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19857 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19858 }
19859 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19860 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19861 }
19862 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19863 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19864 }
19865 static void *_p_wxFontTo_p_wxObject(void *x) {
19866 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19867 }
19868 static void *_p_wxBrushTo_p_wxObject(void *x) {
19869 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19870 }
19871 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19872 return (void *)((wxObject *) ((wxMetaFile *) x));
19873 }
19874 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19875 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19876 }
19877 static void *_p_wxColourTo_p_wxObject(void *x) {
19878 return (void *)((wxObject *) ((wxColour *) x));
19879 }
19880 static void *_p_wxFontListTo_p_wxObject(void *x) {
19881 return (void *)((wxObject *) ((wxFontList *) x));
19882 }
19883 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19884 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19885 }
19886 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19887 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19888 }
19889 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19890 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19891 }
19892 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19893 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19894 }
19895 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19896 return (void *)((wxDC *) ((wxScreenDC *) x));
19897 }
19898 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19899 return (void *)((wxDC *) ((wxMirrorDC *) x));
19900 }
19901 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19902 return (void *)((wxDC *) ((wxMemoryDC *) x));
19903 }
19904 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19905 return (void *)((wxDC *) ((wxWindowDC *) x));
19906 }
19907 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19908 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19909 }
19910 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19911 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19912 }
19913 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19914 return (void *)((wxDC *) ((wxClientDC *) x));
19915 }
19916 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19917 return (void *)((wxDC *) ((wxPaintDC *) x));
19918 }
19919 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19920 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19921 }
19922 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19923 return (void *)((wxDC *) ((wxPrinterDC *) x));
19924 }
19925 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19926 return (void *)((wxGDIObject *) ((wxIcon *) x));
19927 }
19928 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19929 return (void *)((wxGDIObject *) ((wxPalette *) x));
19930 }
19931 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19932 return (void *)((wxGDIObject *) ((wxPen *) x));
19933 }
19934 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19935 return (void *)((wxGDIObject *) ((wxFont *) x));
19936 }
19937 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19938 return (void *)((wxGDIObject *) ((wxCursor *) x));
19939 }
19940 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19941 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19942 }
19943 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19944 return (void *)((wxGDIObject *) ((wxRegion *) x));
19945 }
19946 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19947 return (void *)((wxGDIObject *) ((wxBrush *) x));
19948 }
19949 static swig_type_info _swigt__p_wxPostScriptDC[] = {{"_p_wxPostScriptDC", 0, "wxPostScriptDC *", 0, 0, 0, 0},{"_p_wxPostScriptDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19950 static swig_type_info _swigt__p_wxBrush[] = {{"_p_wxBrush", 0, "wxBrush *", 0, 0, 0, 0},{"_p_wxBrush", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19951 static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19952 static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxDC, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19953 static swig_type_info _swigt__p_wxMirrorDC[] = {{"_p_wxMirrorDC", 0, "wxMirrorDC *", 0, 0, 0, 0},{"_p_wxMirrorDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19954 static swig_type_info _swigt__p_byte[] = {{"_p_byte", 0, "unsigned char *|byte *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19955 static swig_type_info _swigt__p_wxPyFontEnumerator[] = {{"_p_wxPyFontEnumerator", 0, "wxPyFontEnumerator *", 0, 0, 0, 0},{"_p_wxPyFontEnumerator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19956 static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19957 static swig_type_info _swigt__p_wxIconLocation[] = {{"_p_wxIconLocation", 0, "wxIconLocation *", 0, 0, 0, 0},{"_p_wxIconLocation", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19958 static swig_type_info _swigt__p_wxImage[] = {{"_p_wxImage", 0, "wxImage *", 0, 0, 0, 0},{"_p_wxImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19959 static swig_type_info _swigt__p_wxMetaFileDC[] = {{"_p_wxMetaFileDC", 0, "wxMetaFileDC *", 0, 0, 0, 0},{"_p_wxMetaFileDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19960 static swig_type_info _swigt__p_wxMask[] = {{"_p_wxMask", 0, "wxMask *", 0, 0, 0, 0},{"_p_wxMask", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19961 static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19962 static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19963 static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19964 static swig_type_info _swigt__p_double[] = {{"_p_double", 0, "double *", 0, 0, 0, 0},{"_p_double", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19965 static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19966 static swig_type_info _swigt__p_wxFontMapper[] = {{"_p_wxFontMapper", 0, "wxFontMapper *", 0, 0, 0, 0},{"_p_wxFontMapper", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19967 static swig_type_info _swigt__p_wxEffects[] = {{"_p_wxEffects", 0, "wxEffects *", 0, 0, 0, 0},{"_p_wxEffects", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19968 static swig_type_info _swigt__p_wxNativeEncodingInfo[] = {{"_p_wxNativeEncodingInfo", 0, "wxNativeEncodingInfo *", 0, 0, 0, 0},{"_p_wxNativeEncodingInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19969 static swig_type_info _swigt__p_wxPalette[] = {{"_p_wxPalette", 0, "wxPalette *", 0, 0, 0, 0},{"_p_wxPalette", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19970 static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19971 static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegionIterator", _p_wxRegionIteratorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColourDatabase", _p_wxColourDatabaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPenList", _p_wxPenListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMask", _p_wxMaskTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxClientDC", _p_wxClientDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMemoryDC", _p_wxMemoryDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDC", _p_wxDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDC", _p_wxWindowDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", _p_wxGDIObjectTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEffects", _p_wxEffectsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPostScriptDC", _p_wxPostScriptDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintDC", _p_wxPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPrinterDC", _p_wxPrinterDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScreenDC", _p_wxScreenDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBufferedDC", _p_wxBufferedDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageList", _p_wxImageListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxMirrorDC", _p_wxMirrorDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEncodingConverter", _p_wxEncodingConverterTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFileDC", _p_wxMetaFileDCTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrushList", _p_wxBrushListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMetaFile", _p_wxMetaFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxColour", _p_wxColourTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFontList", _p_wxFontListTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19972 static swig_type_info _swigt__p_wxRegionIterator[] = {{"_p_wxRegionIterator", 0, "wxRegionIterator *", 0, 0, 0, 0},{"_p_wxRegionIterator", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19973 static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19974 static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19975 static swig_type_info _swigt__p_wxPrinterDC[] = {{"_p_wxPrinterDC", 0, "wxPrinterDC *", 0, 0, 0, 0},{"_p_wxPrinterDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19976 static swig_type_info _swigt__p_wxIconBundle[] = {{"_p_wxIconBundle", 0, "wxIconBundle *", 0, 0, 0, 0},{"_p_wxIconBundle", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19977 static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19978 static swig_type_info _swigt__p_wxDash[] = {{"_p_wxDash", 0, "wxDash *", 0, 0, 0, 0},{"_p_wxDash", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19979 static swig_type_info _swigt__p_wxScreenDC[] = {{"_p_wxScreenDC", 0, "wxScreenDC *", 0, 0, 0, 0},{"_p_wxScreenDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19980 static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19981 static swig_type_info _swigt__p_wxClientDC[] = {{"_p_wxClientDC", 0, "wxClientDC *", 0, 0, 0, 0},{"_p_wxClientDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19982 static swig_type_info _swigt__p_wxBufferedDC[] = {{"_p_wxBufferedDC", 0, "wxBufferedDC *", 0, 0, 0, 0},{"_p_wxBufferedDC", 0, 0, 0, 0, 0, 0},{"_p_wxBufferedPaintDC", _p_wxBufferedPaintDCTo_p_wxBufferedDC, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19983 static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19984 static swig_type_info _swigt__p_unsigned_char[] = {{"_p_unsigned_char", 0, "unsigned char *", 0, 0, 0, 0},{"_p_unsigned_char", 0, 0, 0, 0, 0, 0},{"_p_byte", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19985 static swig_type_info _swigt__p_wxGDIObject[] = {{"_p_wxGDIObject", 0, "wxGDIObject *", 0, 0, 0, 0},{"_p_wxIcon", _p_wxIconTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPen", _p_wxPenTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxFont", _p_wxFontTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxPalette", _p_wxPaletteTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxGDIObject", 0, 0, 0, 0, 0, 0},{"_p_wxCursor", _p_wxCursorTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBitmap", _p_wxBitmapTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxRegion", _p_wxRegionTo_p_wxGDIObject, 0, 0, 0, 0, 0},{"_p_wxBrush", _p_wxBrushTo_p_wxGDIObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19986 static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19987 static swig_type_info _swigt__p_wxLocale[] = {{"_p_wxLocale", 0, "wxLocale *", 0, 0, 0, 0},{"_p_wxLocale", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19988 static swig_type_info _swigt__p_wxRegion[] = {{"_p_wxRegion", 0, "wxRegion *", 0, 0, 0, 0},{"_p_wxRegion", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19989 static swig_type_info _swigt__p_wxLanguageInfo[] = {{"_p_wxLanguageInfo", 0, "wxLanguageInfo *", 0, 0, 0, 0},{"_p_wxLanguageInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19990 static swig_type_info _swigt__p_wxConfigBase[] = {{"_p_wxConfigBase", 0, "wxConfigBase *", 0, 0, 0, 0},{"_p_wxConfigBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19991 static swig_type_info _swigt__p_wxWindowDC[] = {{"_p_wxWindowDC", 0, "wxWindowDC *", 0, 0, 0, 0},{"_p_wxWindowDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19992 static swig_type_info _swigt__p_wxPrintData[] = {{"_p_wxPrintData", 0, "wxPrintData *", 0, 0, 0, 0},{"_p_wxPrintData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19993 static swig_type_info _swigt__p_wxBrushList[] = {{"_p_wxBrushList", 0, "wxBrushList *", 0, 0, 0, 0},{"_p_wxBrushList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19994 static swig_type_info _swigt__p_wxFontList[] = {{"_p_wxFontList", 0, "wxFontList *", 0, 0, 0, 0},{"_p_wxFontList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19995 static swig_type_info _swigt__p_wxPen[] = {{"_p_wxPen", 0, "wxPen *", 0, 0, 0, 0},{"_p_wxPen", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19996 static swig_type_info _swigt__p_wxBufferedPaintDC[] = {{"_p_wxBufferedPaintDC", 0, "wxBufferedPaintDC *", 0, 0, 0, 0},{"_p_wxBufferedPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19997 static swig_type_info _swigt__p_wxPaintDC[] = {{"_p_wxPaintDC", 0, "wxPaintDC *", 0, 0, 0, 0},{"_p_wxPaintDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19998 static swig_type_info _swigt__p_wxPenList[] = {{"_p_wxPenList", 0, "wxPenList *", 0, 0, 0, 0},{"_p_wxPenList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
19999 static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
20000 static swig_type_info _swigt__p_wxMetaFile[] = {{"_p_wxMetaFile", 0, "wxMetaFile *", 0, 0, 0, 0},{"_p_wxMetaFile", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
20001 static swig_type_info _swigt__p_wxNativeFontInfo[] = {{"_p_wxNativeFontInfo", 0, "wxNativeFontInfo *", 0, 0, 0, 0},{"_p_wxNativeFontInfo", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
20002 static swig_type_info _swigt__p_wxEncodingConverter[] = {{"_p_wxEncodingConverter", 0, "wxEncodingConverter *", 0, 0, 0, 0},{"_p_wxEncodingConverter", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
20003 static swig_type_info _swigt__p_wxColourDatabase[] = {{"_p_wxColourDatabase", 0, "wxColourDatabase *", 0, 0, 0, 0},{"_p_wxColourDatabase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}};
20004
20005 static swig_type_info *swig_types_initial[] = {
20006 _swigt__p_wxPostScriptDC,
20007 _swigt__p_wxBrush,
20008 _swigt__p_wxColour,
20009 _swigt__p_wxDC,
20010 _swigt__p_wxMirrorDC,
20011 _swigt__p_byte,
20012 _swigt__p_wxPyFontEnumerator,
20013 _swigt__p_char,
20014 _swigt__p_wxIconLocation,
20015 _swigt__p_wxImage,
20016 _swigt__p_wxMetaFileDC,
20017 _swigt__p_wxMask,
20018 _swigt__p_wxSize,
20019 _swigt__p_wxFont,
20020 _swigt__p_wxWindow,
20021 _swigt__p_double,
20022 _swigt__p_wxMemoryDC,
20023 _swigt__p_wxFontMapper,
20024 _swigt__p_wxEffects,
20025 _swigt__p_wxNativeEncodingInfo,
20026 _swigt__p_wxPalette,
20027 _swigt__p_wxBitmap,
20028 _swigt__p_wxObject,
20029 _swigt__p_wxRegionIterator,
20030 _swigt__p_wxRect,
20031 _swigt__p_wxString,
20032 _swigt__p_wxPrinterDC,
20033 _swigt__p_wxIconBundle,
20034 _swigt__p_wxPoint,
20035 _swigt__p_wxDash,
20036 _swigt__p_wxScreenDC,
20037 _swigt__p_wxCursor,
20038 _swigt__p_wxClientDC,
20039 _swigt__p_wxBufferedDC,
20040 _swigt__p_wxImageList,
20041 _swigt__p_unsigned_char,
20042 _swigt__p_wxGDIObject,
20043 _swigt__p_wxIcon,
20044 _swigt__p_wxLocale,
20045 _swigt__p_wxRegion,
20046 _swigt__p_wxLanguageInfo,
20047 _swigt__p_wxConfigBase,
20048 _swigt__p_wxWindowDC,
20049 _swigt__p_wxPrintData,
20050 _swigt__p_wxBrushList,
20051 _swigt__p_wxFontList,
20052 _swigt__p_wxPen,
20053 _swigt__p_wxBufferedPaintDC,
20054 _swigt__p_wxPaintDC,
20055 _swigt__p_wxPenList,
20056 _swigt__p_int,
20057 _swigt__p_wxMetaFile,
20058 _swigt__p_wxNativeFontInfo,
20059 _swigt__p_wxEncodingConverter,
20060 _swigt__p_wxColourDatabase,
20061 0
20062 };
20063
20064
20065 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20066
20067 static swig_const_info swig_const_table[] = {
20068 {0}};
20069
20070 #ifdef __cplusplus
20071 }
20072 #endif
20073
20074 #ifdef __cplusplus
20075 extern "C"
20076 #endif
20077 SWIGEXPORT(void) SWIG_init(void) {
20078 static PyObject *SWIG_globals = 0;
20079 static int typeinit = 0;
20080 PyObject *m, *d;
20081 int i;
20082 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20083 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20084 d = PyModule_GetDict(m);
20085
20086 if (!typeinit) {
20087 for (i = 0; swig_types_initial[i]; i++) {
20088 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20089 }
20090 typeinit = 1;
20091 }
20092 SWIG_InstallConstants(d,swig_const_table);
20093
20094 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20095 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20096 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20097 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20098 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20099 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20100 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20101 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20102 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20103 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20104 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20105 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20106 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20107 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20108 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20109 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20110 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20111 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20112 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20113 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20114 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20115 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20116 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20117 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20118 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20119 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20120 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20121 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20122 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20123 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20124 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20125 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20126 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20127 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20128 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20129 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20130 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20131 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20132 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20133 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20134 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20135 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20136 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20137 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20138 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20139 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20140 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20141 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20142 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20143 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20144 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20145 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20146 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20147 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20148 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20149 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20150 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20151 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20152 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20153 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20154 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20155 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20156 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20157 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20158 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20159 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20160 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20161 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20162 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20163 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20164 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20165 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20166 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20167 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20168 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20169 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20170 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20171 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20172 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20173 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20174 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20175 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20176 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20177 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20178 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20179 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20180 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20181 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20182 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20183 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20184 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20185 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20186 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20187 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20188 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20189 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20190 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20191 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20192 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20193 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20194 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20195 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20196 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20197 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20198 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20199 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20200 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20201 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20202 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20203 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20204 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20205 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20206 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20207 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20208 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20209 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20210 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20211 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20212 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20213 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20214 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20215 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20216 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20217 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20218 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20219 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20220 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20221
20222 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20223
20224 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20225 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20226 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20227 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20228 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20229 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20230 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20231 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20232 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20233 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20234 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20235 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20236 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20237 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20238 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20239 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20240 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20241 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20242 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20243 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20244 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20245 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20246 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20247 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20248 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20249 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20250 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20251 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20252 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20253 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20254 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20255 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20256 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20257 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20258 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20259 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20260 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20261 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20262 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20263 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20264 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20265 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20266 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20267 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20268 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20269 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20270 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20271 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20272 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20273 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20274 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20275 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20276 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20277 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20278 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20279 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20280 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20281 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20282 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20283 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20284 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20285 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20286 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20287 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20288 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20289 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20290 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20291 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20292 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20293 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20294 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20295 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20296 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20297 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20298 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20299 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20300 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20301 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20302 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20303 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20304 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20305 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20306 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20307 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20308 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20309 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20310 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20311 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20312 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20313 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20314 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20315 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20316 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20317 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20318 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20319 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20320 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20321 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20322 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20323 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20324 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20325 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20326 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20327 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20328 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20329 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20330 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20331 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20332 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20333 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20334 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20335 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20336 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20337 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20338 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20339 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20340 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20341 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20342 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20343 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20344 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20345 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20346 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20347 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20348 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20349 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20350 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20351 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20352 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20353 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20354 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20355 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20356 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20357 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20358 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20359 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20360 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20361 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20362 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20363 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20364 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20365 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20366 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20367 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20368 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20369 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20370 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20371 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20372 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20373 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20374 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20375 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20376 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20377 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20378 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20379 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20380 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20381 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20382 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20383 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20384 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20385 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20386 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20387 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20388 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20389 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20390 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20391 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20392 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20393 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20394 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20395 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20396 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20397 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20398 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20399 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20400 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20401 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20402 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20403 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20404 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20405 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20406 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20407 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20408 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20409 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20410 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20411 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20412 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20413 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20414 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20415 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20416 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20417 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20418 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20419 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20420 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20421 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20422 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20423 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20424 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20425 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20426 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20427 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20428 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20429 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20430 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20431 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20432 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20433 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20434 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20435 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20436 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20437 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20438 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20439 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20440 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20441 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20442 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20443 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20444 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20445 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20446 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20447 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20448 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20449 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20450 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20451 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20452 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20453 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20454 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20455 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20456 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20457 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20458 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20459 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20460 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20461 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20462 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20463 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20464 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20465 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20466 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20467 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20468 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20469 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20470 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20471 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20472 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20473 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20474 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20475 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20476 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20477 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20478 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20479 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20480 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20481 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20482 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20483 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20484 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20485 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20486 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20487 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20488 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20489 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20490 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20491 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20492 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20493 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20494 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20495 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20496 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20497 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20498 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20499 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20500 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20501 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20502 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20503 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20504 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20505 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20506 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20507 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20508 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20509 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20510 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20511 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20512 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20513 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20514 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20515 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20516 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20517 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20518 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20519 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20520 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20521 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20522 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20523 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20524
20525 // Work around a chicken/egg problem in drawlist.cpp
20526 wxPyDrawList_SetAPIPtr();
20527
20528 }
20529