]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * 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 SWIGSTATICINLINE(short)
569 SWIG_AsShort(PyObject *obj)
570 {
571 return swig_numeric_cast(short,
572 SWIG_CheckLongInRange(SWIG_AsLong(obj),
573 "short", SHRT_MIN, SHRT_MAX));
574 }
575
576
577 SWIGSTATICINLINE(int)
578 SWIG_CheckShort(PyObject* obj)
579 {
580 SWIG_AsShort(obj);
581 if (PyErr_Occurred()) {
582 PyErr_Clear();
583 return 0;
584 } else {
585 return 1;
586 }
587 }
588
589
590 #include <wx/image.h>
591
592 static char** ConvertListOfStrings(PyObject* listOfStrings) {
593 char** cArray = NULL;
594 int count;
595
596 if (!PyList_Check(listOfStrings)) {
597 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
598 return NULL;
599 }
600 count = PyList_Size(listOfStrings);
601 cArray = new char*[count];
602
603 for(int x=0; x<count; x++) {
604 // TODO: Need some validation and error checking here
605 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
606 }
607 return cArray;
608 }
609
610
611 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
612 char** cArray = NULL;
613 wxBitmap* bmp;
614
615 cArray = ConvertListOfStrings(listOfStrings);
616 if (! cArray)
617 return NULL;
618 bmp = new wxBitmap(cArray);
619 delete [] cArray;
620 return bmp;
621 }
622 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
623 char* buf;
624 int length;
625 PyString_AsStringAndSize(bits, &buf, &length);
626 return new wxBitmap(buf, width, height, depth);
627 }
628 wxSize wxBitmap_GetSize(wxBitmap *self){
629 wxSize size(self->GetWidth(), self->GetHeight());
630 return size;
631 }
632 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
633 wxMask *mask = new wxMask(*self, colour);
634 self->SetMask(mask);
635 }
636 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
637 self->SetWidth(size.x);
638 self->SetHeight(size.y);
639 }
640 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
641 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
642 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
643 if ( !colour.Ok() )
644 return new wxMask(bitmap, *wxBLACK);
645 else
646 return new wxMask(bitmap, colour);
647 }
648
649 #include <wx/iconbndl.h>
650
651 wxIcon *new_wxIcon(wxBitmap const &bmp){
652 wxIcon* icon = new wxIcon();
653 icon->CopyFromBitmap(bmp);
654 return icon;
655 }
656 wxIcon *new_wxIcon(PyObject *listOfStrings){
657 char** cArray = NULL;
658 wxIcon* icon;
659
660 cArray = ConvertListOfStrings(listOfStrings);
661 if (! cArray)
662 return NULL;
663 icon = new wxIcon(cArray);
664 delete [] cArray;
665 return icon;
666 }
667 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
668
669
670
671 return new wxIconLocation(*filename);
672
673 }
674 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
675
676
677
678 // do nothing
679
680 }
681 int wxIconLocation_GetIndex(wxIconLocation *self){
682
683
684
685 return -1;
686
687 }
688
689 SWIGSTATICINLINE(int)
690 SWIG_CheckLong(PyObject* obj)
691 {
692 SWIG_AsLong(obj);
693 if (PyErr_Occurred()) {
694 PyErr_Clear();
695 return 0;
696 } else {
697 return 1;
698 }
699 }
700
701 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
702 #ifdef __WXGTK__
703 wxCHECK_MSG(False, NULL,
704 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
705 #else
706 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
707 #endif
708 }
709
710
711 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
712 wxPyRaiseNotImplemented();
713 return NULL;
714 }
715 void wxRegionIterator_Next(wxRegionIterator *self){
716 (*self) ++;
717 }
718 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
719 return self->operator bool();
720 }
721
722 #include <wx/fontutil.h>
723 #include <wx/fontmap.h>
724 #include <wx/fontenum.h>
725
726 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
727 return self->ToString();
728 }
729
730 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
731 static wxNativeEncodingInfo info;
732 if ( wxGetNativeFontEncoding(encoding, &info) )
733 return &info;
734 else
735 return NULL;
736 }
737
738 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
739 wxFontEncoding alt_enc;
740 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
741 return PyInt_FromLong(alt_enc);
742 else {
743 Py_INCREF(Py_None);
744 return Py_None;
745 }
746 }
747 wxFont *new_wxFont(wxString const &info){
748 wxNativeFontInfo nfi;
749 nfi.FromString(info);
750 return new wxFont(nfi);
751 }
752 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
753 return wxFont::New(pointSize, family, flags, face, encoding);
754 }
755 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
756 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
757
758 class wxPyFontEnumerator : public wxFontEnumerator {
759 public:
760 wxPyFontEnumerator() {}
761 ~wxPyFontEnumerator() {}
762
763 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
764 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
765
766 PYPRIVATE;
767 };
768
769 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
770 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
771
772
773 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
774 wxArrayString* arr = self->GetEncodings();
775 return wxArrayString2PyList_helper(*arr);
776 }
777 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
778 wxArrayString* arr = self->GetFacenames();
779 return wxArrayString2PyList_helper(*arr);
780 }
781
782
783 wxLocale *new_wxLocale(int language,int flags){
784 if (language == -1)
785 return new wxLocale();
786 else
787 return new wxLocale(language, flags);
788 }
789
790 #include "wx/wxPython/pydrawxxx.h"
791
792 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
793 wxColour col;
794 self->GetPixel(x, y, &col);
795 return col;
796 }
797 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
798 wxColour col;
799 self->GetPixel(pt, &col);
800 return col;
801 }
802
803 SWIGSTATICINLINE(double)
804 SWIG_AsDouble(PyObject *obj)
805 {
806 if (PyNumber_Check(obj))
807 return PyFloat_AsDouble(obj);
808 else {
809 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
810 obj->ob_type->tp_name);
811 PyErr_SetObject(PyExc_TypeError, errmsg);
812 Py_DECREF(errmsg);
813 return 0;
814 }
815 }
816
817
818 SWIGSTATICINLINE(int)
819 SWIG_CheckDouble(PyObject* obj)
820 {
821 SWIG_AsDouble(obj);
822 if (PyErr_Occurred()) {
823 PyErr_Clear();
824 return 0;
825 } else {
826 return 1;
827 }
828 }
829
830 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
831 wxRect rv;
832 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
833 return rv;
834 }
835 wxRect wxDC_GetClippingRect(wxDC *self){
836 wxRect rect;
837 self->GetClippingBox(rect);
838 return rect;
839 }
840 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
841 wxArrayInt widths;
842 self->GetPartialTextExtents(text, widths);
843 return widths;
844 }
845 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
846 self->SetLogicalOrigin(point.x, point.y);
847 }
848 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
849 self->SetDeviceOrigin(point.x, point.y);
850 }
851 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
852 self->CalcBoundingBox(point.x, point.y);
853 }
854 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
855 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
856 }
857 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
858 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
859 }
860 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
861 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
862 }
863 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
864 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
865 }
866 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
867 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
868 }
869 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
870 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
871 }
872
873 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
874 *x1 = dc->MinX();
875 *y1 = dc->MinY();
876 *x2 = dc->MaxX();
877 *y2 = dc->MaxY();
878 }
879
880
881 #include <wx/dcbuffer.h>
882
883
884 #include <wx/dcps.h>
885
886
887 #include <wx/metafile.h>
888
889
890
891 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
892 self->AddColour(name, wxColour(red, green, blue));
893 }
894
895 #include <wx/effects.h>
896
897 #ifdef __cplusplus
898 extern "C" {
899 #endif
900 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
901 PyObject *resultobj;
902 wxGDIObject *result;
903 char *kwnames[] = {
904 NULL
905 };
906
907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
908 {
909 if (!wxPyCheckForApp()) SWIG_fail;
910 PyThreadState* __tstate = wxPyBeginAllowThreads();
911 result = (wxGDIObject *)new wxGDIObject();
912
913 wxPyEndAllowThreads(__tstate);
914 if (PyErr_Occurred()) SWIG_fail;
915 }
916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
917 return resultobj;
918 fail:
919 return NULL;
920 }
921
922
923 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject *resultobj;
925 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
926 PyObject * obj0 = 0 ;
927 char *kwnames[] = {
928 (char *) "self", NULL
929 };
930
931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
934 {
935 PyThreadState* __tstate = wxPyBeginAllowThreads();
936 delete arg1;
937
938 wxPyEndAllowThreads(__tstate);
939 if (PyErr_Occurred()) SWIG_fail;
940 }
941 Py_INCREF(Py_None); resultobj = Py_None;
942 return resultobj;
943 fail:
944 return NULL;
945 }
946
947
948 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
949 PyObject *resultobj;
950 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
951 bool result;
952 PyObject * obj0 = 0 ;
953 char *kwnames[] = {
954 (char *) "self", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (bool)(arg1)->GetVisible();
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 {
968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
969 }
970 return resultobj;
971 fail:
972 return NULL;
973 }
974
975
976 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
979 bool arg2 ;
980 PyObject * obj0 = 0 ;
981 PyObject * obj1 = 0 ;
982 char *kwnames[] = {
983 (char *) "self",(char *) "visible", NULL
984 };
985
986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
989 arg2 = (bool) SWIG_AsBool(obj1);
990 if (PyErr_Occurred()) SWIG_fail;
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 (arg1)->SetVisible(arg2);
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) SWIG_fail;
997 }
998 Py_INCREF(Py_None); resultobj = Py_None;
999 return resultobj;
1000 fail:
1001 return NULL;
1002 }
1003
1004
1005 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject *resultobj;
1007 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1008 bool result;
1009 PyObject * obj0 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1017 {
1018 PyThreadState* __tstate = wxPyBeginAllowThreads();
1019 result = (bool)(arg1)->IsNull();
1020
1021 wxPyEndAllowThreads(__tstate);
1022 if (PyErr_Occurred()) SWIG_fail;
1023 }
1024 {
1025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1026 }
1027 return resultobj;
1028 fail:
1029 return NULL;
1030 }
1031
1032
1033 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1034 PyObject *obj;
1035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1036 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1037 Py_INCREF(obj);
1038 return Py_BuildValue((char *)"");
1039 }
1040 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1041 PyObject *resultobj;
1042 byte arg1 = (byte) 0 ;
1043 byte arg2 = (byte) 0 ;
1044 byte arg3 = (byte) 0 ;
1045 wxColour *result;
1046 PyObject * obj0 = 0 ;
1047 PyObject * obj1 = 0 ;
1048 PyObject * obj2 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "red",(char *) "green",(char *) "blue", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1054 if (obj0) {
1055 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1056 if (PyErr_Occurred()) SWIG_fail;
1057 }
1058 if (obj1) {
1059 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 if (obj2) {
1063 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1064 if (PyErr_Occurred()) SWIG_fail;
1065 }
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1074 return resultobj;
1075 fail:
1076 return NULL;
1077 }
1078
1079
1080 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1081 PyObject *resultobj;
1082 wxString *arg1 = 0 ;
1083 wxColour *result;
1084 bool temp1 = False ;
1085 PyObject * obj0 = 0 ;
1086 char *kwnames[] = {
1087 (char *) "colorName", NULL
1088 };
1089
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1091 {
1092 arg1 = wxString_in_helper(obj0);
1093 if (arg1 == NULL) SWIG_fail;
1094 temp1 = True;
1095 }
1096 {
1097 PyThreadState* __tstate = wxPyBeginAllowThreads();
1098 result = (wxColour *)new wxColour((wxString const &)*arg1);
1099
1100 wxPyEndAllowThreads(__tstate);
1101 if (PyErr_Occurred()) SWIG_fail;
1102 }
1103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1104 {
1105 if (temp1)
1106 delete arg1;
1107 }
1108 return resultobj;
1109 fail:
1110 {
1111 if (temp1)
1112 delete arg1;
1113 }
1114 return NULL;
1115 }
1116
1117
1118 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1119 PyObject *resultobj;
1120 unsigned long arg1 ;
1121 wxColour *result;
1122 PyObject * obj0 = 0 ;
1123 char *kwnames[] = {
1124 (char *) "colRGB", NULL
1125 };
1126
1127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1128 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 {
1131 PyThreadState* __tstate = wxPyBeginAllowThreads();
1132 result = (wxColour *)new wxColour(arg1);
1133
1134 wxPyEndAllowThreads(__tstate);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
1137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1138 return resultobj;
1139 fail:
1140 return NULL;
1141 }
1142
1143
1144 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1145 PyObject *resultobj;
1146 wxColour *arg1 = (wxColour *) 0 ;
1147 PyObject * obj0 = 0 ;
1148 char *kwnames[] = {
1149 (char *) "self", NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1155 {
1156 PyThreadState* __tstate = wxPyBeginAllowThreads();
1157 delete arg1;
1158
1159 wxPyEndAllowThreads(__tstate);
1160 if (PyErr_Occurred()) SWIG_fail;
1161 }
1162 Py_INCREF(Py_None); resultobj = Py_None;
1163 return resultobj;
1164 fail:
1165 return NULL;
1166 }
1167
1168
1169 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxColour *arg1 = (wxColour *) 0 ;
1172 byte result;
1173 PyObject * obj0 = 0 ;
1174 char *kwnames[] = {
1175 (char *) "self", NULL
1176 };
1177
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1181 {
1182 PyThreadState* __tstate = wxPyBeginAllowThreads();
1183 result = (byte)(arg1)->Red();
1184
1185 wxPyEndAllowThreads(__tstate);
1186 if (PyErr_Occurred()) SWIG_fail;
1187 }
1188 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1189 return resultobj;
1190 fail:
1191 return NULL;
1192 }
1193
1194
1195 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1196 PyObject *resultobj;
1197 wxColour *arg1 = (wxColour *) 0 ;
1198 byte result;
1199 PyObject * obj0 = 0 ;
1200 char *kwnames[] = {
1201 (char *) "self", NULL
1202 };
1203
1204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1207 {
1208 PyThreadState* __tstate = wxPyBeginAllowThreads();
1209 result = (byte)(arg1)->Green();
1210
1211 wxPyEndAllowThreads(__tstate);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1215 return resultobj;
1216 fail:
1217 return NULL;
1218 }
1219
1220
1221 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1222 PyObject *resultobj;
1223 wxColour *arg1 = (wxColour *) 0 ;
1224 byte result;
1225 PyObject * obj0 = 0 ;
1226 char *kwnames[] = {
1227 (char *) "self", NULL
1228 };
1229
1230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1233 {
1234 PyThreadState* __tstate = wxPyBeginAllowThreads();
1235 result = (byte)(arg1)->Blue();
1236
1237 wxPyEndAllowThreads(__tstate);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1241 return resultobj;
1242 fail:
1243 return NULL;
1244 }
1245
1246
1247 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1248 PyObject *resultobj;
1249 wxColour *arg1 = (wxColour *) 0 ;
1250 bool result;
1251 PyObject * obj0 = 0 ;
1252 char *kwnames[] = {
1253 (char *) "self", NULL
1254 };
1255
1256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1259 {
1260 PyThreadState* __tstate = wxPyBeginAllowThreads();
1261 result = (bool)(arg1)->Ok();
1262
1263 wxPyEndAllowThreads(__tstate);
1264 if (PyErr_Occurred()) SWIG_fail;
1265 }
1266 {
1267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1268 }
1269 return resultobj;
1270 fail:
1271 return NULL;
1272 }
1273
1274
1275 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1276 PyObject *resultobj;
1277 wxColour *arg1 = (wxColour *) 0 ;
1278 byte arg2 ;
1279 byte arg3 ;
1280 byte arg4 ;
1281 PyObject * obj0 = 0 ;
1282 PyObject * obj1 = 0 ;
1283 PyObject * obj2 = 0 ;
1284 PyObject * obj3 = 0 ;
1285 char *kwnames[] = {
1286 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1287 };
1288
1289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1292 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1293 if (PyErr_Occurred()) SWIG_fail;
1294 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1295 if (PyErr_Occurred()) SWIG_fail;
1296 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1297 if (PyErr_Occurred()) SWIG_fail;
1298 {
1299 PyThreadState* __tstate = wxPyBeginAllowThreads();
1300 (arg1)->Set(arg2,arg3,arg4);
1301
1302 wxPyEndAllowThreads(__tstate);
1303 if (PyErr_Occurred()) SWIG_fail;
1304 }
1305 Py_INCREF(Py_None); resultobj = Py_None;
1306 return resultobj;
1307 fail:
1308 return NULL;
1309 }
1310
1311
1312 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1313 PyObject *resultobj;
1314 wxColour *arg1 = (wxColour *) 0 ;
1315 unsigned long arg2 ;
1316 PyObject * obj0 = 0 ;
1317 PyObject * obj1 = 0 ;
1318 char *kwnames[] = {
1319 (char *) "self",(char *) "colRGB", NULL
1320 };
1321
1322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1325 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1326 if (PyErr_Occurred()) SWIG_fail;
1327 {
1328 PyThreadState* __tstate = wxPyBeginAllowThreads();
1329 (arg1)->Set(arg2);
1330
1331 wxPyEndAllowThreads(__tstate);
1332 if (PyErr_Occurred()) SWIG_fail;
1333 }
1334 Py_INCREF(Py_None); resultobj = Py_None;
1335 return resultobj;
1336 fail:
1337 return NULL;
1338 }
1339
1340
1341 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1342 PyObject *resultobj;
1343 wxColour *arg1 = (wxColour *) 0 ;
1344 wxString *arg2 = 0 ;
1345 bool temp2 = False ;
1346 PyObject * obj0 = 0 ;
1347 PyObject * obj1 = 0 ;
1348 char *kwnames[] = {
1349 (char *) "self",(char *) "colourName", NULL
1350 };
1351
1352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1355 {
1356 arg2 = wxString_in_helper(obj1);
1357 if (arg2 == NULL) SWIG_fail;
1358 temp2 = True;
1359 }
1360 {
1361 PyThreadState* __tstate = wxPyBeginAllowThreads();
1362 (arg1)->InitFromName((wxString const &)*arg2);
1363
1364 wxPyEndAllowThreads(__tstate);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 }
1367 Py_INCREF(Py_None); resultobj = Py_None;
1368 {
1369 if (temp2)
1370 delete arg2;
1371 }
1372 return resultobj;
1373 fail:
1374 {
1375 if (temp2)
1376 delete arg2;
1377 }
1378 return NULL;
1379 }
1380
1381
1382 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1383 PyObject *resultobj;
1384 wxColour *arg1 = (wxColour *) 0 ;
1385 long result;
1386 PyObject * obj0 = 0 ;
1387 char *kwnames[] = {
1388 (char *) "self", NULL
1389 };
1390
1391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 result = (long)((wxColour const *)arg1)->GetPixel();
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 resultobj = SWIG_FromLong((long)result);
1402 return resultobj;
1403 fail:
1404 return NULL;
1405 }
1406
1407
1408 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1409 PyObject *resultobj;
1410 wxColour *arg1 = (wxColour *) 0 ;
1411 wxColour *arg2 = 0 ;
1412 bool result;
1413 wxColour temp2 ;
1414 PyObject * obj0 = 0 ;
1415 PyObject * obj1 = 0 ;
1416 char *kwnames[] = {
1417 (char *) "self",(char *) "colour", NULL
1418 };
1419
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1423 {
1424 arg2 = &temp2;
1425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1426 }
1427 {
1428 PyThreadState* __tstate = wxPyBeginAllowThreads();
1429 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1430
1431 wxPyEndAllowThreads(__tstate);
1432 if (PyErr_Occurred()) SWIG_fail;
1433 }
1434 {
1435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1436 }
1437 return resultobj;
1438 fail:
1439 return NULL;
1440 }
1441
1442
1443 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 wxColour *arg1 = (wxColour *) 0 ;
1446 wxColour *arg2 = 0 ;
1447 bool result;
1448 wxColour temp2 ;
1449 PyObject * obj0 = 0 ;
1450 PyObject * obj1 = 0 ;
1451 char *kwnames[] = {
1452 (char *) "self",(char *) "colour", NULL
1453 };
1454
1455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1458 {
1459 arg2 = &temp2;
1460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1461 }
1462 {
1463 PyThreadState* __tstate = wxPyBeginAllowThreads();
1464 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1465
1466 wxPyEndAllowThreads(__tstate);
1467 if (PyErr_Occurred()) SWIG_fail;
1468 }
1469 {
1470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1471 }
1472 return resultobj;
1473 fail:
1474 return NULL;
1475 }
1476
1477
1478 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1479 PyObject *resultobj;
1480 wxColour *arg1 = (wxColour *) 0 ;
1481 PyObject *result;
1482 PyObject * obj0 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "self", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1490 {
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = (PyObject *)wxColour_Get(arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 resultobj = result;
1498 return resultobj;
1499 fail:
1500 return NULL;
1501 }
1502
1503
1504 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1505 PyObject *resultobj;
1506 wxColour *arg1 = (wxColour *) 0 ;
1507 unsigned long result;
1508 PyObject * obj0 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "self", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1516 {
1517 PyThreadState* __tstate = wxPyBeginAllowThreads();
1518 result = (unsigned long)wxColour_GetRGB(arg1);
1519
1520 wxPyEndAllowThreads(__tstate);
1521 if (PyErr_Occurred()) SWIG_fail;
1522 }
1523 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1524 return resultobj;
1525 fail:
1526 return NULL;
1527 }
1528
1529
1530 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1531 PyObject *obj;
1532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1533 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1534 Py_INCREF(obj);
1535 return Py_BuildValue((char *)"");
1536 }
1537 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject *resultobj;
1539 int arg1 ;
1540 unsigned char *arg2 = (unsigned char *) 0 ;
1541 unsigned char *arg3 = (unsigned char *) 0 ;
1542 unsigned char *arg4 = (unsigned char *) 0 ;
1543 wxPalette *result;
1544 PyObject * obj0 = 0 ;
1545 PyObject * obj1 = 0 ;
1546 PyObject * obj2 = 0 ;
1547 PyObject * obj3 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1553 arg1 = (int) SWIG_AsInt(obj0);
1554 if (PyErr_Occurred()) SWIG_fail;
1555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1557 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1559 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1561 {
1562 if (!wxPyCheckForApp()) SWIG_fail;
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1565
1566 wxPyEndAllowThreads(__tstate);
1567 if (PyErr_Occurred()) SWIG_fail;
1568 }
1569 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1570 return resultobj;
1571 fail:
1572 return NULL;
1573 }
1574
1575
1576 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject *resultobj;
1578 wxPalette *arg1 = (wxPalette *) 0 ;
1579 PyObject * obj0 = 0 ;
1580 char *kwnames[] = {
1581 (char *) "self", NULL
1582 };
1583
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1587 {
1588 PyThreadState* __tstate = wxPyBeginAllowThreads();
1589 delete arg1;
1590
1591 wxPyEndAllowThreads(__tstate);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 }
1594 Py_INCREF(Py_None); resultobj = Py_None;
1595 return resultobj;
1596 fail:
1597 return NULL;
1598 }
1599
1600
1601 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject *resultobj;
1603 wxPalette *arg1 = (wxPalette *) 0 ;
1604 byte arg2 ;
1605 byte arg3 ;
1606 byte arg4 ;
1607 int result;
1608 PyObject * obj0 = 0 ;
1609 PyObject * obj1 = 0 ;
1610 PyObject * obj2 = 0 ;
1611 PyObject * obj3 = 0 ;
1612 char *kwnames[] = {
1613 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1614 };
1615
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1619 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1620 if (PyErr_Occurred()) SWIG_fail;
1621 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1624 if (PyErr_Occurred()) SWIG_fail;
1625 {
1626 PyThreadState* __tstate = wxPyBeginAllowThreads();
1627 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1628
1629 wxPyEndAllowThreads(__tstate);
1630 if (PyErr_Occurred()) SWIG_fail;
1631 }
1632 resultobj = SWIG_FromInt((int)result);
1633 return resultobj;
1634 fail:
1635 return NULL;
1636 }
1637
1638
1639 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1640 PyObject *resultobj;
1641 wxPalette *arg1 = (wxPalette *) 0 ;
1642 int arg2 ;
1643 byte *arg3 = (byte *) 0 ;
1644 byte *arg4 = (byte *) 0 ;
1645 byte *arg5 = (byte *) 0 ;
1646 bool result;
1647 byte temp3 ;
1648 byte temp4 ;
1649 byte temp5 ;
1650 PyObject * obj0 = 0 ;
1651 PyObject * obj1 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self",(char *) "pixel", NULL
1654 };
1655
1656 arg3 = &temp3;
1657 arg4 = &temp4;
1658 arg5 = &temp5;
1659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1662 arg2 = (int) SWIG_AsInt(obj1);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 {
1665 PyThreadState* __tstate = wxPyBeginAllowThreads();
1666 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1667
1668 wxPyEndAllowThreads(__tstate);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 }
1671 {
1672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1673 }
1674 {
1675 PyObject *o = PyInt_FromLong((long) (*arg3));
1676 resultobj = t_output_helper(resultobj,o);
1677 }
1678 {
1679 PyObject *o = PyInt_FromLong((long) (*arg4));
1680 resultobj = t_output_helper(resultobj,o);
1681 }
1682 {
1683 PyObject *o = PyInt_FromLong((long) (*arg5));
1684 resultobj = t_output_helper(resultobj,o);
1685 }
1686 return resultobj;
1687 fail:
1688 return NULL;
1689 }
1690
1691
1692 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject *resultobj;
1694 wxPalette *arg1 = (wxPalette *) 0 ;
1695 bool result;
1696 PyObject * obj0 = 0 ;
1697 char *kwnames[] = {
1698 (char *) "self", NULL
1699 };
1700
1701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1704 {
1705 PyThreadState* __tstate = wxPyBeginAllowThreads();
1706 result = (bool)(arg1)->Ok();
1707
1708 wxPyEndAllowThreads(__tstate);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 }
1711 {
1712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1713 }
1714 return resultobj;
1715 fail:
1716 return NULL;
1717 }
1718
1719
1720 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1721 PyObject *obj;
1722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1723 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1724 Py_INCREF(obj);
1725 return Py_BuildValue((char *)"");
1726 }
1727 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1728 PyObject *resultobj;
1729 wxColour *arg1 = 0 ;
1730 int arg2 = (int) 1 ;
1731 int arg3 = (int) wxSOLID ;
1732 wxPen *result;
1733 wxColour temp1 ;
1734 PyObject * obj0 = 0 ;
1735 PyObject * obj1 = 0 ;
1736 PyObject * obj2 = 0 ;
1737 char *kwnames[] = {
1738 (char *) "colour",(char *) "width",(char *) "style", NULL
1739 };
1740
1741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1742 {
1743 arg1 = &temp1;
1744 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1745 }
1746 if (obj1) {
1747 arg2 = (int) SWIG_AsInt(obj1);
1748 if (PyErr_Occurred()) SWIG_fail;
1749 }
1750 if (obj2) {
1751 arg3 = (int) SWIG_AsInt(obj2);
1752 if (PyErr_Occurred()) SWIG_fail;
1753 }
1754 {
1755 if (!wxPyCheckForApp()) SWIG_fail;
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1758
1759 wxPyEndAllowThreads(__tstate);
1760 if (PyErr_Occurred()) SWIG_fail;
1761 }
1762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1763 return resultobj;
1764 fail:
1765 return NULL;
1766 }
1767
1768
1769 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1770 PyObject *resultobj;
1771 wxPen *arg1 = (wxPen *) 0 ;
1772 PyObject * obj0 = 0 ;
1773 char *kwnames[] = {
1774 (char *) "self", NULL
1775 };
1776
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1780 {
1781 PyThreadState* __tstate = wxPyBeginAllowThreads();
1782 delete arg1;
1783
1784 wxPyEndAllowThreads(__tstate);
1785 if (PyErr_Occurred()) SWIG_fail;
1786 }
1787 Py_INCREF(Py_None); resultobj = Py_None;
1788 return resultobj;
1789 fail:
1790 return NULL;
1791 }
1792
1793
1794 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject *resultobj;
1796 wxPen *arg1 = (wxPen *) 0 ;
1797 int result;
1798 PyObject * obj0 = 0 ;
1799 char *kwnames[] = {
1800 (char *) "self", NULL
1801 };
1802
1803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 result = (int)(arg1)->GetCap();
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 }
1813 resultobj = SWIG_FromInt((int)result);
1814 return resultobj;
1815 fail:
1816 return NULL;
1817 }
1818
1819
1820 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxPen *arg1 = (wxPen *) 0 ;
1823 wxColour result;
1824 PyObject * obj0 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "self", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 result = (arg1)->GetColour();
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 {
1840 wxColour * resultptr;
1841 resultptr = new wxColour((wxColour &) result);
1842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1843 }
1844 return resultobj;
1845 fail:
1846 return NULL;
1847 }
1848
1849
1850 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject *resultobj;
1852 wxPen *arg1 = (wxPen *) 0 ;
1853 int result;
1854 PyObject * obj0 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "self", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 result = (int)(arg1)->GetJoin();
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 }
1869 resultobj = SWIG_FromInt((int)result);
1870 return resultobj;
1871 fail:
1872 return NULL;
1873 }
1874
1875
1876 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1877 PyObject *resultobj;
1878 wxPen *arg1 = (wxPen *) 0 ;
1879 int result;
1880 PyObject * obj0 = 0 ;
1881 char *kwnames[] = {
1882 (char *) "self", NULL
1883 };
1884
1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1888 {
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 result = (int)(arg1)->GetStyle();
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) SWIG_fail;
1894 }
1895 resultobj = SWIG_FromInt((int)result);
1896 return resultobj;
1897 fail:
1898 return NULL;
1899 }
1900
1901
1902 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 int result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1914 {
1915 PyThreadState* __tstate = wxPyBeginAllowThreads();
1916 result = (int)(arg1)->GetWidth();
1917
1918 wxPyEndAllowThreads(__tstate);
1919 if (PyErr_Occurred()) SWIG_fail;
1920 }
1921 resultobj = SWIG_FromInt((int)result);
1922 return resultobj;
1923 fail:
1924 return NULL;
1925 }
1926
1927
1928 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1929 PyObject *resultobj;
1930 wxPen *arg1 = (wxPen *) 0 ;
1931 bool result;
1932 PyObject * obj0 = 0 ;
1933 char *kwnames[] = {
1934 (char *) "self", NULL
1935 };
1936
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1940 {
1941 PyThreadState* __tstate = wxPyBeginAllowThreads();
1942 result = (bool)(arg1)->Ok();
1943
1944 wxPyEndAllowThreads(__tstate);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
1947 {
1948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1949 }
1950 return resultobj;
1951 fail:
1952 return NULL;
1953 }
1954
1955
1956 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject *resultobj;
1958 wxPen *arg1 = (wxPen *) 0 ;
1959 int arg2 ;
1960 PyObject * obj0 = 0 ;
1961 PyObject * obj1 = 0 ;
1962 char *kwnames[] = {
1963 (char *) "self",(char *) "cap_style", NULL
1964 };
1965
1966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1969 arg2 = (int) SWIG_AsInt(obj1);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 (arg1)->SetCap(arg2);
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 Py_INCREF(Py_None); resultobj = Py_None;
1979 return resultobj;
1980 fail:
1981 return NULL;
1982 }
1983
1984
1985 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxPen *arg1 = (wxPen *) 0 ;
1988 wxColour *arg2 = 0 ;
1989 wxColour temp2 ;
1990 PyObject * obj0 = 0 ;
1991 PyObject * obj1 = 0 ;
1992 char *kwnames[] = {
1993 (char *) "self",(char *) "colour", NULL
1994 };
1995
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1999 {
2000 arg2 = &temp2;
2001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2002 }
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 (arg1)->SetColour(*arg2);
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) SWIG_fail;
2009 }
2010 Py_INCREF(Py_None); resultobj = Py_None;
2011 return resultobj;
2012 fail:
2013 return NULL;
2014 }
2015
2016
2017 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject *resultobj;
2019 wxPen *arg1 = (wxPen *) 0 ;
2020 int arg2 ;
2021 PyObject * obj0 = 0 ;
2022 PyObject * obj1 = 0 ;
2023 char *kwnames[] = {
2024 (char *) "self",(char *) "join_style", NULL
2025 };
2026
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2030 arg2 = (int) SWIG_AsInt(obj1);
2031 if (PyErr_Occurred()) SWIG_fail;
2032 {
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 (arg1)->SetJoin(arg2);
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 Py_INCREF(Py_None); resultobj = Py_None;
2040 return resultobj;
2041 fail:
2042 return NULL;
2043 }
2044
2045
2046 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2047 PyObject *resultobj;
2048 wxPen *arg1 = (wxPen *) 0 ;
2049 int arg2 ;
2050 PyObject * obj0 = 0 ;
2051 PyObject * obj1 = 0 ;
2052 char *kwnames[] = {
2053 (char *) "self",(char *) "style", NULL
2054 };
2055
2056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2059 arg2 = (int) SWIG_AsInt(obj1);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 {
2062 PyThreadState* __tstate = wxPyBeginAllowThreads();
2063 (arg1)->SetStyle(arg2);
2064
2065 wxPyEndAllowThreads(__tstate);
2066 if (PyErr_Occurred()) SWIG_fail;
2067 }
2068 Py_INCREF(Py_None); resultobj = Py_None;
2069 return resultobj;
2070 fail:
2071 return NULL;
2072 }
2073
2074
2075 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2076 PyObject *resultobj;
2077 wxPen *arg1 = (wxPen *) 0 ;
2078 int arg2 ;
2079 PyObject * obj0 = 0 ;
2080 PyObject * obj1 = 0 ;
2081 char *kwnames[] = {
2082 (char *) "self",(char *) "width", NULL
2083 };
2084
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2088 arg2 = (int) SWIG_AsInt(obj1);
2089 if (PyErr_Occurred()) SWIG_fail;
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 (arg1)->SetWidth(arg2);
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) SWIG_fail;
2096 }
2097 Py_INCREF(Py_None); resultobj = Py_None;
2098 return resultobj;
2099 fail:
2100 return NULL;
2101 }
2102
2103
2104 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2105 PyObject *resultobj;
2106 wxPen *arg1 = (wxPen *) 0 ;
2107 int arg2 ;
2108 wxDash *arg3 = (wxDash *) 0 ;
2109 PyObject * obj0 = 0 ;
2110 PyObject * obj1 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self",(char *) "dashes", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2118 {
2119 arg2 = PyList_Size(obj1);
2120 arg3 = (wxDash*)byte_LIST_helper(obj1);
2121 if (arg3 == NULL) SWIG_fail;
2122 }
2123 {
2124 PyThreadState* __tstate = wxPyBeginAllowThreads();
2125 (arg1)->SetDashes(arg2,arg3);
2126
2127 wxPyEndAllowThreads(__tstate);
2128 if (PyErr_Occurred()) SWIG_fail;
2129 }
2130 Py_INCREF(Py_None); resultobj = Py_None;
2131 {
2132 if (arg3) delete [] arg3;
2133 }
2134 return resultobj;
2135 fail:
2136 {
2137 if (arg3) delete [] arg3;
2138 }
2139 return NULL;
2140 }
2141
2142
2143 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2144 PyObject *resultobj;
2145 wxPen *arg1 = (wxPen *) 0 ;
2146 PyObject *result;
2147 PyObject * obj0 = 0 ;
2148 char *kwnames[] = {
2149 (char *) "self", NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 result = (PyObject *)wxPen_GetDashes(arg1);
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 resultobj = result;
2163 return resultobj;
2164 fail:
2165 return NULL;
2166 }
2167
2168
2169 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2170 PyObject *resultobj;
2171 wxPen *arg1 = (wxPen *) 0 ;
2172 PyObject *arg2 = (PyObject *) 0 ;
2173 PyObject *arg3 = (PyObject *) 0 ;
2174 PyObject * obj0 = 0 ;
2175 PyObject * obj1 = 0 ;
2176 PyObject * obj2 = 0 ;
2177 char *kwnames[] = {
2178 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2179 };
2180
2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2184 arg2 = obj1;
2185 arg3 = obj2;
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
2188 wxPen__SetDashes(arg1,arg2,arg3);
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) SWIG_fail;
2192 }
2193 Py_INCREF(Py_None); resultobj = Py_None;
2194 return resultobj;
2195 fail:
2196 return NULL;
2197 }
2198
2199
2200 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2201 PyObject *resultobj;
2202 wxPen *arg1 = (wxPen *) 0 ;
2203 wxPen *arg2 = (wxPen *) 0 ;
2204 bool result;
2205 PyObject * obj0 = 0 ;
2206 PyObject * obj1 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self",(char *) "other", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
2218 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 {
2224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2225 }
2226 return resultobj;
2227 fail:
2228 return NULL;
2229 }
2230
2231
2232 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2233 PyObject *resultobj;
2234 wxPen *arg1 = (wxPen *) 0 ;
2235 wxPen *arg2 = (wxPen *) 0 ;
2236 bool result;
2237 PyObject * obj0 = 0 ;
2238 PyObject * obj1 = 0 ;
2239 char *kwnames[] = {
2240 (char *) "self",(char *) "other", NULL
2241 };
2242
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
2250 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
2255 {
2256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2257 }
2258 return resultobj;
2259 fail:
2260 return NULL;
2261 }
2262
2263
2264 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2265 PyObject *obj;
2266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2267 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2268 Py_INCREF(obj);
2269 return Py_BuildValue((char *)"");
2270 }
2271 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 wxColour *arg1 = 0 ;
2274 int arg2 = (int) wxSOLID ;
2275 wxBrush *result;
2276 wxColour temp1 ;
2277 PyObject * obj0 = 0 ;
2278 PyObject * obj1 = 0 ;
2279 char *kwnames[] = {
2280 (char *) "colour",(char *) "style", NULL
2281 };
2282
2283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2284 {
2285 arg1 = &temp1;
2286 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2287 }
2288 if (obj1) {
2289 arg2 = (int) SWIG_AsInt(obj1);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 {
2293 if (!wxPyCheckForApp()) SWIG_fail;
2294 PyThreadState* __tstate = wxPyBeginAllowThreads();
2295 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2296
2297 wxPyEndAllowThreads(__tstate);
2298 if (PyErr_Occurred()) SWIG_fail;
2299 }
2300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2301 return resultobj;
2302 fail:
2303 return NULL;
2304 }
2305
2306
2307 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2308 PyObject *resultobj;
2309 wxBrush *arg1 = (wxBrush *) 0 ;
2310 PyObject * obj0 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2318 {
2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
2320 delete arg1;
2321
2322 wxPyEndAllowThreads(__tstate);
2323 if (PyErr_Occurred()) SWIG_fail;
2324 }
2325 Py_INCREF(Py_None); resultobj = Py_None;
2326 return resultobj;
2327 fail:
2328 return NULL;
2329 }
2330
2331
2332 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxBrush *arg1 = (wxBrush *) 0 ;
2335 wxColour *arg2 = 0 ;
2336 wxColour temp2 ;
2337 PyObject * obj0 = 0 ;
2338 PyObject * obj1 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self",(char *) "col", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2346 {
2347 arg2 = &temp2;
2348 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2349 }
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 (arg1)->SetColour((wxColour const &)*arg2);
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 Py_INCREF(Py_None); resultobj = Py_None;
2358 return resultobj;
2359 fail:
2360 return NULL;
2361 }
2362
2363
2364 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2365 PyObject *resultobj;
2366 wxBrush *arg1 = (wxBrush *) 0 ;
2367 int arg2 ;
2368 PyObject * obj0 = 0 ;
2369 PyObject * obj1 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "self",(char *) "style", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2377 arg2 = (int) SWIG_AsInt(obj1);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 (arg1)->SetStyle(arg2);
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_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxBrush *arg1 = (wxBrush *) 0 ;
2396 wxBitmap *arg2 = 0 ;
2397 PyObject * obj0 = 0 ;
2398 PyObject * obj1 = 0 ;
2399 char *kwnames[] = {
2400 (char *) "self",(char *) "stipple", NULL
2401 };
2402
2403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2407 SWIG_POINTER_EXCEPTION | 0)) == -1)
2408 SWIG_fail;
2409 if (arg2 == NULL) {
2410 PyErr_SetString(PyExc_TypeError,"null reference");
2411 SWIG_fail;
2412 }
2413 {
2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
2415 (arg1)->SetStipple((wxBitmap const &)*arg2);
2416
2417 wxPyEndAllowThreads(__tstate);
2418 if (PyErr_Occurred()) SWIG_fail;
2419 }
2420 Py_INCREF(Py_None); resultobj = Py_None;
2421 return resultobj;
2422 fail:
2423 return NULL;
2424 }
2425
2426
2427 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject *resultobj;
2429 wxBrush *arg1 = (wxBrush *) 0 ;
2430 wxColour result;
2431 PyObject * obj0 = 0 ;
2432 char *kwnames[] = {
2433 (char *) "self", NULL
2434 };
2435
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2439 {
2440 PyThreadState* __tstate = wxPyBeginAllowThreads();
2441 result = ((wxBrush const *)arg1)->GetColour();
2442
2443 wxPyEndAllowThreads(__tstate);
2444 if (PyErr_Occurred()) SWIG_fail;
2445 }
2446 {
2447 wxColour * resultptr;
2448 resultptr = new wxColour((wxColour &) result);
2449 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2450 }
2451 return resultobj;
2452 fail:
2453 return NULL;
2454 }
2455
2456
2457 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2458 PyObject *resultobj;
2459 wxBrush *arg1 = (wxBrush *) 0 ;
2460 int result;
2461 PyObject * obj0 = 0 ;
2462 char *kwnames[] = {
2463 (char *) "self", NULL
2464 };
2465
2466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2469 {
2470 PyThreadState* __tstate = wxPyBeginAllowThreads();
2471 result = (int)((wxBrush const *)arg1)->GetStyle();
2472
2473 wxPyEndAllowThreads(__tstate);
2474 if (PyErr_Occurred()) SWIG_fail;
2475 }
2476 resultobj = SWIG_FromInt((int)result);
2477 return resultobj;
2478 fail:
2479 return NULL;
2480 }
2481
2482
2483 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2484 PyObject *resultobj;
2485 wxBrush *arg1 = (wxBrush *) 0 ;
2486 wxBitmap *result;
2487 PyObject * obj0 = 0 ;
2488 char *kwnames[] = {
2489 (char *) "self", NULL
2490 };
2491
2492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2495 {
2496 PyThreadState* __tstate = wxPyBeginAllowThreads();
2497 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2498
2499 wxPyEndAllowThreads(__tstate);
2500 if (PyErr_Occurred()) SWIG_fail;
2501 }
2502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2503 return resultobj;
2504 fail:
2505 return NULL;
2506 }
2507
2508
2509 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2510 PyObject *resultobj;
2511 wxBrush *arg1 = (wxBrush *) 0 ;
2512 bool result;
2513 PyObject * obj0 = 0 ;
2514 char *kwnames[] = {
2515 (char *) "self", NULL
2516 };
2517
2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 result = (bool)(arg1)->Ok();
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 {
2529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2530 }
2531 return resultobj;
2532 fail:
2533 return NULL;
2534 }
2535
2536
2537 static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 wxBrush *arg1 = (wxBrush *) 0 ;
2540 short result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 result = (short)(arg1)->MacGetTheme();
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
2556 resultobj = SWIG_FromShort((short)result);
2557 return resultobj;
2558 fail:
2559 return NULL;
2560 }
2561
2562
2563 static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 wxBrush *arg1 = (wxBrush *) 0 ;
2566 short arg2 ;
2567 PyObject * obj0 = 0 ;
2568 PyObject * obj1 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self",(char *) "macThemeBrush", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2576 arg2 = (short) SWIG_AsShort(obj1);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 {
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 (arg1)->MacSetTheme(arg2);
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) SWIG_fail;
2584 }
2585 Py_INCREF(Py_None); resultobj = Py_None;
2586 return resultobj;
2587 fail:
2588 return NULL;
2589 }
2590
2591
2592 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2593 PyObject *obj;
2594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2595 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2596 Py_INCREF(obj);
2597 return Py_BuildValue((char *)"");
2598 }
2599 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxString *arg1 = 0 ;
2602 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2603 wxBitmap *result;
2604 bool temp1 = False ;
2605 PyObject * obj0 = 0 ;
2606 PyObject * obj1 = 0 ;
2607 char *kwnames[] = {
2608 (char *) "name",(char *) "type", NULL
2609 };
2610
2611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2612 {
2613 arg1 = wxString_in_helper(obj0);
2614 if (arg1 == NULL) SWIG_fail;
2615 temp1 = True;
2616 }
2617 if (obj1) {
2618 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2619 if (PyErr_Occurred()) SWIG_fail;
2620 }
2621 {
2622 if (!wxPyCheckForApp()) SWIG_fail;
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2625
2626 wxPyEndAllowThreads(__tstate);
2627 if (PyErr_Occurred()) SWIG_fail;
2628 }
2629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2630 {
2631 if (temp1)
2632 delete arg1;
2633 }
2634 return resultobj;
2635 fail:
2636 {
2637 if (temp1)
2638 delete arg1;
2639 }
2640 return NULL;
2641 }
2642
2643
2644 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2645 PyObject *resultobj;
2646 wxBitmap *arg1 = (wxBitmap *) 0 ;
2647 PyObject * obj0 = 0 ;
2648 char *kwnames[] = {
2649 (char *) "self", NULL
2650 };
2651
2652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2655 {
2656 PyThreadState* __tstate = wxPyBeginAllowThreads();
2657 delete arg1;
2658
2659 wxPyEndAllowThreads(__tstate);
2660 if (PyErr_Occurred()) SWIG_fail;
2661 }
2662 Py_INCREF(Py_None); resultobj = Py_None;
2663 return resultobj;
2664 fail:
2665 return NULL;
2666 }
2667
2668
2669 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2670 PyObject *resultobj;
2671 int arg1 ;
2672 int arg2 ;
2673 int arg3 = (int) -1 ;
2674 wxBitmap *result;
2675 PyObject * obj0 = 0 ;
2676 PyObject * obj1 = 0 ;
2677 PyObject * obj2 = 0 ;
2678 char *kwnames[] = {
2679 (char *) "width",(char *) "height",(char *) "depth", NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2683 arg1 = (int) SWIG_AsInt(obj0);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 arg2 = (int) SWIG_AsInt(obj1);
2686 if (PyErr_Occurred()) SWIG_fail;
2687 if (obj2) {
2688 arg3 = (int) SWIG_AsInt(obj2);
2689 if (PyErr_Occurred()) SWIG_fail;
2690 }
2691 {
2692 if (!wxPyCheckForApp()) SWIG_fail;
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2695
2696 wxPyEndAllowThreads(__tstate);
2697 if (PyErr_Occurred()) SWIG_fail;
2698 }
2699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2700 return resultobj;
2701 fail:
2702 return NULL;
2703 }
2704
2705
2706 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2707 PyObject *resultobj;
2708 wxIcon *arg1 = 0 ;
2709 wxBitmap *result;
2710 PyObject * obj0 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "icon", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2717 SWIG_POINTER_EXCEPTION | 0)) == -1)
2718 SWIG_fail;
2719 if (arg1 == NULL) {
2720 PyErr_SetString(PyExc_TypeError,"null reference");
2721 SWIG_fail;
2722 }
2723 {
2724 if (!wxPyCheckForApp()) SWIG_fail;
2725 PyThreadState* __tstate = wxPyBeginAllowThreads();
2726 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2727
2728 wxPyEndAllowThreads(__tstate);
2729 if (PyErr_Occurred()) SWIG_fail;
2730 }
2731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2732 return resultobj;
2733 fail:
2734 return NULL;
2735 }
2736
2737
2738 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2739 PyObject *resultobj;
2740 wxImage *arg1 = 0 ;
2741 int arg2 = (int) -1 ;
2742 wxBitmap *result;
2743 PyObject * obj0 = 0 ;
2744 PyObject * obj1 = 0 ;
2745 char *kwnames[] = {
2746 (char *) "image",(char *) "depth", NULL
2747 };
2748
2749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2751 SWIG_POINTER_EXCEPTION | 0)) == -1)
2752 SWIG_fail;
2753 if (arg1 == NULL) {
2754 PyErr_SetString(PyExc_TypeError,"null reference");
2755 SWIG_fail;
2756 }
2757 if (obj1) {
2758 arg2 = (int) SWIG_AsInt(obj1);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 }
2761 {
2762 if (!wxPyCheckForApp()) SWIG_fail;
2763 PyThreadState* __tstate = wxPyBeginAllowThreads();
2764 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2765
2766 wxPyEndAllowThreads(__tstate);
2767 if (PyErr_Occurred()) SWIG_fail;
2768 }
2769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2770 return resultobj;
2771 fail:
2772 return NULL;
2773 }
2774
2775
2776 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2777 PyObject *resultobj;
2778 PyObject *arg1 = (PyObject *) 0 ;
2779 wxBitmap *result;
2780 PyObject * obj0 = 0 ;
2781 char *kwnames[] = {
2782 (char *) "listOfStrings", NULL
2783 };
2784
2785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2786 arg1 = obj0;
2787 {
2788 if (!wxPyCheckForApp()) SWIG_fail;
2789 PyThreadState* __tstate = wxPyBeginAllowThreads();
2790 result = (wxBitmap *)new_wxBitmap(arg1);
2791
2792 wxPyEndAllowThreads(__tstate);
2793 if (PyErr_Occurred()) SWIG_fail;
2794 }
2795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2796 return resultobj;
2797 fail:
2798 return NULL;
2799 }
2800
2801
2802 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2803 PyObject *resultobj;
2804 PyObject *arg1 = (PyObject *) 0 ;
2805 int arg2 ;
2806 int arg3 ;
2807 int arg4 = (int) 1 ;
2808 wxBitmap *result;
2809 PyObject * obj0 = 0 ;
2810 PyObject * obj1 = 0 ;
2811 PyObject * obj2 = 0 ;
2812 PyObject * obj3 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2818 arg1 = obj0;
2819 arg2 = (int) SWIG_AsInt(obj1);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 arg3 = (int) SWIG_AsInt(obj2);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 if (obj3) {
2824 arg4 = (int) SWIG_AsInt(obj3);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 {
2828 if (!wxPyCheckForApp()) SWIG_fail;
2829 PyThreadState* __tstate = wxPyBeginAllowThreads();
2830 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2831
2832 wxPyEndAllowThreads(__tstate);
2833 if (PyErr_Occurred()) SWIG_fail;
2834 }
2835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2836 return resultobj;
2837 fail:
2838 return NULL;
2839 }
2840
2841
2842 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2843 PyObject *resultobj;
2844 wxBitmap *arg1 = (wxBitmap *) 0 ;
2845 bool result;
2846 PyObject * obj0 = 0 ;
2847 char *kwnames[] = {
2848 (char *) "self", NULL
2849 };
2850
2851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2854 {
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 result = (bool)(arg1)->Ok();
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 {
2862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2863 }
2864 return resultobj;
2865 fail:
2866 return NULL;
2867 }
2868
2869
2870 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject *resultobj;
2872 wxBitmap *arg1 = (wxBitmap *) 0 ;
2873 int result;
2874 PyObject * obj0 = 0 ;
2875 char *kwnames[] = {
2876 (char *) "self", NULL
2877 };
2878
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2882 {
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
2884 result = (int)(arg1)->GetWidth();
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 resultobj = SWIG_FromInt((int)result);
2890 return resultobj;
2891 fail:
2892 return NULL;
2893 }
2894
2895
2896 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2897 PyObject *resultobj;
2898 wxBitmap *arg1 = (wxBitmap *) 0 ;
2899 int result;
2900 PyObject * obj0 = 0 ;
2901 char *kwnames[] = {
2902 (char *) "self", NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2908 {
2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
2910 result = (int)(arg1)->GetHeight();
2911
2912 wxPyEndAllowThreads(__tstate);
2913 if (PyErr_Occurred()) SWIG_fail;
2914 }
2915 resultobj = SWIG_FromInt((int)result);
2916 return resultobj;
2917 fail:
2918 return NULL;
2919 }
2920
2921
2922 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2923 PyObject *resultobj;
2924 wxBitmap *arg1 = (wxBitmap *) 0 ;
2925 int result;
2926 PyObject * obj0 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "self", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2934 {
2935 PyThreadState* __tstate = wxPyBeginAllowThreads();
2936 result = (int)(arg1)->GetDepth();
2937
2938 wxPyEndAllowThreads(__tstate);
2939 if (PyErr_Occurred()) SWIG_fail;
2940 }
2941 resultobj = SWIG_FromInt((int)result);
2942 return resultobj;
2943 fail:
2944 return NULL;
2945 }
2946
2947
2948 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2949 PyObject *resultobj;
2950 wxBitmap *arg1 = (wxBitmap *) 0 ;
2951 wxSize result;
2952 PyObject * obj0 = 0 ;
2953 char *kwnames[] = {
2954 (char *) "self", NULL
2955 };
2956
2957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2960 {
2961 PyThreadState* __tstate = wxPyBeginAllowThreads();
2962 result = wxBitmap_GetSize(arg1);
2963
2964 wxPyEndAllowThreads(__tstate);
2965 if (PyErr_Occurred()) SWIG_fail;
2966 }
2967 {
2968 wxSize * resultptr;
2969 resultptr = new wxSize((wxSize &) result);
2970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2971 }
2972 return resultobj;
2973 fail:
2974 return NULL;
2975 }
2976
2977
2978 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2979 PyObject *resultobj;
2980 wxBitmap *arg1 = (wxBitmap *) 0 ;
2981 SwigValueWrapper< wxImage > result;
2982 PyObject * obj0 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "self", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2990 {
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 result = ((wxBitmap const *)arg1)->ConvertToImage();
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 {
2998 wxImage * resultptr;
2999 resultptr = new wxImage((wxImage &) result);
3000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3001 }
3002 return resultobj;
3003 fail:
3004 return NULL;
3005 }
3006
3007
3008 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3009 PyObject *resultobj;
3010 wxBitmap *arg1 = (wxBitmap *) 0 ;
3011 wxMask *result;
3012 PyObject * obj0 = 0 ;
3013 char *kwnames[] = {
3014 (char *) "self", NULL
3015 };
3016
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3020 {
3021 PyThreadState* __tstate = wxPyBeginAllowThreads();
3022 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3023
3024 wxPyEndAllowThreads(__tstate);
3025 if (PyErr_Occurred()) SWIG_fail;
3026 }
3027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3028 return resultobj;
3029 fail:
3030 return NULL;
3031 }
3032
3033
3034 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3035 PyObject *resultobj;
3036 wxBitmap *arg1 = (wxBitmap *) 0 ;
3037 wxMask *arg2 = (wxMask *) 0 ;
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 char *kwnames[] = {
3041 (char *) "self",(char *) "mask", NULL
3042 };
3043
3044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3049 {
3050 PyThreadState* __tstate = wxPyBeginAllowThreads();
3051 (arg1)->SetMask(arg2);
3052
3053 wxPyEndAllowThreads(__tstate);
3054 if (PyErr_Occurred()) SWIG_fail;
3055 }
3056 Py_INCREF(Py_None); resultobj = Py_None;
3057 return resultobj;
3058 fail:
3059 return NULL;
3060 }
3061
3062
3063 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3064 PyObject *resultobj;
3065 wxBitmap *arg1 = (wxBitmap *) 0 ;
3066 wxColour *arg2 = 0 ;
3067 wxColour temp2 ;
3068 PyObject * obj0 = 0 ;
3069 PyObject * obj1 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "self",(char *) "colour", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3077 {
3078 arg2 = &temp2;
3079 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3080 }
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) SWIG_fail;
3087 }
3088 Py_INCREF(Py_None); resultobj = Py_None;
3089 return resultobj;
3090 fail:
3091 return NULL;
3092 }
3093
3094
3095 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3096 PyObject *resultobj;
3097 wxBitmap *arg1 = (wxBitmap *) 0 ;
3098 wxRect *arg2 = 0 ;
3099 SwigValueWrapper< wxBitmap > result;
3100 wxRect temp2 ;
3101 PyObject * obj0 = 0 ;
3102 PyObject * obj1 = 0 ;
3103 char *kwnames[] = {
3104 (char *) "self",(char *) "rect", NULL
3105 };
3106
3107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3110 {
3111 arg2 = &temp2;
3112 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3113 }
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 {
3122 wxBitmap * resultptr;
3123 resultptr = new wxBitmap((wxBitmap &) result);
3124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3125 }
3126 return resultobj;
3127 fail:
3128 return NULL;
3129 }
3130
3131
3132 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3133 PyObject *resultobj;
3134 wxBitmap *arg1 = (wxBitmap *) 0 ;
3135 wxString *arg2 = 0 ;
3136 int arg3 ;
3137 wxPalette *arg4 = (wxPalette *) NULL ;
3138 bool result;
3139 bool temp2 = False ;
3140 PyObject * obj0 = 0 ;
3141 PyObject * obj1 = 0 ;
3142 PyObject * obj2 = 0 ;
3143 PyObject * obj3 = 0 ;
3144 char *kwnames[] = {
3145 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3146 };
3147
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3151 {
3152 arg2 = wxString_in_helper(obj1);
3153 if (arg2 == NULL) SWIG_fail;
3154 temp2 = True;
3155 }
3156 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3157 if (PyErr_Occurred()) SWIG_fail;
3158 if (obj3) {
3159 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3161 }
3162 {
3163 PyThreadState* __tstate = wxPyBeginAllowThreads();
3164 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3165
3166 wxPyEndAllowThreads(__tstate);
3167 if (PyErr_Occurred()) SWIG_fail;
3168 }
3169 {
3170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3171 }
3172 {
3173 if (temp2)
3174 delete arg2;
3175 }
3176 return resultobj;
3177 fail:
3178 {
3179 if (temp2)
3180 delete arg2;
3181 }
3182 return NULL;
3183 }
3184
3185
3186 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject *resultobj;
3188 wxBitmap *arg1 = (wxBitmap *) 0 ;
3189 wxString *arg2 = 0 ;
3190 int arg3 ;
3191 bool result;
3192 bool temp2 = False ;
3193 PyObject * obj0 = 0 ;
3194 PyObject * obj1 = 0 ;
3195 PyObject * obj2 = 0 ;
3196 char *kwnames[] = {
3197 (char *) "self",(char *) "name",(char *) "type", NULL
3198 };
3199
3200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3203 {
3204 arg2 = wxString_in_helper(obj1);
3205 if (arg2 == NULL) SWIG_fail;
3206 temp2 = True;
3207 }
3208 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 {
3218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3219 }
3220 {
3221 if (temp2)
3222 delete arg2;
3223 }
3224 return resultobj;
3225 fail:
3226 {
3227 if (temp2)
3228 delete arg2;
3229 }
3230 return NULL;
3231 }
3232
3233
3234 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3235 PyObject *resultobj;
3236 wxBitmap *arg1 = (wxBitmap *) 0 ;
3237 wxIcon *arg2 = 0 ;
3238 bool result;
3239 PyObject * obj0 = 0 ;
3240 PyObject * obj1 = 0 ;
3241 char *kwnames[] = {
3242 (char *) "self",(char *) "icon", NULL
3243 };
3244
3245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3249 SWIG_POINTER_EXCEPTION | 0)) == -1)
3250 SWIG_fail;
3251 if (arg2 == NULL) {
3252 PyErr_SetString(PyExc_TypeError,"null reference");
3253 SWIG_fail;
3254 }
3255 {
3256 PyThreadState* __tstate = wxPyBeginAllowThreads();
3257 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3258
3259 wxPyEndAllowThreads(__tstate);
3260 if (PyErr_Occurred()) SWIG_fail;
3261 }
3262 {
3263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3264 }
3265 return resultobj;
3266 fail:
3267 return NULL;
3268 }
3269
3270
3271 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject *resultobj;
3273 wxBitmap *arg1 = (wxBitmap *) 0 ;
3274 int arg2 ;
3275 PyObject * obj0 = 0 ;
3276 PyObject * obj1 = 0 ;
3277 char *kwnames[] = {
3278 (char *) "self",(char *) "height", NULL
3279 };
3280
3281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3284 arg2 = (int) SWIG_AsInt(obj1);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 (arg1)->SetHeight(arg2);
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 Py_INCREF(Py_None); resultobj = Py_None;
3294 return resultobj;
3295 fail:
3296 return NULL;
3297 }
3298
3299
3300 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxBitmap *arg1 = (wxBitmap *) 0 ;
3303 int arg2 ;
3304 PyObject * obj0 = 0 ;
3305 PyObject * obj1 = 0 ;
3306 char *kwnames[] = {
3307 (char *) "self",(char *) "width", NULL
3308 };
3309
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3313 arg2 = (int) SWIG_AsInt(obj1);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 (arg1)->SetWidth(arg2);
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 }
3322 Py_INCREF(Py_None); resultobj = Py_None;
3323 return resultobj;
3324 fail:
3325 return NULL;
3326 }
3327
3328
3329 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3330 PyObject *resultobj;
3331 wxBitmap *arg1 = (wxBitmap *) 0 ;
3332 int arg2 ;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self",(char *) "depth", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 arg2 = (int) SWIG_AsInt(obj1);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 {
3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
3346 (arg1)->SetDepth(arg2);
3347
3348 wxPyEndAllowThreads(__tstate);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 Py_INCREF(Py_None); resultobj = Py_None;
3352 return resultobj;
3353 fail:
3354 return NULL;
3355 }
3356
3357
3358 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3359 PyObject *resultobj;
3360 wxBitmap *arg1 = (wxBitmap *) 0 ;
3361 wxSize *arg2 = 0 ;
3362 wxSize temp2 ;
3363 PyObject * obj0 = 0 ;
3364 PyObject * obj1 = 0 ;
3365 char *kwnames[] = {
3366 (char *) "self",(char *) "size", NULL
3367 };
3368
3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3372 {
3373 arg2 = &temp2;
3374 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3375 }
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 Py_INCREF(Py_None); resultobj = Py_None;
3384 return resultobj;
3385 fail:
3386 return NULL;
3387 }
3388
3389
3390 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj;
3392 wxBitmap *arg1 = (wxBitmap *) 0 ;
3393 wxBitmap *arg2 = (wxBitmap *) 0 ;
3394 bool result;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 char *kwnames[] = {
3398 (char *) "self",(char *) "other", NULL
3399 };
3400
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 {
3414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3415 }
3416 return resultobj;
3417 fail:
3418 return NULL;
3419 }
3420
3421
3422 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 wxBitmap *arg1 = (wxBitmap *) 0 ;
3425 wxBitmap *arg2 = (wxBitmap *) 0 ;
3426 bool result;
3427 PyObject * obj0 = 0 ;
3428 PyObject * obj1 = 0 ;
3429 char *kwnames[] = {
3430 (char *) "self",(char *) "other", NULL
3431 };
3432
3433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3438 {
3439 PyThreadState* __tstate = wxPyBeginAllowThreads();
3440 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3441
3442 wxPyEndAllowThreads(__tstate);
3443 if (PyErr_Occurred()) SWIG_fail;
3444 }
3445 {
3446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3447 }
3448 return resultobj;
3449 fail:
3450 return NULL;
3451 }
3452
3453
3454 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3455 PyObject *obj;
3456 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3457 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3458 Py_INCREF(obj);
3459 return Py_BuildValue((char *)"");
3460 }
3461 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3462 PyObject *resultobj;
3463 wxBitmap *arg1 = 0 ;
3464 wxColour const &arg2_defvalue = wxNullColour ;
3465 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3466 wxMask *result;
3467 wxColour temp2 ;
3468 PyObject * obj0 = 0 ;
3469 PyObject * obj1 = 0 ;
3470 char *kwnames[] = {
3471 (char *) "bitmap",(char *) "colour", NULL
3472 };
3473
3474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3476 SWIG_POINTER_EXCEPTION | 0)) == -1)
3477 SWIG_fail;
3478 if (arg1 == NULL) {
3479 PyErr_SetString(PyExc_TypeError,"null reference");
3480 SWIG_fail;
3481 }
3482 if (obj1) {
3483 {
3484 arg2 = &temp2;
3485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3486 }
3487 }
3488 {
3489 if (!wxPyCheckForApp()) SWIG_fail;
3490 PyThreadState* __tstate = wxPyBeginAllowThreads();
3491 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3492
3493 wxPyEndAllowThreads(__tstate);
3494 if (PyErr_Occurred()) SWIG_fail;
3495 }
3496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3497 return resultobj;
3498 fail:
3499 return NULL;
3500 }
3501
3502
3503 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3504 PyObject *obj;
3505 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3506 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3507 Py_INCREF(obj);
3508 return Py_BuildValue((char *)"");
3509 }
3510 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3511 PyObject *resultobj;
3512 wxString *arg1 = 0 ;
3513 int arg2 ;
3514 int arg3 = (int) -1 ;
3515 int arg4 = (int) -1 ;
3516 wxIcon *result;
3517 bool temp1 = False ;
3518 PyObject * obj0 = 0 ;
3519 PyObject * obj1 = 0 ;
3520 PyObject * obj2 = 0 ;
3521 PyObject * obj3 = 0 ;
3522 char *kwnames[] = {
3523 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3524 };
3525
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3527 {
3528 arg1 = wxString_in_helper(obj0);
3529 if (arg1 == NULL) SWIG_fail;
3530 temp1 = True;
3531 }
3532 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 if (obj2) {
3535 arg3 = (int) SWIG_AsInt(obj2);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 if (obj3) {
3539 arg4 = (int) SWIG_AsInt(obj3);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 {
3543 if (!wxPyCheckForApp()) SWIG_fail;
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3546
3547 wxPyEndAllowThreads(__tstate);
3548 if (PyErr_Occurred()) SWIG_fail;
3549 }
3550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3551 {
3552 if (temp1)
3553 delete arg1;
3554 }
3555 return resultobj;
3556 fail:
3557 {
3558 if (temp1)
3559 delete arg1;
3560 }
3561 return NULL;
3562 }
3563
3564
3565 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3566 PyObject *resultobj;
3567 wxIcon *arg1 = (wxIcon *) 0 ;
3568 PyObject * obj0 = 0 ;
3569 char *kwnames[] = {
3570 (char *) "self", NULL
3571 };
3572
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 delete arg1;
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 Py_INCREF(Py_None); resultobj = Py_None;
3584 return resultobj;
3585 fail:
3586 return NULL;
3587 }
3588
3589
3590 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject *resultobj;
3592 wxIcon *result;
3593 char *kwnames[] = {
3594 NULL
3595 };
3596
3597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3598 {
3599 if (!wxPyCheckForApp()) SWIG_fail;
3600 PyThreadState* __tstate = wxPyBeginAllowThreads();
3601 result = (wxIcon *)new wxIcon();
3602
3603 wxPyEndAllowThreads(__tstate);
3604 if (PyErr_Occurred()) SWIG_fail;
3605 }
3606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3607 return resultobj;
3608 fail:
3609 return NULL;
3610 }
3611
3612
3613 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj;
3615 wxIconLocation *arg1 = 0 ;
3616 wxIcon *result;
3617 PyObject * obj0 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "loc", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1)
3625 SWIG_fail;
3626 if (arg1 == NULL) {
3627 PyErr_SetString(PyExc_TypeError,"null reference");
3628 SWIG_fail;
3629 }
3630 {
3631 if (!wxPyCheckForApp()) SWIG_fail;
3632 PyThreadState* __tstate = wxPyBeginAllowThreads();
3633 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3634
3635 wxPyEndAllowThreads(__tstate);
3636 if (PyErr_Occurred()) SWIG_fail;
3637 }
3638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3639 return resultobj;
3640 fail:
3641 return NULL;
3642 }
3643
3644
3645 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3646 PyObject *resultobj;
3647 wxBitmap *arg1 = 0 ;
3648 wxIcon *result;
3649 PyObject * obj0 = 0 ;
3650 char *kwnames[] = {
3651 (char *) "bmp", NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3656 SWIG_POINTER_EXCEPTION | 0)) == -1)
3657 SWIG_fail;
3658 if (arg1 == NULL) {
3659 PyErr_SetString(PyExc_TypeError,"null reference");
3660 SWIG_fail;
3661 }
3662 {
3663 if (!wxPyCheckForApp()) SWIG_fail;
3664 PyThreadState* __tstate = wxPyBeginAllowThreads();
3665 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3666
3667 wxPyEndAllowThreads(__tstate);
3668 if (PyErr_Occurred()) SWIG_fail;
3669 }
3670 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3671 return resultobj;
3672 fail:
3673 return NULL;
3674 }
3675
3676
3677 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 PyObject *arg1 = (PyObject *) 0 ;
3680 wxIcon *result;
3681 PyObject * obj0 = 0 ;
3682 char *kwnames[] = {
3683 (char *) "listOfStrings", NULL
3684 };
3685
3686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3687 arg1 = obj0;
3688 {
3689 if (!wxPyCheckForApp()) SWIG_fail;
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 result = (wxIcon *)new_wxIcon(arg1);
3692
3693 wxPyEndAllowThreads(__tstate);
3694 if (PyErr_Occurred()) SWIG_fail;
3695 }
3696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3697 return resultobj;
3698 fail:
3699 return NULL;
3700 }
3701
3702
3703 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3704 PyObject *resultobj;
3705 wxIcon *arg1 = (wxIcon *) 0 ;
3706 bool result;
3707 PyObject * obj0 = 0 ;
3708 char *kwnames[] = {
3709 (char *) "self", NULL
3710 };
3711
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3715 {
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 result = (bool)(arg1)->Ok();
3718
3719 wxPyEndAllowThreads(__tstate);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 }
3722 {
3723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3724 }
3725 return resultobj;
3726 fail:
3727 return NULL;
3728 }
3729
3730
3731 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject *resultobj;
3733 wxIcon *arg1 = (wxIcon *) 0 ;
3734 int result;
3735 PyObject * obj0 = 0 ;
3736 char *kwnames[] = {
3737 (char *) "self", NULL
3738 };
3739
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 result = (int)(arg1)->GetWidth();
3746
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_FromInt((int)result);
3751 return resultobj;
3752 fail:
3753 return NULL;
3754 }
3755
3756
3757 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj;
3759 wxIcon *arg1 = (wxIcon *) 0 ;
3760 int result;
3761 PyObject * obj0 = 0 ;
3762 char *kwnames[] = {
3763 (char *) "self", NULL
3764 };
3765
3766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 result = (int)(arg1)->GetHeight();
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 resultobj = SWIG_FromInt((int)result);
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxIcon *arg1 = (wxIcon *) 0 ;
3786 int result;
3787 PyObject * obj0 = 0 ;
3788 char *kwnames[] = {
3789 (char *) "self", NULL
3790 };
3791
3792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 result = (int)(arg1)->GetDepth();
3798
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 resultobj = SWIG_FromInt((int)result);
3803 return resultobj;
3804 fail:
3805 return NULL;
3806 }
3807
3808
3809 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxIcon *arg1 = (wxIcon *) 0 ;
3812 int arg2 ;
3813 PyObject * obj0 = 0 ;
3814 PyObject * obj1 = 0 ;
3815 char *kwnames[] = {
3816 (char *) "self",(char *) "w", NULL
3817 };
3818
3819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3822 arg2 = (int) SWIG_AsInt(obj1);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 {
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 (arg1)->SetWidth(arg2);
3827
3828 wxPyEndAllowThreads(__tstate);
3829 if (PyErr_Occurred()) SWIG_fail;
3830 }
3831 Py_INCREF(Py_None); resultobj = Py_None;
3832 return resultobj;
3833 fail:
3834 return NULL;
3835 }
3836
3837
3838 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3839 PyObject *resultobj;
3840 wxIcon *arg1 = (wxIcon *) 0 ;
3841 int arg2 ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 char *kwnames[] = {
3845 (char *) "self",(char *) "h", NULL
3846 };
3847
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3851 arg2 = (int) SWIG_AsInt(obj1);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 (arg1)->SetHeight(arg2);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 Py_INCREF(Py_None); resultobj = Py_None;
3861 return resultobj;
3862 fail:
3863 return NULL;
3864 }
3865
3866
3867 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxIcon *arg1 = (wxIcon *) 0 ;
3870 int arg2 ;
3871 PyObject * obj0 = 0 ;
3872 PyObject * obj1 = 0 ;
3873 char *kwnames[] = {
3874 (char *) "self",(char *) "d", NULL
3875 };
3876
3877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3880 arg2 = (int) SWIG_AsInt(obj1);
3881 if (PyErr_Occurred()) SWIG_fail;
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 (arg1)->SetDepth(arg2);
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 Py_INCREF(Py_None); resultobj = Py_None;
3890 return resultobj;
3891 fail:
3892 return NULL;
3893 }
3894
3895
3896 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj;
3898 wxIcon *arg1 = (wxIcon *) 0 ;
3899 wxBitmap *arg2 = 0 ;
3900 PyObject * obj0 = 0 ;
3901 PyObject * obj1 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "self",(char *) "bmp", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3909 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3910 SWIG_POINTER_EXCEPTION | 0)) == -1)
3911 SWIG_fail;
3912 if (arg2 == NULL) {
3913 PyErr_SetString(PyExc_TypeError,"null reference");
3914 SWIG_fail;
3915 }
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3919
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 Py_INCREF(Py_None); resultobj = Py_None;
3924 return resultobj;
3925 fail:
3926 return NULL;
3927 }
3928
3929
3930 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3931 PyObject *obj;
3932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3933 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3934 Py_INCREF(obj);
3935 return Py_BuildValue((char *)"");
3936 }
3937 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3940 int arg2 = (int) 0 ;
3941 wxIconLocation *result;
3942 bool temp1 = False ;
3943 PyObject * obj0 = 0 ;
3944 PyObject * obj1 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "filename",(char *) "num", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3950 if (obj0) {
3951 {
3952 arg1 = wxString_in_helper(obj0);
3953 if (arg1 == NULL) SWIG_fail;
3954 temp1 = True;
3955 }
3956 }
3957 if (obj1) {
3958 arg2 = (int) SWIG_AsInt(obj1);
3959 if (PyErr_Occurred()) SWIG_fail;
3960 }
3961 {
3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
3963 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3964
3965 wxPyEndAllowThreads(__tstate);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3969 {
3970 if (temp1)
3971 delete arg1;
3972 }
3973 return resultobj;
3974 fail:
3975 {
3976 if (temp1)
3977 delete arg1;
3978 }
3979 return NULL;
3980 }
3981
3982
3983 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3986 PyObject * obj0 = 0 ;
3987 char *kwnames[] = {
3988 (char *) "self", NULL
3989 };
3990
3991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 delete arg1;
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 Py_INCREF(Py_None); resultobj = Py_None;
4002 return resultobj;
4003 fail:
4004 return NULL;
4005 }
4006
4007
4008 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj;
4010 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4011 bool result;
4012 PyObject * obj0 = 0 ;
4013 char *kwnames[] = {
4014 (char *) "self", NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4023
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4029 }
4030 return resultobj;
4031 fail:
4032 return NULL;
4033 }
4034
4035
4036 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4037 PyObject *resultobj;
4038 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4039 wxString *arg2 = 0 ;
4040 bool temp2 = False ;
4041 PyObject * obj0 = 0 ;
4042 PyObject * obj1 = 0 ;
4043 char *kwnames[] = {
4044 (char *) "self",(char *) "filename", NULL
4045 };
4046
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4050 {
4051 arg2 = wxString_in_helper(obj1);
4052 if (arg2 == NULL) SWIG_fail;
4053 temp2 = True;
4054 }
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 (arg1)->SetFileName((wxString const &)*arg2);
4058
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 Py_INCREF(Py_None); resultobj = Py_None;
4063 {
4064 if (temp2)
4065 delete arg2;
4066 }
4067 return resultobj;
4068 fail:
4069 {
4070 if (temp2)
4071 delete arg2;
4072 }
4073 return NULL;
4074 }
4075
4076
4077 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4080 wxString *result;
4081 PyObject * obj0 = 0 ;
4082 char *kwnames[] = {
4083 (char *) "self", NULL
4084 };
4085
4086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 {
4092 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4093 result = (wxString *) &_result_ref;
4094 }
4095
4096 wxPyEndAllowThreads(__tstate);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 }
4099 {
4100 #if wxUSE_UNICODE
4101 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4102 #else
4103 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4104 #endif
4105 }
4106 return resultobj;
4107 fail:
4108 return NULL;
4109 }
4110
4111
4112 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4115 int arg2 ;
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 char *kwnames[] = {
4119 (char *) "self",(char *) "num", NULL
4120 };
4121
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4125 arg2 = (int) SWIG_AsInt(obj1);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 wxIconLocation_SetIndex(arg1,arg2);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138 }
4139
4140
4141 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4144 int result;
4145 PyObject * obj0 = 0 ;
4146 char *kwnames[] = {
4147 (char *) "self", NULL
4148 };
4149
4150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 result = (int)wxIconLocation_GetIndex(arg1);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 resultobj = SWIG_FromInt((int)result);
4161 return resultobj;
4162 fail:
4163 return NULL;
4164 }
4165
4166
4167 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4168 PyObject *obj;
4169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4170 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4171 Py_INCREF(obj);
4172 return Py_BuildValue((char *)"");
4173 }
4174 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxIconBundle *result;
4177 char *kwnames[] = {
4178 NULL
4179 };
4180
4181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 result = (wxIconBundle *)new wxIconBundle();
4185
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4190 return resultobj;
4191 fail:
4192 return NULL;
4193 }
4194
4195
4196 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4197 PyObject *resultobj;
4198 wxString *arg1 = 0 ;
4199 long arg2 ;
4200 wxIconBundle *result;
4201 bool temp1 = False ;
4202 PyObject * obj0 = 0 ;
4203 PyObject * obj1 = 0 ;
4204 char *kwnames[] = {
4205 (char *) "file",(char *) "type", NULL
4206 };
4207
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4209 {
4210 arg1 = wxString_in_helper(obj0);
4211 if (arg1 == NULL) SWIG_fail;
4212 temp1 = True;
4213 }
4214 arg2 = (long) SWIG_AsLong(obj1);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 {
4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
4218 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4219
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4224 {
4225 if (temp1)
4226 delete arg1;
4227 }
4228 return resultobj;
4229 fail:
4230 {
4231 if (temp1)
4232 delete arg1;
4233 }
4234 return NULL;
4235 }
4236
4237
4238 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxIcon *arg1 = 0 ;
4241 wxIconBundle *result;
4242 PyObject * obj0 = 0 ;
4243 char *kwnames[] = {
4244 (char *) "icon", NULL
4245 };
4246
4247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4249 SWIG_POINTER_EXCEPTION | 0)) == -1)
4250 SWIG_fail;
4251 if (arg1 == NULL) {
4252 PyErr_SetString(PyExc_TypeError,"null reference");
4253 SWIG_fail;
4254 }
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj;
4271 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4272 PyObject * obj0 = 0 ;
4273 char *kwnames[] = {
4274 (char *) "self", NULL
4275 };
4276
4277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 delete arg1;
4283
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 Py_INCREF(Py_None); resultobj = Py_None;
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4295 PyObject *resultobj;
4296 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4297 wxIcon *arg2 = 0 ;
4298 PyObject * obj0 = 0 ;
4299 PyObject * obj1 = 0 ;
4300 char *kwnames[] = {
4301 (char *) "self",(char *) "icon", NULL
4302 };
4303
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4308 SWIG_POINTER_EXCEPTION | 0)) == -1)
4309 SWIG_fail;
4310 if (arg2 == NULL) {
4311 PyErr_SetString(PyExc_TypeError,"null reference");
4312 SWIG_fail;
4313 }
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 (arg1)->AddIcon((wxIcon const &)*arg2);
4317
4318 wxPyEndAllowThreads(__tstate);
4319 if (PyErr_Occurred()) SWIG_fail;
4320 }
4321 Py_INCREF(Py_None); resultobj = Py_None;
4322 return resultobj;
4323 fail:
4324 return NULL;
4325 }
4326
4327
4328 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4329 PyObject *resultobj;
4330 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4331 wxString *arg2 = 0 ;
4332 long arg3 ;
4333 bool temp2 = False ;
4334 PyObject * obj0 = 0 ;
4335 PyObject * obj1 = 0 ;
4336 PyObject * obj2 = 0 ;
4337 char *kwnames[] = {
4338 (char *) "self",(char *) "file",(char *) "type", NULL
4339 };
4340
4341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4344 {
4345 arg2 = wxString_in_helper(obj1);
4346 if (arg2 == NULL) SWIG_fail;
4347 temp2 = True;
4348 }
4349 arg3 = (long) SWIG_AsLong(obj2);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 Py_INCREF(Py_None); resultobj = Py_None;
4359 {
4360 if (temp2)
4361 delete arg2;
4362 }
4363 return resultobj;
4364 fail:
4365 {
4366 if (temp2)
4367 delete arg2;
4368 }
4369 return NULL;
4370 }
4371
4372
4373 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj;
4375 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4376 wxSize *arg2 = 0 ;
4377 wxIcon *result;
4378 wxSize temp2 ;
4379 PyObject * obj0 = 0 ;
4380 PyObject * obj1 = 0 ;
4381 char *kwnames[] = {
4382 (char *) "self",(char *) "size", NULL
4383 };
4384
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4388 {
4389 arg2 = &temp2;
4390 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4391 }
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 {
4395 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4396 result = (wxIcon *) &_result_ref;
4397 }
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 wxIcon* resultptr = new wxIcon(*result);
4404 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4405 }
4406 return resultobj;
4407 fail:
4408 return NULL;
4409 }
4410
4411
4412 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4413 PyObject *obj;
4414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4415 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4416 Py_INCREF(obj);
4417 return Py_BuildValue((char *)"");
4418 }
4419 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4420 PyObject *resultobj;
4421 wxString *arg1 = (wxString *) 0 ;
4422 long arg2 ;
4423 int arg3 = (int) 0 ;
4424 int arg4 = (int) 0 ;
4425 wxCursor *result;
4426 bool temp1 = False ;
4427 PyObject * obj0 = 0 ;
4428 PyObject * obj1 = 0 ;
4429 PyObject * obj2 = 0 ;
4430 PyObject * obj3 = 0 ;
4431 char *kwnames[] = {
4432 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4433 };
4434
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4436 {
4437 arg1 = wxString_in_helper(obj0);
4438 if (arg1 == NULL) SWIG_fail;
4439 temp1 = True;
4440 }
4441 arg2 = (long) SWIG_AsLong(obj1);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 if (obj2) {
4444 arg3 = (int) SWIG_AsInt(obj2);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 if (obj3) {
4448 arg4 = (int) SWIG_AsInt(obj3);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 {
4452 if (!wxPyCheckForApp()) SWIG_fail;
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4455
4456 wxPyEndAllowThreads(__tstate);
4457 if (PyErr_Occurred()) SWIG_fail;
4458 }
4459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4460 {
4461 if (temp1)
4462 delete arg1;
4463 }
4464 return resultobj;
4465 fail:
4466 {
4467 if (temp1)
4468 delete arg1;
4469 }
4470 return NULL;
4471 }
4472
4473
4474 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4475 PyObject *resultobj;
4476 wxCursor *arg1 = (wxCursor *) 0 ;
4477 PyObject * obj0 = 0 ;
4478 char *kwnames[] = {
4479 (char *) "self", NULL
4480 };
4481
4482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 delete arg1;
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 Py_INCREF(Py_None); resultobj = Py_None;
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj;
4501 int arg1 ;
4502 wxCursor *result;
4503 PyObject * obj0 = 0 ;
4504 char *kwnames[] = {
4505 (char *) "id", NULL
4506 };
4507
4508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4509 arg1 = (int) SWIG_AsInt(obj0);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 {
4512 if (!wxPyCheckForApp()) SWIG_fail;
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 result = (wxCursor *)new wxCursor(arg1);
4515
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) SWIG_fail;
4518 }
4519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4520 return resultobj;
4521 fail:
4522 return NULL;
4523 }
4524
4525
4526 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj;
4528 wxImage *arg1 = 0 ;
4529 wxCursor *result;
4530 PyObject * obj0 = 0 ;
4531 char *kwnames[] = {
4532 (char *) "image", NULL
4533 };
4534
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4537 SWIG_POINTER_EXCEPTION | 0)) == -1)
4538 SWIG_fail;
4539 if (arg1 == NULL) {
4540 PyErr_SetString(PyExc_TypeError,"null reference");
4541 SWIG_fail;
4542 }
4543 {
4544 if (!wxPyCheckForApp()) SWIG_fail;
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4547
4548 wxPyEndAllowThreads(__tstate);
4549 if (PyErr_Occurred()) SWIG_fail;
4550 }
4551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4552 return resultobj;
4553 fail:
4554 return NULL;
4555 }
4556
4557
4558 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj;
4560 wxCursor *arg1 = (wxCursor *) 0 ;
4561 bool result;
4562 PyObject * obj0 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 result = (bool)(arg1)->Ok();
4573
4574 wxPyEndAllowThreads(__tstate);
4575 if (PyErr_Occurred()) SWIG_fail;
4576 }
4577 {
4578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4579 }
4580 return resultobj;
4581 fail:
4582 return NULL;
4583 }
4584
4585
4586 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4587 PyObject *obj;
4588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4589 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4590 Py_INCREF(obj);
4591 return Py_BuildValue((char *)"");
4592 }
4593 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 int arg1 = (int) 0 ;
4596 int arg2 = (int) 0 ;
4597 int arg3 = (int) 0 ;
4598 int arg4 = (int) 0 ;
4599 wxRegion *result;
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 PyObject * obj2 = 0 ;
4603 PyObject * obj3 = 0 ;
4604 char *kwnames[] = {
4605 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4609 if (obj0) {
4610 arg1 = (int) SWIG_AsInt(obj0);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 if (obj1) {
4614 arg2 = (int) SWIG_AsInt(obj1);
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 if (obj2) {
4618 arg3 = (int) SWIG_AsInt(obj2);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 if (obj3) {
4622 arg4 = (int) SWIG_AsInt(obj3);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
4625 {
4626 if (!wxPyCheckForApp()) SWIG_fail;
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4629
4630 wxPyEndAllowThreads(__tstate);
4631 if (PyErr_Occurred()) SWIG_fail;
4632 }
4633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4634 return resultobj;
4635 fail:
4636 return NULL;
4637 }
4638
4639
4640 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4641 PyObject *resultobj;
4642 wxBitmap *arg1 = 0 ;
4643 wxColour const &arg2_defvalue = wxNullColour ;
4644 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4645 int arg3 = (int) 0 ;
4646 wxRegion *result;
4647 wxColour temp2 ;
4648 PyObject * obj0 = 0 ;
4649 PyObject * obj1 = 0 ;
4650 PyObject * obj2 = 0 ;
4651 char *kwnames[] = {
4652 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4653 };
4654
4655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4657 SWIG_POINTER_EXCEPTION | 0)) == -1)
4658 SWIG_fail;
4659 if (arg1 == NULL) {
4660 PyErr_SetString(PyExc_TypeError,"null reference");
4661 SWIG_fail;
4662 }
4663 if (obj1) {
4664 {
4665 arg2 = &temp2;
4666 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4667 }
4668 }
4669 if (obj2) {
4670 arg3 = (int) SWIG_AsInt(obj2);
4671 if (PyErr_Occurred()) SWIG_fail;
4672 }
4673 {
4674 if (!wxPyCheckForApp()) SWIG_fail;
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4677
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4682 return resultobj;
4683 fail:
4684 return NULL;
4685 }
4686
4687
4688 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4689 PyObject *resultobj;
4690 int arg1 ;
4691 wxPoint *arg2 = (wxPoint *) 0 ;
4692 int arg3 = (int) wxWINDING_RULE ;
4693 wxRegion *result;
4694 PyObject * obj0 = 0 ;
4695 PyObject * obj1 = 0 ;
4696 char *kwnames[] = {
4697 (char *) "points",(char *) "fillStyle", NULL
4698 };
4699
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4701 {
4702 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4703 if (arg2 == NULL) SWIG_fail;
4704 }
4705 if (obj1) {
4706 arg3 = (int) SWIG_AsInt(obj1);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 {
4710 if (!wxPyCheckForApp()) SWIG_fail;
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4713
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4718 {
4719 if (arg2) delete [] arg2;
4720 }
4721 return resultobj;
4722 fail:
4723 {
4724 if (arg2) delete [] arg2;
4725 }
4726 return NULL;
4727 }
4728
4729
4730 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4731 PyObject *resultobj;
4732 wxRegion *arg1 = (wxRegion *) 0 ;
4733 PyObject * obj0 = 0 ;
4734 char *kwnames[] = {
4735 (char *) "self", NULL
4736 };
4737
4738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4741 {
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 delete arg1;
4744
4745 wxPyEndAllowThreads(__tstate);
4746 if (PyErr_Occurred()) SWIG_fail;
4747 }
4748 Py_INCREF(Py_None); resultobj = Py_None;
4749 return resultobj;
4750 fail:
4751 return NULL;
4752 }
4753
4754
4755 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4756 PyObject *resultobj;
4757 wxRegion *arg1 = (wxRegion *) 0 ;
4758 PyObject * obj0 = 0 ;
4759 char *kwnames[] = {
4760 (char *) "self", NULL
4761 };
4762
4763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4766 {
4767 PyThreadState* __tstate = wxPyBeginAllowThreads();
4768 (arg1)->Clear();
4769
4770 wxPyEndAllowThreads(__tstate);
4771 if (PyErr_Occurred()) SWIG_fail;
4772 }
4773 Py_INCREF(Py_None); resultobj = Py_None;
4774 return resultobj;
4775 fail:
4776 return NULL;
4777 }
4778
4779
4780 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4781 PyObject *resultobj;
4782 wxRegion *arg1 = (wxRegion *) 0 ;
4783 int arg2 ;
4784 int arg3 ;
4785 int result;
4786 PyObject * obj0 = 0 ;
4787 PyObject * obj1 = 0 ;
4788 PyObject * obj2 = 0 ;
4789 char *kwnames[] = {
4790 (char *) "self",(char *) "x",(char *) "y", NULL
4791 };
4792
4793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4796 arg2 = (int) SWIG_AsInt(obj1);
4797 if (PyErr_Occurred()) SWIG_fail;
4798 arg3 = (int) SWIG_AsInt(obj2);
4799 if (PyErr_Occurred()) SWIG_fail;
4800 {
4801 PyThreadState* __tstate = wxPyBeginAllowThreads();
4802 result = (int)(arg1)->Contains(arg2,arg3);
4803
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 resultobj = SWIG_FromInt((int)result);
4808 return resultobj;
4809 fail:
4810 return NULL;
4811 }
4812
4813
4814 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4815 PyObject *resultobj;
4816 wxRegion *arg1 = (wxRegion *) 0 ;
4817 wxPoint *arg2 = 0 ;
4818 int result;
4819 wxPoint temp2 ;
4820 PyObject * obj0 = 0 ;
4821 PyObject * obj1 = 0 ;
4822 char *kwnames[] = {
4823 (char *) "self",(char *) "pt", NULL
4824 };
4825
4826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4829 {
4830 arg2 = &temp2;
4831 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4832 }
4833 {
4834 PyThreadState* __tstate = wxPyBeginAllowThreads();
4835 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4836
4837 wxPyEndAllowThreads(__tstate);
4838 if (PyErr_Occurred()) SWIG_fail;
4839 }
4840 resultobj = SWIG_FromInt((int)result);
4841 return resultobj;
4842 fail:
4843 return NULL;
4844 }
4845
4846
4847 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4848 PyObject *resultobj;
4849 wxRegion *arg1 = (wxRegion *) 0 ;
4850 wxRect *arg2 = 0 ;
4851 int result;
4852 wxRect temp2 ;
4853 PyObject * obj0 = 0 ;
4854 PyObject * obj1 = 0 ;
4855 char *kwnames[] = {
4856 (char *) "self",(char *) "rect", NULL
4857 };
4858
4859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4862 {
4863 arg2 = &temp2;
4864 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4865 }
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4869
4870 wxPyEndAllowThreads(__tstate);
4871 if (PyErr_Occurred()) SWIG_fail;
4872 }
4873 resultobj = SWIG_FromInt((int)result);
4874 return resultobj;
4875 fail:
4876 return NULL;
4877 }
4878
4879
4880 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4881 PyObject *resultobj;
4882 wxRegion *arg1 = (wxRegion *) 0 ;
4883 int arg2 ;
4884 int arg3 ;
4885 int arg4 ;
4886 int arg5 ;
4887 int result;
4888 PyObject * obj0 = 0 ;
4889 PyObject * obj1 = 0 ;
4890 PyObject * obj2 = 0 ;
4891 PyObject * obj3 = 0 ;
4892 PyObject * obj4 = 0 ;
4893 char *kwnames[] = {
4894 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4895 };
4896
4897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4900 arg2 = (int) SWIG_AsInt(obj1);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 arg3 = (int) SWIG_AsInt(obj2);
4903 if (PyErr_Occurred()) SWIG_fail;
4904 arg4 = (int) SWIG_AsInt(obj3);
4905 if (PyErr_Occurred()) SWIG_fail;
4906 arg5 = (int) SWIG_AsInt(obj4);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 {
4909 PyThreadState* __tstate = wxPyBeginAllowThreads();
4910 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4911
4912 wxPyEndAllowThreads(__tstate);
4913 if (PyErr_Occurred()) SWIG_fail;
4914 }
4915 resultobj = SWIG_FromInt((int)result);
4916 return resultobj;
4917 fail:
4918 return NULL;
4919 }
4920
4921
4922 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4923 PyObject *resultobj;
4924 wxRegion *arg1 = (wxRegion *) 0 ;
4925 wxRect result;
4926 PyObject * obj0 = 0 ;
4927 char *kwnames[] = {
4928 (char *) "self", NULL
4929 };
4930
4931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4934 {
4935 PyThreadState* __tstate = wxPyBeginAllowThreads();
4936 result = (arg1)->GetBox();
4937
4938 wxPyEndAllowThreads(__tstate);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 }
4941 {
4942 wxRect * resultptr;
4943 resultptr = new wxRect((wxRect &) result);
4944 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4945 }
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4953 PyObject *resultobj;
4954 wxRegion *arg1 = (wxRegion *) 0 ;
4955 int arg2 ;
4956 int arg3 ;
4957 int arg4 ;
4958 int arg5 ;
4959 bool result;
4960 PyObject * obj0 = 0 ;
4961 PyObject * obj1 = 0 ;
4962 PyObject * obj2 = 0 ;
4963 PyObject * obj3 = 0 ;
4964 PyObject * obj4 = 0 ;
4965 char *kwnames[] = {
4966 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4967 };
4968
4969 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4970 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4971 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4972 arg2 = (int) SWIG_AsInt(obj1);
4973 if (PyErr_Occurred()) SWIG_fail;
4974 arg3 = (int) SWIG_AsInt(obj2);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 arg4 = (int) SWIG_AsInt(obj3);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 arg5 = (int) SWIG_AsInt(obj4);
4979 if (PyErr_Occurred()) SWIG_fail;
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4983
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4989 }
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj;
4998 wxRegion *arg1 = (wxRegion *) 0 ;
4999 wxRect *arg2 = 0 ;
5000 bool result;
5001 wxRect temp2 ;
5002 PyObject * obj0 = 0 ;
5003 PyObject * obj1 = 0 ;
5004 char *kwnames[] = {
5005 (char *) "self",(char *) "rect", NULL
5006 };
5007
5008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5011 {
5012 arg2 = &temp2;
5013 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5014 }
5015 {
5016 PyThreadState* __tstate = wxPyBeginAllowThreads();
5017 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5018
5019 wxPyEndAllowThreads(__tstate);
5020 if (PyErr_Occurred()) SWIG_fail;
5021 }
5022 {
5023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5024 }
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj;
5033 wxRegion *arg1 = (wxRegion *) 0 ;
5034 wxRegion *arg2 = 0 ;
5035 bool result;
5036 PyObject * obj0 = 0 ;
5037 PyObject * obj1 = 0 ;
5038 char *kwnames[] = {
5039 (char *) "self",(char *) "region", NULL
5040 };
5041
5042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5046 SWIG_POINTER_EXCEPTION | 0)) == -1)
5047 SWIG_fail;
5048 if (arg2 == NULL) {
5049 PyErr_SetString(PyExc_TypeError,"null reference");
5050 SWIG_fail;
5051 }
5052 {
5053 PyThreadState* __tstate = wxPyBeginAllowThreads();
5054 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5055
5056 wxPyEndAllowThreads(__tstate);
5057 if (PyErr_Occurred()) SWIG_fail;
5058 }
5059 {
5060 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5061 }
5062 return resultobj;
5063 fail:
5064 return NULL;
5065 }
5066
5067
5068 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5069 PyObject *resultobj;
5070 wxRegion *arg1 = (wxRegion *) 0 ;
5071 bool result;
5072 PyObject * obj0 = 0 ;
5073 char *kwnames[] = {
5074 (char *) "self", NULL
5075 };
5076
5077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5080 {
5081 PyThreadState* __tstate = wxPyBeginAllowThreads();
5082 result = (bool)(arg1)->IsEmpty();
5083
5084 wxPyEndAllowThreads(__tstate);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 }
5087 {
5088 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5089 }
5090 return resultobj;
5091 fail:
5092 return NULL;
5093 }
5094
5095
5096 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5097 PyObject *resultobj;
5098 wxRegion *arg1 = (wxRegion *) 0 ;
5099 int arg2 ;
5100 int arg3 ;
5101 int arg4 ;
5102 int arg5 ;
5103 bool result;
5104 PyObject * obj0 = 0 ;
5105 PyObject * obj1 = 0 ;
5106 PyObject * obj2 = 0 ;
5107 PyObject * obj3 = 0 ;
5108 PyObject * obj4 = 0 ;
5109 char *kwnames[] = {
5110 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5111 };
5112
5113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5116 arg2 = (int) SWIG_AsInt(obj1);
5117 if (PyErr_Occurred()) SWIG_fail;
5118 arg3 = (int) SWIG_AsInt(obj2);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 arg4 = (int) SWIG_AsInt(obj3);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 arg5 = (int) SWIG_AsInt(obj4);
5123 if (PyErr_Occurred()) SWIG_fail;
5124 {
5125 PyThreadState* __tstate = wxPyBeginAllowThreads();
5126 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5127
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 {
5132 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5133 }
5134 return resultobj;
5135 fail:
5136 return NULL;
5137 }
5138
5139
5140 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5141 PyObject *resultobj;
5142 wxRegion *arg1 = (wxRegion *) 0 ;
5143 wxRect *arg2 = 0 ;
5144 bool result;
5145 wxRect temp2 ;
5146 PyObject * obj0 = 0 ;
5147 PyObject * obj1 = 0 ;
5148 char *kwnames[] = {
5149 (char *) "self",(char *) "rect", NULL
5150 };
5151
5152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5155 {
5156 arg2 = &temp2;
5157 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5158 }
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 {
5167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5168 }
5169 return resultobj;
5170 fail:
5171 return NULL;
5172 }
5173
5174
5175 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject *resultobj;
5177 wxRegion *arg1 = (wxRegion *) 0 ;
5178 wxRegion *arg2 = 0 ;
5179 bool result;
5180 PyObject * obj0 = 0 ;
5181 PyObject * obj1 = 0 ;
5182 char *kwnames[] = {
5183 (char *) "self",(char *) "region", NULL
5184 };
5185
5186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5189 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5190 SWIG_POINTER_EXCEPTION | 0)) == -1)
5191 SWIG_fail;
5192 if (arg2 == NULL) {
5193 PyErr_SetString(PyExc_TypeError,"null reference");
5194 SWIG_fail;
5195 }
5196 {
5197 PyThreadState* __tstate = wxPyBeginAllowThreads();
5198 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5199
5200 wxPyEndAllowThreads(__tstate);
5201 if (PyErr_Occurred()) SWIG_fail;
5202 }
5203 {
5204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5205 }
5206 return resultobj;
5207 fail:
5208 return NULL;
5209 }
5210
5211
5212 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5213 PyObject *resultobj;
5214 wxRegion *arg1 = (wxRegion *) 0 ;
5215 int arg2 ;
5216 int arg3 ;
5217 int arg4 ;
5218 int arg5 ;
5219 bool result;
5220 PyObject * obj0 = 0 ;
5221 PyObject * obj1 = 0 ;
5222 PyObject * obj2 = 0 ;
5223 PyObject * obj3 = 0 ;
5224 PyObject * obj4 = 0 ;
5225 char *kwnames[] = {
5226 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5227 };
5228
5229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5232 arg2 = (int) SWIG_AsInt(obj1);
5233 if (PyErr_Occurred()) SWIG_fail;
5234 arg3 = (int) SWIG_AsInt(obj2);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 arg4 = (int) SWIG_AsInt(obj3);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 arg5 = (int) SWIG_AsInt(obj4);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 {
5241 PyThreadState* __tstate = wxPyBeginAllowThreads();
5242 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5243
5244 wxPyEndAllowThreads(__tstate);
5245 if (PyErr_Occurred()) SWIG_fail;
5246 }
5247 {
5248 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5249 }
5250 return resultobj;
5251 fail:
5252 return NULL;
5253 }
5254
5255
5256 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5257 PyObject *resultobj;
5258 wxRegion *arg1 = (wxRegion *) 0 ;
5259 wxRect *arg2 = 0 ;
5260 bool result;
5261 wxRect temp2 ;
5262 PyObject * obj0 = 0 ;
5263 PyObject * obj1 = 0 ;
5264 char *kwnames[] = {
5265 (char *) "self",(char *) "rect", NULL
5266 };
5267
5268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5271 {
5272 arg2 = &temp2;
5273 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5274 }
5275 {
5276 PyThreadState* __tstate = wxPyBeginAllowThreads();
5277 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5278
5279 wxPyEndAllowThreads(__tstate);
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 {
5283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5284 }
5285 return resultobj;
5286 fail:
5287 return NULL;
5288 }
5289
5290
5291 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject *resultobj;
5293 wxRegion *arg1 = (wxRegion *) 0 ;
5294 wxRegion *arg2 = 0 ;
5295 bool result;
5296 PyObject * obj0 = 0 ;
5297 PyObject * obj1 = 0 ;
5298 char *kwnames[] = {
5299 (char *) "self",(char *) "region", NULL
5300 };
5301
5302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5305 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5306 SWIG_POINTER_EXCEPTION | 0)) == -1)
5307 SWIG_fail;
5308 if (arg2 == NULL) {
5309 PyErr_SetString(PyExc_TypeError,"null reference");
5310 SWIG_fail;
5311 }
5312 {
5313 PyThreadState* __tstate = wxPyBeginAllowThreads();
5314 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5315
5316 wxPyEndAllowThreads(__tstate);
5317 if (PyErr_Occurred()) SWIG_fail;
5318 }
5319 {
5320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5321 }
5322 return resultobj;
5323 fail:
5324 return NULL;
5325 }
5326
5327
5328 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5329 PyObject *resultobj;
5330 wxRegion *arg1 = (wxRegion *) 0 ;
5331 int arg2 ;
5332 int arg3 ;
5333 int arg4 ;
5334 int arg5 ;
5335 bool result;
5336 PyObject * obj0 = 0 ;
5337 PyObject * obj1 = 0 ;
5338 PyObject * obj2 = 0 ;
5339 PyObject * obj3 = 0 ;
5340 PyObject * obj4 = 0 ;
5341 char *kwnames[] = {
5342 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5343 };
5344
5345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5348 arg2 = (int) SWIG_AsInt(obj1);
5349 if (PyErr_Occurred()) SWIG_fail;
5350 arg3 = (int) SWIG_AsInt(obj2);
5351 if (PyErr_Occurred()) SWIG_fail;
5352 arg4 = (int) SWIG_AsInt(obj3);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 arg5 = (int) SWIG_AsInt(obj4);
5355 if (PyErr_Occurred()) SWIG_fail;
5356 {
5357 PyThreadState* __tstate = wxPyBeginAllowThreads();
5358 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5359
5360 wxPyEndAllowThreads(__tstate);
5361 if (PyErr_Occurred()) SWIG_fail;
5362 }
5363 {
5364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5365 }
5366 return resultobj;
5367 fail:
5368 return NULL;
5369 }
5370
5371
5372 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5373 PyObject *resultobj;
5374 wxRegion *arg1 = (wxRegion *) 0 ;
5375 wxRect *arg2 = 0 ;
5376 bool result;
5377 wxRect temp2 ;
5378 PyObject * obj0 = 0 ;
5379 PyObject * obj1 = 0 ;
5380 char *kwnames[] = {
5381 (char *) "self",(char *) "rect", NULL
5382 };
5383
5384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5387 {
5388 arg2 = &temp2;
5389 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5390 }
5391 {
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 {
5399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5400 }
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj;
5409 wxRegion *arg1 = (wxRegion *) 0 ;
5410 wxRegion *arg2 = 0 ;
5411 bool result;
5412 PyObject * obj0 = 0 ;
5413 PyObject * obj1 = 0 ;
5414 char *kwnames[] = {
5415 (char *) "self",(char *) "region", NULL
5416 };
5417
5418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5421 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5422 SWIG_POINTER_EXCEPTION | 0)) == -1)
5423 SWIG_fail;
5424 if (arg2 == NULL) {
5425 PyErr_SetString(PyExc_TypeError,"null reference");
5426 SWIG_fail;
5427 }
5428 {
5429 PyThreadState* __tstate = wxPyBeginAllowThreads();
5430 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5431
5432 wxPyEndAllowThreads(__tstate);
5433 if (PyErr_Occurred()) SWIG_fail;
5434 }
5435 {
5436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5437 }
5438 return resultobj;
5439 fail:
5440 return NULL;
5441 }
5442
5443
5444 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5445 PyObject *resultobj;
5446 wxRegion *arg1 = (wxRegion *) 0 ;
5447 SwigValueWrapper< wxBitmap > result;
5448 PyObject * obj0 = 0 ;
5449 char *kwnames[] = {
5450 (char *) "self", NULL
5451 };
5452
5453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5456 {
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (arg1)->ConvertToBitmap();
5459
5460 wxPyEndAllowThreads(__tstate);
5461 if (PyErr_Occurred()) SWIG_fail;
5462 }
5463 {
5464 wxBitmap * resultptr;
5465 resultptr = new wxBitmap((wxBitmap &) result);
5466 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5467 }
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5475 PyObject *resultobj;
5476 wxRegion *arg1 = (wxRegion *) 0 ;
5477 wxBitmap *arg2 = 0 ;
5478 wxColour const &arg3_defvalue = wxNullColour ;
5479 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5480 int arg4 = (int) 0 ;
5481 bool result;
5482 wxColour temp3 ;
5483 PyObject * obj0 = 0 ;
5484 PyObject * obj1 = 0 ;
5485 PyObject * obj2 = 0 ;
5486 PyObject * obj3 = 0 ;
5487 char *kwnames[] = {
5488 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5489 };
5490
5491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5494 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5495 SWIG_POINTER_EXCEPTION | 0)) == -1)
5496 SWIG_fail;
5497 if (arg2 == NULL) {
5498 PyErr_SetString(PyExc_TypeError,"null reference");
5499 SWIG_fail;
5500 }
5501 if (obj2) {
5502 {
5503 arg3 = &temp3;
5504 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5505 }
5506 }
5507 if (obj3) {
5508 arg4 = (int) SWIG_AsInt(obj3);
5509 if (PyErr_Occurred()) SWIG_fail;
5510 }
5511 {
5512 PyThreadState* __tstate = wxPyBeginAllowThreads();
5513 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5514
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 {
5519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5520 }
5521 return resultobj;
5522 fail:
5523 return NULL;
5524 }
5525
5526
5527 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5528 PyObject *obj;
5529 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5530 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5531 Py_INCREF(obj);
5532 return Py_BuildValue((char *)"");
5533 }
5534 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxRegion *arg1 = 0 ;
5537 wxRegionIterator *result;
5538 PyObject * obj0 = 0 ;
5539 char *kwnames[] = {
5540 (char *) "region", NULL
5541 };
5542
5543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5545 SWIG_POINTER_EXCEPTION | 0)) == -1)
5546 SWIG_fail;
5547 if (arg1 == NULL) {
5548 PyErr_SetString(PyExc_TypeError,"null reference");
5549 SWIG_fail;
5550 }
5551 {
5552 if (!wxPyCheckForApp()) SWIG_fail;
5553 PyThreadState* __tstate = wxPyBeginAllowThreads();
5554 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5555
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj;
5568 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5569 PyObject * obj0 = 0 ;
5570 char *kwnames[] = {
5571 (char *) "self", NULL
5572 };
5573
5574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5577 {
5578 PyThreadState* __tstate = wxPyBeginAllowThreads();
5579 delete arg1;
5580
5581 wxPyEndAllowThreads(__tstate);
5582 if (PyErr_Occurred()) SWIG_fail;
5583 }
5584 Py_INCREF(Py_None); resultobj = Py_None;
5585 return resultobj;
5586 fail:
5587 return NULL;
5588 }
5589
5590
5591 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5592 PyObject *resultobj;
5593 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5594 int result;
5595 PyObject * obj0 = 0 ;
5596 char *kwnames[] = {
5597 (char *) "self", NULL
5598 };
5599
5600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (int)(arg1)->GetX();
5606
5607 wxPyEndAllowThreads(__tstate);
5608 if (PyErr_Occurred()) SWIG_fail;
5609 }
5610 resultobj = SWIG_FromInt((int)result);
5611 return resultobj;
5612 fail:
5613 return NULL;
5614 }
5615
5616
5617 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5618 PyObject *resultobj;
5619 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5620 int result;
5621 PyObject * obj0 = 0 ;
5622 char *kwnames[] = {
5623 (char *) "self", NULL
5624 };
5625
5626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5629 {
5630 PyThreadState* __tstate = wxPyBeginAllowThreads();
5631 result = (int)(arg1)->GetY();
5632
5633 wxPyEndAllowThreads(__tstate);
5634 if (PyErr_Occurred()) SWIG_fail;
5635 }
5636 resultobj = SWIG_FromInt((int)result);
5637 return resultobj;
5638 fail:
5639 return NULL;
5640 }
5641
5642
5643 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5644 PyObject *resultobj;
5645 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5646 int result;
5647 PyObject * obj0 = 0 ;
5648 char *kwnames[] = {
5649 (char *) "self", NULL
5650 };
5651
5652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (int)(arg1)->GetW();
5658
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 resultobj = SWIG_FromInt((int)result);
5663 return resultobj;
5664 fail:
5665 return NULL;
5666 }
5667
5668
5669 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5670 PyObject *resultobj;
5671 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5672 int result;
5673 PyObject * obj0 = 0 ;
5674 char *kwnames[] = {
5675 (char *) "self", NULL
5676 };
5677
5678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5681 {
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (int)(arg1)->GetWidth();
5684
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) SWIG_fail;
5687 }
5688 resultobj = SWIG_FromInt((int)result);
5689 return resultobj;
5690 fail:
5691 return NULL;
5692 }
5693
5694
5695 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5696 PyObject *resultobj;
5697 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5698 int result;
5699 PyObject * obj0 = 0 ;
5700 char *kwnames[] = {
5701 (char *) "self", NULL
5702 };
5703
5704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5707 {
5708 PyThreadState* __tstate = wxPyBeginAllowThreads();
5709 result = (int)(arg1)->GetH();
5710
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 resultobj = SWIG_FromInt((int)result);
5715 return resultobj;
5716 fail:
5717 return NULL;
5718 }
5719
5720
5721 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj;
5723 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5724 int result;
5725 PyObject * obj0 = 0 ;
5726 char *kwnames[] = {
5727 (char *) "self", NULL
5728 };
5729
5730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5733 {
5734 PyThreadState* __tstate = wxPyBeginAllowThreads();
5735 result = (int)(arg1)->GetHeight();
5736
5737 wxPyEndAllowThreads(__tstate);
5738 if (PyErr_Occurred()) SWIG_fail;
5739 }
5740 resultobj = SWIG_FromInt((int)result);
5741 return resultobj;
5742 fail:
5743 return NULL;
5744 }
5745
5746
5747 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5748 PyObject *resultobj;
5749 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5750 wxRect result;
5751 PyObject * obj0 = 0 ;
5752 char *kwnames[] = {
5753 (char *) "self", NULL
5754 };
5755
5756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (arg1)->GetRect();
5762
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 {
5767 wxRect * resultptr;
5768 resultptr = new wxRect((wxRect &) result);
5769 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5770 }
5771 return resultobj;
5772 fail:
5773 return NULL;
5774 }
5775
5776
5777 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5778 PyObject *resultobj;
5779 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5780 bool result;
5781 PyObject * obj0 = 0 ;
5782 char *kwnames[] = {
5783 (char *) "self", NULL
5784 };
5785
5786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5789 {
5790 PyThreadState* __tstate = wxPyBeginAllowThreads();
5791 result = (bool)(arg1)->HaveRects();
5792
5793 wxPyEndAllowThreads(__tstate);
5794 if (PyErr_Occurred()) SWIG_fail;
5795 }
5796 {
5797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5798 }
5799 return resultobj;
5800 fail:
5801 return NULL;
5802 }
5803
5804
5805 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5806 PyObject *resultobj;
5807 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5808 PyObject * obj0 = 0 ;
5809 char *kwnames[] = {
5810 (char *) "self", NULL
5811 };
5812
5813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 (arg1)->Reset();
5819
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 Py_INCREF(Py_None); resultobj = Py_None;
5824 return resultobj;
5825 fail:
5826 return NULL;
5827 }
5828
5829
5830 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5831 PyObject *resultobj;
5832 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5833 PyObject * obj0 = 0 ;
5834 char *kwnames[] = {
5835 (char *) "self", NULL
5836 };
5837
5838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5841 {
5842 PyThreadState* __tstate = wxPyBeginAllowThreads();
5843 wxRegionIterator_Next(arg1);
5844
5845 wxPyEndAllowThreads(__tstate);
5846 if (PyErr_Occurred()) SWIG_fail;
5847 }
5848 Py_INCREF(Py_None); resultobj = Py_None;
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj;
5857 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5858 bool result;
5859 PyObject * obj0 = 0 ;
5860 char *kwnames[] = {
5861 (char *) "self", NULL
5862 };
5863
5864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5867 {
5868 PyThreadState* __tstate = wxPyBeginAllowThreads();
5869 result = (bool)wxRegionIterator___nonzero__(arg1);
5870
5871 wxPyEndAllowThreads(__tstate);
5872 if (PyErr_Occurred()) SWIG_fail;
5873 }
5874 {
5875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5876 }
5877 return resultobj;
5878 fail:
5879 return NULL;
5880 }
5881
5882
5883 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5884 PyObject *obj;
5885 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5886 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5887 Py_INCREF(obj);
5888 return Py_BuildValue((char *)"");
5889 }
5890 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj;
5892 wxNativeFontInfo *result;
5893 char *kwnames[] = {
5894 NULL
5895 };
5896
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5898 {
5899 PyThreadState* __tstate = wxPyBeginAllowThreads();
5900 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5901
5902 wxPyEndAllowThreads(__tstate);
5903 if (PyErr_Occurred()) SWIG_fail;
5904 }
5905 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5906 return resultobj;
5907 fail:
5908 return NULL;
5909 }
5910
5911
5912 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5913 PyObject *resultobj;
5914 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5915 PyObject * obj0 = 0 ;
5916 char *kwnames[] = {
5917 (char *) "self", NULL
5918 };
5919
5920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5923 {
5924 PyThreadState* __tstate = wxPyBeginAllowThreads();
5925 delete arg1;
5926
5927 wxPyEndAllowThreads(__tstate);
5928 if (PyErr_Occurred()) SWIG_fail;
5929 }
5930 Py_INCREF(Py_None); resultobj = Py_None;
5931 return resultobj;
5932 fail:
5933 return NULL;
5934 }
5935
5936
5937 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5938 PyObject *resultobj;
5939 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5940 PyObject * obj0 = 0 ;
5941 char *kwnames[] = {
5942 (char *) "self", NULL
5943 };
5944
5945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 (arg1)->Init();
5951
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 Py_INCREF(Py_None); resultobj = Py_None;
5956 return resultobj;
5957 fail:
5958 return NULL;
5959 }
5960
5961
5962 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5963 PyObject *resultobj;
5964 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5965 wxFont *arg2 = 0 ;
5966 PyObject * obj0 = 0 ;
5967 PyObject * obj1 = 0 ;
5968 char *kwnames[] = {
5969 (char *) "self",(char *) "font", NULL
5970 };
5971
5972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5975 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
5976 SWIG_POINTER_EXCEPTION | 0)) == -1)
5977 SWIG_fail;
5978 if (arg2 == NULL) {
5979 PyErr_SetString(PyExc_TypeError,"null reference");
5980 SWIG_fail;
5981 }
5982 {
5983 PyThreadState* __tstate = wxPyBeginAllowThreads();
5984 (arg1)->InitFromFont((wxFont const &)*arg2);
5985
5986 wxPyEndAllowThreads(__tstate);
5987 if (PyErr_Occurred()) SWIG_fail;
5988 }
5989 Py_INCREF(Py_None); resultobj = Py_None;
5990 return resultobj;
5991 fail:
5992 return NULL;
5993 }
5994
5995
5996 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5997 PyObject *resultobj;
5998 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5999 int result;
6000 PyObject * obj0 = 0 ;
6001 char *kwnames[] = {
6002 (char *) "self", NULL
6003 };
6004
6005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6008 {
6009 PyThreadState* __tstate = wxPyBeginAllowThreads();
6010 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6011
6012 wxPyEndAllowThreads(__tstate);
6013 if (PyErr_Occurred()) SWIG_fail;
6014 }
6015 resultobj = SWIG_FromInt((int)result);
6016 return resultobj;
6017 fail:
6018 return NULL;
6019 }
6020
6021
6022 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6023 PyObject *resultobj;
6024 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6025 int result;
6026 PyObject * obj0 = 0 ;
6027 char *kwnames[] = {
6028 (char *) "self", NULL
6029 };
6030
6031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6034 {
6035 PyThreadState* __tstate = wxPyBeginAllowThreads();
6036 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6037
6038 wxPyEndAllowThreads(__tstate);
6039 if (PyErr_Occurred()) SWIG_fail;
6040 }
6041 resultobj = SWIG_FromInt((int)result);
6042 return resultobj;
6043 fail:
6044 return NULL;
6045 }
6046
6047
6048 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6049 PyObject *resultobj;
6050 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6051 int result;
6052 PyObject * obj0 = 0 ;
6053 char *kwnames[] = {
6054 (char *) "self", NULL
6055 };
6056
6057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6060 {
6061 PyThreadState* __tstate = wxPyBeginAllowThreads();
6062 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6063
6064 wxPyEndAllowThreads(__tstate);
6065 if (PyErr_Occurred()) SWIG_fail;
6066 }
6067 resultobj = SWIG_FromInt((int)result);
6068 return resultobj;
6069 fail:
6070 return NULL;
6071 }
6072
6073
6074 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6075 PyObject *resultobj;
6076 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6077 bool result;
6078 PyObject * obj0 = 0 ;
6079 char *kwnames[] = {
6080 (char *) "self", NULL
6081 };
6082
6083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6086 {
6087 PyThreadState* __tstate = wxPyBeginAllowThreads();
6088 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6089
6090 wxPyEndAllowThreads(__tstate);
6091 if (PyErr_Occurred()) SWIG_fail;
6092 }
6093 {
6094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6095 }
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6105 wxString result;
6106 PyObject * obj0 = 0 ;
6107 char *kwnames[] = {
6108 (char *) "self", NULL
6109 };
6110
6111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6114 {
6115 PyThreadState* __tstate = wxPyBeginAllowThreads();
6116 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6117
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 {
6122 #if wxUSE_UNICODE
6123 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6124 #else
6125 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6126 #endif
6127 }
6128 return resultobj;
6129 fail:
6130 return NULL;
6131 }
6132
6133
6134 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6135 PyObject *resultobj;
6136 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6137 int result;
6138 PyObject * obj0 = 0 ;
6139 char *kwnames[] = {
6140 (char *) "self", NULL
6141 };
6142
6143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6146 {
6147 PyThreadState* __tstate = wxPyBeginAllowThreads();
6148 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6149
6150 wxPyEndAllowThreads(__tstate);
6151 if (PyErr_Occurred()) SWIG_fail;
6152 }
6153 resultobj = SWIG_FromInt((int)result);
6154 return resultobj;
6155 fail:
6156 return NULL;
6157 }
6158
6159
6160 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6161 PyObject *resultobj;
6162 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6163 int result;
6164 PyObject * obj0 = 0 ;
6165 char *kwnames[] = {
6166 (char *) "self", NULL
6167 };
6168
6169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6172 {
6173 PyThreadState* __tstate = wxPyBeginAllowThreads();
6174 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6175
6176 wxPyEndAllowThreads(__tstate);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_FromInt((int)result);
6180 return resultobj;
6181 fail:
6182 return NULL;
6183 }
6184
6185
6186 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6187 PyObject *resultobj;
6188 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6189 int arg2 ;
6190 PyObject * obj0 = 0 ;
6191 PyObject * obj1 = 0 ;
6192 char *kwnames[] = {
6193 (char *) "self",(char *) "pointsize", NULL
6194 };
6195
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6199 arg2 = (int) SWIG_AsInt(obj1);
6200 if (PyErr_Occurred()) SWIG_fail;
6201 {
6202 PyThreadState* __tstate = wxPyBeginAllowThreads();
6203 (arg1)->SetPointSize(arg2);
6204
6205 wxPyEndAllowThreads(__tstate);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 }
6208 Py_INCREF(Py_None); resultobj = Py_None;
6209 return resultobj;
6210 fail:
6211 return NULL;
6212 }
6213
6214
6215 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6216 PyObject *resultobj;
6217 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6218 int arg2 ;
6219 PyObject * obj0 = 0 ;
6220 PyObject * obj1 = 0 ;
6221 char *kwnames[] = {
6222 (char *) "self",(char *) "style", NULL
6223 };
6224
6225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6228 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 {
6231 PyThreadState* __tstate = wxPyBeginAllowThreads();
6232 (arg1)->SetStyle((wxFontStyle )arg2);
6233
6234 wxPyEndAllowThreads(__tstate);
6235 if (PyErr_Occurred()) SWIG_fail;
6236 }
6237 Py_INCREF(Py_None); resultobj = Py_None;
6238 return resultobj;
6239 fail:
6240 return NULL;
6241 }
6242
6243
6244 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6245 PyObject *resultobj;
6246 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6247 int arg2 ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 char *kwnames[] = {
6251 (char *) "self",(char *) "weight", NULL
6252 };
6253
6254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6257 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6258 if (PyErr_Occurred()) SWIG_fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 (arg1)->SetWeight((wxFontWeight )arg2);
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 Py_INCREF(Py_None); resultobj = Py_None;
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6276 bool arg2 ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 char *kwnames[] = {
6280 (char *) "self",(char *) "underlined", NULL
6281 };
6282
6283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6286 arg2 = (bool) SWIG_AsBool(obj1);
6287 if (PyErr_Occurred()) SWIG_fail;
6288 {
6289 PyThreadState* __tstate = wxPyBeginAllowThreads();
6290 (arg1)->SetUnderlined(arg2);
6291
6292 wxPyEndAllowThreads(__tstate);
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 Py_INCREF(Py_None); resultobj = Py_None;
6296 return resultobj;
6297 fail:
6298 return NULL;
6299 }
6300
6301
6302 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6303 PyObject *resultobj;
6304 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6305 wxString arg2 ;
6306 PyObject * obj0 = 0 ;
6307 PyObject * obj1 = 0 ;
6308 char *kwnames[] = {
6309 (char *) "self",(char *) "facename", NULL
6310 };
6311
6312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6315 {
6316 wxString* sptr = wxString_in_helper(obj1);
6317 if (sptr == NULL) SWIG_fail;
6318 arg2 = *sptr;
6319 delete sptr;
6320 }
6321 {
6322 PyThreadState* __tstate = wxPyBeginAllowThreads();
6323 (arg1)->SetFaceName(arg2);
6324
6325 wxPyEndAllowThreads(__tstate);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 Py_INCREF(Py_None); resultobj = Py_None;
6329 return resultobj;
6330 fail:
6331 return NULL;
6332 }
6333
6334
6335 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6336 PyObject *resultobj;
6337 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6338 int arg2 ;
6339 PyObject * obj0 = 0 ;
6340 PyObject * obj1 = 0 ;
6341 char *kwnames[] = {
6342 (char *) "self",(char *) "family", NULL
6343 };
6344
6345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6348 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6349 if (PyErr_Occurred()) SWIG_fail;
6350 {
6351 PyThreadState* __tstate = wxPyBeginAllowThreads();
6352 (arg1)->SetFamily((wxFontFamily )arg2);
6353
6354 wxPyEndAllowThreads(__tstate);
6355 if (PyErr_Occurred()) SWIG_fail;
6356 }
6357 Py_INCREF(Py_None); resultobj = Py_None;
6358 return resultobj;
6359 fail:
6360 return NULL;
6361 }
6362
6363
6364 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6365 PyObject *resultobj;
6366 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6367 int arg2 ;
6368 PyObject * obj0 = 0 ;
6369 PyObject * obj1 = 0 ;
6370 char *kwnames[] = {
6371 (char *) "self",(char *) "encoding", NULL
6372 };
6373
6374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6377 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6378 if (PyErr_Occurred()) SWIG_fail;
6379 {
6380 PyThreadState* __tstate = wxPyBeginAllowThreads();
6381 (arg1)->SetEncoding((wxFontEncoding )arg2);
6382
6383 wxPyEndAllowThreads(__tstate);
6384 if (PyErr_Occurred()) SWIG_fail;
6385 }
6386 Py_INCREF(Py_None); resultobj = Py_None;
6387 return resultobj;
6388 fail:
6389 return NULL;
6390 }
6391
6392
6393 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6394 PyObject *resultobj;
6395 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6396 wxString *arg2 = 0 ;
6397 bool result;
6398 bool temp2 = False ;
6399 PyObject * obj0 = 0 ;
6400 PyObject * obj1 = 0 ;
6401 char *kwnames[] = {
6402 (char *) "self",(char *) "s", NULL
6403 };
6404
6405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6408 {
6409 arg2 = wxString_in_helper(obj1);
6410 if (arg2 == NULL) SWIG_fail;
6411 temp2 = True;
6412 }
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 {
6421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6422 }
6423 {
6424 if (temp2)
6425 delete arg2;
6426 }
6427 return resultobj;
6428 fail:
6429 {
6430 if (temp2)
6431 delete arg2;
6432 }
6433 return NULL;
6434 }
6435
6436
6437 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6438 PyObject *resultobj;
6439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6440 wxString result;
6441 PyObject * obj0 = 0 ;
6442 char *kwnames[] = {
6443 (char *) "self", NULL
6444 };
6445
6446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6449 {
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 result = ((wxNativeFontInfo const *)arg1)->ToString();
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 {
6457 #if wxUSE_UNICODE
6458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6459 #else
6460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6461 #endif
6462 }
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6472 wxString result;
6473 PyObject * obj0 = 0 ;
6474 char *kwnames[] = {
6475 (char *) "self", NULL
6476 };
6477
6478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6481 {
6482 PyThreadState* __tstate = wxPyBeginAllowThreads();
6483 result = wxNativeFontInfo___str__(arg1);
6484
6485 wxPyEndAllowThreads(__tstate);
6486 if (PyErr_Occurred()) SWIG_fail;
6487 }
6488 {
6489 #if wxUSE_UNICODE
6490 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6491 #else
6492 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6493 #endif
6494 }
6495 return resultobj;
6496 fail:
6497 return NULL;
6498 }
6499
6500
6501 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6502 PyObject *resultobj;
6503 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6504 wxString *arg2 = 0 ;
6505 bool result;
6506 bool temp2 = False ;
6507 PyObject * obj0 = 0 ;
6508 PyObject * obj1 = 0 ;
6509 char *kwnames[] = {
6510 (char *) "self",(char *) "s", NULL
6511 };
6512
6513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6516 {
6517 arg2 = wxString_in_helper(obj1);
6518 if (arg2 == NULL) SWIG_fail;
6519 temp2 = True;
6520 }
6521 {
6522 PyThreadState* __tstate = wxPyBeginAllowThreads();
6523 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6524
6525 wxPyEndAllowThreads(__tstate);
6526 if (PyErr_Occurred()) SWIG_fail;
6527 }
6528 {
6529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6530 }
6531 {
6532 if (temp2)
6533 delete arg2;
6534 }
6535 return resultobj;
6536 fail:
6537 {
6538 if (temp2)
6539 delete arg2;
6540 }
6541 return NULL;
6542 }
6543
6544
6545 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6546 PyObject *resultobj;
6547 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6548 wxString result;
6549 PyObject * obj0 = 0 ;
6550 char *kwnames[] = {
6551 (char *) "self", NULL
6552 };
6553
6554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6557 {
6558 PyThreadState* __tstate = wxPyBeginAllowThreads();
6559 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6560
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 {
6565 #if wxUSE_UNICODE
6566 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6567 #else
6568 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6569 #endif
6570 }
6571 return resultobj;
6572 fail:
6573 return NULL;
6574 }
6575
6576
6577 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6578 PyObject *obj;
6579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6580 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6581 Py_INCREF(obj);
6582 return Py_BuildValue((char *)"");
6583 }
6584 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6585 PyObject *resultobj;
6586 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6587 wxString *arg2 = (wxString *) 0 ;
6588 bool temp2 = False ;
6589 PyObject * obj0 = 0 ;
6590 PyObject * obj1 = 0 ;
6591 char *kwnames[] = {
6592 (char *) "self",(char *) "facename", NULL
6593 };
6594
6595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6598 {
6599 arg2 = wxString_in_helper(obj1);
6600 if (arg2 == NULL) SWIG_fail;
6601 temp2 = True;
6602 }
6603 if (arg1) (arg1)->facename = *arg2;
6604
6605 Py_INCREF(Py_None); resultobj = Py_None;
6606 {
6607 if (temp2)
6608 delete arg2;
6609 }
6610 return resultobj;
6611 fail:
6612 {
6613 if (temp2)
6614 delete arg2;
6615 }
6616 return NULL;
6617 }
6618
6619
6620 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6621 PyObject *resultobj;
6622 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6623 wxString *result;
6624 PyObject * obj0 = 0 ;
6625 char *kwnames[] = {
6626 (char *) "self", NULL
6627 };
6628
6629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6632 result = (wxString *)& ((arg1)->facename);
6633
6634 {
6635 #if wxUSE_UNICODE
6636 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6637 #else
6638 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6639 #endif
6640 }
6641 return resultobj;
6642 fail:
6643 return NULL;
6644 }
6645
6646
6647 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6648 PyObject *resultobj;
6649 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6650 int arg2 ;
6651 PyObject * obj0 = 0 ;
6652 PyObject * obj1 = 0 ;
6653 char *kwnames[] = {
6654 (char *) "self",(char *) "encoding", NULL
6655 };
6656
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6660 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6663
6664 Py_INCREF(Py_None); resultobj = Py_None;
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj;
6673 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6674 int result;
6675 PyObject * obj0 = 0 ;
6676 char *kwnames[] = {
6677 (char *) "self", NULL
6678 };
6679
6680 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6681 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6682 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6683 result = (int) ((arg1)->encoding);
6684
6685 resultobj = SWIG_FromInt((int)result);
6686 return resultobj;
6687 fail:
6688 return NULL;
6689 }
6690
6691
6692 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6693 PyObject *resultobj;
6694 wxNativeEncodingInfo *result;
6695 char *kwnames[] = {
6696 NULL
6697 };
6698
6699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6700 {
6701 PyThreadState* __tstate = wxPyBeginAllowThreads();
6702 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6703
6704 wxPyEndAllowThreads(__tstate);
6705 if (PyErr_Occurred()) SWIG_fail;
6706 }
6707 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6708 return resultobj;
6709 fail:
6710 return NULL;
6711 }
6712
6713
6714 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6715 PyObject *resultobj;
6716 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6717 PyObject * obj0 = 0 ;
6718 char *kwnames[] = {
6719 (char *) "self", NULL
6720 };
6721
6722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6725 {
6726 PyThreadState* __tstate = wxPyBeginAllowThreads();
6727 delete arg1;
6728
6729 wxPyEndAllowThreads(__tstate);
6730 if (PyErr_Occurred()) SWIG_fail;
6731 }
6732 Py_INCREF(Py_None); resultobj = Py_None;
6733 return resultobj;
6734 fail:
6735 return NULL;
6736 }
6737
6738
6739 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6740 PyObject *resultobj;
6741 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6742 wxString *arg2 = 0 ;
6743 bool result;
6744 bool temp2 = False ;
6745 PyObject * obj0 = 0 ;
6746 PyObject * obj1 = 0 ;
6747 char *kwnames[] = {
6748 (char *) "self",(char *) "s", NULL
6749 };
6750
6751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6754 {
6755 arg2 = wxString_in_helper(obj1);
6756 if (arg2 == NULL) SWIG_fail;
6757 temp2 = True;
6758 }
6759 {
6760 PyThreadState* __tstate = wxPyBeginAllowThreads();
6761 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6762
6763 wxPyEndAllowThreads(__tstate);
6764 if (PyErr_Occurred()) SWIG_fail;
6765 }
6766 {
6767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6768 }
6769 {
6770 if (temp2)
6771 delete arg2;
6772 }
6773 return resultobj;
6774 fail:
6775 {
6776 if (temp2)
6777 delete arg2;
6778 }
6779 return NULL;
6780 }
6781
6782
6783 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6784 PyObject *resultobj;
6785 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6786 wxString result;
6787 PyObject * obj0 = 0 ;
6788 char *kwnames[] = {
6789 (char *) "self", NULL
6790 };
6791
6792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6795 {
6796 PyThreadState* __tstate = wxPyBeginAllowThreads();
6797 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6798
6799 wxPyEndAllowThreads(__tstate);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 {
6803 #if wxUSE_UNICODE
6804 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6805 #else
6806 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6807 #endif
6808 }
6809 return resultobj;
6810 fail:
6811 return NULL;
6812 }
6813
6814
6815 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6816 PyObject *obj;
6817 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6818 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6819 Py_INCREF(obj);
6820 return Py_BuildValue((char *)"");
6821 }
6822 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6823 PyObject *resultobj;
6824 int arg1 ;
6825 wxNativeEncodingInfo *result;
6826 PyObject * obj0 = 0 ;
6827 char *kwnames[] = {
6828 (char *) "encoding", NULL
6829 };
6830
6831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6832 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6833 if (PyErr_Occurred()) SWIG_fail;
6834 {
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6837
6838 wxPyEndAllowThreads(__tstate);
6839 if (PyErr_Occurred()) SWIG_fail;
6840 }
6841 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6842 return resultobj;
6843 fail:
6844 return NULL;
6845 }
6846
6847
6848 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6849 PyObject *resultobj;
6850 wxNativeEncodingInfo *arg1 = 0 ;
6851 bool result;
6852 PyObject * obj0 = 0 ;
6853 char *kwnames[] = {
6854 (char *) "info", NULL
6855 };
6856
6857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6859 SWIG_POINTER_EXCEPTION | 0)) == -1)
6860 SWIG_fail;
6861 if (arg1 == NULL) {
6862 PyErr_SetString(PyExc_TypeError,"null reference");
6863 SWIG_fail;
6864 }
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
6872 {
6873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6874 }
6875 return resultobj;
6876 fail:
6877 return NULL;
6878 }
6879
6880
6881 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6882 PyObject *resultobj;
6883 wxFontMapper *result;
6884 char *kwnames[] = {
6885 NULL
6886 };
6887
6888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6889 {
6890 PyThreadState* __tstate = wxPyBeginAllowThreads();
6891 result = (wxFontMapper *)new wxFontMapper();
6892
6893 wxPyEndAllowThreads(__tstate);
6894 if (PyErr_Occurred()) SWIG_fail;
6895 }
6896 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6897 return resultobj;
6898 fail:
6899 return NULL;
6900 }
6901
6902
6903 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6904 PyObject *resultobj;
6905 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6906 PyObject * obj0 = 0 ;
6907 char *kwnames[] = {
6908 (char *) "self", NULL
6909 };
6910
6911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6914 {
6915 PyThreadState* __tstate = wxPyBeginAllowThreads();
6916 delete arg1;
6917
6918 wxPyEndAllowThreads(__tstate);
6919 if (PyErr_Occurred()) SWIG_fail;
6920 }
6921 Py_INCREF(Py_None); resultobj = Py_None;
6922 return resultobj;
6923 fail:
6924 return NULL;
6925 }
6926
6927
6928 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6929 PyObject *resultobj;
6930 wxFontMapper *result;
6931 char *kwnames[] = {
6932 NULL
6933 };
6934
6935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6936 {
6937 PyThreadState* __tstate = wxPyBeginAllowThreads();
6938 result = (wxFontMapper *)wxFontMapper::Get();
6939
6940 wxPyEndAllowThreads(__tstate);
6941 if (PyErr_Occurred()) SWIG_fail;
6942 }
6943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6944 return resultobj;
6945 fail:
6946 return NULL;
6947 }
6948
6949
6950 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6951 PyObject *resultobj;
6952 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6953 wxFontMapper *result;
6954 PyObject * obj0 = 0 ;
6955 char *kwnames[] = {
6956 (char *) "mapper", NULL
6957 };
6958
6959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6962 {
6963 PyThreadState* __tstate = wxPyBeginAllowThreads();
6964 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6965
6966 wxPyEndAllowThreads(__tstate);
6967 if (PyErr_Occurred()) SWIG_fail;
6968 }
6969 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6970 return resultobj;
6971 fail:
6972 return NULL;
6973 }
6974
6975
6976 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj;
6978 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6979 wxString *arg2 = 0 ;
6980 bool arg3 = (bool) True ;
6981 int result;
6982 bool temp2 = False ;
6983 PyObject * obj0 = 0 ;
6984 PyObject * obj1 = 0 ;
6985 PyObject * obj2 = 0 ;
6986 char *kwnames[] = {
6987 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6988 };
6989
6990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6993 {
6994 arg2 = wxString_in_helper(obj1);
6995 if (arg2 == NULL) SWIG_fail;
6996 temp2 = True;
6997 }
6998 if (obj2) {
6999 arg3 = (bool) SWIG_AsBool(obj2);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_FromInt((int)result);
7010 {
7011 if (temp2)
7012 delete arg2;
7013 }
7014 return resultobj;
7015 fail:
7016 {
7017 if (temp2)
7018 delete arg2;
7019 }
7020 return NULL;
7021 }
7022
7023
7024 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7025 PyObject *resultobj;
7026 size_t result;
7027 char *kwnames[] = {
7028 NULL
7029 };
7030
7031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj;
7048 size_t arg1 ;
7049 int result;
7050 PyObject * obj0 = 0 ;
7051 char *kwnames[] = {
7052 (char *) "n", NULL
7053 };
7054
7055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7056 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 {
7059 PyThreadState* __tstate = wxPyBeginAllowThreads();
7060 result = (int)wxFontMapper::GetEncoding(arg1);
7061
7062 wxPyEndAllowThreads(__tstate);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 resultobj = SWIG_FromInt((int)result);
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7073 PyObject *resultobj;
7074 int arg1 ;
7075 wxString result;
7076 PyObject * obj0 = 0 ;
7077 char *kwnames[] = {
7078 (char *) "encoding", NULL
7079 };
7080
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7082 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7087
7088 wxPyEndAllowThreads(__tstate);
7089 if (PyErr_Occurred()) SWIG_fail;
7090 }
7091 {
7092 #if wxUSE_UNICODE
7093 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7094 #else
7095 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7096 #endif
7097 }
7098 return resultobj;
7099 fail:
7100 return NULL;
7101 }
7102
7103
7104 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj;
7106 int arg1 ;
7107 wxString result;
7108 PyObject * obj0 = 0 ;
7109 char *kwnames[] = {
7110 (char *) "encoding", NULL
7111 };
7112
7113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7114 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 {
7117 PyThreadState* __tstate = wxPyBeginAllowThreads();
7118 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7119
7120 wxPyEndAllowThreads(__tstate);
7121 if (PyErr_Occurred()) SWIG_fail;
7122 }
7123 {
7124 #if wxUSE_UNICODE
7125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7126 #else
7127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7128 #endif
7129 }
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7137 PyObject *resultobj;
7138 wxString *arg1 = 0 ;
7139 int result;
7140 bool temp1 = False ;
7141 PyObject * obj0 = 0 ;
7142 char *kwnames[] = {
7143 (char *) "name", NULL
7144 };
7145
7146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7147 {
7148 arg1 = wxString_in_helper(obj0);
7149 if (arg1 == NULL) SWIG_fail;
7150 temp1 = True;
7151 }
7152 {
7153 PyThreadState* __tstate = wxPyBeginAllowThreads();
7154 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7155
7156 wxPyEndAllowThreads(__tstate);
7157 if (PyErr_Occurred()) SWIG_fail;
7158 }
7159 resultobj = SWIG_FromInt((int)result);
7160 {
7161 if (temp1)
7162 delete arg1;
7163 }
7164 return resultobj;
7165 fail:
7166 {
7167 if (temp1)
7168 delete arg1;
7169 }
7170 return NULL;
7171 }
7172
7173
7174 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7175 PyObject *resultobj;
7176 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7177 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
7180 char *kwnames[] = {
7181 (char *) "self",(char *) "config", NULL
7182 };
7183
7184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7187 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7189 {
7190 PyThreadState* __tstate = wxPyBeginAllowThreads();
7191 (arg1)->SetConfig(arg2);
7192
7193 wxPyEndAllowThreads(__tstate);
7194 if (PyErr_Occurred()) SWIG_fail;
7195 }
7196 Py_INCREF(Py_None); resultobj = Py_None;
7197 return resultobj;
7198 fail:
7199 return NULL;
7200 }
7201
7202
7203 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7204 PyObject *resultobj;
7205 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7206 wxString *arg2 = 0 ;
7207 bool temp2 = False ;
7208 PyObject * obj0 = 0 ;
7209 PyObject * obj1 = 0 ;
7210 char *kwnames[] = {
7211 (char *) "self",(char *) "prefix", NULL
7212 };
7213
7214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7217 {
7218 arg2 = wxString_in_helper(obj1);
7219 if (arg2 == NULL) SWIG_fail;
7220 temp2 = True;
7221 }
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 (arg1)->SetConfigPath((wxString const &)*arg2);
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 Py_INCREF(Py_None); resultobj = Py_None;
7230 {
7231 if (temp2)
7232 delete arg2;
7233 }
7234 return resultobj;
7235 fail:
7236 {
7237 if (temp2)
7238 delete arg2;
7239 }
7240 return NULL;
7241 }
7242
7243
7244 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7245 PyObject *resultobj;
7246 wxString result;
7247 char *kwnames[] = {
7248 NULL
7249 };
7250
7251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 result = wxFontMapper::GetDefaultConfigPath();
7255
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 {
7260 #if wxUSE_UNICODE
7261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7262 #else
7263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7264 #endif
7265 }
7266 return resultobj;
7267 fail:
7268 return NULL;
7269 }
7270
7271
7272 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7273 PyObject *resultobj;
7274 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7275 int arg2 ;
7276 wxString const &arg3_defvalue = wxPyEmptyString ;
7277 wxString *arg3 = (wxString *) &arg3_defvalue ;
7278 bool arg4 = (bool) True ;
7279 PyObject *result;
7280 bool temp3 = False ;
7281 PyObject * obj0 = 0 ;
7282 PyObject * obj1 = 0 ;
7283 PyObject * obj2 = 0 ;
7284 PyObject * obj3 = 0 ;
7285 char *kwnames[] = {
7286 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7287 };
7288
7289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7292 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7293 if (PyErr_Occurred()) SWIG_fail;
7294 if (obj2) {
7295 {
7296 arg3 = wxString_in_helper(obj2);
7297 if (arg3 == NULL) SWIG_fail;
7298 temp3 = True;
7299 }
7300 }
7301 if (obj3) {
7302 arg4 = (bool) SWIG_AsBool(obj3);
7303 if (PyErr_Occurred()) SWIG_fail;
7304 }
7305 {
7306 PyThreadState* __tstate = wxPyBeginAllowThreads();
7307 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7308
7309 wxPyEndAllowThreads(__tstate);
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = result;
7313 {
7314 if (temp3)
7315 delete arg3;
7316 }
7317 return resultobj;
7318 fail:
7319 {
7320 if (temp3)
7321 delete arg3;
7322 }
7323 return NULL;
7324 }
7325
7326
7327 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7328 PyObject *resultobj;
7329 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7330 int arg2 ;
7331 wxString const &arg3_defvalue = wxPyEmptyString ;
7332 wxString *arg3 = (wxString *) &arg3_defvalue ;
7333 bool result;
7334 bool temp3 = False ;
7335 PyObject * obj0 = 0 ;
7336 PyObject * obj1 = 0 ;
7337 PyObject * obj2 = 0 ;
7338 char *kwnames[] = {
7339 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7340 };
7341
7342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7345 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7346 if (PyErr_Occurred()) SWIG_fail;
7347 if (obj2) {
7348 {
7349 arg3 = wxString_in_helper(obj2);
7350 if (arg3 == NULL) SWIG_fail;
7351 temp3 = True;
7352 }
7353 }
7354 {
7355 PyThreadState* __tstate = wxPyBeginAllowThreads();
7356 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7357
7358 wxPyEndAllowThreads(__tstate);
7359 if (PyErr_Occurred()) SWIG_fail;
7360 }
7361 {
7362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7363 }
7364 {
7365 if (temp3)
7366 delete arg3;
7367 }
7368 return resultobj;
7369 fail:
7370 {
7371 if (temp3)
7372 delete arg3;
7373 }
7374 return NULL;
7375 }
7376
7377
7378 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7379 PyObject *resultobj;
7380 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7381 wxWindow *arg2 = (wxWindow *) 0 ;
7382 PyObject * obj0 = 0 ;
7383 PyObject * obj1 = 0 ;
7384 char *kwnames[] = {
7385 (char *) "self",(char *) "parent", NULL
7386 };
7387
7388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7391 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7393 {
7394 PyThreadState* __tstate = wxPyBeginAllowThreads();
7395 (arg1)->SetDialogParent(arg2);
7396
7397 wxPyEndAllowThreads(__tstate);
7398 if (PyErr_Occurred()) SWIG_fail;
7399 }
7400 Py_INCREF(Py_None); resultobj = Py_None;
7401 return resultobj;
7402 fail:
7403 return NULL;
7404 }
7405
7406
7407 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7408 PyObject *resultobj;
7409 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7410 wxString *arg2 = 0 ;
7411 bool temp2 = False ;
7412 PyObject * obj0 = 0 ;
7413 PyObject * obj1 = 0 ;
7414 char *kwnames[] = {
7415 (char *) "self",(char *) "title", NULL
7416 };
7417
7418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7421 {
7422 arg2 = wxString_in_helper(obj1);
7423 if (arg2 == NULL) SWIG_fail;
7424 temp2 = True;
7425 }
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 (arg1)->SetDialogTitle((wxString const &)*arg2);
7429
7430 wxPyEndAllowThreads(__tstate);
7431 if (PyErr_Occurred()) SWIG_fail;
7432 }
7433 Py_INCREF(Py_None); resultobj = Py_None;
7434 {
7435 if (temp2)
7436 delete arg2;
7437 }
7438 return resultobj;
7439 fail:
7440 {
7441 if (temp2)
7442 delete arg2;
7443 }
7444 return NULL;
7445 }
7446
7447
7448 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7449 PyObject *obj;
7450 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7451 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7452 Py_INCREF(obj);
7453 return Py_BuildValue((char *)"");
7454 }
7455 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7456 PyObject *resultobj;
7457 int arg1 ;
7458 int arg2 ;
7459 int arg3 ;
7460 int arg4 ;
7461 bool arg5 = (bool) False ;
7462 wxString const &arg6_defvalue = wxPyEmptyString ;
7463 wxString *arg6 = (wxString *) &arg6_defvalue ;
7464 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7465 wxFont *result;
7466 bool temp6 = False ;
7467 PyObject * obj0 = 0 ;
7468 PyObject * obj1 = 0 ;
7469 PyObject * obj2 = 0 ;
7470 PyObject * obj3 = 0 ;
7471 PyObject * obj4 = 0 ;
7472 PyObject * obj5 = 0 ;
7473 PyObject * obj6 = 0 ;
7474 char *kwnames[] = {
7475 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7476 };
7477
7478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7479 arg1 = (int) SWIG_AsInt(obj0);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 arg2 = (int) SWIG_AsInt(obj1);
7482 if (PyErr_Occurred()) SWIG_fail;
7483 arg3 = (int) SWIG_AsInt(obj2);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 arg4 = (int) SWIG_AsInt(obj3);
7486 if (PyErr_Occurred()) SWIG_fail;
7487 if (obj4) {
7488 arg5 = (bool) SWIG_AsBool(obj4);
7489 if (PyErr_Occurred()) SWIG_fail;
7490 }
7491 if (obj5) {
7492 {
7493 arg6 = wxString_in_helper(obj5);
7494 if (arg6 == NULL) SWIG_fail;
7495 temp6 = True;
7496 }
7497 }
7498 if (obj6) {
7499 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7500 if (PyErr_Occurred()) SWIG_fail;
7501 }
7502 {
7503 if (!wxPyCheckForApp()) SWIG_fail;
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7506
7507 wxPyEndAllowThreads(__tstate);
7508 if (PyErr_Occurred()) SWIG_fail;
7509 }
7510 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7511 {
7512 if (temp6)
7513 delete arg6;
7514 }
7515 return resultobj;
7516 fail:
7517 {
7518 if (temp6)
7519 delete arg6;
7520 }
7521 return NULL;
7522 }
7523
7524
7525 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7526 PyObject *resultobj;
7527 wxFont *arg1 = (wxFont *) 0 ;
7528 PyObject * obj0 = 0 ;
7529 char *kwnames[] = {
7530 (char *) "self", NULL
7531 };
7532
7533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7536 {
7537 PyThreadState* __tstate = wxPyBeginAllowThreads();
7538 delete arg1;
7539
7540 wxPyEndAllowThreads(__tstate);
7541 if (PyErr_Occurred()) SWIG_fail;
7542 }
7543 Py_INCREF(Py_None); resultobj = Py_None;
7544 return resultobj;
7545 fail:
7546 return NULL;
7547 }
7548
7549
7550 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7551 PyObject *resultobj;
7552 wxNativeFontInfo *arg1 = 0 ;
7553 wxFont *result;
7554 PyObject * obj0 = 0 ;
7555 char *kwnames[] = {
7556 (char *) "info", NULL
7557 };
7558
7559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7561 SWIG_POINTER_EXCEPTION | 0)) == -1)
7562 SWIG_fail;
7563 if (arg1 == NULL) {
7564 PyErr_SetString(PyExc_TypeError,"null reference");
7565 SWIG_fail;
7566 }
7567 {
7568 if (!wxPyCheckForApp()) SWIG_fail;
7569 PyThreadState* __tstate = wxPyBeginAllowThreads();
7570 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7571
7572 wxPyEndAllowThreads(__tstate);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7576 return resultobj;
7577 fail:
7578 return NULL;
7579 }
7580
7581
7582 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7583 PyObject *resultobj;
7584 wxString *arg1 = 0 ;
7585 wxFont *result;
7586 bool temp1 = False ;
7587 PyObject * obj0 = 0 ;
7588 char *kwnames[] = {
7589 (char *) "info", NULL
7590 };
7591
7592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7593 {
7594 arg1 = wxString_in_helper(obj0);
7595 if (arg1 == NULL) SWIG_fail;
7596 temp1 = True;
7597 }
7598 {
7599 if (!wxPyCheckForApp()) SWIG_fail;
7600 PyThreadState* __tstate = wxPyBeginAllowThreads();
7601 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7602
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7607 {
7608 if (temp1)
7609 delete arg1;
7610 }
7611 return resultobj;
7612 fail:
7613 {
7614 if (temp1)
7615 delete arg1;
7616 }
7617 return NULL;
7618 }
7619
7620
7621 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7622 PyObject *resultobj;
7623 int arg1 ;
7624 int arg2 ;
7625 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7626 wxString const &arg4_defvalue = wxPyEmptyString ;
7627 wxString *arg4 = (wxString *) &arg4_defvalue ;
7628 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7629 wxFont *result;
7630 bool temp4 = False ;
7631 PyObject * obj0 = 0 ;
7632 PyObject * obj1 = 0 ;
7633 PyObject * obj2 = 0 ;
7634 PyObject * obj3 = 0 ;
7635 PyObject * obj4 = 0 ;
7636 char *kwnames[] = {
7637 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7638 };
7639
7640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7641 arg1 = (int) SWIG_AsInt(obj0);
7642 if (PyErr_Occurred()) SWIG_fail;
7643 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7644 if (PyErr_Occurred()) SWIG_fail;
7645 if (obj2) {
7646 arg3 = (int) SWIG_AsInt(obj2);
7647 if (PyErr_Occurred()) SWIG_fail;
7648 }
7649 if (obj3) {
7650 {
7651 arg4 = wxString_in_helper(obj3);
7652 if (arg4 == NULL) SWIG_fail;
7653 temp4 = True;
7654 }
7655 }
7656 if (obj4) {
7657 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7658 if (PyErr_Occurred()) SWIG_fail;
7659 }
7660 {
7661 if (!wxPyCheckForApp()) SWIG_fail;
7662 PyThreadState* __tstate = wxPyBeginAllowThreads();
7663 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7664
7665 wxPyEndAllowThreads(__tstate);
7666 if (PyErr_Occurred()) SWIG_fail;
7667 }
7668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7669 {
7670 if (temp4)
7671 delete arg4;
7672 }
7673 return resultobj;
7674 fail:
7675 {
7676 if (temp4)
7677 delete arg4;
7678 }
7679 return NULL;
7680 }
7681
7682
7683 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj;
7685 wxFont *arg1 = (wxFont *) 0 ;
7686 bool result;
7687 PyObject * obj0 = 0 ;
7688 char *kwnames[] = {
7689 (char *) "self", NULL
7690 };
7691
7692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7695 {
7696 PyThreadState* __tstate = wxPyBeginAllowThreads();
7697 result = (bool)((wxFont const *)arg1)->Ok();
7698
7699 wxPyEndAllowThreads(__tstate);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 {
7703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7704 }
7705 return resultobj;
7706 fail:
7707 return NULL;
7708 }
7709
7710
7711 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7712 PyObject *resultobj;
7713 wxFont *arg1 = (wxFont *) 0 ;
7714 wxFont *arg2 = (wxFont *) 0 ;
7715 bool result;
7716 PyObject * obj0 = 0 ;
7717 PyObject * obj1 = 0 ;
7718 char *kwnames[] = {
7719 (char *) "self",(char *) "other", NULL
7720 };
7721
7722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7725 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7727 {
7728 PyThreadState* __tstate = wxPyBeginAllowThreads();
7729 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7730
7731 wxPyEndAllowThreads(__tstate);
7732 if (PyErr_Occurred()) SWIG_fail;
7733 }
7734 {
7735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7736 }
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj;
7745 wxFont *arg1 = (wxFont *) 0 ;
7746 wxFont *arg2 = (wxFont *) 0 ;
7747 bool result;
7748 PyObject * obj0 = 0 ;
7749 PyObject * obj1 = 0 ;
7750 char *kwnames[] = {
7751 (char *) "self",(char *) "other", NULL
7752 };
7753
7754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7757 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7759 {
7760 PyThreadState* __tstate = wxPyBeginAllowThreads();
7761 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7762
7763 wxPyEndAllowThreads(__tstate);
7764 if (PyErr_Occurred()) SWIG_fail;
7765 }
7766 {
7767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7768 }
7769 return resultobj;
7770 fail:
7771 return NULL;
7772 }
7773
7774
7775 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7776 PyObject *resultobj;
7777 wxFont *arg1 = (wxFont *) 0 ;
7778 int result;
7779 PyObject * obj0 = 0 ;
7780 char *kwnames[] = {
7781 (char *) "self", NULL
7782 };
7783
7784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7787 {
7788 PyThreadState* __tstate = wxPyBeginAllowThreads();
7789 result = (int)((wxFont const *)arg1)->GetPointSize();
7790
7791 wxPyEndAllowThreads(__tstate);
7792 if (PyErr_Occurred()) SWIG_fail;
7793 }
7794 resultobj = SWIG_FromInt((int)result);
7795 return resultobj;
7796 fail:
7797 return NULL;
7798 }
7799
7800
7801 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7802 PyObject *resultobj;
7803 wxFont *arg1 = (wxFont *) 0 ;
7804 int result;
7805 PyObject * obj0 = 0 ;
7806 char *kwnames[] = {
7807 (char *) "self", NULL
7808 };
7809
7810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7813 {
7814 PyThreadState* __tstate = wxPyBeginAllowThreads();
7815 result = (int)((wxFont const *)arg1)->GetFamily();
7816
7817 wxPyEndAllowThreads(__tstate);
7818 if (PyErr_Occurred()) SWIG_fail;
7819 }
7820 resultobj = SWIG_FromInt((int)result);
7821 return resultobj;
7822 fail:
7823 return NULL;
7824 }
7825
7826
7827 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7828 PyObject *resultobj;
7829 wxFont *arg1 = (wxFont *) 0 ;
7830 int result;
7831 PyObject * obj0 = 0 ;
7832 char *kwnames[] = {
7833 (char *) "self", NULL
7834 };
7835
7836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7839 {
7840 PyThreadState* __tstate = wxPyBeginAllowThreads();
7841 result = (int)((wxFont const *)arg1)->GetStyle();
7842
7843 wxPyEndAllowThreads(__tstate);
7844 if (PyErr_Occurred()) SWIG_fail;
7845 }
7846 resultobj = SWIG_FromInt((int)result);
7847 return resultobj;
7848 fail:
7849 return NULL;
7850 }
7851
7852
7853 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7854 PyObject *resultobj;
7855 wxFont *arg1 = (wxFont *) 0 ;
7856 int result;
7857 PyObject * obj0 = 0 ;
7858 char *kwnames[] = {
7859 (char *) "self", NULL
7860 };
7861
7862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7865 {
7866 PyThreadState* __tstate = wxPyBeginAllowThreads();
7867 result = (int)((wxFont const *)arg1)->GetWeight();
7868
7869 wxPyEndAllowThreads(__tstate);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 resultobj = SWIG_FromInt((int)result);
7873 return resultobj;
7874 fail:
7875 return NULL;
7876 }
7877
7878
7879 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7880 PyObject *resultobj;
7881 wxFont *arg1 = (wxFont *) 0 ;
7882 bool result;
7883 PyObject * obj0 = 0 ;
7884 char *kwnames[] = {
7885 (char *) "self", NULL
7886 };
7887
7888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7891 {
7892 PyThreadState* __tstate = wxPyBeginAllowThreads();
7893 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7894
7895 wxPyEndAllowThreads(__tstate);
7896 if (PyErr_Occurred()) SWIG_fail;
7897 }
7898 {
7899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7900 }
7901 return resultobj;
7902 fail:
7903 return NULL;
7904 }
7905
7906
7907 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7908 PyObject *resultobj;
7909 wxFont *arg1 = (wxFont *) 0 ;
7910 wxString result;
7911 PyObject * obj0 = 0 ;
7912 char *kwnames[] = {
7913 (char *) "self", NULL
7914 };
7915
7916 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7917 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7918 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7919 {
7920 PyThreadState* __tstate = wxPyBeginAllowThreads();
7921 result = ((wxFont const *)arg1)->GetFaceName();
7922
7923 wxPyEndAllowThreads(__tstate);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 {
7927 #if wxUSE_UNICODE
7928 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7929 #else
7930 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7931 #endif
7932 }
7933 return resultobj;
7934 fail:
7935 return NULL;
7936 }
7937
7938
7939 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7940 PyObject *resultobj;
7941 wxFont *arg1 = (wxFont *) 0 ;
7942 int result;
7943 PyObject * obj0 = 0 ;
7944 char *kwnames[] = {
7945 (char *) "self", NULL
7946 };
7947
7948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7951 {
7952 PyThreadState* __tstate = wxPyBeginAllowThreads();
7953 result = (int)((wxFont const *)arg1)->GetEncoding();
7954
7955 wxPyEndAllowThreads(__tstate);
7956 if (PyErr_Occurred()) SWIG_fail;
7957 }
7958 resultobj = SWIG_FromInt((int)result);
7959 return resultobj;
7960 fail:
7961 return NULL;
7962 }
7963
7964
7965 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7966 PyObject *resultobj;
7967 wxFont *arg1 = (wxFont *) 0 ;
7968 wxNativeFontInfo *result;
7969 PyObject * obj0 = 0 ;
7970 char *kwnames[] = {
7971 (char *) "self", NULL
7972 };
7973
7974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7980
7981 wxPyEndAllowThreads(__tstate);
7982 if (PyErr_Occurred()) SWIG_fail;
7983 }
7984 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7985 return resultobj;
7986 fail:
7987 return NULL;
7988 }
7989
7990
7991 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7992 PyObject *resultobj;
7993 wxFont *arg1 = (wxFont *) 0 ;
7994 bool result;
7995 PyObject * obj0 = 0 ;
7996 char *kwnames[] = {
7997 (char *) "self", NULL
7998 };
7999
8000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8003 {
8004 PyThreadState* __tstate = wxPyBeginAllowThreads();
8005 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8006
8007 wxPyEndAllowThreads(__tstate);
8008 if (PyErr_Occurred()) SWIG_fail;
8009 }
8010 {
8011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8012 }
8013 return resultobj;
8014 fail:
8015 return NULL;
8016 }
8017
8018
8019 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8020 PyObject *resultobj;
8021 wxFont *arg1 = (wxFont *) 0 ;
8022 wxString result;
8023 PyObject * obj0 = 0 ;
8024 char *kwnames[] = {
8025 (char *) "self", NULL
8026 };
8027
8028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8031 {
8032 PyThreadState* __tstate = wxPyBeginAllowThreads();
8033 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8034
8035 wxPyEndAllowThreads(__tstate);
8036 if (PyErr_Occurred()) SWIG_fail;
8037 }
8038 {
8039 #if wxUSE_UNICODE
8040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8041 #else
8042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8043 #endif
8044 }
8045 return resultobj;
8046 fail:
8047 return NULL;
8048 }
8049
8050
8051 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8052 PyObject *resultobj;
8053 wxFont *arg1 = (wxFont *) 0 ;
8054 wxString result;
8055 PyObject * obj0 = 0 ;
8056 char *kwnames[] = {
8057 (char *) "self", NULL
8058 };
8059
8060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8066
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 {
8071 #if wxUSE_UNICODE
8072 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8073 #else
8074 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8075 #endif
8076 }
8077 return resultobj;
8078 fail:
8079 return NULL;
8080 }
8081
8082
8083 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8084 PyObject *resultobj;
8085 wxFont *arg1 = (wxFont *) 0 ;
8086 int arg2 ;
8087 PyObject * obj0 = 0 ;
8088 PyObject * obj1 = 0 ;
8089 char *kwnames[] = {
8090 (char *) "self",(char *) "pointSize", NULL
8091 };
8092
8093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8096 arg2 = (int) SWIG_AsInt(obj1);
8097 if (PyErr_Occurred()) SWIG_fail;
8098 {
8099 PyThreadState* __tstate = wxPyBeginAllowThreads();
8100 (arg1)->SetPointSize(arg2);
8101
8102 wxPyEndAllowThreads(__tstate);
8103 if (PyErr_Occurred()) SWIG_fail;
8104 }
8105 Py_INCREF(Py_None); resultobj = Py_None;
8106 return resultobj;
8107 fail:
8108 return NULL;
8109 }
8110
8111
8112 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8113 PyObject *resultobj;
8114 wxFont *arg1 = (wxFont *) 0 ;
8115 int arg2 ;
8116 PyObject * obj0 = 0 ;
8117 PyObject * obj1 = 0 ;
8118 char *kwnames[] = {
8119 (char *) "self",(char *) "family", NULL
8120 };
8121
8122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8125 arg2 = (int) SWIG_AsInt(obj1);
8126 if (PyErr_Occurred()) SWIG_fail;
8127 {
8128 PyThreadState* __tstate = wxPyBeginAllowThreads();
8129 (arg1)->SetFamily(arg2);
8130
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 Py_INCREF(Py_None); resultobj = Py_None;
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8142 PyObject *resultobj;
8143 wxFont *arg1 = (wxFont *) 0 ;
8144 int arg2 ;
8145 PyObject * obj0 = 0 ;
8146 PyObject * obj1 = 0 ;
8147 char *kwnames[] = {
8148 (char *) "self",(char *) "style", NULL
8149 };
8150
8151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8154 arg2 = (int) SWIG_AsInt(obj1);
8155 if (PyErr_Occurred()) SWIG_fail;
8156 {
8157 PyThreadState* __tstate = wxPyBeginAllowThreads();
8158 (arg1)->SetStyle(arg2);
8159
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 Py_INCREF(Py_None); resultobj = Py_None;
8164 return resultobj;
8165 fail:
8166 return NULL;
8167 }
8168
8169
8170 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8171 PyObject *resultobj;
8172 wxFont *arg1 = (wxFont *) 0 ;
8173 int arg2 ;
8174 PyObject * obj0 = 0 ;
8175 PyObject * obj1 = 0 ;
8176 char *kwnames[] = {
8177 (char *) "self",(char *) "weight", NULL
8178 };
8179
8180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8183 arg2 = (int) SWIG_AsInt(obj1);
8184 if (PyErr_Occurred()) SWIG_fail;
8185 {
8186 PyThreadState* __tstate = wxPyBeginAllowThreads();
8187 (arg1)->SetWeight(arg2);
8188
8189 wxPyEndAllowThreads(__tstate);
8190 if (PyErr_Occurred()) SWIG_fail;
8191 }
8192 Py_INCREF(Py_None); resultobj = Py_None;
8193 return resultobj;
8194 fail:
8195 return NULL;
8196 }
8197
8198
8199 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj;
8201 wxFont *arg1 = (wxFont *) 0 ;
8202 wxString *arg2 = 0 ;
8203 bool temp2 = False ;
8204 PyObject * obj0 = 0 ;
8205 PyObject * obj1 = 0 ;
8206 char *kwnames[] = {
8207 (char *) "self",(char *) "faceName", NULL
8208 };
8209
8210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8213 {
8214 arg2 = wxString_in_helper(obj1);
8215 if (arg2 == NULL) SWIG_fail;
8216 temp2 = True;
8217 }
8218 {
8219 PyThreadState* __tstate = wxPyBeginAllowThreads();
8220 (arg1)->SetFaceName((wxString const &)*arg2);
8221
8222 wxPyEndAllowThreads(__tstate);
8223 if (PyErr_Occurred()) SWIG_fail;
8224 }
8225 Py_INCREF(Py_None); resultobj = Py_None;
8226 {
8227 if (temp2)
8228 delete arg2;
8229 }
8230 return resultobj;
8231 fail:
8232 {
8233 if (temp2)
8234 delete arg2;
8235 }
8236 return NULL;
8237 }
8238
8239
8240 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8241 PyObject *resultobj;
8242 wxFont *arg1 = (wxFont *) 0 ;
8243 bool arg2 ;
8244 PyObject * obj0 = 0 ;
8245 PyObject * obj1 = 0 ;
8246 char *kwnames[] = {
8247 (char *) "self",(char *) "underlined", NULL
8248 };
8249
8250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8253 arg2 = (bool) SWIG_AsBool(obj1);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 (arg1)->SetUnderlined(arg2);
8258
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 Py_INCREF(Py_None); resultobj = Py_None;
8263 return resultobj;
8264 fail:
8265 return NULL;
8266 }
8267
8268
8269 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj;
8271 wxFont *arg1 = (wxFont *) 0 ;
8272 int arg2 ;
8273 PyObject * obj0 = 0 ;
8274 PyObject * obj1 = 0 ;
8275 char *kwnames[] = {
8276 (char *) "self",(char *) "encoding", NULL
8277 };
8278
8279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8282 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 {
8285 PyThreadState* __tstate = wxPyBeginAllowThreads();
8286 (arg1)->SetEncoding((wxFontEncoding )arg2);
8287
8288 wxPyEndAllowThreads(__tstate);
8289 if (PyErr_Occurred()) SWIG_fail;
8290 }
8291 Py_INCREF(Py_None); resultobj = Py_None;
8292 return resultobj;
8293 fail:
8294 return NULL;
8295 }
8296
8297
8298 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8299 PyObject *resultobj;
8300 wxFont *arg1 = (wxFont *) 0 ;
8301 wxNativeFontInfo *arg2 = 0 ;
8302 PyObject * obj0 = 0 ;
8303 PyObject * obj1 = 0 ;
8304 char *kwnames[] = {
8305 (char *) "self",(char *) "info", NULL
8306 };
8307
8308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8311 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8312 SWIG_POINTER_EXCEPTION | 0)) == -1)
8313 SWIG_fail;
8314 if (arg2 == NULL) {
8315 PyErr_SetString(PyExc_TypeError,"null reference");
8316 SWIG_fail;
8317 }
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8321
8322 wxPyEndAllowThreads(__tstate);
8323 if (PyErr_Occurred()) SWIG_fail;
8324 }
8325 Py_INCREF(Py_None); resultobj = Py_None;
8326 return resultobj;
8327 fail:
8328 return NULL;
8329 }
8330
8331
8332 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8333 PyObject *resultobj;
8334 wxFont *arg1 = (wxFont *) 0 ;
8335 wxString *arg2 = 0 ;
8336 bool temp2 = False ;
8337 PyObject * obj0 = 0 ;
8338 PyObject * obj1 = 0 ;
8339 char *kwnames[] = {
8340 (char *) "self",(char *) "info", NULL
8341 };
8342
8343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8346 {
8347 arg2 = wxString_in_helper(obj1);
8348 if (arg2 == NULL) SWIG_fail;
8349 temp2 = True;
8350 }
8351 {
8352 PyThreadState* __tstate = wxPyBeginAllowThreads();
8353 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8354
8355 wxPyEndAllowThreads(__tstate);
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 Py_INCREF(Py_None); resultobj = Py_None;
8359 {
8360 if (temp2)
8361 delete arg2;
8362 }
8363 return resultobj;
8364 fail:
8365 {
8366 if (temp2)
8367 delete arg2;
8368 }
8369 return NULL;
8370 }
8371
8372
8373 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8374 PyObject *resultobj;
8375 wxFont *arg1 = (wxFont *) 0 ;
8376 wxString *arg2 = 0 ;
8377 bool temp2 = False ;
8378 PyObject * obj0 = 0 ;
8379 PyObject * obj1 = 0 ;
8380 char *kwnames[] = {
8381 (char *) "self",(char *) "info", NULL
8382 };
8383
8384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8387 {
8388 arg2 = wxString_in_helper(obj1);
8389 if (arg2 == NULL) SWIG_fail;
8390 temp2 = True;
8391 }
8392 {
8393 PyThreadState* __tstate = wxPyBeginAllowThreads();
8394 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8395
8396 wxPyEndAllowThreads(__tstate);
8397 if (PyErr_Occurred()) SWIG_fail;
8398 }
8399 Py_INCREF(Py_None); resultobj = Py_None;
8400 {
8401 if (temp2)
8402 delete arg2;
8403 }
8404 return resultobj;
8405 fail:
8406 {
8407 if (temp2)
8408 delete arg2;
8409 }
8410 return NULL;
8411 }
8412
8413
8414 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8415 PyObject *resultobj;
8416 wxFont *arg1 = (wxFont *) 0 ;
8417 wxString result;
8418 PyObject * obj0 = 0 ;
8419 char *kwnames[] = {
8420 (char *) "self", NULL
8421 };
8422
8423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8426 {
8427 PyThreadState* __tstate = wxPyBeginAllowThreads();
8428 result = ((wxFont const *)arg1)->GetFamilyString();
8429
8430 wxPyEndAllowThreads(__tstate);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 {
8434 #if wxUSE_UNICODE
8435 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8436 #else
8437 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8438 #endif
8439 }
8440 return resultobj;
8441 fail:
8442 return NULL;
8443 }
8444
8445
8446 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj;
8448 wxFont *arg1 = (wxFont *) 0 ;
8449 wxString result;
8450 PyObject * obj0 = 0 ;
8451 char *kwnames[] = {
8452 (char *) "self", NULL
8453 };
8454
8455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8458 {
8459 PyThreadState* __tstate = wxPyBeginAllowThreads();
8460 result = ((wxFont const *)arg1)->GetStyleString();
8461
8462 wxPyEndAllowThreads(__tstate);
8463 if (PyErr_Occurred()) SWIG_fail;
8464 }
8465 {
8466 #if wxUSE_UNICODE
8467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8468 #else
8469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8470 #endif
8471 }
8472 return resultobj;
8473 fail:
8474 return NULL;
8475 }
8476
8477
8478 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8479 PyObject *resultobj;
8480 wxFont *arg1 = (wxFont *) 0 ;
8481 wxString result;
8482 PyObject * obj0 = 0 ;
8483 char *kwnames[] = {
8484 (char *) "self", NULL
8485 };
8486
8487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8490 {
8491 PyThreadState* __tstate = wxPyBeginAllowThreads();
8492 result = ((wxFont const *)arg1)->GetWeightString();
8493
8494 wxPyEndAllowThreads(__tstate);
8495 if (PyErr_Occurred()) SWIG_fail;
8496 }
8497 {
8498 #if wxUSE_UNICODE
8499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8500 #else
8501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8502 #endif
8503 }
8504 return resultobj;
8505 fail:
8506 return NULL;
8507 }
8508
8509
8510 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8511 PyObject *resultobj;
8512 wxFont *arg1 = (wxFont *) 0 ;
8513 bool arg2 = (bool) True ;
8514 PyObject * obj0 = 0 ;
8515 PyObject * obj1 = 0 ;
8516 char *kwnames[] = {
8517 (char *) "self",(char *) "no", NULL
8518 };
8519
8520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8523 if (obj1) {
8524 arg2 = (bool) SWIG_AsBool(obj1);
8525 if (PyErr_Occurred()) SWIG_fail;
8526 }
8527 {
8528 PyThreadState* __tstate = wxPyBeginAllowThreads();
8529 (arg1)->SetNoAntiAliasing(arg2);
8530
8531 wxPyEndAllowThreads(__tstate);
8532 if (PyErr_Occurred()) SWIG_fail;
8533 }
8534 Py_INCREF(Py_None); resultobj = Py_None;
8535 return resultobj;
8536 fail:
8537 return NULL;
8538 }
8539
8540
8541 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8542 PyObject *resultobj;
8543 wxFont *arg1 = (wxFont *) 0 ;
8544 bool result;
8545 PyObject * obj0 = 0 ;
8546 char *kwnames[] = {
8547 (char *) "self", NULL
8548 };
8549
8550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 result = (bool)(arg1)->GetNoAntiAliasing();
8556
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 {
8561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8562 }
8563 return resultobj;
8564 fail:
8565 return NULL;
8566 }
8567
8568
8569 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8570 PyObject *resultobj;
8571 int result;
8572 char *kwnames[] = {
8573 NULL
8574 };
8575
8576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8577 {
8578 if (!wxPyCheckForApp()) SWIG_fail;
8579 PyThreadState* __tstate = wxPyBeginAllowThreads();
8580 result = (int)wxFont::GetDefaultEncoding();
8581
8582 wxPyEndAllowThreads(__tstate);
8583 if (PyErr_Occurred()) SWIG_fail;
8584 }
8585 resultobj = SWIG_FromInt((int)result);
8586 return resultobj;
8587 fail:
8588 return NULL;
8589 }
8590
8591
8592 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8593 PyObject *resultobj;
8594 int arg1 ;
8595 PyObject * obj0 = 0 ;
8596 char *kwnames[] = {
8597 (char *) "encoding", NULL
8598 };
8599
8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8601 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 {
8604 if (!wxPyCheckForApp()) SWIG_fail;
8605 PyThreadState* __tstate = wxPyBeginAllowThreads();
8606 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8607
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 Py_INCREF(Py_None); resultobj = Py_None;
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8619 PyObject *obj;
8620 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8621 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8622 Py_INCREF(obj);
8623 return Py_BuildValue((char *)"");
8624 }
8625 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8626 PyObject *resultobj;
8627 wxPyFontEnumerator *result;
8628 char *kwnames[] = {
8629 NULL
8630 };
8631
8632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8633 {
8634 if (!wxPyCheckForApp()) SWIG_fail;
8635 PyThreadState* __tstate = wxPyBeginAllowThreads();
8636 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8637
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8642 return resultobj;
8643 fail:
8644 return NULL;
8645 }
8646
8647
8648 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8649 PyObject *resultobj;
8650 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8651 PyObject * obj0 = 0 ;
8652 char *kwnames[] = {
8653 (char *) "self", NULL
8654 };
8655
8656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8659 {
8660 PyThreadState* __tstate = wxPyBeginAllowThreads();
8661 delete arg1;
8662
8663 wxPyEndAllowThreads(__tstate);
8664 if (PyErr_Occurred()) SWIG_fail;
8665 }
8666 Py_INCREF(Py_None); resultobj = Py_None;
8667 return resultobj;
8668 fail:
8669 return NULL;
8670 }
8671
8672
8673 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8674 PyObject *resultobj;
8675 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8676 PyObject *arg2 = (PyObject *) 0 ;
8677 PyObject *arg3 = (PyObject *) 0 ;
8678 bool arg4 ;
8679 PyObject * obj0 = 0 ;
8680 PyObject * obj1 = 0 ;
8681 PyObject * obj2 = 0 ;
8682 PyObject * obj3 = 0 ;
8683 char *kwnames[] = {
8684 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8685 };
8686
8687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8690 arg2 = obj1;
8691 arg3 = obj2;
8692 arg4 = (bool) SWIG_AsBool(obj3);
8693 if (PyErr_Occurred()) SWIG_fail;
8694 {
8695 PyThreadState* __tstate = wxPyBeginAllowThreads();
8696 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8697
8698 wxPyEndAllowThreads(__tstate);
8699 if (PyErr_Occurred()) SWIG_fail;
8700 }
8701 Py_INCREF(Py_None); resultobj = Py_None;
8702 return resultobj;
8703 fail:
8704 return NULL;
8705 }
8706
8707
8708 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8709 PyObject *resultobj;
8710 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8711 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8712 bool arg3 = (bool) False ;
8713 bool result;
8714 PyObject * obj0 = 0 ;
8715 PyObject * obj1 = 0 ;
8716 PyObject * obj2 = 0 ;
8717 char *kwnames[] = {
8718 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8719 };
8720
8721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8724 if (obj1) {
8725 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8726 if (PyErr_Occurred()) SWIG_fail;
8727 }
8728 if (obj2) {
8729 arg3 = (bool) SWIG_AsBool(obj2);
8730 if (PyErr_Occurred()) SWIG_fail;
8731 }
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 {
8740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8741 }
8742 return resultobj;
8743 fail:
8744 return NULL;
8745 }
8746
8747
8748 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8749 PyObject *resultobj;
8750 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8751 wxString const &arg2_defvalue = wxPyEmptyString ;
8752 wxString *arg2 = (wxString *) &arg2_defvalue ;
8753 bool result;
8754 bool temp2 = False ;
8755 PyObject * obj0 = 0 ;
8756 PyObject * obj1 = 0 ;
8757 char *kwnames[] = {
8758 (char *) "self",(char *) "facename", NULL
8759 };
8760
8761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8764 if (obj1) {
8765 {
8766 arg2 = wxString_in_helper(obj1);
8767 if (arg2 == NULL) SWIG_fail;
8768 temp2 = True;
8769 }
8770 }
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8774
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 {
8779 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8780 }
8781 {
8782 if (temp2)
8783 delete arg2;
8784 }
8785 return resultobj;
8786 fail:
8787 {
8788 if (temp2)
8789 delete arg2;
8790 }
8791 return NULL;
8792 }
8793
8794
8795 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj;
8797 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8798 PyObject *result;
8799 PyObject * obj0 = 0 ;
8800 char *kwnames[] = {
8801 (char *) "self", NULL
8802 };
8803
8804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8810
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 resultobj = result;
8815 return resultobj;
8816 fail:
8817 return NULL;
8818 }
8819
8820
8821 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8824 PyObject *result;
8825 PyObject * obj0 = 0 ;
8826 char *kwnames[] = {
8827 (char *) "self", NULL
8828 };
8829
8830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8831 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8833 {
8834 PyThreadState* __tstate = wxPyBeginAllowThreads();
8835 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8836
8837 wxPyEndAllowThreads(__tstate);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 }
8840 resultobj = result;
8841 return resultobj;
8842 fail:
8843 return NULL;
8844 }
8845
8846
8847 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8848 PyObject *obj;
8849 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8850 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8851 Py_INCREF(obj);
8852 return Py_BuildValue((char *)"");
8853 }
8854 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8855 PyObject *resultobj;
8856 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8857 int arg2 ;
8858 PyObject * obj0 = 0 ;
8859 PyObject * obj1 = 0 ;
8860 char *kwnames[] = {
8861 (char *) "self",(char *) "Language", NULL
8862 };
8863
8864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8867 arg2 = (int) SWIG_AsInt(obj1);
8868 if (PyErr_Occurred()) SWIG_fail;
8869 if (arg1) (arg1)->Language = arg2;
8870
8871 Py_INCREF(Py_None); resultobj = Py_None;
8872 return resultobj;
8873 fail:
8874 return NULL;
8875 }
8876
8877
8878 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8879 PyObject *resultobj;
8880 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8881 int result;
8882 PyObject * obj0 = 0 ;
8883 char *kwnames[] = {
8884 (char *) "self", NULL
8885 };
8886
8887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8890 result = (int) ((arg1)->Language);
8891
8892 resultobj = SWIG_FromInt((int)result);
8893 return resultobj;
8894 fail:
8895 return NULL;
8896 }
8897
8898
8899 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8900 PyObject *resultobj;
8901 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8902 wxString *arg2 = (wxString *) 0 ;
8903 bool temp2 = False ;
8904 PyObject * obj0 = 0 ;
8905 PyObject * obj1 = 0 ;
8906 char *kwnames[] = {
8907 (char *) "self",(char *) "CanonicalName", NULL
8908 };
8909
8910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8913 {
8914 arg2 = wxString_in_helper(obj1);
8915 if (arg2 == NULL) SWIG_fail;
8916 temp2 = True;
8917 }
8918 if (arg1) (arg1)->CanonicalName = *arg2;
8919
8920 Py_INCREF(Py_None); resultobj = Py_None;
8921 {
8922 if (temp2)
8923 delete arg2;
8924 }
8925 return resultobj;
8926 fail:
8927 {
8928 if (temp2)
8929 delete arg2;
8930 }
8931 return NULL;
8932 }
8933
8934
8935 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8936 PyObject *resultobj;
8937 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8938 wxString *result;
8939 PyObject * obj0 = 0 ;
8940 char *kwnames[] = {
8941 (char *) "self", NULL
8942 };
8943
8944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8947 result = (wxString *)& ((arg1)->CanonicalName);
8948
8949 {
8950 #if wxUSE_UNICODE
8951 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8952 #else
8953 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8954 #endif
8955 }
8956 return resultobj;
8957 fail:
8958 return NULL;
8959 }
8960
8961
8962 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8963 PyObject *resultobj;
8964 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8965 wxString *arg2 = (wxString *) 0 ;
8966 bool temp2 = False ;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 char *kwnames[] = {
8970 (char *) "self",(char *) "Description", NULL
8971 };
8972
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8976 {
8977 arg2 = wxString_in_helper(obj1);
8978 if (arg2 == NULL) SWIG_fail;
8979 temp2 = True;
8980 }
8981 if (arg1) (arg1)->Description = *arg2;
8982
8983 Py_INCREF(Py_None); resultobj = Py_None;
8984 {
8985 if (temp2)
8986 delete arg2;
8987 }
8988 return resultobj;
8989 fail:
8990 {
8991 if (temp2)
8992 delete arg2;
8993 }
8994 return NULL;
8995 }
8996
8997
8998 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9001 wxString *result;
9002 PyObject * obj0 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9010 result = (wxString *)& ((arg1)->Description);
9011
9012 {
9013 #if wxUSE_UNICODE
9014 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9015 #else
9016 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9017 #endif
9018 }
9019 return resultobj;
9020 fail:
9021 return NULL;
9022 }
9023
9024
9025 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9026 PyObject *obj;
9027 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9028 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9029 Py_INCREF(obj);
9030 return Py_BuildValue((char *)"");
9031 }
9032 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9033 PyObject *resultobj;
9034 int arg1 = (int) -1 ;
9035 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9036 wxLocale *result;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 char *kwnames[] = {
9040 (char *) "language",(char *) "flags", NULL
9041 };
9042
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9044 if (obj0) {
9045 arg1 = (int) SWIG_AsInt(obj0);
9046 if (PyErr_Occurred()) SWIG_fail;
9047 }
9048 if (obj1) {
9049 arg2 = (int) SWIG_AsInt(obj1);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 {
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (wxLocale *)new_wxLocale(arg1,arg2);
9055
9056 wxPyEndAllowThreads(__tstate);
9057 if (PyErr_Occurred()) SWIG_fail;
9058 }
9059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9060 return resultobj;
9061 fail:
9062 return NULL;
9063 }
9064
9065
9066 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9067 PyObject *resultobj;
9068 wxLocale *arg1 = (wxLocale *) 0 ;
9069 PyObject * obj0 = 0 ;
9070 char *kwnames[] = {
9071 (char *) "self", NULL
9072 };
9073
9074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9077 {
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 delete arg1;
9080
9081 wxPyEndAllowThreads(__tstate);
9082 if (PyErr_Occurred()) SWIG_fail;
9083 }
9084 Py_INCREF(Py_None); resultobj = Py_None;
9085 return resultobj;
9086 fail:
9087 return NULL;
9088 }
9089
9090
9091 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9092 PyObject *resultobj;
9093 wxLocale *arg1 = (wxLocale *) 0 ;
9094 wxString *arg2 = 0 ;
9095 wxString const &arg3_defvalue = wxPyEmptyString ;
9096 wxString *arg3 = (wxString *) &arg3_defvalue ;
9097 wxString const &arg4_defvalue = wxPyEmptyString ;
9098 wxString *arg4 = (wxString *) &arg4_defvalue ;
9099 bool arg5 = (bool) True ;
9100 bool arg6 = (bool) False ;
9101 bool result;
9102 bool temp2 = False ;
9103 bool temp3 = False ;
9104 bool temp4 = False ;
9105 PyObject * obj0 = 0 ;
9106 PyObject * obj1 = 0 ;
9107 PyObject * obj2 = 0 ;
9108 PyObject * obj3 = 0 ;
9109 PyObject * obj4 = 0 ;
9110 PyObject * obj5 = 0 ;
9111 char *kwnames[] = {
9112 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9113 };
9114
9115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9118 {
9119 arg2 = wxString_in_helper(obj1);
9120 if (arg2 == NULL) SWIG_fail;
9121 temp2 = True;
9122 }
9123 if (obj2) {
9124 {
9125 arg3 = wxString_in_helper(obj2);
9126 if (arg3 == NULL) SWIG_fail;
9127 temp3 = True;
9128 }
9129 }
9130 if (obj3) {
9131 {
9132 arg4 = wxString_in_helper(obj3);
9133 if (arg4 == NULL) SWIG_fail;
9134 temp4 = True;
9135 }
9136 }
9137 if (obj4) {
9138 arg5 = (bool) SWIG_AsBool(obj4);
9139 if (PyErr_Occurred()) SWIG_fail;
9140 }
9141 if (obj5) {
9142 arg6 = (bool) SWIG_AsBool(obj5);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 {
9146 PyThreadState* __tstate = wxPyBeginAllowThreads();
9147 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9148
9149 wxPyEndAllowThreads(__tstate);
9150 if (PyErr_Occurred()) SWIG_fail;
9151 }
9152 {
9153 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9154 }
9155 {
9156 if (temp2)
9157 delete arg2;
9158 }
9159 {
9160 if (temp3)
9161 delete arg3;
9162 }
9163 {
9164 if (temp4)
9165 delete arg4;
9166 }
9167 return resultobj;
9168 fail:
9169 {
9170 if (temp2)
9171 delete arg2;
9172 }
9173 {
9174 if (temp3)
9175 delete arg3;
9176 }
9177 {
9178 if (temp4)
9179 delete arg4;
9180 }
9181 return NULL;
9182 }
9183
9184
9185 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9186 PyObject *resultobj;
9187 wxLocale *arg1 = (wxLocale *) 0 ;
9188 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9189 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9190 bool result;
9191 PyObject * obj0 = 0 ;
9192 PyObject * obj1 = 0 ;
9193 PyObject * obj2 = 0 ;
9194 char *kwnames[] = {
9195 (char *) "self",(char *) "language",(char *) "flags", NULL
9196 };
9197
9198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9201 if (obj1) {
9202 arg2 = (int) SWIG_AsInt(obj1);
9203 if (PyErr_Occurred()) SWIG_fail;
9204 }
9205 if (obj2) {
9206 arg3 = (int) SWIG_AsInt(obj2);
9207 if (PyErr_Occurred()) SWIG_fail;
9208 }
9209 {
9210 PyThreadState* __tstate = wxPyBeginAllowThreads();
9211 result = (bool)(arg1)->Init(arg2,arg3);
9212
9213 wxPyEndAllowThreads(__tstate);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 {
9217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9218 }
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9226 PyObject *resultobj;
9227 int result;
9228 char *kwnames[] = {
9229 NULL
9230 };
9231
9232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9233 {
9234 PyThreadState* __tstate = wxPyBeginAllowThreads();
9235 result = (int)wxLocale::GetSystemLanguage();
9236
9237 wxPyEndAllowThreads(__tstate);
9238 if (PyErr_Occurred()) SWIG_fail;
9239 }
9240 resultobj = SWIG_FromInt((int)result);
9241 return resultobj;
9242 fail:
9243 return NULL;
9244 }
9245
9246
9247 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9248 PyObject *resultobj;
9249 int result;
9250 char *kwnames[] = {
9251 NULL
9252 };
9253
9254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9255 {
9256 PyThreadState* __tstate = wxPyBeginAllowThreads();
9257 result = (int)wxLocale::GetSystemEncoding();
9258
9259 wxPyEndAllowThreads(__tstate);
9260 if (PyErr_Occurred()) SWIG_fail;
9261 }
9262 resultobj = SWIG_FromInt((int)result);
9263 return resultobj;
9264 fail:
9265 return NULL;
9266 }
9267
9268
9269 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9270 PyObject *resultobj;
9271 wxString result;
9272 char *kwnames[] = {
9273 NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9277 {
9278 PyThreadState* __tstate = wxPyBeginAllowThreads();
9279 result = wxLocale::GetSystemEncodingName();
9280
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 {
9285 #if wxUSE_UNICODE
9286 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9287 #else
9288 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9289 #endif
9290 }
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9298 PyObject *resultobj;
9299 wxLocale *arg1 = (wxLocale *) 0 ;
9300 bool result;
9301 PyObject * obj0 = 0 ;
9302 char *kwnames[] = {
9303 (char *) "self", NULL
9304 };
9305
9306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (bool)((wxLocale const *)arg1)->IsOk();
9312
9313 wxPyEndAllowThreads(__tstate);
9314 if (PyErr_Occurred()) SWIG_fail;
9315 }
9316 {
9317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9318 }
9319 return resultobj;
9320 fail:
9321 return NULL;
9322 }
9323
9324
9325 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9326 PyObject *resultobj;
9327 wxLocale *arg1 = (wxLocale *) 0 ;
9328 wxString result;
9329 PyObject * obj0 = 0 ;
9330 char *kwnames[] = {
9331 (char *) "self", NULL
9332 };
9333
9334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9337 {
9338 PyThreadState* __tstate = wxPyBeginAllowThreads();
9339 result = ((wxLocale const *)arg1)->GetLocale();
9340
9341 wxPyEndAllowThreads(__tstate);
9342 if (PyErr_Occurred()) SWIG_fail;
9343 }
9344 {
9345 #if wxUSE_UNICODE
9346 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9347 #else
9348 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9349 #endif
9350 }
9351 return resultobj;
9352 fail:
9353 return NULL;
9354 }
9355
9356
9357 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9358 PyObject *resultobj;
9359 wxLocale *arg1 = (wxLocale *) 0 ;
9360 int result;
9361 PyObject * obj0 = 0 ;
9362 char *kwnames[] = {
9363 (char *) "self", NULL
9364 };
9365
9366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9369 {
9370 PyThreadState* __tstate = wxPyBeginAllowThreads();
9371 result = (int)((wxLocale const *)arg1)->GetLanguage();
9372
9373 wxPyEndAllowThreads(__tstate);
9374 if (PyErr_Occurred()) SWIG_fail;
9375 }
9376 resultobj = SWIG_FromInt((int)result);
9377 return resultobj;
9378 fail:
9379 return NULL;
9380 }
9381
9382
9383 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9384 PyObject *resultobj;
9385 wxLocale *arg1 = (wxLocale *) 0 ;
9386 wxString result;
9387 PyObject * obj0 = 0 ;
9388 char *kwnames[] = {
9389 (char *) "self", NULL
9390 };
9391
9392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 result = ((wxLocale const *)arg1)->GetSysName();
9398
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 {
9403 #if wxUSE_UNICODE
9404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9405 #else
9406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9407 #endif
9408 }
9409 return resultobj;
9410 fail:
9411 return NULL;
9412 }
9413
9414
9415 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9416 PyObject *resultobj;
9417 wxLocale *arg1 = (wxLocale *) 0 ;
9418 wxString result;
9419 PyObject * obj0 = 0 ;
9420 char *kwnames[] = {
9421 (char *) "self", NULL
9422 };
9423
9424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9427 {
9428 PyThreadState* __tstate = wxPyBeginAllowThreads();
9429 result = ((wxLocale const *)arg1)->GetCanonicalName();
9430
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 {
9435 #if wxUSE_UNICODE
9436 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9437 #else
9438 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9439 #endif
9440 }
9441 return resultobj;
9442 fail:
9443 return NULL;
9444 }
9445
9446
9447 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9448 PyObject *resultobj;
9449 wxString *arg1 = 0 ;
9450 bool temp1 = False ;
9451 PyObject * obj0 = 0 ;
9452 char *kwnames[] = {
9453 (char *) "prefix", NULL
9454 };
9455
9456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9457 {
9458 arg1 = wxString_in_helper(obj0);
9459 if (arg1 == NULL) SWIG_fail;
9460 temp1 = True;
9461 }
9462 {
9463 PyThreadState* __tstate = wxPyBeginAllowThreads();
9464 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9465
9466 wxPyEndAllowThreads(__tstate);
9467 if (PyErr_Occurred()) SWIG_fail;
9468 }
9469 Py_INCREF(Py_None); resultobj = Py_None;
9470 {
9471 if (temp1)
9472 delete arg1;
9473 }
9474 return resultobj;
9475 fail:
9476 {
9477 if (temp1)
9478 delete arg1;
9479 }
9480 return NULL;
9481 }
9482
9483
9484 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj;
9486 wxLocale *arg1 = (wxLocale *) 0 ;
9487 wxString *arg2 = 0 ;
9488 bool result;
9489 bool temp2 = False ;
9490 PyObject * obj0 = 0 ;
9491 PyObject * obj1 = 0 ;
9492 char *kwnames[] = {
9493 (char *) "self",(char *) "szDomain", NULL
9494 };
9495
9496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9499 {
9500 arg2 = wxString_in_helper(obj1);
9501 if (arg2 == NULL) SWIG_fail;
9502 temp2 = True;
9503 }
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9507
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 {
9512 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9513 }
9514 {
9515 if (temp2)
9516 delete arg2;
9517 }
9518 return resultobj;
9519 fail:
9520 {
9521 if (temp2)
9522 delete arg2;
9523 }
9524 return NULL;
9525 }
9526
9527
9528 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj;
9530 wxLocale *arg1 = (wxLocale *) 0 ;
9531 wxString *arg2 = 0 ;
9532 bool result;
9533 bool temp2 = False ;
9534 PyObject * obj0 = 0 ;
9535 PyObject * obj1 = 0 ;
9536 char *kwnames[] = {
9537 (char *) "self",(char *) "szDomain", NULL
9538 };
9539
9540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9543 {
9544 arg2 = wxString_in_helper(obj1);
9545 if (arg2 == NULL) SWIG_fail;
9546 temp2 = True;
9547 }
9548 {
9549 PyThreadState* __tstate = wxPyBeginAllowThreads();
9550 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9551
9552 wxPyEndAllowThreads(__tstate);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 }
9555 {
9556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9557 }
9558 {
9559 if (temp2)
9560 delete arg2;
9561 }
9562 return resultobj;
9563 fail:
9564 {
9565 if (temp2)
9566 delete arg2;
9567 }
9568 return NULL;
9569 }
9570
9571
9572 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9573 PyObject *resultobj;
9574 int arg1 ;
9575 wxLanguageInfo *result;
9576 PyObject * obj0 = 0 ;
9577 char *kwnames[] = {
9578 (char *) "lang", NULL
9579 };
9580
9581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9582 arg1 = (int) SWIG_AsInt(obj0);
9583 if (PyErr_Occurred()) SWIG_fail;
9584 {
9585 PyThreadState* __tstate = wxPyBeginAllowThreads();
9586 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9587
9588 wxPyEndAllowThreads(__tstate);
9589 if (PyErr_Occurred()) SWIG_fail;
9590 }
9591 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9592 return resultobj;
9593 fail:
9594 return NULL;
9595 }
9596
9597
9598 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9599 PyObject *resultobj;
9600 int arg1 ;
9601 wxString result;
9602 PyObject * obj0 = 0 ;
9603 char *kwnames[] = {
9604 (char *) "lang", NULL
9605 };
9606
9607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9608 arg1 = (int) SWIG_AsInt(obj0);
9609 if (PyErr_Occurred()) SWIG_fail;
9610 {
9611 PyThreadState* __tstate = wxPyBeginAllowThreads();
9612 result = wxLocale::GetLanguageName(arg1);
9613
9614 wxPyEndAllowThreads(__tstate);
9615 if (PyErr_Occurred()) SWIG_fail;
9616 }
9617 {
9618 #if wxUSE_UNICODE
9619 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9620 #else
9621 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9622 #endif
9623 }
9624 return resultobj;
9625 fail:
9626 return NULL;
9627 }
9628
9629
9630 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9631 PyObject *resultobj;
9632 wxString *arg1 = 0 ;
9633 wxLanguageInfo *result;
9634 bool temp1 = False ;
9635 PyObject * obj0 = 0 ;
9636 char *kwnames[] = {
9637 (char *) "locale", NULL
9638 };
9639
9640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9641 {
9642 arg1 = wxString_in_helper(obj0);
9643 if (arg1 == NULL) SWIG_fail;
9644 temp1 = True;
9645 }
9646 {
9647 PyThreadState* __tstate = wxPyBeginAllowThreads();
9648 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9649
9650 wxPyEndAllowThreads(__tstate);
9651 if (PyErr_Occurred()) SWIG_fail;
9652 }
9653 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9654 {
9655 if (temp1)
9656 delete arg1;
9657 }
9658 return resultobj;
9659 fail:
9660 {
9661 if (temp1)
9662 delete arg1;
9663 }
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 wxLanguageInfo *arg1 = 0 ;
9671 PyObject * obj0 = 0 ;
9672 char *kwnames[] = {
9673 (char *) "info", NULL
9674 };
9675
9676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9678 SWIG_POINTER_EXCEPTION | 0)) == -1)
9679 SWIG_fail;
9680 if (arg1 == NULL) {
9681 PyErr_SetString(PyExc_TypeError,"null reference");
9682 SWIG_fail;
9683 }
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9687
9688 wxPyEndAllowThreads(__tstate);
9689 if (PyErr_Occurred()) SWIG_fail;
9690 }
9691 Py_INCREF(Py_None); resultobj = Py_None;
9692 return resultobj;
9693 fail:
9694 return NULL;
9695 }
9696
9697
9698 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9699 PyObject *resultobj;
9700 wxLocale *arg1 = (wxLocale *) 0 ;
9701 wxString *arg2 = 0 ;
9702 wxString const &arg3_defvalue = wxPyEmptyString ;
9703 wxString *arg3 = (wxString *) &arg3_defvalue ;
9704 wxString result;
9705 bool temp2 = False ;
9706 bool temp3 = False ;
9707 PyObject * obj0 = 0 ;
9708 PyObject * obj1 = 0 ;
9709 PyObject * obj2 = 0 ;
9710 char *kwnames[] = {
9711 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9712 };
9713
9714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9717 {
9718 arg2 = wxString_in_helper(obj1);
9719 if (arg2 == NULL) SWIG_fail;
9720 temp2 = True;
9721 }
9722 if (obj2) {
9723 {
9724 arg3 = wxString_in_helper(obj2);
9725 if (arg3 == NULL) SWIG_fail;
9726 temp3 = True;
9727 }
9728 }
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9732
9733 wxPyEndAllowThreads(__tstate);
9734 if (PyErr_Occurred()) SWIG_fail;
9735 }
9736 {
9737 #if wxUSE_UNICODE
9738 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9739 #else
9740 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9741 #endif
9742 }
9743 {
9744 if (temp2)
9745 delete arg2;
9746 }
9747 {
9748 if (temp3)
9749 delete arg3;
9750 }
9751 return resultobj;
9752 fail:
9753 {
9754 if (temp2)
9755 delete arg2;
9756 }
9757 {
9758 if (temp3)
9759 delete arg3;
9760 }
9761 return NULL;
9762 }
9763
9764
9765 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9766 PyObject *resultobj;
9767 wxLocale *arg1 = (wxLocale *) 0 ;
9768 wxString *result;
9769 PyObject * obj0 = 0 ;
9770 char *kwnames[] = {
9771 (char *) "self", NULL
9772 };
9773
9774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9777 {
9778 PyThreadState* __tstate = wxPyBeginAllowThreads();
9779 {
9780 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9781 result = (wxString *) &_result_ref;
9782 }
9783
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 {
9788 #if wxUSE_UNICODE
9789 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9790 #else
9791 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9792 #endif
9793 }
9794 return resultobj;
9795 fail:
9796 return NULL;
9797 }
9798
9799
9800 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9801 PyObject *obj;
9802 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9803 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9804 Py_INCREF(obj);
9805 return Py_BuildValue((char *)"");
9806 }
9807 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9808 PyObject *resultobj;
9809 wxLocale *result;
9810 char *kwnames[] = {
9811 NULL
9812 };
9813
9814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9815 {
9816 PyThreadState* __tstate = wxPyBeginAllowThreads();
9817 result = (wxLocale *)wxGetLocale();
9818
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9830 PyObject *resultobj;
9831 wxString *arg1 = 0 ;
9832 wxString result;
9833 bool temp1 = False ;
9834 PyObject * obj0 = 0 ;
9835
9836 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9837 {
9838 arg1 = wxString_in_helper(obj0);
9839 if (arg1 == NULL) SWIG_fail;
9840 temp1 = True;
9841 }
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 result = wxGetTranslation((wxString const &)*arg1);
9845
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 {
9850 #if wxUSE_UNICODE
9851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9852 #else
9853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9854 #endif
9855 }
9856 {
9857 if (temp1)
9858 delete arg1;
9859 }
9860 return resultobj;
9861 fail:
9862 {
9863 if (temp1)
9864 delete arg1;
9865 }
9866 return NULL;
9867 }
9868
9869
9870 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9871 PyObject *resultobj;
9872 wxString *arg1 = 0 ;
9873 wxString *arg2 = 0 ;
9874 size_t arg3 ;
9875 wxString result;
9876 bool temp1 = False ;
9877 bool temp2 = False ;
9878 PyObject * obj0 = 0 ;
9879 PyObject * obj1 = 0 ;
9880 PyObject * obj2 = 0 ;
9881
9882 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9883 {
9884 arg1 = wxString_in_helper(obj0);
9885 if (arg1 == NULL) SWIG_fail;
9886 temp1 = True;
9887 }
9888 {
9889 arg2 = wxString_in_helper(obj1);
9890 if (arg2 == NULL) SWIG_fail;
9891 temp2 = True;
9892 }
9893 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9894 if (PyErr_Occurred()) SWIG_fail;
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9898
9899 wxPyEndAllowThreads(__tstate);
9900 if (PyErr_Occurred()) SWIG_fail;
9901 }
9902 {
9903 #if wxUSE_UNICODE
9904 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9905 #else
9906 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9907 #endif
9908 }
9909 {
9910 if (temp1)
9911 delete arg1;
9912 }
9913 {
9914 if (temp2)
9915 delete arg2;
9916 }
9917 return resultobj;
9918 fail:
9919 {
9920 if (temp1)
9921 delete arg1;
9922 }
9923 {
9924 if (temp2)
9925 delete arg2;
9926 }
9927 return NULL;
9928 }
9929
9930
9931 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9932 int argc;
9933 PyObject *argv[4];
9934 int ii;
9935
9936 argc = PyObject_Length(args);
9937 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9938 argv[ii] = PyTuple_GetItem(args,ii);
9939 }
9940 if (argc == 1) {
9941 int _v;
9942 {
9943 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9944 }
9945 if (_v) {
9946 return _wrap_GetTranslation__SWIG_0(self,args);
9947 }
9948 }
9949 if (argc == 3) {
9950 int _v;
9951 {
9952 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9953 }
9954 if (_v) {
9955 {
9956 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9957 }
9958 if (_v) {
9959 _v = SWIG_CheckUnsignedLong(argv[2]);
9960 if (_v) {
9961 return _wrap_GetTranslation__SWIG_1(self,args);
9962 }
9963 }
9964 }
9965 }
9966
9967 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9968 return NULL;
9969 }
9970
9971
9972 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9973 PyObject *resultobj;
9974 wxEncodingConverter *result;
9975 char *kwnames[] = {
9976 NULL
9977 };
9978
9979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (wxEncodingConverter *)new wxEncodingConverter();
9983
9984 wxPyEndAllowThreads(__tstate);
9985 if (PyErr_Occurred()) SWIG_fail;
9986 }
9987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9988 return resultobj;
9989 fail:
9990 return NULL;
9991 }
9992
9993
9994 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9995 PyObject *resultobj;
9996 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9997 PyObject * obj0 = 0 ;
9998 char *kwnames[] = {
9999 (char *) "self", NULL
10000 };
10001
10002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10005 {
10006 PyThreadState* __tstate = wxPyBeginAllowThreads();
10007 delete arg1;
10008
10009 wxPyEndAllowThreads(__tstate);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 }
10012 Py_INCREF(Py_None); resultobj = Py_None;
10013 return resultobj;
10014 fail:
10015 return NULL;
10016 }
10017
10018
10019 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10020 PyObject *resultobj;
10021 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10022 int arg2 ;
10023 int arg3 ;
10024 int arg4 = (int) wxCONVERT_STRICT ;
10025 bool result;
10026 PyObject * obj0 = 0 ;
10027 PyObject * obj1 = 0 ;
10028 PyObject * obj2 = 0 ;
10029 PyObject * obj3 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10037 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10040 if (PyErr_Occurred()) SWIG_fail;
10041 if (obj3) {
10042 arg4 = (int) SWIG_AsInt(obj3);
10043 if (PyErr_Occurred()) SWIG_fail;
10044 }
10045 {
10046 PyThreadState* __tstate = wxPyBeginAllowThreads();
10047 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10048
10049 wxPyEndAllowThreads(__tstate);
10050 if (PyErr_Occurred()) SWIG_fail;
10051 }
10052 {
10053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10054 }
10055 return resultobj;
10056 fail:
10057 return NULL;
10058 }
10059
10060
10061 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10062 PyObject *resultobj;
10063 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10064 wxString *arg2 = 0 ;
10065 wxString result;
10066 bool temp2 = False ;
10067 PyObject * obj0 = 0 ;
10068 PyObject * obj1 = 0 ;
10069 char *kwnames[] = {
10070 (char *) "self",(char *) "input", NULL
10071 };
10072
10073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10076 {
10077 arg2 = wxString_in_helper(obj1);
10078 if (arg2 == NULL) SWIG_fail;
10079 temp2 = True;
10080 }
10081 {
10082 PyThreadState* __tstate = wxPyBeginAllowThreads();
10083 result = (arg1)->Convert((wxString const &)*arg2);
10084
10085 wxPyEndAllowThreads(__tstate);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 {
10089 #if wxUSE_UNICODE
10090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10091 #else
10092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10093 #endif
10094 }
10095 {
10096 if (temp2)
10097 delete arg2;
10098 }
10099 return resultobj;
10100 fail:
10101 {
10102 if (temp2)
10103 delete arg2;
10104 }
10105 return NULL;
10106 }
10107
10108
10109 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj;
10111 int arg1 ;
10112 int arg2 = (int) wxPLATFORM_CURRENT ;
10113 wxFontEncodingArray result;
10114 PyObject * obj0 = 0 ;
10115 PyObject * obj1 = 0 ;
10116 char *kwnames[] = {
10117 (char *) "enc",(char *) "platform", NULL
10118 };
10119
10120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10121 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 if (obj1) {
10124 arg2 = (int) SWIG_AsInt(obj1);
10125 if (PyErr_Occurred()) SWIG_fail;
10126 }
10127 {
10128 PyThreadState* __tstate = wxPyBeginAllowThreads();
10129 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10130
10131 wxPyEndAllowThreads(__tstate);
10132 if (PyErr_Occurred()) SWIG_fail;
10133 }
10134 {
10135 resultobj = PyList_New(0);
10136 for (size_t i=0; i < (&result)->GetCount(); i++) {
10137 PyObject* number = PyInt_FromLong((&result)->Item(i));
10138 PyList_Append(resultobj, number);
10139 Py_DECREF(number);
10140 }
10141 }
10142 return resultobj;
10143 fail:
10144 return NULL;
10145 }
10146
10147
10148 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10149 PyObject *resultobj;
10150 int arg1 ;
10151 wxFontEncodingArray result;
10152 PyObject * obj0 = 0 ;
10153 char *kwnames[] = {
10154 (char *) "enc", NULL
10155 };
10156
10157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10158 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10159 if (PyErr_Occurred()) SWIG_fail;
10160 {
10161 PyThreadState* __tstate = wxPyBeginAllowThreads();
10162 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10163
10164 wxPyEndAllowThreads(__tstate);
10165 if (PyErr_Occurred()) SWIG_fail;
10166 }
10167 {
10168 resultobj = PyList_New(0);
10169 for (size_t i=0; i < (&result)->GetCount(); i++) {
10170 PyObject* number = PyInt_FromLong((&result)->Item(i));
10171 PyList_Append(resultobj, number);
10172 Py_DECREF(number);
10173 }
10174 }
10175 return resultobj;
10176 fail:
10177 return NULL;
10178 }
10179
10180
10181 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10182 PyObject *resultobj;
10183 int arg1 ;
10184 int arg2 ;
10185 bool result;
10186 PyObject * obj0 = 0 ;
10187 PyObject * obj1 = 0 ;
10188 char *kwnames[] = {
10189 (char *) "encIn",(char *) "encOut", NULL
10190 };
10191
10192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10193 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10194 if (PyErr_Occurred()) SWIG_fail;
10195 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10196 if (PyErr_Occurred()) SWIG_fail;
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10200
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 {
10205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10206 }
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10214 PyObject *obj;
10215 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10216 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10217 Py_INCREF(obj);
10218 return Py_BuildValue((char *)"");
10219 }
10220 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10221 PyObject *resultobj;
10222 wxDC *arg1 = (wxDC *) 0 ;
10223 PyObject * obj0 = 0 ;
10224 char *kwnames[] = {
10225 (char *) "self", NULL
10226 };
10227
10228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10231 {
10232 PyThreadState* __tstate = wxPyBeginAllowThreads();
10233 delete arg1;
10234
10235 wxPyEndAllowThreads(__tstate);
10236 if (PyErr_Occurred()) SWIG_fail;
10237 }
10238 Py_INCREF(Py_None); resultobj = Py_None;
10239 return resultobj;
10240 fail:
10241 return NULL;
10242 }
10243
10244
10245 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10246 PyObject *resultobj;
10247 wxDC *arg1 = (wxDC *) 0 ;
10248 PyObject * obj0 = 0 ;
10249 char *kwnames[] = {
10250 (char *) "self", NULL
10251 };
10252
10253 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10254 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10255 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10256 {
10257 PyThreadState* __tstate = wxPyBeginAllowThreads();
10258 (arg1)->BeginDrawing();
10259
10260 wxPyEndAllowThreads(__tstate);
10261 if (PyErr_Occurred()) SWIG_fail;
10262 }
10263 Py_INCREF(Py_None); resultobj = Py_None;
10264 return resultobj;
10265 fail:
10266 return NULL;
10267 }
10268
10269
10270 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10271 PyObject *resultobj;
10272 wxDC *arg1 = (wxDC *) 0 ;
10273 PyObject * obj0 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 (arg1)->EndDrawing();
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 Py_INCREF(Py_None); resultobj = Py_None;
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxDC *arg1 = (wxDC *) 0 ;
10298 int arg2 ;
10299 int arg3 ;
10300 wxColour *arg4 = 0 ;
10301 int arg5 = (int) wxFLOOD_SURFACE ;
10302 bool result;
10303 wxColour temp4 ;
10304 PyObject * obj0 = 0 ;
10305 PyObject * obj1 = 0 ;
10306 PyObject * obj2 = 0 ;
10307 PyObject * obj3 = 0 ;
10308 PyObject * obj4 = 0 ;
10309 char *kwnames[] = {
10310 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10311 };
10312
10313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10316 arg2 = (int) SWIG_AsInt(obj1);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 arg3 = (int) SWIG_AsInt(obj2);
10319 if (PyErr_Occurred()) SWIG_fail;
10320 {
10321 arg4 = &temp4;
10322 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10323 }
10324 if (obj4) {
10325 arg5 = (int) SWIG_AsInt(obj4);
10326 if (PyErr_Occurred()) SWIG_fail;
10327 }
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10331
10332 wxPyEndAllowThreads(__tstate);
10333 if (PyErr_Occurred()) SWIG_fail;
10334 }
10335 {
10336 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10337 }
10338 return resultobj;
10339 fail:
10340 return NULL;
10341 }
10342
10343
10344 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10345 PyObject *resultobj;
10346 wxDC *arg1 = (wxDC *) 0 ;
10347 wxPoint *arg2 = 0 ;
10348 wxColour *arg3 = 0 ;
10349 int arg4 = (int) wxFLOOD_SURFACE ;
10350 bool result;
10351 wxPoint temp2 ;
10352 wxColour temp3 ;
10353 PyObject * obj0 = 0 ;
10354 PyObject * obj1 = 0 ;
10355 PyObject * obj2 = 0 ;
10356 PyObject * obj3 = 0 ;
10357 char *kwnames[] = {
10358 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10359 };
10360
10361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10364 {
10365 arg2 = &temp2;
10366 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10367 }
10368 {
10369 arg3 = &temp3;
10370 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10371 }
10372 if (obj3) {
10373 arg4 = (int) SWIG_AsInt(obj3);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 {
10377 PyThreadState* __tstate = wxPyBeginAllowThreads();
10378 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10379
10380 wxPyEndAllowThreads(__tstate);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 }
10383 {
10384 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10385 }
10386 return resultobj;
10387 fail:
10388 return NULL;
10389 }
10390
10391
10392 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10393 PyObject *resultobj;
10394 wxDC *arg1 = (wxDC *) 0 ;
10395 int arg2 ;
10396 int arg3 ;
10397 wxColour result;
10398 PyObject * obj0 = 0 ;
10399 PyObject * obj1 = 0 ;
10400 PyObject * obj2 = 0 ;
10401 char *kwnames[] = {
10402 (char *) "self",(char *) "x",(char *) "y", NULL
10403 };
10404
10405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10408 arg2 = (int) SWIG_AsInt(obj1);
10409 if (PyErr_Occurred()) SWIG_fail;
10410 arg3 = (int) SWIG_AsInt(obj2);
10411 if (PyErr_Occurred()) SWIG_fail;
10412 {
10413 PyThreadState* __tstate = wxPyBeginAllowThreads();
10414 result = wxDC_GetPixel(arg1,arg2,arg3);
10415
10416 wxPyEndAllowThreads(__tstate);
10417 if (PyErr_Occurred()) SWIG_fail;
10418 }
10419 {
10420 wxColour * resultptr;
10421 resultptr = new wxColour((wxColour &) result);
10422 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10423 }
10424 return resultobj;
10425 fail:
10426 return NULL;
10427 }
10428
10429
10430 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10431 PyObject *resultobj;
10432 wxDC *arg1 = (wxDC *) 0 ;
10433 wxPoint *arg2 = 0 ;
10434 wxColour result;
10435 wxPoint temp2 ;
10436 PyObject * obj0 = 0 ;
10437 PyObject * obj1 = 0 ;
10438 char *kwnames[] = {
10439 (char *) "self",(char *) "pt", NULL
10440 };
10441
10442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10445 {
10446 arg2 = &temp2;
10447 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10448 }
10449 {
10450 PyThreadState* __tstate = wxPyBeginAllowThreads();
10451 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10452
10453 wxPyEndAllowThreads(__tstate);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 }
10456 {
10457 wxColour * resultptr;
10458 resultptr = new wxColour((wxColour &) result);
10459 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10460 }
10461 return resultobj;
10462 fail:
10463 return NULL;
10464 }
10465
10466
10467 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10468 PyObject *resultobj;
10469 wxDC *arg1 = (wxDC *) 0 ;
10470 int arg2 ;
10471 int arg3 ;
10472 int arg4 ;
10473 int arg5 ;
10474 PyObject * obj0 = 0 ;
10475 PyObject * obj1 = 0 ;
10476 PyObject * obj2 = 0 ;
10477 PyObject * obj3 = 0 ;
10478 PyObject * obj4 = 0 ;
10479 char *kwnames[] = {
10480 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10481 };
10482
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10486 arg2 = (int) SWIG_AsInt(obj1);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 arg3 = (int) SWIG_AsInt(obj2);
10489 if (PyErr_Occurred()) SWIG_fail;
10490 arg4 = (int) SWIG_AsInt(obj3);
10491 if (PyErr_Occurred()) SWIG_fail;
10492 arg5 = (int) SWIG_AsInt(obj4);
10493 if (PyErr_Occurred()) SWIG_fail;
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10497
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 Py_INCREF(Py_None); resultobj = Py_None;
10502 return resultobj;
10503 fail:
10504 return NULL;
10505 }
10506
10507
10508 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj;
10510 wxDC *arg1 = (wxDC *) 0 ;
10511 wxPoint *arg2 = 0 ;
10512 wxPoint *arg3 = 0 ;
10513 wxPoint temp2 ;
10514 wxPoint temp3 ;
10515 PyObject * obj0 = 0 ;
10516 PyObject * obj1 = 0 ;
10517 PyObject * obj2 = 0 ;
10518 char *kwnames[] = {
10519 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10520 };
10521
10522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10525 {
10526 arg2 = &temp2;
10527 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10528 }
10529 {
10530 arg3 = &temp3;
10531 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10532 }
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10536
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 Py_INCREF(Py_None); resultobj = Py_None;
10541 return resultobj;
10542 fail:
10543 return NULL;
10544 }
10545
10546
10547 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10548 PyObject *resultobj;
10549 wxDC *arg1 = (wxDC *) 0 ;
10550 int arg2 ;
10551 int arg3 ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 PyObject * obj2 = 0 ;
10555 char *kwnames[] = {
10556 (char *) "self",(char *) "x",(char *) "y", NULL
10557 };
10558
10559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10562 arg2 = (int) SWIG_AsInt(obj1);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 arg3 = (int) SWIG_AsInt(obj2);
10565 if (PyErr_Occurred()) SWIG_fail;
10566 {
10567 PyThreadState* __tstate = wxPyBeginAllowThreads();
10568 (arg1)->CrossHair(arg2,arg3);
10569
10570 wxPyEndAllowThreads(__tstate);
10571 if (PyErr_Occurred()) SWIG_fail;
10572 }
10573 Py_INCREF(Py_None); resultobj = Py_None;
10574 return resultobj;
10575 fail:
10576 return NULL;
10577 }
10578
10579
10580 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10581 PyObject *resultobj;
10582 wxDC *arg1 = (wxDC *) 0 ;
10583 wxPoint *arg2 = 0 ;
10584 wxPoint temp2 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 char *kwnames[] = {
10588 (char *) "self",(char *) "pt", NULL
10589 };
10590
10591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10594 {
10595 arg2 = &temp2;
10596 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10597 }
10598 {
10599 PyThreadState* __tstate = wxPyBeginAllowThreads();
10600 (arg1)->CrossHair((wxPoint const &)*arg2);
10601
10602 wxPyEndAllowThreads(__tstate);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 }
10605 Py_INCREF(Py_None); resultobj = Py_None;
10606 return resultobj;
10607 fail:
10608 return NULL;
10609 }
10610
10611
10612 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10613 PyObject *resultobj;
10614 wxDC *arg1 = (wxDC *) 0 ;
10615 int arg2 ;
10616 int arg3 ;
10617 int arg4 ;
10618 int arg5 ;
10619 int arg6 ;
10620 int arg7 ;
10621 PyObject * obj0 = 0 ;
10622 PyObject * obj1 = 0 ;
10623 PyObject * obj2 = 0 ;
10624 PyObject * obj3 = 0 ;
10625 PyObject * obj4 = 0 ;
10626 PyObject * obj5 = 0 ;
10627 PyObject * obj6 = 0 ;
10628 char *kwnames[] = {
10629 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10630 };
10631
10632 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10633 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10634 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10635 arg2 = (int) SWIG_AsInt(obj1);
10636 if (PyErr_Occurred()) SWIG_fail;
10637 arg3 = (int) SWIG_AsInt(obj2);
10638 if (PyErr_Occurred()) SWIG_fail;
10639 arg4 = (int) SWIG_AsInt(obj3);
10640 if (PyErr_Occurred()) SWIG_fail;
10641 arg5 = (int) SWIG_AsInt(obj4);
10642 if (PyErr_Occurred()) SWIG_fail;
10643 arg6 = (int) SWIG_AsInt(obj5);
10644 if (PyErr_Occurred()) SWIG_fail;
10645 arg7 = (int) SWIG_AsInt(obj6);
10646 if (PyErr_Occurred()) SWIG_fail;
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10650
10651 wxPyEndAllowThreads(__tstate);
10652 if (PyErr_Occurred()) SWIG_fail;
10653 }
10654 Py_INCREF(Py_None); resultobj = Py_None;
10655 return resultobj;
10656 fail:
10657 return NULL;
10658 }
10659
10660
10661 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10662 PyObject *resultobj;
10663 wxDC *arg1 = (wxDC *) 0 ;
10664 wxPoint *arg2 = 0 ;
10665 wxPoint *arg3 = 0 ;
10666 wxPoint *arg4 = 0 ;
10667 wxPoint temp2 ;
10668 wxPoint temp3 ;
10669 wxPoint temp4 ;
10670 PyObject * obj0 = 0 ;
10671 PyObject * obj1 = 0 ;
10672 PyObject * obj2 = 0 ;
10673 PyObject * obj3 = 0 ;
10674 char *kwnames[] = {
10675 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10676 };
10677
10678 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10679 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10681 {
10682 arg2 = &temp2;
10683 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10684 }
10685 {
10686 arg3 = &temp3;
10687 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10688 }
10689 {
10690 arg4 = &temp4;
10691 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10692 }
10693 {
10694 PyThreadState* __tstate = wxPyBeginAllowThreads();
10695 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10696
10697 wxPyEndAllowThreads(__tstate);
10698 if (PyErr_Occurred()) SWIG_fail;
10699 }
10700 Py_INCREF(Py_None); resultobj = Py_None;
10701 return resultobj;
10702 fail:
10703 return NULL;
10704 }
10705
10706
10707 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10708 PyObject *resultobj;
10709 wxDC *arg1 = (wxDC *) 0 ;
10710 int arg2 ;
10711 int arg3 ;
10712 int arg4 ;
10713 int arg5 ;
10714 PyObject * obj0 = 0 ;
10715 PyObject * obj1 = 0 ;
10716 PyObject * obj2 = 0 ;
10717 PyObject * obj3 = 0 ;
10718 PyObject * obj4 = 0 ;
10719 char *kwnames[] = {
10720 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10721 };
10722
10723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10726 arg2 = (int) SWIG_AsInt(obj1);
10727 if (PyErr_Occurred()) SWIG_fail;
10728 arg3 = (int) SWIG_AsInt(obj2);
10729 if (PyErr_Occurred()) SWIG_fail;
10730 arg4 = (int) SWIG_AsInt(obj3);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 arg5 = (int) SWIG_AsInt(obj4);
10733 if (PyErr_Occurred()) SWIG_fail;
10734 {
10735 PyThreadState* __tstate = wxPyBeginAllowThreads();
10736 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10737
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 Py_INCREF(Py_None); resultobj = Py_None;
10742 return resultobj;
10743 fail:
10744 return NULL;
10745 }
10746
10747
10748 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10749 PyObject *resultobj;
10750 wxDC *arg1 = (wxDC *) 0 ;
10751 wxRect *arg2 = 0 ;
10752 wxRect temp2 ;
10753 PyObject * obj0 = 0 ;
10754 PyObject * obj1 = 0 ;
10755 char *kwnames[] = {
10756 (char *) "self",(char *) "rect", NULL
10757 };
10758
10759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10762 {
10763 arg2 = &temp2;
10764 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10765 }
10766 {
10767 PyThreadState* __tstate = wxPyBeginAllowThreads();
10768 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10769
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 Py_INCREF(Py_None); resultobj = Py_None;
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj;
10782 wxDC *arg1 = (wxDC *) 0 ;
10783 int arg2 ;
10784 int arg3 ;
10785 int arg4 ;
10786 int arg5 ;
10787 double arg6 ;
10788 double arg7 ;
10789 PyObject * obj0 = 0 ;
10790 PyObject * obj1 = 0 ;
10791 PyObject * obj2 = 0 ;
10792 PyObject * obj3 = 0 ;
10793 PyObject * obj4 = 0 ;
10794 PyObject * obj5 = 0 ;
10795 PyObject * obj6 = 0 ;
10796 char *kwnames[] = {
10797 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10798 };
10799
10800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10803 arg2 = (int) SWIG_AsInt(obj1);
10804 if (PyErr_Occurred()) SWIG_fail;
10805 arg3 = (int) SWIG_AsInt(obj2);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 arg4 = (int) SWIG_AsInt(obj3);
10808 if (PyErr_Occurred()) SWIG_fail;
10809 arg5 = (int) SWIG_AsInt(obj4);
10810 if (PyErr_Occurred()) SWIG_fail;
10811 arg6 = (double) SWIG_AsDouble(obj5);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 arg7 = (double) SWIG_AsDouble(obj6);
10814 if (PyErr_Occurred()) SWIG_fail;
10815 {
10816 PyThreadState* __tstate = wxPyBeginAllowThreads();
10817 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10818
10819 wxPyEndAllowThreads(__tstate);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 }
10822 Py_INCREF(Py_None); resultobj = Py_None;
10823 return resultobj;
10824 fail:
10825 return NULL;
10826 }
10827
10828
10829 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10830 PyObject *resultobj;
10831 wxDC *arg1 = (wxDC *) 0 ;
10832 wxPoint *arg2 = 0 ;
10833 wxSize *arg3 = 0 ;
10834 double arg4 ;
10835 double arg5 ;
10836 wxPoint temp2 ;
10837 wxSize temp3 ;
10838 PyObject * obj0 = 0 ;
10839 PyObject * obj1 = 0 ;
10840 PyObject * obj2 = 0 ;
10841 PyObject * obj3 = 0 ;
10842 PyObject * obj4 = 0 ;
10843 char *kwnames[] = {
10844 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10845 };
10846
10847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10850 {
10851 arg2 = &temp2;
10852 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10853 }
10854 {
10855 arg3 = &temp3;
10856 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10857 }
10858 arg4 = (double) SWIG_AsDouble(obj3);
10859 if (PyErr_Occurred()) SWIG_fail;
10860 arg5 = (double) SWIG_AsDouble(obj4);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 {
10863 PyThreadState* __tstate = wxPyBeginAllowThreads();
10864 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10865
10866 wxPyEndAllowThreads(__tstate);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 }
10869 Py_INCREF(Py_None); resultobj = Py_None;
10870 return resultobj;
10871 fail:
10872 return NULL;
10873 }
10874
10875
10876 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10877 PyObject *resultobj;
10878 wxDC *arg1 = (wxDC *) 0 ;
10879 int arg2 ;
10880 int arg3 ;
10881 PyObject * obj0 = 0 ;
10882 PyObject * obj1 = 0 ;
10883 PyObject * obj2 = 0 ;
10884 char *kwnames[] = {
10885 (char *) "self",(char *) "x",(char *) "y", NULL
10886 };
10887
10888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10891 arg2 = (int) SWIG_AsInt(obj1);
10892 if (PyErr_Occurred()) SWIG_fail;
10893 arg3 = (int) SWIG_AsInt(obj2);
10894 if (PyErr_Occurred()) SWIG_fail;
10895 {
10896 PyThreadState* __tstate = wxPyBeginAllowThreads();
10897 (arg1)->DrawPoint(arg2,arg3);
10898
10899 wxPyEndAllowThreads(__tstate);
10900 if (PyErr_Occurred()) SWIG_fail;
10901 }
10902 Py_INCREF(Py_None); resultobj = Py_None;
10903 return resultobj;
10904 fail:
10905 return NULL;
10906 }
10907
10908
10909 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10910 PyObject *resultobj;
10911 wxDC *arg1 = (wxDC *) 0 ;
10912 wxPoint *arg2 = 0 ;
10913 wxPoint temp2 ;
10914 PyObject * obj0 = 0 ;
10915 PyObject * obj1 = 0 ;
10916 char *kwnames[] = {
10917 (char *) "self",(char *) "pt", NULL
10918 };
10919
10920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
10921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10923 {
10924 arg2 = &temp2;
10925 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10926 }
10927 {
10928 PyThreadState* __tstate = wxPyBeginAllowThreads();
10929 (arg1)->DrawPoint((wxPoint const &)*arg2);
10930
10931 wxPyEndAllowThreads(__tstate);
10932 if (PyErr_Occurred()) SWIG_fail;
10933 }
10934 Py_INCREF(Py_None); resultobj = Py_None;
10935 return resultobj;
10936 fail:
10937 return NULL;
10938 }
10939
10940
10941 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10942 PyObject *resultobj;
10943 wxDC *arg1 = (wxDC *) 0 ;
10944 int arg2 ;
10945 int arg3 ;
10946 int arg4 ;
10947 int arg5 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 PyObject * obj2 = 0 ;
10951 PyObject * obj3 = 0 ;
10952 PyObject * obj4 = 0 ;
10953 char *kwnames[] = {
10954 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10955 };
10956
10957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10960 arg2 = (int) SWIG_AsInt(obj1);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 arg3 = (int) SWIG_AsInt(obj2);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 arg4 = (int) SWIG_AsInt(obj3);
10965 if (PyErr_Occurred()) SWIG_fail;
10966 arg5 = (int) SWIG_AsInt(obj4);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 {
10969 PyThreadState* __tstate = wxPyBeginAllowThreads();
10970 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10971
10972 wxPyEndAllowThreads(__tstate);
10973 if (PyErr_Occurred()) SWIG_fail;
10974 }
10975 Py_INCREF(Py_None); resultobj = Py_None;
10976 return resultobj;
10977 fail:
10978 return NULL;
10979 }
10980
10981
10982 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10983 PyObject *resultobj;
10984 wxDC *arg1 = (wxDC *) 0 ;
10985 wxRect *arg2 = 0 ;
10986 wxRect temp2 ;
10987 PyObject * obj0 = 0 ;
10988 PyObject * obj1 = 0 ;
10989 char *kwnames[] = {
10990 (char *) "self",(char *) "rect", NULL
10991 };
10992
10993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10996 {
10997 arg2 = &temp2;
10998 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10999 }
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 (arg1)->DrawRectangle((wxRect const &)*arg2);
11003
11004 wxPyEndAllowThreads(__tstate);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 }
11007 Py_INCREF(Py_None); resultobj = Py_None;
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj;
11016 wxDC *arg1 = (wxDC *) 0 ;
11017 wxPoint *arg2 = 0 ;
11018 wxSize *arg3 = 0 ;
11019 wxPoint temp2 ;
11020 wxSize temp3 ;
11021 PyObject * obj0 = 0 ;
11022 PyObject * obj1 = 0 ;
11023 PyObject * obj2 = 0 ;
11024 char *kwnames[] = {
11025 (char *) "self",(char *) "pt",(char *) "sz", NULL
11026 };
11027
11028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11031 {
11032 arg2 = &temp2;
11033 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11034 }
11035 {
11036 arg3 = &temp3;
11037 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11038 }
11039 {
11040 PyThreadState* __tstate = wxPyBeginAllowThreads();
11041 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11042
11043 wxPyEndAllowThreads(__tstate);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 }
11046 Py_INCREF(Py_None); resultobj = Py_None;
11047 return resultobj;
11048 fail:
11049 return NULL;
11050 }
11051
11052
11053 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11054 PyObject *resultobj;
11055 wxDC *arg1 = (wxDC *) 0 ;
11056 int arg2 ;
11057 int arg3 ;
11058 int arg4 ;
11059 int arg5 ;
11060 double arg6 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 PyObject * obj2 = 0 ;
11064 PyObject * obj3 = 0 ;
11065 PyObject * obj4 = 0 ;
11066 PyObject * obj5 = 0 ;
11067 char *kwnames[] = {
11068 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11069 };
11070
11071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11074 arg2 = (int) SWIG_AsInt(obj1);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 arg3 = (int) SWIG_AsInt(obj2);
11077 if (PyErr_Occurred()) SWIG_fail;
11078 arg4 = (int) SWIG_AsInt(obj3);
11079 if (PyErr_Occurred()) SWIG_fail;
11080 arg5 = (int) SWIG_AsInt(obj4);
11081 if (PyErr_Occurred()) SWIG_fail;
11082 arg6 = (double) SWIG_AsDouble(obj5);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 {
11085 PyThreadState* __tstate = wxPyBeginAllowThreads();
11086 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11087
11088 wxPyEndAllowThreads(__tstate);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 }
11091 Py_INCREF(Py_None); resultobj = Py_None;
11092 return resultobj;
11093 fail:
11094 return NULL;
11095 }
11096
11097
11098 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11099 PyObject *resultobj;
11100 wxDC *arg1 = (wxDC *) 0 ;
11101 wxRect *arg2 = 0 ;
11102 double arg3 ;
11103 wxRect temp2 ;
11104 PyObject * obj0 = 0 ;
11105 PyObject * obj1 = 0 ;
11106 PyObject * obj2 = 0 ;
11107 char *kwnames[] = {
11108 (char *) "self",(char *) "r",(char *) "radius", NULL
11109 };
11110
11111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11114 {
11115 arg2 = &temp2;
11116 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11117 }
11118 arg3 = (double) SWIG_AsDouble(obj2);
11119 if (PyErr_Occurred()) SWIG_fail;
11120 {
11121 PyThreadState* __tstate = wxPyBeginAllowThreads();
11122 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11123
11124 wxPyEndAllowThreads(__tstate);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 }
11127 Py_INCREF(Py_None); resultobj = Py_None;
11128 return resultobj;
11129 fail:
11130 return NULL;
11131 }
11132
11133
11134 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11135 PyObject *resultobj;
11136 wxDC *arg1 = (wxDC *) 0 ;
11137 wxPoint *arg2 = 0 ;
11138 wxSize *arg3 = 0 ;
11139 double arg4 ;
11140 wxPoint temp2 ;
11141 wxSize temp3 ;
11142 PyObject * obj0 = 0 ;
11143 PyObject * obj1 = 0 ;
11144 PyObject * obj2 = 0 ;
11145 PyObject * obj3 = 0 ;
11146 char *kwnames[] = {
11147 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11148 };
11149
11150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11153 {
11154 arg2 = &temp2;
11155 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11156 }
11157 {
11158 arg3 = &temp3;
11159 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11160 }
11161 arg4 = (double) SWIG_AsDouble(obj3);
11162 if (PyErr_Occurred()) SWIG_fail;
11163 {
11164 PyThreadState* __tstate = wxPyBeginAllowThreads();
11165 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11166
11167 wxPyEndAllowThreads(__tstate);
11168 if (PyErr_Occurred()) SWIG_fail;
11169 }
11170 Py_INCREF(Py_None); resultobj = Py_None;
11171 return resultobj;
11172 fail:
11173 return NULL;
11174 }
11175
11176
11177 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11178 PyObject *resultobj;
11179 wxDC *arg1 = (wxDC *) 0 ;
11180 int arg2 ;
11181 int arg3 ;
11182 int arg4 ;
11183 PyObject * obj0 = 0 ;
11184 PyObject * obj1 = 0 ;
11185 PyObject * obj2 = 0 ;
11186 PyObject * obj3 = 0 ;
11187 char *kwnames[] = {
11188 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11189 };
11190
11191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11194 arg2 = (int) SWIG_AsInt(obj1);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 arg3 = (int) SWIG_AsInt(obj2);
11197 if (PyErr_Occurred()) SWIG_fail;
11198 arg4 = (int) SWIG_AsInt(obj3);
11199 if (PyErr_Occurred()) SWIG_fail;
11200 {
11201 PyThreadState* __tstate = wxPyBeginAllowThreads();
11202 (arg1)->DrawCircle(arg2,arg3,arg4);
11203
11204 wxPyEndAllowThreads(__tstate);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 }
11207 Py_INCREF(Py_None); resultobj = Py_None;
11208 return resultobj;
11209 fail:
11210 return NULL;
11211 }
11212
11213
11214 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11215 PyObject *resultobj;
11216 wxDC *arg1 = (wxDC *) 0 ;
11217 wxPoint *arg2 = 0 ;
11218 int arg3 ;
11219 wxPoint temp2 ;
11220 PyObject * obj0 = 0 ;
11221 PyObject * obj1 = 0 ;
11222 PyObject * obj2 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "self",(char *) "pt",(char *) "radius", NULL
11225 };
11226
11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11230 {
11231 arg2 = &temp2;
11232 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11233 }
11234 arg3 = (int) SWIG_AsInt(obj2);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 {
11237 PyThreadState* __tstate = wxPyBeginAllowThreads();
11238 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11239
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 Py_INCREF(Py_None); resultobj = Py_None;
11244 return resultobj;
11245 fail:
11246 return NULL;
11247 }
11248
11249
11250 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11251 PyObject *resultobj;
11252 wxDC *arg1 = (wxDC *) 0 ;
11253 int arg2 ;
11254 int arg3 ;
11255 int arg4 ;
11256 int arg5 ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 PyObject * obj2 = 0 ;
11260 PyObject * obj3 = 0 ;
11261 PyObject * obj4 = 0 ;
11262 char *kwnames[] = {
11263 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11264 };
11265
11266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11269 arg2 = (int) SWIG_AsInt(obj1);
11270 if (PyErr_Occurred()) SWIG_fail;
11271 arg3 = (int) SWIG_AsInt(obj2);
11272 if (PyErr_Occurred()) SWIG_fail;
11273 arg4 = (int) SWIG_AsInt(obj3);
11274 if (PyErr_Occurred()) SWIG_fail;
11275 arg5 = (int) SWIG_AsInt(obj4);
11276 if (PyErr_Occurred()) SWIG_fail;
11277 {
11278 PyThreadState* __tstate = wxPyBeginAllowThreads();
11279 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11280
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 Py_INCREF(Py_None); resultobj = Py_None;
11285 return resultobj;
11286 fail:
11287 return NULL;
11288 }
11289
11290
11291 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11292 PyObject *resultobj;
11293 wxDC *arg1 = (wxDC *) 0 ;
11294 wxRect *arg2 = 0 ;
11295 wxRect temp2 ;
11296 PyObject * obj0 = 0 ;
11297 PyObject * obj1 = 0 ;
11298 char *kwnames[] = {
11299 (char *) "self",(char *) "rect", NULL
11300 };
11301
11302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11305 {
11306 arg2 = &temp2;
11307 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11308 }
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 (arg1)->DrawEllipse((wxRect const &)*arg2);
11312
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 Py_INCREF(Py_None); resultobj = Py_None;
11317 return resultobj;
11318 fail:
11319 return NULL;
11320 }
11321
11322
11323 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxDC *arg1 = (wxDC *) 0 ;
11326 wxPoint *arg2 = 0 ;
11327 wxSize *arg3 = 0 ;
11328 wxPoint temp2 ;
11329 wxSize temp3 ;
11330 PyObject * obj0 = 0 ;
11331 PyObject * obj1 = 0 ;
11332 PyObject * obj2 = 0 ;
11333 char *kwnames[] = {
11334 (char *) "self",(char *) "pt",(char *) "sz", NULL
11335 };
11336
11337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11340 {
11341 arg2 = &temp2;
11342 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11343 }
11344 {
11345 arg3 = &temp3;
11346 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11347 }
11348 {
11349 PyThreadState* __tstate = wxPyBeginAllowThreads();
11350 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11351
11352 wxPyEndAllowThreads(__tstate);
11353 if (PyErr_Occurred()) SWIG_fail;
11354 }
11355 Py_INCREF(Py_None); resultobj = Py_None;
11356 return resultobj;
11357 fail:
11358 return NULL;
11359 }
11360
11361
11362 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11363 PyObject *resultobj;
11364 wxDC *arg1 = (wxDC *) 0 ;
11365 wxIcon *arg2 = 0 ;
11366 int arg3 ;
11367 int arg4 ;
11368 PyObject * obj0 = 0 ;
11369 PyObject * obj1 = 0 ;
11370 PyObject * obj2 = 0 ;
11371 PyObject * obj3 = 0 ;
11372 char *kwnames[] = {
11373 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11374 };
11375
11376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11379 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1)
11381 SWIG_fail;
11382 if (arg2 == NULL) {
11383 PyErr_SetString(PyExc_TypeError,"null reference");
11384 SWIG_fail;
11385 }
11386 arg3 = (int) SWIG_AsInt(obj2);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 arg4 = (int) SWIG_AsInt(obj3);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 Py_INCREF(Py_None); resultobj = Py_None;
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject *resultobj;
11406 wxDC *arg1 = (wxDC *) 0 ;
11407 wxIcon *arg2 = 0 ;
11408 wxPoint *arg3 = 0 ;
11409 wxPoint temp3 ;
11410 PyObject * obj0 = 0 ;
11411 PyObject * obj1 = 0 ;
11412 PyObject * obj2 = 0 ;
11413 char *kwnames[] = {
11414 (char *) "self",(char *) "icon",(char *) "pt", NULL
11415 };
11416
11417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11418 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11419 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11420 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11421 SWIG_POINTER_EXCEPTION | 0)) == -1)
11422 SWIG_fail;
11423 if (arg2 == NULL) {
11424 PyErr_SetString(PyExc_TypeError,"null reference");
11425 SWIG_fail;
11426 }
11427 {
11428 arg3 = &temp3;
11429 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11430 }
11431 {
11432 PyThreadState* __tstate = wxPyBeginAllowThreads();
11433 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11434
11435 wxPyEndAllowThreads(__tstate);
11436 if (PyErr_Occurred()) SWIG_fail;
11437 }
11438 Py_INCREF(Py_None); resultobj = Py_None;
11439 return resultobj;
11440 fail:
11441 return NULL;
11442 }
11443
11444
11445 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11446 PyObject *resultobj;
11447 wxDC *arg1 = (wxDC *) 0 ;
11448 wxBitmap *arg2 = 0 ;
11449 int arg3 ;
11450 int arg4 ;
11451 bool arg5 = (bool) False ;
11452 PyObject * obj0 = 0 ;
11453 PyObject * obj1 = 0 ;
11454 PyObject * obj2 = 0 ;
11455 PyObject * obj3 = 0 ;
11456 PyObject * obj4 = 0 ;
11457 char *kwnames[] = {
11458 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11459 };
11460
11461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11464 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11465 SWIG_POINTER_EXCEPTION | 0)) == -1)
11466 SWIG_fail;
11467 if (arg2 == NULL) {
11468 PyErr_SetString(PyExc_TypeError,"null reference");
11469 SWIG_fail;
11470 }
11471 arg3 = (int) SWIG_AsInt(obj2);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 arg4 = (int) SWIG_AsInt(obj3);
11474 if (PyErr_Occurred()) SWIG_fail;
11475 if (obj4) {
11476 arg5 = (bool) SWIG_AsBool(obj4);
11477 if (PyErr_Occurred()) SWIG_fail;
11478 }
11479 {
11480 PyThreadState* __tstate = wxPyBeginAllowThreads();
11481 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11482
11483 wxPyEndAllowThreads(__tstate);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 }
11486 Py_INCREF(Py_None); resultobj = Py_None;
11487 return resultobj;
11488 fail:
11489 return NULL;
11490 }
11491
11492
11493 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11494 PyObject *resultobj;
11495 wxDC *arg1 = (wxDC *) 0 ;
11496 wxBitmap *arg2 = 0 ;
11497 wxPoint *arg3 = 0 ;
11498 bool arg4 = (bool) False ;
11499 wxPoint temp3 ;
11500 PyObject * obj0 = 0 ;
11501 PyObject * obj1 = 0 ;
11502 PyObject * obj2 = 0 ;
11503 PyObject * obj3 = 0 ;
11504 char *kwnames[] = {
11505 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11506 };
11507
11508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11511 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11512 SWIG_POINTER_EXCEPTION | 0)) == -1)
11513 SWIG_fail;
11514 if (arg2 == NULL) {
11515 PyErr_SetString(PyExc_TypeError,"null reference");
11516 SWIG_fail;
11517 }
11518 {
11519 arg3 = &temp3;
11520 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11521 }
11522 if (obj3) {
11523 arg4 = (bool) SWIG_AsBool(obj3);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 }
11526 {
11527 PyThreadState* __tstate = wxPyBeginAllowThreads();
11528 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11529
11530 wxPyEndAllowThreads(__tstate);
11531 if (PyErr_Occurred()) SWIG_fail;
11532 }
11533 Py_INCREF(Py_None); resultobj = Py_None;
11534 return resultobj;
11535 fail:
11536 return NULL;
11537 }
11538
11539
11540 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11541 PyObject *resultobj;
11542 wxDC *arg1 = (wxDC *) 0 ;
11543 wxString *arg2 = 0 ;
11544 int arg3 ;
11545 int arg4 ;
11546 bool temp2 = False ;
11547 PyObject * obj0 = 0 ;
11548 PyObject * obj1 = 0 ;
11549 PyObject * obj2 = 0 ;
11550 PyObject * obj3 = 0 ;
11551 char *kwnames[] = {
11552 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11553 };
11554
11555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11558 {
11559 arg2 = wxString_in_helper(obj1);
11560 if (arg2 == NULL) SWIG_fail;
11561 temp2 = True;
11562 }
11563 arg3 = (int) SWIG_AsInt(obj2);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 arg4 = (int) SWIG_AsInt(obj3);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 {
11568 PyThreadState* __tstate = wxPyBeginAllowThreads();
11569 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11570
11571 wxPyEndAllowThreads(__tstate);
11572 if (PyErr_Occurred()) SWIG_fail;
11573 }
11574 Py_INCREF(Py_None); resultobj = Py_None;
11575 {
11576 if (temp2)
11577 delete arg2;
11578 }
11579 return resultobj;
11580 fail:
11581 {
11582 if (temp2)
11583 delete arg2;
11584 }
11585 return NULL;
11586 }
11587
11588
11589 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11590 PyObject *resultobj;
11591 wxDC *arg1 = (wxDC *) 0 ;
11592 wxString *arg2 = 0 ;
11593 wxPoint *arg3 = 0 ;
11594 bool temp2 = False ;
11595 wxPoint temp3 ;
11596 PyObject * obj0 = 0 ;
11597 PyObject * obj1 = 0 ;
11598 PyObject * obj2 = 0 ;
11599 char *kwnames[] = {
11600 (char *) "self",(char *) "text",(char *) "pt", NULL
11601 };
11602
11603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11606 {
11607 arg2 = wxString_in_helper(obj1);
11608 if (arg2 == NULL) SWIG_fail;
11609 temp2 = True;
11610 }
11611 {
11612 arg3 = &temp3;
11613 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11614 }
11615 {
11616 PyThreadState* __tstate = wxPyBeginAllowThreads();
11617 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11618
11619 wxPyEndAllowThreads(__tstate);
11620 if (PyErr_Occurred()) SWIG_fail;
11621 }
11622 Py_INCREF(Py_None); resultobj = Py_None;
11623 {
11624 if (temp2)
11625 delete arg2;
11626 }
11627 return resultobj;
11628 fail:
11629 {
11630 if (temp2)
11631 delete arg2;
11632 }
11633 return NULL;
11634 }
11635
11636
11637 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11638 PyObject *resultobj;
11639 wxDC *arg1 = (wxDC *) 0 ;
11640 wxString *arg2 = 0 ;
11641 int arg3 ;
11642 int arg4 ;
11643 double arg5 ;
11644 bool temp2 = False ;
11645 PyObject * obj0 = 0 ;
11646 PyObject * obj1 = 0 ;
11647 PyObject * obj2 = 0 ;
11648 PyObject * obj3 = 0 ;
11649 PyObject * obj4 = 0 ;
11650 char *kwnames[] = {
11651 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11652 };
11653
11654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11657 {
11658 arg2 = wxString_in_helper(obj1);
11659 if (arg2 == NULL) SWIG_fail;
11660 temp2 = True;
11661 }
11662 arg3 = (int) SWIG_AsInt(obj2);
11663 if (PyErr_Occurred()) SWIG_fail;
11664 arg4 = (int) SWIG_AsInt(obj3);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 arg5 = (double) SWIG_AsDouble(obj4);
11667 if (PyErr_Occurred()) SWIG_fail;
11668 {
11669 PyThreadState* __tstate = wxPyBeginAllowThreads();
11670 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11671
11672 wxPyEndAllowThreads(__tstate);
11673 if (PyErr_Occurred()) SWIG_fail;
11674 }
11675 Py_INCREF(Py_None); resultobj = Py_None;
11676 {
11677 if (temp2)
11678 delete arg2;
11679 }
11680 return resultobj;
11681 fail:
11682 {
11683 if (temp2)
11684 delete arg2;
11685 }
11686 return NULL;
11687 }
11688
11689
11690 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11691 PyObject *resultobj;
11692 wxDC *arg1 = (wxDC *) 0 ;
11693 wxString *arg2 = 0 ;
11694 wxPoint *arg3 = 0 ;
11695 double arg4 ;
11696 bool temp2 = False ;
11697 wxPoint temp3 ;
11698 PyObject * obj0 = 0 ;
11699 PyObject * obj1 = 0 ;
11700 PyObject * obj2 = 0 ;
11701 PyObject * obj3 = 0 ;
11702 char *kwnames[] = {
11703 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11704 };
11705
11706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11709 {
11710 arg2 = wxString_in_helper(obj1);
11711 if (arg2 == NULL) SWIG_fail;
11712 temp2 = True;
11713 }
11714 {
11715 arg3 = &temp3;
11716 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11717 }
11718 arg4 = (double) SWIG_AsDouble(obj3);
11719 if (PyErr_Occurred()) SWIG_fail;
11720 {
11721 PyThreadState* __tstate = wxPyBeginAllowThreads();
11722 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11723
11724 wxPyEndAllowThreads(__tstate);
11725 if (PyErr_Occurred()) SWIG_fail;
11726 }
11727 Py_INCREF(Py_None); resultobj = Py_None;
11728 {
11729 if (temp2)
11730 delete arg2;
11731 }
11732 return resultobj;
11733 fail:
11734 {
11735 if (temp2)
11736 delete arg2;
11737 }
11738 return NULL;
11739 }
11740
11741
11742 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11743 PyObject *resultobj;
11744 wxDC *arg1 = (wxDC *) 0 ;
11745 int arg2 ;
11746 int arg3 ;
11747 int arg4 ;
11748 int arg5 ;
11749 wxDC *arg6 = (wxDC *) 0 ;
11750 int arg7 ;
11751 int arg8 ;
11752 int arg9 = (int) wxCOPY ;
11753 bool arg10 = (bool) False ;
11754 int arg11 = (int) -1 ;
11755 int arg12 = (int) -1 ;
11756 bool result;
11757 PyObject * obj0 = 0 ;
11758 PyObject * obj1 = 0 ;
11759 PyObject * obj2 = 0 ;
11760 PyObject * obj3 = 0 ;
11761 PyObject * obj4 = 0 ;
11762 PyObject * obj5 = 0 ;
11763 PyObject * obj6 = 0 ;
11764 PyObject * obj7 = 0 ;
11765 PyObject * obj8 = 0 ;
11766 PyObject * obj9 = 0 ;
11767 PyObject * obj10 = 0 ;
11768 PyObject * obj11 = 0 ;
11769 char *kwnames[] = {
11770 (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
11771 };
11772
11773 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;
11774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11776 arg2 = (int) SWIG_AsInt(obj1);
11777 if (PyErr_Occurred()) SWIG_fail;
11778 arg3 = (int) SWIG_AsInt(obj2);
11779 if (PyErr_Occurred()) SWIG_fail;
11780 arg4 = (int) SWIG_AsInt(obj3);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 arg5 = (int) SWIG_AsInt(obj4);
11783 if (PyErr_Occurred()) SWIG_fail;
11784 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11786 arg7 = (int) SWIG_AsInt(obj6);
11787 if (PyErr_Occurred()) SWIG_fail;
11788 arg8 = (int) SWIG_AsInt(obj7);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 if (obj8) {
11791 arg9 = (int) SWIG_AsInt(obj8);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 if (obj9) {
11795 arg10 = (bool) SWIG_AsBool(obj9);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 if (obj10) {
11799 arg11 = (int) SWIG_AsInt(obj10);
11800 if (PyErr_Occurred()) SWIG_fail;
11801 }
11802 if (obj11) {
11803 arg12 = (int) SWIG_AsInt(obj11);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 {
11807 PyThreadState* __tstate = wxPyBeginAllowThreads();
11808 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11809
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 {
11814 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11815 }
11816 return resultobj;
11817 fail:
11818 return NULL;
11819 }
11820
11821
11822 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11823 PyObject *resultobj;
11824 wxDC *arg1 = (wxDC *) 0 ;
11825 wxPoint *arg2 = 0 ;
11826 wxSize *arg3 = 0 ;
11827 wxDC *arg4 = (wxDC *) 0 ;
11828 wxPoint *arg5 = 0 ;
11829 int arg6 = (int) wxCOPY ;
11830 bool arg7 = (bool) False ;
11831 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11832 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11833 bool result;
11834 wxPoint temp2 ;
11835 wxSize temp3 ;
11836 wxPoint temp5 ;
11837 wxPoint temp8 ;
11838 PyObject * obj0 = 0 ;
11839 PyObject * obj1 = 0 ;
11840 PyObject * obj2 = 0 ;
11841 PyObject * obj3 = 0 ;
11842 PyObject * obj4 = 0 ;
11843 PyObject * obj5 = 0 ;
11844 PyObject * obj6 = 0 ;
11845 PyObject * obj7 = 0 ;
11846 char *kwnames[] = {
11847 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11848 };
11849
11850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11853 {
11854 arg2 = &temp2;
11855 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11856 }
11857 {
11858 arg3 = &temp3;
11859 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11860 }
11861 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11863 {
11864 arg5 = &temp5;
11865 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11866 }
11867 if (obj5) {
11868 arg6 = (int) SWIG_AsInt(obj5);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 }
11871 if (obj6) {
11872 arg7 = (bool) SWIG_AsBool(obj6);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 }
11875 if (obj7) {
11876 {
11877 arg8 = &temp8;
11878 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11879 }
11880 }
11881 {
11882 PyThreadState* __tstate = wxPyBeginAllowThreads();
11883 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11884
11885 wxPyEndAllowThreads(__tstate);
11886 if (PyErr_Occurred()) SWIG_fail;
11887 }
11888 {
11889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11890 }
11891 return resultobj;
11892 fail:
11893 return NULL;
11894 }
11895
11896
11897 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj;
11899 wxDC *arg1 = (wxDC *) 0 ;
11900 int arg2 ;
11901 int arg3 ;
11902 int arg4 ;
11903 int arg5 ;
11904 PyObject * obj0 = 0 ;
11905 PyObject * obj1 = 0 ;
11906 PyObject * obj2 = 0 ;
11907 PyObject * obj3 = 0 ;
11908 PyObject * obj4 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11916 arg2 = (int) SWIG_AsInt(obj1);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 arg3 = (int) SWIG_AsInt(obj2);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 arg4 = (int) SWIG_AsInt(obj3);
11921 if (PyErr_Occurred()) SWIG_fail;
11922 arg5 = (int) SWIG_AsInt(obj4);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 {
11925 PyThreadState* __tstate = wxPyBeginAllowThreads();
11926 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11927
11928 wxPyEndAllowThreads(__tstate);
11929 if (PyErr_Occurred()) SWIG_fail;
11930 }
11931 Py_INCREF(Py_None); resultobj = Py_None;
11932 return resultobj;
11933 fail:
11934 return NULL;
11935 }
11936
11937
11938 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj;
11940 wxDC *arg1 = (wxDC *) 0 ;
11941 wxPoint *arg2 = 0 ;
11942 wxSize *arg3 = 0 ;
11943 wxPoint temp2 ;
11944 wxSize temp3 ;
11945 PyObject * obj0 = 0 ;
11946 PyObject * obj1 = 0 ;
11947 PyObject * obj2 = 0 ;
11948 char *kwnames[] = {
11949 (char *) "self",(char *) "pt",(char *) "sz", NULL
11950 };
11951
11952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11955 {
11956 arg2 = &temp2;
11957 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11958 }
11959 {
11960 arg3 = &temp3;
11961 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11962 }
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11966
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 Py_INCREF(Py_None); resultobj = Py_None;
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11978 PyObject *resultobj;
11979 wxDC *arg1 = (wxDC *) 0 ;
11980 wxRegion *arg2 = 0 ;
11981 PyObject * obj0 = 0 ;
11982 PyObject * obj1 = 0 ;
11983 char *kwnames[] = {
11984 (char *) "self",(char *) "region", NULL
11985 };
11986
11987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
11991 SWIG_POINTER_EXCEPTION | 0)) == -1)
11992 SWIG_fail;
11993 if (arg2 == NULL) {
11994 PyErr_SetString(PyExc_TypeError,"null reference");
11995 SWIG_fail;
11996 }
11997 {
11998 PyThreadState* __tstate = wxPyBeginAllowThreads();
11999 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12000
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 Py_INCREF(Py_None); resultobj = Py_None;
12005 return resultobj;
12006 fail:
12007 return NULL;
12008 }
12009
12010
12011 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12012 PyObject *resultobj;
12013 wxDC *arg1 = (wxDC *) 0 ;
12014 wxRect *arg2 = 0 ;
12015 wxRect temp2 ;
12016 PyObject * obj0 = 0 ;
12017 PyObject * obj1 = 0 ;
12018 char *kwnames[] = {
12019 (char *) "self",(char *) "rect", NULL
12020 };
12021
12022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12025 {
12026 arg2 = &temp2;
12027 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12028 }
12029 {
12030 PyThreadState* __tstate = wxPyBeginAllowThreads();
12031 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12032
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 Py_INCREF(Py_None); resultobj = Py_None;
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj;
12045 wxDC *arg1 = (wxDC *) 0 ;
12046 int arg2 ;
12047 wxPoint *arg3 = (wxPoint *) 0 ;
12048 int arg4 = (int) 0 ;
12049 int arg5 = (int) 0 ;
12050 PyObject * obj0 = 0 ;
12051 PyObject * obj1 = 0 ;
12052 PyObject * obj2 = 0 ;
12053 PyObject * obj3 = 0 ;
12054 char *kwnames[] = {
12055 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12056 };
12057
12058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12061 {
12062 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12063 if (arg3 == NULL) SWIG_fail;
12064 }
12065 if (obj2) {
12066 arg4 = (int) SWIG_AsInt(obj2);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 if (obj3) {
12070 arg5 = (int) SWIG_AsInt(obj3);
12071 if (PyErr_Occurred()) SWIG_fail;
12072 }
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12076
12077 wxPyEndAllowThreads(__tstate);
12078 if (PyErr_Occurred()) SWIG_fail;
12079 }
12080 Py_INCREF(Py_None); resultobj = Py_None;
12081 {
12082 if (arg3) delete [] arg3;
12083 }
12084 return resultobj;
12085 fail:
12086 {
12087 if (arg3) delete [] arg3;
12088 }
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxDC *arg1 = (wxDC *) 0 ;
12096 int arg2 ;
12097 wxPoint *arg3 = (wxPoint *) 0 ;
12098 int arg4 = (int) 0 ;
12099 int arg5 = (int) 0 ;
12100 int arg6 = (int) wxODDEVEN_RULE ;
12101 PyObject * obj0 = 0 ;
12102 PyObject * obj1 = 0 ;
12103 PyObject * obj2 = 0 ;
12104 PyObject * obj3 = 0 ;
12105 PyObject * obj4 = 0 ;
12106 char *kwnames[] = {
12107 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12108 };
12109
12110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12113 {
12114 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12115 if (arg3 == NULL) SWIG_fail;
12116 }
12117 if (obj2) {
12118 arg4 = (int) SWIG_AsInt(obj2);
12119 if (PyErr_Occurred()) SWIG_fail;
12120 }
12121 if (obj3) {
12122 arg5 = (int) SWIG_AsInt(obj3);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 if (obj4) {
12126 arg6 = (int) SWIG_AsInt(obj4);
12127 if (PyErr_Occurred()) SWIG_fail;
12128 }
12129 {
12130 PyThreadState* __tstate = wxPyBeginAllowThreads();
12131 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12132
12133 wxPyEndAllowThreads(__tstate);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 Py_INCREF(Py_None); resultobj = Py_None;
12137 {
12138 if (arg3) delete [] arg3;
12139 }
12140 return resultobj;
12141 fail:
12142 {
12143 if (arg3) delete [] arg3;
12144 }
12145 return NULL;
12146 }
12147
12148
12149 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12150 PyObject *resultobj;
12151 wxDC *arg1 = (wxDC *) 0 ;
12152 wxString *arg2 = 0 ;
12153 wxRect *arg3 = 0 ;
12154 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12155 int arg5 = (int) -1 ;
12156 bool temp2 = False ;
12157 wxRect temp3 ;
12158 PyObject * obj0 = 0 ;
12159 PyObject * obj1 = 0 ;
12160 PyObject * obj2 = 0 ;
12161 PyObject * obj3 = 0 ;
12162 PyObject * obj4 = 0 ;
12163 char *kwnames[] = {
12164 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12165 };
12166
12167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12170 {
12171 arg2 = wxString_in_helper(obj1);
12172 if (arg2 == NULL) SWIG_fail;
12173 temp2 = True;
12174 }
12175 {
12176 arg3 = &temp3;
12177 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12178 }
12179 if (obj3) {
12180 arg4 = (int) SWIG_AsInt(obj3);
12181 if (PyErr_Occurred()) SWIG_fail;
12182 }
12183 if (obj4) {
12184 arg5 = (int) SWIG_AsInt(obj4);
12185 if (PyErr_Occurred()) SWIG_fail;
12186 }
12187 {
12188 PyThreadState* __tstate = wxPyBeginAllowThreads();
12189 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12190
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 Py_INCREF(Py_None); resultobj = Py_None;
12195 {
12196 if (temp2)
12197 delete arg2;
12198 }
12199 return resultobj;
12200 fail:
12201 {
12202 if (temp2)
12203 delete arg2;
12204 }
12205 return NULL;
12206 }
12207
12208
12209 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12210 PyObject *resultobj;
12211 wxDC *arg1 = (wxDC *) 0 ;
12212 wxString *arg2 = 0 ;
12213 wxBitmap *arg3 = 0 ;
12214 wxRect *arg4 = 0 ;
12215 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12216 int arg6 = (int) -1 ;
12217 wxRect result;
12218 bool temp2 = False ;
12219 wxRect temp4 ;
12220 PyObject * obj0 = 0 ;
12221 PyObject * obj1 = 0 ;
12222 PyObject * obj2 = 0 ;
12223 PyObject * obj3 = 0 ;
12224 PyObject * obj4 = 0 ;
12225 PyObject * obj5 = 0 ;
12226 char *kwnames[] = {
12227 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12228 };
12229
12230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12233 {
12234 arg2 = wxString_in_helper(obj1);
12235 if (arg2 == NULL) SWIG_fail;
12236 temp2 = True;
12237 }
12238 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12239 SWIG_POINTER_EXCEPTION | 0)) == -1)
12240 SWIG_fail;
12241 if (arg3 == NULL) {
12242 PyErr_SetString(PyExc_TypeError,"null reference");
12243 SWIG_fail;
12244 }
12245 {
12246 arg4 = &temp4;
12247 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12248 }
12249 if (obj4) {
12250 arg5 = (int) SWIG_AsInt(obj4);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 if (obj5) {
12254 arg6 = (int) SWIG_AsInt(obj5);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12260
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 {
12265 wxRect * resultptr;
12266 resultptr = new wxRect((wxRect &) result);
12267 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12268 }
12269 {
12270 if (temp2)
12271 delete arg2;
12272 }
12273 return resultobj;
12274 fail:
12275 {
12276 if (temp2)
12277 delete arg2;
12278 }
12279 return NULL;
12280 }
12281
12282
12283 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12284 PyObject *resultobj;
12285 wxDC *arg1 = (wxDC *) 0 ;
12286 int arg2 ;
12287 wxPoint *arg3 = (wxPoint *) 0 ;
12288 PyObject * obj0 = 0 ;
12289 PyObject * obj1 = 0 ;
12290 char *kwnames[] = {
12291 (char *) "self",(char *) "points", NULL
12292 };
12293
12294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12297 {
12298 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12299 if (arg3 == NULL) SWIG_fail;
12300 }
12301 {
12302 PyThreadState* __tstate = wxPyBeginAllowThreads();
12303 (arg1)->DrawSpline(arg2,arg3);
12304
12305 wxPyEndAllowThreads(__tstate);
12306 if (PyErr_Occurred()) SWIG_fail;
12307 }
12308 Py_INCREF(Py_None); resultobj = Py_None;
12309 {
12310 if (arg3) delete [] arg3;
12311 }
12312 return resultobj;
12313 fail:
12314 {
12315 if (arg3) delete [] arg3;
12316 }
12317 return NULL;
12318 }
12319
12320
12321 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12322 PyObject *resultobj;
12323 wxDC *arg1 = (wxDC *) 0 ;
12324 PyObject * obj0 = 0 ;
12325 char *kwnames[] = {
12326 (char *) "self", NULL
12327 };
12328
12329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 (arg1)->Clear();
12335
12336 wxPyEndAllowThreads(__tstate);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 }
12339 Py_INCREF(Py_None); resultobj = Py_None;
12340 return resultobj;
12341 fail:
12342 return NULL;
12343 }
12344
12345
12346 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 wxDC *arg1 = (wxDC *) 0 ;
12349 wxString *arg2 = 0 ;
12350 bool result;
12351 bool temp2 = False ;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 char *kwnames[] = {
12355 (char *) "self",(char *) "message", NULL
12356 };
12357
12358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12361 {
12362 arg2 = wxString_in_helper(obj1);
12363 if (arg2 == NULL) SWIG_fail;
12364 temp2 = True;
12365 }
12366 {
12367 PyThreadState* __tstate = wxPyBeginAllowThreads();
12368 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12369
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 {
12374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12375 }
12376 {
12377 if (temp2)
12378 delete arg2;
12379 }
12380 return resultobj;
12381 fail:
12382 {
12383 if (temp2)
12384 delete arg2;
12385 }
12386 return NULL;
12387 }
12388
12389
12390 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12391 PyObject *resultobj;
12392 wxDC *arg1 = (wxDC *) 0 ;
12393 PyObject * obj0 = 0 ;
12394 char *kwnames[] = {
12395 (char *) "self", NULL
12396 };
12397
12398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12401 {
12402 PyThreadState* __tstate = wxPyBeginAllowThreads();
12403 (arg1)->EndDoc();
12404
12405 wxPyEndAllowThreads(__tstate);
12406 if (PyErr_Occurred()) SWIG_fail;
12407 }
12408 Py_INCREF(Py_None); resultobj = Py_None;
12409 return resultobj;
12410 fail:
12411 return NULL;
12412 }
12413
12414
12415 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12416 PyObject *resultobj;
12417 wxDC *arg1 = (wxDC *) 0 ;
12418 PyObject * obj0 = 0 ;
12419 char *kwnames[] = {
12420 (char *) "self", NULL
12421 };
12422
12423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12426 {
12427 PyThreadState* __tstate = wxPyBeginAllowThreads();
12428 (arg1)->StartPage();
12429
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 Py_INCREF(Py_None); resultobj = Py_None;
12434 return resultobj;
12435 fail:
12436 return NULL;
12437 }
12438
12439
12440 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj;
12442 wxDC *arg1 = (wxDC *) 0 ;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 (arg1)->EndPage();
12454
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 Py_INCREF(Py_None); resultobj = Py_None;
12459 return resultobj;
12460 fail:
12461 return NULL;
12462 }
12463
12464
12465 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj;
12467 wxDC *arg1 = (wxDC *) 0 ;
12468 wxFont *arg2 = 0 ;
12469 PyObject * obj0 = 0 ;
12470 PyObject * obj1 = 0 ;
12471 char *kwnames[] = {
12472 (char *) "self",(char *) "font", NULL
12473 };
12474
12475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12479 SWIG_POINTER_EXCEPTION | 0)) == -1)
12480 SWIG_fail;
12481 if (arg2 == NULL) {
12482 PyErr_SetString(PyExc_TypeError,"null reference");
12483 SWIG_fail;
12484 }
12485 {
12486 PyThreadState* __tstate = wxPyBeginAllowThreads();
12487 (arg1)->SetFont((wxFont const &)*arg2);
12488
12489 wxPyEndAllowThreads(__tstate);
12490 if (PyErr_Occurred()) SWIG_fail;
12491 }
12492 Py_INCREF(Py_None); resultobj = Py_None;
12493 return resultobj;
12494 fail:
12495 return NULL;
12496 }
12497
12498
12499 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12500 PyObject *resultobj;
12501 wxDC *arg1 = (wxDC *) 0 ;
12502 wxPen *arg2 = 0 ;
12503 PyObject * obj0 = 0 ;
12504 PyObject * obj1 = 0 ;
12505 char *kwnames[] = {
12506 (char *) "self",(char *) "pen", NULL
12507 };
12508
12509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12512 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12513 SWIG_POINTER_EXCEPTION | 0)) == -1)
12514 SWIG_fail;
12515 if (arg2 == NULL) {
12516 PyErr_SetString(PyExc_TypeError,"null reference");
12517 SWIG_fail;
12518 }
12519 {
12520 PyThreadState* __tstate = wxPyBeginAllowThreads();
12521 (arg1)->SetPen((wxPen const &)*arg2);
12522
12523 wxPyEndAllowThreads(__tstate);
12524 if (PyErr_Occurred()) SWIG_fail;
12525 }
12526 Py_INCREF(Py_None); resultobj = Py_None;
12527 return resultobj;
12528 fail:
12529 return NULL;
12530 }
12531
12532
12533 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12534 PyObject *resultobj;
12535 wxDC *arg1 = (wxDC *) 0 ;
12536 wxBrush *arg2 = 0 ;
12537 PyObject * obj0 = 0 ;
12538 PyObject * obj1 = 0 ;
12539 char *kwnames[] = {
12540 (char *) "self",(char *) "brush", NULL
12541 };
12542
12543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12546 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1)
12548 SWIG_fail;
12549 if (arg2 == NULL) {
12550 PyErr_SetString(PyExc_TypeError,"null reference");
12551 SWIG_fail;
12552 }
12553 {
12554 PyThreadState* __tstate = wxPyBeginAllowThreads();
12555 (arg1)->SetBrush((wxBrush const &)*arg2);
12556
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
12560 Py_INCREF(Py_None); resultobj = Py_None;
12561 return resultobj;
12562 fail:
12563 return NULL;
12564 }
12565
12566
12567 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12568 PyObject *resultobj;
12569 wxDC *arg1 = (wxDC *) 0 ;
12570 wxBrush *arg2 = 0 ;
12571 PyObject * obj0 = 0 ;
12572 PyObject * obj1 = 0 ;
12573 char *kwnames[] = {
12574 (char *) "self",(char *) "brush", NULL
12575 };
12576
12577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12580 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1)
12582 SWIG_fail;
12583 if (arg2 == NULL) {
12584 PyErr_SetString(PyExc_TypeError,"null reference");
12585 SWIG_fail;
12586 }
12587 {
12588 PyThreadState* __tstate = wxPyBeginAllowThreads();
12589 (arg1)->SetBackground((wxBrush const &)*arg2);
12590
12591 wxPyEndAllowThreads(__tstate);
12592 if (PyErr_Occurred()) SWIG_fail;
12593 }
12594 Py_INCREF(Py_None); resultobj = Py_None;
12595 return resultobj;
12596 fail:
12597 return NULL;
12598 }
12599
12600
12601 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12602 PyObject *resultobj;
12603 wxDC *arg1 = (wxDC *) 0 ;
12604 int arg2 ;
12605 PyObject * obj0 = 0 ;
12606 PyObject * obj1 = 0 ;
12607 char *kwnames[] = {
12608 (char *) "self",(char *) "mode", NULL
12609 };
12610
12611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12614 arg2 = (int) SWIG_AsInt(obj1);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 (arg1)->SetBackgroundMode(arg2);
12619
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 Py_INCREF(Py_None); resultobj = Py_None;
12624 return resultobj;
12625 fail:
12626 return NULL;
12627 }
12628
12629
12630 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12631 PyObject *resultobj;
12632 wxDC *arg1 = (wxDC *) 0 ;
12633 wxPalette *arg2 = 0 ;
12634 PyObject * obj0 = 0 ;
12635 PyObject * obj1 = 0 ;
12636 char *kwnames[] = {
12637 (char *) "self",(char *) "palette", NULL
12638 };
12639
12640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12643 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1)
12645 SWIG_fail;
12646 if (arg2 == NULL) {
12647 PyErr_SetString(PyExc_TypeError,"null reference");
12648 SWIG_fail;
12649 }
12650 {
12651 PyThreadState* __tstate = wxPyBeginAllowThreads();
12652 (arg1)->SetPalette((wxPalette const &)*arg2);
12653
12654 wxPyEndAllowThreads(__tstate);
12655 if (PyErr_Occurred()) SWIG_fail;
12656 }
12657 Py_INCREF(Py_None); resultobj = Py_None;
12658 return resultobj;
12659 fail:
12660 return NULL;
12661 }
12662
12663
12664 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12665 PyObject *resultobj;
12666 wxDC *arg1 = (wxDC *) 0 ;
12667 PyObject * obj0 = 0 ;
12668 char *kwnames[] = {
12669 (char *) "self", NULL
12670 };
12671
12672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12675 {
12676 PyThreadState* __tstate = wxPyBeginAllowThreads();
12677 (arg1)->DestroyClippingRegion();
12678
12679 wxPyEndAllowThreads(__tstate);
12680 if (PyErr_Occurred()) SWIG_fail;
12681 }
12682 Py_INCREF(Py_None); resultobj = Py_None;
12683 return resultobj;
12684 fail:
12685 return NULL;
12686 }
12687
12688
12689 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12690 PyObject *resultobj;
12691 wxDC *arg1 = (wxDC *) 0 ;
12692 int *arg2 = (int *) 0 ;
12693 int *arg3 = (int *) 0 ;
12694 int *arg4 = (int *) 0 ;
12695 int *arg5 = (int *) 0 ;
12696 int temp2 ;
12697 int temp3 ;
12698 int temp4 ;
12699 int temp5 ;
12700 PyObject * obj0 = 0 ;
12701 char *kwnames[] = {
12702 (char *) "self", NULL
12703 };
12704
12705 arg2 = &temp2;
12706 arg3 = &temp3;
12707 arg4 = &temp4;
12708 arg5 = &temp5;
12709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12711 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12712 {
12713 PyThreadState* __tstate = wxPyBeginAllowThreads();
12714 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12715
12716 wxPyEndAllowThreads(__tstate);
12717 if (PyErr_Occurred()) SWIG_fail;
12718 }
12719 Py_INCREF(Py_None); resultobj = Py_None;
12720 {
12721 PyObject *o = PyInt_FromLong((long) (*arg2));
12722 resultobj = t_output_helper(resultobj,o);
12723 }
12724 {
12725 PyObject *o = PyInt_FromLong((long) (*arg3));
12726 resultobj = t_output_helper(resultobj,o);
12727 }
12728 {
12729 PyObject *o = PyInt_FromLong((long) (*arg4));
12730 resultobj = t_output_helper(resultobj,o);
12731 }
12732 {
12733 PyObject *o = PyInt_FromLong((long) (*arg5));
12734 resultobj = t_output_helper(resultobj,o);
12735 }
12736 return resultobj;
12737 fail:
12738 return NULL;
12739 }
12740
12741
12742 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12743 PyObject *resultobj;
12744 wxDC *arg1 = (wxDC *) 0 ;
12745 wxRect result;
12746 PyObject * obj0 = 0 ;
12747 char *kwnames[] = {
12748 (char *) "self", NULL
12749 };
12750
12751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 result = wxDC_GetClippingRect(arg1);
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 {
12762 wxRect * resultptr;
12763 resultptr = new wxRect((wxRect &) result);
12764 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12765 }
12766 return resultobj;
12767 fail:
12768 return NULL;
12769 }
12770
12771
12772 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12773 PyObject *resultobj;
12774 wxDC *arg1 = (wxDC *) 0 ;
12775 int result;
12776 PyObject * obj0 = 0 ;
12777 char *kwnames[] = {
12778 (char *) "self", NULL
12779 };
12780
12781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12784 {
12785 PyThreadState* __tstate = wxPyBeginAllowThreads();
12786 result = (int)((wxDC const *)arg1)->GetCharHeight();
12787
12788 wxPyEndAllowThreads(__tstate);
12789 if (PyErr_Occurred()) SWIG_fail;
12790 }
12791 resultobj = SWIG_FromInt((int)result);
12792 return resultobj;
12793 fail:
12794 return NULL;
12795 }
12796
12797
12798 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12799 PyObject *resultobj;
12800 wxDC *arg1 = (wxDC *) 0 ;
12801 int result;
12802 PyObject * obj0 = 0 ;
12803 char *kwnames[] = {
12804 (char *) "self", NULL
12805 };
12806
12807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = (int)((wxDC const *)arg1)->GetCharWidth();
12813
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 resultobj = SWIG_FromInt((int)result);
12818 return resultobj;
12819 fail:
12820 return NULL;
12821 }
12822
12823
12824 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12825 PyObject *resultobj;
12826 wxDC *arg1 = (wxDC *) 0 ;
12827 wxString *arg2 = 0 ;
12828 int *arg3 = (int *) 0 ;
12829 int *arg4 = (int *) 0 ;
12830 bool temp2 = False ;
12831 int temp3 ;
12832 int temp4 ;
12833 PyObject * obj0 = 0 ;
12834 PyObject * obj1 = 0 ;
12835 char *kwnames[] = {
12836 (char *) "self",(char *) "string", NULL
12837 };
12838
12839 arg3 = &temp3;
12840 arg4 = &temp4;
12841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12844 {
12845 arg2 = wxString_in_helper(obj1);
12846 if (arg2 == NULL) SWIG_fail;
12847 temp2 = True;
12848 }
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12852
12853 wxPyEndAllowThreads(__tstate);
12854 if (PyErr_Occurred()) SWIG_fail;
12855 }
12856 Py_INCREF(Py_None); resultobj = Py_None;
12857 {
12858 PyObject *o = PyInt_FromLong((long) (*arg3));
12859 resultobj = t_output_helper(resultobj,o);
12860 }
12861 {
12862 PyObject *o = PyInt_FromLong((long) (*arg4));
12863 resultobj = t_output_helper(resultobj,o);
12864 }
12865 {
12866 if (temp2)
12867 delete arg2;
12868 }
12869 return resultobj;
12870 fail:
12871 {
12872 if (temp2)
12873 delete arg2;
12874 }
12875 return NULL;
12876 }
12877
12878
12879 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12880 PyObject *resultobj;
12881 wxDC *arg1 = (wxDC *) 0 ;
12882 wxString *arg2 = 0 ;
12883 int *arg3 = (int *) 0 ;
12884 int *arg4 = (int *) 0 ;
12885 int *arg5 = (int *) 0 ;
12886 int *arg6 = (int *) 0 ;
12887 wxFont *arg7 = (wxFont *) NULL ;
12888 bool temp2 = False ;
12889 int temp3 ;
12890 int temp4 ;
12891 int temp5 ;
12892 int temp6 ;
12893 PyObject * obj0 = 0 ;
12894 PyObject * obj1 = 0 ;
12895 PyObject * obj2 = 0 ;
12896 char *kwnames[] = {
12897 (char *) "self",(char *) "string",(char *) "font", NULL
12898 };
12899
12900 arg3 = &temp3;
12901 arg4 = &temp4;
12902 arg5 = &temp5;
12903 arg6 = &temp6;
12904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12907 {
12908 arg2 = wxString_in_helper(obj1);
12909 if (arg2 == NULL) SWIG_fail;
12910 temp2 = True;
12911 }
12912 if (obj2) {
12913 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12915 }
12916 {
12917 PyThreadState* __tstate = wxPyBeginAllowThreads();
12918 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12919
12920 wxPyEndAllowThreads(__tstate);
12921 if (PyErr_Occurred()) SWIG_fail;
12922 }
12923 Py_INCREF(Py_None); resultobj = Py_None;
12924 {
12925 PyObject *o = PyInt_FromLong((long) (*arg3));
12926 resultobj = t_output_helper(resultobj,o);
12927 }
12928 {
12929 PyObject *o = PyInt_FromLong((long) (*arg4));
12930 resultobj = t_output_helper(resultobj,o);
12931 }
12932 {
12933 PyObject *o = PyInt_FromLong((long) (*arg5));
12934 resultobj = t_output_helper(resultobj,o);
12935 }
12936 {
12937 PyObject *o = PyInt_FromLong((long) (*arg6));
12938 resultobj = t_output_helper(resultobj,o);
12939 }
12940 {
12941 if (temp2)
12942 delete arg2;
12943 }
12944 return resultobj;
12945 fail:
12946 {
12947 if (temp2)
12948 delete arg2;
12949 }
12950 return NULL;
12951 }
12952
12953
12954 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12955 PyObject *resultobj;
12956 wxDC *arg1 = (wxDC *) 0 ;
12957 wxString *arg2 = 0 ;
12958 int *arg3 = (int *) 0 ;
12959 int *arg4 = (int *) 0 ;
12960 int *arg5 = (int *) 0 ;
12961 wxFont *arg6 = (wxFont *) NULL ;
12962 bool temp2 = False ;
12963 int temp3 ;
12964 int temp4 ;
12965 int temp5 ;
12966 PyObject * obj0 = 0 ;
12967 PyObject * obj1 = 0 ;
12968 PyObject * obj2 = 0 ;
12969 char *kwnames[] = {
12970 (char *) "self",(char *) "text",(char *) "font", NULL
12971 };
12972
12973 arg3 = &temp3;
12974 arg4 = &temp4;
12975 arg5 = &temp5;
12976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12979 {
12980 arg2 = wxString_in_helper(obj1);
12981 if (arg2 == NULL) SWIG_fail;
12982 temp2 = True;
12983 }
12984 if (obj2) {
12985 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12987 }
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12991
12992 wxPyEndAllowThreads(__tstate);
12993 if (PyErr_Occurred()) SWIG_fail;
12994 }
12995 Py_INCREF(Py_None); resultobj = Py_None;
12996 {
12997 PyObject *o = PyInt_FromLong((long) (*arg3));
12998 resultobj = t_output_helper(resultobj,o);
12999 }
13000 {
13001 PyObject *o = PyInt_FromLong((long) (*arg4));
13002 resultobj = t_output_helper(resultobj,o);
13003 }
13004 {
13005 PyObject *o = PyInt_FromLong((long) (*arg5));
13006 resultobj = t_output_helper(resultobj,o);
13007 }
13008 {
13009 if (temp2)
13010 delete arg2;
13011 }
13012 return resultobj;
13013 fail:
13014 {
13015 if (temp2)
13016 delete arg2;
13017 }
13018 return NULL;
13019 }
13020
13021
13022 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13023 PyObject *resultobj;
13024 wxDC *arg1 = (wxDC *) 0 ;
13025 wxString *arg2 = 0 ;
13026 wxArrayInt result;
13027 bool temp2 = False ;
13028 PyObject * obj0 = 0 ;
13029 PyObject * obj1 = 0 ;
13030 char *kwnames[] = {
13031 (char *) "self",(char *) "text", NULL
13032 };
13033
13034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13037 {
13038 arg2 = wxString_in_helper(obj1);
13039 if (arg2 == NULL) SWIG_fail;
13040 temp2 = True;
13041 }
13042 {
13043 PyThreadState* __tstate = wxPyBeginAllowThreads();
13044 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13045
13046 wxPyEndAllowThreads(__tstate);
13047 if (PyErr_Occurred()) SWIG_fail;
13048 }
13049 {
13050 resultobj = PyList_New(0);
13051 size_t idx;
13052 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13053 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13054 PyList_Append(resultobj, val);
13055 Py_DECREF(val);
13056 }
13057 }
13058 {
13059 if (temp2)
13060 delete arg2;
13061 }
13062 return resultobj;
13063 fail:
13064 {
13065 if (temp2)
13066 delete arg2;
13067 }
13068 return NULL;
13069 }
13070
13071
13072 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj;
13074 wxDC *arg1 = (wxDC *) 0 ;
13075 wxSize result;
13076 PyObject * obj0 = 0 ;
13077 char *kwnames[] = {
13078 (char *) "self", NULL
13079 };
13080
13081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = (arg1)->GetSize();
13087
13088 wxPyEndAllowThreads(__tstate);
13089 if (PyErr_Occurred()) SWIG_fail;
13090 }
13091 {
13092 wxSize * resultptr;
13093 resultptr = new wxSize((wxSize &) result);
13094 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13095 }
13096 return resultobj;
13097 fail:
13098 return NULL;
13099 }
13100
13101
13102 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj;
13104 wxDC *arg1 = (wxDC *) 0 ;
13105 int *arg2 = (int *) 0 ;
13106 int *arg3 = (int *) 0 ;
13107 int temp2 ;
13108 int temp3 ;
13109 PyObject * obj0 = 0 ;
13110 char *kwnames[] = {
13111 (char *) "self", NULL
13112 };
13113
13114 arg2 = &temp2;
13115 arg3 = &temp3;
13116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13119 {
13120 PyThreadState* __tstate = wxPyBeginAllowThreads();
13121 (arg1)->GetSize(arg2,arg3);
13122
13123 wxPyEndAllowThreads(__tstate);
13124 if (PyErr_Occurred()) SWIG_fail;
13125 }
13126 Py_INCREF(Py_None); resultobj = Py_None;
13127 {
13128 PyObject *o = PyInt_FromLong((long) (*arg2));
13129 resultobj = t_output_helper(resultobj,o);
13130 }
13131 {
13132 PyObject *o = PyInt_FromLong((long) (*arg3));
13133 resultobj = t_output_helper(resultobj,o);
13134 }
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxDC *arg1 = (wxDC *) 0 ;
13144 wxSize result;
13145 PyObject * obj0 = 0 ;
13146 char *kwnames[] = {
13147 (char *) "self", NULL
13148 };
13149
13150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13153 {
13154 PyThreadState* __tstate = wxPyBeginAllowThreads();
13155 result = ((wxDC const *)arg1)->GetSizeMM();
13156
13157 wxPyEndAllowThreads(__tstate);
13158 if (PyErr_Occurred()) SWIG_fail;
13159 }
13160 {
13161 wxSize * resultptr;
13162 resultptr = new wxSize((wxSize &) result);
13163 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13164 }
13165 return resultobj;
13166 fail:
13167 return NULL;
13168 }
13169
13170
13171 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13172 PyObject *resultobj;
13173 wxDC *arg1 = (wxDC *) 0 ;
13174 int *arg2 = (int *) 0 ;
13175 int *arg3 = (int *) 0 ;
13176 int temp2 ;
13177 int temp3 ;
13178 PyObject * obj0 = 0 ;
13179 char *kwnames[] = {
13180 (char *) "self", NULL
13181 };
13182
13183 arg2 = &temp2;
13184 arg3 = &temp3;
13185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13188 {
13189 PyThreadState* __tstate = wxPyBeginAllowThreads();
13190 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13191
13192 wxPyEndAllowThreads(__tstate);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 Py_INCREF(Py_None); resultobj = Py_None;
13196 {
13197 PyObject *o = PyInt_FromLong((long) (*arg2));
13198 resultobj = t_output_helper(resultobj,o);
13199 }
13200 {
13201 PyObject *o = PyInt_FromLong((long) (*arg3));
13202 resultobj = t_output_helper(resultobj,o);
13203 }
13204 return resultobj;
13205 fail:
13206 return NULL;
13207 }
13208
13209
13210 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj;
13212 wxDC *arg1 = (wxDC *) 0 ;
13213 int arg2 ;
13214 int result;
13215 PyObject * obj0 = 0 ;
13216 PyObject * obj1 = 0 ;
13217 char *kwnames[] = {
13218 (char *) "self",(char *) "x", NULL
13219 };
13220
13221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",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 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13229
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 resultobj = SWIG_FromInt((int)result);
13234 return resultobj;
13235 fail:
13236 return NULL;
13237 }
13238
13239
13240 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj;
13242 wxDC *arg1 = (wxDC *) 0 ;
13243 int arg2 ;
13244 int result;
13245 PyObject * obj0 = 0 ;
13246 PyObject * obj1 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self",(char *) "y", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13254 arg2 = (int) SWIG_AsInt(obj1);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13259
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = SWIG_FromInt((int)result);
13264 return resultobj;
13265 fail:
13266 return NULL;
13267 }
13268
13269
13270 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13271 PyObject *resultobj;
13272 wxDC *arg1 = (wxDC *) 0 ;
13273 int arg2 ;
13274 int result;
13275 PyObject * obj0 = 0 ;
13276 PyObject * obj1 = 0 ;
13277 char *kwnames[] = {
13278 (char *) "self",(char *) "x", NULL
13279 };
13280
13281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13284 arg2 = (int) SWIG_AsInt(obj1);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = SWIG_FromInt((int)result);
13294 return resultobj;
13295 fail:
13296 return NULL;
13297 }
13298
13299
13300 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj;
13302 wxDC *arg1 = (wxDC *) 0 ;
13303 int arg2 ;
13304 int result;
13305 PyObject * obj0 = 0 ;
13306 PyObject * obj1 = 0 ;
13307 char *kwnames[] = {
13308 (char *) "self",(char *) "y", NULL
13309 };
13310
13311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13314 arg2 = (int) SWIG_AsInt(obj1);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13319
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 resultobj = SWIG_FromInt((int)result);
13324 return resultobj;
13325 fail:
13326 return NULL;
13327 }
13328
13329
13330 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj;
13332 wxDC *arg1 = (wxDC *) 0 ;
13333 int arg2 ;
13334 int result;
13335 PyObject * obj0 = 0 ;
13336 PyObject * obj1 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self",(char *) "x", NULL
13339 };
13340
13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13344 arg2 = (int) SWIG_AsInt(obj1);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_FromInt((int)result);
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj;
13362 wxDC *arg1 = (wxDC *) 0 ;
13363 int arg2 ;
13364 int result;
13365 PyObject * obj0 = 0 ;
13366 PyObject * obj1 = 0 ;
13367 char *kwnames[] = {
13368 (char *) "self",(char *) "y", NULL
13369 };
13370
13371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13374 arg2 = (int) SWIG_AsInt(obj1);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 resultobj = SWIG_FromInt((int)result);
13384 return resultobj;
13385 fail:
13386 return NULL;
13387 }
13388
13389
13390 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj;
13392 wxDC *arg1 = (wxDC *) 0 ;
13393 int arg2 ;
13394 int result;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self",(char *) "x", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13404 arg2 = (int) SWIG_AsInt(obj1);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13409
13410 wxPyEndAllowThreads(__tstate);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
13413 resultobj = SWIG_FromInt((int)result);
13414 return resultobj;
13415 fail:
13416 return NULL;
13417 }
13418
13419
13420 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj;
13422 wxDC *arg1 = (wxDC *) 0 ;
13423 int arg2 ;
13424 int result;
13425 PyObject * obj0 = 0 ;
13426 PyObject * obj1 = 0 ;
13427 char *kwnames[] = {
13428 (char *) "self",(char *) "y", NULL
13429 };
13430
13431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13434 arg2 = (int) SWIG_AsInt(obj1);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 resultobj = SWIG_FromInt((int)result);
13444 return resultobj;
13445 fail:
13446 return NULL;
13447 }
13448
13449
13450 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj;
13452 wxDC *arg1 = (wxDC *) 0 ;
13453 bool result;
13454 PyObject * obj0 = 0 ;
13455 char *kwnames[] = {
13456 (char *) "self", NULL
13457 };
13458
13459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13462 {
13463 PyThreadState* __tstate = wxPyBeginAllowThreads();
13464 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13465
13466 wxPyEndAllowThreads(__tstate);
13467 if (PyErr_Occurred()) SWIG_fail;
13468 }
13469 {
13470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13471 }
13472 return resultobj;
13473 fail:
13474 return NULL;
13475 }
13476
13477
13478 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13479 PyObject *resultobj;
13480 wxDC *arg1 = (wxDC *) 0 ;
13481 bool result;
13482 PyObject * obj0 = 0 ;
13483 char *kwnames[] = {
13484 (char *) "self", NULL
13485 };
13486
13487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13490 {
13491 PyThreadState* __tstate = wxPyBeginAllowThreads();
13492 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13493
13494 wxPyEndAllowThreads(__tstate);
13495 if (PyErr_Occurred()) SWIG_fail;
13496 }
13497 {
13498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13499 }
13500 return resultobj;
13501 fail:
13502 return NULL;
13503 }
13504
13505
13506 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13507 PyObject *resultobj;
13508 wxDC *arg1 = (wxDC *) 0 ;
13509 int result;
13510 PyObject * obj0 = 0 ;
13511 char *kwnames[] = {
13512 (char *) "self", NULL
13513 };
13514
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 result = (int)((wxDC const *)arg1)->GetDepth();
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 resultobj = SWIG_FromInt((int)result);
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxDC *arg1 = (wxDC *) 0 ;
13535 wxSize result;
13536 PyObject * obj0 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = ((wxDC const *)arg1)->GetPPI();
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 {
13552 wxSize * resultptr;
13553 resultptr = new wxSize((wxSize &) result);
13554 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13555 }
13556 return resultobj;
13557 fail:
13558 return NULL;
13559 }
13560
13561
13562 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13563 PyObject *resultobj;
13564 wxDC *arg1 = (wxDC *) 0 ;
13565 bool result;
13566 PyObject * obj0 = 0 ;
13567 char *kwnames[] = {
13568 (char *) "self", NULL
13569 };
13570
13571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 result = (bool)((wxDC const *)arg1)->Ok();
13577
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 {
13582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13583 }
13584 return resultobj;
13585 fail:
13586 return NULL;
13587 }
13588
13589
13590 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13591 PyObject *resultobj;
13592 wxDC *arg1 = (wxDC *) 0 ;
13593 int result;
13594 PyObject * obj0 = 0 ;
13595 char *kwnames[] = {
13596 (char *) "self", NULL
13597 };
13598
13599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13602 {
13603 PyThreadState* __tstate = wxPyBeginAllowThreads();
13604 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13605
13606 wxPyEndAllowThreads(__tstate);
13607 if (PyErr_Occurred()) SWIG_fail;
13608 }
13609 resultobj = SWIG_FromInt((int)result);
13610 return resultobj;
13611 fail:
13612 return NULL;
13613 }
13614
13615
13616 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13617 PyObject *resultobj;
13618 wxDC *arg1 = (wxDC *) 0 ;
13619 wxBrush *result;
13620 PyObject * obj0 = 0 ;
13621 char *kwnames[] = {
13622 (char *) "self", NULL
13623 };
13624
13625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13628 {
13629 PyThreadState* __tstate = wxPyBeginAllowThreads();
13630 {
13631 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13632 result = (wxBrush *) &_result_ref;
13633 }
13634
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 {
13639 wxBrush* resultptr = new wxBrush(*result);
13640 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13641 }
13642 return resultobj;
13643 fail:
13644 return NULL;
13645 }
13646
13647
13648 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13649 PyObject *resultobj;
13650 wxDC *arg1 = (wxDC *) 0 ;
13651 wxBrush *result;
13652 PyObject * obj0 = 0 ;
13653 char *kwnames[] = {
13654 (char *) "self", NULL
13655 };
13656
13657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13660 {
13661 PyThreadState* __tstate = wxPyBeginAllowThreads();
13662 {
13663 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13664 result = (wxBrush *) &_result_ref;
13665 }
13666
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 {
13671 wxBrush* resultptr = new wxBrush(*result);
13672 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13673 }
13674 return resultobj;
13675 fail:
13676 return NULL;
13677 }
13678
13679
13680 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13681 PyObject *resultobj;
13682 wxDC *arg1 = (wxDC *) 0 ;
13683 wxFont *result;
13684 PyObject * obj0 = 0 ;
13685 char *kwnames[] = {
13686 (char *) "self", NULL
13687 };
13688
13689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 {
13695 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13696 result = (wxFont *) &_result_ref;
13697 }
13698
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 {
13703 wxFont* resultptr = new wxFont(*result);
13704 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13705 }
13706 return resultobj;
13707 fail:
13708 return NULL;
13709 }
13710
13711
13712 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13713 PyObject *resultobj;
13714 wxDC *arg1 = (wxDC *) 0 ;
13715 wxPen *result;
13716 PyObject * obj0 = 0 ;
13717 char *kwnames[] = {
13718 (char *) "self", NULL
13719 };
13720
13721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 {
13727 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13728 result = (wxPen *) &_result_ref;
13729 }
13730
13731 wxPyEndAllowThreads(__tstate);
13732 if (PyErr_Occurred()) SWIG_fail;
13733 }
13734 {
13735 wxPen* resultptr = new wxPen(*result);
13736 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13737 }
13738 return resultobj;
13739 fail:
13740 return NULL;
13741 }
13742
13743
13744 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13745 PyObject *resultobj;
13746 wxDC *arg1 = (wxDC *) 0 ;
13747 wxColour *result;
13748 PyObject * obj0 = 0 ;
13749 char *kwnames[] = {
13750 (char *) "self", NULL
13751 };
13752
13753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13756 {
13757 PyThreadState* __tstate = wxPyBeginAllowThreads();
13758 {
13759 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13760 result = (wxColour *) &_result_ref;
13761 }
13762
13763 wxPyEndAllowThreads(__tstate);
13764 if (PyErr_Occurred()) SWIG_fail;
13765 }
13766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13767 return resultobj;
13768 fail:
13769 return NULL;
13770 }
13771
13772
13773 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj;
13775 wxDC *arg1 = (wxDC *) 0 ;
13776 wxColour *result;
13777 PyObject * obj0 = 0 ;
13778 char *kwnames[] = {
13779 (char *) "self", NULL
13780 };
13781
13782 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13783 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13784 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13785 {
13786 PyThreadState* __tstate = wxPyBeginAllowThreads();
13787 {
13788 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13789 result = (wxColour *) &_result_ref;
13790 }
13791
13792 wxPyEndAllowThreads(__tstate);
13793 if (PyErr_Occurred()) SWIG_fail;
13794 }
13795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13796 return resultobj;
13797 fail:
13798 return NULL;
13799 }
13800
13801
13802 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13803 PyObject *resultobj;
13804 wxDC *arg1 = (wxDC *) 0 ;
13805 wxColour *arg2 = 0 ;
13806 wxColour temp2 ;
13807 PyObject * obj0 = 0 ;
13808 PyObject * obj1 = 0 ;
13809 char *kwnames[] = {
13810 (char *) "self",(char *) "colour", NULL
13811 };
13812
13813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13816 {
13817 arg2 = &temp2;
13818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13819 }
13820 {
13821 PyThreadState* __tstate = wxPyBeginAllowThreads();
13822 (arg1)->SetTextForeground((wxColour const &)*arg2);
13823
13824 wxPyEndAllowThreads(__tstate);
13825 if (PyErr_Occurred()) SWIG_fail;
13826 }
13827 Py_INCREF(Py_None); resultobj = Py_None;
13828 return resultobj;
13829 fail:
13830 return NULL;
13831 }
13832
13833
13834 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13835 PyObject *resultobj;
13836 wxDC *arg1 = (wxDC *) 0 ;
13837 wxColour *arg2 = 0 ;
13838 wxColour temp2 ;
13839 PyObject * obj0 = 0 ;
13840 PyObject * obj1 = 0 ;
13841 char *kwnames[] = {
13842 (char *) "self",(char *) "colour", NULL
13843 };
13844
13845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13848 {
13849 arg2 = &temp2;
13850 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13851 }
13852 {
13853 PyThreadState* __tstate = wxPyBeginAllowThreads();
13854 (arg1)->SetTextBackground((wxColour const &)*arg2);
13855
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 Py_INCREF(Py_None); resultobj = Py_None;
13860 return resultobj;
13861 fail:
13862 return NULL;
13863 }
13864
13865
13866 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13867 PyObject *resultobj;
13868 wxDC *arg1 = (wxDC *) 0 ;
13869 int result;
13870 PyObject * obj0 = 0 ;
13871 char *kwnames[] = {
13872 (char *) "self", NULL
13873 };
13874
13875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = (int)((wxDC const *)arg1)->GetMapMode();
13881
13882 wxPyEndAllowThreads(__tstate);
13883 if (PyErr_Occurred()) SWIG_fail;
13884 }
13885 resultobj = SWIG_FromInt((int)result);
13886 return resultobj;
13887 fail:
13888 return NULL;
13889 }
13890
13891
13892 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13893 PyObject *resultobj;
13894 wxDC *arg1 = (wxDC *) 0 ;
13895 int arg2 ;
13896 PyObject * obj0 = 0 ;
13897 PyObject * obj1 = 0 ;
13898 char *kwnames[] = {
13899 (char *) "self",(char *) "mode", NULL
13900 };
13901
13902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13905 arg2 = (int) SWIG_AsInt(obj1);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 (arg1)->SetMapMode(arg2);
13910
13911 wxPyEndAllowThreads(__tstate);
13912 if (PyErr_Occurred()) SWIG_fail;
13913 }
13914 Py_INCREF(Py_None); resultobj = Py_None;
13915 return resultobj;
13916 fail:
13917 return NULL;
13918 }
13919
13920
13921 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj;
13923 wxDC *arg1 = (wxDC *) 0 ;
13924 double *arg2 = (double *) 0 ;
13925 double *arg3 = (double *) 0 ;
13926 double temp2 ;
13927 double temp3 ;
13928 PyObject * obj0 = 0 ;
13929 char *kwnames[] = {
13930 (char *) "self", NULL
13931 };
13932
13933 arg2 = &temp2;
13934 arg3 = &temp3;
13935 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13936 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13937 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13938 {
13939 PyThreadState* __tstate = wxPyBeginAllowThreads();
13940 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13941
13942 wxPyEndAllowThreads(__tstate);
13943 if (PyErr_Occurred()) SWIG_fail;
13944 }
13945 Py_INCREF(Py_None); resultobj = Py_None;
13946 {
13947 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13948 resultobj = t_output_helper(resultobj,o);
13949 }
13950 {
13951 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13952 resultobj = t_output_helper(resultobj,o);
13953 }
13954 return resultobj;
13955 fail:
13956 return NULL;
13957 }
13958
13959
13960 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13961 PyObject *resultobj;
13962 wxDC *arg1 = (wxDC *) 0 ;
13963 double arg2 ;
13964 double arg3 ;
13965 PyObject * obj0 = 0 ;
13966 PyObject * obj1 = 0 ;
13967 PyObject * obj2 = 0 ;
13968 char *kwnames[] = {
13969 (char *) "self",(char *) "x",(char *) "y", NULL
13970 };
13971
13972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13975 arg2 = (double) SWIG_AsDouble(obj1);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 arg3 = (double) SWIG_AsDouble(obj2);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 {
13980 PyThreadState* __tstate = wxPyBeginAllowThreads();
13981 (arg1)->SetUserScale(arg2,arg3);
13982
13983 wxPyEndAllowThreads(__tstate);
13984 if (PyErr_Occurred()) SWIG_fail;
13985 }
13986 Py_INCREF(Py_None); resultobj = Py_None;
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13994 PyObject *resultobj;
13995 wxDC *arg1 = (wxDC *) 0 ;
13996 double *arg2 = (double *) 0 ;
13997 double *arg3 = (double *) 0 ;
13998 double temp2 ;
13999 double temp3 ;
14000 PyObject * obj0 = 0 ;
14001 char *kwnames[] = {
14002 (char *) "self", NULL
14003 };
14004
14005 arg2 = &temp2;
14006 arg3 = &temp3;
14007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14010 {
14011 PyThreadState* __tstate = wxPyBeginAllowThreads();
14012 (arg1)->GetLogicalScale(arg2,arg3);
14013
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 Py_INCREF(Py_None); resultobj = Py_None;
14018 {
14019 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14020 resultobj = t_output_helper(resultobj,o);
14021 }
14022 {
14023 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14024 resultobj = t_output_helper(resultobj,o);
14025 }
14026 return resultobj;
14027 fail:
14028 return NULL;
14029 }
14030
14031
14032 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14033 PyObject *resultobj;
14034 wxDC *arg1 = (wxDC *) 0 ;
14035 double arg2 ;
14036 double arg3 ;
14037 PyObject * obj0 = 0 ;
14038 PyObject * obj1 = 0 ;
14039 PyObject * obj2 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self",(char *) "x",(char *) "y", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14047 arg2 = (double) SWIG_AsDouble(obj1);
14048 if (PyErr_Occurred()) SWIG_fail;
14049 arg3 = (double) SWIG_AsDouble(obj2);
14050 if (PyErr_Occurred()) SWIG_fail;
14051 {
14052 PyThreadState* __tstate = wxPyBeginAllowThreads();
14053 (arg1)->SetLogicalScale(arg2,arg3);
14054
14055 wxPyEndAllowThreads(__tstate);
14056 if (PyErr_Occurred()) SWIG_fail;
14057 }
14058 Py_INCREF(Py_None); resultobj = Py_None;
14059 return resultobj;
14060 fail:
14061 return NULL;
14062 }
14063
14064
14065 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14066 PyObject *resultobj;
14067 wxDC *arg1 = (wxDC *) 0 ;
14068 wxPoint result;
14069 PyObject * obj0 = 0 ;
14070 char *kwnames[] = {
14071 (char *) "self", NULL
14072 };
14073
14074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14077 {
14078 PyThreadState* __tstate = wxPyBeginAllowThreads();
14079 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14080
14081 wxPyEndAllowThreads(__tstate);
14082 if (PyErr_Occurred()) SWIG_fail;
14083 }
14084 {
14085 wxPoint * resultptr;
14086 resultptr = new wxPoint((wxPoint &) result);
14087 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14088 }
14089 return resultobj;
14090 fail:
14091 return NULL;
14092 }
14093
14094
14095 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj;
14097 wxDC *arg1 = (wxDC *) 0 ;
14098 int *arg2 = (int *) 0 ;
14099 int *arg3 = (int *) 0 ;
14100 int temp2 ;
14101 int temp3 ;
14102 PyObject * obj0 = 0 ;
14103 char *kwnames[] = {
14104 (char *) "self", NULL
14105 };
14106
14107 arg2 = &temp2;
14108 arg3 = &temp3;
14109 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14110 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14111 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14112 {
14113 PyThreadState* __tstate = wxPyBeginAllowThreads();
14114 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14115
14116 wxPyEndAllowThreads(__tstate);
14117 if (PyErr_Occurred()) SWIG_fail;
14118 }
14119 Py_INCREF(Py_None); resultobj = Py_None;
14120 {
14121 PyObject *o = PyInt_FromLong((long) (*arg2));
14122 resultobj = t_output_helper(resultobj,o);
14123 }
14124 {
14125 PyObject *o = PyInt_FromLong((long) (*arg3));
14126 resultobj = t_output_helper(resultobj,o);
14127 }
14128 return resultobj;
14129 fail:
14130 return NULL;
14131 }
14132
14133
14134 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14135 PyObject *resultobj;
14136 wxDC *arg1 = (wxDC *) 0 ;
14137 int arg2 ;
14138 int arg3 ;
14139 PyObject * obj0 = 0 ;
14140 PyObject * obj1 = 0 ;
14141 PyObject * obj2 = 0 ;
14142 char *kwnames[] = {
14143 (char *) "self",(char *) "x",(char *) "y", NULL
14144 };
14145
14146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14149 arg2 = (int) SWIG_AsInt(obj1);
14150 if (PyErr_Occurred()) SWIG_fail;
14151 arg3 = (int) SWIG_AsInt(obj2);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 {
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 (arg1)->SetLogicalOrigin(arg2,arg3);
14156
14157 wxPyEndAllowThreads(__tstate);
14158 if (PyErr_Occurred()) SWIG_fail;
14159 }
14160 Py_INCREF(Py_None); resultobj = Py_None;
14161 return resultobj;
14162 fail:
14163 return NULL;
14164 }
14165
14166
14167 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14168 PyObject *resultobj;
14169 wxDC *arg1 = (wxDC *) 0 ;
14170 wxPoint *arg2 = 0 ;
14171 wxPoint temp2 ;
14172 PyObject * obj0 = 0 ;
14173 PyObject * obj1 = 0 ;
14174 char *kwnames[] = {
14175 (char *) "self",(char *) "point", NULL
14176 };
14177
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14181 {
14182 arg2 = &temp2;
14183 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14184 }
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14188
14189 wxPyEndAllowThreads(__tstate);
14190 if (PyErr_Occurred()) SWIG_fail;
14191 }
14192 Py_INCREF(Py_None); resultobj = Py_None;
14193 return resultobj;
14194 fail:
14195 return NULL;
14196 }
14197
14198
14199 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14200 PyObject *resultobj;
14201 wxDC *arg1 = (wxDC *) 0 ;
14202 wxPoint result;
14203 PyObject * obj0 = 0 ;
14204 char *kwnames[] = {
14205 (char *) "self", NULL
14206 };
14207
14208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14211 {
14212 PyThreadState* __tstate = wxPyBeginAllowThreads();
14213 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14214
14215 wxPyEndAllowThreads(__tstate);
14216 if (PyErr_Occurred()) SWIG_fail;
14217 }
14218 {
14219 wxPoint * resultptr;
14220 resultptr = new wxPoint((wxPoint &) result);
14221 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14222 }
14223 return resultobj;
14224 fail:
14225 return NULL;
14226 }
14227
14228
14229 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14230 PyObject *resultobj;
14231 wxDC *arg1 = (wxDC *) 0 ;
14232 int *arg2 = (int *) 0 ;
14233 int *arg3 = (int *) 0 ;
14234 int temp2 ;
14235 int temp3 ;
14236 PyObject * obj0 = 0 ;
14237 char *kwnames[] = {
14238 (char *) "self", NULL
14239 };
14240
14241 arg2 = &temp2;
14242 arg3 = &temp3;
14243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14246 {
14247 PyThreadState* __tstate = wxPyBeginAllowThreads();
14248 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14249
14250 wxPyEndAllowThreads(__tstate);
14251 if (PyErr_Occurred()) SWIG_fail;
14252 }
14253 Py_INCREF(Py_None); resultobj = Py_None;
14254 {
14255 PyObject *o = PyInt_FromLong((long) (*arg2));
14256 resultobj = t_output_helper(resultobj,o);
14257 }
14258 {
14259 PyObject *o = PyInt_FromLong((long) (*arg3));
14260 resultobj = t_output_helper(resultobj,o);
14261 }
14262 return resultobj;
14263 fail:
14264 return NULL;
14265 }
14266
14267
14268 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14269 PyObject *resultobj;
14270 wxDC *arg1 = (wxDC *) 0 ;
14271 int arg2 ;
14272 int arg3 ;
14273 PyObject * obj0 = 0 ;
14274 PyObject * obj1 = 0 ;
14275 PyObject * obj2 = 0 ;
14276 char *kwnames[] = {
14277 (char *) "self",(char *) "x",(char *) "y", NULL
14278 };
14279
14280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14283 arg2 = (int) SWIG_AsInt(obj1);
14284 if (PyErr_Occurred()) SWIG_fail;
14285 arg3 = (int) SWIG_AsInt(obj2);
14286 if (PyErr_Occurred()) SWIG_fail;
14287 {
14288 PyThreadState* __tstate = wxPyBeginAllowThreads();
14289 (arg1)->SetDeviceOrigin(arg2,arg3);
14290
14291 wxPyEndAllowThreads(__tstate);
14292 if (PyErr_Occurred()) SWIG_fail;
14293 }
14294 Py_INCREF(Py_None); resultobj = Py_None;
14295 return resultobj;
14296 fail:
14297 return NULL;
14298 }
14299
14300
14301 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14302 PyObject *resultobj;
14303 wxDC *arg1 = (wxDC *) 0 ;
14304 wxPoint *arg2 = 0 ;
14305 wxPoint temp2 ;
14306 PyObject * obj0 = 0 ;
14307 PyObject * obj1 = 0 ;
14308 char *kwnames[] = {
14309 (char *) "self",(char *) "point", NULL
14310 };
14311
14312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14315 {
14316 arg2 = &temp2;
14317 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14318 }
14319 {
14320 PyThreadState* __tstate = wxPyBeginAllowThreads();
14321 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14322
14323 wxPyEndAllowThreads(__tstate);
14324 if (PyErr_Occurred()) SWIG_fail;
14325 }
14326 Py_INCREF(Py_None); resultobj = Py_None;
14327 return resultobj;
14328 fail:
14329 return NULL;
14330 }
14331
14332
14333 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14334 PyObject *resultobj;
14335 wxDC *arg1 = (wxDC *) 0 ;
14336 bool arg2 ;
14337 bool arg3 ;
14338 PyObject * obj0 = 0 ;
14339 PyObject * obj1 = 0 ;
14340 PyObject * obj2 = 0 ;
14341 char *kwnames[] = {
14342 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14343 };
14344
14345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14348 arg2 = (bool) SWIG_AsBool(obj1);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 arg3 = (bool) SWIG_AsBool(obj2);
14351 if (PyErr_Occurred()) SWIG_fail;
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 (arg1)->SetAxisOrientation(arg2,arg3);
14355
14356 wxPyEndAllowThreads(__tstate);
14357 if (PyErr_Occurred()) SWIG_fail;
14358 }
14359 Py_INCREF(Py_None); resultobj = Py_None;
14360 return resultobj;
14361 fail:
14362 return NULL;
14363 }
14364
14365
14366 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14367 PyObject *resultobj;
14368 wxDC *arg1 = (wxDC *) 0 ;
14369 int result;
14370 PyObject * obj0 = 0 ;
14371 char *kwnames[] = {
14372 (char *) "self", NULL
14373 };
14374
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14378 {
14379 PyThreadState* __tstate = wxPyBeginAllowThreads();
14380 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14381
14382 wxPyEndAllowThreads(__tstate);
14383 if (PyErr_Occurred()) SWIG_fail;
14384 }
14385 resultobj = SWIG_FromInt((int)result);
14386 return resultobj;
14387 fail:
14388 return NULL;
14389 }
14390
14391
14392 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14393 PyObject *resultobj;
14394 wxDC *arg1 = (wxDC *) 0 ;
14395 int arg2 ;
14396 PyObject * obj0 = 0 ;
14397 PyObject * obj1 = 0 ;
14398 char *kwnames[] = {
14399 (char *) "self",(char *) "function", NULL
14400 };
14401
14402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14405 arg2 = (int) SWIG_AsInt(obj1);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 {
14408 PyThreadState* __tstate = wxPyBeginAllowThreads();
14409 (arg1)->SetLogicalFunction(arg2);
14410
14411 wxPyEndAllowThreads(__tstate);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 }
14414 Py_INCREF(Py_None); resultobj = Py_None;
14415 return resultobj;
14416 fail:
14417 return NULL;
14418 }
14419
14420
14421 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14422 PyObject *resultobj;
14423 wxDC *arg1 = (wxDC *) 0 ;
14424 bool arg2 ;
14425 PyObject * obj0 = 0 ;
14426 PyObject * obj1 = 0 ;
14427 char *kwnames[] = {
14428 (char *) "self",(char *) "opt", NULL
14429 };
14430
14431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14434 arg2 = (bool) SWIG_AsBool(obj1);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 {
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 (arg1)->SetOptimization(arg2);
14439
14440 wxPyEndAllowThreads(__tstate);
14441 if (PyErr_Occurred()) SWIG_fail;
14442 }
14443 Py_INCREF(Py_None); resultobj = Py_None;
14444 return resultobj;
14445 fail:
14446 return NULL;
14447 }
14448
14449
14450 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14451 PyObject *resultobj;
14452 wxDC *arg1 = (wxDC *) 0 ;
14453 bool result;
14454 PyObject * obj0 = 0 ;
14455 char *kwnames[] = {
14456 (char *) "self", NULL
14457 };
14458
14459 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14460 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14461 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14462 {
14463 PyThreadState* __tstate = wxPyBeginAllowThreads();
14464 result = (bool)(arg1)->GetOptimization();
14465
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 {
14470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14471 }
14472 return resultobj;
14473 fail:
14474 return NULL;
14475 }
14476
14477
14478 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14479 PyObject *resultobj;
14480 wxDC *arg1 = (wxDC *) 0 ;
14481 int arg2 ;
14482 int arg3 ;
14483 PyObject * obj0 = 0 ;
14484 PyObject * obj1 = 0 ;
14485 PyObject * obj2 = 0 ;
14486 char *kwnames[] = {
14487 (char *) "self",(char *) "x",(char *) "y", NULL
14488 };
14489
14490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14493 arg2 = (int) SWIG_AsInt(obj1);
14494 if (PyErr_Occurred()) SWIG_fail;
14495 arg3 = (int) SWIG_AsInt(obj2);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 {
14498 PyThreadState* __tstate = wxPyBeginAllowThreads();
14499 (arg1)->CalcBoundingBox(arg2,arg3);
14500
14501 wxPyEndAllowThreads(__tstate);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 }
14504 Py_INCREF(Py_None); resultobj = Py_None;
14505 return resultobj;
14506 fail:
14507 return NULL;
14508 }
14509
14510
14511 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14512 PyObject *resultobj;
14513 wxDC *arg1 = (wxDC *) 0 ;
14514 wxPoint *arg2 = 0 ;
14515 wxPoint temp2 ;
14516 PyObject * obj0 = 0 ;
14517 PyObject * obj1 = 0 ;
14518 char *kwnames[] = {
14519 (char *) "self",(char *) "point", NULL
14520 };
14521
14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14525 {
14526 arg2 = &temp2;
14527 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14528 }
14529 {
14530 PyThreadState* __tstate = wxPyBeginAllowThreads();
14531 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14532
14533 wxPyEndAllowThreads(__tstate);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 }
14536 Py_INCREF(Py_None); resultobj = Py_None;
14537 return resultobj;
14538 fail:
14539 return NULL;
14540 }
14541
14542
14543 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14544 PyObject *resultobj;
14545 wxDC *arg1 = (wxDC *) 0 ;
14546 PyObject * obj0 = 0 ;
14547 char *kwnames[] = {
14548 (char *) "self", NULL
14549 };
14550
14551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14554 {
14555 PyThreadState* __tstate = wxPyBeginAllowThreads();
14556 (arg1)->ResetBoundingBox();
14557
14558 wxPyEndAllowThreads(__tstate);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 }
14561 Py_INCREF(Py_None); resultobj = Py_None;
14562 return resultobj;
14563 fail:
14564 return NULL;
14565 }
14566
14567
14568 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14569 PyObject *resultobj;
14570 wxDC *arg1 = (wxDC *) 0 ;
14571 int result;
14572 PyObject * obj0 = 0 ;
14573 char *kwnames[] = {
14574 (char *) "self", NULL
14575 };
14576
14577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14580 {
14581 PyThreadState* __tstate = wxPyBeginAllowThreads();
14582 result = (int)((wxDC const *)arg1)->MinX();
14583
14584 wxPyEndAllowThreads(__tstate);
14585 if (PyErr_Occurred()) SWIG_fail;
14586 }
14587 resultobj = SWIG_FromInt((int)result);
14588 return resultobj;
14589 fail:
14590 return NULL;
14591 }
14592
14593
14594 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14595 PyObject *resultobj;
14596 wxDC *arg1 = (wxDC *) 0 ;
14597 int result;
14598 PyObject * obj0 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self", NULL
14601 };
14602
14603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14606 {
14607 PyThreadState* __tstate = wxPyBeginAllowThreads();
14608 result = (int)((wxDC const *)arg1)->MaxX();
14609
14610 wxPyEndAllowThreads(__tstate);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 resultobj = SWIG_FromInt((int)result);
14614 return resultobj;
14615 fail:
14616 return NULL;
14617 }
14618
14619
14620 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14621 PyObject *resultobj;
14622 wxDC *arg1 = (wxDC *) 0 ;
14623 int result;
14624 PyObject * obj0 = 0 ;
14625 char *kwnames[] = {
14626 (char *) "self", NULL
14627 };
14628
14629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = (int)((wxDC const *)arg1)->MinY();
14635
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 resultobj = SWIG_FromInt((int)result);
14640 return resultobj;
14641 fail:
14642 return NULL;
14643 }
14644
14645
14646 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14647 PyObject *resultobj;
14648 wxDC *arg1 = (wxDC *) 0 ;
14649 int result;
14650 PyObject * obj0 = 0 ;
14651 char *kwnames[] = {
14652 (char *) "self", NULL
14653 };
14654
14655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 result = (int)((wxDC const *)arg1)->MaxY();
14661
14662 wxPyEndAllowThreads(__tstate);
14663 if (PyErr_Occurred()) SWIG_fail;
14664 }
14665 resultobj = SWIG_FromInt((int)result);
14666 return resultobj;
14667 fail:
14668 return NULL;
14669 }
14670
14671
14672 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14673 PyObject *resultobj;
14674 wxDC *arg1 = (wxDC *) 0 ;
14675 int *arg2 = (int *) 0 ;
14676 int *arg3 = (int *) 0 ;
14677 int *arg4 = (int *) 0 ;
14678 int *arg5 = (int *) 0 ;
14679 int temp2 ;
14680 int temp3 ;
14681 int temp4 ;
14682 int temp5 ;
14683 PyObject * obj0 = 0 ;
14684 char *kwnames[] = {
14685 (char *) "self", NULL
14686 };
14687
14688 arg2 = &temp2;
14689 arg3 = &temp3;
14690 arg4 = &temp4;
14691 arg5 = &temp5;
14692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14695 {
14696 PyThreadState* __tstate = wxPyBeginAllowThreads();
14697 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14698
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 Py_INCREF(Py_None); resultobj = Py_None;
14703 {
14704 PyObject *o = PyInt_FromLong((long) (*arg2));
14705 resultobj = t_output_helper(resultobj,o);
14706 }
14707 {
14708 PyObject *o = PyInt_FromLong((long) (*arg3));
14709 resultobj = t_output_helper(resultobj,o);
14710 }
14711 {
14712 PyObject *o = PyInt_FromLong((long) (*arg4));
14713 resultobj = t_output_helper(resultobj,o);
14714 }
14715 {
14716 PyObject *o = PyInt_FromLong((long) (*arg5));
14717 resultobj = t_output_helper(resultobj,o);
14718 }
14719 return resultobj;
14720 fail:
14721 return NULL;
14722 }
14723
14724
14725 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14726 PyObject *resultobj;
14727 wxDC *arg1 = (wxDC *) 0 ;
14728 PyObject *arg2 = (PyObject *) 0 ;
14729 PyObject *arg3 = (PyObject *) 0 ;
14730 PyObject *arg4 = (PyObject *) 0 ;
14731 PyObject *result;
14732 PyObject * obj0 = 0 ;
14733 PyObject * obj1 = 0 ;
14734 PyObject * obj2 = 0 ;
14735 PyObject * obj3 = 0 ;
14736 char *kwnames[] = {
14737 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14738 };
14739
14740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14743 arg2 = obj1;
14744 arg3 = obj2;
14745 arg4 = obj3;
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14749
14750 wxPyEndAllowThreads(__tstate);
14751 if (PyErr_Occurred()) SWIG_fail;
14752 }
14753 resultobj = result;
14754 return resultobj;
14755 fail:
14756 return NULL;
14757 }
14758
14759
14760 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14761 PyObject *resultobj;
14762 wxDC *arg1 = (wxDC *) 0 ;
14763 PyObject *arg2 = (PyObject *) 0 ;
14764 PyObject *arg3 = (PyObject *) 0 ;
14765 PyObject *arg4 = (PyObject *) 0 ;
14766 PyObject *result;
14767 PyObject * obj0 = 0 ;
14768 PyObject * obj1 = 0 ;
14769 PyObject * obj2 = 0 ;
14770 PyObject * obj3 = 0 ;
14771 char *kwnames[] = {
14772 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14773 };
14774
14775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14776 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14777 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14778 arg2 = obj1;
14779 arg3 = obj2;
14780 arg4 = obj3;
14781 {
14782 PyThreadState* __tstate = wxPyBeginAllowThreads();
14783 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14784
14785 wxPyEndAllowThreads(__tstate);
14786 if (PyErr_Occurred()) SWIG_fail;
14787 }
14788 resultobj = result;
14789 return resultobj;
14790 fail:
14791 return NULL;
14792 }
14793
14794
14795 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj;
14797 wxDC *arg1 = (wxDC *) 0 ;
14798 PyObject *arg2 = (PyObject *) 0 ;
14799 PyObject *arg3 = (PyObject *) 0 ;
14800 PyObject *arg4 = (PyObject *) 0 ;
14801 PyObject *result;
14802 PyObject * obj0 = 0 ;
14803 PyObject * obj1 = 0 ;
14804 PyObject * obj2 = 0 ;
14805 PyObject * obj3 = 0 ;
14806 char *kwnames[] = {
14807 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14808 };
14809
14810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14813 arg2 = obj1;
14814 arg3 = obj2;
14815 arg4 = obj3;
14816 {
14817 PyThreadState* __tstate = wxPyBeginAllowThreads();
14818 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14819
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = result;
14824 return resultobj;
14825 fail:
14826 return NULL;
14827 }
14828
14829
14830 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj;
14832 wxDC *arg1 = (wxDC *) 0 ;
14833 PyObject *arg2 = (PyObject *) 0 ;
14834 PyObject *arg3 = (PyObject *) 0 ;
14835 PyObject *arg4 = (PyObject *) 0 ;
14836 PyObject *result;
14837 PyObject * obj0 = 0 ;
14838 PyObject * obj1 = 0 ;
14839 PyObject * obj2 = 0 ;
14840 PyObject * obj3 = 0 ;
14841 char *kwnames[] = {
14842 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14843 };
14844
14845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14848 arg2 = obj1;
14849 arg3 = obj2;
14850 arg4 = obj3;
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14854
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = result;
14859 return resultobj;
14860 fail:
14861 return NULL;
14862 }
14863
14864
14865 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj;
14867 wxDC *arg1 = (wxDC *) 0 ;
14868 PyObject *arg2 = (PyObject *) 0 ;
14869 PyObject *arg3 = (PyObject *) 0 ;
14870 PyObject *arg4 = (PyObject *) 0 ;
14871 PyObject *result;
14872 PyObject * obj0 = 0 ;
14873 PyObject * obj1 = 0 ;
14874 PyObject * obj2 = 0 ;
14875 PyObject * obj3 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14883 arg2 = obj1;
14884 arg3 = obj2;
14885 arg4 = obj3;
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14889
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = result;
14894 return resultobj;
14895 fail:
14896 return NULL;
14897 }
14898
14899
14900 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj;
14902 wxDC *arg1 = (wxDC *) 0 ;
14903 PyObject *arg2 = (PyObject *) 0 ;
14904 PyObject *arg3 = (PyObject *) 0 ;
14905 PyObject *arg4 = (PyObject *) 0 ;
14906 PyObject *arg5 = (PyObject *) 0 ;
14907 PyObject *result;
14908 PyObject * obj0 = 0 ;
14909 PyObject * obj1 = 0 ;
14910 PyObject * obj2 = 0 ;
14911 PyObject * obj3 = 0 ;
14912 PyObject * obj4 = 0 ;
14913 char *kwnames[] = {
14914 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14915 };
14916
14917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14920 arg2 = obj1;
14921 arg3 = obj2;
14922 arg4 = obj3;
14923 arg5 = obj4;
14924 {
14925 PyThreadState* __tstate = wxPyBeginAllowThreads();
14926 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14927
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = result;
14932 return resultobj;
14933 fail:
14934 return NULL;
14935 }
14936
14937
14938 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14939 PyObject *obj;
14940 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14941 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14942 Py_INCREF(obj);
14943 return Py_BuildValue((char *)"");
14944 }
14945 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14946 PyObject *resultobj;
14947 wxMemoryDC *result;
14948 char *kwnames[] = {
14949 NULL
14950 };
14951
14952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14953 {
14954 if (!wxPyCheckForApp()) SWIG_fail;
14955 PyThreadState* __tstate = wxPyBeginAllowThreads();
14956 result = (wxMemoryDC *)new wxMemoryDC();
14957
14958 wxPyEndAllowThreads(__tstate);
14959 if (PyErr_Occurred()) SWIG_fail;
14960 }
14961 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14969 PyObject *resultobj;
14970 wxDC *arg1 = (wxDC *) 0 ;
14971 wxMemoryDC *result;
14972 PyObject * obj0 = 0 ;
14973 char *kwnames[] = {
14974 (char *) "oldDC", NULL
14975 };
14976
14977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14980 {
14981 if (!wxPyCheckForApp()) SWIG_fail;
14982 PyThreadState* __tstate = wxPyBeginAllowThreads();
14983 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14984
14985 wxPyEndAllowThreads(__tstate);
14986 if (PyErr_Occurred()) SWIG_fail;
14987 }
14988 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14989 return resultobj;
14990 fail:
14991 return NULL;
14992 }
14993
14994
14995 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj;
14997 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14998 wxBitmap *arg2 = 0 ;
14999 PyObject * obj0 = 0 ;
15000 PyObject * obj1 = 0 ;
15001 char *kwnames[] = {
15002 (char *) "self",(char *) "bitmap", NULL
15003 };
15004
15005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15008 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15009 SWIG_POINTER_EXCEPTION | 0)) == -1)
15010 SWIG_fail;
15011 if (arg2 == NULL) {
15012 PyErr_SetString(PyExc_TypeError,"null reference");
15013 SWIG_fail;
15014 }
15015 {
15016 PyThreadState* __tstate = wxPyBeginAllowThreads();
15017 (arg1)->SelectObject((wxBitmap const &)*arg2);
15018
15019 wxPyEndAllowThreads(__tstate);
15020 if (PyErr_Occurred()) SWIG_fail;
15021 }
15022 Py_INCREF(Py_None); resultobj = Py_None;
15023 return resultobj;
15024 fail:
15025 return NULL;
15026 }
15027
15028
15029 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15030 PyObject *obj;
15031 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15032 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15033 Py_INCREF(obj);
15034 return Py_BuildValue((char *)"");
15035 }
15036 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15037 PyObject *resultobj;
15038 wxDC *arg1 = (wxDC *) 0 ;
15039 wxBitmap *arg2 = 0 ;
15040 wxBufferedDC *result;
15041 PyObject * obj0 = 0 ;
15042 PyObject * obj1 = 0 ;
15043
15044 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15048 SWIG_POINTER_EXCEPTION | 0)) == -1)
15049 SWIG_fail;
15050 if (arg2 == NULL) {
15051 PyErr_SetString(PyExc_TypeError,"null reference");
15052 SWIG_fail;
15053 }
15054 {
15055 if (!wxPyCheckForApp()) SWIG_fail;
15056 PyThreadState* __tstate = wxPyBeginAllowThreads();
15057 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15058
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15063 return resultobj;
15064 fail:
15065 return NULL;
15066 }
15067
15068
15069 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15070 PyObject *resultobj;
15071 wxDC *arg1 = (wxDC *) 0 ;
15072 wxSize *arg2 = 0 ;
15073 wxBufferedDC *result;
15074 wxSize temp2 ;
15075 PyObject * obj0 = 0 ;
15076 PyObject * obj1 = 0 ;
15077
15078 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15081 {
15082 arg2 = &temp2;
15083 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15084 }
15085 {
15086 if (!wxPyCheckForApp()) SWIG_fail;
15087 PyThreadState* __tstate = wxPyBeginAllowThreads();
15088 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15089
15090 wxPyEndAllowThreads(__tstate);
15091 if (PyErr_Occurred()) SWIG_fail;
15092 }
15093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15094 return resultobj;
15095 fail:
15096 return NULL;
15097 }
15098
15099
15100 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15101 int argc;
15102 PyObject *argv[3];
15103 int ii;
15104
15105 argc = PyObject_Length(args);
15106 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15107 argv[ii] = PyTuple_GetItem(args,ii);
15108 }
15109 if (argc == 2) {
15110 int _v;
15111 {
15112 void *ptr;
15113 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15114 _v = 0;
15115 PyErr_Clear();
15116 } else {
15117 _v = 1;
15118 }
15119 }
15120 if (_v) {
15121 {
15122 void *ptr;
15123 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15124 _v = 0;
15125 PyErr_Clear();
15126 } else {
15127 _v = 1;
15128 }
15129 }
15130 if (_v) {
15131 return _wrap_new_BufferedDC__SWIG_0(self,args);
15132 }
15133 }
15134 }
15135 if (argc == 2) {
15136 int _v;
15137 {
15138 void *ptr;
15139 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15140 _v = 0;
15141 PyErr_Clear();
15142 } else {
15143 _v = 1;
15144 }
15145 }
15146 if (_v) {
15147 {
15148 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15149 }
15150 if (_v) {
15151 return _wrap_new_BufferedDC__SWIG_1(self,args);
15152 }
15153 }
15154 }
15155
15156 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15157 return NULL;
15158 }
15159
15160
15161 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15162 PyObject *resultobj;
15163 wxDC *arg1 = (wxDC *) 0 ;
15164 wxSize *arg2 = 0 ;
15165 wxBufferedDC *result;
15166 wxSize temp2 ;
15167 PyObject * obj0 = 0 ;
15168 PyObject * obj1 = 0 ;
15169
15170 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15173 {
15174 arg2 = &temp2;
15175 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15176 }
15177 {
15178 if (!wxPyCheckForApp()) SWIG_fail;
15179 PyThreadState* __tstate = wxPyBeginAllowThreads();
15180 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15181
15182 wxPyEndAllowThreads(__tstate);
15183 if (PyErr_Occurred()) SWIG_fail;
15184 }
15185 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15186 return resultobj;
15187 fail:
15188 return NULL;
15189 }
15190
15191
15192 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15193 PyObject *resultobj;
15194 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15195 PyObject * obj0 = 0 ;
15196 char *kwnames[] = {
15197 (char *) "self", NULL
15198 };
15199
15200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 delete arg1;
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 Py_INCREF(Py_None); resultobj = Py_None;
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15220 PyObject * obj0 = 0 ;
15221 char *kwnames[] = {
15222 (char *) "self", NULL
15223 };
15224
15225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 (arg1)->UnMask();
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 Py_INCREF(Py_None); resultobj = Py_None;
15236 return resultobj;
15237 fail:
15238 return NULL;
15239 }
15240
15241
15242 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15243 PyObject *obj;
15244 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15245 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15246 Py_INCREF(obj);
15247 return Py_BuildValue((char *)"");
15248 }
15249 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15250 PyObject *resultobj;
15251 wxWindow *arg1 = (wxWindow *) 0 ;
15252 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15253 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15254 wxBufferedPaintDC *result;
15255 PyObject * obj0 = 0 ;
15256 PyObject * obj1 = 0 ;
15257 char *kwnames[] = {
15258 (char *) "window",(char *) "buffer", NULL
15259 };
15260
15261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15264 if (obj1) {
15265 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15266 SWIG_POINTER_EXCEPTION | 0)) == -1)
15267 SWIG_fail;
15268 if (arg2 == NULL) {
15269 PyErr_SetString(PyExc_TypeError,"null reference");
15270 SWIG_fail;
15271 }
15272 }
15273 {
15274 if (!wxPyCheckForApp()) SWIG_fail;
15275 PyThreadState* __tstate = wxPyBeginAllowThreads();
15276 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15277
15278 wxPyEndAllowThreads(__tstate);
15279 if (PyErr_Occurred()) SWIG_fail;
15280 }
15281 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15282 return resultobj;
15283 fail:
15284 return NULL;
15285 }
15286
15287
15288 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15289 PyObject *obj;
15290 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15291 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15292 Py_INCREF(obj);
15293 return Py_BuildValue((char *)"");
15294 }
15295 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15296 PyObject *resultobj;
15297 wxScreenDC *result;
15298 char *kwnames[] = {
15299 NULL
15300 };
15301
15302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15303 {
15304 if (!wxPyCheckForApp()) SWIG_fail;
15305 PyThreadState* __tstate = wxPyBeginAllowThreads();
15306 result = (wxScreenDC *)new wxScreenDC();
15307
15308 wxPyEndAllowThreads(__tstate);
15309 if (PyErr_Occurred()) SWIG_fail;
15310 }
15311 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15312 return resultobj;
15313 fail:
15314 return NULL;
15315 }
15316
15317
15318 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15319 PyObject *resultobj;
15320 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15321 wxWindow *arg2 = (wxWindow *) 0 ;
15322 bool result;
15323 PyObject * obj0 = 0 ;
15324 PyObject * obj1 = 0 ;
15325 char *kwnames[] = {
15326 (char *) "self",(char *) "window", NULL
15327 };
15328
15329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15332 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15334 {
15335 PyThreadState* __tstate = wxPyBeginAllowThreads();
15336 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15337
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 {
15342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15343 }
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj;
15352 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15353 wxRect *arg2 = (wxRect *) NULL ;
15354 bool result;
15355 PyObject * obj0 = 0 ;
15356 PyObject * obj1 = 0 ;
15357 char *kwnames[] = {
15358 (char *) "self",(char *) "rect", NULL
15359 };
15360
15361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15364 if (obj1) {
15365 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15367 }
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15371
15372 wxPyEndAllowThreads(__tstate);
15373 if (PyErr_Occurred()) SWIG_fail;
15374 }
15375 {
15376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15377 }
15378 return resultobj;
15379 fail:
15380 return NULL;
15381 }
15382
15383
15384 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj;
15386 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15387 bool result;
15388 PyObject * obj0 = 0 ;
15389 char *kwnames[] = {
15390 (char *) "self", NULL
15391 };
15392
15393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15396 {
15397 PyThreadState* __tstate = wxPyBeginAllowThreads();
15398 result = (bool)(arg1)->EndDrawingOnTop();
15399
15400 wxPyEndAllowThreads(__tstate);
15401 if (PyErr_Occurred()) SWIG_fail;
15402 }
15403 {
15404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15405 }
15406 return resultobj;
15407 fail:
15408 return NULL;
15409 }
15410
15411
15412 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15413 PyObject *obj;
15414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15415 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15416 Py_INCREF(obj);
15417 return Py_BuildValue((char *)"");
15418 }
15419 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15420 PyObject *resultobj;
15421 wxWindow *arg1 = (wxWindow *) 0 ;
15422 wxClientDC *result;
15423 PyObject * obj0 = 0 ;
15424 char *kwnames[] = {
15425 (char *) "win", NULL
15426 };
15427
15428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15431 {
15432 if (!wxPyCheckForApp()) SWIG_fail;
15433 PyThreadState* __tstate = wxPyBeginAllowThreads();
15434 result = (wxClientDC *)new wxClientDC(arg1);
15435
15436 wxPyEndAllowThreads(__tstate);
15437 if (PyErr_Occurred()) SWIG_fail;
15438 }
15439 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15440 return resultobj;
15441 fail:
15442 return NULL;
15443 }
15444
15445
15446 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15447 PyObject *obj;
15448 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15449 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15450 Py_INCREF(obj);
15451 return Py_BuildValue((char *)"");
15452 }
15453 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15454 PyObject *resultobj;
15455 wxWindow *arg1 = (wxWindow *) 0 ;
15456 wxPaintDC *result;
15457 PyObject * obj0 = 0 ;
15458 char *kwnames[] = {
15459 (char *) "win", NULL
15460 };
15461
15462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15465 {
15466 if (!wxPyCheckForApp()) SWIG_fail;
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = (wxPaintDC *)new wxPaintDC(arg1);
15469
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15474 return resultobj;
15475 fail:
15476 return NULL;
15477 }
15478
15479
15480 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15481 PyObject *obj;
15482 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15483 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15484 Py_INCREF(obj);
15485 return Py_BuildValue((char *)"");
15486 }
15487 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15488 PyObject *resultobj;
15489 wxWindow *arg1 = (wxWindow *) 0 ;
15490 wxWindowDC *result;
15491 PyObject * obj0 = 0 ;
15492 char *kwnames[] = {
15493 (char *) "win", NULL
15494 };
15495
15496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15499 {
15500 if (!wxPyCheckForApp()) SWIG_fail;
15501 PyThreadState* __tstate = wxPyBeginAllowThreads();
15502 result = (wxWindowDC *)new wxWindowDC(arg1);
15503
15504 wxPyEndAllowThreads(__tstate);
15505 if (PyErr_Occurred()) SWIG_fail;
15506 }
15507 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15515 PyObject *obj;
15516 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15517 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15518 Py_INCREF(obj);
15519 return Py_BuildValue((char *)"");
15520 }
15521 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15522 PyObject *resultobj;
15523 wxDC *arg1 = 0 ;
15524 bool arg2 ;
15525 wxMirrorDC *result;
15526 PyObject * obj0 = 0 ;
15527 PyObject * obj1 = 0 ;
15528 char *kwnames[] = {
15529 (char *) "dc",(char *) "mirror", NULL
15530 };
15531
15532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15534 SWIG_POINTER_EXCEPTION | 0)) == -1)
15535 SWIG_fail;
15536 if (arg1 == NULL) {
15537 PyErr_SetString(PyExc_TypeError,"null reference");
15538 SWIG_fail;
15539 }
15540 arg2 = (bool) SWIG_AsBool(obj1);
15541 if (PyErr_Occurred()) SWIG_fail;
15542 {
15543 if (!wxPyCheckForApp()) SWIG_fail;
15544 PyThreadState* __tstate = wxPyBeginAllowThreads();
15545 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15546
15547 wxPyEndAllowThreads(__tstate);
15548 if (PyErr_Occurred()) SWIG_fail;
15549 }
15550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15551 return resultobj;
15552 fail:
15553 return NULL;
15554 }
15555
15556
15557 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15558 PyObject *obj;
15559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15560 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15561 Py_INCREF(obj);
15562 return Py_BuildValue((char *)"");
15563 }
15564 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15565 PyObject *resultobj;
15566 wxPrintData *arg1 = 0 ;
15567 wxPostScriptDC *result;
15568 PyObject * obj0 = 0 ;
15569 char *kwnames[] = {
15570 (char *) "printData", NULL
15571 };
15572
15573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15575 SWIG_POINTER_EXCEPTION | 0)) == -1)
15576 SWIG_fail;
15577 if (arg1 == NULL) {
15578 PyErr_SetString(PyExc_TypeError,"null reference");
15579 SWIG_fail;
15580 }
15581 {
15582 if (!wxPyCheckForApp()) SWIG_fail;
15583 PyThreadState* __tstate = wxPyBeginAllowThreads();
15584 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15585
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15590 return resultobj;
15591 fail:
15592 return NULL;
15593 }
15594
15595
15596 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15597 PyObject *resultobj;
15598 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15599 wxPrintData *result;
15600 PyObject * obj0 = 0 ;
15601 char *kwnames[] = {
15602 (char *) "self", NULL
15603 };
15604
15605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15608 {
15609 PyThreadState* __tstate = wxPyBeginAllowThreads();
15610 {
15611 wxPrintData &_result_ref = (arg1)->GetPrintData();
15612 result = (wxPrintData *) &_result_ref;
15613 }
15614
15615 wxPyEndAllowThreads(__tstate);
15616 if (PyErr_Occurred()) SWIG_fail;
15617 }
15618 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15619 return resultobj;
15620 fail:
15621 return NULL;
15622 }
15623
15624
15625 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15626 PyObject *resultobj;
15627 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15628 wxPrintData *arg2 = 0 ;
15629 PyObject * obj0 = 0 ;
15630 PyObject * obj1 = 0 ;
15631 char *kwnames[] = {
15632 (char *) "self",(char *) "data", NULL
15633 };
15634
15635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15638 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15639 SWIG_POINTER_EXCEPTION | 0)) == -1)
15640 SWIG_fail;
15641 if (arg2 == NULL) {
15642 PyErr_SetString(PyExc_TypeError,"null reference");
15643 SWIG_fail;
15644 }
15645 {
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15648
15649 wxPyEndAllowThreads(__tstate);
15650 if (PyErr_Occurred()) SWIG_fail;
15651 }
15652 Py_INCREF(Py_None); resultobj = Py_None;
15653 return resultobj;
15654 fail:
15655 return NULL;
15656 }
15657
15658
15659 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 int arg1 ;
15662 PyObject * obj0 = 0 ;
15663 char *kwnames[] = {
15664 (char *) "ppi", NULL
15665 };
15666
15667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15668 arg1 = (int) SWIG_AsInt(obj0);
15669 if (PyErr_Occurred()) SWIG_fail;
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 wxPostScriptDC::SetResolution(arg1);
15673
15674 wxPyEndAllowThreads(__tstate);
15675 if (PyErr_Occurred()) SWIG_fail;
15676 }
15677 Py_INCREF(Py_None); resultobj = Py_None;
15678 return resultobj;
15679 fail:
15680 return NULL;
15681 }
15682
15683
15684 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15685 PyObject *resultobj;
15686 int result;
15687 char *kwnames[] = {
15688 NULL
15689 };
15690
15691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15692 {
15693 PyThreadState* __tstate = wxPyBeginAllowThreads();
15694 result = (int)wxPostScriptDC::GetResolution();
15695
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_FromInt((int)result);
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15707 PyObject *obj;
15708 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15709 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15710 Py_INCREF(obj);
15711 return Py_BuildValue((char *)"");
15712 }
15713 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15714 PyObject *resultobj;
15715 wxString const &arg1_defvalue = wxPyEmptyString ;
15716 wxString *arg1 = (wxString *) &arg1_defvalue ;
15717 wxMetaFile *result;
15718 bool temp1 = False ;
15719 PyObject * obj0 = 0 ;
15720 char *kwnames[] = {
15721 (char *) "filename", NULL
15722 };
15723
15724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15725 if (obj0) {
15726 {
15727 arg1 = wxString_in_helper(obj0);
15728 if (arg1 == NULL) SWIG_fail;
15729 temp1 = True;
15730 }
15731 }
15732 {
15733 if (!wxPyCheckForApp()) SWIG_fail;
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15736
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15741 {
15742 if (temp1)
15743 delete arg1;
15744 }
15745 return resultobj;
15746 fail:
15747 {
15748 if (temp1)
15749 delete arg1;
15750 }
15751 return NULL;
15752 }
15753
15754
15755 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15756 PyObject *resultobj;
15757 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15758 PyObject * obj0 = 0 ;
15759 char *kwnames[] = {
15760 (char *) "self", NULL
15761 };
15762
15763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 delete arg1;
15769
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 Py_INCREF(Py_None); resultobj = Py_None;
15774 return resultobj;
15775 fail:
15776 return NULL;
15777 }
15778
15779
15780 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15781 PyObject *resultobj;
15782 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15783 bool result;
15784 PyObject * obj0 = 0 ;
15785 char *kwnames[] = {
15786 (char *) "self", NULL
15787 };
15788
15789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15792 {
15793 PyThreadState* __tstate = wxPyBeginAllowThreads();
15794 result = (bool)(arg1)->Ok();
15795
15796 wxPyEndAllowThreads(__tstate);
15797 if (PyErr_Occurred()) SWIG_fail;
15798 }
15799 {
15800 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15801 }
15802 return resultobj;
15803 fail:
15804 return NULL;
15805 }
15806
15807
15808 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15809 PyObject *resultobj;
15810 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15811 int arg2 = (int) 0 ;
15812 int arg3 = (int) 0 ;
15813 bool result;
15814 PyObject * obj0 = 0 ;
15815 PyObject * obj1 = 0 ;
15816 PyObject * obj2 = 0 ;
15817 char *kwnames[] = {
15818 (char *) "self",(char *) "width",(char *) "height", NULL
15819 };
15820
15821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15824 if (obj1) {
15825 arg2 = (int) SWIG_AsInt(obj1);
15826 if (PyErr_Occurred()) SWIG_fail;
15827 }
15828 if (obj2) {
15829 arg3 = (int) SWIG_AsInt(obj2);
15830 if (PyErr_Occurred()) SWIG_fail;
15831 }
15832 {
15833 PyThreadState* __tstate = wxPyBeginAllowThreads();
15834 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15835
15836 wxPyEndAllowThreads(__tstate);
15837 if (PyErr_Occurred()) SWIG_fail;
15838 }
15839 {
15840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15841 }
15842 return resultobj;
15843 fail:
15844 return NULL;
15845 }
15846
15847
15848 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15849 PyObject *resultobj;
15850 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15851 wxSize result;
15852 PyObject * obj0 = 0 ;
15853 char *kwnames[] = {
15854 (char *) "self", NULL
15855 };
15856
15857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15860 {
15861 PyThreadState* __tstate = wxPyBeginAllowThreads();
15862 result = (arg1)->GetSize();
15863
15864 wxPyEndAllowThreads(__tstate);
15865 if (PyErr_Occurred()) SWIG_fail;
15866 }
15867 {
15868 wxSize * resultptr;
15869 resultptr = new wxSize((wxSize &) result);
15870 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15871 }
15872 return resultobj;
15873 fail:
15874 return NULL;
15875 }
15876
15877
15878 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15879 PyObject *resultobj;
15880 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15881 int result;
15882 PyObject * obj0 = 0 ;
15883 char *kwnames[] = {
15884 (char *) "self", NULL
15885 };
15886
15887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 result = (int)(arg1)->GetWidth();
15893
15894 wxPyEndAllowThreads(__tstate);
15895 if (PyErr_Occurred()) SWIG_fail;
15896 }
15897 resultobj = SWIG_FromInt((int)result);
15898 return resultobj;
15899 fail:
15900 return NULL;
15901 }
15902
15903
15904 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15905 PyObject *resultobj;
15906 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15907 int result;
15908 PyObject * obj0 = 0 ;
15909 char *kwnames[] = {
15910 (char *) "self", NULL
15911 };
15912
15913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = (int)(arg1)->GetHeight();
15919
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_FromInt((int)result);
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15931 PyObject *obj;
15932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15933 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15934 Py_INCREF(obj);
15935 return Py_BuildValue((char *)"");
15936 }
15937 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15938 PyObject *resultobj;
15939 wxString const &arg1_defvalue = wxPyEmptyString ;
15940 wxString *arg1 = (wxString *) &arg1_defvalue ;
15941 int arg2 = (int) 0 ;
15942 int arg3 = (int) 0 ;
15943 wxString const &arg4_defvalue = wxPyEmptyString ;
15944 wxString *arg4 = (wxString *) &arg4_defvalue ;
15945 wxMetaFileDC *result;
15946 bool temp1 = False ;
15947 bool temp4 = False ;
15948 PyObject * obj0 = 0 ;
15949 PyObject * obj1 = 0 ;
15950 PyObject * obj2 = 0 ;
15951 PyObject * obj3 = 0 ;
15952 char *kwnames[] = {
15953 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15954 };
15955
15956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15957 if (obj0) {
15958 {
15959 arg1 = wxString_in_helper(obj0);
15960 if (arg1 == NULL) SWIG_fail;
15961 temp1 = True;
15962 }
15963 }
15964 if (obj1) {
15965 arg2 = (int) SWIG_AsInt(obj1);
15966 if (PyErr_Occurred()) SWIG_fail;
15967 }
15968 if (obj2) {
15969 arg3 = (int) SWIG_AsInt(obj2);
15970 if (PyErr_Occurred()) SWIG_fail;
15971 }
15972 if (obj3) {
15973 {
15974 arg4 = wxString_in_helper(obj3);
15975 if (arg4 == NULL) SWIG_fail;
15976 temp4 = True;
15977 }
15978 }
15979 {
15980 if (!wxPyCheckForApp()) SWIG_fail;
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15983
15984 wxPyEndAllowThreads(__tstate);
15985 if (PyErr_Occurred()) SWIG_fail;
15986 }
15987 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15988 {
15989 if (temp1)
15990 delete arg1;
15991 }
15992 {
15993 if (temp4)
15994 delete arg4;
15995 }
15996 return resultobj;
15997 fail:
15998 {
15999 if (temp1)
16000 delete arg1;
16001 }
16002 {
16003 if (temp4)
16004 delete arg4;
16005 }
16006 return NULL;
16007 }
16008
16009
16010 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16011 PyObject *resultobj;
16012 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16013 wxMetaFile *result;
16014 PyObject * obj0 = 0 ;
16015 char *kwnames[] = {
16016 (char *) "self", NULL
16017 };
16018
16019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 result = (wxMetaFile *)(arg1)->Close();
16025
16026 wxPyEndAllowThreads(__tstate);
16027 if (PyErr_Occurred()) SWIG_fail;
16028 }
16029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16030 return resultobj;
16031 fail:
16032 return NULL;
16033 }
16034
16035
16036 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16037 PyObject *obj;
16038 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16039 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16040 Py_INCREF(obj);
16041 return Py_BuildValue((char *)"");
16042 }
16043 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16044 PyObject *resultobj;
16045 wxPrintData *arg1 = 0 ;
16046 wxPrinterDC *result;
16047 PyObject * obj0 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "printData", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16054 SWIG_POINTER_EXCEPTION | 0)) == -1)
16055 SWIG_fail;
16056 if (arg1 == NULL) {
16057 PyErr_SetString(PyExc_TypeError,"null reference");
16058 SWIG_fail;
16059 }
16060 {
16061 if (!wxPyCheckForApp()) SWIG_fail;
16062 PyThreadState* __tstate = wxPyBeginAllowThreads();
16063 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16064
16065 wxPyEndAllowThreads(__tstate);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 }
16068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16069 return resultobj;
16070 fail:
16071 return NULL;
16072 }
16073
16074
16075 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16076 PyObject *obj;
16077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16078 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16079 Py_INCREF(obj);
16080 return Py_BuildValue((char *)"");
16081 }
16082 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16083 PyObject *resultobj;
16084 int arg1 ;
16085 int arg2 ;
16086 int arg3 = (int) True ;
16087 int arg4 = (int) 1 ;
16088 wxImageList *result;
16089 PyObject * obj0 = 0 ;
16090 PyObject * obj1 = 0 ;
16091 PyObject * obj2 = 0 ;
16092 PyObject * obj3 = 0 ;
16093 char *kwnames[] = {
16094 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16095 };
16096
16097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16098 arg1 = (int) SWIG_AsInt(obj0);
16099 if (PyErr_Occurred()) SWIG_fail;
16100 arg2 = (int) SWIG_AsInt(obj1);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 if (obj2) {
16103 arg3 = (int) SWIG_AsInt(obj2);
16104 if (PyErr_Occurred()) SWIG_fail;
16105 }
16106 if (obj3) {
16107 arg4 = (int) SWIG_AsInt(obj3);
16108 if (PyErr_Occurred()) SWIG_fail;
16109 }
16110 {
16111 if (!wxPyCheckForApp()) SWIG_fail;
16112 PyThreadState* __tstate = wxPyBeginAllowThreads();
16113 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16114
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 {
16119 resultobj = wxPyMake_wxObject(result);
16120 }
16121 return resultobj;
16122 fail:
16123 return NULL;
16124 }
16125
16126
16127 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16128 PyObject *resultobj;
16129 wxImageList *arg1 = (wxImageList *) 0 ;
16130 PyObject * obj0 = 0 ;
16131 char *kwnames[] = {
16132 (char *) "self", NULL
16133 };
16134
16135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16138 {
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 delete arg1;
16141
16142 wxPyEndAllowThreads(__tstate);
16143 if (PyErr_Occurred()) SWIG_fail;
16144 }
16145 Py_INCREF(Py_None); resultobj = Py_None;
16146 return resultobj;
16147 fail:
16148 return NULL;
16149 }
16150
16151
16152 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16153 PyObject *resultobj;
16154 wxImageList *arg1 = (wxImageList *) 0 ;
16155 wxBitmap *arg2 = 0 ;
16156 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16157 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16158 int result;
16159 PyObject * obj0 = 0 ;
16160 PyObject * obj1 = 0 ;
16161 PyObject * obj2 = 0 ;
16162 char *kwnames[] = {
16163 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16164 };
16165
16166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16169 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16170 SWIG_POINTER_EXCEPTION | 0)) == -1)
16171 SWIG_fail;
16172 if (arg2 == NULL) {
16173 PyErr_SetString(PyExc_TypeError,"null reference");
16174 SWIG_fail;
16175 }
16176 if (obj2) {
16177 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16178 SWIG_POINTER_EXCEPTION | 0)) == -1)
16179 SWIG_fail;
16180 if (arg3 == NULL) {
16181 PyErr_SetString(PyExc_TypeError,"null reference");
16182 SWIG_fail;
16183 }
16184 }
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16188
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 resultobj = SWIG_FromInt((int)result);
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16200 PyObject *resultobj;
16201 wxImageList *arg1 = (wxImageList *) 0 ;
16202 wxBitmap *arg2 = 0 ;
16203 wxColour *arg3 = 0 ;
16204 int result;
16205 wxColour temp3 ;
16206 PyObject * obj0 = 0 ;
16207 PyObject * obj1 = 0 ;
16208 PyObject * obj2 = 0 ;
16209 char *kwnames[] = {
16210 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16211 };
16212
16213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16216 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16217 SWIG_POINTER_EXCEPTION | 0)) == -1)
16218 SWIG_fail;
16219 if (arg2 == NULL) {
16220 PyErr_SetString(PyExc_TypeError,"null reference");
16221 SWIG_fail;
16222 }
16223 {
16224 arg3 = &temp3;
16225 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16226 }
16227 {
16228 PyThreadState* __tstate = wxPyBeginAllowThreads();
16229 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16230
16231 wxPyEndAllowThreads(__tstate);
16232 if (PyErr_Occurred()) SWIG_fail;
16233 }
16234 resultobj = SWIG_FromInt((int)result);
16235 return resultobj;
16236 fail:
16237 return NULL;
16238 }
16239
16240
16241 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16242 PyObject *resultobj;
16243 wxImageList *arg1 = (wxImageList *) 0 ;
16244 wxIcon *arg2 = 0 ;
16245 int result;
16246 PyObject * obj0 = 0 ;
16247 PyObject * obj1 = 0 ;
16248 char *kwnames[] = {
16249 (char *) "self",(char *) "icon", NULL
16250 };
16251
16252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16256 SWIG_POINTER_EXCEPTION | 0)) == -1)
16257 SWIG_fail;
16258 if (arg2 == NULL) {
16259 PyErr_SetString(PyExc_TypeError,"null reference");
16260 SWIG_fail;
16261 }
16262 {
16263 PyThreadState* __tstate = wxPyBeginAllowThreads();
16264 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16265
16266 wxPyEndAllowThreads(__tstate);
16267 if (PyErr_Occurred()) SWIG_fail;
16268 }
16269 resultobj = SWIG_FromInt((int)result);
16270 return resultobj;
16271 fail:
16272 return NULL;
16273 }
16274
16275
16276 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16277 PyObject *resultobj;
16278 wxImageList *arg1 = (wxImageList *) 0 ;
16279 int arg2 ;
16280 wxBitmap *arg3 = 0 ;
16281 bool result;
16282 PyObject * obj0 = 0 ;
16283 PyObject * obj1 = 0 ;
16284 PyObject * obj2 = 0 ;
16285 char *kwnames[] = {
16286 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16287 };
16288
16289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16292 arg2 = (int) SWIG_AsInt(obj1);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16295 SWIG_POINTER_EXCEPTION | 0)) == -1)
16296 SWIG_fail;
16297 if (arg3 == NULL) {
16298 PyErr_SetString(PyExc_TypeError,"null reference");
16299 SWIG_fail;
16300 }
16301 {
16302 PyThreadState* __tstate = wxPyBeginAllowThreads();
16303 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16304
16305 wxPyEndAllowThreads(__tstate);
16306 if (PyErr_Occurred()) SWIG_fail;
16307 }
16308 {
16309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16310 }
16311 return resultobj;
16312 fail:
16313 return NULL;
16314 }
16315
16316
16317 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16318 PyObject *resultobj;
16319 wxImageList *arg1 = (wxImageList *) 0 ;
16320 int arg2 ;
16321 wxDC *arg3 = 0 ;
16322 int arg4 ;
16323 int arg5 ;
16324 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16325 bool arg7 = (bool) (bool)False ;
16326 bool result;
16327 PyObject * obj0 = 0 ;
16328 PyObject * obj1 = 0 ;
16329 PyObject * obj2 = 0 ;
16330 PyObject * obj3 = 0 ;
16331 PyObject * obj4 = 0 ;
16332 PyObject * obj5 = 0 ;
16333 PyObject * obj6 = 0 ;
16334 char *kwnames[] = {
16335 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16336 };
16337
16338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16341 arg2 = (int) SWIG_AsInt(obj1);
16342 if (PyErr_Occurred()) SWIG_fail;
16343 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16344 SWIG_POINTER_EXCEPTION | 0)) == -1)
16345 SWIG_fail;
16346 if (arg3 == NULL) {
16347 PyErr_SetString(PyExc_TypeError,"null reference");
16348 SWIG_fail;
16349 }
16350 arg4 = (int) SWIG_AsInt(obj3);
16351 if (PyErr_Occurred()) SWIG_fail;
16352 arg5 = (int) SWIG_AsInt(obj4);
16353 if (PyErr_Occurred()) SWIG_fail;
16354 if (obj5) {
16355 arg6 = (int) SWIG_AsInt(obj5);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 }
16358 if (obj6) {
16359 arg7 = (bool const) SWIG_AsBool(obj6);
16360 if (PyErr_Occurred()) SWIG_fail;
16361 }
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16365
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 {
16370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16371 }
16372 return resultobj;
16373 fail:
16374 return NULL;
16375 }
16376
16377
16378 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16379 PyObject *resultobj;
16380 wxImageList *arg1 = (wxImageList *) 0 ;
16381 int result;
16382 PyObject * obj0 = 0 ;
16383 char *kwnames[] = {
16384 (char *) "self", NULL
16385 };
16386
16387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16390 {
16391 PyThreadState* __tstate = wxPyBeginAllowThreads();
16392 result = (int)(arg1)->GetImageCount();
16393
16394 wxPyEndAllowThreads(__tstate);
16395 if (PyErr_Occurred()) SWIG_fail;
16396 }
16397 resultobj = SWIG_FromInt((int)result);
16398 return resultobj;
16399 fail:
16400 return NULL;
16401 }
16402
16403
16404 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16405 PyObject *resultobj;
16406 wxImageList *arg1 = (wxImageList *) 0 ;
16407 int arg2 ;
16408 bool result;
16409 PyObject * obj0 = 0 ;
16410 PyObject * obj1 = 0 ;
16411 char *kwnames[] = {
16412 (char *) "self",(char *) "index", NULL
16413 };
16414
16415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16418 arg2 = (int) SWIG_AsInt(obj1);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 {
16421 PyThreadState* __tstate = wxPyBeginAllowThreads();
16422 result = (bool)(arg1)->Remove(arg2);
16423
16424 wxPyEndAllowThreads(__tstate);
16425 if (PyErr_Occurred()) SWIG_fail;
16426 }
16427 {
16428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16429 }
16430 return resultobj;
16431 fail:
16432 return NULL;
16433 }
16434
16435
16436 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16437 PyObject *resultobj;
16438 wxImageList *arg1 = (wxImageList *) 0 ;
16439 bool result;
16440 PyObject * obj0 = 0 ;
16441 char *kwnames[] = {
16442 (char *) "self", NULL
16443 };
16444
16445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16448 {
16449 PyThreadState* __tstate = wxPyBeginAllowThreads();
16450 result = (bool)(arg1)->RemoveAll();
16451
16452 wxPyEndAllowThreads(__tstate);
16453 if (PyErr_Occurred()) SWIG_fail;
16454 }
16455 {
16456 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16457 }
16458 return resultobj;
16459 fail:
16460 return NULL;
16461 }
16462
16463
16464 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16465 PyObject *resultobj;
16466 wxImageList *arg1 = (wxImageList *) 0 ;
16467 int arg2 ;
16468 int *arg3 = 0 ;
16469 int *arg4 = 0 ;
16470 int temp3 ;
16471 int temp4 ;
16472 PyObject * obj0 = 0 ;
16473 PyObject * obj1 = 0 ;
16474 char *kwnames[] = {
16475 (char *) "self",(char *) "index", NULL
16476 };
16477
16478 arg3 = &temp3;
16479 arg4 = &temp4;
16480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16483 arg2 = (int) SWIG_AsInt(obj1);
16484 if (PyErr_Occurred()) SWIG_fail;
16485 {
16486 PyThreadState* __tstate = wxPyBeginAllowThreads();
16487 (arg1)->GetSize(arg2,*arg3,*arg4);
16488
16489 wxPyEndAllowThreads(__tstate);
16490 if (PyErr_Occurred()) SWIG_fail;
16491 }
16492 Py_INCREF(Py_None); resultobj = Py_None;
16493 {
16494 PyObject *o = PyInt_FromLong((long) (*arg3));
16495 resultobj = t_output_helper(resultobj,o);
16496 }
16497 {
16498 PyObject *o = PyInt_FromLong((long) (*arg4));
16499 resultobj = t_output_helper(resultobj,o);
16500 }
16501 return resultobj;
16502 fail:
16503 return NULL;
16504 }
16505
16506
16507 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16508 PyObject *obj;
16509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16510 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16511 Py_INCREF(obj);
16512 return Py_BuildValue((char *)"");
16513 }
16514 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16515 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16516 return 1;
16517 }
16518
16519
16520 static PyObject *_wrap_NORMAL_FONT_get() {
16521 PyObject *pyobj;
16522
16523 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16524 return pyobj;
16525 }
16526
16527
16528 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16529 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16530 return 1;
16531 }
16532
16533
16534 static PyObject *_wrap_SMALL_FONT_get() {
16535 PyObject *pyobj;
16536
16537 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16538 return pyobj;
16539 }
16540
16541
16542 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16543 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16544 return 1;
16545 }
16546
16547
16548 static PyObject *_wrap_ITALIC_FONT_get() {
16549 PyObject *pyobj;
16550
16551 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16552 return pyobj;
16553 }
16554
16555
16556 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16557 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16558 return 1;
16559 }
16560
16561
16562 static PyObject *_wrap_SWISS_FONT_get() {
16563 PyObject *pyobj;
16564
16565 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16566 return pyobj;
16567 }
16568
16569
16570 static int _wrap_RED_PEN_set(PyObject *_val) {
16571 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16572 return 1;
16573 }
16574
16575
16576 static PyObject *_wrap_RED_PEN_get() {
16577 PyObject *pyobj;
16578
16579 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16580 return pyobj;
16581 }
16582
16583
16584 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16585 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16586 return 1;
16587 }
16588
16589
16590 static PyObject *_wrap_CYAN_PEN_get() {
16591 PyObject *pyobj;
16592
16593 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16594 return pyobj;
16595 }
16596
16597
16598 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16599 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16600 return 1;
16601 }
16602
16603
16604 static PyObject *_wrap_GREEN_PEN_get() {
16605 PyObject *pyobj;
16606
16607 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16608 return pyobj;
16609 }
16610
16611
16612 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16613 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16614 return 1;
16615 }
16616
16617
16618 static PyObject *_wrap_BLACK_PEN_get() {
16619 PyObject *pyobj;
16620
16621 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16622 return pyobj;
16623 }
16624
16625
16626 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16627 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16628 return 1;
16629 }
16630
16631
16632 static PyObject *_wrap_WHITE_PEN_get() {
16633 PyObject *pyobj;
16634
16635 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16636 return pyobj;
16637 }
16638
16639
16640 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16641 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16642 return 1;
16643 }
16644
16645
16646 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16647 PyObject *pyobj;
16648
16649 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16650 return pyobj;
16651 }
16652
16653
16654 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16655 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16656 return 1;
16657 }
16658
16659
16660 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16661 PyObject *pyobj;
16662
16663 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16664 return pyobj;
16665 }
16666
16667
16668 static int _wrap_GREY_PEN_set(PyObject *_val) {
16669 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16670 return 1;
16671 }
16672
16673
16674 static PyObject *_wrap_GREY_PEN_get() {
16675 PyObject *pyobj;
16676
16677 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16678 return pyobj;
16679 }
16680
16681
16682 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16683 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16684 return 1;
16685 }
16686
16687
16688 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16689 PyObject *pyobj;
16690
16691 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16692 return pyobj;
16693 }
16694
16695
16696 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16697 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16698 return 1;
16699 }
16700
16701
16702 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16703 PyObject *pyobj;
16704
16705 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16706 return pyobj;
16707 }
16708
16709
16710 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16711 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16712 return 1;
16713 }
16714
16715
16716 static PyObject *_wrap_BLUE_BRUSH_get() {
16717 PyObject *pyobj;
16718
16719 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16720 return pyobj;
16721 }
16722
16723
16724 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16725 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16726 return 1;
16727 }
16728
16729
16730 static PyObject *_wrap_GREEN_BRUSH_get() {
16731 PyObject *pyobj;
16732
16733 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16734 return pyobj;
16735 }
16736
16737
16738 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16739 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16740 return 1;
16741 }
16742
16743
16744 static PyObject *_wrap_WHITE_BRUSH_get() {
16745 PyObject *pyobj;
16746
16747 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16748 return pyobj;
16749 }
16750
16751
16752 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16753 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16754 return 1;
16755 }
16756
16757
16758 static PyObject *_wrap_BLACK_BRUSH_get() {
16759 PyObject *pyobj;
16760
16761 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16762 return pyobj;
16763 }
16764
16765
16766 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16767 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16768 return 1;
16769 }
16770
16771
16772 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16773 PyObject *pyobj;
16774
16775 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16776 return pyobj;
16777 }
16778
16779
16780 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16781 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16782 return 1;
16783 }
16784
16785
16786 static PyObject *_wrap_CYAN_BRUSH_get() {
16787 PyObject *pyobj;
16788
16789 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16790 return pyobj;
16791 }
16792
16793
16794 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16795 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16796 return 1;
16797 }
16798
16799
16800 static PyObject *_wrap_RED_BRUSH_get() {
16801 PyObject *pyobj;
16802
16803 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16804 return pyobj;
16805 }
16806
16807
16808 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16809 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16810 return 1;
16811 }
16812
16813
16814 static PyObject *_wrap_GREY_BRUSH_get() {
16815 PyObject *pyobj;
16816
16817 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16818 return pyobj;
16819 }
16820
16821
16822 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16823 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16824 return 1;
16825 }
16826
16827
16828 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16829 PyObject *pyobj;
16830
16831 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16832 return pyobj;
16833 }
16834
16835
16836 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16837 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16838 return 1;
16839 }
16840
16841
16842 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16843 PyObject *pyobj;
16844
16845 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16846 return pyobj;
16847 }
16848
16849
16850 static int _wrap_BLACK_set(PyObject *_val) {
16851 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16852 return 1;
16853 }
16854
16855
16856 static PyObject *_wrap_BLACK_get() {
16857 PyObject *pyobj;
16858
16859 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16860 return pyobj;
16861 }
16862
16863
16864 static int _wrap_WHITE_set(PyObject *_val) {
16865 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16866 return 1;
16867 }
16868
16869
16870 static PyObject *_wrap_WHITE_get() {
16871 PyObject *pyobj;
16872
16873 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16874 return pyobj;
16875 }
16876
16877
16878 static int _wrap_RED_set(PyObject *_val) {
16879 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16880 return 1;
16881 }
16882
16883
16884 static PyObject *_wrap_RED_get() {
16885 PyObject *pyobj;
16886
16887 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16888 return pyobj;
16889 }
16890
16891
16892 static int _wrap_BLUE_set(PyObject *_val) {
16893 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16894 return 1;
16895 }
16896
16897
16898 static PyObject *_wrap_BLUE_get() {
16899 PyObject *pyobj;
16900
16901 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16902 return pyobj;
16903 }
16904
16905
16906 static int _wrap_GREEN_set(PyObject *_val) {
16907 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16908 return 1;
16909 }
16910
16911
16912 static PyObject *_wrap_GREEN_get() {
16913 PyObject *pyobj;
16914
16915 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16916 return pyobj;
16917 }
16918
16919
16920 static int _wrap_CYAN_set(PyObject *_val) {
16921 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16922 return 1;
16923 }
16924
16925
16926 static PyObject *_wrap_CYAN_get() {
16927 PyObject *pyobj;
16928
16929 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16930 return pyobj;
16931 }
16932
16933
16934 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16935 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16936 return 1;
16937 }
16938
16939
16940 static PyObject *_wrap_LIGHT_GREY_get() {
16941 PyObject *pyobj;
16942
16943 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16944 return pyobj;
16945 }
16946
16947
16948 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16949 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16950 return 1;
16951 }
16952
16953
16954 static PyObject *_wrap_STANDARD_CURSOR_get() {
16955 PyObject *pyobj;
16956
16957 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16958 return pyobj;
16959 }
16960
16961
16962 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16963 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16964 return 1;
16965 }
16966
16967
16968 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16969 PyObject *pyobj;
16970
16971 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16972 return pyobj;
16973 }
16974
16975
16976 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16977 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16978 return 1;
16979 }
16980
16981
16982 static PyObject *_wrap_CROSS_CURSOR_get() {
16983 PyObject *pyobj;
16984
16985 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16986 return pyobj;
16987 }
16988
16989
16990 static int _wrap_NullBitmap_set(PyObject *_val) {
16991 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16992 return 1;
16993 }
16994
16995
16996 static PyObject *_wrap_NullBitmap_get() {
16997 PyObject *pyobj;
16998
16999 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17000 return pyobj;
17001 }
17002
17003
17004 static int _wrap_NullIcon_set(PyObject *_val) {
17005 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17006 return 1;
17007 }
17008
17009
17010 static PyObject *_wrap_NullIcon_get() {
17011 PyObject *pyobj;
17012
17013 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17014 return pyobj;
17015 }
17016
17017
17018 static int _wrap_NullCursor_set(PyObject *_val) {
17019 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17020 return 1;
17021 }
17022
17023
17024 static PyObject *_wrap_NullCursor_get() {
17025 PyObject *pyobj;
17026
17027 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17028 return pyobj;
17029 }
17030
17031
17032 static int _wrap_NullPen_set(PyObject *_val) {
17033 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17034 return 1;
17035 }
17036
17037
17038 static PyObject *_wrap_NullPen_get() {
17039 PyObject *pyobj;
17040
17041 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17042 return pyobj;
17043 }
17044
17045
17046 static int _wrap_NullBrush_set(PyObject *_val) {
17047 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17048 return 1;
17049 }
17050
17051
17052 static PyObject *_wrap_NullBrush_get() {
17053 PyObject *pyobj;
17054
17055 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17056 return pyobj;
17057 }
17058
17059
17060 static int _wrap_NullPalette_set(PyObject *_val) {
17061 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17062 return 1;
17063 }
17064
17065
17066 static PyObject *_wrap_NullPalette_get() {
17067 PyObject *pyobj;
17068
17069 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17070 return pyobj;
17071 }
17072
17073
17074 static int _wrap_NullFont_set(PyObject *_val) {
17075 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17076 return 1;
17077 }
17078
17079
17080 static PyObject *_wrap_NullFont_get() {
17081 PyObject *pyobj;
17082
17083 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17084 return pyobj;
17085 }
17086
17087
17088 static int _wrap_NullColour_set(PyObject *_val) {
17089 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17090 return 1;
17091 }
17092
17093
17094 static PyObject *_wrap_NullColour_get() {
17095 PyObject *pyobj;
17096
17097 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17098 return pyobj;
17099 }
17100
17101
17102 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17103 PyObject *resultobj;
17104 wxPenList *arg1 = (wxPenList *) 0 ;
17105 wxPen *arg2 = (wxPen *) 0 ;
17106 PyObject * obj0 = 0 ;
17107 PyObject * obj1 = 0 ;
17108 char *kwnames[] = {
17109 (char *) "self",(char *) "pen", NULL
17110 };
17111
17112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17115 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17117 {
17118 PyThreadState* __tstate = wxPyBeginAllowThreads();
17119 (arg1)->AddPen(arg2);
17120
17121 wxPyEndAllowThreads(__tstate);
17122 if (PyErr_Occurred()) SWIG_fail;
17123 }
17124 Py_INCREF(Py_None); resultobj = Py_None;
17125 return resultobj;
17126 fail:
17127 return NULL;
17128 }
17129
17130
17131 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17132 PyObject *resultobj;
17133 wxPenList *arg1 = (wxPenList *) 0 ;
17134 wxColour *arg2 = 0 ;
17135 int arg3 ;
17136 int arg4 ;
17137 wxPen *result;
17138 wxColour temp2 ;
17139 PyObject * obj0 = 0 ;
17140 PyObject * obj1 = 0 ;
17141 PyObject * obj2 = 0 ;
17142 PyObject * obj3 = 0 ;
17143 char *kwnames[] = {
17144 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17145 };
17146
17147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17150 {
17151 arg2 = &temp2;
17152 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17153 }
17154 arg3 = (int) SWIG_AsInt(obj2);
17155 if (PyErr_Occurred()) SWIG_fail;
17156 arg4 = (int) SWIG_AsInt(obj3);
17157 if (PyErr_Occurred()) SWIG_fail;
17158 {
17159 PyThreadState* __tstate = wxPyBeginAllowThreads();
17160 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17161
17162 wxPyEndAllowThreads(__tstate);
17163 if (PyErr_Occurred()) SWIG_fail;
17164 }
17165 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17166 return resultobj;
17167 fail:
17168 return NULL;
17169 }
17170
17171
17172 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17173 PyObject *resultobj;
17174 wxPenList *arg1 = (wxPenList *) 0 ;
17175 wxPen *arg2 = (wxPen *) 0 ;
17176 PyObject * obj0 = 0 ;
17177 PyObject * obj1 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "self",(char *) "pen", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 (arg1)->RemovePen(arg2);
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 Py_INCREF(Py_None); resultobj = Py_None;
17195 return resultobj;
17196 fail:
17197 return NULL;
17198 }
17199
17200
17201 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17202 PyObject *resultobj;
17203 wxPenList *arg1 = (wxPenList *) 0 ;
17204 int result;
17205 PyObject * obj0 = 0 ;
17206 char *kwnames[] = {
17207 (char *) "self", NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17213 {
17214 PyThreadState* __tstate = wxPyBeginAllowThreads();
17215 result = (int)(arg1)->GetCount();
17216
17217 wxPyEndAllowThreads(__tstate);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 }
17220 resultobj = SWIG_FromInt((int)result);
17221 return resultobj;
17222 fail:
17223 return NULL;
17224 }
17225
17226
17227 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17228 PyObject *obj;
17229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17230 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17231 Py_INCREF(obj);
17232 return Py_BuildValue((char *)"");
17233 }
17234 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj;
17236 wxBrushList *arg1 = (wxBrushList *) 0 ;
17237 wxBrush *arg2 = (wxBrush *) 0 ;
17238 PyObject * obj0 = 0 ;
17239 PyObject * obj1 = 0 ;
17240 char *kwnames[] = {
17241 (char *) "self",(char *) "brush", NULL
17242 };
17243
17244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17247 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17249 {
17250 PyThreadState* __tstate = wxPyBeginAllowThreads();
17251 (arg1)->AddBrush(arg2);
17252
17253 wxPyEndAllowThreads(__tstate);
17254 if (PyErr_Occurred()) SWIG_fail;
17255 }
17256 Py_INCREF(Py_None); resultobj = Py_None;
17257 return resultobj;
17258 fail:
17259 return NULL;
17260 }
17261
17262
17263 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17264 PyObject *resultobj;
17265 wxBrushList *arg1 = (wxBrushList *) 0 ;
17266 wxColour *arg2 = 0 ;
17267 int arg3 ;
17268 wxBrush *result;
17269 wxColour temp2 ;
17270 PyObject * obj0 = 0 ;
17271 PyObject * obj1 = 0 ;
17272 PyObject * obj2 = 0 ;
17273 char *kwnames[] = {
17274 (char *) "self",(char *) "colour",(char *) "style", NULL
17275 };
17276
17277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17280 {
17281 arg2 = &temp2;
17282 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17283 }
17284 arg3 = (int) SWIG_AsInt(obj2);
17285 if (PyErr_Occurred()) SWIG_fail;
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17289
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17294 return resultobj;
17295 fail:
17296 return NULL;
17297 }
17298
17299
17300 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17301 PyObject *resultobj;
17302 wxBrushList *arg1 = (wxBrushList *) 0 ;
17303 wxBrush *arg2 = (wxBrush *) 0 ;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char *kwnames[] = {
17307 (char *) "self",(char *) "brush", NULL
17308 };
17309
17310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17313 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 (arg1)->RemoveBrush(arg2);
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 Py_INCREF(Py_None); resultobj = Py_None;
17323 return resultobj;
17324 fail:
17325 return NULL;
17326 }
17327
17328
17329 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17330 PyObject *resultobj;
17331 wxBrushList *arg1 = (wxBrushList *) 0 ;
17332 int result;
17333 PyObject * obj0 = 0 ;
17334 char *kwnames[] = {
17335 (char *) "self", NULL
17336 };
17337
17338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17341 {
17342 PyThreadState* __tstate = wxPyBeginAllowThreads();
17343 result = (int)(arg1)->GetCount();
17344
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 resultobj = SWIG_FromInt((int)result);
17349 return resultobj;
17350 fail:
17351 return NULL;
17352 }
17353
17354
17355 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17356 PyObject *obj;
17357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17358 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17359 Py_INCREF(obj);
17360 return Py_BuildValue((char *)"");
17361 }
17362 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17363 PyObject *resultobj;
17364 wxColourDatabase *result;
17365 char *kwnames[] = {
17366 NULL
17367 };
17368
17369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17370 {
17371 if (!wxPyCheckForApp()) SWIG_fail;
17372 PyThreadState* __tstate = wxPyBeginAllowThreads();
17373 result = (wxColourDatabase *)new wxColourDatabase();
17374
17375 wxPyEndAllowThreads(__tstate);
17376 if (PyErr_Occurred()) SWIG_fail;
17377 }
17378 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17379 return resultobj;
17380 fail:
17381 return NULL;
17382 }
17383
17384
17385 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17386 PyObject *resultobj;
17387 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17388 PyObject * obj0 = 0 ;
17389 char *kwnames[] = {
17390 (char *) "self", NULL
17391 };
17392
17393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17396 {
17397 PyThreadState* __tstate = wxPyBeginAllowThreads();
17398 delete arg1;
17399
17400 wxPyEndAllowThreads(__tstate);
17401 if (PyErr_Occurred()) SWIG_fail;
17402 }
17403 Py_INCREF(Py_None); resultobj = Py_None;
17404 return resultobj;
17405 fail:
17406 return NULL;
17407 }
17408
17409
17410 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17411 PyObject *resultobj;
17412 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17413 wxString *arg2 = 0 ;
17414 wxColour result;
17415 bool temp2 = False ;
17416 PyObject * obj0 = 0 ;
17417 PyObject * obj1 = 0 ;
17418 char *kwnames[] = {
17419 (char *) "self",(char *) "name", NULL
17420 };
17421
17422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17425 {
17426 arg2 = wxString_in_helper(obj1);
17427 if (arg2 == NULL) SWIG_fail;
17428 temp2 = True;
17429 }
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17433
17434 wxPyEndAllowThreads(__tstate);
17435 if (PyErr_Occurred()) SWIG_fail;
17436 }
17437 {
17438 wxColour * resultptr;
17439 resultptr = new wxColour((wxColour &) result);
17440 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17441 }
17442 {
17443 if (temp2)
17444 delete arg2;
17445 }
17446 return resultobj;
17447 fail:
17448 {
17449 if (temp2)
17450 delete arg2;
17451 }
17452 return NULL;
17453 }
17454
17455
17456 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17457 PyObject *resultobj;
17458 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17459 wxColour *arg2 = 0 ;
17460 wxString result;
17461 wxColour temp2 ;
17462 PyObject * obj0 = 0 ;
17463 PyObject * obj1 = 0 ;
17464 char *kwnames[] = {
17465 (char *) "self",(char *) "colour", NULL
17466 };
17467
17468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17471 {
17472 arg2 = &temp2;
17473 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17474 }
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17478
17479 wxPyEndAllowThreads(__tstate);
17480 if (PyErr_Occurred()) SWIG_fail;
17481 }
17482 {
17483 #if wxUSE_UNICODE
17484 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17485 #else
17486 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17487 #endif
17488 }
17489 return resultobj;
17490 fail:
17491 return NULL;
17492 }
17493
17494
17495 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17496 PyObject *resultobj;
17497 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17498 wxString *arg2 = 0 ;
17499 wxColour *arg3 = 0 ;
17500 bool temp2 = False ;
17501 wxColour temp3 ;
17502 PyObject * obj0 = 0 ;
17503 PyObject * obj1 = 0 ;
17504 PyObject * obj2 = 0 ;
17505 char *kwnames[] = {
17506 (char *) "self",(char *) "name",(char *) "colour", NULL
17507 };
17508
17509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17512 {
17513 arg2 = wxString_in_helper(obj1);
17514 if (arg2 == NULL) SWIG_fail;
17515 temp2 = True;
17516 }
17517 {
17518 arg3 = &temp3;
17519 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17520 }
17521 {
17522 PyThreadState* __tstate = wxPyBeginAllowThreads();
17523 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17524
17525 wxPyEndAllowThreads(__tstate);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 }
17528 Py_INCREF(Py_None); resultobj = Py_None;
17529 {
17530 if (temp2)
17531 delete arg2;
17532 }
17533 return resultobj;
17534 fail:
17535 {
17536 if (temp2)
17537 delete arg2;
17538 }
17539 return NULL;
17540 }
17541
17542
17543 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj;
17545 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17546 wxString *arg2 = 0 ;
17547 int arg3 ;
17548 int arg4 ;
17549 int arg5 ;
17550 bool temp2 = False ;
17551 PyObject * obj0 = 0 ;
17552 PyObject * obj1 = 0 ;
17553 PyObject * obj2 = 0 ;
17554 PyObject * obj3 = 0 ;
17555 PyObject * obj4 = 0 ;
17556 char *kwnames[] = {
17557 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17558 };
17559
17560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17563 {
17564 arg2 = wxString_in_helper(obj1);
17565 if (arg2 == NULL) SWIG_fail;
17566 temp2 = True;
17567 }
17568 arg3 = (int) SWIG_AsInt(obj2);
17569 if (PyErr_Occurred()) SWIG_fail;
17570 arg4 = (int) SWIG_AsInt(obj3);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 arg5 = (int) SWIG_AsInt(obj4);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 {
17575 PyThreadState* __tstate = wxPyBeginAllowThreads();
17576 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17577
17578 wxPyEndAllowThreads(__tstate);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 }
17581 Py_INCREF(Py_None); resultobj = Py_None;
17582 {
17583 if (temp2)
17584 delete arg2;
17585 }
17586 return resultobj;
17587 fail:
17588 {
17589 if (temp2)
17590 delete arg2;
17591 }
17592 return NULL;
17593 }
17594
17595
17596 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17597 PyObject *obj;
17598 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17599 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17600 Py_INCREF(obj);
17601 return Py_BuildValue((char *)"");
17602 }
17603 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17604 PyObject *resultobj;
17605 wxFontList *arg1 = (wxFontList *) 0 ;
17606 wxFont *arg2 = (wxFont *) 0 ;
17607 PyObject * obj0 = 0 ;
17608 PyObject * obj1 = 0 ;
17609 char *kwnames[] = {
17610 (char *) "self",(char *) "font", NULL
17611 };
17612
17613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17618 {
17619 PyThreadState* __tstate = wxPyBeginAllowThreads();
17620 (arg1)->AddFont(arg2);
17621
17622 wxPyEndAllowThreads(__tstate);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 Py_INCREF(Py_None); resultobj = Py_None;
17626 return resultobj;
17627 fail:
17628 return NULL;
17629 }
17630
17631
17632 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17633 PyObject *resultobj;
17634 wxFontList *arg1 = (wxFontList *) 0 ;
17635 int arg2 ;
17636 int arg3 ;
17637 int arg4 ;
17638 int arg5 ;
17639 bool arg6 = (bool) False ;
17640 wxString const &arg7_defvalue = wxPyEmptyString ;
17641 wxString *arg7 = (wxString *) &arg7_defvalue ;
17642 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17643 wxFont *result;
17644 bool temp7 = False ;
17645 PyObject * obj0 = 0 ;
17646 PyObject * obj1 = 0 ;
17647 PyObject * obj2 = 0 ;
17648 PyObject * obj3 = 0 ;
17649 PyObject * obj4 = 0 ;
17650 PyObject * obj5 = 0 ;
17651 PyObject * obj6 = 0 ;
17652 PyObject * obj7 = 0 ;
17653 char *kwnames[] = {
17654 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17655 };
17656
17657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17660 arg2 = (int) SWIG_AsInt(obj1);
17661 if (PyErr_Occurred()) SWIG_fail;
17662 arg3 = (int) SWIG_AsInt(obj2);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 arg4 = (int) SWIG_AsInt(obj3);
17665 if (PyErr_Occurred()) SWIG_fail;
17666 arg5 = (int) SWIG_AsInt(obj4);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 if (obj5) {
17669 arg6 = (bool) SWIG_AsBool(obj5);
17670 if (PyErr_Occurred()) SWIG_fail;
17671 }
17672 if (obj6) {
17673 {
17674 arg7 = wxString_in_helper(obj6);
17675 if (arg7 == NULL) SWIG_fail;
17676 temp7 = True;
17677 }
17678 }
17679 if (obj7) {
17680 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17681 if (PyErr_Occurred()) SWIG_fail;
17682 }
17683 {
17684 PyThreadState* __tstate = wxPyBeginAllowThreads();
17685 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17686
17687 wxPyEndAllowThreads(__tstate);
17688 if (PyErr_Occurred()) SWIG_fail;
17689 }
17690 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17691 {
17692 if (temp7)
17693 delete arg7;
17694 }
17695 return resultobj;
17696 fail:
17697 {
17698 if (temp7)
17699 delete arg7;
17700 }
17701 return NULL;
17702 }
17703
17704
17705 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17706 PyObject *resultobj;
17707 wxFontList *arg1 = (wxFontList *) 0 ;
17708 wxFont *arg2 = (wxFont *) 0 ;
17709 PyObject * obj0 = 0 ;
17710 PyObject * obj1 = 0 ;
17711 char *kwnames[] = {
17712 (char *) "self",(char *) "font", NULL
17713 };
17714
17715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17718 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17720 {
17721 PyThreadState* __tstate = wxPyBeginAllowThreads();
17722 (arg1)->RemoveFont(arg2);
17723
17724 wxPyEndAllowThreads(__tstate);
17725 if (PyErr_Occurred()) SWIG_fail;
17726 }
17727 Py_INCREF(Py_None); resultobj = Py_None;
17728 return resultobj;
17729 fail:
17730 return NULL;
17731 }
17732
17733
17734 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17735 PyObject *resultobj;
17736 wxFontList *arg1 = (wxFontList *) 0 ;
17737 int result;
17738 PyObject * obj0 = 0 ;
17739 char *kwnames[] = {
17740 (char *) "self", NULL
17741 };
17742
17743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = (int)(arg1)->GetCount();
17749
17750 wxPyEndAllowThreads(__tstate);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 resultobj = SWIG_FromInt((int)result);
17754 return resultobj;
17755 fail:
17756 return NULL;
17757 }
17758
17759
17760 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17761 PyObject *obj;
17762 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17763 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17764 Py_INCREF(obj);
17765 return Py_BuildValue((char *)"");
17766 }
17767 static int _wrap_TheFontList_set(PyObject *_val) {
17768 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17769 return 1;
17770 }
17771
17772
17773 static PyObject *_wrap_TheFontList_get() {
17774 PyObject *pyobj;
17775
17776 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17777 return pyobj;
17778 }
17779
17780
17781 static int _wrap_ThePenList_set(PyObject *_val) {
17782 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17783 return 1;
17784 }
17785
17786
17787 static PyObject *_wrap_ThePenList_get() {
17788 PyObject *pyobj;
17789
17790 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17791 return pyobj;
17792 }
17793
17794
17795 static int _wrap_TheBrushList_set(PyObject *_val) {
17796 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17797 return 1;
17798 }
17799
17800
17801 static PyObject *_wrap_TheBrushList_get() {
17802 PyObject *pyobj;
17803
17804 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17805 return pyobj;
17806 }
17807
17808
17809 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17810 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17811 return 1;
17812 }
17813
17814
17815 static PyObject *_wrap_TheColourDatabase_get() {
17816 PyObject *pyobj;
17817
17818 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17819 return pyobj;
17820 }
17821
17822
17823 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj;
17825 wxEffects *result;
17826 char *kwnames[] = {
17827 NULL
17828 };
17829
17830 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17831 {
17832 PyThreadState* __tstate = wxPyBeginAllowThreads();
17833 result = (wxEffects *)new wxEffects();
17834
17835 wxPyEndAllowThreads(__tstate);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17839 return resultobj;
17840 fail:
17841 return NULL;
17842 }
17843
17844
17845 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17846 PyObject *resultobj;
17847 wxEffects *arg1 = (wxEffects *) 0 ;
17848 wxColour result;
17849 PyObject * obj0 = 0 ;
17850 char *kwnames[] = {
17851 (char *) "self", NULL
17852 };
17853
17854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 result = ((wxEffects const *)arg1)->GetHighlightColour();
17860
17861 wxPyEndAllowThreads(__tstate);
17862 if (PyErr_Occurred()) SWIG_fail;
17863 }
17864 {
17865 wxColour * resultptr;
17866 resultptr = new wxColour((wxColour &) result);
17867 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17868 }
17869 return resultobj;
17870 fail:
17871 return NULL;
17872 }
17873
17874
17875 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17876 PyObject *resultobj;
17877 wxEffects *arg1 = (wxEffects *) 0 ;
17878 wxColour result;
17879 PyObject * obj0 = 0 ;
17880 char *kwnames[] = {
17881 (char *) "self", NULL
17882 };
17883
17884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17887 {
17888 PyThreadState* __tstate = wxPyBeginAllowThreads();
17889 result = ((wxEffects const *)arg1)->GetLightShadow();
17890
17891 wxPyEndAllowThreads(__tstate);
17892 if (PyErr_Occurred()) SWIG_fail;
17893 }
17894 {
17895 wxColour * resultptr;
17896 resultptr = new wxColour((wxColour &) result);
17897 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17898 }
17899 return resultobj;
17900 fail:
17901 return NULL;
17902 }
17903
17904
17905 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17906 PyObject *resultobj;
17907 wxEffects *arg1 = (wxEffects *) 0 ;
17908 wxColour result;
17909 PyObject * obj0 = 0 ;
17910 char *kwnames[] = {
17911 (char *) "self", NULL
17912 };
17913
17914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17917 {
17918 PyThreadState* __tstate = wxPyBeginAllowThreads();
17919 result = ((wxEffects const *)arg1)->GetFaceColour();
17920
17921 wxPyEndAllowThreads(__tstate);
17922 if (PyErr_Occurred()) SWIG_fail;
17923 }
17924 {
17925 wxColour * resultptr;
17926 resultptr = new wxColour((wxColour &) result);
17927 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17928 }
17929 return resultobj;
17930 fail:
17931 return NULL;
17932 }
17933
17934
17935 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17936 PyObject *resultobj;
17937 wxEffects *arg1 = (wxEffects *) 0 ;
17938 wxColour result;
17939 PyObject * obj0 = 0 ;
17940 char *kwnames[] = {
17941 (char *) "self", NULL
17942 };
17943
17944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17947 {
17948 PyThreadState* __tstate = wxPyBeginAllowThreads();
17949 result = ((wxEffects const *)arg1)->GetMediumShadow();
17950
17951 wxPyEndAllowThreads(__tstate);
17952 if (PyErr_Occurred()) SWIG_fail;
17953 }
17954 {
17955 wxColour * resultptr;
17956 resultptr = new wxColour((wxColour &) result);
17957 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17958 }
17959 return resultobj;
17960 fail:
17961 return NULL;
17962 }
17963
17964
17965 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17966 PyObject *resultobj;
17967 wxEffects *arg1 = (wxEffects *) 0 ;
17968 wxColour result;
17969 PyObject * obj0 = 0 ;
17970 char *kwnames[] = {
17971 (char *) "self", NULL
17972 };
17973
17974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17977 {
17978 PyThreadState* __tstate = wxPyBeginAllowThreads();
17979 result = ((wxEffects const *)arg1)->GetDarkShadow();
17980
17981 wxPyEndAllowThreads(__tstate);
17982 if (PyErr_Occurred()) SWIG_fail;
17983 }
17984 {
17985 wxColour * resultptr;
17986 resultptr = new wxColour((wxColour &) result);
17987 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17988 }
17989 return resultobj;
17990 fail:
17991 return NULL;
17992 }
17993
17994
17995 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17996 PyObject *resultobj;
17997 wxEffects *arg1 = (wxEffects *) 0 ;
17998 wxColour *arg2 = 0 ;
17999 wxColour temp2 ;
18000 PyObject * obj0 = 0 ;
18001 PyObject * obj1 = 0 ;
18002 char *kwnames[] = {
18003 (char *) "self",(char *) "c", NULL
18004 };
18005
18006 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18007 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18008 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18009 {
18010 arg2 = &temp2;
18011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18012 }
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18016
18017 wxPyEndAllowThreads(__tstate);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 Py_INCREF(Py_None); resultobj = Py_None;
18021 return resultobj;
18022 fail:
18023 return NULL;
18024 }
18025
18026
18027 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18028 PyObject *resultobj;
18029 wxEffects *arg1 = (wxEffects *) 0 ;
18030 wxColour *arg2 = 0 ;
18031 wxColour temp2 ;
18032 PyObject * obj0 = 0 ;
18033 PyObject * obj1 = 0 ;
18034 char *kwnames[] = {
18035 (char *) "self",(char *) "c", NULL
18036 };
18037
18038 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18039 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18040 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18041 {
18042 arg2 = &temp2;
18043 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18044 }
18045 {
18046 PyThreadState* __tstate = wxPyBeginAllowThreads();
18047 (arg1)->SetLightShadow((wxColour const &)*arg2);
18048
18049 wxPyEndAllowThreads(__tstate);
18050 if (PyErr_Occurred()) SWIG_fail;
18051 }
18052 Py_INCREF(Py_None); resultobj = Py_None;
18053 return resultobj;
18054 fail:
18055 return NULL;
18056 }
18057
18058
18059 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18060 PyObject *resultobj;
18061 wxEffects *arg1 = (wxEffects *) 0 ;
18062 wxColour *arg2 = 0 ;
18063 wxColour temp2 ;
18064 PyObject * obj0 = 0 ;
18065 PyObject * obj1 = 0 ;
18066 char *kwnames[] = {
18067 (char *) "self",(char *) "c", NULL
18068 };
18069
18070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18073 {
18074 arg2 = &temp2;
18075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18076 }
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->SetFaceColour((wxColour const &)*arg2);
18080
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 Py_INCREF(Py_None); resultobj = Py_None;
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18092 PyObject *resultobj;
18093 wxEffects *arg1 = (wxEffects *) 0 ;
18094 wxColour *arg2 = 0 ;
18095 wxColour temp2 ;
18096 PyObject * obj0 = 0 ;
18097 PyObject * obj1 = 0 ;
18098 char *kwnames[] = {
18099 (char *) "self",(char *) "c", NULL
18100 };
18101
18102 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18103 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18104 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18105 {
18106 arg2 = &temp2;
18107 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18108 }
18109 {
18110 PyThreadState* __tstate = wxPyBeginAllowThreads();
18111 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18112
18113 wxPyEndAllowThreads(__tstate);
18114 if (PyErr_Occurred()) SWIG_fail;
18115 }
18116 Py_INCREF(Py_None); resultobj = Py_None;
18117 return resultobj;
18118 fail:
18119 return NULL;
18120 }
18121
18122
18123 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18124 PyObject *resultobj;
18125 wxEffects *arg1 = (wxEffects *) 0 ;
18126 wxColour *arg2 = 0 ;
18127 wxColour temp2 ;
18128 PyObject * obj0 = 0 ;
18129 PyObject * obj1 = 0 ;
18130 char *kwnames[] = {
18131 (char *) "self",(char *) "c", NULL
18132 };
18133
18134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18137 {
18138 arg2 = &temp2;
18139 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18140 }
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18144
18145 wxPyEndAllowThreads(__tstate);
18146 if (PyErr_Occurred()) SWIG_fail;
18147 }
18148 Py_INCREF(Py_None); resultobj = Py_None;
18149 return resultobj;
18150 fail:
18151 return NULL;
18152 }
18153
18154
18155 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18156 PyObject *resultobj;
18157 wxEffects *arg1 = (wxEffects *) 0 ;
18158 wxColour *arg2 = 0 ;
18159 wxColour *arg3 = 0 ;
18160 wxColour *arg4 = 0 ;
18161 wxColour *arg5 = 0 ;
18162 wxColour *arg6 = 0 ;
18163 wxColour temp2 ;
18164 wxColour temp3 ;
18165 wxColour temp4 ;
18166 wxColour temp5 ;
18167 wxColour temp6 ;
18168 PyObject * obj0 = 0 ;
18169 PyObject * obj1 = 0 ;
18170 PyObject * obj2 = 0 ;
18171 PyObject * obj3 = 0 ;
18172 PyObject * obj4 = 0 ;
18173 PyObject * obj5 = 0 ;
18174 char *kwnames[] = {
18175 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18176 };
18177
18178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18181 {
18182 arg2 = &temp2;
18183 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18184 }
18185 {
18186 arg3 = &temp3;
18187 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18188 }
18189 {
18190 arg4 = &temp4;
18191 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18192 }
18193 {
18194 arg5 = &temp5;
18195 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18196 }
18197 {
18198 arg6 = &temp6;
18199 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18200 }
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18204
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 Py_INCREF(Py_None); resultobj = Py_None;
18209 return resultobj;
18210 fail:
18211 return NULL;
18212 }
18213
18214
18215 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18216 PyObject *resultobj;
18217 wxEffects *arg1 = (wxEffects *) 0 ;
18218 wxDC *arg2 = 0 ;
18219 wxRect *arg3 = 0 ;
18220 int arg4 = (int) 1 ;
18221 wxRect temp3 ;
18222 PyObject * obj0 = 0 ;
18223 PyObject * obj1 = 0 ;
18224 PyObject * obj2 = 0 ;
18225 PyObject * obj3 = 0 ;
18226 char *kwnames[] = {
18227 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18228 };
18229
18230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18233 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18234 SWIG_POINTER_EXCEPTION | 0)) == -1)
18235 SWIG_fail;
18236 if (arg2 == NULL) {
18237 PyErr_SetString(PyExc_TypeError,"null reference");
18238 SWIG_fail;
18239 }
18240 {
18241 arg3 = &temp3;
18242 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18243 }
18244 if (obj3) {
18245 arg4 = (int) SWIG_AsInt(obj3);
18246 if (PyErr_Occurred()) SWIG_fail;
18247 }
18248 {
18249 PyThreadState* __tstate = wxPyBeginAllowThreads();
18250 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18251
18252 wxPyEndAllowThreads(__tstate);
18253 if (PyErr_Occurred()) SWIG_fail;
18254 }
18255 Py_INCREF(Py_None); resultobj = Py_None;
18256 return resultobj;
18257 fail:
18258 return NULL;
18259 }
18260
18261
18262 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18263 PyObject *resultobj;
18264 wxEffects *arg1 = (wxEffects *) 0 ;
18265 wxRect *arg2 = 0 ;
18266 wxDC *arg3 = 0 ;
18267 wxBitmap *arg4 = 0 ;
18268 bool result;
18269 wxRect temp2 ;
18270 PyObject * obj0 = 0 ;
18271 PyObject * obj1 = 0 ;
18272 PyObject * obj2 = 0 ;
18273 PyObject * obj3 = 0 ;
18274 char *kwnames[] = {
18275 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18276 };
18277
18278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18281 {
18282 arg2 = &temp2;
18283 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18284 }
18285 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18286 SWIG_POINTER_EXCEPTION | 0)) == -1)
18287 SWIG_fail;
18288 if (arg3 == NULL) {
18289 PyErr_SetString(PyExc_TypeError,"null reference");
18290 SWIG_fail;
18291 }
18292 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18293 SWIG_POINTER_EXCEPTION | 0)) == -1)
18294 SWIG_fail;
18295 if (arg4 == NULL) {
18296 PyErr_SetString(PyExc_TypeError,"null reference");
18297 SWIG_fail;
18298 }
18299 {
18300 PyThreadState* __tstate = wxPyBeginAllowThreads();
18301 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18302
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 {
18307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18308 }
18309 return resultobj;
18310 fail:
18311 return NULL;
18312 }
18313
18314
18315 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18316 PyObject *obj;
18317 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18318 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18319 Py_INCREF(obj);
18320 return Py_BuildValue((char *)"");
18321 }
18322 static PyMethodDef SwigMethods[] = {
18323 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18329 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18346 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18352 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18371 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18383 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18410 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18412 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18427 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18435 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18443 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18449 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18475 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18489 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18513 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18522 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18542 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18579 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18587 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18594 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18616 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18618 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18626 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18755 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18759 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18760 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18761 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18764 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18766 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18771 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18773 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18775 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18777 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18779 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18785 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18793 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18796 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18798 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18806 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18807 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18810 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18815 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18820 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18827 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18831 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18832 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18836 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18838 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18847 { NULL, NULL }
18848 };
18849
18850
18851 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18852
18853 static void *_p_wxControlTo_p_wxWindow(void *x) {
18854 return (void *)((wxWindow *) ((wxControl *) x));
18855 }
18856 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18857 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18858 }
18859 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18860 return (void *)((wxWindow *) ((wxMenuBar *) x));
18861 }
18862 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18863 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18864 }
18865 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18866 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18867 }
18868 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18869 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18870 }
18871 static void *_p_wxPenTo_p_wxObject(void *x) {
18872 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18873 }
18874 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18875 return (void *)((wxObject *) ((wxRegionIterator *) x));
18876 }
18877 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18878 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18879 }
18880 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18881 return (void *)((wxObject *) ((wxSizerItem *) x));
18882 }
18883 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18884 return (void *)((wxObject *) ((wxColourDatabase *) x));
18885 }
18886 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18887 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18888 }
18889 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18890 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18891 }
18892 static void *_p_wxIconTo_p_wxObject(void *x) {
18893 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18894 }
18895 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18896 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18897 }
18898 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18899 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18900 }
18901 static void *_p_wxSizerTo_p_wxObject(void *x) {
18902 return (void *)((wxObject *) ((wxSizer *) x));
18903 }
18904 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18905 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18906 }
18907 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18908 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18909 }
18910 static void *_p_wxPenListTo_p_wxObject(void *x) {
18911 return (void *)((wxObject *) ((wxPenList *) x));
18912 }
18913 static void *_p_wxEventTo_p_wxObject(void *x) {
18914 return (void *)((wxObject *) ((wxEvent *) x));
18915 }
18916 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18917 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18918 }
18919 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18920 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18921 }
18922 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18923 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18924 }
18925 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18926 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18927 }
18928 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18929 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18930 }
18931 static void *_p_wxDCTo_p_wxObject(void *x) {
18932 return (void *)((wxObject *) ((wxDC *) x));
18933 }
18934 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18935 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18936 }
18937 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18938 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18939 }
18940 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18942 }
18943 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18945 }
18946 static void *_p_wxControlTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18948 }
18949 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18951 }
18952 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18954 }
18955 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) ((wxFSFile *) x));
18957 }
18958 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18960 }
18961 static void *_p_wxRegionTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18963 }
18964 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18966 }
18967 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18969 }
18970 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) ((wxGDIObject *) x));
18972 }
18973 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) ((wxEffects *) x));
18975 }
18976 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18978 }
18979 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18981 }
18982 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18984 }
18985 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18987 }
18988 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) ((wxMenuItem *) x));
18990 }
18991 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18993 }
18994 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18996 }
18997 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18999 }
19000 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19002 }
19003 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19005 }
19006 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19008 }
19009 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19011 }
19012 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19014 }
19015 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19017 }
19018 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19020 }
19021 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19023 }
19024 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19026 }
19027 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19029 }
19030 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19032 }
19033 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19035 }
19036 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19038 }
19039 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19041 }
19042 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19044 }
19045 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) ((wxImageHandler *) x));
19047 }
19048 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19050 }
19051 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) ((wxEvtHandler *) x));
19053 }
19054 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19056 }
19057 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19059 }
19060 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19062 }
19063 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19065 }
19066 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19068 }
19069 static void *_p_wxImageTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) ((wxImage *) x));
19071 }
19072 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19074 }
19075 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19077 }
19078 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19080 }
19081 static void *_p_wxImageListTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) ((wxImageList *) x));
19083 }
19084 static void *_p_wxCursorTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19086 }
19087 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19089 }
19090 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19092 }
19093 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19095 }
19096 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19098 }
19099 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19101 }
19102 static void *_p_wxWindowTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19104 }
19105 static void *_p_wxMenuTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19107 }
19108 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19110 }
19111 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19113 }
19114 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) ((wxBrushList *) x));
19116 }
19117 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) ((wxFileSystem *) x));
19119 }
19120 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19122 }
19123 static void *_p_wxMaskTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) ((wxMask *) x));
19125 }
19126 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19128 }
19129 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19131 }
19132 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19134 }
19135 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19137 }
19138 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19140 }
19141 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19143 }
19144 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19146 }
19147 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19149 }
19150 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19152 }
19153 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19155 }
19156 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19158 }
19159 static void *_p_wxFontTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19161 }
19162 static void *_p_wxBrushTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19164 }
19165 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) ((wxMetaFile *) x));
19167 }
19168 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19170 }
19171 static void *_p_wxColourTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) ((wxColour *) x));
19173 }
19174 static void *_p_wxFontListTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) ((wxFontList *) x));
19176 }
19177 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19179 }
19180 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19182 }
19183 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19184 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19185 }
19186 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19187 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19188 }
19189 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19190 return (void *)((wxDC *) ((wxScreenDC *) x));
19191 }
19192 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19193 return (void *)((wxDC *) ((wxMirrorDC *) x));
19194 }
19195 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19196 return (void *)((wxDC *) ((wxMemoryDC *) x));
19197 }
19198 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19199 return (void *)((wxDC *) ((wxWindowDC *) x));
19200 }
19201 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19202 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19203 }
19204 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19205 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19206 }
19207 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19208 return (void *)((wxDC *) ((wxClientDC *) x));
19209 }
19210 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19211 return (void *)((wxDC *) ((wxPaintDC *) x));
19212 }
19213 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19214 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19215 }
19216 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19217 return (void *)((wxDC *) ((wxPrinterDC *) x));
19218 }
19219 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19220 return (void *)((wxGDIObject *) ((wxIcon *) x));
19221 }
19222 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19223 return (void *)((wxGDIObject *) ((wxPalette *) x));
19224 }
19225 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19226 return (void *)((wxGDIObject *) ((wxPen *) x));
19227 }
19228 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19229 return (void *)((wxGDIObject *) ((wxFont *) x));
19230 }
19231 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19232 return (void *)((wxGDIObject *) ((wxCursor *) x));
19233 }
19234 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19235 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19236 }
19237 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19238 return (void *)((wxGDIObject *) ((wxRegion *) x));
19239 }
19240 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19241 return (void *)((wxGDIObject *) ((wxBrush *) x));
19242 }
19243 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}};
19244 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}};
19245 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}};
19246 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}};
19247 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}};
19248 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}};
19249 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}};
19250 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}};
19251 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}};
19252 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}};
19253 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}};
19254 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}};
19255 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}};
19256 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}};
19257 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}};
19258 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}};
19259 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}};
19260 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}};
19261 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}};
19262 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}};
19263 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}};
19264 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}};
19265 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}};
19266 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}};
19267 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}};
19268 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}};
19269 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}};
19270 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}};
19271 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}};
19272 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}};
19273 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}};
19274 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}};
19275 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}};
19276 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}};
19277 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}};
19278 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}};
19279 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}};
19280 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}};
19281 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}};
19282 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}};
19283 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}};
19284 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}};
19285 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}};
19286 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}};
19287 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}};
19288 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}};
19289 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}};
19290 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}};
19291 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}};
19292 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}};
19293 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}};
19294 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}};
19295 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}};
19296 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}};
19297 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}};
19298
19299 static swig_type_info *swig_types_initial[] = {
19300 _swigt__p_wxPostScriptDC,
19301 _swigt__p_wxBrush,
19302 _swigt__p_wxColour,
19303 _swigt__p_wxDC,
19304 _swigt__p_wxMirrorDC,
19305 _swigt__p_byte,
19306 _swigt__p_wxPyFontEnumerator,
19307 _swigt__p_char,
19308 _swigt__p_wxIconLocation,
19309 _swigt__p_wxImage,
19310 _swigt__p_wxMetaFileDC,
19311 _swigt__p_wxMask,
19312 _swigt__p_wxSize,
19313 _swigt__p_wxFont,
19314 _swigt__p_wxWindow,
19315 _swigt__p_double,
19316 _swigt__p_wxMemoryDC,
19317 _swigt__p_wxFontMapper,
19318 _swigt__p_wxEffects,
19319 _swigt__p_wxNativeEncodingInfo,
19320 _swigt__p_wxPalette,
19321 _swigt__p_wxBitmap,
19322 _swigt__p_wxObject,
19323 _swigt__p_wxRegionIterator,
19324 _swigt__p_wxRect,
19325 _swigt__p_wxString,
19326 _swigt__p_wxPrinterDC,
19327 _swigt__p_wxIconBundle,
19328 _swigt__p_wxPoint,
19329 _swigt__p_wxDash,
19330 _swigt__p_wxScreenDC,
19331 _swigt__p_wxCursor,
19332 _swigt__p_wxClientDC,
19333 _swigt__p_wxBufferedDC,
19334 _swigt__p_wxImageList,
19335 _swigt__p_unsigned_char,
19336 _swigt__p_wxGDIObject,
19337 _swigt__p_wxIcon,
19338 _swigt__p_wxLocale,
19339 _swigt__p_wxRegion,
19340 _swigt__p_wxLanguageInfo,
19341 _swigt__p_wxConfigBase,
19342 _swigt__p_wxWindowDC,
19343 _swigt__p_wxPrintData,
19344 _swigt__p_wxBrushList,
19345 _swigt__p_wxFontList,
19346 _swigt__p_wxPen,
19347 _swigt__p_wxBufferedPaintDC,
19348 _swigt__p_wxPaintDC,
19349 _swigt__p_wxPenList,
19350 _swigt__p_int,
19351 _swigt__p_wxMetaFile,
19352 _swigt__p_wxNativeFontInfo,
19353 _swigt__p_wxEncodingConverter,
19354 _swigt__p_wxColourDatabase,
19355 0
19356 };
19357
19358
19359 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19360
19361 static swig_const_info swig_const_table[] = {
19362 {0}};
19363
19364 #ifdef __cplusplus
19365 }
19366 #endif
19367
19368 #ifdef __cplusplus
19369 extern "C"
19370 #endif
19371 SWIGEXPORT(void) SWIG_init(void) {
19372 static PyObject *SWIG_globals = 0;
19373 static int typeinit = 0;
19374 PyObject *m, *d;
19375 int i;
19376 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19377 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19378 d = PyModule_GetDict(m);
19379
19380 if (!typeinit) {
19381 for (i = 0; swig_types_initial[i]; i++) {
19382 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19383 }
19384 typeinit = 1;
19385 }
19386 SWIG_InstallConstants(d,swig_const_table);
19387
19388 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19389 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19390 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19391 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19392 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19393 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19394 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19395 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19396 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19397 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19398 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19399 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19400 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19401 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19402 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19403 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19404 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19405 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19406 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19407 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19408 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19409 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19410 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19411 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19412 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19413 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19414 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19415 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19416 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19417 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19418 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19419 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19420 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19421 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19422 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19423 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19424 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19425 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19426 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19427 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19428 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19429 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19430 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19431 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19432 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19433 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19434 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19435 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19436 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19437 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19438 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19439 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19440 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19441 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19442 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19443 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19444 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19445 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19446 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19447 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19448 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19449 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19450 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19451 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19452 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19453 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19454 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19455 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19456 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19457 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19458 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19459 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19460 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19461 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19462 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19463 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19464 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19465 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19466 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19467 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19468 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19469 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19470 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19471 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19472 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19473 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19474 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19475 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19476 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19477 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19478 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19479 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19480 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19481 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19482 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19483 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19484 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19485 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19486 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19487 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19488 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19489 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19490 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19491 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19492 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19493 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19494 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19495 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19496 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19497 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19498 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19499 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19500 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19501 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19502 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19503 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19504 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19505 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19506 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19507 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19508 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19509 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19510 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19511 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19512 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19513 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19514 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19515
19516 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19517
19518 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19519 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19520 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19521 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19522 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19523 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19524 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19525 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19526 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19527 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19528 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19529 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19530 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19531 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19532 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19533 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19534 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19535 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19536 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19537 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19538 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19539 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19540 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19541 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19542 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19543 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19544 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19545 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19546 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19547 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19548 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19549 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19550 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19551 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19552 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19553 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19554 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19555 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19556 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19557 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19558 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19559 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19560 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19561 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19562 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19563 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19564 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19565 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19566 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19567 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19568 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19569 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19570 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19571 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19572 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19573 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19574 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19575 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19576 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19577 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19578 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19579 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19580 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19581 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19582 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19583 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19584 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19585 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19586 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19587 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19588 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19589 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19590 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19591 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19592 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19593 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19594 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19595 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19596 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19597 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19598 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19599 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19600 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19601 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19602 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19603 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19604 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19605 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19606 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19607 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19608 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19609 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19610 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19611 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19612 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19613 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19614 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19615 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19616 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19617 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19618 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19619 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19620 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19621 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19622 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19623 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19624 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19625 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19626 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19627 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19628 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19629 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19630 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19631 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19632 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19633 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19634 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19635 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19636 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19637 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19638 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19639 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19640 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19641 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19642 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19643 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19644 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19645 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19646 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19647 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19648 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19649 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19650 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19651 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19652 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19653 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19654 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19655 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19656 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19657 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19658 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19659 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19660 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19661 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19662 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19663 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19664 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19665 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19666 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19667 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19668 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19669 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19670 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19671 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19672 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19673 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19674 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19675 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19676 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19677 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19678 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19679 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19680 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19681 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19682 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19683 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19684 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19685 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19686 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19687 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19688 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19689 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19690 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19691 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19692 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19693 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19694 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19695 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19696 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19697 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19698 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19699 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19700 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19701 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19702 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19703 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19704 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19705 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19706 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19707 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19708 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19709 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19710 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19711 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19712 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19713 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19714 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19715 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19716 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19717 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19718 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19719 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19720 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19721 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19722 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19723 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19724 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19725 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19726 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19727 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19728 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19729 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19730 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19731 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19732 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19733 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19734 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19735 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19736 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19737 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19738 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19739 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19740 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19741 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19742 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19743 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19744 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19745 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19746 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19747 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19748 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19749 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19750 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19751 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19752 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19753 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19754 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19755 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19756 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19757 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19758 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19759 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19760 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19761 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19762 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19763 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19764 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19765 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19766 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19767 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19768 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19769 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19770 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19771 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19772 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19773 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19774 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19775 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19776 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19777 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19778 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19779 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19780 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19781 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19782 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19783 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19784 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19785 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19786 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19787 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19788 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19789 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19790 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19791 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19792 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19793 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19794 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19795 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19796 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19797 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19798 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19799 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19800 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19801 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19802 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19803 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19804 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19805 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19806 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19807 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19808 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19809 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19810 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19811 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19812 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19813 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19814 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19815 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19816 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19817 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19818
19819 // Work around a chicken/egg problem in drawlist.cpp
19820 wxPyDrawList_SetAPIPtr();
19821
19822 }
19823