]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
Sorted and added StaticBox, StaticLine
[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 PyList_Append(retval, PyInt_FromLong(dashes[x]));
540 wxPyEndBlockThreads(blocked);
541 return retval;
542 }
543 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
544 bool blocked = wxPyBeginBlockThreads();
545 int size = PyList_Size(pyDashes);
546 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
547
548 // black magic warning! The array of wxDashes needs to exist as
549 // long as the pen does because wxPen does not copy the array. So
550 // stick a copy in a Python string object and attach it to _self,
551 // and then call SetDashes with a pointer to that array. Then
552 // when the Python pen object is destroyed the array will be
553 // cleaned up too.
554 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
555 PyObject_SetAttrString(_self, "_dashes", strDashes);
556
557 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
558 delete [] dashes;
559 Py_DECREF(strDashes);
560 wxPyEndBlockThreads(blocked);
561 }
562 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
563 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
564
565 SWIGSTATICINLINE(short)
566 SWIG_AsShort(PyObject *obj)
567 {
568 return swig_numeric_cast(short,
569 SWIG_CheckLongInRange(SWIG_AsLong(obj),
570 "short", SHRT_MIN, SHRT_MAX));
571 }
572
573
574 SWIGSTATICINLINE(int)
575 SWIG_CheckShort(PyObject* obj)
576 {
577 SWIG_AsShort(obj);
578 if (PyErr_Occurred()) {
579 PyErr_Clear();
580 return 0;
581 } else {
582 return 1;
583 }
584 }
585
586
587 #include <wx/image.h>
588
589 static char** ConvertListOfStrings(PyObject* listOfStrings) {
590 char** cArray = NULL;
591 int count;
592
593 if (!PyList_Check(listOfStrings)) {
594 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
595 return NULL;
596 }
597 count = PyList_Size(listOfStrings);
598 cArray = new char*[count];
599
600 for(int x=0; x<count; x++) {
601 // TODO: Need some validation and error checking here
602 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
603 }
604 return cArray;
605 }
606
607
608 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
609 char** cArray = NULL;
610 wxBitmap* bmp;
611
612 cArray = ConvertListOfStrings(listOfStrings);
613 if (! cArray)
614 return NULL;
615 bmp = new wxBitmap(cArray);
616 delete [] cArray;
617 return bmp;
618 }
619 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
620 char* buf;
621 int length;
622 PyString_AsStringAndSize(bits, &buf, &length);
623 return new wxBitmap(buf, width, height, depth);
624 }
625 wxSize wxBitmap_GetSize(wxBitmap *self){
626 wxSize size(self->GetWidth(), self->GetHeight());
627 return size;
628 }
629 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
630 wxMask *mask = new wxMask(*self, colour);
631 self->SetMask(mask);
632 }
633 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
634 self->SetWidth(size.x);
635 self->SetHeight(size.y);
636 }
637 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
638 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
639 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
640 if ( !colour.Ok() )
641 return new wxMask(bitmap, *wxBLACK);
642 else
643 return new wxMask(bitmap, colour);
644 }
645
646 #include <wx/iconbndl.h>
647
648 wxIcon *new_wxIcon(wxBitmap const &bmp){
649 wxIcon* icon = new wxIcon();
650 icon->CopyFromBitmap(bmp);
651 return icon;
652 }
653 wxIcon *new_wxIcon(PyObject *listOfStrings){
654 char** cArray = NULL;
655 wxIcon* icon;
656
657 cArray = ConvertListOfStrings(listOfStrings);
658 if (! cArray)
659 return NULL;
660 icon = new wxIcon(cArray);
661 delete [] cArray;
662 return icon;
663 }
664 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
665
666
667
668 return new wxIconLocation(*filename);
669
670 }
671 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
672
673
674
675 // do nothing
676
677 }
678 int wxIconLocation_GetIndex(wxIconLocation *self){
679
680
681
682 return -1;
683
684 }
685
686 SWIGSTATICINLINE(int)
687 SWIG_CheckLong(PyObject* obj)
688 {
689 SWIG_AsLong(obj);
690 if (PyErr_Occurred()) {
691 PyErr_Clear();
692 return 0;
693 } else {
694 return 1;
695 }
696 }
697
698 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
699 #ifdef __WXGTK__
700 wxCHECK_MSG(False, NULL,
701 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
702 #else
703 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
704 #endif
705 }
706
707
708 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
709 wxPyRaiseNotImplemented();
710 return NULL;
711 }
712 void wxRegionIterator_Next(wxRegionIterator *self){
713 (*self) ++;
714 }
715 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
716 return self->operator bool();
717 }
718
719 #include <wx/fontutil.h>
720 #include <wx/fontmap.h>
721 #include <wx/fontenum.h>
722
723 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
724 return self->ToString();
725 }
726
727 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
728 static wxNativeEncodingInfo info;
729 if ( wxGetNativeFontEncoding(encoding, &info) )
730 return &info;
731 else
732 return NULL;
733 }
734
735 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
736 wxFontEncoding alt_enc;
737 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
738 return PyInt_FromLong(alt_enc);
739 else {
740 Py_INCREF(Py_None);
741 return Py_None;
742 }
743 }
744 wxFont *new_wxFont(wxString const &info){
745 wxNativeFontInfo nfi;
746 nfi.FromString(info);
747 return new wxFont(nfi);
748 }
749 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
750 return wxFont::New(pointSize, family, flags, face, encoding);
751 }
752 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
753 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
754
755 class wxPyFontEnumerator : public wxFontEnumerator {
756 public:
757 wxPyFontEnumerator() {}
758 ~wxPyFontEnumerator() {}
759
760 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
761 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
762
763 PYPRIVATE;
764 };
765
766 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
767 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
768
769
770 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
771 wxArrayString* arr = self->GetEncodings();
772 return wxArrayString2PyList_helper(*arr);
773 }
774 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
775 wxArrayString* arr = self->GetFacenames();
776 return wxArrayString2PyList_helper(*arr);
777 }
778
779
780
781 #include "wx/wxPython/pydrawxxx.h"
782
783 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
784 wxColour col;
785 self->GetPixel(x, y, &col);
786 return col;
787 }
788 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
789 wxColour col;
790 self->GetPixel(pt, &col);
791 return col;
792 }
793
794 SWIGSTATICINLINE(double)
795 SWIG_AsDouble(PyObject *obj)
796 {
797 if (PyNumber_Check(obj))
798 return PyFloat_AsDouble(obj);
799 else {
800 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
801 obj->ob_type->tp_name);
802 PyErr_SetObject(PyExc_TypeError, errmsg);
803 Py_DECREF(errmsg);
804 return 0;
805 }
806 }
807
808
809 SWIGSTATICINLINE(int)
810 SWIG_CheckDouble(PyObject* obj)
811 {
812 SWIG_AsDouble(obj);
813 if (PyErr_Occurred()) {
814 PyErr_Clear();
815 return 0;
816 } else {
817 return 1;
818 }
819 }
820
821 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
822 wxRect rv;
823 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
824 return rv;
825 }
826 wxRect wxDC_GetClippingRect(wxDC *self){
827 wxRect rect;
828 self->GetClippingBox(rect);
829 return rect;
830 }
831 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
832 wxArrayInt widths;
833 self->GetPartialTextExtents(text, widths);
834 return widths;
835 }
836 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
837 self->SetLogicalOrigin(point.x, point.y);
838 }
839 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
840 self->SetDeviceOrigin(point.x, point.y);
841 }
842 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
843 self->CalcBoundingBox(point.x, point.y);
844 }
845 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
846 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
847 }
848 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
849 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
850 }
851 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
852 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
853 }
854 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
855 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
856 }
857 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
858 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
859 }
860 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
861 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
862 }
863
864 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
865 *x1 = dc->MinX();
866 *y1 = dc->MinY();
867 *x2 = dc->MaxX();
868 *y2 = dc->MaxY();
869 }
870
871
872 #include <wx/dcbuffer.h>
873
874
875 #include <wx/dcps.h>
876
877
878 #include <wx/metafile.h>
879
880
881
882 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
883 self->AddColour(name, wxColour(red, green, blue));
884 }
885
886 #include <wx/effects.h>
887
888 #ifdef __cplusplus
889 extern "C" {
890 #endif
891 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
892 PyObject *resultobj;
893 wxGDIObject *result;
894 char *kwnames[] = {
895 NULL
896 };
897
898 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
899 {
900 PyThreadState* __tstate = wxPyBeginAllowThreads();
901 result = (wxGDIObject *)new wxGDIObject();
902
903 wxPyEndAllowThreads(__tstate);
904 if (PyErr_Occurred()) SWIG_fail;
905 }
906 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
907 return resultobj;
908 fail:
909 return NULL;
910 }
911
912
913 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
914 PyObject *resultobj;
915 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
916 PyObject * obj0 = 0 ;
917 char *kwnames[] = {
918 (char *) "self", NULL
919 };
920
921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
924 {
925 PyThreadState* __tstate = wxPyBeginAllowThreads();
926 delete arg1;
927
928 wxPyEndAllowThreads(__tstate);
929 if (PyErr_Occurred()) SWIG_fail;
930 }
931 Py_INCREF(Py_None); resultobj = Py_None;
932 return resultobj;
933 fail:
934 return NULL;
935 }
936
937
938 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
939 PyObject *resultobj;
940 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
941 bool result;
942 PyObject * obj0 = 0 ;
943 char *kwnames[] = {
944 (char *) "self", NULL
945 };
946
947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
950 {
951 PyThreadState* __tstate = wxPyBeginAllowThreads();
952 result = (bool)(arg1)->GetVisible();
953
954 wxPyEndAllowThreads(__tstate);
955 if (PyErr_Occurred()) SWIG_fail;
956 }
957 {
958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
959 }
960 return resultobj;
961 fail:
962 return NULL;
963 }
964
965
966 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
967 PyObject *resultobj;
968 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
969 bool arg2 ;
970 PyObject * obj0 = 0 ;
971 PyObject * obj1 = 0 ;
972 char *kwnames[] = {
973 (char *) "self",(char *) "visible", NULL
974 };
975
976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
979 arg2 = (bool) SWIG_AsBool(obj1);
980 if (PyErr_Occurred()) SWIG_fail;
981 {
982 PyThreadState* __tstate = wxPyBeginAllowThreads();
983 (arg1)->SetVisible(arg2);
984
985 wxPyEndAllowThreads(__tstate);
986 if (PyErr_Occurred()) SWIG_fail;
987 }
988 Py_INCREF(Py_None); resultobj = Py_None;
989 return resultobj;
990 fail:
991 return NULL;
992 }
993
994
995 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
996 PyObject *resultobj;
997 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
998 bool result;
999 PyObject * obj0 = 0 ;
1000 char *kwnames[] = {
1001 (char *) "self", NULL
1002 };
1003
1004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1007 {
1008 PyThreadState* __tstate = wxPyBeginAllowThreads();
1009 result = (bool)(arg1)->IsNull();
1010
1011 wxPyEndAllowThreads(__tstate);
1012 if (PyErr_Occurred()) SWIG_fail;
1013 }
1014 {
1015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1016 }
1017 return resultobj;
1018 fail:
1019 return NULL;
1020 }
1021
1022
1023 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1024 PyObject *obj;
1025 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1026 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1027 Py_INCREF(obj);
1028 return Py_BuildValue((char *)"");
1029 }
1030 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1031 PyObject *resultobj;
1032 unsigned char arg1 = (unsigned char) 0 ;
1033 unsigned char arg2 = (unsigned char) 0 ;
1034 unsigned char arg3 = (unsigned char) 0 ;
1035 wxColour *result;
1036 PyObject * obj0 = 0 ;
1037 PyObject * obj1 = 0 ;
1038 PyObject * obj2 = 0 ;
1039 char *kwnames[] = {
1040 (char *) "red",(char *) "green",(char *) "blue", NULL
1041 };
1042
1043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1044 if (obj0) {
1045 arg1 = (unsigned char) SWIG_AsUnsignedChar(obj0);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 if (obj1) {
1049 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1050 if (PyErr_Occurred()) SWIG_fail;
1051 }
1052 if (obj2) {
1053 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1054 if (PyErr_Occurred()) SWIG_fail;
1055 }
1056 {
1057 PyThreadState* __tstate = wxPyBeginAllowThreads();
1058 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1059
1060 wxPyEndAllowThreads(__tstate);
1061 if (PyErr_Occurred()) SWIG_fail;
1062 }
1063 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1064 return resultobj;
1065 fail:
1066 return NULL;
1067 }
1068
1069
1070 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1071 PyObject *resultobj;
1072 wxString *arg1 = 0 ;
1073 wxColour *result;
1074 bool temp1 = False ;
1075 PyObject * obj0 = 0 ;
1076 char *kwnames[] = {
1077 (char *) "colorName", NULL
1078 };
1079
1080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1081 {
1082 arg1 = wxString_in_helper(obj0);
1083 if (arg1 == NULL) SWIG_fail;
1084 temp1 = True;
1085 }
1086 {
1087 PyThreadState* __tstate = wxPyBeginAllowThreads();
1088 result = (wxColour *)new wxColour((wxString const &)*arg1);
1089
1090 wxPyEndAllowThreads(__tstate);
1091 if (PyErr_Occurred()) SWIG_fail;
1092 }
1093 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1094 {
1095 if (temp1)
1096 delete arg1;
1097 }
1098 return resultobj;
1099 fail:
1100 {
1101 if (temp1)
1102 delete arg1;
1103 }
1104 return NULL;
1105 }
1106
1107
1108 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1109 PyObject *resultobj;
1110 unsigned long arg1 ;
1111 wxColour *result;
1112 PyObject * obj0 = 0 ;
1113 char *kwnames[] = {
1114 (char *) "colRGB", NULL
1115 };
1116
1117 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1118 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1119 if (PyErr_Occurred()) SWIG_fail;
1120 {
1121 PyThreadState* __tstate = wxPyBeginAllowThreads();
1122 result = (wxColour *)new wxColour(arg1);
1123
1124 wxPyEndAllowThreads(__tstate);
1125 if (PyErr_Occurred()) SWIG_fail;
1126 }
1127 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1128 return resultobj;
1129 fail:
1130 return NULL;
1131 }
1132
1133
1134 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1135 PyObject *resultobj;
1136 wxColour *arg1 = (wxColour *) 0 ;
1137 PyObject * obj0 = 0 ;
1138 char *kwnames[] = {
1139 (char *) "self", NULL
1140 };
1141
1142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1145 {
1146 PyThreadState* __tstate = wxPyBeginAllowThreads();
1147 delete arg1;
1148
1149 wxPyEndAllowThreads(__tstate);
1150 if (PyErr_Occurred()) SWIG_fail;
1151 }
1152 Py_INCREF(Py_None); resultobj = Py_None;
1153 return resultobj;
1154 fail:
1155 return NULL;
1156 }
1157
1158
1159 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1160 PyObject *resultobj;
1161 wxColour *arg1 = (wxColour *) 0 ;
1162 unsigned char result;
1163 PyObject * obj0 = 0 ;
1164 char *kwnames[] = {
1165 (char *) "self", NULL
1166 };
1167
1168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1171 {
1172 PyThreadState* __tstate = wxPyBeginAllowThreads();
1173 result = (unsigned char)(arg1)->Red();
1174
1175 wxPyEndAllowThreads(__tstate);
1176 if (PyErr_Occurred()) SWIG_fail;
1177 }
1178 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1179 return resultobj;
1180 fail:
1181 return NULL;
1182 }
1183
1184
1185 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1186 PyObject *resultobj;
1187 wxColour *arg1 = (wxColour *) 0 ;
1188 unsigned char result;
1189 PyObject * obj0 = 0 ;
1190 char *kwnames[] = {
1191 (char *) "self", NULL
1192 };
1193
1194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1197 {
1198 PyThreadState* __tstate = wxPyBeginAllowThreads();
1199 result = (unsigned char)(arg1)->Green();
1200
1201 wxPyEndAllowThreads(__tstate);
1202 if (PyErr_Occurred()) SWIG_fail;
1203 }
1204 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1205 return resultobj;
1206 fail:
1207 return NULL;
1208 }
1209
1210
1211 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1212 PyObject *resultobj;
1213 wxColour *arg1 = (wxColour *) 0 ;
1214 unsigned char result;
1215 PyObject * obj0 = 0 ;
1216 char *kwnames[] = {
1217 (char *) "self", NULL
1218 };
1219
1220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1223 {
1224 PyThreadState* __tstate = wxPyBeginAllowThreads();
1225 result = (unsigned char)(arg1)->Blue();
1226
1227 wxPyEndAllowThreads(__tstate);
1228 if (PyErr_Occurred()) SWIG_fail;
1229 }
1230 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1231 return resultobj;
1232 fail:
1233 return NULL;
1234 }
1235
1236
1237 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1238 PyObject *resultobj;
1239 wxColour *arg1 = (wxColour *) 0 ;
1240 bool result;
1241 PyObject * obj0 = 0 ;
1242 char *kwnames[] = {
1243 (char *) "self", NULL
1244 };
1245
1246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1249 {
1250 PyThreadState* __tstate = wxPyBeginAllowThreads();
1251 result = (bool)(arg1)->Ok();
1252
1253 wxPyEndAllowThreads(__tstate);
1254 if (PyErr_Occurred()) SWIG_fail;
1255 }
1256 {
1257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1258 }
1259 return resultobj;
1260 fail:
1261 return NULL;
1262 }
1263
1264
1265 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1266 PyObject *resultobj;
1267 wxColour *arg1 = (wxColour *) 0 ;
1268 unsigned char arg2 ;
1269 unsigned char arg3 ;
1270 unsigned char arg4 ;
1271 PyObject * obj0 = 0 ;
1272 PyObject * obj1 = 0 ;
1273 PyObject * obj2 = 0 ;
1274 PyObject * obj3 = 0 ;
1275 char *kwnames[] = {
1276 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1277 };
1278
1279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1282 arg2 = (unsigned char) SWIG_AsUnsignedChar(obj1);
1283 if (PyErr_Occurred()) SWIG_fail;
1284 arg3 = (unsigned char) SWIG_AsUnsignedChar(obj2);
1285 if (PyErr_Occurred()) SWIG_fail;
1286 arg4 = (unsigned char) SWIG_AsUnsignedChar(obj3);
1287 if (PyErr_Occurred()) SWIG_fail;
1288 {
1289 PyThreadState* __tstate = wxPyBeginAllowThreads();
1290 (arg1)->Set(arg2,arg3,arg4);
1291
1292 wxPyEndAllowThreads(__tstate);
1293 if (PyErr_Occurred()) SWIG_fail;
1294 }
1295 Py_INCREF(Py_None); resultobj = Py_None;
1296 return resultobj;
1297 fail:
1298 return NULL;
1299 }
1300
1301
1302 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1303 PyObject *resultobj;
1304 wxColour *arg1 = (wxColour *) 0 ;
1305 unsigned long arg2 ;
1306 PyObject * obj0 = 0 ;
1307 PyObject * obj1 = 0 ;
1308 char *kwnames[] = {
1309 (char *) "self",(char *) "colRGB", NULL
1310 };
1311
1312 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1313 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1314 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1315 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1316 if (PyErr_Occurred()) SWIG_fail;
1317 {
1318 PyThreadState* __tstate = wxPyBeginAllowThreads();
1319 (arg1)->Set(arg2);
1320
1321 wxPyEndAllowThreads(__tstate);
1322 if (PyErr_Occurred()) SWIG_fail;
1323 }
1324 Py_INCREF(Py_None); resultobj = Py_None;
1325 return resultobj;
1326 fail:
1327 return NULL;
1328 }
1329
1330
1331 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1332 PyObject *resultobj;
1333 wxColour *arg1 = (wxColour *) 0 ;
1334 wxString *arg2 = 0 ;
1335 bool temp2 = False ;
1336 PyObject * obj0 = 0 ;
1337 PyObject * obj1 = 0 ;
1338 char *kwnames[] = {
1339 (char *) "self",(char *) "colourName", NULL
1340 };
1341
1342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1345 {
1346 arg2 = wxString_in_helper(obj1);
1347 if (arg2 == NULL) SWIG_fail;
1348 temp2 = True;
1349 }
1350 {
1351 PyThreadState* __tstate = wxPyBeginAllowThreads();
1352 (arg1)->InitFromName((wxString const &)*arg2);
1353
1354 wxPyEndAllowThreads(__tstate);
1355 if (PyErr_Occurred()) SWIG_fail;
1356 }
1357 Py_INCREF(Py_None); resultobj = Py_None;
1358 {
1359 if (temp2)
1360 delete arg2;
1361 }
1362 return resultobj;
1363 fail:
1364 {
1365 if (temp2)
1366 delete arg2;
1367 }
1368 return NULL;
1369 }
1370
1371
1372 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1373 PyObject *resultobj;
1374 wxColour *arg1 = (wxColour *) 0 ;
1375 long result;
1376 PyObject * obj0 = 0 ;
1377 char *kwnames[] = {
1378 (char *) "self", NULL
1379 };
1380
1381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1384 {
1385 PyThreadState* __tstate = wxPyBeginAllowThreads();
1386 result = (long)((wxColour const *)arg1)->GetPixel();
1387
1388 wxPyEndAllowThreads(__tstate);
1389 if (PyErr_Occurred()) SWIG_fail;
1390 }
1391 resultobj = SWIG_FromLong((long)result);
1392 return resultobj;
1393 fail:
1394 return NULL;
1395 }
1396
1397
1398 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1399 PyObject *resultobj;
1400 wxColour *arg1 = (wxColour *) 0 ;
1401 wxColour *arg2 = 0 ;
1402 bool result;
1403 wxColour temp2 ;
1404 PyObject * obj0 = 0 ;
1405 PyObject * obj1 = 0 ;
1406 char *kwnames[] = {
1407 (char *) "self",(char *) "colour", NULL
1408 };
1409
1410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1413 {
1414 arg2 = &temp2;
1415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1416 }
1417 {
1418 PyThreadState* __tstate = wxPyBeginAllowThreads();
1419 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1420
1421 wxPyEndAllowThreads(__tstate);
1422 if (PyErr_Occurred()) SWIG_fail;
1423 }
1424 {
1425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1426 }
1427 return resultobj;
1428 fail:
1429 return NULL;
1430 }
1431
1432
1433 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1434 PyObject *resultobj;
1435 wxColour *arg1 = (wxColour *) 0 ;
1436 wxColour *arg2 = 0 ;
1437 bool result;
1438 wxColour temp2 ;
1439 PyObject * obj0 = 0 ;
1440 PyObject * obj1 = 0 ;
1441 char *kwnames[] = {
1442 (char *) "self",(char *) "colour", NULL
1443 };
1444
1445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1448 {
1449 arg2 = &temp2;
1450 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1451 }
1452 {
1453 PyThreadState* __tstate = wxPyBeginAllowThreads();
1454 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1455
1456 wxPyEndAllowThreads(__tstate);
1457 if (PyErr_Occurred()) SWIG_fail;
1458 }
1459 {
1460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1461 }
1462 return resultobj;
1463 fail:
1464 return NULL;
1465 }
1466
1467
1468 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1469 PyObject *resultobj;
1470 wxColour *arg1 = (wxColour *) 0 ;
1471 PyObject *result;
1472 PyObject * obj0 = 0 ;
1473 char *kwnames[] = {
1474 (char *) "self", NULL
1475 };
1476
1477 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1478 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1480 {
1481 PyThreadState* __tstate = wxPyBeginAllowThreads();
1482 result = (PyObject *)wxColour_Get(arg1);
1483
1484 wxPyEndAllowThreads(__tstate);
1485 if (PyErr_Occurred()) SWIG_fail;
1486 }
1487 resultobj = result;
1488 return resultobj;
1489 fail:
1490 return NULL;
1491 }
1492
1493
1494 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1495 PyObject *resultobj;
1496 wxColour *arg1 = (wxColour *) 0 ;
1497 unsigned long result;
1498 PyObject * obj0 = 0 ;
1499 char *kwnames[] = {
1500 (char *) "self", NULL
1501 };
1502
1503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1506 {
1507 PyThreadState* __tstate = wxPyBeginAllowThreads();
1508 result = (unsigned long)wxColour_GetRGB(arg1);
1509
1510 wxPyEndAllowThreads(__tstate);
1511 if (PyErr_Occurred()) SWIG_fail;
1512 }
1513 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1514 return resultobj;
1515 fail:
1516 return NULL;
1517 }
1518
1519
1520 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1521 PyObject *obj;
1522 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1523 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1524 Py_INCREF(obj);
1525 return Py_BuildValue((char *)"");
1526 }
1527 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1528 PyObject *resultobj;
1529 int arg1 ;
1530 unsigned char *arg2 = (unsigned char *) 0 ;
1531 unsigned char *arg3 = (unsigned char *) 0 ;
1532 unsigned char *arg4 = (unsigned char *) 0 ;
1533 wxPalette *result;
1534 PyObject * obj0 = 0 ;
1535 PyObject * obj1 = 0 ;
1536 PyObject * obj2 = 0 ;
1537 PyObject * obj3 = 0 ;
1538 char *kwnames[] = {
1539 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1540 };
1541
1542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1543 arg1 = (int) SWIG_AsInt(obj0);
1544 if (PyErr_Occurred()) SWIG_fail;
1545 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1547 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1549 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1551 {
1552 PyThreadState* __tstate = wxPyBeginAllowThreads();
1553 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1554
1555 wxPyEndAllowThreads(__tstate);
1556 if (PyErr_Occurred()) SWIG_fail;
1557 }
1558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1559 return resultobj;
1560 fail:
1561 return NULL;
1562 }
1563
1564
1565 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1566 PyObject *resultobj;
1567 wxPalette *arg1 = (wxPalette *) 0 ;
1568 PyObject * obj0 = 0 ;
1569 char *kwnames[] = {
1570 (char *) "self", NULL
1571 };
1572
1573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1576 {
1577 PyThreadState* __tstate = wxPyBeginAllowThreads();
1578 delete arg1;
1579
1580 wxPyEndAllowThreads(__tstate);
1581 if (PyErr_Occurred()) SWIG_fail;
1582 }
1583 Py_INCREF(Py_None); resultobj = Py_None;
1584 return resultobj;
1585 fail:
1586 return NULL;
1587 }
1588
1589
1590 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1591 PyObject *resultobj;
1592 wxPalette *arg1 = (wxPalette *) 0 ;
1593 byte arg2 ;
1594 byte arg3 ;
1595 byte arg4 ;
1596 int result;
1597 PyObject * obj0 = 0 ;
1598 PyObject * obj1 = 0 ;
1599 PyObject * obj2 = 0 ;
1600 PyObject * obj3 = 0 ;
1601 char *kwnames[] = {
1602 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1603 };
1604
1605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1608 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1609 if (PyErr_Occurred()) SWIG_fail;
1610 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1611 if (PyErr_Occurred()) SWIG_fail;
1612 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1613 if (PyErr_Occurred()) SWIG_fail;
1614 {
1615 PyThreadState* __tstate = wxPyBeginAllowThreads();
1616 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1617
1618 wxPyEndAllowThreads(__tstate);
1619 if (PyErr_Occurred()) SWIG_fail;
1620 }
1621 resultobj = SWIG_FromInt((int)result);
1622 return resultobj;
1623 fail:
1624 return NULL;
1625 }
1626
1627
1628 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1629 PyObject *resultobj;
1630 wxPalette *arg1 = (wxPalette *) 0 ;
1631 int arg2 ;
1632 byte *arg3 = (byte *) 0 ;
1633 byte *arg4 = (byte *) 0 ;
1634 byte *arg5 = (byte *) 0 ;
1635 bool result;
1636 byte temp3 ;
1637 byte temp4 ;
1638 byte temp5 ;
1639 PyObject * obj0 = 0 ;
1640 PyObject * obj1 = 0 ;
1641 char *kwnames[] = {
1642 (char *) "self",(char *) "pixel", NULL
1643 };
1644
1645 arg3 = &temp3;
1646 arg4 = &temp4;
1647 arg5 = &temp5;
1648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1651 arg2 = (int) SWIG_AsInt(obj1);
1652 if (PyErr_Occurred()) SWIG_fail;
1653 {
1654 PyThreadState* __tstate = wxPyBeginAllowThreads();
1655 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1656
1657 wxPyEndAllowThreads(__tstate);
1658 if (PyErr_Occurred()) SWIG_fail;
1659 }
1660 {
1661 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1662 }
1663 {
1664 PyObject *o = PyInt_FromLong((long) (*arg3));
1665 resultobj = t_output_helper(resultobj,o);
1666 }
1667 {
1668 PyObject *o = PyInt_FromLong((long) (*arg4));
1669 resultobj = t_output_helper(resultobj,o);
1670 }
1671 {
1672 PyObject *o = PyInt_FromLong((long) (*arg5));
1673 resultobj = t_output_helper(resultobj,o);
1674 }
1675 return resultobj;
1676 fail:
1677 return NULL;
1678 }
1679
1680
1681 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1682 PyObject *resultobj;
1683 wxPalette *arg1 = (wxPalette *) 0 ;
1684 bool result;
1685 PyObject * obj0 = 0 ;
1686 char *kwnames[] = {
1687 (char *) "self", NULL
1688 };
1689
1690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1693 {
1694 PyThreadState* __tstate = wxPyBeginAllowThreads();
1695 result = (bool)(arg1)->Ok();
1696
1697 wxPyEndAllowThreads(__tstate);
1698 if (PyErr_Occurred()) SWIG_fail;
1699 }
1700 {
1701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1702 }
1703 return resultobj;
1704 fail:
1705 return NULL;
1706 }
1707
1708
1709 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1710 PyObject *obj;
1711 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1712 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1713 Py_INCREF(obj);
1714 return Py_BuildValue((char *)"");
1715 }
1716 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1717 PyObject *resultobj;
1718 wxColour *arg1 = 0 ;
1719 int arg2 = (int) 1 ;
1720 int arg3 = (int) wxSOLID ;
1721 wxPen *result;
1722 wxColour temp1 ;
1723 PyObject * obj0 = 0 ;
1724 PyObject * obj1 = 0 ;
1725 PyObject * obj2 = 0 ;
1726 char *kwnames[] = {
1727 (char *) "colour",(char *) "width",(char *) "style", NULL
1728 };
1729
1730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1731 {
1732 arg1 = &temp1;
1733 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1734 }
1735 if (obj1) {
1736 arg2 = (int) SWIG_AsInt(obj1);
1737 if (PyErr_Occurred()) SWIG_fail;
1738 }
1739 if (obj2) {
1740 arg3 = (int) SWIG_AsInt(obj2);
1741 if (PyErr_Occurred()) SWIG_fail;
1742 }
1743 {
1744 PyThreadState* __tstate = wxPyBeginAllowThreads();
1745 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1746
1747 wxPyEndAllowThreads(__tstate);
1748 if (PyErr_Occurred()) SWIG_fail;
1749 }
1750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1751 return resultobj;
1752 fail:
1753 return NULL;
1754 }
1755
1756
1757 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1758 PyObject *resultobj;
1759 wxPen *arg1 = (wxPen *) 0 ;
1760 PyObject * obj0 = 0 ;
1761 char *kwnames[] = {
1762 (char *) "self", NULL
1763 };
1764
1765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1768 {
1769 PyThreadState* __tstate = wxPyBeginAllowThreads();
1770 delete arg1;
1771
1772 wxPyEndAllowThreads(__tstate);
1773 if (PyErr_Occurred()) SWIG_fail;
1774 }
1775 Py_INCREF(Py_None); resultobj = Py_None;
1776 return resultobj;
1777 fail:
1778 return NULL;
1779 }
1780
1781
1782 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1783 PyObject *resultobj;
1784 wxPen *arg1 = (wxPen *) 0 ;
1785 int result;
1786 PyObject * obj0 = 0 ;
1787 char *kwnames[] = {
1788 (char *) "self", NULL
1789 };
1790
1791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1794 {
1795 PyThreadState* __tstate = wxPyBeginAllowThreads();
1796 result = (int)(arg1)->GetCap();
1797
1798 wxPyEndAllowThreads(__tstate);
1799 if (PyErr_Occurred()) SWIG_fail;
1800 }
1801 resultobj = SWIG_FromInt((int)result);
1802 return resultobj;
1803 fail:
1804 return NULL;
1805 }
1806
1807
1808 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1809 PyObject *resultobj;
1810 wxPen *arg1 = (wxPen *) 0 ;
1811 wxColour result;
1812 PyObject * obj0 = 0 ;
1813 char *kwnames[] = {
1814 (char *) "self", NULL
1815 };
1816
1817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1820 {
1821 PyThreadState* __tstate = wxPyBeginAllowThreads();
1822 result = (arg1)->GetColour();
1823
1824 wxPyEndAllowThreads(__tstate);
1825 if (PyErr_Occurred()) SWIG_fail;
1826 }
1827 {
1828 wxColour * resultptr;
1829 resultptr = new wxColour((wxColour &) result);
1830 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1831 }
1832 return resultobj;
1833 fail:
1834 return NULL;
1835 }
1836
1837
1838 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1839 PyObject *resultobj;
1840 wxPen *arg1 = (wxPen *) 0 ;
1841 int result;
1842 PyObject * obj0 = 0 ;
1843 char *kwnames[] = {
1844 (char *) "self", NULL
1845 };
1846
1847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1850 {
1851 PyThreadState* __tstate = wxPyBeginAllowThreads();
1852 result = (int)(arg1)->GetJoin();
1853
1854 wxPyEndAllowThreads(__tstate);
1855 if (PyErr_Occurred()) SWIG_fail;
1856 }
1857 resultobj = SWIG_FromInt((int)result);
1858 return resultobj;
1859 fail:
1860 return NULL;
1861 }
1862
1863
1864 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1865 PyObject *resultobj;
1866 wxPen *arg1 = (wxPen *) 0 ;
1867 int result;
1868 PyObject * obj0 = 0 ;
1869 char *kwnames[] = {
1870 (char *) "self", NULL
1871 };
1872
1873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1876 {
1877 PyThreadState* __tstate = wxPyBeginAllowThreads();
1878 result = (int)(arg1)->GetStyle();
1879
1880 wxPyEndAllowThreads(__tstate);
1881 if (PyErr_Occurred()) SWIG_fail;
1882 }
1883 resultobj = SWIG_FromInt((int)result);
1884 return resultobj;
1885 fail:
1886 return NULL;
1887 }
1888
1889
1890 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1891 PyObject *resultobj;
1892 wxPen *arg1 = (wxPen *) 0 ;
1893 int result;
1894 PyObject * obj0 = 0 ;
1895 char *kwnames[] = {
1896 (char *) "self", NULL
1897 };
1898
1899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1902 {
1903 PyThreadState* __tstate = wxPyBeginAllowThreads();
1904 result = (int)(arg1)->GetWidth();
1905
1906 wxPyEndAllowThreads(__tstate);
1907 if (PyErr_Occurred()) SWIG_fail;
1908 }
1909 resultobj = SWIG_FromInt((int)result);
1910 return resultobj;
1911 fail:
1912 return NULL;
1913 }
1914
1915
1916 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1917 PyObject *resultobj;
1918 wxPen *arg1 = (wxPen *) 0 ;
1919 bool result;
1920 PyObject * obj0 = 0 ;
1921 char *kwnames[] = {
1922 (char *) "self", NULL
1923 };
1924
1925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1928 {
1929 PyThreadState* __tstate = wxPyBeginAllowThreads();
1930 result = (bool)(arg1)->Ok();
1931
1932 wxPyEndAllowThreads(__tstate);
1933 if (PyErr_Occurred()) SWIG_fail;
1934 }
1935 {
1936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1937 }
1938 return resultobj;
1939 fail:
1940 return NULL;
1941 }
1942
1943
1944 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1945 PyObject *resultobj;
1946 wxPen *arg1 = (wxPen *) 0 ;
1947 int arg2 ;
1948 PyObject * obj0 = 0 ;
1949 PyObject * obj1 = 0 ;
1950 char *kwnames[] = {
1951 (char *) "self",(char *) "cap_style", NULL
1952 };
1953
1954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1957 arg2 = (int) SWIG_AsInt(obj1);
1958 if (PyErr_Occurred()) SWIG_fail;
1959 {
1960 PyThreadState* __tstate = wxPyBeginAllowThreads();
1961 (arg1)->SetCap(arg2);
1962
1963 wxPyEndAllowThreads(__tstate);
1964 if (PyErr_Occurred()) SWIG_fail;
1965 }
1966 Py_INCREF(Py_None); resultobj = Py_None;
1967 return resultobj;
1968 fail:
1969 return NULL;
1970 }
1971
1972
1973 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1974 PyObject *resultobj;
1975 wxPen *arg1 = (wxPen *) 0 ;
1976 wxColour *arg2 = 0 ;
1977 wxColour temp2 ;
1978 PyObject * obj0 = 0 ;
1979 PyObject * obj1 = 0 ;
1980 char *kwnames[] = {
1981 (char *) "self",(char *) "colour", NULL
1982 };
1983
1984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1987 {
1988 arg2 = &temp2;
1989 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1990 }
1991 {
1992 PyThreadState* __tstate = wxPyBeginAllowThreads();
1993 (arg1)->SetColour(*arg2);
1994
1995 wxPyEndAllowThreads(__tstate);
1996 if (PyErr_Occurred()) SWIG_fail;
1997 }
1998 Py_INCREF(Py_None); resultobj = Py_None;
1999 return resultobj;
2000 fail:
2001 return NULL;
2002 }
2003
2004
2005 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2006 PyObject *resultobj;
2007 wxPen *arg1 = (wxPen *) 0 ;
2008 int arg2 ;
2009 PyObject * obj0 = 0 ;
2010 PyObject * obj1 = 0 ;
2011 char *kwnames[] = {
2012 (char *) "self",(char *) "join_style", NULL
2013 };
2014
2015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2018 arg2 = (int) SWIG_AsInt(obj1);
2019 if (PyErr_Occurred()) SWIG_fail;
2020 {
2021 PyThreadState* __tstate = wxPyBeginAllowThreads();
2022 (arg1)->SetJoin(arg2);
2023
2024 wxPyEndAllowThreads(__tstate);
2025 if (PyErr_Occurred()) SWIG_fail;
2026 }
2027 Py_INCREF(Py_None); resultobj = Py_None;
2028 return resultobj;
2029 fail:
2030 return NULL;
2031 }
2032
2033
2034 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2035 PyObject *resultobj;
2036 wxPen *arg1 = (wxPen *) 0 ;
2037 int arg2 ;
2038 PyObject * obj0 = 0 ;
2039 PyObject * obj1 = 0 ;
2040 char *kwnames[] = {
2041 (char *) "self",(char *) "style", NULL
2042 };
2043
2044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2047 arg2 = (int) SWIG_AsInt(obj1);
2048 if (PyErr_Occurred()) SWIG_fail;
2049 {
2050 PyThreadState* __tstate = wxPyBeginAllowThreads();
2051 (arg1)->SetStyle(arg2);
2052
2053 wxPyEndAllowThreads(__tstate);
2054 if (PyErr_Occurred()) SWIG_fail;
2055 }
2056 Py_INCREF(Py_None); resultobj = Py_None;
2057 return resultobj;
2058 fail:
2059 return NULL;
2060 }
2061
2062
2063 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2064 PyObject *resultobj;
2065 wxPen *arg1 = (wxPen *) 0 ;
2066 int arg2 ;
2067 PyObject * obj0 = 0 ;
2068 PyObject * obj1 = 0 ;
2069 char *kwnames[] = {
2070 (char *) "self",(char *) "width", NULL
2071 };
2072
2073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2076 arg2 = (int) SWIG_AsInt(obj1);
2077 if (PyErr_Occurred()) SWIG_fail;
2078 {
2079 PyThreadState* __tstate = wxPyBeginAllowThreads();
2080 (arg1)->SetWidth(arg2);
2081
2082 wxPyEndAllowThreads(__tstate);
2083 if (PyErr_Occurred()) SWIG_fail;
2084 }
2085 Py_INCREF(Py_None); resultobj = Py_None;
2086 return resultobj;
2087 fail:
2088 return NULL;
2089 }
2090
2091
2092 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2093 PyObject *resultobj;
2094 wxPen *arg1 = (wxPen *) 0 ;
2095 int arg2 ;
2096 wxDash *arg3 = (wxDash *) 0 ;
2097 PyObject * obj0 = 0 ;
2098 PyObject * obj1 = 0 ;
2099 char *kwnames[] = {
2100 (char *) "self",(char *) "dashes", NULL
2101 };
2102
2103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2106 {
2107 arg2 = PyList_Size(obj1);
2108 arg3 = (wxDash*)byte_LIST_helper(obj1);
2109 if (arg3 == NULL) SWIG_fail;
2110 }
2111 {
2112 PyThreadState* __tstate = wxPyBeginAllowThreads();
2113 (arg1)->SetDashes(arg2,arg3);
2114
2115 wxPyEndAllowThreads(__tstate);
2116 if (PyErr_Occurred()) SWIG_fail;
2117 }
2118 Py_INCREF(Py_None); resultobj = Py_None;
2119 {
2120 if (arg3) delete [] arg3;
2121 }
2122 return resultobj;
2123 fail:
2124 {
2125 if (arg3) delete [] arg3;
2126 }
2127 return NULL;
2128 }
2129
2130
2131 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2132 PyObject *resultobj;
2133 wxPen *arg1 = (wxPen *) 0 ;
2134 PyObject *result;
2135 PyObject * obj0 = 0 ;
2136 char *kwnames[] = {
2137 (char *) "self", NULL
2138 };
2139
2140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2143 {
2144 PyThreadState* __tstate = wxPyBeginAllowThreads();
2145 result = (PyObject *)wxPen_GetDashes(arg1);
2146
2147 wxPyEndAllowThreads(__tstate);
2148 if (PyErr_Occurred()) SWIG_fail;
2149 }
2150 resultobj = result;
2151 return resultobj;
2152 fail:
2153 return NULL;
2154 }
2155
2156
2157 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2158 PyObject *resultobj;
2159 wxPen *arg1 = (wxPen *) 0 ;
2160 PyObject *arg2 = (PyObject *) 0 ;
2161 PyObject *arg3 = (PyObject *) 0 ;
2162 PyObject * obj0 = 0 ;
2163 PyObject * obj1 = 0 ;
2164 PyObject * obj2 = 0 ;
2165 char *kwnames[] = {
2166 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2167 };
2168
2169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2172 arg2 = obj1;
2173 arg3 = obj2;
2174 {
2175 PyThreadState* __tstate = wxPyBeginAllowThreads();
2176 wxPen__SetDashes(arg1,arg2,arg3);
2177
2178 wxPyEndAllowThreads(__tstate);
2179 if (PyErr_Occurred()) SWIG_fail;
2180 }
2181 Py_INCREF(Py_None); resultobj = Py_None;
2182 return resultobj;
2183 fail:
2184 return NULL;
2185 }
2186
2187
2188 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2189 PyObject *resultobj;
2190 wxPen *arg1 = (wxPen *) 0 ;
2191 wxPen *arg2 = (wxPen *) 0 ;
2192 bool result;
2193 PyObject * obj0 = 0 ;
2194 PyObject * obj1 = 0 ;
2195 char *kwnames[] = {
2196 (char *) "self",(char *) "other", NULL
2197 };
2198
2199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2202 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2204 {
2205 PyThreadState* __tstate = wxPyBeginAllowThreads();
2206 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2207
2208 wxPyEndAllowThreads(__tstate);
2209 if (PyErr_Occurred()) SWIG_fail;
2210 }
2211 {
2212 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2213 }
2214 return resultobj;
2215 fail:
2216 return NULL;
2217 }
2218
2219
2220 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2221 PyObject *resultobj;
2222 wxPen *arg1 = (wxPen *) 0 ;
2223 wxPen *arg2 = (wxPen *) 0 ;
2224 bool result;
2225 PyObject * obj0 = 0 ;
2226 PyObject * obj1 = 0 ;
2227 char *kwnames[] = {
2228 (char *) "self",(char *) "other", NULL
2229 };
2230
2231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2234 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2236 {
2237 PyThreadState* __tstate = wxPyBeginAllowThreads();
2238 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2239
2240 wxPyEndAllowThreads(__tstate);
2241 if (PyErr_Occurred()) SWIG_fail;
2242 }
2243 {
2244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2245 }
2246 return resultobj;
2247 fail:
2248 return NULL;
2249 }
2250
2251
2252 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2253 PyObject *obj;
2254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2255 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2256 Py_INCREF(obj);
2257 return Py_BuildValue((char *)"");
2258 }
2259 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2260 PyObject *resultobj;
2261 wxColour *arg1 = 0 ;
2262 int arg2 = (int) wxSOLID ;
2263 wxBrush *result;
2264 wxColour temp1 ;
2265 PyObject * obj0 = 0 ;
2266 PyObject * obj1 = 0 ;
2267 char *kwnames[] = {
2268 (char *) "colour",(char *) "style", NULL
2269 };
2270
2271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2272 {
2273 arg1 = &temp1;
2274 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2275 }
2276 if (obj1) {
2277 arg2 = (int) SWIG_AsInt(obj1);
2278 if (PyErr_Occurred()) SWIG_fail;
2279 }
2280 {
2281 PyThreadState* __tstate = wxPyBeginAllowThreads();
2282 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2283
2284 wxPyEndAllowThreads(__tstate);
2285 if (PyErr_Occurred()) SWIG_fail;
2286 }
2287 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2288 return resultobj;
2289 fail:
2290 return NULL;
2291 }
2292
2293
2294 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2295 PyObject *resultobj;
2296 wxBrush *arg1 = (wxBrush *) 0 ;
2297 PyObject * obj0 = 0 ;
2298 char *kwnames[] = {
2299 (char *) "self", NULL
2300 };
2301
2302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2305 {
2306 PyThreadState* __tstate = wxPyBeginAllowThreads();
2307 delete arg1;
2308
2309 wxPyEndAllowThreads(__tstate);
2310 if (PyErr_Occurred()) SWIG_fail;
2311 }
2312 Py_INCREF(Py_None); resultobj = Py_None;
2313 return resultobj;
2314 fail:
2315 return NULL;
2316 }
2317
2318
2319 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2320 PyObject *resultobj;
2321 wxBrush *arg1 = (wxBrush *) 0 ;
2322 wxColour *arg2 = 0 ;
2323 wxColour temp2 ;
2324 PyObject * obj0 = 0 ;
2325 PyObject * obj1 = 0 ;
2326 char *kwnames[] = {
2327 (char *) "self",(char *) "col", NULL
2328 };
2329
2330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2333 {
2334 arg2 = &temp2;
2335 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2336 }
2337 {
2338 PyThreadState* __tstate = wxPyBeginAllowThreads();
2339 (arg1)->SetColour((wxColour const &)*arg2);
2340
2341 wxPyEndAllowThreads(__tstate);
2342 if (PyErr_Occurred()) SWIG_fail;
2343 }
2344 Py_INCREF(Py_None); resultobj = Py_None;
2345 return resultobj;
2346 fail:
2347 return NULL;
2348 }
2349
2350
2351 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2352 PyObject *resultobj;
2353 wxBrush *arg1 = (wxBrush *) 0 ;
2354 int arg2 ;
2355 PyObject * obj0 = 0 ;
2356 PyObject * obj1 = 0 ;
2357 char *kwnames[] = {
2358 (char *) "self",(char *) "style", NULL
2359 };
2360
2361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2364 arg2 = (int) SWIG_AsInt(obj1);
2365 if (PyErr_Occurred()) SWIG_fail;
2366 {
2367 PyThreadState* __tstate = wxPyBeginAllowThreads();
2368 (arg1)->SetStyle(arg2);
2369
2370 wxPyEndAllowThreads(__tstate);
2371 if (PyErr_Occurred()) SWIG_fail;
2372 }
2373 Py_INCREF(Py_None); resultobj = Py_None;
2374 return resultobj;
2375 fail:
2376 return NULL;
2377 }
2378
2379
2380 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2381 PyObject *resultobj;
2382 wxBrush *arg1 = (wxBrush *) 0 ;
2383 wxBitmap *arg2 = 0 ;
2384 PyObject * obj0 = 0 ;
2385 PyObject * obj1 = 0 ;
2386 char *kwnames[] = {
2387 (char *) "self",(char *) "stipple", NULL
2388 };
2389
2390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2393 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2394 SWIG_POINTER_EXCEPTION | 0)) == -1)
2395 SWIG_fail;
2396 if (arg2 == NULL) {
2397 PyErr_SetString(PyExc_TypeError,"null reference");
2398 SWIG_fail;
2399 }
2400 {
2401 PyThreadState* __tstate = wxPyBeginAllowThreads();
2402 (arg1)->SetStipple((wxBitmap const &)*arg2);
2403
2404 wxPyEndAllowThreads(__tstate);
2405 if (PyErr_Occurred()) SWIG_fail;
2406 }
2407 Py_INCREF(Py_None); resultobj = Py_None;
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 wxBrush *arg1 = (wxBrush *) 0 ;
2417 wxColour result;
2418 PyObject * obj0 = 0 ;
2419 char *kwnames[] = {
2420 (char *) "self", NULL
2421 };
2422
2423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2426 {
2427 PyThreadState* __tstate = wxPyBeginAllowThreads();
2428 result = ((wxBrush const *)arg1)->GetColour();
2429
2430 wxPyEndAllowThreads(__tstate);
2431 if (PyErr_Occurred()) SWIG_fail;
2432 }
2433 {
2434 wxColour * resultptr;
2435 resultptr = new wxColour((wxColour &) result);
2436 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2437 }
2438 return resultobj;
2439 fail:
2440 return NULL;
2441 }
2442
2443
2444 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2445 PyObject *resultobj;
2446 wxBrush *arg1 = (wxBrush *) 0 ;
2447 int result;
2448 PyObject * obj0 = 0 ;
2449 char *kwnames[] = {
2450 (char *) "self", NULL
2451 };
2452
2453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2456 {
2457 PyThreadState* __tstate = wxPyBeginAllowThreads();
2458 result = (int)((wxBrush const *)arg1)->GetStyle();
2459
2460 wxPyEndAllowThreads(__tstate);
2461 if (PyErr_Occurred()) SWIG_fail;
2462 }
2463 resultobj = SWIG_FromInt((int)result);
2464 return resultobj;
2465 fail:
2466 return NULL;
2467 }
2468
2469
2470 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2471 PyObject *resultobj;
2472 wxBrush *arg1 = (wxBrush *) 0 ;
2473 wxBitmap *result;
2474 PyObject * obj0 = 0 ;
2475 char *kwnames[] = {
2476 (char *) "self", NULL
2477 };
2478
2479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2482 {
2483 PyThreadState* __tstate = wxPyBeginAllowThreads();
2484 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2485
2486 wxPyEndAllowThreads(__tstate);
2487 if (PyErr_Occurred()) SWIG_fail;
2488 }
2489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2490 return resultobj;
2491 fail:
2492 return NULL;
2493 }
2494
2495
2496 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2497 PyObject *resultobj;
2498 wxBrush *arg1 = (wxBrush *) 0 ;
2499 bool result;
2500 PyObject * obj0 = 0 ;
2501 char *kwnames[] = {
2502 (char *) "self", NULL
2503 };
2504
2505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2508 {
2509 PyThreadState* __tstate = wxPyBeginAllowThreads();
2510 result = (bool)(arg1)->Ok();
2511
2512 wxPyEndAllowThreads(__tstate);
2513 if (PyErr_Occurred()) SWIG_fail;
2514 }
2515 {
2516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2517 }
2518 return resultobj;
2519 fail:
2520 return NULL;
2521 }
2522
2523
2524 static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2525 PyObject *resultobj;
2526 wxBrush *arg1 = (wxBrush *) 0 ;
2527 short result;
2528 PyObject * obj0 = 0 ;
2529 char *kwnames[] = {
2530 (char *) "self", NULL
2531 };
2532
2533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2536 {
2537 PyThreadState* __tstate = wxPyBeginAllowThreads();
2538 result = (short)(arg1)->MacGetTheme();
2539
2540 wxPyEndAllowThreads(__tstate);
2541 if (PyErr_Occurred()) SWIG_fail;
2542 }
2543 resultobj = SWIG_FromShort((short)result);
2544 return resultobj;
2545 fail:
2546 return NULL;
2547 }
2548
2549
2550 static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2551 PyObject *resultobj;
2552 wxBrush *arg1 = (wxBrush *) 0 ;
2553 short arg2 ;
2554 PyObject * obj0 = 0 ;
2555 PyObject * obj1 = 0 ;
2556 char *kwnames[] = {
2557 (char *) "self",(char *) "macThemeBrush", NULL
2558 };
2559
2560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2563 arg2 = (short) SWIG_AsShort(obj1);
2564 if (PyErr_Occurred()) SWIG_fail;
2565 {
2566 PyThreadState* __tstate = wxPyBeginAllowThreads();
2567 (arg1)->MacSetTheme(arg2);
2568
2569 wxPyEndAllowThreads(__tstate);
2570 if (PyErr_Occurred()) SWIG_fail;
2571 }
2572 Py_INCREF(Py_None); resultobj = Py_None;
2573 return resultobj;
2574 fail:
2575 return NULL;
2576 }
2577
2578
2579 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2580 PyObject *obj;
2581 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2582 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2583 Py_INCREF(obj);
2584 return Py_BuildValue((char *)"");
2585 }
2586 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2587 PyObject *resultobj;
2588 wxString *arg1 = 0 ;
2589 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2590 wxBitmap *result;
2591 bool temp1 = False ;
2592 PyObject * obj0 = 0 ;
2593 PyObject * obj1 = 0 ;
2594 char *kwnames[] = {
2595 (char *) "name",(char *) "type", NULL
2596 };
2597
2598 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2599 {
2600 arg1 = wxString_in_helper(obj0);
2601 if (arg1 == NULL) SWIG_fail;
2602 temp1 = True;
2603 }
2604 if (obj1) {
2605 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2606 if (PyErr_Occurred()) SWIG_fail;
2607 }
2608 {
2609 PyThreadState* __tstate = wxPyBeginAllowThreads();
2610 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2611
2612 wxPyEndAllowThreads(__tstate);
2613 if (PyErr_Occurred()) SWIG_fail;
2614 }
2615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2616 {
2617 if (temp1)
2618 delete arg1;
2619 }
2620 return resultobj;
2621 fail:
2622 {
2623 if (temp1)
2624 delete arg1;
2625 }
2626 return NULL;
2627 }
2628
2629
2630 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2631 PyObject *resultobj;
2632 wxBitmap *arg1 = (wxBitmap *) 0 ;
2633 PyObject * obj0 = 0 ;
2634 char *kwnames[] = {
2635 (char *) "self", NULL
2636 };
2637
2638 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2639 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2640 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2641 {
2642 PyThreadState* __tstate = wxPyBeginAllowThreads();
2643 delete arg1;
2644
2645 wxPyEndAllowThreads(__tstate);
2646 if (PyErr_Occurred()) SWIG_fail;
2647 }
2648 Py_INCREF(Py_None); resultobj = Py_None;
2649 return resultobj;
2650 fail:
2651 return NULL;
2652 }
2653
2654
2655 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2656 PyObject *resultobj;
2657 int arg1 ;
2658 int arg2 ;
2659 int arg3 = (int) -1 ;
2660 wxBitmap *result;
2661 PyObject * obj0 = 0 ;
2662 PyObject * obj1 = 0 ;
2663 PyObject * obj2 = 0 ;
2664 char *kwnames[] = {
2665 (char *) "width",(char *) "height",(char *) "depth", NULL
2666 };
2667
2668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2669 arg1 = (int) SWIG_AsInt(obj0);
2670 if (PyErr_Occurred()) SWIG_fail;
2671 arg2 = (int) SWIG_AsInt(obj1);
2672 if (PyErr_Occurred()) SWIG_fail;
2673 if (obj2) {
2674 arg3 = (int) SWIG_AsInt(obj2);
2675 if (PyErr_Occurred()) SWIG_fail;
2676 }
2677 {
2678 PyThreadState* __tstate = wxPyBeginAllowThreads();
2679 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2680
2681 wxPyEndAllowThreads(__tstate);
2682 if (PyErr_Occurred()) SWIG_fail;
2683 }
2684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2685 return resultobj;
2686 fail:
2687 return NULL;
2688 }
2689
2690
2691 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2692 PyObject *resultobj;
2693 wxIcon *arg1 = 0 ;
2694 wxBitmap *result;
2695 PyObject * obj0 = 0 ;
2696 char *kwnames[] = {
2697 (char *) "icon", NULL
2698 };
2699
2700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2702 SWIG_POINTER_EXCEPTION | 0)) == -1)
2703 SWIG_fail;
2704 if (arg1 == NULL) {
2705 PyErr_SetString(PyExc_TypeError,"null reference");
2706 SWIG_fail;
2707 }
2708 {
2709 PyThreadState* __tstate = wxPyBeginAllowThreads();
2710 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2711
2712 wxPyEndAllowThreads(__tstate);
2713 if (PyErr_Occurred()) SWIG_fail;
2714 }
2715 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2716 return resultobj;
2717 fail:
2718 return NULL;
2719 }
2720
2721
2722 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2723 PyObject *resultobj;
2724 wxImage *arg1 = 0 ;
2725 int arg2 = (int) -1 ;
2726 wxBitmap *result;
2727 PyObject * obj0 = 0 ;
2728 PyObject * obj1 = 0 ;
2729 char *kwnames[] = {
2730 (char *) "image",(char *) "depth", NULL
2731 };
2732
2733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2735 SWIG_POINTER_EXCEPTION | 0)) == -1)
2736 SWIG_fail;
2737 if (arg1 == NULL) {
2738 PyErr_SetString(PyExc_TypeError,"null reference");
2739 SWIG_fail;
2740 }
2741 if (obj1) {
2742 arg2 = (int) SWIG_AsInt(obj1);
2743 if (PyErr_Occurred()) SWIG_fail;
2744 }
2745 {
2746 PyThreadState* __tstate = wxPyBeginAllowThreads();
2747 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2748
2749 wxPyEndAllowThreads(__tstate);
2750 if (PyErr_Occurred()) SWIG_fail;
2751 }
2752 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2753 return resultobj;
2754 fail:
2755 return NULL;
2756 }
2757
2758
2759 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2760 PyObject *resultobj;
2761 PyObject *arg1 = (PyObject *) 0 ;
2762 wxBitmap *result;
2763 PyObject * obj0 = 0 ;
2764 char *kwnames[] = {
2765 (char *) "listOfStrings", NULL
2766 };
2767
2768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2769 arg1 = obj0;
2770 {
2771 PyThreadState* __tstate = wxPyBeginAllowThreads();
2772 result = (wxBitmap *)new_wxBitmap(arg1);
2773
2774 wxPyEndAllowThreads(__tstate);
2775 if (PyErr_Occurred()) SWIG_fail;
2776 }
2777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2778 return resultobj;
2779 fail:
2780 return NULL;
2781 }
2782
2783
2784 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2785 PyObject *resultobj;
2786 PyObject *arg1 = (PyObject *) 0 ;
2787 int arg2 ;
2788 int arg3 ;
2789 int arg4 = (int) 1 ;
2790 wxBitmap *result;
2791 PyObject * obj0 = 0 ;
2792 PyObject * obj1 = 0 ;
2793 PyObject * obj2 = 0 ;
2794 PyObject * obj3 = 0 ;
2795 char *kwnames[] = {
2796 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2797 };
2798
2799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2800 arg1 = obj0;
2801 arg2 = (int) SWIG_AsInt(obj1);
2802 if (PyErr_Occurred()) SWIG_fail;
2803 arg3 = (int) SWIG_AsInt(obj2);
2804 if (PyErr_Occurred()) SWIG_fail;
2805 if (obj3) {
2806 arg4 = (int) SWIG_AsInt(obj3);
2807 if (PyErr_Occurred()) SWIG_fail;
2808 }
2809 {
2810 PyThreadState* __tstate = wxPyBeginAllowThreads();
2811 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2812
2813 wxPyEndAllowThreads(__tstate);
2814 if (PyErr_Occurred()) SWIG_fail;
2815 }
2816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2817 return resultobj;
2818 fail:
2819 return NULL;
2820 }
2821
2822
2823 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2824 PyObject *resultobj;
2825 wxBitmap *arg1 = (wxBitmap *) 0 ;
2826 bool result;
2827 PyObject * obj0 = 0 ;
2828 char *kwnames[] = {
2829 (char *) "self", NULL
2830 };
2831
2832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2835 {
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 result = (bool)(arg1)->Ok();
2838
2839 wxPyEndAllowThreads(__tstate);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 {
2843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2844 }
2845 return resultobj;
2846 fail:
2847 return NULL;
2848 }
2849
2850
2851 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2852 PyObject *resultobj;
2853 wxBitmap *arg1 = (wxBitmap *) 0 ;
2854 int result;
2855 PyObject * obj0 = 0 ;
2856 char *kwnames[] = {
2857 (char *) "self", NULL
2858 };
2859
2860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2863 {
2864 PyThreadState* __tstate = wxPyBeginAllowThreads();
2865 result = (int)(arg1)->GetWidth();
2866
2867 wxPyEndAllowThreads(__tstate);
2868 if (PyErr_Occurred()) SWIG_fail;
2869 }
2870 resultobj = SWIG_FromInt((int)result);
2871 return resultobj;
2872 fail:
2873 return NULL;
2874 }
2875
2876
2877 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2878 PyObject *resultobj;
2879 wxBitmap *arg1 = (wxBitmap *) 0 ;
2880 int result;
2881 PyObject * obj0 = 0 ;
2882 char *kwnames[] = {
2883 (char *) "self", NULL
2884 };
2885
2886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2889 {
2890 PyThreadState* __tstate = wxPyBeginAllowThreads();
2891 result = (int)(arg1)->GetHeight();
2892
2893 wxPyEndAllowThreads(__tstate);
2894 if (PyErr_Occurred()) SWIG_fail;
2895 }
2896 resultobj = SWIG_FromInt((int)result);
2897 return resultobj;
2898 fail:
2899 return NULL;
2900 }
2901
2902
2903 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2904 PyObject *resultobj;
2905 wxBitmap *arg1 = (wxBitmap *) 0 ;
2906 int result;
2907 PyObject * obj0 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "self", NULL
2910 };
2911
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2915 {
2916 PyThreadState* __tstate = wxPyBeginAllowThreads();
2917 result = (int)(arg1)->GetDepth();
2918
2919 wxPyEndAllowThreads(__tstate);
2920 if (PyErr_Occurred()) SWIG_fail;
2921 }
2922 resultobj = SWIG_FromInt((int)result);
2923 return resultobj;
2924 fail:
2925 return NULL;
2926 }
2927
2928
2929 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2930 PyObject *resultobj;
2931 wxBitmap *arg1 = (wxBitmap *) 0 ;
2932 wxSize result;
2933 PyObject * obj0 = 0 ;
2934 char *kwnames[] = {
2935 (char *) "self", NULL
2936 };
2937
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2941 {
2942 PyThreadState* __tstate = wxPyBeginAllowThreads();
2943 result = wxBitmap_GetSize(arg1);
2944
2945 wxPyEndAllowThreads(__tstate);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 }
2948 {
2949 wxSize * resultptr;
2950 resultptr = new wxSize((wxSize &) result);
2951 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2952 }
2953 return resultobj;
2954 fail:
2955 return NULL;
2956 }
2957
2958
2959 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2960 PyObject *resultobj;
2961 wxBitmap *arg1 = (wxBitmap *) 0 ;
2962 SwigValueWrapper< wxImage > result;
2963 PyObject * obj0 = 0 ;
2964 char *kwnames[] = {
2965 (char *) "self", NULL
2966 };
2967
2968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2971 {
2972 PyThreadState* __tstate = wxPyBeginAllowThreads();
2973 result = ((wxBitmap const *)arg1)->ConvertToImage();
2974
2975 wxPyEndAllowThreads(__tstate);
2976 if (PyErr_Occurred()) SWIG_fail;
2977 }
2978 {
2979 wxImage * resultptr;
2980 resultptr = new wxImage((wxImage &) result);
2981 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
2982 }
2983 return resultobj;
2984 fail:
2985 return NULL;
2986 }
2987
2988
2989 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2990 PyObject *resultobj;
2991 wxBitmap *arg1 = (wxBitmap *) 0 ;
2992 wxMask *result;
2993 PyObject * obj0 = 0 ;
2994 char *kwnames[] = {
2995 (char *) "self", NULL
2996 };
2997
2998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3001 {
3002 PyThreadState* __tstate = wxPyBeginAllowThreads();
3003 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3004
3005 wxPyEndAllowThreads(__tstate);
3006 if (PyErr_Occurred()) SWIG_fail;
3007 }
3008 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3009 return resultobj;
3010 fail:
3011 return NULL;
3012 }
3013
3014
3015 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3016 PyObject *resultobj;
3017 wxBitmap *arg1 = (wxBitmap *) 0 ;
3018 wxMask *arg2 = (wxMask *) 0 ;
3019 PyObject * obj0 = 0 ;
3020 PyObject * obj1 = 0 ;
3021 char *kwnames[] = {
3022 (char *) "self",(char *) "mask", NULL
3023 };
3024
3025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3028 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3030 {
3031 PyThreadState* __tstate = wxPyBeginAllowThreads();
3032 (arg1)->SetMask(arg2);
3033
3034 wxPyEndAllowThreads(__tstate);
3035 if (PyErr_Occurred()) SWIG_fail;
3036 }
3037 Py_INCREF(Py_None); resultobj = Py_None;
3038 return resultobj;
3039 fail:
3040 return NULL;
3041 }
3042
3043
3044 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject *resultobj;
3046 wxBitmap *arg1 = (wxBitmap *) 0 ;
3047 wxColour *arg2 = 0 ;
3048 wxColour temp2 ;
3049 PyObject * obj0 = 0 ;
3050 PyObject * obj1 = 0 ;
3051 char *kwnames[] = {
3052 (char *) "self",(char *) "colour", NULL
3053 };
3054
3055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3058 {
3059 arg2 = &temp2;
3060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3061 }
3062 {
3063 PyThreadState* __tstate = wxPyBeginAllowThreads();
3064 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3065
3066 wxPyEndAllowThreads(__tstate);
3067 if (PyErr_Occurred()) SWIG_fail;
3068 }
3069 Py_INCREF(Py_None); resultobj = Py_None;
3070 return resultobj;
3071 fail:
3072 return NULL;
3073 }
3074
3075
3076 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3077 PyObject *resultobj;
3078 wxBitmap *arg1 = (wxBitmap *) 0 ;
3079 wxRect *arg2 = 0 ;
3080 SwigValueWrapper< wxBitmap > result;
3081 wxRect temp2 ;
3082 PyObject * obj0 = 0 ;
3083 PyObject * obj1 = 0 ;
3084 char *kwnames[] = {
3085 (char *) "self",(char *) "rect", NULL
3086 };
3087
3088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3091 {
3092 arg2 = &temp2;
3093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3094 }
3095 {
3096 PyThreadState* __tstate = wxPyBeginAllowThreads();
3097 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3098
3099 wxPyEndAllowThreads(__tstate);
3100 if (PyErr_Occurred()) SWIG_fail;
3101 }
3102 {
3103 wxBitmap * resultptr;
3104 resultptr = new wxBitmap((wxBitmap &) result);
3105 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3106 }
3107 return resultobj;
3108 fail:
3109 return NULL;
3110 }
3111
3112
3113 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3114 PyObject *resultobj;
3115 wxBitmap *arg1 = (wxBitmap *) 0 ;
3116 wxString *arg2 = 0 ;
3117 int arg3 ;
3118 wxPalette *arg4 = (wxPalette *) NULL ;
3119 bool result;
3120 bool temp2 = False ;
3121 PyObject * obj0 = 0 ;
3122 PyObject * obj1 = 0 ;
3123 PyObject * obj2 = 0 ;
3124 PyObject * obj3 = 0 ;
3125 char *kwnames[] = {
3126 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3127 };
3128
3129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3132 {
3133 arg2 = wxString_in_helper(obj1);
3134 if (arg2 == NULL) SWIG_fail;
3135 temp2 = True;
3136 }
3137 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3138 if (PyErr_Occurred()) SWIG_fail;
3139 if (obj3) {
3140 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3142 }
3143 {
3144 PyThreadState* __tstate = wxPyBeginAllowThreads();
3145 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3146
3147 wxPyEndAllowThreads(__tstate);
3148 if (PyErr_Occurred()) SWIG_fail;
3149 }
3150 {
3151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3152 }
3153 {
3154 if (temp2)
3155 delete arg2;
3156 }
3157 return resultobj;
3158 fail:
3159 {
3160 if (temp2)
3161 delete arg2;
3162 }
3163 return NULL;
3164 }
3165
3166
3167 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3168 PyObject *resultobj;
3169 wxBitmap *arg1 = (wxBitmap *) 0 ;
3170 wxString *arg2 = 0 ;
3171 int arg3 ;
3172 bool result;
3173 bool temp2 = False ;
3174 PyObject * obj0 = 0 ;
3175 PyObject * obj1 = 0 ;
3176 PyObject * obj2 = 0 ;
3177 char *kwnames[] = {
3178 (char *) "self",(char *) "name",(char *) "type", NULL
3179 };
3180
3181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3184 {
3185 arg2 = wxString_in_helper(obj1);
3186 if (arg2 == NULL) SWIG_fail;
3187 temp2 = True;
3188 }
3189 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3190 if (PyErr_Occurred()) SWIG_fail;
3191 {
3192 PyThreadState* __tstate = wxPyBeginAllowThreads();
3193 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3194
3195 wxPyEndAllowThreads(__tstate);
3196 if (PyErr_Occurred()) SWIG_fail;
3197 }
3198 {
3199 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3200 }
3201 {
3202 if (temp2)
3203 delete arg2;
3204 }
3205 return resultobj;
3206 fail:
3207 {
3208 if (temp2)
3209 delete arg2;
3210 }
3211 return NULL;
3212 }
3213
3214
3215 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3216 PyObject *resultobj;
3217 wxBitmap *arg1 = (wxBitmap *) 0 ;
3218 wxIcon *arg2 = 0 ;
3219 bool result;
3220 PyObject * obj0 = 0 ;
3221 PyObject * obj1 = 0 ;
3222 char *kwnames[] = {
3223 (char *) "self",(char *) "icon", NULL
3224 };
3225
3226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3229 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3230 SWIG_POINTER_EXCEPTION | 0)) == -1)
3231 SWIG_fail;
3232 if (arg2 == NULL) {
3233 PyErr_SetString(PyExc_TypeError,"null reference");
3234 SWIG_fail;
3235 }
3236 {
3237 PyThreadState* __tstate = wxPyBeginAllowThreads();
3238 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3239
3240 wxPyEndAllowThreads(__tstate);
3241 if (PyErr_Occurred()) SWIG_fail;
3242 }
3243 {
3244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3245 }
3246 return resultobj;
3247 fail:
3248 return NULL;
3249 }
3250
3251
3252 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3253 PyObject *resultobj;
3254 wxBitmap *arg1 = (wxBitmap *) 0 ;
3255 int arg2 ;
3256 PyObject * obj0 = 0 ;
3257 PyObject * obj1 = 0 ;
3258 char *kwnames[] = {
3259 (char *) "self",(char *) "height", NULL
3260 };
3261
3262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3263 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3264 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3265 arg2 = (int) SWIG_AsInt(obj1);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 {
3268 PyThreadState* __tstate = wxPyBeginAllowThreads();
3269 (arg1)->SetHeight(arg2);
3270
3271 wxPyEndAllowThreads(__tstate);
3272 if (PyErr_Occurred()) SWIG_fail;
3273 }
3274 Py_INCREF(Py_None); resultobj = Py_None;
3275 return resultobj;
3276 fail:
3277 return NULL;
3278 }
3279
3280
3281 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3282 PyObject *resultobj;
3283 wxBitmap *arg1 = (wxBitmap *) 0 ;
3284 int arg2 ;
3285 PyObject * obj0 = 0 ;
3286 PyObject * obj1 = 0 ;
3287 char *kwnames[] = {
3288 (char *) "self",(char *) "width", NULL
3289 };
3290
3291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3294 arg2 = (int) SWIG_AsInt(obj1);
3295 if (PyErr_Occurred()) SWIG_fail;
3296 {
3297 PyThreadState* __tstate = wxPyBeginAllowThreads();
3298 (arg1)->SetWidth(arg2);
3299
3300 wxPyEndAllowThreads(__tstate);
3301 if (PyErr_Occurred()) SWIG_fail;
3302 }
3303 Py_INCREF(Py_None); resultobj = Py_None;
3304 return resultobj;
3305 fail:
3306 return NULL;
3307 }
3308
3309
3310 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3311 PyObject *resultobj;
3312 wxBitmap *arg1 = (wxBitmap *) 0 ;
3313 int arg2 ;
3314 PyObject * obj0 = 0 ;
3315 PyObject * obj1 = 0 ;
3316 char *kwnames[] = {
3317 (char *) "self",(char *) "depth", NULL
3318 };
3319
3320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3323 arg2 = (int) SWIG_AsInt(obj1);
3324 if (PyErr_Occurred()) SWIG_fail;
3325 {
3326 PyThreadState* __tstate = wxPyBeginAllowThreads();
3327 (arg1)->SetDepth(arg2);
3328
3329 wxPyEndAllowThreads(__tstate);
3330 if (PyErr_Occurred()) SWIG_fail;
3331 }
3332 Py_INCREF(Py_None); resultobj = Py_None;
3333 return resultobj;
3334 fail:
3335 return NULL;
3336 }
3337
3338
3339 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3340 PyObject *resultobj;
3341 wxBitmap *arg1 = (wxBitmap *) 0 ;
3342 wxSize *arg2 = 0 ;
3343 wxSize temp2 ;
3344 PyObject * obj0 = 0 ;
3345 PyObject * obj1 = 0 ;
3346 char *kwnames[] = {
3347 (char *) "self",(char *) "size", NULL
3348 };
3349
3350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3353 {
3354 arg2 = &temp2;
3355 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3356 }
3357 {
3358 PyThreadState* __tstate = wxPyBeginAllowThreads();
3359 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3360
3361 wxPyEndAllowThreads(__tstate);
3362 if (PyErr_Occurred()) SWIG_fail;
3363 }
3364 Py_INCREF(Py_None); resultobj = Py_None;
3365 return resultobj;
3366 fail:
3367 return NULL;
3368 }
3369
3370
3371 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3372 PyObject *resultobj;
3373 wxBitmap *arg1 = (wxBitmap *) 0 ;
3374 wxBitmap *arg2 = (wxBitmap *) 0 ;
3375 bool result;
3376 PyObject * obj0 = 0 ;
3377 PyObject * obj1 = 0 ;
3378 char *kwnames[] = {
3379 (char *) "self",(char *) "other", NULL
3380 };
3381
3382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3385 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3387 {
3388 PyThreadState* __tstate = wxPyBeginAllowThreads();
3389 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3390
3391 wxPyEndAllowThreads(__tstate);
3392 if (PyErr_Occurred()) SWIG_fail;
3393 }
3394 {
3395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3396 }
3397 return resultobj;
3398 fail:
3399 return NULL;
3400 }
3401
3402
3403 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3404 PyObject *resultobj;
3405 wxBitmap *arg1 = (wxBitmap *) 0 ;
3406 wxBitmap *arg2 = (wxBitmap *) 0 ;
3407 bool result;
3408 PyObject * obj0 = 0 ;
3409 PyObject * obj1 = 0 ;
3410 char *kwnames[] = {
3411 (char *) "self",(char *) "other", NULL
3412 };
3413
3414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3417 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3419 {
3420 PyThreadState* __tstate = wxPyBeginAllowThreads();
3421 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3422
3423 wxPyEndAllowThreads(__tstate);
3424 if (PyErr_Occurred()) SWIG_fail;
3425 }
3426 {
3427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3428 }
3429 return resultobj;
3430 fail:
3431 return NULL;
3432 }
3433
3434
3435 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3436 PyObject *obj;
3437 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3438 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3439 Py_INCREF(obj);
3440 return Py_BuildValue((char *)"");
3441 }
3442 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3443 PyObject *resultobj;
3444 wxBitmap *arg1 = 0 ;
3445 wxColour const &arg2_defvalue = wxNullColour ;
3446 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3447 wxMask *result;
3448 wxColour temp2 ;
3449 PyObject * obj0 = 0 ;
3450 PyObject * obj1 = 0 ;
3451 char *kwnames[] = {
3452 (char *) "bitmap",(char *) "colour", NULL
3453 };
3454
3455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3457 SWIG_POINTER_EXCEPTION | 0)) == -1)
3458 SWIG_fail;
3459 if (arg1 == NULL) {
3460 PyErr_SetString(PyExc_TypeError,"null reference");
3461 SWIG_fail;
3462 }
3463 if (obj1) {
3464 {
3465 arg2 = &temp2;
3466 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3467 }
3468 }
3469 {
3470 PyThreadState* __tstate = wxPyBeginAllowThreads();
3471 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3472
3473 wxPyEndAllowThreads(__tstate);
3474 if (PyErr_Occurred()) SWIG_fail;
3475 }
3476 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3477 return resultobj;
3478 fail:
3479 return NULL;
3480 }
3481
3482
3483 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3484 PyObject *obj;
3485 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3486 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3487 Py_INCREF(obj);
3488 return Py_BuildValue((char *)"");
3489 }
3490 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3491 PyObject *resultobj;
3492 wxString *arg1 = 0 ;
3493 int arg2 ;
3494 int arg3 = (int) -1 ;
3495 int arg4 = (int) -1 ;
3496 wxIcon *result;
3497 bool temp1 = False ;
3498 PyObject * obj0 = 0 ;
3499 PyObject * obj1 = 0 ;
3500 PyObject * obj2 = 0 ;
3501 PyObject * obj3 = 0 ;
3502 char *kwnames[] = {
3503 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3504 };
3505
3506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3507 {
3508 arg1 = wxString_in_helper(obj0);
3509 if (arg1 == NULL) SWIG_fail;
3510 temp1 = True;
3511 }
3512 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3513 if (PyErr_Occurred()) SWIG_fail;
3514 if (obj2) {
3515 arg3 = (int) SWIG_AsInt(obj2);
3516 if (PyErr_Occurred()) SWIG_fail;
3517 }
3518 if (obj3) {
3519 arg4 = (int) SWIG_AsInt(obj3);
3520 if (PyErr_Occurred()) SWIG_fail;
3521 }
3522 {
3523 PyThreadState* __tstate = wxPyBeginAllowThreads();
3524 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3525
3526 wxPyEndAllowThreads(__tstate);
3527 if (PyErr_Occurred()) SWIG_fail;
3528 }
3529 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3530 {
3531 if (temp1)
3532 delete arg1;
3533 }
3534 return resultobj;
3535 fail:
3536 {
3537 if (temp1)
3538 delete arg1;
3539 }
3540 return NULL;
3541 }
3542
3543
3544 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3545 PyObject *resultobj;
3546 wxIcon *arg1 = (wxIcon *) 0 ;
3547 PyObject * obj0 = 0 ;
3548 char *kwnames[] = {
3549 (char *) "self", NULL
3550 };
3551
3552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3555 {
3556 PyThreadState* __tstate = wxPyBeginAllowThreads();
3557 delete arg1;
3558
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 Py_INCREF(Py_None); resultobj = Py_None;
3563 return resultobj;
3564 fail:
3565 return NULL;
3566 }
3567
3568
3569 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3570 PyObject *resultobj;
3571 wxIcon *result;
3572 char *kwnames[] = {
3573 NULL
3574 };
3575
3576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3577 {
3578 PyThreadState* __tstate = wxPyBeginAllowThreads();
3579 result = (wxIcon *)new wxIcon();
3580
3581 wxPyEndAllowThreads(__tstate);
3582 if (PyErr_Occurred()) SWIG_fail;
3583 }
3584 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3585 return resultobj;
3586 fail:
3587 return NULL;
3588 }
3589
3590
3591 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3592 PyObject *resultobj;
3593 wxIconLocation *arg1 = 0 ;
3594 wxIcon *result;
3595 PyObject * obj0 = 0 ;
3596 char *kwnames[] = {
3597 (char *) "loc", NULL
3598 };
3599
3600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3602 SWIG_POINTER_EXCEPTION | 0)) == -1)
3603 SWIG_fail;
3604 if (arg1 == NULL) {
3605 PyErr_SetString(PyExc_TypeError,"null reference");
3606 SWIG_fail;
3607 }
3608 {
3609 PyThreadState* __tstate = wxPyBeginAllowThreads();
3610 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3611
3612 wxPyEndAllowThreads(__tstate);
3613 if (PyErr_Occurred()) SWIG_fail;
3614 }
3615 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3616 return resultobj;
3617 fail:
3618 return NULL;
3619 }
3620
3621
3622 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3623 PyObject *resultobj;
3624 wxBitmap *arg1 = 0 ;
3625 wxIcon *result;
3626 PyObject * obj0 = 0 ;
3627 char *kwnames[] = {
3628 (char *) "bmp", NULL
3629 };
3630
3631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3633 SWIG_POINTER_EXCEPTION | 0)) == -1)
3634 SWIG_fail;
3635 if (arg1 == NULL) {
3636 PyErr_SetString(PyExc_TypeError,"null reference");
3637 SWIG_fail;
3638 }
3639 {
3640 PyThreadState* __tstate = wxPyBeginAllowThreads();
3641 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3642
3643 wxPyEndAllowThreads(__tstate);
3644 if (PyErr_Occurred()) SWIG_fail;
3645 }
3646 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3647 return resultobj;
3648 fail:
3649 return NULL;
3650 }
3651
3652
3653 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3654 PyObject *resultobj;
3655 PyObject *arg1 = (PyObject *) 0 ;
3656 wxIcon *result;
3657 PyObject * obj0 = 0 ;
3658 char *kwnames[] = {
3659 (char *) "listOfStrings", NULL
3660 };
3661
3662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3663 arg1 = obj0;
3664 {
3665 PyThreadState* __tstate = wxPyBeginAllowThreads();
3666 result = (wxIcon *)new_wxIcon(arg1);
3667
3668 wxPyEndAllowThreads(__tstate);
3669 if (PyErr_Occurred()) SWIG_fail;
3670 }
3671 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3672 return resultobj;
3673 fail:
3674 return NULL;
3675 }
3676
3677
3678 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3679 PyObject *resultobj;
3680 wxIcon *arg1 = (wxIcon *) 0 ;
3681 bool result;
3682 PyObject * obj0 = 0 ;
3683 char *kwnames[] = {
3684 (char *) "self", NULL
3685 };
3686
3687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3690 {
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 result = (bool)(arg1)->Ok();
3693
3694 wxPyEndAllowThreads(__tstate);
3695 if (PyErr_Occurred()) SWIG_fail;
3696 }
3697 {
3698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3699 }
3700 return resultobj;
3701 fail:
3702 return NULL;
3703 }
3704
3705
3706 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3707 PyObject *resultobj;
3708 wxIcon *arg1 = (wxIcon *) 0 ;
3709 int result;
3710 PyObject * obj0 = 0 ;
3711 char *kwnames[] = {
3712 (char *) "self", NULL
3713 };
3714
3715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 result = (int)(arg1)->GetWidth();
3721
3722 wxPyEndAllowThreads(__tstate);
3723 if (PyErr_Occurred()) SWIG_fail;
3724 }
3725 resultobj = SWIG_FromInt((int)result);
3726 return resultobj;
3727 fail:
3728 return NULL;
3729 }
3730
3731
3732 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3733 PyObject *resultobj;
3734 wxIcon *arg1 = (wxIcon *) 0 ;
3735 int result;
3736 PyObject * obj0 = 0 ;
3737 char *kwnames[] = {
3738 (char *) "self", NULL
3739 };
3740
3741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 result = (int)(arg1)->GetHeight();
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_FromInt((int)result);
3752 return resultobj;
3753 fail:
3754 return NULL;
3755 }
3756
3757
3758 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3759 PyObject *resultobj;
3760 wxIcon *arg1 = (wxIcon *) 0 ;
3761 int result;
3762 PyObject * obj0 = 0 ;
3763 char *kwnames[] = {
3764 (char *) "self", NULL
3765 };
3766
3767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3770 {
3771 PyThreadState* __tstate = wxPyBeginAllowThreads();
3772 result = (int)(arg1)->GetDepth();
3773
3774 wxPyEndAllowThreads(__tstate);
3775 if (PyErr_Occurred()) SWIG_fail;
3776 }
3777 resultobj = SWIG_FromInt((int)result);
3778 return resultobj;
3779 fail:
3780 return NULL;
3781 }
3782
3783
3784 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3785 PyObject *resultobj;
3786 wxIcon *arg1 = (wxIcon *) 0 ;
3787 int arg2 ;
3788 PyObject * obj0 = 0 ;
3789 PyObject * obj1 = 0 ;
3790 char *kwnames[] = {
3791 (char *) "self",(char *) "w", NULL
3792 };
3793
3794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3795 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3797 arg2 = (int) SWIG_AsInt(obj1);
3798 if (PyErr_Occurred()) SWIG_fail;
3799 {
3800 PyThreadState* __tstate = wxPyBeginAllowThreads();
3801 (arg1)->SetWidth(arg2);
3802
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 Py_INCREF(Py_None); resultobj = Py_None;
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj;
3815 wxIcon *arg1 = (wxIcon *) 0 ;
3816 int arg2 ;
3817 PyObject * obj0 = 0 ;
3818 PyObject * obj1 = 0 ;
3819 char *kwnames[] = {
3820 (char *) "self",(char *) "h", NULL
3821 };
3822
3823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3826 arg2 = (int) SWIG_AsInt(obj1);
3827 if (PyErr_Occurred()) SWIG_fail;
3828 {
3829 PyThreadState* __tstate = wxPyBeginAllowThreads();
3830 (arg1)->SetHeight(arg2);
3831
3832 wxPyEndAllowThreads(__tstate);
3833 if (PyErr_Occurred()) SWIG_fail;
3834 }
3835 Py_INCREF(Py_None); resultobj = Py_None;
3836 return resultobj;
3837 fail:
3838 return NULL;
3839 }
3840
3841
3842 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3843 PyObject *resultobj;
3844 wxIcon *arg1 = (wxIcon *) 0 ;
3845 int arg2 ;
3846 PyObject * obj0 = 0 ;
3847 PyObject * obj1 = 0 ;
3848 char *kwnames[] = {
3849 (char *) "self",(char *) "d", NULL
3850 };
3851
3852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3855 arg2 = (int) SWIG_AsInt(obj1);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 {
3858 PyThreadState* __tstate = wxPyBeginAllowThreads();
3859 (arg1)->SetDepth(arg2);
3860
3861 wxPyEndAllowThreads(__tstate);
3862 if (PyErr_Occurred()) SWIG_fail;
3863 }
3864 Py_INCREF(Py_None); resultobj = Py_None;
3865 return resultobj;
3866 fail:
3867 return NULL;
3868 }
3869
3870
3871 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3872 PyObject *resultobj;
3873 wxIcon *arg1 = (wxIcon *) 0 ;
3874 wxBitmap *arg2 = 0 ;
3875 PyObject * obj0 = 0 ;
3876 PyObject * obj1 = 0 ;
3877 char *kwnames[] = {
3878 (char *) "self",(char *) "bmp", NULL
3879 };
3880
3881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3884 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3885 SWIG_POINTER_EXCEPTION | 0)) == -1)
3886 SWIG_fail;
3887 if (arg2 == NULL) {
3888 PyErr_SetString(PyExc_TypeError,"null reference");
3889 SWIG_fail;
3890 }
3891 {
3892 PyThreadState* __tstate = wxPyBeginAllowThreads();
3893 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3894
3895 wxPyEndAllowThreads(__tstate);
3896 if (PyErr_Occurred()) SWIG_fail;
3897 }
3898 Py_INCREF(Py_None); resultobj = Py_None;
3899 return resultobj;
3900 fail:
3901 return NULL;
3902 }
3903
3904
3905 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3906 PyObject *obj;
3907 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3908 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3909 Py_INCREF(obj);
3910 return Py_BuildValue((char *)"");
3911 }
3912 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3913 PyObject *resultobj;
3914 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3915 int arg2 = (int) 0 ;
3916 wxIconLocation *result;
3917 bool temp1 = False ;
3918 PyObject * obj0 = 0 ;
3919 PyObject * obj1 = 0 ;
3920 char *kwnames[] = {
3921 (char *) "filename",(char *) "num", NULL
3922 };
3923
3924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3925 if (obj0) {
3926 {
3927 arg1 = wxString_in_helper(obj0);
3928 if (arg1 == NULL) SWIG_fail;
3929 temp1 = True;
3930 }
3931 }
3932 if (obj1) {
3933 arg2 = (int) SWIG_AsInt(obj1);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 {
3937 PyThreadState* __tstate = wxPyBeginAllowThreads();
3938 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3939
3940 wxPyEndAllowThreads(__tstate);
3941 if (PyErr_Occurred()) SWIG_fail;
3942 }
3943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3944 {
3945 if (temp1)
3946 delete arg1;
3947 }
3948 return resultobj;
3949 fail:
3950 {
3951 if (temp1)
3952 delete arg1;
3953 }
3954 return NULL;
3955 }
3956
3957
3958 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3959 PyObject *resultobj;
3960 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3961 PyObject * obj0 = 0 ;
3962 char *kwnames[] = {
3963 (char *) "self", NULL
3964 };
3965
3966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3969 {
3970 PyThreadState* __tstate = wxPyBeginAllowThreads();
3971 delete arg1;
3972
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 Py_INCREF(Py_None); resultobj = Py_None;
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3986 bool result;
3987 PyObject * obj0 = 0 ;
3988 char *kwnames[] = {
3989 (char *) "self", NULL
3990 };
3991
3992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
3993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3995 {
3996 PyThreadState* __tstate = wxPyBeginAllowThreads();
3997 result = (bool)((wxIconLocation const *)arg1)->IsOk();
3998
3999 wxPyEndAllowThreads(__tstate);
4000 if (PyErr_Occurred()) SWIG_fail;
4001 }
4002 {
4003 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4004 }
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4012 PyObject *resultobj;
4013 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4014 wxString *arg2 = 0 ;
4015 bool temp2 = False ;
4016 PyObject * obj0 = 0 ;
4017 PyObject * obj1 = 0 ;
4018 char *kwnames[] = {
4019 (char *) "self",(char *) "filename", NULL
4020 };
4021
4022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4025 {
4026 arg2 = wxString_in_helper(obj1);
4027 if (arg2 == NULL) SWIG_fail;
4028 temp2 = True;
4029 }
4030 {
4031 PyThreadState* __tstate = wxPyBeginAllowThreads();
4032 (arg1)->SetFileName((wxString const &)*arg2);
4033
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 Py_INCREF(Py_None); resultobj = Py_None;
4038 {
4039 if (temp2)
4040 delete arg2;
4041 }
4042 return resultobj;
4043 fail:
4044 {
4045 if (temp2)
4046 delete arg2;
4047 }
4048 return NULL;
4049 }
4050
4051
4052 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4053 PyObject *resultobj;
4054 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4055 wxString *result;
4056 PyObject * obj0 = 0 ;
4057 char *kwnames[] = {
4058 (char *) "self", NULL
4059 };
4060
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4064 {
4065 PyThreadState* __tstate = wxPyBeginAllowThreads();
4066 {
4067 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4068 result = (wxString *) &_result_ref;
4069 }
4070
4071 wxPyEndAllowThreads(__tstate);
4072 if (PyErr_Occurred()) SWIG_fail;
4073 }
4074 {
4075 #if wxUSE_UNICODE
4076 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4077 #else
4078 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4079 #endif
4080 }
4081 return resultobj;
4082 fail:
4083 return NULL;
4084 }
4085
4086
4087 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4088 PyObject *resultobj;
4089 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4090 int arg2 ;
4091 PyObject * obj0 = 0 ;
4092 PyObject * obj1 = 0 ;
4093 char *kwnames[] = {
4094 (char *) "self",(char *) "num", NULL
4095 };
4096
4097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4100 arg2 = (int) SWIG_AsInt(obj1);
4101 if (PyErr_Occurred()) SWIG_fail;
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 wxIconLocation_SetIndex(arg1,arg2);
4105
4106 wxPyEndAllowThreads(__tstate);
4107 if (PyErr_Occurred()) SWIG_fail;
4108 }
4109 Py_INCREF(Py_None); resultobj = Py_None;
4110 return resultobj;
4111 fail:
4112 return NULL;
4113 }
4114
4115
4116 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4117 PyObject *resultobj;
4118 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4119 int result;
4120 PyObject * obj0 = 0 ;
4121 char *kwnames[] = {
4122 (char *) "self", NULL
4123 };
4124
4125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 result = (int)wxIconLocation_GetIndex(arg1);
4131
4132 wxPyEndAllowThreads(__tstate);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 }
4135 resultobj = SWIG_FromInt((int)result);
4136 return resultobj;
4137 fail:
4138 return NULL;
4139 }
4140
4141
4142 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4143 PyObject *obj;
4144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4145 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4146 Py_INCREF(obj);
4147 return Py_BuildValue((char *)"");
4148 }
4149 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4150 PyObject *resultobj;
4151 wxIconBundle *result;
4152 char *kwnames[] = {
4153 NULL
4154 };
4155
4156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4157 {
4158 PyThreadState* __tstate = wxPyBeginAllowThreads();
4159 result = (wxIconBundle *)new wxIconBundle();
4160
4161 wxPyEndAllowThreads(__tstate);
4162 if (PyErr_Occurred()) SWIG_fail;
4163 }
4164 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4165 return resultobj;
4166 fail:
4167 return NULL;
4168 }
4169
4170
4171 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4172 PyObject *resultobj;
4173 wxString *arg1 = 0 ;
4174 long arg2 ;
4175 wxIconBundle *result;
4176 bool temp1 = False ;
4177 PyObject * obj0 = 0 ;
4178 PyObject * obj1 = 0 ;
4179 char *kwnames[] = {
4180 (char *) "file",(char *) "type", NULL
4181 };
4182
4183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4184 {
4185 arg1 = wxString_in_helper(obj0);
4186 if (arg1 == NULL) SWIG_fail;
4187 temp1 = True;
4188 }
4189 arg2 = (long) SWIG_AsLong(obj1);
4190 if (PyErr_Occurred()) SWIG_fail;
4191 {
4192 PyThreadState* __tstate = wxPyBeginAllowThreads();
4193 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4194
4195 wxPyEndAllowThreads(__tstate);
4196 if (PyErr_Occurred()) SWIG_fail;
4197 }
4198 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4199 {
4200 if (temp1)
4201 delete arg1;
4202 }
4203 return resultobj;
4204 fail:
4205 {
4206 if (temp1)
4207 delete arg1;
4208 }
4209 return NULL;
4210 }
4211
4212
4213 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4214 PyObject *resultobj;
4215 wxIcon *arg1 = 0 ;
4216 wxIconBundle *result;
4217 PyObject * obj0 = 0 ;
4218 char *kwnames[] = {
4219 (char *) "icon", NULL
4220 };
4221
4222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4224 SWIG_POINTER_EXCEPTION | 0)) == -1)
4225 SWIG_fail;
4226 if (arg1 == NULL) {
4227 PyErr_SetString(PyExc_TypeError,"null reference");
4228 SWIG_fail;
4229 }
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4233
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4238 return resultobj;
4239 fail:
4240 return NULL;
4241 }
4242
4243
4244 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4245 PyObject *resultobj;
4246 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4247 PyObject * obj0 = 0 ;
4248 char *kwnames[] = {
4249 (char *) "self", NULL
4250 };
4251
4252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 delete arg1;
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 Py_INCREF(Py_None); resultobj = Py_None;
4263 return resultobj;
4264 fail:
4265 return NULL;
4266 }
4267
4268
4269 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj;
4271 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4272 wxIcon *arg2 = 0 ;
4273 PyObject * obj0 = 0 ;
4274 PyObject * obj1 = 0 ;
4275 char *kwnames[] = {
4276 (char *) "self",(char *) "icon", NULL
4277 };
4278
4279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4282 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4283 SWIG_POINTER_EXCEPTION | 0)) == -1)
4284 SWIG_fail;
4285 if (arg2 == NULL) {
4286 PyErr_SetString(PyExc_TypeError,"null reference");
4287 SWIG_fail;
4288 }
4289 {
4290 PyThreadState* __tstate = wxPyBeginAllowThreads();
4291 (arg1)->AddIcon((wxIcon const &)*arg2);
4292
4293 wxPyEndAllowThreads(__tstate);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 Py_INCREF(Py_None); resultobj = Py_None;
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4304 PyObject *resultobj;
4305 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4306 wxString *arg2 = 0 ;
4307 long arg3 ;
4308 bool temp2 = False ;
4309 PyObject * obj0 = 0 ;
4310 PyObject * obj1 = 0 ;
4311 PyObject * obj2 = 0 ;
4312 char *kwnames[] = {
4313 (char *) "self",(char *) "file",(char *) "type", NULL
4314 };
4315
4316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4319 {
4320 arg2 = wxString_in_helper(obj1);
4321 if (arg2 == NULL) SWIG_fail;
4322 temp2 = True;
4323 }
4324 arg3 = (long) SWIG_AsLong(obj2);
4325 if (PyErr_Occurred()) SWIG_fail;
4326 {
4327 PyThreadState* __tstate = wxPyBeginAllowThreads();
4328 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4329
4330 wxPyEndAllowThreads(__tstate);
4331 if (PyErr_Occurred()) SWIG_fail;
4332 }
4333 Py_INCREF(Py_None); resultobj = Py_None;
4334 {
4335 if (temp2)
4336 delete arg2;
4337 }
4338 return resultobj;
4339 fail:
4340 {
4341 if (temp2)
4342 delete arg2;
4343 }
4344 return NULL;
4345 }
4346
4347
4348 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4349 PyObject *resultobj;
4350 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4351 wxSize *arg2 = 0 ;
4352 wxIcon *result;
4353 wxSize temp2 ;
4354 PyObject * obj0 = 0 ;
4355 PyObject * obj1 = 0 ;
4356 char *kwnames[] = {
4357 (char *) "self",(char *) "size", NULL
4358 };
4359
4360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4363 {
4364 arg2 = &temp2;
4365 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4366 }
4367 {
4368 PyThreadState* __tstate = wxPyBeginAllowThreads();
4369 {
4370 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4371 result = (wxIcon *) &_result_ref;
4372 }
4373
4374 wxPyEndAllowThreads(__tstate);
4375 if (PyErr_Occurred()) SWIG_fail;
4376 }
4377 {
4378 wxIcon* resultptr = new wxIcon(*result);
4379 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4380 }
4381 return resultobj;
4382 fail:
4383 return NULL;
4384 }
4385
4386
4387 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4388 PyObject *obj;
4389 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4390 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4391 Py_INCREF(obj);
4392 return Py_BuildValue((char *)"");
4393 }
4394 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4395 PyObject *resultobj;
4396 wxString *arg1 = (wxString *) 0 ;
4397 long arg2 ;
4398 int arg3 = (int) 0 ;
4399 int arg4 = (int) 0 ;
4400 wxCursor *result;
4401 bool temp1 = False ;
4402 PyObject * obj0 = 0 ;
4403 PyObject * obj1 = 0 ;
4404 PyObject * obj2 = 0 ;
4405 PyObject * obj3 = 0 ;
4406 char *kwnames[] = {
4407 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4408 };
4409
4410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4411 {
4412 arg1 = wxString_in_helper(obj0);
4413 if (arg1 == NULL) SWIG_fail;
4414 temp1 = True;
4415 }
4416 arg2 = (long) SWIG_AsLong(obj1);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 if (obj2) {
4419 arg3 = (int) SWIG_AsInt(obj2);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 if (obj3) {
4423 arg4 = (int) SWIG_AsInt(obj3);
4424 if (PyErr_Occurred()) SWIG_fail;
4425 }
4426 {
4427 PyThreadState* __tstate = wxPyBeginAllowThreads();
4428 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4429
4430 wxPyEndAllowThreads(__tstate);
4431 if (PyErr_Occurred()) SWIG_fail;
4432 }
4433 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4434 {
4435 if (temp1)
4436 delete arg1;
4437 }
4438 return resultobj;
4439 fail:
4440 {
4441 if (temp1)
4442 delete arg1;
4443 }
4444 return NULL;
4445 }
4446
4447
4448 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4449 PyObject *resultobj;
4450 wxCursor *arg1 = (wxCursor *) 0 ;
4451 PyObject * obj0 = 0 ;
4452 char *kwnames[] = {
4453 (char *) "self", NULL
4454 };
4455
4456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4459 {
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 delete arg1;
4462
4463 wxPyEndAllowThreads(__tstate);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 Py_INCREF(Py_None); resultobj = Py_None;
4467 return resultobj;
4468 fail:
4469 return NULL;
4470 }
4471
4472
4473 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4474 PyObject *resultobj;
4475 int arg1 ;
4476 wxCursor *result;
4477 PyObject * obj0 = 0 ;
4478 char *kwnames[] = {
4479 (char *) "id", NULL
4480 };
4481
4482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4483 arg1 = (int) SWIG_AsInt(obj0);
4484 if (PyErr_Occurred()) SWIG_fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 result = (wxCursor *)new wxCursor(arg1);
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4493 return resultobj;
4494 fail:
4495 return NULL;
4496 }
4497
4498
4499 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj;
4501 wxImage *arg1 = 0 ;
4502 wxCursor *result;
4503 PyObject * obj0 = 0 ;
4504 char *kwnames[] = {
4505 (char *) "image", NULL
4506 };
4507
4508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4510 SWIG_POINTER_EXCEPTION | 0)) == -1)
4511 SWIG_fail;
4512 if (arg1 == NULL) {
4513 PyErr_SetString(PyExc_TypeError,"null reference");
4514 SWIG_fail;
4515 }
4516 {
4517 PyThreadState* __tstate = wxPyBeginAllowThreads();
4518 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4519
4520 wxPyEndAllowThreads(__tstate);
4521 if (PyErr_Occurred()) SWIG_fail;
4522 }
4523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4524 return resultobj;
4525 fail:
4526 return NULL;
4527 }
4528
4529
4530 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4531 PyObject *resultobj;
4532 wxCursor *arg1 = (wxCursor *) 0 ;
4533 bool result;
4534 PyObject * obj0 = 0 ;
4535 char *kwnames[] = {
4536 (char *) "self", NULL
4537 };
4538
4539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4542 {
4543 PyThreadState* __tstate = wxPyBeginAllowThreads();
4544 result = (bool)(arg1)->Ok();
4545
4546 wxPyEndAllowThreads(__tstate);
4547 if (PyErr_Occurred()) SWIG_fail;
4548 }
4549 {
4550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4551 }
4552 return resultobj;
4553 fail:
4554 return NULL;
4555 }
4556
4557
4558 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4559 PyObject *obj;
4560 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4561 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4562 Py_INCREF(obj);
4563 return Py_BuildValue((char *)"");
4564 }
4565 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 int arg1 = (int) 0 ;
4568 int arg2 = (int) 0 ;
4569 int arg3 = (int) 0 ;
4570 int arg4 = (int) 0 ;
4571 wxRegion *result;
4572 PyObject * obj0 = 0 ;
4573 PyObject * obj1 = 0 ;
4574 PyObject * obj2 = 0 ;
4575 PyObject * obj3 = 0 ;
4576 char *kwnames[] = {
4577 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4578 };
4579
4580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4581 if (obj0) {
4582 arg1 = (int) SWIG_AsInt(obj0);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 if (obj1) {
4586 arg2 = (int) SWIG_AsInt(obj1);
4587 if (PyErr_Occurred()) SWIG_fail;
4588 }
4589 if (obj2) {
4590 arg3 = (int) SWIG_AsInt(obj2);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 if (obj3) {
4594 arg4 = (int) SWIG_AsInt(obj3);
4595 if (PyErr_Occurred()) SWIG_fail;
4596 }
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4600
4601 wxPyEndAllowThreads(__tstate);
4602 if (PyErr_Occurred()) SWIG_fail;
4603 }
4604 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4605 return resultobj;
4606 fail:
4607 return NULL;
4608 }
4609
4610
4611 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4612 PyObject *resultobj;
4613 wxBitmap *arg1 = 0 ;
4614 wxColour const &arg2_defvalue = wxNullColour ;
4615 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4616 int arg3 = (int) 0 ;
4617 wxRegion *result;
4618 wxColour temp2 ;
4619 PyObject * obj0 = 0 ;
4620 PyObject * obj1 = 0 ;
4621 PyObject * obj2 = 0 ;
4622 char *kwnames[] = {
4623 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4624 };
4625
4626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4628 SWIG_POINTER_EXCEPTION | 0)) == -1)
4629 SWIG_fail;
4630 if (arg1 == NULL) {
4631 PyErr_SetString(PyExc_TypeError,"null reference");
4632 SWIG_fail;
4633 }
4634 if (obj1) {
4635 {
4636 arg2 = &temp2;
4637 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4638 }
4639 }
4640 if (obj2) {
4641 arg3 = (int) SWIG_AsInt(obj2);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 {
4645 PyThreadState* __tstate = wxPyBeginAllowThreads();
4646 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4647
4648 wxPyEndAllowThreads(__tstate);
4649 if (PyErr_Occurred()) SWIG_fail;
4650 }
4651 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4652 return resultobj;
4653 fail:
4654 return NULL;
4655 }
4656
4657
4658 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4659 PyObject *resultobj;
4660 int arg1 ;
4661 wxPoint *arg2 = (wxPoint *) 0 ;
4662 int arg3 = (int) wxWINDING_RULE ;
4663 wxRegion *result;
4664 PyObject * obj0 = 0 ;
4665 PyObject * obj1 = 0 ;
4666 char *kwnames[] = {
4667 (char *) "points",(char *) "fillStyle", NULL
4668 };
4669
4670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4671 {
4672 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4673 if (arg2 == NULL) SWIG_fail;
4674 }
4675 if (obj1) {
4676 arg3 = (int) SWIG_AsInt(obj1);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 {
4680 PyThreadState* __tstate = wxPyBeginAllowThreads();
4681 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4682
4683 wxPyEndAllowThreads(__tstate);
4684 if (PyErr_Occurred()) SWIG_fail;
4685 }
4686 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4687 {
4688 if (arg2) delete [] arg2;
4689 }
4690 return resultobj;
4691 fail:
4692 {
4693 if (arg2) delete [] arg2;
4694 }
4695 return NULL;
4696 }
4697
4698
4699 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4700 PyObject *resultobj;
4701 wxRegion *arg1 = (wxRegion *) 0 ;
4702 PyObject * obj0 = 0 ;
4703 char *kwnames[] = {
4704 (char *) "self", NULL
4705 };
4706
4707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4710 {
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 delete arg1;
4713
4714 wxPyEndAllowThreads(__tstate);
4715 if (PyErr_Occurred()) SWIG_fail;
4716 }
4717 Py_INCREF(Py_None); resultobj = Py_None;
4718 return resultobj;
4719 fail:
4720 return NULL;
4721 }
4722
4723
4724 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4725 PyObject *resultobj;
4726 wxRegion *arg1 = (wxRegion *) 0 ;
4727 PyObject * obj0 = 0 ;
4728 char *kwnames[] = {
4729 (char *) "self", NULL
4730 };
4731
4732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4735 {
4736 PyThreadState* __tstate = wxPyBeginAllowThreads();
4737 (arg1)->Clear();
4738
4739 wxPyEndAllowThreads(__tstate);
4740 if (PyErr_Occurred()) SWIG_fail;
4741 }
4742 Py_INCREF(Py_None); resultobj = Py_None;
4743 return resultobj;
4744 fail:
4745 return NULL;
4746 }
4747
4748
4749 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4750 PyObject *resultobj;
4751 wxRegion *arg1 = (wxRegion *) 0 ;
4752 int arg2 ;
4753 int arg3 ;
4754 int result;
4755 PyObject * obj0 = 0 ;
4756 PyObject * obj1 = 0 ;
4757 PyObject * obj2 = 0 ;
4758 char *kwnames[] = {
4759 (char *) "self",(char *) "x",(char *) "y", NULL
4760 };
4761
4762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4765 arg2 = (int) SWIG_AsInt(obj1);
4766 if (PyErr_Occurred()) SWIG_fail;
4767 arg3 = (int) SWIG_AsInt(obj2);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 result = (int)(arg1)->Contains(arg2,arg3);
4772
4773 wxPyEndAllowThreads(__tstate);
4774 if (PyErr_Occurred()) SWIG_fail;
4775 }
4776 resultobj = SWIG_FromInt((int)result);
4777 return resultobj;
4778 fail:
4779 return NULL;
4780 }
4781
4782
4783 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4784 PyObject *resultobj;
4785 wxRegion *arg1 = (wxRegion *) 0 ;
4786 wxPoint *arg2 = 0 ;
4787 int result;
4788 wxPoint temp2 ;
4789 PyObject * obj0 = 0 ;
4790 PyObject * obj1 = 0 ;
4791 char *kwnames[] = {
4792 (char *) "self",(char *) "pt", NULL
4793 };
4794
4795 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4796 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4797 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4798 {
4799 arg2 = &temp2;
4800 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4801 }
4802 {
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4805
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 resultobj = SWIG_FromInt((int)result);
4810 return resultobj;
4811 fail:
4812 return NULL;
4813 }
4814
4815
4816 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4817 PyObject *resultobj;
4818 wxRegion *arg1 = (wxRegion *) 0 ;
4819 wxRect *arg2 = 0 ;
4820 int result;
4821 wxRect temp2 ;
4822 PyObject * obj0 = 0 ;
4823 PyObject * obj1 = 0 ;
4824 char *kwnames[] = {
4825 (char *) "self",(char *) "rect", NULL
4826 };
4827
4828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4831 {
4832 arg2 = &temp2;
4833 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4834 }
4835 {
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 resultobj = SWIG_FromInt((int)result);
4843 return resultobj;
4844 fail:
4845 return NULL;
4846 }
4847
4848
4849 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4850 PyObject *resultobj;
4851 wxRegion *arg1 = (wxRegion *) 0 ;
4852 int arg2 ;
4853 int arg3 ;
4854 int arg4 ;
4855 int arg5 ;
4856 int result;
4857 PyObject * obj0 = 0 ;
4858 PyObject * obj1 = 0 ;
4859 PyObject * obj2 = 0 ;
4860 PyObject * obj3 = 0 ;
4861 PyObject * obj4 = 0 ;
4862 char *kwnames[] = {
4863 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4864 };
4865
4866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4869 arg2 = (int) SWIG_AsInt(obj1);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 arg3 = (int) SWIG_AsInt(obj2);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 arg4 = (int) SWIG_AsInt(obj3);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 arg5 = (int) SWIG_AsInt(obj4);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 {
4878 PyThreadState* __tstate = wxPyBeginAllowThreads();
4879 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4880
4881 wxPyEndAllowThreads(__tstate);
4882 if (PyErr_Occurred()) SWIG_fail;
4883 }
4884 resultobj = SWIG_FromInt((int)result);
4885 return resultobj;
4886 fail:
4887 return NULL;
4888 }
4889
4890
4891 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4892 PyObject *resultobj;
4893 wxRegion *arg1 = (wxRegion *) 0 ;
4894 wxRect result;
4895 PyObject * obj0 = 0 ;
4896 char *kwnames[] = {
4897 (char *) "self", NULL
4898 };
4899
4900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4903 {
4904 PyThreadState* __tstate = wxPyBeginAllowThreads();
4905 result = (arg1)->GetBox();
4906
4907 wxPyEndAllowThreads(__tstate);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 {
4911 wxRect * resultptr;
4912 resultptr = new wxRect((wxRect &) result);
4913 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4914 }
4915 return resultobj;
4916 fail:
4917 return NULL;
4918 }
4919
4920
4921 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4922 PyObject *resultobj;
4923 wxRegion *arg1 = (wxRegion *) 0 ;
4924 int arg2 ;
4925 int arg3 ;
4926 int arg4 ;
4927 int arg5 ;
4928 bool result;
4929 PyObject * obj0 = 0 ;
4930 PyObject * obj1 = 0 ;
4931 PyObject * obj2 = 0 ;
4932 PyObject * obj3 = 0 ;
4933 PyObject * obj4 = 0 ;
4934 char *kwnames[] = {
4935 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4936 };
4937
4938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4941 arg2 = (int) SWIG_AsInt(obj1);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 arg3 = (int) SWIG_AsInt(obj2);
4944 if (PyErr_Occurred()) SWIG_fail;
4945 arg4 = (int) SWIG_AsInt(obj3);
4946 if (PyErr_Occurred()) SWIG_fail;
4947 arg5 = (int) SWIG_AsInt(obj4);
4948 if (PyErr_Occurred()) SWIG_fail;
4949 {
4950 PyThreadState* __tstate = wxPyBeginAllowThreads();
4951 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4952
4953 wxPyEndAllowThreads(__tstate);
4954 if (PyErr_Occurred()) SWIG_fail;
4955 }
4956 {
4957 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4958 }
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4966 PyObject *resultobj;
4967 wxRegion *arg1 = (wxRegion *) 0 ;
4968 wxRect *arg2 = 0 ;
4969 bool result;
4970 wxRect temp2 ;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj1 = 0 ;
4973 char *kwnames[] = {
4974 (char *) "self",(char *) "rect", NULL
4975 };
4976
4977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4980 {
4981 arg2 = &temp2;
4982 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4983 }
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 {
4992 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4993 }
4994 return resultobj;
4995 fail:
4996 return NULL;
4997 }
4998
4999
5000 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5001 PyObject *resultobj;
5002 wxRegion *arg1 = (wxRegion *) 0 ;
5003 wxRegion *arg2 = 0 ;
5004 bool result;
5005 PyObject * obj0 = 0 ;
5006 PyObject * obj1 = 0 ;
5007 char *kwnames[] = {
5008 (char *) "self",(char *) "region", NULL
5009 };
5010
5011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5014 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5015 SWIG_POINTER_EXCEPTION | 0)) == -1)
5016 SWIG_fail;
5017 if (arg2 == NULL) {
5018 PyErr_SetString(PyExc_TypeError,"null reference");
5019 SWIG_fail;
5020 }
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5024
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 {
5029 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5030 }
5031 return resultobj;
5032 fail:
5033 return NULL;
5034 }
5035
5036
5037 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5038 PyObject *resultobj;
5039 wxRegion *arg1 = (wxRegion *) 0 ;
5040 bool result;
5041 PyObject * obj0 = 0 ;
5042 char *kwnames[] = {
5043 (char *) "self", NULL
5044 };
5045
5046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5049 {
5050 PyThreadState* __tstate = wxPyBeginAllowThreads();
5051 result = (bool)(arg1)->IsEmpty();
5052
5053 wxPyEndAllowThreads(__tstate);
5054 if (PyErr_Occurred()) SWIG_fail;
5055 }
5056 {
5057 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5058 }
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj;
5067 wxRegion *arg1 = (wxRegion *) 0 ;
5068 int arg2 ;
5069 int arg3 ;
5070 int arg4 ;
5071 int arg5 ;
5072 bool result;
5073 PyObject * obj0 = 0 ;
5074 PyObject * obj1 = 0 ;
5075 PyObject * obj2 = 0 ;
5076 PyObject * obj3 = 0 ;
5077 PyObject * obj4 = 0 ;
5078 char *kwnames[] = {
5079 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5080 };
5081
5082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5085 arg2 = (int) SWIG_AsInt(obj1);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 arg3 = (int) SWIG_AsInt(obj2);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 arg4 = (int) SWIG_AsInt(obj3);
5090 if (PyErr_Occurred()) SWIG_fail;
5091 arg5 = (int) SWIG_AsInt(obj4);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 {
5094 PyThreadState* __tstate = wxPyBeginAllowThreads();
5095 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5096
5097 wxPyEndAllowThreads(__tstate);
5098 if (PyErr_Occurred()) SWIG_fail;
5099 }
5100 {
5101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5102 }
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj;
5111 wxRegion *arg1 = (wxRegion *) 0 ;
5112 wxRect *arg2 = 0 ;
5113 bool result;
5114 wxRect temp2 ;
5115 PyObject * obj0 = 0 ;
5116 PyObject * obj1 = 0 ;
5117 char *kwnames[] = {
5118 (char *) "self",(char *) "rect", NULL
5119 };
5120
5121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5124 {
5125 arg2 = &temp2;
5126 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5127 }
5128 {
5129 PyThreadState* __tstate = wxPyBeginAllowThreads();
5130 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5131
5132 wxPyEndAllowThreads(__tstate);
5133 if (PyErr_Occurred()) SWIG_fail;
5134 }
5135 {
5136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5137 }
5138 return resultobj;
5139 fail:
5140 return NULL;
5141 }
5142
5143
5144 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5145 PyObject *resultobj;
5146 wxRegion *arg1 = (wxRegion *) 0 ;
5147 wxRegion *arg2 = 0 ;
5148 bool result;
5149 PyObject * obj0 = 0 ;
5150 PyObject * obj1 = 0 ;
5151 char *kwnames[] = {
5152 (char *) "self",(char *) "region", NULL
5153 };
5154
5155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5158 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5159 SWIG_POINTER_EXCEPTION | 0)) == -1)
5160 SWIG_fail;
5161 if (arg2 == NULL) {
5162 PyErr_SetString(PyExc_TypeError,"null reference");
5163 SWIG_fail;
5164 }
5165 {
5166 PyThreadState* __tstate = wxPyBeginAllowThreads();
5167 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5168
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 {
5173 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5174 }
5175 return resultobj;
5176 fail:
5177 return NULL;
5178 }
5179
5180
5181 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5182 PyObject *resultobj;
5183 wxRegion *arg1 = (wxRegion *) 0 ;
5184 int arg2 ;
5185 int arg3 ;
5186 int arg4 ;
5187 int arg5 ;
5188 bool result;
5189 PyObject * obj0 = 0 ;
5190 PyObject * obj1 = 0 ;
5191 PyObject * obj2 = 0 ;
5192 PyObject * obj3 = 0 ;
5193 PyObject * obj4 = 0 ;
5194 char *kwnames[] = {
5195 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5196 };
5197
5198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5201 arg2 = (int) SWIG_AsInt(obj1);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 arg3 = (int) SWIG_AsInt(obj2);
5204 if (PyErr_Occurred()) SWIG_fail;
5205 arg4 = (int) SWIG_AsInt(obj3);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 arg5 = (int) SWIG_AsInt(obj4);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5212
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 {
5217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5218 }
5219 return resultobj;
5220 fail:
5221 return NULL;
5222 }
5223
5224
5225 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj;
5227 wxRegion *arg1 = (wxRegion *) 0 ;
5228 wxRect *arg2 = 0 ;
5229 bool result;
5230 wxRect temp2 ;
5231 PyObject * obj0 = 0 ;
5232 PyObject * obj1 = 0 ;
5233 char *kwnames[] = {
5234 (char *) "self",(char *) "rect", NULL
5235 };
5236
5237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5240 {
5241 arg2 = &temp2;
5242 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5243 }
5244 {
5245 PyThreadState* __tstate = wxPyBeginAllowThreads();
5246 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5247
5248 wxPyEndAllowThreads(__tstate);
5249 if (PyErr_Occurred()) SWIG_fail;
5250 }
5251 {
5252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5253 }
5254 return resultobj;
5255 fail:
5256 return NULL;
5257 }
5258
5259
5260 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj;
5262 wxRegion *arg1 = (wxRegion *) 0 ;
5263 wxRegion *arg2 = 0 ;
5264 bool result;
5265 PyObject * obj0 = 0 ;
5266 PyObject * obj1 = 0 ;
5267 char *kwnames[] = {
5268 (char *) "self",(char *) "region", NULL
5269 };
5270
5271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5274 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5275 SWIG_POINTER_EXCEPTION | 0)) == -1)
5276 SWIG_fail;
5277 if (arg2 == NULL) {
5278 PyErr_SetString(PyExc_TypeError,"null reference");
5279 SWIG_fail;
5280 }
5281 {
5282 PyThreadState* __tstate = wxPyBeginAllowThreads();
5283 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5284
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 {
5289 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5290 }
5291 return resultobj;
5292 fail:
5293 return NULL;
5294 }
5295
5296
5297 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5298 PyObject *resultobj;
5299 wxRegion *arg1 = (wxRegion *) 0 ;
5300 int arg2 ;
5301 int arg3 ;
5302 int arg4 ;
5303 int arg5 ;
5304 bool result;
5305 PyObject * obj0 = 0 ;
5306 PyObject * obj1 = 0 ;
5307 PyObject * obj2 = 0 ;
5308 PyObject * obj3 = 0 ;
5309 PyObject * obj4 = 0 ;
5310 char *kwnames[] = {
5311 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5312 };
5313
5314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5317 arg2 = (int) SWIG_AsInt(obj1);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 arg3 = (int) SWIG_AsInt(obj2);
5320 if (PyErr_Occurred()) SWIG_fail;
5321 arg4 = (int) SWIG_AsInt(obj3);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 arg5 = (int) SWIG_AsInt(obj4);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5328
5329 wxPyEndAllowThreads(__tstate);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 }
5332 {
5333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5334 }
5335 return resultobj;
5336 fail:
5337 return NULL;
5338 }
5339
5340
5341 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj;
5343 wxRegion *arg1 = (wxRegion *) 0 ;
5344 wxRect *arg2 = 0 ;
5345 bool result;
5346 wxRect temp2 ;
5347 PyObject * obj0 = 0 ;
5348 PyObject * obj1 = 0 ;
5349 char *kwnames[] = {
5350 (char *) "self",(char *) "rect", NULL
5351 };
5352
5353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5356 {
5357 arg2 = &temp2;
5358 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5359 }
5360 {
5361 PyThreadState* __tstate = wxPyBeginAllowThreads();
5362 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5363
5364 wxPyEndAllowThreads(__tstate);
5365 if (PyErr_Occurred()) SWIG_fail;
5366 }
5367 {
5368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5369 }
5370 return resultobj;
5371 fail:
5372 return NULL;
5373 }
5374
5375
5376 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5377 PyObject *resultobj;
5378 wxRegion *arg1 = (wxRegion *) 0 ;
5379 wxRegion *arg2 = 0 ;
5380 bool result;
5381 PyObject * obj0 = 0 ;
5382 PyObject * obj1 = 0 ;
5383 char *kwnames[] = {
5384 (char *) "self",(char *) "region", NULL
5385 };
5386
5387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5390 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5391 SWIG_POINTER_EXCEPTION | 0)) == -1)
5392 SWIG_fail;
5393 if (arg2 == NULL) {
5394 PyErr_SetString(PyExc_TypeError,"null reference");
5395 SWIG_fail;
5396 }
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 {
5405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5406 }
5407 return resultobj;
5408 fail:
5409 return NULL;
5410 }
5411
5412
5413 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5414 PyObject *resultobj;
5415 wxRegion *arg1 = (wxRegion *) 0 ;
5416 SwigValueWrapper< wxBitmap > result;
5417 PyObject * obj0 = 0 ;
5418 char *kwnames[] = {
5419 (char *) "self", NULL
5420 };
5421
5422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5425 {
5426 PyThreadState* __tstate = wxPyBeginAllowThreads();
5427 result = (arg1)->ConvertToBitmap();
5428
5429 wxPyEndAllowThreads(__tstate);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 }
5432 {
5433 wxBitmap * resultptr;
5434 resultptr = new wxBitmap((wxBitmap &) result);
5435 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5436 }
5437 return resultobj;
5438 fail:
5439 return NULL;
5440 }
5441
5442
5443 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxRegion *arg1 = (wxRegion *) 0 ;
5446 wxBitmap *arg2 = 0 ;
5447 wxColour const &arg3_defvalue = wxNullColour ;
5448 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5449 int arg4 = (int) 0 ;
5450 bool result;
5451 wxColour temp3 ;
5452 PyObject * obj0 = 0 ;
5453 PyObject * obj1 = 0 ;
5454 PyObject * obj2 = 0 ;
5455 PyObject * obj3 = 0 ;
5456 char *kwnames[] = {
5457 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5458 };
5459
5460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5463 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5464 SWIG_POINTER_EXCEPTION | 0)) == -1)
5465 SWIG_fail;
5466 if (arg2 == NULL) {
5467 PyErr_SetString(PyExc_TypeError,"null reference");
5468 SWIG_fail;
5469 }
5470 if (obj2) {
5471 {
5472 arg3 = &temp3;
5473 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5474 }
5475 }
5476 if (obj3) {
5477 arg4 = (int) SWIG_AsInt(obj3);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 {
5481 PyThreadState* __tstate = wxPyBeginAllowThreads();
5482 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5483
5484 wxPyEndAllowThreads(__tstate);
5485 if (PyErr_Occurred()) SWIG_fail;
5486 }
5487 {
5488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5489 }
5490 return resultobj;
5491 fail:
5492 return NULL;
5493 }
5494
5495
5496 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5497 PyObject *obj;
5498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5499 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5500 Py_INCREF(obj);
5501 return Py_BuildValue((char *)"");
5502 }
5503 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj;
5505 wxRegion *arg1 = 0 ;
5506 wxRegionIterator *result;
5507 PyObject * obj0 = 0 ;
5508 char *kwnames[] = {
5509 (char *) "region", NULL
5510 };
5511
5512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5514 SWIG_POINTER_EXCEPTION | 0)) == -1)
5515 SWIG_fail;
5516 if (arg1 == NULL) {
5517 PyErr_SetString(PyExc_TypeError,"null reference");
5518 SWIG_fail;
5519 }
5520 {
5521 PyThreadState* __tstate = wxPyBeginAllowThreads();
5522 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5523
5524 wxPyEndAllowThreads(__tstate);
5525 if (PyErr_Occurred()) SWIG_fail;
5526 }
5527 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5528 return resultobj;
5529 fail:
5530 return NULL;
5531 }
5532
5533
5534 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5535 PyObject *resultobj;
5536 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5537 PyObject * obj0 = 0 ;
5538 char *kwnames[] = {
5539 (char *) "self", NULL
5540 };
5541
5542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5545 {
5546 PyThreadState* __tstate = wxPyBeginAllowThreads();
5547 delete arg1;
5548
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 Py_INCREF(Py_None); resultobj = Py_None;
5553 return resultobj;
5554 fail:
5555 return NULL;
5556 }
5557
5558
5559 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5560 PyObject *resultobj;
5561 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5562 int result;
5563 PyObject * obj0 = 0 ;
5564 char *kwnames[] = {
5565 (char *) "self", NULL
5566 };
5567
5568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5571 {
5572 PyThreadState* __tstate = wxPyBeginAllowThreads();
5573 result = (int)(arg1)->GetX();
5574
5575 wxPyEndAllowThreads(__tstate);
5576 if (PyErr_Occurred()) SWIG_fail;
5577 }
5578 resultobj = SWIG_FromInt((int)result);
5579 return resultobj;
5580 fail:
5581 return NULL;
5582 }
5583
5584
5585 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5586 PyObject *resultobj;
5587 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5588 int result;
5589 PyObject * obj0 = 0 ;
5590 char *kwnames[] = {
5591 (char *) "self", NULL
5592 };
5593
5594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5597 {
5598 PyThreadState* __tstate = wxPyBeginAllowThreads();
5599 result = (int)(arg1)->GetY();
5600
5601 wxPyEndAllowThreads(__tstate);
5602 if (PyErr_Occurred()) SWIG_fail;
5603 }
5604 resultobj = SWIG_FromInt((int)result);
5605 return resultobj;
5606 fail:
5607 return NULL;
5608 }
5609
5610
5611 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5612 PyObject *resultobj;
5613 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5614 int result;
5615 PyObject * obj0 = 0 ;
5616 char *kwnames[] = {
5617 (char *) "self", NULL
5618 };
5619
5620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5623 {
5624 PyThreadState* __tstate = wxPyBeginAllowThreads();
5625 result = (int)(arg1)->GetW();
5626
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 resultobj = SWIG_FromInt((int)result);
5631 return resultobj;
5632 fail:
5633 return NULL;
5634 }
5635
5636
5637 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5638 PyObject *resultobj;
5639 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5640 int result;
5641 PyObject * obj0 = 0 ;
5642 char *kwnames[] = {
5643 (char *) "self", NULL
5644 };
5645
5646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5649 {
5650 PyThreadState* __tstate = wxPyBeginAllowThreads();
5651 result = (int)(arg1)->GetWidth();
5652
5653 wxPyEndAllowThreads(__tstate);
5654 if (PyErr_Occurred()) SWIG_fail;
5655 }
5656 resultobj = SWIG_FromInt((int)result);
5657 return resultobj;
5658 fail:
5659 return NULL;
5660 }
5661
5662
5663 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5664 PyObject *resultobj;
5665 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5666 int result;
5667 PyObject * obj0 = 0 ;
5668 char *kwnames[] = {
5669 (char *) "self", NULL
5670 };
5671
5672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5675 {
5676 PyThreadState* __tstate = wxPyBeginAllowThreads();
5677 result = (int)(arg1)->GetH();
5678
5679 wxPyEndAllowThreads(__tstate);
5680 if (PyErr_Occurred()) SWIG_fail;
5681 }
5682 resultobj = SWIG_FromInt((int)result);
5683 return resultobj;
5684 fail:
5685 return NULL;
5686 }
5687
5688
5689 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5690 PyObject *resultobj;
5691 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5692 int result;
5693 PyObject * obj0 = 0 ;
5694 char *kwnames[] = {
5695 (char *) "self", NULL
5696 };
5697
5698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 result = (int)(arg1)->GetHeight();
5704
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 resultobj = SWIG_FromInt((int)result);
5709 return resultobj;
5710 fail:
5711 return NULL;
5712 }
5713
5714
5715 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5716 PyObject *resultobj;
5717 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5718 wxRect result;
5719 PyObject * obj0 = 0 ;
5720 char *kwnames[] = {
5721 (char *) "self", NULL
5722 };
5723
5724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5727 {
5728 PyThreadState* __tstate = wxPyBeginAllowThreads();
5729 result = (arg1)->GetRect();
5730
5731 wxPyEndAllowThreads(__tstate);
5732 if (PyErr_Occurred()) SWIG_fail;
5733 }
5734 {
5735 wxRect * resultptr;
5736 resultptr = new wxRect((wxRect &) result);
5737 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5738 }
5739 return resultobj;
5740 fail:
5741 return NULL;
5742 }
5743
5744
5745 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5748 bool result;
5749 PyObject * obj0 = 0 ;
5750 char *kwnames[] = {
5751 (char *) "self", NULL
5752 };
5753
5754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (bool)(arg1)->HaveRects();
5760
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 {
5765 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5766 }
5767 return resultobj;
5768 fail:
5769 return NULL;
5770 }
5771
5772
5773 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5774 PyObject *resultobj;
5775 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5776 PyObject * obj0 = 0 ;
5777 char *kwnames[] = {
5778 (char *) "self", NULL
5779 };
5780
5781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5784 {
5785 PyThreadState* __tstate = wxPyBeginAllowThreads();
5786 (arg1)->Reset();
5787
5788 wxPyEndAllowThreads(__tstate);
5789 if (PyErr_Occurred()) SWIG_fail;
5790 }
5791 Py_INCREF(Py_None); resultobj = Py_None;
5792 return resultobj;
5793 fail:
5794 return NULL;
5795 }
5796
5797
5798 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5799 PyObject *resultobj;
5800 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5801 PyObject * obj0 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 wxRegionIterator_Next(arg1);
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 Py_INCREF(Py_None); resultobj = Py_None;
5817 return resultobj;
5818 fail:
5819 return NULL;
5820 }
5821
5822
5823 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5824 PyObject *resultobj;
5825 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5826 bool result;
5827 PyObject * obj0 = 0 ;
5828 char *kwnames[] = {
5829 (char *) "self", NULL
5830 };
5831
5832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5835 {
5836 PyThreadState* __tstate = wxPyBeginAllowThreads();
5837 result = (bool)wxRegionIterator___nonzero__(arg1);
5838
5839 wxPyEndAllowThreads(__tstate);
5840 if (PyErr_Occurred()) SWIG_fail;
5841 }
5842 {
5843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5844 }
5845 return resultobj;
5846 fail:
5847 return NULL;
5848 }
5849
5850
5851 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5852 PyObject *obj;
5853 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5854 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5855 Py_INCREF(obj);
5856 return Py_BuildValue((char *)"");
5857 }
5858 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5859 PyObject *resultobj;
5860 wxNativeFontInfo *result;
5861 char *kwnames[] = {
5862 NULL
5863 };
5864
5865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5874 return resultobj;
5875 fail:
5876 return NULL;
5877 }
5878
5879
5880 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5883 PyObject * obj0 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 delete arg1;
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 Py_INCREF(Py_None); resultobj = Py_None;
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj;
5907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5908 PyObject * obj0 = 0 ;
5909 char *kwnames[] = {
5910 (char *) "self", NULL
5911 };
5912
5913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5916 {
5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
5918 (arg1)->Init();
5919
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 Py_INCREF(Py_None); resultobj = Py_None;
5924 return resultobj;
5925 fail:
5926 return NULL;
5927 }
5928
5929
5930 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5931 PyObject *resultobj;
5932 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5933 wxFont *arg2 = 0 ;
5934 PyObject * obj0 = 0 ;
5935 PyObject * obj1 = 0 ;
5936 char *kwnames[] = {
5937 (char *) "self",(char *) "font", NULL
5938 };
5939
5940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5943 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
5944 SWIG_POINTER_EXCEPTION | 0)) == -1)
5945 SWIG_fail;
5946 if (arg2 == NULL) {
5947 PyErr_SetString(PyExc_TypeError,"null reference");
5948 SWIG_fail;
5949 }
5950 {
5951 PyThreadState* __tstate = wxPyBeginAllowThreads();
5952 (arg1)->InitFromFont((wxFont const &)*arg2);
5953
5954 wxPyEndAllowThreads(__tstate);
5955 if (PyErr_Occurred()) SWIG_fail;
5956 }
5957 Py_INCREF(Py_None); resultobj = Py_None;
5958 return resultobj;
5959 fail:
5960 return NULL;
5961 }
5962
5963
5964 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5965 PyObject *resultobj;
5966 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5967 int result;
5968 PyObject * obj0 = 0 ;
5969 char *kwnames[] = {
5970 (char *) "self", NULL
5971 };
5972
5973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5976 {
5977 PyThreadState* __tstate = wxPyBeginAllowThreads();
5978 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5979
5980 wxPyEndAllowThreads(__tstate);
5981 if (PyErr_Occurred()) SWIG_fail;
5982 }
5983 resultobj = SWIG_FromInt((int)result);
5984 return resultobj;
5985 fail:
5986 return NULL;
5987 }
5988
5989
5990 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
5991 PyObject *resultobj;
5992 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5993 int result;
5994 PyObject * obj0 = 0 ;
5995 char *kwnames[] = {
5996 (char *) "self", NULL
5997 };
5998
5999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6002 {
6003 PyThreadState* __tstate = wxPyBeginAllowThreads();
6004 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6005
6006 wxPyEndAllowThreads(__tstate);
6007 if (PyErr_Occurred()) SWIG_fail;
6008 }
6009 resultobj = SWIG_FromInt((int)result);
6010 return resultobj;
6011 fail:
6012 return NULL;
6013 }
6014
6015
6016 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6017 PyObject *resultobj;
6018 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6019 int result;
6020 PyObject * obj0 = 0 ;
6021 char *kwnames[] = {
6022 (char *) "self", NULL
6023 };
6024
6025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6028 {
6029 PyThreadState* __tstate = wxPyBeginAllowThreads();
6030 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6031
6032 wxPyEndAllowThreads(__tstate);
6033 if (PyErr_Occurred()) SWIG_fail;
6034 }
6035 resultobj = SWIG_FromInt((int)result);
6036 return resultobj;
6037 fail:
6038 return NULL;
6039 }
6040
6041
6042 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6043 PyObject *resultobj;
6044 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6045 bool result;
6046 PyObject * obj0 = 0 ;
6047 char *kwnames[] = {
6048 (char *) "self", NULL
6049 };
6050
6051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6054 {
6055 PyThreadState* __tstate = wxPyBeginAllowThreads();
6056 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6057
6058 wxPyEndAllowThreads(__tstate);
6059 if (PyErr_Occurred()) SWIG_fail;
6060 }
6061 {
6062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6063 }
6064 return resultobj;
6065 fail:
6066 return NULL;
6067 }
6068
6069
6070 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj;
6072 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6073 wxString result;
6074 PyObject * obj0 = 0 ;
6075 char *kwnames[] = {
6076 (char *) "self", NULL
6077 };
6078
6079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6082 {
6083 PyThreadState* __tstate = wxPyBeginAllowThreads();
6084 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6085
6086 wxPyEndAllowThreads(__tstate);
6087 if (PyErr_Occurred()) SWIG_fail;
6088 }
6089 {
6090 #if wxUSE_UNICODE
6091 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6092 #else
6093 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6094 #endif
6095 }
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj;
6104 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6105 int result;
6106 PyObject * obj0 = 0 ;
6107 char *kwnames[] = {
6108 (char *) "self", NULL
6109 };
6110
6111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",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 = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6117
6118 wxPyEndAllowThreads(__tstate);
6119 if (PyErr_Occurred()) SWIG_fail;
6120 }
6121 resultobj = SWIG_FromInt((int)result);
6122 return resultobj;
6123 fail:
6124 return NULL;
6125 }
6126
6127
6128 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6129 PyObject *resultobj;
6130 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6131 int result;
6132 PyObject * obj0 = 0 ;
6133 char *kwnames[] = {
6134 (char *) "self", NULL
6135 };
6136
6137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6140 {
6141 PyThreadState* __tstate = wxPyBeginAllowThreads();
6142 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6143
6144 wxPyEndAllowThreads(__tstate);
6145 if (PyErr_Occurred()) SWIG_fail;
6146 }
6147 resultobj = SWIG_FromInt((int)result);
6148 return resultobj;
6149 fail:
6150 return NULL;
6151 }
6152
6153
6154 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6155 PyObject *resultobj;
6156 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6157 int arg2 ;
6158 PyObject * obj0 = 0 ;
6159 PyObject * obj1 = 0 ;
6160 char *kwnames[] = {
6161 (char *) "self",(char *) "pointsize", NULL
6162 };
6163
6164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6167 arg2 = (int) SWIG_AsInt(obj1);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 {
6170 PyThreadState* __tstate = wxPyBeginAllowThreads();
6171 (arg1)->SetPointSize(arg2);
6172
6173 wxPyEndAllowThreads(__tstate);
6174 if (PyErr_Occurred()) SWIG_fail;
6175 }
6176 Py_INCREF(Py_None); resultobj = Py_None;
6177 return resultobj;
6178 fail:
6179 return NULL;
6180 }
6181
6182
6183 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6184 PyObject *resultobj;
6185 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6186 int arg2 ;
6187 PyObject * obj0 = 0 ;
6188 PyObject * obj1 = 0 ;
6189 char *kwnames[] = {
6190 (char *) "self",(char *) "style", NULL
6191 };
6192
6193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6196 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6197 if (PyErr_Occurred()) SWIG_fail;
6198 {
6199 PyThreadState* __tstate = wxPyBeginAllowThreads();
6200 (arg1)->SetStyle((wxFontStyle )arg2);
6201
6202 wxPyEndAllowThreads(__tstate);
6203 if (PyErr_Occurred()) SWIG_fail;
6204 }
6205 Py_INCREF(Py_None); resultobj = Py_None;
6206 return resultobj;
6207 fail:
6208 return NULL;
6209 }
6210
6211
6212 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6213 PyObject *resultobj;
6214 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6215 int arg2 ;
6216 PyObject * obj0 = 0 ;
6217 PyObject * obj1 = 0 ;
6218 char *kwnames[] = {
6219 (char *) "self",(char *) "weight", NULL
6220 };
6221
6222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6225 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6226 if (PyErr_Occurred()) SWIG_fail;
6227 {
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 (arg1)->SetWeight((wxFontWeight )arg2);
6230
6231 wxPyEndAllowThreads(__tstate);
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 Py_INCREF(Py_None); resultobj = Py_None;
6235 return resultobj;
6236 fail:
6237 return NULL;
6238 }
6239
6240
6241 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj;
6243 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6244 bool arg2 ;
6245 PyObject * obj0 = 0 ;
6246 PyObject * obj1 = 0 ;
6247 char *kwnames[] = {
6248 (char *) "self",(char *) "underlined", NULL
6249 };
6250
6251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6254 arg2 = (bool) SWIG_AsBool(obj1);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 {
6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
6258 (arg1)->SetUnderlined(arg2);
6259
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 Py_INCREF(Py_None); resultobj = Py_None;
6264 return resultobj;
6265 fail:
6266 return NULL;
6267 }
6268
6269
6270 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj;
6272 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6273 wxString arg2 ;
6274 PyObject * obj0 = 0 ;
6275 PyObject * obj1 = 0 ;
6276 char *kwnames[] = {
6277 (char *) "self",(char *) "facename", NULL
6278 };
6279
6280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6283 {
6284 wxString* sptr = wxString_in_helper(obj1);
6285 if (sptr == NULL) SWIG_fail;
6286 arg2 = *sptr;
6287 delete sptr;
6288 }
6289 {
6290 PyThreadState* __tstate = wxPyBeginAllowThreads();
6291 (arg1)->SetFaceName(arg2);
6292
6293 wxPyEndAllowThreads(__tstate);
6294 if (PyErr_Occurred()) SWIG_fail;
6295 }
6296 Py_INCREF(Py_None); resultobj = Py_None;
6297 return resultobj;
6298 fail:
6299 return NULL;
6300 }
6301
6302
6303 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6304 PyObject *resultobj;
6305 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6306 int arg2 ;
6307 PyObject * obj0 = 0 ;
6308 PyObject * obj1 = 0 ;
6309 char *kwnames[] = {
6310 (char *) "self",(char *) "family", NULL
6311 };
6312
6313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6316 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6317 if (PyErr_Occurred()) SWIG_fail;
6318 {
6319 PyThreadState* __tstate = wxPyBeginAllowThreads();
6320 (arg1)->SetFamily((wxFontFamily )arg2);
6321
6322 wxPyEndAllowThreads(__tstate);
6323 if (PyErr_Occurred()) SWIG_fail;
6324 }
6325 Py_INCREF(Py_None); resultobj = Py_None;
6326 return resultobj;
6327 fail:
6328 return NULL;
6329 }
6330
6331
6332 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6333 PyObject *resultobj;
6334 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6335 int arg2 ;
6336 PyObject * obj0 = 0 ;
6337 PyObject * obj1 = 0 ;
6338 char *kwnames[] = {
6339 (char *) "self",(char *) "encoding", NULL
6340 };
6341
6342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6345 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 {
6348 PyThreadState* __tstate = wxPyBeginAllowThreads();
6349 (arg1)->SetEncoding((wxFontEncoding )arg2);
6350
6351 wxPyEndAllowThreads(__tstate);
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 Py_INCREF(Py_None); resultobj = Py_None;
6355 return resultobj;
6356 fail:
6357 return NULL;
6358 }
6359
6360
6361 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6362 PyObject *resultobj;
6363 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6364 wxString *arg2 = 0 ;
6365 bool result;
6366 bool temp2 = False ;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 char *kwnames[] = {
6370 (char *) "self",(char *) "s", NULL
6371 };
6372
6373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6376 {
6377 arg2 = wxString_in_helper(obj1);
6378 if (arg2 == NULL) SWIG_fail;
6379 temp2 = True;
6380 }
6381 {
6382 PyThreadState* __tstate = wxPyBeginAllowThreads();
6383 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6384
6385 wxPyEndAllowThreads(__tstate);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 {
6389 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6390 }
6391 {
6392 if (temp2)
6393 delete arg2;
6394 }
6395 return resultobj;
6396 fail:
6397 {
6398 if (temp2)
6399 delete arg2;
6400 }
6401 return NULL;
6402 }
6403
6404
6405 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6406 PyObject *resultobj;
6407 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6408 wxString result;
6409 PyObject * obj0 = 0 ;
6410 char *kwnames[] = {
6411 (char *) "self", NULL
6412 };
6413
6414 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6415 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6417 {
6418 PyThreadState* __tstate = wxPyBeginAllowThreads();
6419 result = ((wxNativeFontInfo const *)arg1)->ToString();
6420
6421 wxPyEndAllowThreads(__tstate);
6422 if (PyErr_Occurred()) SWIG_fail;
6423 }
6424 {
6425 #if wxUSE_UNICODE
6426 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6427 #else
6428 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6429 #endif
6430 }
6431 return resultobj;
6432 fail:
6433 return NULL;
6434 }
6435
6436
6437 static PyObject *_wrap_NativeFontInfo___str__(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___str__",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___str__(arg1);
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_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj;
6471 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6472 wxString *arg2 = 0 ;
6473 bool result;
6474 bool temp2 = False ;
6475 PyObject * obj0 = 0 ;
6476 PyObject * obj1 = 0 ;
6477 char *kwnames[] = {
6478 (char *) "self",(char *) "s", NULL
6479 };
6480
6481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6484 {
6485 arg2 = wxString_in_helper(obj1);
6486 if (arg2 == NULL) SWIG_fail;
6487 temp2 = True;
6488 }
6489 {
6490 PyThreadState* __tstate = wxPyBeginAllowThreads();
6491 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6492
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 {
6497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6498 }
6499 {
6500 if (temp2)
6501 delete arg2;
6502 }
6503 return resultobj;
6504 fail:
6505 {
6506 if (temp2)
6507 delete arg2;
6508 }
6509 return NULL;
6510 }
6511
6512
6513 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6514 PyObject *resultobj;
6515 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6516 wxString result;
6517 PyObject * obj0 = 0 ;
6518 char *kwnames[] = {
6519 (char *) "self", NULL
6520 };
6521
6522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6525 {
6526 PyThreadState* __tstate = wxPyBeginAllowThreads();
6527 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6528
6529 wxPyEndAllowThreads(__tstate);
6530 if (PyErr_Occurred()) SWIG_fail;
6531 }
6532 {
6533 #if wxUSE_UNICODE
6534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6535 #else
6536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6537 #endif
6538 }
6539 return resultobj;
6540 fail:
6541 return NULL;
6542 }
6543
6544
6545 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6546 PyObject *obj;
6547 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6548 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6549 Py_INCREF(obj);
6550 return Py_BuildValue((char *)"");
6551 }
6552 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6553 PyObject *resultobj;
6554 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6555 wxString *arg2 = (wxString *) 0 ;
6556 bool temp2 = False ;
6557 PyObject * obj0 = 0 ;
6558 PyObject * obj1 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self",(char *) "facename", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 {
6567 arg2 = wxString_in_helper(obj1);
6568 if (arg2 == NULL) SWIG_fail;
6569 temp2 = True;
6570 }
6571 if (arg1) (arg1)->facename = *arg2;
6572
6573 Py_INCREF(Py_None); resultobj = Py_None;
6574 {
6575 if (temp2)
6576 delete arg2;
6577 }
6578 return resultobj;
6579 fail:
6580 {
6581 if (temp2)
6582 delete arg2;
6583 }
6584 return NULL;
6585 }
6586
6587
6588 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6589 PyObject *resultobj;
6590 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6591 wxString *result;
6592 PyObject * obj0 = 0 ;
6593 char *kwnames[] = {
6594 (char *) "self", NULL
6595 };
6596
6597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6598 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6599 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6600 result = (wxString *)& ((arg1)->facename);
6601
6602 {
6603 #if wxUSE_UNICODE
6604 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6605 #else
6606 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6607 #endif
6608 }
6609 return resultobj;
6610 fail:
6611 return NULL;
6612 }
6613
6614
6615 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6616 PyObject *resultobj;
6617 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6618 int arg2 ;
6619 PyObject * obj0 = 0 ;
6620 PyObject * obj1 = 0 ;
6621 char *kwnames[] = {
6622 (char *) "self",(char *) "encoding", NULL
6623 };
6624
6625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6628 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6629 if (PyErr_Occurred()) SWIG_fail;
6630 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6631
6632 Py_INCREF(Py_None); resultobj = Py_None;
6633 return resultobj;
6634 fail:
6635 return NULL;
6636 }
6637
6638
6639 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6640 PyObject *resultobj;
6641 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6642 int result;
6643 PyObject * obj0 = 0 ;
6644 char *kwnames[] = {
6645 (char *) "self", NULL
6646 };
6647
6648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6651 result = (int) ((arg1)->encoding);
6652
6653 resultobj = SWIG_FromInt((int)result);
6654 return resultobj;
6655 fail:
6656 return NULL;
6657 }
6658
6659
6660 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6661 PyObject *resultobj;
6662 wxNativeEncodingInfo *result;
6663 char *kwnames[] = {
6664 NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6668 {
6669 PyThreadState* __tstate = wxPyBeginAllowThreads();
6670 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6671
6672 wxPyEndAllowThreads(__tstate);
6673 if (PyErr_Occurred()) SWIG_fail;
6674 }
6675 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6676 return resultobj;
6677 fail:
6678 return NULL;
6679 }
6680
6681
6682 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6683 PyObject *resultobj;
6684 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6685 PyObject * obj0 = 0 ;
6686 char *kwnames[] = {
6687 (char *) "self", NULL
6688 };
6689
6690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 delete arg1;
6696
6697 wxPyEndAllowThreads(__tstate);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 Py_INCREF(Py_None); resultobj = Py_None;
6701 return resultobj;
6702 fail:
6703 return NULL;
6704 }
6705
6706
6707 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6708 PyObject *resultobj;
6709 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6710 wxString *arg2 = 0 ;
6711 bool result;
6712 bool temp2 = False ;
6713 PyObject * obj0 = 0 ;
6714 PyObject * obj1 = 0 ;
6715 char *kwnames[] = {
6716 (char *) "self",(char *) "s", NULL
6717 };
6718
6719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6722 {
6723 arg2 = wxString_in_helper(obj1);
6724 if (arg2 == NULL) SWIG_fail;
6725 temp2 = True;
6726 }
6727 {
6728 PyThreadState* __tstate = wxPyBeginAllowThreads();
6729 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6730
6731 wxPyEndAllowThreads(__tstate);
6732 if (PyErr_Occurred()) SWIG_fail;
6733 }
6734 {
6735 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6736 }
6737 {
6738 if (temp2)
6739 delete arg2;
6740 }
6741 return resultobj;
6742 fail:
6743 {
6744 if (temp2)
6745 delete arg2;
6746 }
6747 return NULL;
6748 }
6749
6750
6751 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6752 PyObject *resultobj;
6753 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6754 wxString result;
6755 PyObject * obj0 = 0 ;
6756 char *kwnames[] = {
6757 (char *) "self", NULL
6758 };
6759
6760 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6761 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6762 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
6765 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 {
6771 #if wxUSE_UNICODE
6772 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6773 #else
6774 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6775 #endif
6776 }
6777 return resultobj;
6778 fail:
6779 return NULL;
6780 }
6781
6782
6783 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6784 PyObject *obj;
6785 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6786 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6787 Py_INCREF(obj);
6788 return Py_BuildValue((char *)"");
6789 }
6790 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6791 PyObject *resultobj;
6792 int arg1 ;
6793 wxNativeEncodingInfo *result;
6794 PyObject * obj0 = 0 ;
6795 char *kwnames[] = {
6796 (char *) "encoding", NULL
6797 };
6798
6799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6800 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6801 if (PyErr_Occurred()) SWIG_fail;
6802 {
6803 PyThreadState* __tstate = wxPyBeginAllowThreads();
6804 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6805
6806 wxPyEndAllowThreads(__tstate);
6807 if (PyErr_Occurred()) SWIG_fail;
6808 }
6809 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6810 return resultobj;
6811 fail:
6812 return NULL;
6813 }
6814
6815
6816 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6817 PyObject *resultobj;
6818 wxNativeEncodingInfo *arg1 = 0 ;
6819 bool result;
6820 PyObject * obj0 = 0 ;
6821 char *kwnames[] = {
6822 (char *) "info", NULL
6823 };
6824
6825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6827 SWIG_POINTER_EXCEPTION | 0)) == -1)
6828 SWIG_fail;
6829 if (arg1 == NULL) {
6830 PyErr_SetString(PyExc_TypeError,"null reference");
6831 SWIG_fail;
6832 }
6833 {
6834 PyThreadState* __tstate = wxPyBeginAllowThreads();
6835 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6836
6837 wxPyEndAllowThreads(__tstate);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 {
6841 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6842 }
6843 return resultobj;
6844 fail:
6845 return NULL;
6846 }
6847
6848
6849 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6850 PyObject *resultobj;
6851 wxFontMapper *result;
6852 char *kwnames[] = {
6853 NULL
6854 };
6855
6856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6857 {
6858 PyThreadState* __tstate = wxPyBeginAllowThreads();
6859 result = (wxFontMapper *)new wxFontMapper();
6860
6861 wxPyEndAllowThreads(__tstate);
6862 if (PyErr_Occurred()) SWIG_fail;
6863 }
6864 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6865 return resultobj;
6866 fail:
6867 return NULL;
6868 }
6869
6870
6871 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6872 PyObject *resultobj;
6873 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6874 PyObject * obj0 = 0 ;
6875 char *kwnames[] = {
6876 (char *) "self", NULL
6877 };
6878
6879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6882 {
6883 PyThreadState* __tstate = wxPyBeginAllowThreads();
6884 delete arg1;
6885
6886 wxPyEndAllowThreads(__tstate);
6887 if (PyErr_Occurred()) SWIG_fail;
6888 }
6889 Py_INCREF(Py_None); resultobj = Py_None;
6890 return resultobj;
6891 fail:
6892 return NULL;
6893 }
6894
6895
6896 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj;
6898 wxFontMapper *result;
6899 char *kwnames[] = {
6900 NULL
6901 };
6902
6903 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (wxFontMapper *)wxFontMapper::Get();
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6921 wxFontMapper *result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "mapper", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6933
6934 wxPyEndAllowThreads(__tstate);
6935 if (PyErr_Occurred()) SWIG_fail;
6936 }
6937 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6938 return resultobj;
6939 fail:
6940 return NULL;
6941 }
6942
6943
6944 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6947 wxString *arg2 = 0 ;
6948 bool arg3 = (bool) True ;
6949 int result;
6950 bool temp2 = False ;
6951 PyObject * obj0 = 0 ;
6952 PyObject * obj1 = 0 ;
6953 PyObject * obj2 = 0 ;
6954 char *kwnames[] = {
6955 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6961 {
6962 arg2 = wxString_in_helper(obj1);
6963 if (arg2 == NULL) SWIG_fail;
6964 temp2 = True;
6965 }
6966 if (obj2) {
6967 arg3 = (bool) SWIG_AsBool(obj2);
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 {
6971 PyThreadState* __tstate = wxPyBeginAllowThreads();
6972 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6973
6974 wxPyEndAllowThreads(__tstate);
6975 if (PyErr_Occurred()) SWIG_fail;
6976 }
6977 resultobj = SWIG_FromInt((int)result);
6978 {
6979 if (temp2)
6980 delete arg2;
6981 }
6982 return resultobj;
6983 fail:
6984 {
6985 if (temp2)
6986 delete arg2;
6987 }
6988 return NULL;
6989 }
6990
6991
6992 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
6993 PyObject *resultobj;
6994 size_t result;
6995 char *kwnames[] = {
6996 NULL
6997 };
6998
6999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7000 {
7001 PyThreadState* __tstate = wxPyBeginAllowThreads();
7002 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7003
7004 wxPyEndAllowThreads(__tstate);
7005 if (PyErr_Occurred()) SWIG_fail;
7006 }
7007 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7008 return resultobj;
7009 fail:
7010 return NULL;
7011 }
7012
7013
7014 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7015 PyObject *resultobj;
7016 size_t arg1 ;
7017 int result;
7018 PyObject * obj0 = 0 ;
7019 char *kwnames[] = {
7020 (char *) "n", NULL
7021 };
7022
7023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7024 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7025 if (PyErr_Occurred()) SWIG_fail;
7026 {
7027 PyThreadState* __tstate = wxPyBeginAllowThreads();
7028 result = (int)wxFontMapper::GetEncoding(arg1);
7029
7030 wxPyEndAllowThreads(__tstate);
7031 if (PyErr_Occurred()) SWIG_fail;
7032 }
7033 resultobj = SWIG_FromInt((int)result);
7034 return resultobj;
7035 fail:
7036 return NULL;
7037 }
7038
7039
7040 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7041 PyObject *resultobj;
7042 int arg1 ;
7043 wxString result;
7044 PyObject * obj0 = 0 ;
7045 char *kwnames[] = {
7046 (char *) "encoding", NULL
7047 };
7048
7049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7050 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7051 if (PyErr_Occurred()) SWIG_fail;
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 {
7060 #if wxUSE_UNICODE
7061 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7062 #else
7063 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7064 #endif
7065 }
7066 return resultobj;
7067 fail:
7068 return NULL;
7069 }
7070
7071
7072 static PyObject *_wrap_FontMapper_GetEncodingDescription(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_GetEncodingDescription",kwnames,&obj0)) goto fail;
7082 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7083 if (PyErr_Occurred()) SWIG_fail;
7084 {
7085 PyThreadState* __tstate = wxPyBeginAllowThreads();
7086 result = wxFontMapper::GetEncodingDescription((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_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7105 PyObject *resultobj;
7106 wxString *arg1 = 0 ;
7107 int result;
7108 bool temp1 = False ;
7109 PyObject * obj0 = 0 ;
7110 char *kwnames[] = {
7111 (char *) "name", NULL
7112 };
7113
7114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7115 {
7116 arg1 = wxString_in_helper(obj0);
7117 if (arg1 == NULL) SWIG_fail;
7118 temp1 = True;
7119 }
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7123
7124 wxPyEndAllowThreads(__tstate);
7125 if (PyErr_Occurred()) SWIG_fail;
7126 }
7127 resultobj = SWIG_FromInt((int)result);
7128 {
7129 if (temp1)
7130 delete arg1;
7131 }
7132 return resultobj;
7133 fail:
7134 {
7135 if (temp1)
7136 delete arg1;
7137 }
7138 return NULL;
7139 }
7140
7141
7142 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7143 PyObject *resultobj;
7144 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7145 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7146 PyObject * obj0 = 0 ;
7147 PyObject * obj1 = 0 ;
7148 char *kwnames[] = {
7149 (char *) "self",(char *) "config", NULL
7150 };
7151
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7155 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7157 {
7158 PyThreadState* __tstate = wxPyBeginAllowThreads();
7159 (arg1)->SetConfig(arg2);
7160
7161 wxPyEndAllowThreads(__tstate);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 Py_INCREF(Py_None); resultobj = Py_None;
7165 return resultobj;
7166 fail:
7167 return NULL;
7168 }
7169
7170
7171 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7172 PyObject *resultobj;
7173 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7174 wxString *arg2 = 0 ;
7175 bool temp2 = False ;
7176 PyObject * obj0 = 0 ;
7177 PyObject * obj1 = 0 ;
7178 char *kwnames[] = {
7179 (char *) "self",(char *) "prefix", NULL
7180 };
7181
7182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7185 {
7186 arg2 = wxString_in_helper(obj1);
7187 if (arg2 == NULL) SWIG_fail;
7188 temp2 = True;
7189 }
7190 {
7191 PyThreadState* __tstate = wxPyBeginAllowThreads();
7192 (arg1)->SetConfigPath((wxString const &)*arg2);
7193
7194 wxPyEndAllowThreads(__tstate);
7195 if (PyErr_Occurred()) SWIG_fail;
7196 }
7197 Py_INCREF(Py_None); resultobj = Py_None;
7198 {
7199 if (temp2)
7200 delete arg2;
7201 }
7202 return resultobj;
7203 fail:
7204 {
7205 if (temp2)
7206 delete arg2;
7207 }
7208 return NULL;
7209 }
7210
7211
7212 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7213 PyObject *resultobj;
7214 wxString result;
7215 char *kwnames[] = {
7216 NULL
7217 };
7218
7219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7220 {
7221 PyThreadState* __tstate = wxPyBeginAllowThreads();
7222 result = wxFontMapper::GetDefaultConfigPath();
7223
7224 wxPyEndAllowThreads(__tstate);
7225 if (PyErr_Occurred()) SWIG_fail;
7226 }
7227 {
7228 #if wxUSE_UNICODE
7229 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7230 #else
7231 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7232 #endif
7233 }
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7241 PyObject *resultobj;
7242 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7243 int arg2 ;
7244 wxString const &arg3_defvalue = wxPyEmptyString ;
7245 wxString *arg3 = (wxString *) &arg3_defvalue ;
7246 bool arg4 = (bool) True ;
7247 PyObject *result;
7248 bool temp3 = False ;
7249 PyObject * obj0 = 0 ;
7250 PyObject * obj1 = 0 ;
7251 PyObject * obj2 = 0 ;
7252 PyObject * obj3 = 0 ;
7253 char *kwnames[] = {
7254 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7255 };
7256
7257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7258 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7260 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7261 if (PyErr_Occurred()) SWIG_fail;
7262 if (obj2) {
7263 {
7264 arg3 = wxString_in_helper(obj2);
7265 if (arg3 == NULL) SWIG_fail;
7266 temp3 = True;
7267 }
7268 }
7269 if (obj3) {
7270 arg4 = (bool) SWIG_AsBool(obj3);
7271 if (PyErr_Occurred()) SWIG_fail;
7272 }
7273 {
7274 PyThreadState* __tstate = wxPyBeginAllowThreads();
7275 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7276
7277 wxPyEndAllowThreads(__tstate);
7278 if (PyErr_Occurred()) SWIG_fail;
7279 }
7280 resultobj = result;
7281 {
7282 if (temp3)
7283 delete arg3;
7284 }
7285 return resultobj;
7286 fail:
7287 {
7288 if (temp3)
7289 delete arg3;
7290 }
7291 return NULL;
7292 }
7293
7294
7295 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7296 PyObject *resultobj;
7297 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7298 int arg2 ;
7299 wxString const &arg3_defvalue = wxPyEmptyString ;
7300 wxString *arg3 = (wxString *) &arg3_defvalue ;
7301 bool result;
7302 bool temp3 = False ;
7303 PyObject * obj0 = 0 ;
7304 PyObject * obj1 = 0 ;
7305 PyObject * obj2 = 0 ;
7306 char *kwnames[] = {
7307 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7308 };
7309
7310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7313 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7314 if (PyErr_Occurred()) SWIG_fail;
7315 if (obj2) {
7316 {
7317 arg3 = wxString_in_helper(obj2);
7318 if (arg3 == NULL) SWIG_fail;
7319 temp3 = True;
7320 }
7321 }
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7331 }
7332 {
7333 if (temp3)
7334 delete arg3;
7335 }
7336 return resultobj;
7337 fail:
7338 {
7339 if (temp3)
7340 delete arg3;
7341 }
7342 return NULL;
7343 }
7344
7345
7346 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7347 PyObject *resultobj;
7348 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7349 wxWindow *arg2 = (wxWindow *) 0 ;
7350 PyObject * obj0 = 0 ;
7351 PyObject * obj1 = 0 ;
7352 char *kwnames[] = {
7353 (char *) "self",(char *) "parent", NULL
7354 };
7355
7356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7359 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7361 {
7362 PyThreadState* __tstate = wxPyBeginAllowThreads();
7363 (arg1)->SetDialogParent(arg2);
7364
7365 wxPyEndAllowThreads(__tstate);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 Py_INCREF(Py_None); resultobj = Py_None;
7369 return resultobj;
7370 fail:
7371 return NULL;
7372 }
7373
7374
7375 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7376 PyObject *resultobj;
7377 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7378 wxString *arg2 = 0 ;
7379 bool temp2 = False ;
7380 PyObject * obj0 = 0 ;
7381 PyObject * obj1 = 0 ;
7382 char *kwnames[] = {
7383 (char *) "self",(char *) "title", NULL
7384 };
7385
7386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7389 {
7390 arg2 = wxString_in_helper(obj1);
7391 if (arg2 == NULL) SWIG_fail;
7392 temp2 = True;
7393 }
7394 {
7395 PyThreadState* __tstate = wxPyBeginAllowThreads();
7396 (arg1)->SetDialogTitle((wxString const &)*arg2);
7397
7398 wxPyEndAllowThreads(__tstate);
7399 if (PyErr_Occurred()) SWIG_fail;
7400 }
7401 Py_INCREF(Py_None); resultobj = Py_None;
7402 {
7403 if (temp2)
7404 delete arg2;
7405 }
7406 return resultobj;
7407 fail:
7408 {
7409 if (temp2)
7410 delete arg2;
7411 }
7412 return NULL;
7413 }
7414
7415
7416 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7417 PyObject *obj;
7418 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7419 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7420 Py_INCREF(obj);
7421 return Py_BuildValue((char *)"");
7422 }
7423 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7424 PyObject *resultobj;
7425 int arg1 ;
7426 int arg2 ;
7427 int arg3 ;
7428 int arg4 ;
7429 bool arg5 = (bool) False ;
7430 wxString const &arg6_defvalue = wxPyEmptyString ;
7431 wxString *arg6 = (wxString *) &arg6_defvalue ;
7432 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7433 wxFont *result;
7434 bool temp6 = False ;
7435 PyObject * obj0 = 0 ;
7436 PyObject * obj1 = 0 ;
7437 PyObject * obj2 = 0 ;
7438 PyObject * obj3 = 0 ;
7439 PyObject * obj4 = 0 ;
7440 PyObject * obj5 = 0 ;
7441 PyObject * obj6 = 0 ;
7442 char *kwnames[] = {
7443 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7444 };
7445
7446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7447 arg1 = (int) SWIG_AsInt(obj0);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 arg2 = (int) SWIG_AsInt(obj1);
7450 if (PyErr_Occurred()) SWIG_fail;
7451 arg3 = (int) SWIG_AsInt(obj2);
7452 if (PyErr_Occurred()) SWIG_fail;
7453 arg4 = (int) SWIG_AsInt(obj3);
7454 if (PyErr_Occurred()) SWIG_fail;
7455 if (obj4) {
7456 arg5 = (bool) SWIG_AsBool(obj4);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 if (obj5) {
7460 {
7461 arg6 = wxString_in_helper(obj5);
7462 if (arg6 == NULL) SWIG_fail;
7463 temp6 = True;
7464 }
7465 }
7466 if (obj6) {
7467 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7468 if (PyErr_Occurred()) SWIG_fail;
7469 }
7470 {
7471 PyThreadState* __tstate = wxPyBeginAllowThreads();
7472 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7473
7474 wxPyEndAllowThreads(__tstate);
7475 if (PyErr_Occurred()) SWIG_fail;
7476 }
7477 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7478 {
7479 if (temp6)
7480 delete arg6;
7481 }
7482 return resultobj;
7483 fail:
7484 {
7485 if (temp6)
7486 delete arg6;
7487 }
7488 return NULL;
7489 }
7490
7491
7492 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7493 PyObject *resultobj;
7494 wxFont *arg1 = (wxFont *) 0 ;
7495 PyObject * obj0 = 0 ;
7496 char *kwnames[] = {
7497 (char *) "self", NULL
7498 };
7499
7500 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7501 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7502 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7503 {
7504 PyThreadState* __tstate = wxPyBeginAllowThreads();
7505 delete arg1;
7506
7507 wxPyEndAllowThreads(__tstate);
7508 if (PyErr_Occurred()) SWIG_fail;
7509 }
7510 Py_INCREF(Py_None); resultobj = Py_None;
7511 return resultobj;
7512 fail:
7513 return NULL;
7514 }
7515
7516
7517 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7518 PyObject *resultobj;
7519 wxNativeFontInfo *arg1 = 0 ;
7520 wxFont *result;
7521 PyObject * obj0 = 0 ;
7522 char *kwnames[] = {
7523 (char *) "info", NULL
7524 };
7525
7526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7527 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7528 SWIG_POINTER_EXCEPTION | 0)) == -1)
7529 SWIG_fail;
7530 if (arg1 == NULL) {
7531 PyErr_SetString(PyExc_TypeError,"null reference");
7532 SWIG_fail;
7533 }
7534 {
7535 PyThreadState* __tstate = wxPyBeginAllowThreads();
7536 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7537
7538 wxPyEndAllowThreads(__tstate);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7542 return resultobj;
7543 fail:
7544 return NULL;
7545 }
7546
7547
7548 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7549 PyObject *resultobj;
7550 wxString *arg1 = 0 ;
7551 wxFont *result;
7552 bool temp1 = False ;
7553 PyObject * obj0 = 0 ;
7554 char *kwnames[] = {
7555 (char *) "info", NULL
7556 };
7557
7558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7559 {
7560 arg1 = wxString_in_helper(obj0);
7561 if (arg1 == NULL) SWIG_fail;
7562 temp1 = True;
7563 }
7564 {
7565 PyThreadState* __tstate = wxPyBeginAllowThreads();
7566 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7567
7568 wxPyEndAllowThreads(__tstate);
7569 if (PyErr_Occurred()) SWIG_fail;
7570 }
7571 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7572 {
7573 if (temp1)
7574 delete arg1;
7575 }
7576 return resultobj;
7577 fail:
7578 {
7579 if (temp1)
7580 delete arg1;
7581 }
7582 return NULL;
7583 }
7584
7585
7586 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7587 PyObject *resultobj;
7588 int arg1 ;
7589 int arg2 ;
7590 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7591 wxString const &arg4_defvalue = wxPyEmptyString ;
7592 wxString *arg4 = (wxString *) &arg4_defvalue ;
7593 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7594 wxFont *result;
7595 bool temp4 = False ;
7596 PyObject * obj0 = 0 ;
7597 PyObject * obj1 = 0 ;
7598 PyObject * obj2 = 0 ;
7599 PyObject * obj3 = 0 ;
7600 PyObject * obj4 = 0 ;
7601 char *kwnames[] = {
7602 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7603 };
7604
7605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7606 arg1 = (int) SWIG_AsInt(obj0);
7607 if (PyErr_Occurred()) SWIG_fail;
7608 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7609 if (PyErr_Occurred()) SWIG_fail;
7610 if (obj2) {
7611 arg3 = (int) SWIG_AsInt(obj2);
7612 if (PyErr_Occurred()) SWIG_fail;
7613 }
7614 if (obj3) {
7615 {
7616 arg4 = wxString_in_helper(obj3);
7617 if (arg4 == NULL) SWIG_fail;
7618 temp4 = True;
7619 }
7620 }
7621 if (obj4) {
7622 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 {
7626 PyThreadState* __tstate = wxPyBeginAllowThreads();
7627 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7628
7629 wxPyEndAllowThreads(__tstate);
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7633 {
7634 if (temp4)
7635 delete arg4;
7636 }
7637 return resultobj;
7638 fail:
7639 {
7640 if (temp4)
7641 delete arg4;
7642 }
7643 return NULL;
7644 }
7645
7646
7647 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7648 PyObject *resultobj;
7649 wxFont *arg1 = (wxFont *) 0 ;
7650 bool result;
7651 PyObject * obj0 = 0 ;
7652 char *kwnames[] = {
7653 (char *) "self", NULL
7654 };
7655
7656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7659 {
7660 PyThreadState* __tstate = wxPyBeginAllowThreads();
7661 result = (bool)((wxFont const *)arg1)->Ok();
7662
7663 wxPyEndAllowThreads(__tstate);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 {
7667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7668 }
7669 return resultobj;
7670 fail:
7671 return NULL;
7672 }
7673
7674
7675 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7676 PyObject *resultobj;
7677 wxFont *arg1 = (wxFont *) 0 ;
7678 wxFont *arg2 = (wxFont *) 0 ;
7679 bool result;
7680 PyObject * obj0 = 0 ;
7681 PyObject * obj1 = 0 ;
7682 char *kwnames[] = {
7683 (char *) "self",(char *) "other", NULL
7684 };
7685
7686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7688 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7689 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7691 {
7692 PyThreadState* __tstate = wxPyBeginAllowThreads();
7693 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7694
7695 wxPyEndAllowThreads(__tstate);
7696 if (PyErr_Occurred()) SWIG_fail;
7697 }
7698 {
7699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7700 }
7701 return resultobj;
7702 fail:
7703 return NULL;
7704 }
7705
7706
7707 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7708 PyObject *resultobj;
7709 wxFont *arg1 = (wxFont *) 0 ;
7710 wxFont *arg2 = (wxFont *) 0 ;
7711 bool result;
7712 PyObject * obj0 = 0 ;
7713 PyObject * obj1 = 0 ;
7714 char *kwnames[] = {
7715 (char *) "self",(char *) "other", NULL
7716 };
7717
7718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7721 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7723 {
7724 PyThreadState* __tstate = wxPyBeginAllowThreads();
7725 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7726
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 {
7731 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7732 }
7733 return resultobj;
7734 fail:
7735 return NULL;
7736 }
7737
7738
7739 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7740 PyObject *resultobj;
7741 wxFont *arg1 = (wxFont *) 0 ;
7742 int result;
7743 PyObject * obj0 = 0 ;
7744 char *kwnames[] = {
7745 (char *) "self", NULL
7746 };
7747
7748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7751 {
7752 PyThreadState* __tstate = wxPyBeginAllowThreads();
7753 result = (int)((wxFont const *)arg1)->GetPointSize();
7754
7755 wxPyEndAllowThreads(__tstate);
7756 if (PyErr_Occurred()) SWIG_fail;
7757 }
7758 resultobj = SWIG_FromInt((int)result);
7759 return resultobj;
7760 fail:
7761 return NULL;
7762 }
7763
7764
7765 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7766 PyObject *resultobj;
7767 wxFont *arg1 = (wxFont *) 0 ;
7768 int result;
7769 PyObject * obj0 = 0 ;
7770 char *kwnames[] = {
7771 (char *) "self", NULL
7772 };
7773
7774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7777 {
7778 PyThreadState* __tstate = wxPyBeginAllowThreads();
7779 result = (int)((wxFont const *)arg1)->GetFamily();
7780
7781 wxPyEndAllowThreads(__tstate);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 resultobj = SWIG_FromInt((int)result);
7785 return resultobj;
7786 fail:
7787 return NULL;
7788 }
7789
7790
7791 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7792 PyObject *resultobj;
7793 wxFont *arg1 = (wxFont *) 0 ;
7794 int result;
7795 PyObject * obj0 = 0 ;
7796 char *kwnames[] = {
7797 (char *) "self", NULL
7798 };
7799
7800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7803 {
7804 PyThreadState* __tstate = wxPyBeginAllowThreads();
7805 result = (int)((wxFont const *)arg1)->GetStyle();
7806
7807 wxPyEndAllowThreads(__tstate);
7808 if (PyErr_Occurred()) SWIG_fail;
7809 }
7810 resultobj = SWIG_FromInt((int)result);
7811 return resultobj;
7812 fail:
7813 return NULL;
7814 }
7815
7816
7817 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7818 PyObject *resultobj;
7819 wxFont *arg1 = (wxFont *) 0 ;
7820 int result;
7821 PyObject * obj0 = 0 ;
7822 char *kwnames[] = {
7823 (char *) "self", NULL
7824 };
7825
7826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7829 {
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (int)((wxFont const *)arg1)->GetWeight();
7832
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_FromInt((int)result);
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7844 PyObject *resultobj;
7845 wxFont *arg1 = (wxFont *) 0 ;
7846 bool result;
7847 PyObject * obj0 = 0 ;
7848 char *kwnames[] = {
7849 (char *) "self", NULL
7850 };
7851
7852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7855 {
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7858
7859 wxPyEndAllowThreads(__tstate);
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 {
7863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7864 }
7865 return resultobj;
7866 fail:
7867 return NULL;
7868 }
7869
7870
7871 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7872 PyObject *resultobj;
7873 wxFont *arg1 = (wxFont *) 0 ;
7874 wxString result;
7875 PyObject * obj0 = 0 ;
7876 char *kwnames[] = {
7877 (char *) "self", NULL
7878 };
7879
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 result = ((wxFont const *)arg1)->GetFaceName();
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 {
7891 #if wxUSE_UNICODE
7892 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7893 #else
7894 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7895 #endif
7896 }
7897 return resultobj;
7898 fail:
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxFont *arg1 = (wxFont *) 0 ;
7906 int result;
7907 PyObject * obj0 = 0 ;
7908 char *kwnames[] = {
7909 (char *) "self", NULL
7910 };
7911
7912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (int)((wxFont const *)arg1)->GetEncoding();
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = SWIG_FromInt((int)result);
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7930 PyObject *resultobj;
7931 wxFont *arg1 = (wxFont *) 0 ;
7932 wxNativeFontInfo *result;
7933 PyObject * obj0 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7949 return resultobj;
7950 fail:
7951 return NULL;
7952 }
7953
7954
7955 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7956 PyObject *resultobj;
7957 wxFont *arg1 = (wxFont *) 0 ;
7958 bool result;
7959 PyObject * obj0 = 0 ;
7960 char *kwnames[] = {
7961 (char *) "self", NULL
7962 };
7963
7964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7967 {
7968 PyThreadState* __tstate = wxPyBeginAllowThreads();
7969 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7970
7971 wxPyEndAllowThreads(__tstate);
7972 if (PyErr_Occurred()) SWIG_fail;
7973 }
7974 {
7975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7976 }
7977 return resultobj;
7978 fail:
7979 return NULL;
7980 }
7981
7982
7983 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7984 PyObject *resultobj;
7985 wxFont *arg1 = (wxFont *) 0 ;
7986 wxString result;
7987 PyObject * obj0 = 0 ;
7988 char *kwnames[] = {
7989 (char *) "self", NULL
7990 };
7991
7992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
7993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7995 {
7996 PyThreadState* __tstate = wxPyBeginAllowThreads();
7997 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
7998
7999 wxPyEndAllowThreads(__tstate);
8000 if (PyErr_Occurred()) SWIG_fail;
8001 }
8002 {
8003 #if wxUSE_UNICODE
8004 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8005 #else
8006 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8007 #endif
8008 }
8009 return resultobj;
8010 fail:
8011 return NULL;
8012 }
8013
8014
8015 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj;
8017 wxFont *arg1 = (wxFont *) 0 ;
8018 wxString result;
8019 PyObject * obj0 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "self", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8030
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 {
8035 #if wxUSE_UNICODE
8036 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8037 #else
8038 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8039 #endif
8040 }
8041 return resultobj;
8042 fail:
8043 return NULL;
8044 }
8045
8046
8047 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8048 PyObject *resultobj;
8049 wxFont *arg1 = (wxFont *) 0 ;
8050 int arg2 ;
8051 PyObject * obj0 = 0 ;
8052 PyObject * obj1 = 0 ;
8053 char *kwnames[] = {
8054 (char *) "self",(char *) "pointSize", NULL
8055 };
8056
8057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8060 arg2 = (int) SWIG_AsInt(obj1);
8061 if (PyErr_Occurred()) SWIG_fail;
8062 {
8063 PyThreadState* __tstate = wxPyBeginAllowThreads();
8064 (arg1)->SetPointSize(arg2);
8065
8066 wxPyEndAllowThreads(__tstate);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 Py_INCREF(Py_None); resultobj = Py_None;
8070 return resultobj;
8071 fail:
8072 return NULL;
8073 }
8074
8075
8076 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8077 PyObject *resultobj;
8078 wxFont *arg1 = (wxFont *) 0 ;
8079 int arg2 ;
8080 PyObject * obj0 = 0 ;
8081 PyObject * obj1 = 0 ;
8082 char *kwnames[] = {
8083 (char *) "self",(char *) "family", NULL
8084 };
8085
8086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8089 arg2 = (int) SWIG_AsInt(obj1);
8090 if (PyErr_Occurred()) SWIG_fail;
8091 {
8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
8093 (arg1)->SetFamily(arg2);
8094
8095 wxPyEndAllowThreads(__tstate);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 Py_INCREF(Py_None); resultobj = Py_None;
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8106 PyObject *resultobj;
8107 wxFont *arg1 = (wxFont *) 0 ;
8108 int arg2 ;
8109 PyObject * obj0 = 0 ;
8110 PyObject * obj1 = 0 ;
8111 char *kwnames[] = {
8112 (char *) "self",(char *) "style", NULL
8113 };
8114
8115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8118 arg2 = (int) SWIG_AsInt(obj1);
8119 if (PyErr_Occurred()) SWIG_fail;
8120 {
8121 PyThreadState* __tstate = wxPyBeginAllowThreads();
8122 (arg1)->SetStyle(arg2);
8123
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 Py_INCREF(Py_None); resultobj = Py_None;
8128 return resultobj;
8129 fail:
8130 return NULL;
8131 }
8132
8133
8134 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8135 PyObject *resultobj;
8136 wxFont *arg1 = (wxFont *) 0 ;
8137 int arg2 ;
8138 PyObject * obj0 = 0 ;
8139 PyObject * obj1 = 0 ;
8140 char *kwnames[] = {
8141 (char *) "self",(char *) "weight", NULL
8142 };
8143
8144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8147 arg2 = (int) SWIG_AsInt(obj1);
8148 if (PyErr_Occurred()) SWIG_fail;
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 (arg1)->SetWeight(arg2);
8152
8153 wxPyEndAllowThreads(__tstate);
8154 if (PyErr_Occurred()) SWIG_fail;
8155 }
8156 Py_INCREF(Py_None); resultobj = Py_None;
8157 return resultobj;
8158 fail:
8159 return NULL;
8160 }
8161
8162
8163 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8164 PyObject *resultobj;
8165 wxFont *arg1 = (wxFont *) 0 ;
8166 wxString *arg2 = 0 ;
8167 bool temp2 = False ;
8168 PyObject * obj0 = 0 ;
8169 PyObject * obj1 = 0 ;
8170 char *kwnames[] = {
8171 (char *) "self",(char *) "faceName", NULL
8172 };
8173
8174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8177 {
8178 arg2 = wxString_in_helper(obj1);
8179 if (arg2 == NULL) SWIG_fail;
8180 temp2 = True;
8181 }
8182 {
8183 PyThreadState* __tstate = wxPyBeginAllowThreads();
8184 (arg1)->SetFaceName((wxString const &)*arg2);
8185
8186 wxPyEndAllowThreads(__tstate);
8187 if (PyErr_Occurred()) SWIG_fail;
8188 }
8189 Py_INCREF(Py_None); resultobj = Py_None;
8190 {
8191 if (temp2)
8192 delete arg2;
8193 }
8194 return resultobj;
8195 fail:
8196 {
8197 if (temp2)
8198 delete arg2;
8199 }
8200 return NULL;
8201 }
8202
8203
8204 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8205 PyObject *resultobj;
8206 wxFont *arg1 = (wxFont *) 0 ;
8207 bool arg2 ;
8208 PyObject * obj0 = 0 ;
8209 PyObject * obj1 = 0 ;
8210 char *kwnames[] = {
8211 (char *) "self",(char *) "underlined", NULL
8212 };
8213
8214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8217 arg2 = (bool) SWIG_AsBool(obj1);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 {
8220 PyThreadState* __tstate = wxPyBeginAllowThreads();
8221 (arg1)->SetUnderlined(arg2);
8222
8223 wxPyEndAllowThreads(__tstate);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 Py_INCREF(Py_None); resultobj = Py_None;
8227 return resultobj;
8228 fail:
8229 return NULL;
8230 }
8231
8232
8233 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8234 PyObject *resultobj;
8235 wxFont *arg1 = (wxFont *) 0 ;
8236 int arg2 ;
8237 PyObject * obj0 = 0 ;
8238 PyObject * obj1 = 0 ;
8239 char *kwnames[] = {
8240 (char *) "self",(char *) "encoding", NULL
8241 };
8242
8243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8246 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 {
8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
8250 (arg1)->SetEncoding((wxFontEncoding )arg2);
8251
8252 wxPyEndAllowThreads(__tstate);
8253 if (PyErr_Occurred()) SWIG_fail;
8254 }
8255 Py_INCREF(Py_None); resultobj = Py_None;
8256 return resultobj;
8257 fail:
8258 return NULL;
8259 }
8260
8261
8262 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8263 PyObject *resultobj;
8264 wxFont *arg1 = (wxFont *) 0 ;
8265 wxNativeFontInfo *arg2 = 0 ;
8266 PyObject * obj0 = 0 ;
8267 PyObject * obj1 = 0 ;
8268 char *kwnames[] = {
8269 (char *) "self",(char *) "info", NULL
8270 };
8271
8272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8275 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8276 SWIG_POINTER_EXCEPTION | 0)) == -1)
8277 SWIG_fail;
8278 if (arg2 == NULL) {
8279 PyErr_SetString(PyExc_TypeError,"null reference");
8280 SWIG_fail;
8281 }
8282 {
8283 PyThreadState* __tstate = wxPyBeginAllowThreads();
8284 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8285
8286 wxPyEndAllowThreads(__tstate);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 Py_INCREF(Py_None); resultobj = Py_None;
8290 return resultobj;
8291 fail:
8292 return NULL;
8293 }
8294
8295
8296 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8297 PyObject *resultobj;
8298 wxFont *arg1 = (wxFont *) 0 ;
8299 wxString *arg2 = 0 ;
8300 bool temp2 = False ;
8301 PyObject * obj0 = 0 ;
8302 PyObject * obj1 = 0 ;
8303 char *kwnames[] = {
8304 (char *) "self",(char *) "info", NULL
8305 };
8306
8307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8310 {
8311 arg2 = wxString_in_helper(obj1);
8312 if (arg2 == NULL) SWIG_fail;
8313 temp2 = True;
8314 }
8315 {
8316 PyThreadState* __tstate = wxPyBeginAllowThreads();
8317 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8318
8319 wxPyEndAllowThreads(__tstate);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 Py_INCREF(Py_None); resultobj = Py_None;
8323 {
8324 if (temp2)
8325 delete arg2;
8326 }
8327 return resultobj;
8328 fail:
8329 {
8330 if (temp2)
8331 delete arg2;
8332 }
8333 return NULL;
8334 }
8335
8336
8337 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8338 PyObject *resultobj;
8339 wxFont *arg1 = (wxFont *) 0 ;
8340 wxString *arg2 = 0 ;
8341 bool temp2 = False ;
8342 PyObject * obj0 = 0 ;
8343 PyObject * obj1 = 0 ;
8344 char *kwnames[] = {
8345 (char *) "self",(char *) "info", NULL
8346 };
8347
8348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8351 {
8352 arg2 = wxString_in_helper(obj1);
8353 if (arg2 == NULL) SWIG_fail;
8354 temp2 = True;
8355 }
8356 {
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8359
8360 wxPyEndAllowThreads(__tstate);
8361 if (PyErr_Occurred()) SWIG_fail;
8362 }
8363 Py_INCREF(Py_None); resultobj = Py_None;
8364 {
8365 if (temp2)
8366 delete arg2;
8367 }
8368 return resultobj;
8369 fail:
8370 {
8371 if (temp2)
8372 delete arg2;
8373 }
8374 return NULL;
8375 }
8376
8377
8378 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8379 PyObject *resultobj;
8380 wxFont *arg1 = (wxFont *) 0 ;
8381 wxString result;
8382 PyObject * obj0 = 0 ;
8383 char *kwnames[] = {
8384 (char *) "self", NULL
8385 };
8386
8387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8390 {
8391 PyThreadState* __tstate = wxPyBeginAllowThreads();
8392 result = ((wxFont const *)arg1)->GetFamilyString();
8393
8394 wxPyEndAllowThreads(__tstate);
8395 if (PyErr_Occurred()) SWIG_fail;
8396 }
8397 {
8398 #if wxUSE_UNICODE
8399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8400 #else
8401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8402 #endif
8403 }
8404 return resultobj;
8405 fail:
8406 return NULL;
8407 }
8408
8409
8410 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8411 PyObject *resultobj;
8412 wxFont *arg1 = (wxFont *) 0 ;
8413 wxString result;
8414 PyObject * obj0 = 0 ;
8415 char *kwnames[] = {
8416 (char *) "self", NULL
8417 };
8418
8419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8422 {
8423 PyThreadState* __tstate = wxPyBeginAllowThreads();
8424 result = ((wxFont const *)arg1)->GetStyleString();
8425
8426 wxPyEndAllowThreads(__tstate);
8427 if (PyErr_Occurred()) SWIG_fail;
8428 }
8429 {
8430 #if wxUSE_UNICODE
8431 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8432 #else
8433 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8434 #endif
8435 }
8436 return resultobj;
8437 fail:
8438 return NULL;
8439 }
8440
8441
8442 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8443 PyObject *resultobj;
8444 wxFont *arg1 = (wxFont *) 0 ;
8445 wxString result;
8446 PyObject * obj0 = 0 ;
8447 char *kwnames[] = {
8448 (char *) "self", NULL
8449 };
8450
8451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8454 {
8455 PyThreadState* __tstate = wxPyBeginAllowThreads();
8456 result = ((wxFont const *)arg1)->GetWeightString();
8457
8458 wxPyEndAllowThreads(__tstate);
8459 if (PyErr_Occurred()) SWIG_fail;
8460 }
8461 {
8462 #if wxUSE_UNICODE
8463 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8464 #else
8465 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8466 #endif
8467 }
8468 return resultobj;
8469 fail:
8470 return NULL;
8471 }
8472
8473
8474 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8475 PyObject *resultobj;
8476 wxFont *arg1 = (wxFont *) 0 ;
8477 bool arg2 = (bool) True ;
8478 PyObject * obj0 = 0 ;
8479 PyObject * obj1 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "self",(char *) "no", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8487 if (obj1) {
8488 arg2 = (bool) SWIG_AsBool(obj1);
8489 if (PyErr_Occurred()) SWIG_fail;
8490 }
8491 {
8492 PyThreadState* __tstate = wxPyBeginAllowThreads();
8493 (arg1)->SetNoAntiAliasing(arg2);
8494
8495 wxPyEndAllowThreads(__tstate);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 }
8498 Py_INCREF(Py_None); resultobj = Py_None;
8499 return resultobj;
8500 fail:
8501 return NULL;
8502 }
8503
8504
8505 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8506 PyObject *resultobj;
8507 wxFont *arg1 = (wxFont *) 0 ;
8508 bool result;
8509 PyObject * obj0 = 0 ;
8510 char *kwnames[] = {
8511 (char *) "self", NULL
8512 };
8513
8514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8517 {
8518 PyThreadState* __tstate = wxPyBeginAllowThreads();
8519 result = (bool)(arg1)->GetNoAntiAliasing();
8520
8521 wxPyEndAllowThreads(__tstate);
8522 if (PyErr_Occurred()) SWIG_fail;
8523 }
8524 {
8525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8526 }
8527 return resultobj;
8528 fail:
8529 return NULL;
8530 }
8531
8532
8533 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8534 PyObject *resultobj;
8535 int result;
8536 char *kwnames[] = {
8537 NULL
8538 };
8539
8540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8541 {
8542 PyThreadState* __tstate = wxPyBeginAllowThreads();
8543 result = (int)wxFont::GetDefaultEncoding();
8544
8545 wxPyEndAllowThreads(__tstate);
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 resultobj = SWIG_FromInt((int)result);
8549 return resultobj;
8550 fail:
8551 return NULL;
8552 }
8553
8554
8555 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8556 PyObject *resultobj;
8557 int arg1 ;
8558 PyObject * obj0 = 0 ;
8559 char *kwnames[] = {
8560 (char *) "encoding", NULL
8561 };
8562
8563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8564 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 {
8567 PyThreadState* __tstate = wxPyBeginAllowThreads();
8568 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8569
8570 wxPyEndAllowThreads(__tstate);
8571 if (PyErr_Occurred()) SWIG_fail;
8572 }
8573 Py_INCREF(Py_None); resultobj = Py_None;
8574 return resultobj;
8575 fail:
8576 return NULL;
8577 }
8578
8579
8580 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8581 PyObject *obj;
8582 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8583 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8584 Py_INCREF(obj);
8585 return Py_BuildValue((char *)"");
8586 }
8587 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj;
8589 wxPyFontEnumerator *result;
8590 char *kwnames[] = {
8591 NULL
8592 };
8593
8594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8595 {
8596 PyThreadState* __tstate = wxPyBeginAllowThreads();
8597 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8598
8599 wxPyEndAllowThreads(__tstate);
8600 if (PyErr_Occurred()) SWIG_fail;
8601 }
8602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8603 return resultobj;
8604 fail:
8605 return NULL;
8606 }
8607
8608
8609 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8610 PyObject *resultobj;
8611 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8612 PyObject * obj0 = 0 ;
8613 char *kwnames[] = {
8614 (char *) "self", NULL
8615 };
8616
8617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8620 {
8621 PyThreadState* __tstate = wxPyBeginAllowThreads();
8622 delete arg1;
8623
8624 wxPyEndAllowThreads(__tstate);
8625 if (PyErr_Occurred()) SWIG_fail;
8626 }
8627 Py_INCREF(Py_None); resultobj = Py_None;
8628 return resultobj;
8629 fail:
8630 return NULL;
8631 }
8632
8633
8634 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8635 PyObject *resultobj;
8636 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8637 PyObject *arg2 = (PyObject *) 0 ;
8638 PyObject *arg3 = (PyObject *) 0 ;
8639 bool arg4 ;
8640 PyObject * obj0 = 0 ;
8641 PyObject * obj1 = 0 ;
8642 PyObject * obj2 = 0 ;
8643 PyObject * obj3 = 0 ;
8644 char *kwnames[] = {
8645 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8646 };
8647
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8651 arg2 = obj1;
8652 arg3 = obj2;
8653 arg4 = (bool) SWIG_AsBool(obj3);
8654 if (PyErr_Occurred()) SWIG_fail;
8655 {
8656 PyThreadState* __tstate = wxPyBeginAllowThreads();
8657 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8658
8659 wxPyEndAllowThreads(__tstate);
8660 if (PyErr_Occurred()) SWIG_fail;
8661 }
8662 Py_INCREF(Py_None); resultobj = Py_None;
8663 return resultobj;
8664 fail:
8665 return NULL;
8666 }
8667
8668
8669 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8670 PyObject *resultobj;
8671 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8672 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8673 bool arg3 = (bool) False ;
8674 bool result;
8675 PyObject * obj0 = 0 ;
8676 PyObject * obj1 = 0 ;
8677 PyObject * obj2 = 0 ;
8678 char *kwnames[] = {
8679 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8685 if (obj1) {
8686 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8687 if (PyErr_Occurred()) SWIG_fail;
8688 }
8689 if (obj2) {
8690 arg3 = (bool) SWIG_AsBool(obj2);
8691 if (PyErr_Occurred()) SWIG_fail;
8692 }
8693 {
8694 PyThreadState* __tstate = wxPyBeginAllowThreads();
8695 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8696
8697 wxPyEndAllowThreads(__tstate);
8698 if (PyErr_Occurred()) SWIG_fail;
8699 }
8700 {
8701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8702 }
8703 return resultobj;
8704 fail:
8705 return NULL;
8706 }
8707
8708
8709 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8710 PyObject *resultobj;
8711 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8712 wxString const &arg2_defvalue = wxPyEmptyString ;
8713 wxString *arg2 = (wxString *) &arg2_defvalue ;
8714 bool result;
8715 bool temp2 = False ;
8716 PyObject * obj0 = 0 ;
8717 PyObject * obj1 = 0 ;
8718 char *kwnames[] = {
8719 (char *) "self",(char *) "facename", NULL
8720 };
8721
8722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8725 if (obj1) {
8726 {
8727 arg2 = wxString_in_helper(obj1);
8728 if (arg2 == NULL) SWIG_fail;
8729 temp2 = True;
8730 }
8731 }
8732 {
8733 PyThreadState* __tstate = wxPyBeginAllowThreads();
8734 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8735
8736 wxPyEndAllowThreads(__tstate);
8737 if (PyErr_Occurred()) SWIG_fail;
8738 }
8739 {
8740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8741 }
8742 {
8743 if (temp2)
8744 delete arg2;
8745 }
8746 return resultobj;
8747 fail:
8748 {
8749 if (temp2)
8750 delete arg2;
8751 }
8752 return NULL;
8753 }
8754
8755
8756 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8757 PyObject *resultobj;
8758 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8759 PyObject *result;
8760 PyObject * obj0 = 0 ;
8761 char *kwnames[] = {
8762 (char *) "self", NULL
8763 };
8764
8765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8768 {
8769 PyThreadState* __tstate = wxPyBeginAllowThreads();
8770 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8771
8772 wxPyEndAllowThreads(__tstate);
8773 if (PyErr_Occurred()) SWIG_fail;
8774 }
8775 resultobj = result;
8776 return resultobj;
8777 fail:
8778 return NULL;
8779 }
8780
8781
8782 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8783 PyObject *resultobj;
8784 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8785 PyObject *result;
8786 PyObject * obj0 = 0 ;
8787 char *kwnames[] = {
8788 (char *) "self", NULL
8789 };
8790
8791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8794 {
8795 PyThreadState* __tstate = wxPyBeginAllowThreads();
8796 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8797
8798 wxPyEndAllowThreads(__tstate);
8799 if (PyErr_Occurred()) SWIG_fail;
8800 }
8801 resultobj = result;
8802 return resultobj;
8803 fail:
8804 return NULL;
8805 }
8806
8807
8808 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8809 PyObject *obj;
8810 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8811 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8812 Py_INCREF(obj);
8813 return Py_BuildValue((char *)"");
8814 }
8815 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj;
8817 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8818 int arg2 ;
8819 PyObject * obj0 = 0 ;
8820 PyObject * obj1 = 0 ;
8821 char *kwnames[] = {
8822 (char *) "self",(char *) "Language", NULL
8823 };
8824
8825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8828 arg2 = (int) SWIG_AsInt(obj1);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 if (arg1) (arg1)->Language = arg2;
8831
8832 Py_INCREF(Py_None); resultobj = Py_None;
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8840 PyObject *resultobj;
8841 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8842 int result;
8843 PyObject * obj0 = 0 ;
8844 char *kwnames[] = {
8845 (char *) "self", NULL
8846 };
8847
8848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8851 result = (int) ((arg1)->Language);
8852
8853 resultobj = SWIG_FromInt((int)result);
8854 return resultobj;
8855 fail:
8856 return NULL;
8857 }
8858
8859
8860 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8861 PyObject *resultobj;
8862 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8863 wxString *arg2 = (wxString *) 0 ;
8864 bool temp2 = False ;
8865 PyObject * obj0 = 0 ;
8866 PyObject * obj1 = 0 ;
8867 char *kwnames[] = {
8868 (char *) "self",(char *) "CanonicalName", NULL
8869 };
8870
8871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8874 {
8875 arg2 = wxString_in_helper(obj1);
8876 if (arg2 == NULL) SWIG_fail;
8877 temp2 = True;
8878 }
8879 if (arg1) (arg1)->CanonicalName = *arg2;
8880
8881 Py_INCREF(Py_None); resultobj = Py_None;
8882 {
8883 if (temp2)
8884 delete arg2;
8885 }
8886 return resultobj;
8887 fail:
8888 {
8889 if (temp2)
8890 delete arg2;
8891 }
8892 return NULL;
8893 }
8894
8895
8896 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj;
8898 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8899 wxString *result;
8900 PyObject * obj0 = 0 ;
8901 char *kwnames[] = {
8902 (char *) "self", NULL
8903 };
8904
8905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8908 result = (wxString *)& ((arg1)->CanonicalName);
8909
8910 {
8911 #if wxUSE_UNICODE
8912 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8913 #else
8914 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8915 #endif
8916 }
8917 return resultobj;
8918 fail:
8919 return NULL;
8920 }
8921
8922
8923 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8924 PyObject *resultobj;
8925 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8926 wxString *arg2 = (wxString *) 0 ;
8927 bool temp2 = False ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 char *kwnames[] = {
8931 (char *) "self",(char *) "Description", NULL
8932 };
8933
8934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8937 {
8938 arg2 = wxString_in_helper(obj1);
8939 if (arg2 == NULL) SWIG_fail;
8940 temp2 = True;
8941 }
8942 if (arg1) (arg1)->Description = *arg2;
8943
8944 Py_INCREF(Py_None); resultobj = Py_None;
8945 {
8946 if (temp2)
8947 delete arg2;
8948 }
8949 return resultobj;
8950 fail:
8951 {
8952 if (temp2)
8953 delete arg2;
8954 }
8955 return NULL;
8956 }
8957
8958
8959 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8960 PyObject *resultobj;
8961 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8962 wxString *result;
8963 PyObject * obj0 = 0 ;
8964 char *kwnames[] = {
8965 (char *) "self", NULL
8966 };
8967
8968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8971 result = (wxString *)& ((arg1)->Description);
8972
8973 {
8974 #if wxUSE_UNICODE
8975 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8976 #else
8977 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8978 #endif
8979 }
8980 return resultobj;
8981 fail:
8982 return NULL;
8983 }
8984
8985
8986 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8987 PyObject *obj;
8988 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8989 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8990 Py_INCREF(obj);
8991 return Py_BuildValue((char *)"");
8992 }
8993 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
8994 PyObject *resultobj;
8995 int arg1 = (int) wxLANGUAGE_DEFAULT ;
8996 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
8997 wxLocale *result;
8998 PyObject * obj0 = 0 ;
8999 PyObject * obj1 = 0 ;
9000 char *kwnames[] = {
9001 (char *) "language",(char *) "flags", NULL
9002 };
9003
9004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9005 if (obj0) {
9006 arg1 = (int) SWIG_AsInt(obj0);
9007 if (PyErr_Occurred()) SWIG_fail;
9008 }
9009 if (obj1) {
9010 arg2 = (int) SWIG_AsInt(obj1);
9011 if (PyErr_Occurred()) SWIG_fail;
9012 }
9013 {
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 result = (wxLocale *)new wxLocale(arg1,arg2);
9016
9017 wxPyEndAllowThreads(__tstate);
9018 if (PyErr_Occurred()) SWIG_fail;
9019 }
9020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9021 return resultobj;
9022 fail:
9023 return NULL;
9024 }
9025
9026
9027 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9028 PyObject *resultobj;
9029 wxLocale *arg1 = (wxLocale *) 0 ;
9030 PyObject * obj0 = 0 ;
9031 char *kwnames[] = {
9032 (char *) "self", NULL
9033 };
9034
9035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9038 {
9039 PyThreadState* __tstate = wxPyBeginAllowThreads();
9040 delete arg1;
9041
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 Py_INCREF(Py_None); resultobj = Py_None;
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj;
9054 wxLocale *arg1 = (wxLocale *) 0 ;
9055 wxString *arg2 = 0 ;
9056 wxString const &arg3_defvalue = wxPyEmptyString ;
9057 wxString *arg3 = (wxString *) &arg3_defvalue ;
9058 wxString const &arg4_defvalue = wxPyEmptyString ;
9059 wxString *arg4 = (wxString *) &arg4_defvalue ;
9060 bool arg5 = (bool) True ;
9061 bool arg6 = (bool) False ;
9062 bool result;
9063 bool temp2 = False ;
9064 bool temp3 = False ;
9065 bool temp4 = False ;
9066 PyObject * obj0 = 0 ;
9067 PyObject * obj1 = 0 ;
9068 PyObject * obj2 = 0 ;
9069 PyObject * obj3 = 0 ;
9070 PyObject * obj4 = 0 ;
9071 PyObject * obj5 = 0 ;
9072 char *kwnames[] = {
9073 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9074 };
9075
9076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9079 {
9080 arg2 = wxString_in_helper(obj1);
9081 if (arg2 == NULL) SWIG_fail;
9082 temp2 = True;
9083 }
9084 if (obj2) {
9085 {
9086 arg3 = wxString_in_helper(obj2);
9087 if (arg3 == NULL) SWIG_fail;
9088 temp3 = True;
9089 }
9090 }
9091 if (obj3) {
9092 {
9093 arg4 = wxString_in_helper(obj3);
9094 if (arg4 == NULL) SWIG_fail;
9095 temp4 = True;
9096 }
9097 }
9098 if (obj4) {
9099 arg5 = (bool) SWIG_AsBool(obj4);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 if (obj5) {
9103 arg6 = (bool) SWIG_AsBool(obj5);
9104 if (PyErr_Occurred()) SWIG_fail;
9105 }
9106 {
9107 PyThreadState* __tstate = wxPyBeginAllowThreads();
9108 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9109
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 {
9114 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9115 }
9116 {
9117 if (temp2)
9118 delete arg2;
9119 }
9120 {
9121 if (temp3)
9122 delete arg3;
9123 }
9124 {
9125 if (temp4)
9126 delete arg4;
9127 }
9128 return resultobj;
9129 fail:
9130 {
9131 if (temp2)
9132 delete arg2;
9133 }
9134 {
9135 if (temp3)
9136 delete arg3;
9137 }
9138 {
9139 if (temp4)
9140 delete arg4;
9141 }
9142 return NULL;
9143 }
9144
9145
9146 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9147 PyObject *resultobj;
9148 wxLocale *arg1 = (wxLocale *) 0 ;
9149 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9150 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9151 bool result;
9152 PyObject * obj0 = 0 ;
9153 PyObject * obj1 = 0 ;
9154 PyObject * obj2 = 0 ;
9155 char *kwnames[] = {
9156 (char *) "self",(char *) "language",(char *) "flags", NULL
9157 };
9158
9159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9162 if (obj1) {
9163 arg2 = (int) SWIG_AsInt(obj1);
9164 if (PyErr_Occurred()) SWIG_fail;
9165 }
9166 if (obj2) {
9167 arg3 = (int) SWIG_AsInt(obj2);
9168 if (PyErr_Occurred()) SWIG_fail;
9169 }
9170 {
9171 PyThreadState* __tstate = wxPyBeginAllowThreads();
9172 result = (bool)(arg1)->Init(arg2,arg3);
9173
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 {
9178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9179 }
9180 return resultobj;
9181 fail:
9182 return NULL;
9183 }
9184
9185
9186 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj;
9188 int result;
9189 char *kwnames[] = {
9190 NULL
9191 };
9192
9193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 result = (int)wxLocale::GetSystemLanguage();
9197
9198 wxPyEndAllowThreads(__tstate);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 resultobj = SWIG_FromInt((int)result);
9202 return resultobj;
9203 fail:
9204 return NULL;
9205 }
9206
9207
9208 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9209 PyObject *resultobj;
9210 int result;
9211 char *kwnames[] = {
9212 NULL
9213 };
9214
9215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9216 {
9217 PyThreadState* __tstate = wxPyBeginAllowThreads();
9218 result = (int)wxLocale::GetSystemEncoding();
9219
9220 wxPyEndAllowThreads(__tstate);
9221 if (PyErr_Occurred()) SWIG_fail;
9222 }
9223 resultobj = SWIG_FromInt((int)result);
9224 return resultobj;
9225 fail:
9226 return NULL;
9227 }
9228
9229
9230 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9231 PyObject *resultobj;
9232 wxString result;
9233 char *kwnames[] = {
9234 NULL
9235 };
9236
9237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9238 {
9239 PyThreadState* __tstate = wxPyBeginAllowThreads();
9240 result = wxLocale::GetSystemEncodingName();
9241
9242 wxPyEndAllowThreads(__tstate);
9243 if (PyErr_Occurred()) SWIG_fail;
9244 }
9245 {
9246 #if wxUSE_UNICODE
9247 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9248 #else
9249 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9250 #endif
9251 }
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9259 PyObject *resultobj;
9260 wxLocale *arg1 = (wxLocale *) 0 ;
9261 bool result;
9262 PyObject * obj0 = 0 ;
9263 char *kwnames[] = {
9264 (char *) "self", NULL
9265 };
9266
9267 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9268 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9269 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 result = (bool)((wxLocale const *)arg1)->IsOk();
9273
9274 wxPyEndAllowThreads(__tstate);
9275 if (PyErr_Occurred()) SWIG_fail;
9276 }
9277 {
9278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9279 }
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9287 PyObject *resultobj;
9288 wxLocale *arg1 = (wxLocale *) 0 ;
9289 wxString result;
9290 PyObject * obj0 = 0 ;
9291 char *kwnames[] = {
9292 (char *) "self", NULL
9293 };
9294
9295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = ((wxLocale const *)arg1)->GetLocale();
9301
9302 wxPyEndAllowThreads(__tstate);
9303 if (PyErr_Occurred()) SWIG_fail;
9304 }
9305 {
9306 #if wxUSE_UNICODE
9307 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9308 #else
9309 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9310 #endif
9311 }
9312 return resultobj;
9313 fail:
9314 return NULL;
9315 }
9316
9317
9318 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9319 PyObject *resultobj;
9320 wxLocale *arg1 = (wxLocale *) 0 ;
9321 int result;
9322 PyObject * obj0 = 0 ;
9323 char *kwnames[] = {
9324 (char *) "self", NULL
9325 };
9326
9327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9330 {
9331 PyThreadState* __tstate = wxPyBeginAllowThreads();
9332 result = (int)((wxLocale const *)arg1)->GetLanguage();
9333
9334 wxPyEndAllowThreads(__tstate);
9335 if (PyErr_Occurred()) SWIG_fail;
9336 }
9337 resultobj = SWIG_FromInt((int)result);
9338 return resultobj;
9339 fail:
9340 return NULL;
9341 }
9342
9343
9344 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9345 PyObject *resultobj;
9346 wxLocale *arg1 = (wxLocale *) 0 ;
9347 wxString result;
9348 PyObject * obj0 = 0 ;
9349 char *kwnames[] = {
9350 (char *) "self", NULL
9351 };
9352
9353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9356 {
9357 PyThreadState* __tstate = wxPyBeginAllowThreads();
9358 result = ((wxLocale const *)arg1)->GetSysName();
9359
9360 wxPyEndAllowThreads(__tstate);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 }
9363 {
9364 #if wxUSE_UNICODE
9365 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9366 #else
9367 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9368 #endif
9369 }
9370 return resultobj;
9371 fail:
9372 return NULL;
9373 }
9374
9375
9376 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9377 PyObject *resultobj;
9378 wxLocale *arg1 = (wxLocale *) 0 ;
9379 wxString result;
9380 PyObject * obj0 = 0 ;
9381 char *kwnames[] = {
9382 (char *) "self", NULL
9383 };
9384
9385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9388 {
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 result = ((wxLocale const *)arg1)->GetCanonicalName();
9391
9392 wxPyEndAllowThreads(__tstate);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 {
9396 #if wxUSE_UNICODE
9397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9398 #else
9399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9400 #endif
9401 }
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj;
9410 wxString *arg1 = 0 ;
9411 bool temp1 = False ;
9412 PyObject * obj0 = 0 ;
9413 char *kwnames[] = {
9414 (char *) "prefix", NULL
9415 };
9416
9417 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9418 {
9419 arg1 = wxString_in_helper(obj0);
9420 if (arg1 == NULL) SWIG_fail;
9421 temp1 = True;
9422 }
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9426
9427 wxPyEndAllowThreads(__tstate);
9428 if (PyErr_Occurred()) SWIG_fail;
9429 }
9430 Py_INCREF(Py_None); resultobj = Py_None;
9431 {
9432 if (temp1)
9433 delete arg1;
9434 }
9435 return resultobj;
9436 fail:
9437 {
9438 if (temp1)
9439 delete arg1;
9440 }
9441 return NULL;
9442 }
9443
9444
9445 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9446 PyObject *resultobj;
9447 wxLocale *arg1 = (wxLocale *) 0 ;
9448 wxString *arg2 = 0 ;
9449 bool result;
9450 bool temp2 = False ;
9451 PyObject * obj0 = 0 ;
9452 PyObject * obj1 = 0 ;
9453 char *kwnames[] = {
9454 (char *) "self",(char *) "szDomain", NULL
9455 };
9456
9457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9460 {
9461 arg2 = wxString_in_helper(obj1);
9462 if (arg2 == NULL) SWIG_fail;
9463 temp2 = True;
9464 }
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 {
9473 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9474 }
9475 {
9476 if (temp2)
9477 delete arg2;
9478 }
9479 return resultobj;
9480 fail:
9481 {
9482 if (temp2)
9483 delete arg2;
9484 }
9485 return NULL;
9486 }
9487
9488
9489 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9490 PyObject *resultobj;
9491 wxLocale *arg1 = (wxLocale *) 0 ;
9492 wxString *arg2 = 0 ;
9493 bool result;
9494 bool temp2 = False ;
9495 PyObject * obj0 = 0 ;
9496 PyObject * obj1 = 0 ;
9497 char *kwnames[] = {
9498 (char *) "self",(char *) "szDomain", NULL
9499 };
9500
9501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9504 {
9505 arg2 = wxString_in_helper(obj1);
9506 if (arg2 == NULL) SWIG_fail;
9507 temp2 = True;
9508 }
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9512
9513 wxPyEndAllowThreads(__tstate);
9514 if (PyErr_Occurred()) SWIG_fail;
9515 }
9516 {
9517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9518 }
9519 {
9520 if (temp2)
9521 delete arg2;
9522 }
9523 return resultobj;
9524 fail:
9525 {
9526 if (temp2)
9527 delete arg2;
9528 }
9529 return NULL;
9530 }
9531
9532
9533 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9534 PyObject *resultobj;
9535 int arg1 ;
9536 wxLanguageInfo *result;
9537 PyObject * obj0 = 0 ;
9538 char *kwnames[] = {
9539 (char *) "lang", NULL
9540 };
9541
9542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9543 arg1 = (int) SWIG_AsInt(obj0);
9544 if (PyErr_Occurred()) SWIG_fail;
9545 {
9546 PyThreadState* __tstate = wxPyBeginAllowThreads();
9547 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9548
9549 wxPyEndAllowThreads(__tstate);
9550 if (PyErr_Occurred()) SWIG_fail;
9551 }
9552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9553 return resultobj;
9554 fail:
9555 return NULL;
9556 }
9557
9558
9559 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9560 PyObject *resultobj;
9561 int arg1 ;
9562 wxString result;
9563 PyObject * obj0 = 0 ;
9564 char *kwnames[] = {
9565 (char *) "lang", NULL
9566 };
9567
9568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9569 arg1 = (int) SWIG_AsInt(obj0);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 {
9572 PyThreadState* __tstate = wxPyBeginAllowThreads();
9573 result = wxLocale::GetLanguageName(arg1);
9574
9575 wxPyEndAllowThreads(__tstate);
9576 if (PyErr_Occurred()) SWIG_fail;
9577 }
9578 {
9579 #if wxUSE_UNICODE
9580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9581 #else
9582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9583 #endif
9584 }
9585 return resultobj;
9586 fail:
9587 return NULL;
9588 }
9589
9590
9591 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxString *arg1 = 0 ;
9594 wxLanguageInfo *result;
9595 bool temp1 = False ;
9596 PyObject * obj0 = 0 ;
9597 char *kwnames[] = {
9598 (char *) "locale", NULL
9599 };
9600
9601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9602 {
9603 arg1 = wxString_in_helper(obj0);
9604 if (arg1 == NULL) SWIG_fail;
9605 temp1 = True;
9606 }
9607 {
9608 PyThreadState* __tstate = wxPyBeginAllowThreads();
9609 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9610
9611 wxPyEndAllowThreads(__tstate);
9612 if (PyErr_Occurred()) SWIG_fail;
9613 }
9614 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9615 {
9616 if (temp1)
9617 delete arg1;
9618 }
9619 return resultobj;
9620 fail:
9621 {
9622 if (temp1)
9623 delete arg1;
9624 }
9625 return NULL;
9626 }
9627
9628
9629 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9630 PyObject *resultobj;
9631 wxLanguageInfo *arg1 = 0 ;
9632 PyObject * obj0 = 0 ;
9633 char *kwnames[] = {
9634 (char *) "info", NULL
9635 };
9636
9637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9639 SWIG_POINTER_EXCEPTION | 0)) == -1)
9640 SWIG_fail;
9641 if (arg1 == NULL) {
9642 PyErr_SetString(PyExc_TypeError,"null reference");
9643 SWIG_fail;
9644 }
9645 {
9646 PyThreadState* __tstate = wxPyBeginAllowThreads();
9647 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9648
9649 wxPyEndAllowThreads(__tstate);
9650 if (PyErr_Occurred()) SWIG_fail;
9651 }
9652 Py_INCREF(Py_None); resultobj = Py_None;
9653 return resultobj;
9654 fail:
9655 return NULL;
9656 }
9657
9658
9659 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9660 PyObject *resultobj;
9661 wxLocale *arg1 = (wxLocale *) 0 ;
9662 wxString *arg2 = 0 ;
9663 wxString const &arg3_defvalue = wxPyEmptyString ;
9664 wxString *arg3 = (wxString *) &arg3_defvalue ;
9665 wxString result;
9666 bool temp2 = False ;
9667 bool temp3 = False ;
9668 PyObject * obj0 = 0 ;
9669 PyObject * obj1 = 0 ;
9670 PyObject * obj2 = 0 ;
9671 char *kwnames[] = {
9672 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9673 };
9674
9675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9678 {
9679 arg2 = wxString_in_helper(obj1);
9680 if (arg2 == NULL) SWIG_fail;
9681 temp2 = True;
9682 }
9683 if (obj2) {
9684 {
9685 arg3 = wxString_in_helper(obj2);
9686 if (arg3 == NULL) SWIG_fail;
9687 temp3 = True;
9688 }
9689 }
9690 {
9691 PyThreadState* __tstate = wxPyBeginAllowThreads();
9692 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9693
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 {
9698 #if wxUSE_UNICODE
9699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9700 #else
9701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9702 #endif
9703 }
9704 {
9705 if (temp2)
9706 delete arg2;
9707 }
9708 {
9709 if (temp3)
9710 delete arg3;
9711 }
9712 return resultobj;
9713 fail:
9714 {
9715 if (temp2)
9716 delete arg2;
9717 }
9718 {
9719 if (temp3)
9720 delete arg3;
9721 }
9722 return NULL;
9723 }
9724
9725
9726 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9727 PyObject *resultobj;
9728 wxLocale *arg1 = (wxLocale *) 0 ;
9729 wxString *result;
9730 PyObject * obj0 = 0 ;
9731 char *kwnames[] = {
9732 (char *) "self", NULL
9733 };
9734
9735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9738 {
9739 PyThreadState* __tstate = wxPyBeginAllowThreads();
9740 {
9741 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9742 result = (wxString *) &_result_ref;
9743 }
9744
9745 wxPyEndAllowThreads(__tstate);
9746 if (PyErr_Occurred()) SWIG_fail;
9747 }
9748 {
9749 #if wxUSE_UNICODE
9750 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9751 #else
9752 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9753 #endif
9754 }
9755 return resultobj;
9756 fail:
9757 return NULL;
9758 }
9759
9760
9761 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9762 PyObject *obj;
9763 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9764 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9765 Py_INCREF(obj);
9766 return Py_BuildValue((char *)"");
9767 }
9768 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9769 PyObject *resultobj;
9770 wxLocale *result;
9771 char *kwnames[] = {
9772 NULL
9773 };
9774
9775 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9776 {
9777 PyThreadState* __tstate = wxPyBeginAllowThreads();
9778 result = (wxLocale *)wxGetLocale();
9779
9780 wxPyEndAllowThreads(__tstate);
9781 if (PyErr_Occurred()) SWIG_fail;
9782 }
9783 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9784 return resultobj;
9785 fail:
9786 return NULL;
9787 }
9788
9789
9790 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9791 PyObject *resultobj;
9792 wxString *arg1 = 0 ;
9793 wxString result;
9794 bool temp1 = False ;
9795 PyObject * obj0 = 0 ;
9796
9797 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9798 {
9799 arg1 = wxString_in_helper(obj0);
9800 if (arg1 == NULL) SWIG_fail;
9801 temp1 = True;
9802 }
9803 {
9804 PyThreadState* __tstate = wxPyBeginAllowThreads();
9805 result = wxGetTranslation((wxString const &)*arg1);
9806
9807 wxPyEndAllowThreads(__tstate);
9808 if (PyErr_Occurred()) SWIG_fail;
9809 }
9810 {
9811 #if wxUSE_UNICODE
9812 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9813 #else
9814 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9815 #endif
9816 }
9817 {
9818 if (temp1)
9819 delete arg1;
9820 }
9821 return resultobj;
9822 fail:
9823 {
9824 if (temp1)
9825 delete arg1;
9826 }
9827 return NULL;
9828 }
9829
9830
9831 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9832 PyObject *resultobj;
9833 wxString *arg1 = 0 ;
9834 wxString *arg2 = 0 ;
9835 size_t arg3 ;
9836 wxString result;
9837 bool temp1 = False ;
9838 bool temp2 = False ;
9839 PyObject * obj0 = 0 ;
9840 PyObject * obj1 = 0 ;
9841 PyObject * obj2 = 0 ;
9842
9843 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9844 {
9845 arg1 = wxString_in_helper(obj0);
9846 if (arg1 == NULL) SWIG_fail;
9847 temp1 = True;
9848 }
9849 {
9850 arg2 = wxString_in_helper(obj1);
9851 if (arg2 == NULL) SWIG_fail;
9852 temp2 = True;
9853 }
9854 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 {
9857 PyThreadState* __tstate = wxPyBeginAllowThreads();
9858 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9859
9860 wxPyEndAllowThreads(__tstate);
9861 if (PyErr_Occurred()) SWIG_fail;
9862 }
9863 {
9864 #if wxUSE_UNICODE
9865 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9866 #else
9867 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9868 #endif
9869 }
9870 {
9871 if (temp1)
9872 delete arg1;
9873 }
9874 {
9875 if (temp2)
9876 delete arg2;
9877 }
9878 return resultobj;
9879 fail:
9880 {
9881 if (temp1)
9882 delete arg1;
9883 }
9884 {
9885 if (temp2)
9886 delete arg2;
9887 }
9888 return NULL;
9889 }
9890
9891
9892 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9893 int argc;
9894 PyObject *argv[4];
9895 int ii;
9896
9897 argc = PyObject_Length(args);
9898 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9899 argv[ii] = PyTuple_GetItem(args,ii);
9900 }
9901 if (argc == 1) {
9902 int _v;
9903 {
9904 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9905 }
9906 if (_v) {
9907 return _wrap_GetTranslation__SWIG_0(self,args);
9908 }
9909 }
9910 if (argc == 3) {
9911 int _v;
9912 {
9913 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9914 }
9915 if (_v) {
9916 {
9917 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9918 }
9919 if (_v) {
9920 _v = SWIG_CheckUnsignedLong(argv[2]);
9921 if (_v) {
9922 return _wrap_GetTranslation__SWIG_1(self,args);
9923 }
9924 }
9925 }
9926 }
9927
9928 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9929 return NULL;
9930 }
9931
9932
9933 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9934 PyObject *resultobj;
9935 wxEncodingConverter *result;
9936 char *kwnames[] = {
9937 NULL
9938 };
9939
9940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9941 {
9942 PyThreadState* __tstate = wxPyBeginAllowThreads();
9943 result = (wxEncodingConverter *)new wxEncodingConverter();
9944
9945 wxPyEndAllowThreads(__tstate);
9946 if (PyErr_Occurred()) SWIG_fail;
9947 }
9948 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9949 return resultobj;
9950 fail:
9951 return NULL;
9952 }
9953
9954
9955 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9956 PyObject *resultobj;
9957 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9958 PyObject * obj0 = 0 ;
9959 char *kwnames[] = {
9960 (char *) "self", NULL
9961 };
9962
9963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
9965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9966 {
9967 PyThreadState* __tstate = wxPyBeginAllowThreads();
9968 delete arg1;
9969
9970 wxPyEndAllowThreads(__tstate);
9971 if (PyErr_Occurred()) SWIG_fail;
9972 }
9973 Py_INCREF(Py_None); resultobj = Py_None;
9974 return resultobj;
9975 fail:
9976 return NULL;
9977 }
9978
9979
9980 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9981 PyObject *resultobj;
9982 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9983 int arg2 ;
9984 int arg3 ;
9985 int arg4 = (int) wxCONVERT_STRICT ;
9986 bool result;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 PyObject * obj3 = 0 ;
9991 char *kwnames[] = {
9992 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
9993 };
9994
9995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
9997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9998 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10001 if (PyErr_Occurred()) SWIG_fail;
10002 if (obj3) {
10003 arg4 = (int) SWIG_AsInt(obj3);
10004 if (PyErr_Occurred()) SWIG_fail;
10005 }
10006 {
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10009
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 {
10014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10015 }
10016 return resultobj;
10017 fail:
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10025 wxString *arg2 = 0 ;
10026 wxString result;
10027 bool temp2 = False ;
10028 PyObject * obj0 = 0 ;
10029 PyObject * obj1 = 0 ;
10030 char *kwnames[] = {
10031 (char *) "self",(char *) "input", NULL
10032 };
10033
10034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10037 {
10038 arg2 = wxString_in_helper(obj1);
10039 if (arg2 == NULL) SWIG_fail;
10040 temp2 = True;
10041 }
10042 {
10043 PyThreadState* __tstate = wxPyBeginAllowThreads();
10044 result = (arg1)->Convert((wxString const &)*arg2);
10045
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 {
10050 #if wxUSE_UNICODE
10051 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10052 #else
10053 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10054 #endif
10055 }
10056 {
10057 if (temp2)
10058 delete arg2;
10059 }
10060 return resultobj;
10061 fail:
10062 {
10063 if (temp2)
10064 delete arg2;
10065 }
10066 return NULL;
10067 }
10068
10069
10070 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10071 PyObject *resultobj;
10072 int arg1 ;
10073 int arg2 = (int) wxPLATFORM_CURRENT ;
10074 wxFontEncodingArray result;
10075 PyObject * obj0 = 0 ;
10076 PyObject * obj1 = 0 ;
10077 char *kwnames[] = {
10078 (char *) "enc",(char *) "platform", NULL
10079 };
10080
10081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10082 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10083 if (PyErr_Occurred()) SWIG_fail;
10084 if (obj1) {
10085 arg2 = (int) SWIG_AsInt(obj1);
10086 if (PyErr_Occurred()) SWIG_fail;
10087 }
10088 {
10089 PyThreadState* __tstate = wxPyBeginAllowThreads();
10090 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10091
10092 wxPyEndAllowThreads(__tstate);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 {
10096 resultobj = PyList_New(0);
10097 for (size_t i=0; i < (&result)->GetCount(); i++) {
10098 PyObject* number = PyInt_FromLong((&result)->Item(i));
10099 PyList_Append(resultobj, number);
10100 Py_DECREF(number);
10101 }
10102 }
10103 return resultobj;
10104 fail:
10105 return NULL;
10106 }
10107
10108
10109 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10110 PyObject *resultobj;
10111 int arg1 ;
10112 wxFontEncodingArray result;
10113 PyObject * obj0 = 0 ;
10114 char *kwnames[] = {
10115 (char *) "enc", NULL
10116 };
10117
10118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10119 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 {
10122 PyThreadState* __tstate = wxPyBeginAllowThreads();
10123 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10124
10125 wxPyEndAllowThreads(__tstate);
10126 if (PyErr_Occurred()) SWIG_fail;
10127 }
10128 {
10129 resultobj = PyList_New(0);
10130 for (size_t i=0; i < (&result)->GetCount(); i++) {
10131 PyObject* number = PyInt_FromLong((&result)->Item(i));
10132 PyList_Append(resultobj, number);
10133 Py_DECREF(number);
10134 }
10135 }
10136 return resultobj;
10137 fail:
10138 return NULL;
10139 }
10140
10141
10142 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10143 PyObject *resultobj;
10144 int arg1 ;
10145 int arg2 ;
10146 bool result;
10147 PyObject * obj0 = 0 ;
10148 PyObject * obj1 = 0 ;
10149 char *kwnames[] = {
10150 (char *) "encIn",(char *) "encOut", NULL
10151 };
10152
10153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10154 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10155 if (PyErr_Occurred()) SWIG_fail;
10156 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10157 if (PyErr_Occurred()) SWIG_fail;
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10161
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 {
10166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10167 }
10168 return resultobj;
10169 fail:
10170 return NULL;
10171 }
10172
10173
10174 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10175 PyObject *obj;
10176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10177 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10178 Py_INCREF(obj);
10179 return Py_BuildValue((char *)"");
10180 }
10181 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10182 PyObject *resultobj;
10183 wxDC *arg1 = (wxDC *) 0 ;
10184 PyObject * obj0 = 0 ;
10185 char *kwnames[] = {
10186 (char *) "self", NULL
10187 };
10188
10189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10192 {
10193 PyThreadState* __tstate = wxPyBeginAllowThreads();
10194 delete arg1;
10195
10196 wxPyEndAllowThreads(__tstate);
10197 if (PyErr_Occurred()) SWIG_fail;
10198 }
10199 Py_INCREF(Py_None); resultobj = Py_None;
10200 return resultobj;
10201 fail:
10202 return NULL;
10203 }
10204
10205
10206 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10207 PyObject *resultobj;
10208 wxDC *arg1 = (wxDC *) 0 ;
10209 PyObject * obj0 = 0 ;
10210 char *kwnames[] = {
10211 (char *) "self", NULL
10212 };
10213
10214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10217 {
10218 PyThreadState* __tstate = wxPyBeginAllowThreads();
10219 (arg1)->BeginDrawing();
10220
10221 wxPyEndAllowThreads(__tstate);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 }
10224 Py_INCREF(Py_None); resultobj = Py_None;
10225 return resultobj;
10226 fail:
10227 return NULL;
10228 }
10229
10230
10231 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10232 PyObject *resultobj;
10233 wxDC *arg1 = (wxDC *) 0 ;
10234 PyObject * obj0 = 0 ;
10235 char *kwnames[] = {
10236 (char *) "self", NULL
10237 };
10238
10239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 (arg1)->EndDrawing();
10245
10246 wxPyEndAllowThreads(__tstate);
10247 if (PyErr_Occurred()) SWIG_fail;
10248 }
10249 Py_INCREF(Py_None); resultobj = Py_None;
10250 return resultobj;
10251 fail:
10252 return NULL;
10253 }
10254
10255
10256 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10257 PyObject *resultobj;
10258 wxDC *arg1 = (wxDC *) 0 ;
10259 int arg2 ;
10260 int arg3 ;
10261 wxColour *arg4 = 0 ;
10262 int arg5 = (int) wxFLOOD_SURFACE ;
10263 bool result;
10264 wxColour temp4 ;
10265 PyObject * obj0 = 0 ;
10266 PyObject * obj1 = 0 ;
10267 PyObject * obj2 = 0 ;
10268 PyObject * obj3 = 0 ;
10269 PyObject * obj4 = 0 ;
10270 char *kwnames[] = {
10271 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10272 };
10273
10274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10277 arg2 = (int) SWIG_AsInt(obj1);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 arg3 = (int) SWIG_AsInt(obj2);
10280 if (PyErr_Occurred()) SWIG_fail;
10281 {
10282 arg4 = &temp4;
10283 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10284 }
10285 if (obj4) {
10286 arg5 = (int) SWIG_AsInt(obj4);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 }
10289 {
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10292
10293 wxPyEndAllowThreads(__tstate);
10294 if (PyErr_Occurred()) SWIG_fail;
10295 }
10296 {
10297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10298 }
10299 return resultobj;
10300 fail:
10301 return NULL;
10302 }
10303
10304
10305 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10306 PyObject *resultobj;
10307 wxDC *arg1 = (wxDC *) 0 ;
10308 wxPoint *arg2 = 0 ;
10309 wxColour *arg3 = 0 ;
10310 int arg4 = (int) wxFLOOD_SURFACE ;
10311 bool result;
10312 wxPoint temp2 ;
10313 wxColour temp3 ;
10314 PyObject * obj0 = 0 ;
10315 PyObject * obj1 = 0 ;
10316 PyObject * obj2 = 0 ;
10317 PyObject * obj3 = 0 ;
10318 char *kwnames[] = {
10319 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10320 };
10321
10322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10325 {
10326 arg2 = &temp2;
10327 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10328 }
10329 {
10330 arg3 = &temp3;
10331 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10332 }
10333 if (obj3) {
10334 arg4 = (int) SWIG_AsInt(obj3);
10335 if (PyErr_Occurred()) SWIG_fail;
10336 }
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10340
10341 wxPyEndAllowThreads(__tstate);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 }
10344 {
10345 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10346 }
10347 return resultobj;
10348 fail:
10349 return NULL;
10350 }
10351
10352
10353 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10354 PyObject *resultobj;
10355 wxDC *arg1 = (wxDC *) 0 ;
10356 int arg2 ;
10357 int arg3 ;
10358 wxColour result;
10359 PyObject * obj0 = 0 ;
10360 PyObject * obj1 = 0 ;
10361 PyObject * obj2 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self",(char *) "x",(char *) "y", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 arg2 = (int) SWIG_AsInt(obj1);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 arg3 = (int) SWIG_AsInt(obj2);
10372 if (PyErr_Occurred()) SWIG_fail;
10373 {
10374 PyThreadState* __tstate = wxPyBeginAllowThreads();
10375 result = wxDC_GetPixel(arg1,arg2,arg3);
10376
10377 wxPyEndAllowThreads(__tstate);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 }
10380 {
10381 wxColour * resultptr;
10382 resultptr = new wxColour((wxColour &) result);
10383 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10384 }
10385 return resultobj;
10386 fail:
10387 return NULL;
10388 }
10389
10390
10391 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10392 PyObject *resultobj;
10393 wxDC *arg1 = (wxDC *) 0 ;
10394 wxPoint *arg2 = 0 ;
10395 wxColour result;
10396 wxPoint temp2 ;
10397 PyObject * obj0 = 0 ;
10398 PyObject * obj1 = 0 ;
10399 char *kwnames[] = {
10400 (char *) "self",(char *) "pt", NULL
10401 };
10402
10403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10406 {
10407 arg2 = &temp2;
10408 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10409 }
10410 {
10411 PyThreadState* __tstate = wxPyBeginAllowThreads();
10412 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10413
10414 wxPyEndAllowThreads(__tstate);
10415 if (PyErr_Occurred()) SWIG_fail;
10416 }
10417 {
10418 wxColour * resultptr;
10419 resultptr = new wxColour((wxColour &) result);
10420 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10421 }
10422 return resultobj;
10423 fail:
10424 return NULL;
10425 }
10426
10427
10428 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10429 PyObject *resultobj;
10430 wxDC *arg1 = (wxDC *) 0 ;
10431 int arg2 ;
10432 int arg3 ;
10433 int arg4 ;
10434 int arg5 ;
10435 PyObject * obj0 = 0 ;
10436 PyObject * obj1 = 0 ;
10437 PyObject * obj2 = 0 ;
10438 PyObject * obj3 = 0 ;
10439 PyObject * obj4 = 0 ;
10440 char *kwnames[] = {
10441 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10442 };
10443
10444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10447 arg2 = (int) SWIG_AsInt(obj1);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 arg3 = (int) SWIG_AsInt(obj2);
10450 if (PyErr_Occurred()) SWIG_fail;
10451 arg4 = (int) SWIG_AsInt(obj3);
10452 if (PyErr_Occurred()) SWIG_fail;
10453 arg5 = (int) SWIG_AsInt(obj4);
10454 if (PyErr_Occurred()) SWIG_fail;
10455 {
10456 PyThreadState* __tstate = wxPyBeginAllowThreads();
10457 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10458
10459 wxPyEndAllowThreads(__tstate);
10460 if (PyErr_Occurred()) SWIG_fail;
10461 }
10462 Py_INCREF(Py_None); resultobj = Py_None;
10463 return resultobj;
10464 fail:
10465 return NULL;
10466 }
10467
10468
10469 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10470 PyObject *resultobj;
10471 wxDC *arg1 = (wxDC *) 0 ;
10472 wxPoint *arg2 = 0 ;
10473 wxPoint *arg3 = 0 ;
10474 wxPoint temp2 ;
10475 wxPoint temp3 ;
10476 PyObject * obj0 = 0 ;
10477 PyObject * obj1 = 0 ;
10478 PyObject * obj2 = 0 ;
10479 char *kwnames[] = {
10480 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10481 };
10482
10483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10486 {
10487 arg2 = &temp2;
10488 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10489 }
10490 {
10491 arg3 = &temp3;
10492 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10493 }
10494 {
10495 PyThreadState* __tstate = wxPyBeginAllowThreads();
10496 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
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_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj;
10510 wxDC *arg1 = (wxDC *) 0 ;
10511 int arg2 ;
10512 int arg3 ;
10513 PyObject * obj0 = 0 ;
10514 PyObject * obj1 = 0 ;
10515 PyObject * obj2 = 0 ;
10516 char *kwnames[] = {
10517 (char *) "self",(char *) "x",(char *) "y", NULL
10518 };
10519
10520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10523 arg2 = (int) SWIG_AsInt(obj1);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 arg3 = (int) SWIG_AsInt(obj2);
10526 if (PyErr_Occurred()) SWIG_fail;
10527 {
10528 PyThreadState* __tstate = wxPyBeginAllowThreads();
10529 (arg1)->CrossHair(arg2,arg3);
10530
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 Py_INCREF(Py_None); resultobj = Py_None;
10535 return resultobj;
10536 fail:
10537 return NULL;
10538 }
10539
10540
10541 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj;
10543 wxDC *arg1 = (wxDC *) 0 ;
10544 wxPoint *arg2 = 0 ;
10545 wxPoint temp2 ;
10546 PyObject * obj0 = 0 ;
10547 PyObject * obj1 = 0 ;
10548 char *kwnames[] = {
10549 (char *) "self",(char *) "pt", NULL
10550 };
10551
10552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10553 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10554 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10555 {
10556 arg2 = &temp2;
10557 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10558 }
10559 {
10560 PyThreadState* __tstate = wxPyBeginAllowThreads();
10561 (arg1)->CrossHair((wxPoint const &)*arg2);
10562
10563 wxPyEndAllowThreads(__tstate);
10564 if (PyErr_Occurred()) SWIG_fail;
10565 }
10566 Py_INCREF(Py_None); resultobj = Py_None;
10567 return resultobj;
10568 fail:
10569 return NULL;
10570 }
10571
10572
10573 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj;
10575 wxDC *arg1 = (wxDC *) 0 ;
10576 int arg2 ;
10577 int arg3 ;
10578 int arg4 ;
10579 int arg5 ;
10580 int arg6 ;
10581 int arg7 ;
10582 PyObject * obj0 = 0 ;
10583 PyObject * obj1 = 0 ;
10584 PyObject * obj2 = 0 ;
10585 PyObject * obj3 = 0 ;
10586 PyObject * obj4 = 0 ;
10587 PyObject * obj5 = 0 ;
10588 PyObject * obj6 = 0 ;
10589 char *kwnames[] = {
10590 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10591 };
10592
10593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10596 arg2 = (int) SWIG_AsInt(obj1);
10597 if (PyErr_Occurred()) SWIG_fail;
10598 arg3 = (int) SWIG_AsInt(obj2);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 arg4 = (int) SWIG_AsInt(obj3);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 arg5 = (int) SWIG_AsInt(obj4);
10603 if (PyErr_Occurred()) SWIG_fail;
10604 arg6 = (int) SWIG_AsInt(obj5);
10605 if (PyErr_Occurred()) SWIG_fail;
10606 arg7 = (int) SWIG_AsInt(obj6);
10607 if (PyErr_Occurred()) SWIG_fail;
10608 {
10609 PyThreadState* __tstate = wxPyBeginAllowThreads();
10610 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10611
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 Py_INCREF(Py_None); resultobj = Py_None;
10616 return resultobj;
10617 fail:
10618 return NULL;
10619 }
10620
10621
10622 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10623 PyObject *resultobj;
10624 wxDC *arg1 = (wxDC *) 0 ;
10625 wxPoint *arg2 = 0 ;
10626 wxPoint *arg3 = 0 ;
10627 wxPoint *arg4 = 0 ;
10628 wxPoint temp2 ;
10629 wxPoint temp3 ;
10630 wxPoint temp4 ;
10631 PyObject * obj0 = 0 ;
10632 PyObject * obj1 = 0 ;
10633 PyObject * obj2 = 0 ;
10634 PyObject * obj3 = 0 ;
10635 char *kwnames[] = {
10636 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10637 };
10638
10639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10642 {
10643 arg2 = &temp2;
10644 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10645 }
10646 {
10647 arg3 = &temp3;
10648 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10649 }
10650 {
10651 arg4 = &temp4;
10652 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10653 }
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10657
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 Py_INCREF(Py_None); resultobj = Py_None;
10662 return resultobj;
10663 fail:
10664 return NULL;
10665 }
10666
10667
10668 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj;
10670 wxDC *arg1 = (wxDC *) 0 ;
10671 int arg2 ;
10672 int arg3 ;
10673 int arg4 ;
10674 int arg5 ;
10675 PyObject * obj0 = 0 ;
10676 PyObject * obj1 = 0 ;
10677 PyObject * obj2 = 0 ;
10678 PyObject * obj3 = 0 ;
10679 PyObject * obj4 = 0 ;
10680 char *kwnames[] = {
10681 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10682 };
10683
10684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10687 arg2 = (int) SWIG_AsInt(obj1);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 arg3 = (int) SWIG_AsInt(obj2);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 arg4 = (int) SWIG_AsInt(obj3);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 arg5 = (int) SWIG_AsInt(obj4);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 {
10696 PyThreadState* __tstate = wxPyBeginAllowThreads();
10697 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10698
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 Py_INCREF(Py_None); resultobj = Py_None;
10703 return resultobj;
10704 fail:
10705 return NULL;
10706 }
10707
10708
10709 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10710 PyObject *resultobj;
10711 wxDC *arg1 = (wxDC *) 0 ;
10712 wxRect *arg2 = 0 ;
10713 wxRect temp2 ;
10714 PyObject * obj0 = 0 ;
10715 PyObject * obj1 = 0 ;
10716 char *kwnames[] = {
10717 (char *) "self",(char *) "rect", NULL
10718 };
10719
10720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10723 {
10724 arg2 = &temp2;
10725 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10726 }
10727 {
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10730
10731 wxPyEndAllowThreads(__tstate);
10732 if (PyErr_Occurred()) SWIG_fail;
10733 }
10734 Py_INCREF(Py_None); resultobj = Py_None;
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj;
10743 wxDC *arg1 = (wxDC *) 0 ;
10744 int arg2 ;
10745 int arg3 ;
10746 int arg4 ;
10747 int arg5 ;
10748 double arg6 ;
10749 double arg7 ;
10750 PyObject * obj0 = 0 ;
10751 PyObject * obj1 = 0 ;
10752 PyObject * obj2 = 0 ;
10753 PyObject * obj3 = 0 ;
10754 PyObject * obj4 = 0 ;
10755 PyObject * obj5 = 0 ;
10756 PyObject * obj6 = 0 ;
10757 char *kwnames[] = {
10758 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10759 };
10760
10761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10764 arg2 = (int) SWIG_AsInt(obj1);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 arg3 = (int) SWIG_AsInt(obj2);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 arg4 = (int) SWIG_AsInt(obj3);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 arg5 = (int) SWIG_AsInt(obj4);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 arg6 = (double) SWIG_AsDouble(obj5);
10773 if (PyErr_Occurred()) SWIG_fail;
10774 arg7 = (double) SWIG_AsDouble(obj6);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 {
10777 PyThreadState* __tstate = wxPyBeginAllowThreads();
10778 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10779
10780 wxPyEndAllowThreads(__tstate);
10781 if (PyErr_Occurred()) SWIG_fail;
10782 }
10783 Py_INCREF(Py_None); resultobj = Py_None;
10784 return resultobj;
10785 fail:
10786 return NULL;
10787 }
10788
10789
10790 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10791 PyObject *resultobj;
10792 wxDC *arg1 = (wxDC *) 0 ;
10793 wxPoint *arg2 = 0 ;
10794 wxSize *arg3 = 0 ;
10795 double arg4 ;
10796 double arg5 ;
10797 wxPoint temp2 ;
10798 wxSize temp3 ;
10799 PyObject * obj0 = 0 ;
10800 PyObject * obj1 = 0 ;
10801 PyObject * obj2 = 0 ;
10802 PyObject * obj3 = 0 ;
10803 PyObject * obj4 = 0 ;
10804 char *kwnames[] = {
10805 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10806 };
10807
10808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10809 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10810 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10811 {
10812 arg2 = &temp2;
10813 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10814 }
10815 {
10816 arg3 = &temp3;
10817 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10818 }
10819 arg4 = (double) SWIG_AsDouble(obj3);
10820 if (PyErr_Occurred()) SWIG_fail;
10821 arg5 = (double) SWIG_AsDouble(obj4);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 {
10824 PyThreadState* __tstate = wxPyBeginAllowThreads();
10825 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10826
10827 wxPyEndAllowThreads(__tstate);
10828 if (PyErr_Occurred()) SWIG_fail;
10829 }
10830 Py_INCREF(Py_None); resultobj = Py_None;
10831 return resultobj;
10832 fail:
10833 return NULL;
10834 }
10835
10836
10837 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10838 PyObject *resultobj;
10839 wxDC *arg1 = (wxDC *) 0 ;
10840 int arg2 ;
10841 int arg3 ;
10842 PyObject * obj0 = 0 ;
10843 PyObject * obj1 = 0 ;
10844 PyObject * obj2 = 0 ;
10845 char *kwnames[] = {
10846 (char *) "self",(char *) "x",(char *) "y", NULL
10847 };
10848
10849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10852 arg2 = (int) SWIG_AsInt(obj1);
10853 if (PyErr_Occurred()) SWIG_fail;
10854 arg3 = (int) SWIG_AsInt(obj2);
10855 if (PyErr_Occurred()) SWIG_fail;
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 (arg1)->DrawPoint(arg2,arg3);
10859
10860 wxPyEndAllowThreads(__tstate);
10861 if (PyErr_Occurred()) SWIG_fail;
10862 }
10863 Py_INCREF(Py_None); resultobj = Py_None;
10864 return resultobj;
10865 fail:
10866 return NULL;
10867 }
10868
10869
10870 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10871 PyObject *resultobj;
10872 wxDC *arg1 = (wxDC *) 0 ;
10873 wxPoint *arg2 = 0 ;
10874 wxPoint temp2 ;
10875 PyObject * obj0 = 0 ;
10876 PyObject * obj1 = 0 ;
10877 char *kwnames[] = {
10878 (char *) "self",(char *) "pt", NULL
10879 };
10880
10881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
10882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10884 {
10885 arg2 = &temp2;
10886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10887 }
10888 {
10889 PyThreadState* __tstate = wxPyBeginAllowThreads();
10890 (arg1)->DrawPoint((wxPoint const &)*arg2);
10891
10892 wxPyEndAllowThreads(__tstate);
10893 if (PyErr_Occurred()) SWIG_fail;
10894 }
10895 Py_INCREF(Py_None); resultobj = Py_None;
10896 return resultobj;
10897 fail:
10898 return NULL;
10899 }
10900
10901
10902 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10903 PyObject *resultobj;
10904 wxDC *arg1 = (wxDC *) 0 ;
10905 int arg2 ;
10906 int arg3 ;
10907 int arg4 ;
10908 int arg5 ;
10909 PyObject * obj0 = 0 ;
10910 PyObject * obj1 = 0 ;
10911 PyObject * obj2 = 0 ;
10912 PyObject * obj3 = 0 ;
10913 PyObject * obj4 = 0 ;
10914 char *kwnames[] = {
10915 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10916 };
10917
10918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10921 arg2 = (int) SWIG_AsInt(obj1);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 arg3 = (int) SWIG_AsInt(obj2);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 arg4 = (int) SWIG_AsInt(obj3);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 arg5 = (int) SWIG_AsInt(obj4);
10928 if (PyErr_Occurred()) SWIG_fail;
10929 {
10930 PyThreadState* __tstate = wxPyBeginAllowThreads();
10931 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10932
10933 wxPyEndAllowThreads(__tstate);
10934 if (PyErr_Occurred()) SWIG_fail;
10935 }
10936 Py_INCREF(Py_None); resultobj = Py_None;
10937 return resultobj;
10938 fail:
10939 return NULL;
10940 }
10941
10942
10943 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10944 PyObject *resultobj;
10945 wxDC *arg1 = (wxDC *) 0 ;
10946 wxRect *arg2 = 0 ;
10947 wxRect temp2 ;
10948 PyObject * obj0 = 0 ;
10949 PyObject * obj1 = 0 ;
10950 char *kwnames[] = {
10951 (char *) "self",(char *) "rect", NULL
10952 };
10953
10954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10957 {
10958 arg2 = &temp2;
10959 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10960 }
10961 {
10962 PyThreadState* __tstate = wxPyBeginAllowThreads();
10963 (arg1)->DrawRectangle((wxRect const &)*arg2);
10964
10965 wxPyEndAllowThreads(__tstate);
10966 if (PyErr_Occurred()) SWIG_fail;
10967 }
10968 Py_INCREF(Py_None); resultobj = Py_None;
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj;
10977 wxDC *arg1 = (wxDC *) 0 ;
10978 wxPoint *arg2 = 0 ;
10979 wxSize *arg3 = 0 ;
10980 wxPoint temp2 ;
10981 wxSize temp3 ;
10982 PyObject * obj0 = 0 ;
10983 PyObject * obj1 = 0 ;
10984 PyObject * obj2 = 0 ;
10985 char *kwnames[] = {
10986 (char *) "self",(char *) "pt",(char *) "sz", NULL
10987 };
10988
10989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
10990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10992 {
10993 arg2 = &temp2;
10994 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10995 }
10996 {
10997 arg3 = &temp3;
10998 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10999 }
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
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_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj;
11016 wxDC *arg1 = (wxDC *) 0 ;
11017 int arg2 ;
11018 int arg3 ;
11019 int arg4 ;
11020 int arg5 ;
11021 double arg6 ;
11022 PyObject * obj0 = 0 ;
11023 PyObject * obj1 = 0 ;
11024 PyObject * obj2 = 0 ;
11025 PyObject * obj3 = 0 ;
11026 PyObject * obj4 = 0 ;
11027 PyObject * obj5 = 0 ;
11028 char *kwnames[] = {
11029 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11030 };
11031
11032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11035 arg2 = (int) SWIG_AsInt(obj1);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 arg3 = (int) SWIG_AsInt(obj2);
11038 if (PyErr_Occurred()) SWIG_fail;
11039 arg4 = (int) SWIG_AsInt(obj3);
11040 if (PyErr_Occurred()) SWIG_fail;
11041 arg5 = (int) SWIG_AsInt(obj4);
11042 if (PyErr_Occurred()) SWIG_fail;
11043 arg6 = (double) SWIG_AsDouble(obj5);
11044 if (PyErr_Occurred()) SWIG_fail;
11045 {
11046 PyThreadState* __tstate = wxPyBeginAllowThreads();
11047 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11048
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 Py_INCREF(Py_None); resultobj = Py_None;
11053 return resultobj;
11054 fail:
11055 return NULL;
11056 }
11057
11058
11059 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11060 PyObject *resultobj;
11061 wxDC *arg1 = (wxDC *) 0 ;
11062 wxRect *arg2 = 0 ;
11063 double arg3 ;
11064 wxRect temp2 ;
11065 PyObject * obj0 = 0 ;
11066 PyObject * obj1 = 0 ;
11067 PyObject * obj2 = 0 ;
11068 char *kwnames[] = {
11069 (char *) "self",(char *) "r",(char *) "radius", NULL
11070 };
11071
11072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11075 {
11076 arg2 = &temp2;
11077 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11078 }
11079 arg3 = (double) SWIG_AsDouble(obj2);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 Py_INCREF(Py_None); resultobj = Py_None;
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxDC *arg1 = (wxDC *) 0 ;
11098 wxPoint *arg2 = 0 ;
11099 wxSize *arg3 = 0 ;
11100 double arg4 ;
11101 wxPoint temp2 ;
11102 wxSize temp3 ;
11103 PyObject * obj0 = 0 ;
11104 PyObject * obj1 = 0 ;
11105 PyObject * obj2 = 0 ;
11106 PyObject * obj3 = 0 ;
11107 char *kwnames[] = {
11108 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11109 };
11110
11111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) 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 ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11117 }
11118 {
11119 arg3 = &temp3;
11120 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11121 }
11122 arg4 = (double) SWIG_AsDouble(obj3);
11123 if (PyErr_Occurred()) SWIG_fail;
11124 {
11125 PyThreadState* __tstate = wxPyBeginAllowThreads();
11126 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11127
11128 wxPyEndAllowThreads(__tstate);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 }
11131 Py_INCREF(Py_None); resultobj = Py_None;
11132 return resultobj;
11133 fail:
11134 return NULL;
11135 }
11136
11137
11138 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11139 PyObject *resultobj;
11140 wxDC *arg1 = (wxDC *) 0 ;
11141 int arg2 ;
11142 int arg3 ;
11143 int arg4 ;
11144 PyObject * obj0 = 0 ;
11145 PyObject * obj1 = 0 ;
11146 PyObject * obj2 = 0 ;
11147 PyObject * obj3 = 0 ;
11148 char *kwnames[] = {
11149 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11150 };
11151
11152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11155 arg2 = (int) SWIG_AsInt(obj1);
11156 if (PyErr_Occurred()) SWIG_fail;
11157 arg3 = (int) SWIG_AsInt(obj2);
11158 if (PyErr_Occurred()) SWIG_fail;
11159 arg4 = (int) SWIG_AsInt(obj3);
11160 if (PyErr_Occurred()) SWIG_fail;
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 (arg1)->DrawCircle(arg2,arg3,arg4);
11164
11165 wxPyEndAllowThreads(__tstate);
11166 if (PyErr_Occurred()) SWIG_fail;
11167 }
11168 Py_INCREF(Py_None); resultobj = Py_None;
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj;
11177 wxDC *arg1 = (wxDC *) 0 ;
11178 wxPoint *arg2 = 0 ;
11179 int arg3 ;
11180 wxPoint temp2 ;
11181 PyObject * obj0 = 0 ;
11182 PyObject * obj1 = 0 ;
11183 PyObject * obj2 = 0 ;
11184 char *kwnames[] = {
11185 (char *) "self",(char *) "pt",(char *) "radius", NULL
11186 };
11187
11188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11191 {
11192 arg2 = &temp2;
11193 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11194 }
11195 arg3 = (int) SWIG_AsInt(obj2);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 Py_INCREF(Py_None); resultobj = Py_None;
11205 return resultobj;
11206 fail:
11207 return NULL;
11208 }
11209
11210
11211 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11212 PyObject *resultobj;
11213 wxDC *arg1 = (wxDC *) 0 ;
11214 int arg2 ;
11215 int arg3 ;
11216 int arg4 ;
11217 int arg5 ;
11218 PyObject * obj0 = 0 ;
11219 PyObject * obj1 = 0 ;
11220 PyObject * obj2 = 0 ;
11221 PyObject * obj3 = 0 ;
11222 PyObject * obj4 = 0 ;
11223 char *kwnames[] = {
11224 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11225 };
11226
11227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11230 arg2 = (int) SWIG_AsInt(obj1);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 arg3 = (int) SWIG_AsInt(obj2);
11233 if (PyErr_Occurred()) SWIG_fail;
11234 arg4 = (int) SWIG_AsInt(obj3);
11235 if (PyErr_Occurred()) SWIG_fail;
11236 arg5 = (int) SWIG_AsInt(obj4);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 {
11239 PyThreadState* __tstate = wxPyBeginAllowThreads();
11240 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11241
11242 wxPyEndAllowThreads(__tstate);
11243 if (PyErr_Occurred()) SWIG_fail;
11244 }
11245 Py_INCREF(Py_None); resultobj = Py_None;
11246 return resultobj;
11247 fail:
11248 return NULL;
11249 }
11250
11251
11252 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11253 PyObject *resultobj;
11254 wxDC *arg1 = (wxDC *) 0 ;
11255 wxRect *arg2 = 0 ;
11256 wxRect temp2 ;
11257 PyObject * obj0 = 0 ;
11258 PyObject * obj1 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self",(char *) "rect", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11266 {
11267 arg2 = &temp2;
11268 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11269 }
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 (arg1)->DrawEllipse((wxRect const &)*arg2);
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 Py_INCREF(Py_None); resultobj = Py_None;
11278 return resultobj;
11279 fail:
11280 return NULL;
11281 }
11282
11283
11284 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11285 PyObject *resultobj;
11286 wxDC *arg1 = (wxDC *) 0 ;
11287 wxPoint *arg2 = 0 ;
11288 wxSize *arg3 = 0 ;
11289 wxPoint temp2 ;
11290 wxSize temp3 ;
11291 PyObject * obj0 = 0 ;
11292 PyObject * obj1 = 0 ;
11293 PyObject * obj2 = 0 ;
11294 char *kwnames[] = {
11295 (char *) "self",(char *) "pt",(char *) "sz", NULL
11296 };
11297
11298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11301 {
11302 arg2 = &temp2;
11303 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11304 }
11305 {
11306 arg3 = &temp3;
11307 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11308 }
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
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_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj;
11325 wxDC *arg1 = (wxDC *) 0 ;
11326 wxIcon *arg2 = 0 ;
11327 int arg3 ;
11328 int arg4 ;
11329 PyObject * obj0 = 0 ;
11330 PyObject * obj1 = 0 ;
11331 PyObject * obj2 = 0 ;
11332 PyObject * obj3 = 0 ;
11333 char *kwnames[] = {
11334 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11335 };
11336
11337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11340 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11341 SWIG_POINTER_EXCEPTION | 0)) == -1)
11342 SWIG_fail;
11343 if (arg2 == NULL) {
11344 PyErr_SetString(PyExc_TypeError,"null reference");
11345 SWIG_fail;
11346 }
11347 arg3 = (int) SWIG_AsInt(obj2);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 arg4 = (int) SWIG_AsInt(obj3);
11350 if (PyErr_Occurred()) SWIG_fail;
11351 {
11352 PyThreadState* __tstate = wxPyBeginAllowThreads();
11353 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11354
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 Py_INCREF(Py_None); resultobj = Py_None;
11359 return resultobj;
11360 fail:
11361 return NULL;
11362 }
11363
11364
11365 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj;
11367 wxDC *arg1 = (wxDC *) 0 ;
11368 wxIcon *arg2 = 0 ;
11369 wxPoint *arg3 = 0 ;
11370 wxPoint temp3 ;
11371 PyObject * obj0 = 0 ;
11372 PyObject * obj1 = 0 ;
11373 PyObject * obj2 = 0 ;
11374 char *kwnames[] = {
11375 (char *) "self",(char *) "icon",(char *) "pt", NULL
11376 };
11377
11378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11382 SWIG_POINTER_EXCEPTION | 0)) == -1)
11383 SWIG_fail;
11384 if (arg2 == NULL) {
11385 PyErr_SetString(PyExc_TypeError,"null reference");
11386 SWIG_fail;
11387 }
11388 {
11389 arg3 = &temp3;
11390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11391 }
11392 {
11393 PyThreadState* __tstate = wxPyBeginAllowThreads();
11394 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11395
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 Py_INCREF(Py_None); resultobj = Py_None;
11400 return resultobj;
11401 fail:
11402 return NULL;
11403 }
11404
11405
11406 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11407 PyObject *resultobj;
11408 wxDC *arg1 = (wxDC *) 0 ;
11409 wxBitmap *arg2 = 0 ;
11410 int arg3 ;
11411 int arg4 ;
11412 bool arg5 = (bool) False ;
11413 PyObject * obj0 = 0 ;
11414 PyObject * obj1 = 0 ;
11415 PyObject * obj2 = 0 ;
11416 PyObject * obj3 = 0 ;
11417 PyObject * obj4 = 0 ;
11418 char *kwnames[] = {
11419 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11420 };
11421
11422 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11423 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11424 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11425 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11426 SWIG_POINTER_EXCEPTION | 0)) == -1)
11427 SWIG_fail;
11428 if (arg2 == NULL) {
11429 PyErr_SetString(PyExc_TypeError,"null reference");
11430 SWIG_fail;
11431 }
11432 arg3 = (int) SWIG_AsInt(obj2);
11433 if (PyErr_Occurred()) SWIG_fail;
11434 arg4 = (int) SWIG_AsInt(obj3);
11435 if (PyErr_Occurred()) SWIG_fail;
11436 if (obj4) {
11437 arg5 = (bool) SWIG_AsBool(obj4);
11438 if (PyErr_Occurred()) SWIG_fail;
11439 }
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11443
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 Py_INCREF(Py_None); resultobj = Py_None;
11448 return resultobj;
11449 fail:
11450 return NULL;
11451 }
11452
11453
11454 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxDC *arg1 = (wxDC *) 0 ;
11457 wxBitmap *arg2 = 0 ;
11458 wxPoint *arg3 = 0 ;
11459 bool arg4 = (bool) False ;
11460 wxPoint temp3 ;
11461 PyObject * obj0 = 0 ;
11462 PyObject * obj1 = 0 ;
11463 PyObject * obj2 = 0 ;
11464 PyObject * obj3 = 0 ;
11465 char *kwnames[] = {
11466 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11467 };
11468
11469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11473 SWIG_POINTER_EXCEPTION | 0)) == -1)
11474 SWIG_fail;
11475 if (arg2 == NULL) {
11476 PyErr_SetString(PyExc_TypeError,"null reference");
11477 SWIG_fail;
11478 }
11479 {
11480 arg3 = &temp3;
11481 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11482 }
11483 if (obj3) {
11484 arg4 = (bool) SWIG_AsBool(obj3);
11485 if (PyErr_Occurred()) SWIG_fail;
11486 }
11487 {
11488 PyThreadState* __tstate = wxPyBeginAllowThreads();
11489 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11490
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 Py_INCREF(Py_None); resultobj = Py_None;
11495 return resultobj;
11496 fail:
11497 return NULL;
11498 }
11499
11500
11501 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11502 PyObject *resultobj;
11503 wxDC *arg1 = (wxDC *) 0 ;
11504 wxString *arg2 = 0 ;
11505 int arg3 ;
11506 int arg4 ;
11507 bool temp2 = False ;
11508 PyObject * obj0 = 0 ;
11509 PyObject * obj1 = 0 ;
11510 PyObject * obj2 = 0 ;
11511 PyObject * obj3 = 0 ;
11512 char *kwnames[] = {
11513 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11514 };
11515
11516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11519 {
11520 arg2 = wxString_in_helper(obj1);
11521 if (arg2 == NULL) SWIG_fail;
11522 temp2 = True;
11523 }
11524 arg3 = (int) SWIG_AsInt(obj2);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 arg4 = (int) SWIG_AsInt(obj3);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 {
11529 PyThreadState* __tstate = wxPyBeginAllowThreads();
11530 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11531
11532 wxPyEndAllowThreads(__tstate);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 }
11535 Py_INCREF(Py_None); resultobj = Py_None;
11536 {
11537 if (temp2)
11538 delete arg2;
11539 }
11540 return resultobj;
11541 fail:
11542 {
11543 if (temp2)
11544 delete arg2;
11545 }
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxDC *arg1 = (wxDC *) 0 ;
11553 wxString *arg2 = 0 ;
11554 wxPoint *arg3 = 0 ;
11555 bool temp2 = False ;
11556 wxPoint temp3 ;
11557 PyObject * obj0 = 0 ;
11558 PyObject * obj1 = 0 ;
11559 PyObject * obj2 = 0 ;
11560 char *kwnames[] = {
11561 (char *) "self",(char *) "text",(char *) "pt", NULL
11562 };
11563
11564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11567 {
11568 arg2 = wxString_in_helper(obj1);
11569 if (arg2 == NULL) SWIG_fail;
11570 temp2 = True;
11571 }
11572 {
11573 arg3 = &temp3;
11574 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11575 }
11576 {
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11579
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 Py_INCREF(Py_None); resultobj = Py_None;
11584 {
11585 if (temp2)
11586 delete arg2;
11587 }
11588 return resultobj;
11589 fail:
11590 {
11591 if (temp2)
11592 delete arg2;
11593 }
11594 return NULL;
11595 }
11596
11597
11598 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11599 PyObject *resultobj;
11600 wxDC *arg1 = (wxDC *) 0 ;
11601 wxString *arg2 = 0 ;
11602 int arg3 ;
11603 int arg4 ;
11604 double arg5 ;
11605 bool temp2 = False ;
11606 PyObject * obj0 = 0 ;
11607 PyObject * obj1 = 0 ;
11608 PyObject * obj2 = 0 ;
11609 PyObject * obj3 = 0 ;
11610 PyObject * obj4 = 0 ;
11611 char *kwnames[] = {
11612 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11613 };
11614
11615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11616 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11617 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11618 {
11619 arg2 = wxString_in_helper(obj1);
11620 if (arg2 == NULL) SWIG_fail;
11621 temp2 = True;
11622 }
11623 arg3 = (int) SWIG_AsInt(obj2);
11624 if (PyErr_Occurred()) SWIG_fail;
11625 arg4 = (int) SWIG_AsInt(obj3);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 arg5 = (double) SWIG_AsDouble(obj4);
11628 if (PyErr_Occurred()) SWIG_fail;
11629 {
11630 PyThreadState* __tstate = wxPyBeginAllowThreads();
11631 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11632
11633 wxPyEndAllowThreads(__tstate);
11634 if (PyErr_Occurred()) SWIG_fail;
11635 }
11636 Py_INCREF(Py_None); resultobj = Py_None;
11637 {
11638 if (temp2)
11639 delete arg2;
11640 }
11641 return resultobj;
11642 fail:
11643 {
11644 if (temp2)
11645 delete arg2;
11646 }
11647 return NULL;
11648 }
11649
11650
11651 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11652 PyObject *resultobj;
11653 wxDC *arg1 = (wxDC *) 0 ;
11654 wxString *arg2 = 0 ;
11655 wxPoint *arg3 = 0 ;
11656 double arg4 ;
11657 bool temp2 = False ;
11658 wxPoint temp3 ;
11659 PyObject * obj0 = 0 ;
11660 PyObject * obj1 = 0 ;
11661 PyObject * obj2 = 0 ;
11662 PyObject * obj3 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 {
11671 arg2 = wxString_in_helper(obj1);
11672 if (arg2 == NULL) SWIG_fail;
11673 temp2 = True;
11674 }
11675 {
11676 arg3 = &temp3;
11677 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11678 }
11679 arg4 = (double) SWIG_AsDouble(obj3);
11680 if (PyErr_Occurred()) SWIG_fail;
11681 {
11682 PyThreadState* __tstate = wxPyBeginAllowThreads();
11683 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11684
11685 wxPyEndAllowThreads(__tstate);
11686 if (PyErr_Occurred()) SWIG_fail;
11687 }
11688 Py_INCREF(Py_None); resultobj = Py_None;
11689 {
11690 if (temp2)
11691 delete arg2;
11692 }
11693 return resultobj;
11694 fail:
11695 {
11696 if (temp2)
11697 delete arg2;
11698 }
11699 return NULL;
11700 }
11701
11702
11703 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11704 PyObject *resultobj;
11705 wxDC *arg1 = (wxDC *) 0 ;
11706 int arg2 ;
11707 int arg3 ;
11708 int arg4 ;
11709 int arg5 ;
11710 wxDC *arg6 = (wxDC *) 0 ;
11711 int arg7 ;
11712 int arg8 ;
11713 int arg9 = (int) wxCOPY ;
11714 bool arg10 = (bool) False ;
11715 int arg11 = (int) -1 ;
11716 int arg12 = (int) -1 ;
11717 bool result;
11718 PyObject * obj0 = 0 ;
11719 PyObject * obj1 = 0 ;
11720 PyObject * obj2 = 0 ;
11721 PyObject * obj3 = 0 ;
11722 PyObject * obj4 = 0 ;
11723 PyObject * obj5 = 0 ;
11724 PyObject * obj6 = 0 ;
11725 PyObject * obj7 = 0 ;
11726 PyObject * obj8 = 0 ;
11727 PyObject * obj9 = 0 ;
11728 PyObject * obj10 = 0 ;
11729 PyObject * obj11 = 0 ;
11730 char *kwnames[] = {
11731 (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
11732 };
11733
11734 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;
11735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11737 arg2 = (int) SWIG_AsInt(obj1);
11738 if (PyErr_Occurred()) SWIG_fail;
11739 arg3 = (int) SWIG_AsInt(obj2);
11740 if (PyErr_Occurred()) SWIG_fail;
11741 arg4 = (int) SWIG_AsInt(obj3);
11742 if (PyErr_Occurred()) SWIG_fail;
11743 arg5 = (int) SWIG_AsInt(obj4);
11744 if (PyErr_Occurred()) SWIG_fail;
11745 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11747 arg7 = (int) SWIG_AsInt(obj6);
11748 if (PyErr_Occurred()) SWIG_fail;
11749 arg8 = (int) SWIG_AsInt(obj7);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 if (obj8) {
11752 arg9 = (int) SWIG_AsInt(obj8);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 }
11755 if (obj9) {
11756 arg10 = (bool) SWIG_AsBool(obj9);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 }
11759 if (obj10) {
11760 arg11 = (int) SWIG_AsInt(obj10);
11761 if (PyErr_Occurred()) SWIG_fail;
11762 }
11763 if (obj11) {
11764 arg12 = (int) SWIG_AsInt(obj11);
11765 if (PyErr_Occurred()) SWIG_fail;
11766 }
11767 {
11768 PyThreadState* __tstate = wxPyBeginAllowThreads();
11769 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11770
11771 wxPyEndAllowThreads(__tstate);
11772 if (PyErr_Occurred()) SWIG_fail;
11773 }
11774 {
11775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11776 }
11777 return resultobj;
11778 fail:
11779 return NULL;
11780 }
11781
11782
11783 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11784 PyObject *resultobj;
11785 wxDC *arg1 = (wxDC *) 0 ;
11786 wxPoint *arg2 = 0 ;
11787 wxSize *arg3 = 0 ;
11788 wxDC *arg4 = (wxDC *) 0 ;
11789 wxPoint *arg5 = 0 ;
11790 int arg6 = (int) wxCOPY ;
11791 bool arg7 = (bool) False ;
11792 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11793 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11794 bool result;
11795 wxPoint temp2 ;
11796 wxSize temp3 ;
11797 wxPoint temp5 ;
11798 wxPoint temp8 ;
11799 PyObject * obj0 = 0 ;
11800 PyObject * obj1 = 0 ;
11801 PyObject * obj2 = 0 ;
11802 PyObject * obj3 = 0 ;
11803 PyObject * obj4 = 0 ;
11804 PyObject * obj5 = 0 ;
11805 PyObject * obj6 = 0 ;
11806 PyObject * obj7 = 0 ;
11807 char *kwnames[] = {
11808 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11809 };
11810
11811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11814 {
11815 arg2 = &temp2;
11816 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11817 }
11818 {
11819 arg3 = &temp3;
11820 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11821 }
11822 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11824 {
11825 arg5 = &temp5;
11826 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11827 }
11828 if (obj5) {
11829 arg6 = (int) SWIG_AsInt(obj5);
11830 if (PyErr_Occurred()) SWIG_fail;
11831 }
11832 if (obj6) {
11833 arg7 = (bool) SWIG_AsBool(obj6);
11834 if (PyErr_Occurred()) SWIG_fail;
11835 }
11836 if (obj7) {
11837 {
11838 arg8 = &temp8;
11839 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11840 }
11841 }
11842 {
11843 PyThreadState* __tstate = wxPyBeginAllowThreads();
11844 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11845
11846 wxPyEndAllowThreads(__tstate);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 {
11850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11851 }
11852 return resultobj;
11853 fail:
11854 return NULL;
11855 }
11856
11857
11858 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11859 PyObject *resultobj;
11860 wxDC *arg1 = (wxDC *) 0 ;
11861 int arg2 ;
11862 int arg3 ;
11863 int arg4 ;
11864 int arg5 ;
11865 PyObject * obj0 = 0 ;
11866 PyObject * obj1 = 0 ;
11867 PyObject * obj2 = 0 ;
11868 PyObject * obj3 = 0 ;
11869 PyObject * obj4 = 0 ;
11870 char *kwnames[] = {
11871 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11872 };
11873
11874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11877 arg2 = (int) SWIG_AsInt(obj1);
11878 if (PyErr_Occurred()) SWIG_fail;
11879 arg3 = (int) SWIG_AsInt(obj2);
11880 if (PyErr_Occurred()) SWIG_fail;
11881 arg4 = (int) SWIG_AsInt(obj3);
11882 if (PyErr_Occurred()) SWIG_fail;
11883 arg5 = (int) SWIG_AsInt(obj4);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 {
11886 PyThreadState* __tstate = wxPyBeginAllowThreads();
11887 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11888
11889 wxPyEndAllowThreads(__tstate);
11890 if (PyErr_Occurred()) SWIG_fail;
11891 }
11892 Py_INCREF(Py_None); resultobj = Py_None;
11893 return resultobj;
11894 fail:
11895 return NULL;
11896 }
11897
11898
11899 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11900 PyObject *resultobj;
11901 wxDC *arg1 = (wxDC *) 0 ;
11902 wxPoint *arg2 = 0 ;
11903 wxSize *arg3 = 0 ;
11904 wxPoint temp2 ;
11905 wxSize temp3 ;
11906 PyObject * obj0 = 0 ;
11907 PyObject * obj1 = 0 ;
11908 PyObject * obj2 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "self",(char *) "pt",(char *) "sz", NULL
11911 };
11912
11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11916 {
11917 arg2 = &temp2;
11918 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11919 }
11920 {
11921 arg3 = &temp3;
11922 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11923 }
11924 {
11925 PyThreadState* __tstate = wxPyBeginAllowThreads();
11926 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
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_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11939 PyObject *resultobj;
11940 wxDC *arg1 = (wxDC *) 0 ;
11941 wxRegion *arg2 = 0 ;
11942 PyObject * obj0 = 0 ;
11943 PyObject * obj1 = 0 ;
11944 char *kwnames[] = {
11945 (char *) "self",(char *) "region", NULL
11946 };
11947
11948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
11952 SWIG_POINTER_EXCEPTION | 0)) == -1)
11953 SWIG_fail;
11954 if (arg2 == NULL) {
11955 PyErr_SetString(PyExc_TypeError,"null reference");
11956 SWIG_fail;
11957 }
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11961
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 Py_INCREF(Py_None); resultobj = Py_None;
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11973 PyObject *resultobj;
11974 wxDC *arg1 = (wxDC *) 0 ;
11975 wxRect *arg2 = 0 ;
11976 wxRect temp2 ;
11977 PyObject * obj0 = 0 ;
11978 PyObject * obj1 = 0 ;
11979 char *kwnames[] = {
11980 (char *) "self",(char *) "rect", NULL
11981 };
11982
11983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11986 {
11987 arg2 = &temp2;
11988 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11989 }
11990 {
11991 PyThreadState* __tstate = wxPyBeginAllowThreads();
11992 (arg1)->SetClippingRegion((wxRect const &)*arg2);
11993
11994 wxPyEndAllowThreads(__tstate);
11995 if (PyErr_Occurred()) SWIG_fail;
11996 }
11997 Py_INCREF(Py_None); resultobj = Py_None;
11998 return resultobj;
11999 fail:
12000 return NULL;
12001 }
12002
12003
12004 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12005 PyObject *resultobj;
12006 wxDC *arg1 = (wxDC *) 0 ;
12007 int arg2 ;
12008 wxPoint *arg3 = (wxPoint *) 0 ;
12009 int arg4 = (int) 0 ;
12010 int arg5 = (int) 0 ;
12011 PyObject * obj0 = 0 ;
12012 PyObject * obj1 = 0 ;
12013 PyObject * obj2 = 0 ;
12014 PyObject * obj3 = 0 ;
12015 char *kwnames[] = {
12016 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12017 };
12018
12019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12022 {
12023 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12024 if (arg3 == NULL) SWIG_fail;
12025 }
12026 if (obj2) {
12027 arg4 = (int) SWIG_AsInt(obj2);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 if (obj3) {
12031 arg5 = (int) SWIG_AsInt(obj3);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 }
12034 {
12035 PyThreadState* __tstate = wxPyBeginAllowThreads();
12036 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12037
12038 wxPyEndAllowThreads(__tstate);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 Py_INCREF(Py_None); resultobj = Py_None;
12042 {
12043 if (arg3) delete [] arg3;
12044 }
12045 return resultobj;
12046 fail:
12047 {
12048 if (arg3) delete [] arg3;
12049 }
12050 return NULL;
12051 }
12052
12053
12054 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12055 PyObject *resultobj;
12056 wxDC *arg1 = (wxDC *) 0 ;
12057 int arg2 ;
12058 wxPoint *arg3 = (wxPoint *) 0 ;
12059 int arg4 = (int) 0 ;
12060 int arg5 = (int) 0 ;
12061 int arg6 = (int) wxODDEVEN_RULE ;
12062 PyObject * obj0 = 0 ;
12063 PyObject * obj1 = 0 ;
12064 PyObject * obj2 = 0 ;
12065 PyObject * obj3 = 0 ;
12066 PyObject * obj4 = 0 ;
12067 char *kwnames[] = {
12068 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12069 };
12070
12071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12074 {
12075 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12076 if (arg3 == NULL) SWIG_fail;
12077 }
12078 if (obj2) {
12079 arg4 = (int) SWIG_AsInt(obj2);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 if (obj3) {
12083 arg5 = (int) SWIG_AsInt(obj3);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 if (obj4) {
12087 arg6 = (int) SWIG_AsInt(obj4);
12088 if (PyErr_Occurred()) SWIG_fail;
12089 }
12090 {
12091 PyThreadState* __tstate = wxPyBeginAllowThreads();
12092 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12093
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 Py_INCREF(Py_None); resultobj = Py_None;
12098 {
12099 if (arg3) delete [] arg3;
12100 }
12101 return resultobj;
12102 fail:
12103 {
12104 if (arg3) delete [] arg3;
12105 }
12106 return NULL;
12107 }
12108
12109
12110 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12111 PyObject *resultobj;
12112 wxDC *arg1 = (wxDC *) 0 ;
12113 wxString *arg2 = 0 ;
12114 wxRect *arg3 = 0 ;
12115 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12116 int arg5 = (int) -1 ;
12117 bool temp2 = False ;
12118 wxRect temp3 ;
12119 PyObject * obj0 = 0 ;
12120 PyObject * obj1 = 0 ;
12121 PyObject * obj2 = 0 ;
12122 PyObject * obj3 = 0 ;
12123 PyObject * obj4 = 0 ;
12124 char *kwnames[] = {
12125 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12126 };
12127
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12131 {
12132 arg2 = wxString_in_helper(obj1);
12133 if (arg2 == NULL) SWIG_fail;
12134 temp2 = True;
12135 }
12136 {
12137 arg3 = &temp3;
12138 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12139 }
12140 if (obj3) {
12141 arg4 = (int) SWIG_AsInt(obj3);
12142 if (PyErr_Occurred()) SWIG_fail;
12143 }
12144 if (obj4) {
12145 arg5 = (int) SWIG_AsInt(obj4);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 }
12148 {
12149 PyThreadState* __tstate = wxPyBeginAllowThreads();
12150 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12151
12152 wxPyEndAllowThreads(__tstate);
12153 if (PyErr_Occurred()) SWIG_fail;
12154 }
12155 Py_INCREF(Py_None); resultobj = Py_None;
12156 {
12157 if (temp2)
12158 delete arg2;
12159 }
12160 return resultobj;
12161 fail:
12162 {
12163 if (temp2)
12164 delete arg2;
12165 }
12166 return NULL;
12167 }
12168
12169
12170 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12171 PyObject *resultobj;
12172 wxDC *arg1 = (wxDC *) 0 ;
12173 wxString *arg2 = 0 ;
12174 wxBitmap *arg3 = 0 ;
12175 wxRect *arg4 = 0 ;
12176 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12177 int arg6 = (int) -1 ;
12178 wxRect result;
12179 bool temp2 = False ;
12180 wxRect temp4 ;
12181 PyObject * obj0 = 0 ;
12182 PyObject * obj1 = 0 ;
12183 PyObject * obj2 = 0 ;
12184 PyObject * obj3 = 0 ;
12185 PyObject * obj4 = 0 ;
12186 PyObject * obj5 = 0 ;
12187 char *kwnames[] = {
12188 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12189 };
12190
12191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12194 {
12195 arg2 = wxString_in_helper(obj1);
12196 if (arg2 == NULL) SWIG_fail;
12197 temp2 = True;
12198 }
12199 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12200 SWIG_POINTER_EXCEPTION | 0)) == -1)
12201 SWIG_fail;
12202 if (arg3 == NULL) {
12203 PyErr_SetString(PyExc_TypeError,"null reference");
12204 SWIG_fail;
12205 }
12206 {
12207 arg4 = &temp4;
12208 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12209 }
12210 if (obj4) {
12211 arg5 = (int) SWIG_AsInt(obj4);
12212 if (PyErr_Occurred()) SWIG_fail;
12213 }
12214 if (obj5) {
12215 arg6 = (int) SWIG_AsInt(obj5);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 {
12219 PyThreadState* __tstate = wxPyBeginAllowThreads();
12220 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12221
12222 wxPyEndAllowThreads(__tstate);
12223 if (PyErr_Occurred()) SWIG_fail;
12224 }
12225 {
12226 wxRect * resultptr;
12227 resultptr = new wxRect((wxRect &) result);
12228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12229 }
12230 {
12231 if (temp2)
12232 delete arg2;
12233 }
12234 return resultobj;
12235 fail:
12236 {
12237 if (temp2)
12238 delete arg2;
12239 }
12240 return NULL;
12241 }
12242
12243
12244 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12245 PyObject *resultobj;
12246 wxDC *arg1 = (wxDC *) 0 ;
12247 int arg2 ;
12248 wxPoint *arg3 = (wxPoint *) 0 ;
12249 PyObject * obj0 = 0 ;
12250 PyObject * obj1 = 0 ;
12251 char *kwnames[] = {
12252 (char *) "self",(char *) "points", NULL
12253 };
12254
12255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12258 {
12259 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12260 if (arg3 == NULL) SWIG_fail;
12261 }
12262 {
12263 PyThreadState* __tstate = wxPyBeginAllowThreads();
12264 (arg1)->DrawSpline(arg2,arg3);
12265
12266 wxPyEndAllowThreads(__tstate);
12267 if (PyErr_Occurred()) SWIG_fail;
12268 }
12269 Py_INCREF(Py_None); resultobj = Py_None;
12270 {
12271 if (arg3) delete [] arg3;
12272 }
12273 return resultobj;
12274 fail:
12275 {
12276 if (arg3) delete [] arg3;
12277 }
12278 return NULL;
12279 }
12280
12281
12282 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12283 PyObject *resultobj;
12284 wxDC *arg1 = (wxDC *) 0 ;
12285 PyObject * obj0 = 0 ;
12286 char *kwnames[] = {
12287 (char *) "self", NULL
12288 };
12289
12290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12293 {
12294 PyThreadState* __tstate = wxPyBeginAllowThreads();
12295 (arg1)->Clear();
12296
12297 wxPyEndAllowThreads(__tstate);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 Py_INCREF(Py_None); resultobj = Py_None;
12301 return resultobj;
12302 fail:
12303 return NULL;
12304 }
12305
12306
12307 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12308 PyObject *resultobj;
12309 wxDC *arg1 = (wxDC *) 0 ;
12310 wxString *arg2 = 0 ;
12311 bool result;
12312 bool temp2 = False ;
12313 PyObject * obj0 = 0 ;
12314 PyObject * obj1 = 0 ;
12315 char *kwnames[] = {
12316 (char *) "self",(char *) "message", NULL
12317 };
12318
12319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12322 {
12323 arg2 = wxString_in_helper(obj1);
12324 if (arg2 == NULL) SWIG_fail;
12325 temp2 = True;
12326 }
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12330
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 {
12335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12336 }
12337 {
12338 if (temp2)
12339 delete arg2;
12340 }
12341 return resultobj;
12342 fail:
12343 {
12344 if (temp2)
12345 delete arg2;
12346 }
12347 return NULL;
12348 }
12349
12350
12351 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12352 PyObject *resultobj;
12353 wxDC *arg1 = (wxDC *) 0 ;
12354 PyObject * obj0 = 0 ;
12355 char *kwnames[] = {
12356 (char *) "self", NULL
12357 };
12358
12359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12362 {
12363 PyThreadState* __tstate = wxPyBeginAllowThreads();
12364 (arg1)->EndDoc();
12365
12366 wxPyEndAllowThreads(__tstate);
12367 if (PyErr_Occurred()) SWIG_fail;
12368 }
12369 Py_INCREF(Py_None); resultobj = Py_None;
12370 return resultobj;
12371 fail:
12372 return NULL;
12373 }
12374
12375
12376 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12377 PyObject *resultobj;
12378 wxDC *arg1 = (wxDC *) 0 ;
12379 PyObject * obj0 = 0 ;
12380 char *kwnames[] = {
12381 (char *) "self", NULL
12382 };
12383
12384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12387 {
12388 PyThreadState* __tstate = wxPyBeginAllowThreads();
12389 (arg1)->StartPage();
12390
12391 wxPyEndAllowThreads(__tstate);
12392 if (PyErr_Occurred()) SWIG_fail;
12393 }
12394 Py_INCREF(Py_None); resultobj = Py_None;
12395 return resultobj;
12396 fail:
12397 return NULL;
12398 }
12399
12400
12401 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12402 PyObject *resultobj;
12403 wxDC *arg1 = (wxDC *) 0 ;
12404 PyObject * obj0 = 0 ;
12405 char *kwnames[] = {
12406 (char *) "self", NULL
12407 };
12408
12409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12412 {
12413 PyThreadState* __tstate = wxPyBeginAllowThreads();
12414 (arg1)->EndPage();
12415
12416 wxPyEndAllowThreads(__tstate);
12417 if (PyErr_Occurred()) SWIG_fail;
12418 }
12419 Py_INCREF(Py_None); resultobj = Py_None;
12420 return resultobj;
12421 fail:
12422 return NULL;
12423 }
12424
12425
12426 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12427 PyObject *resultobj;
12428 wxDC *arg1 = (wxDC *) 0 ;
12429 wxFont *arg2 = 0 ;
12430 PyObject * obj0 = 0 ;
12431 PyObject * obj1 = 0 ;
12432 char *kwnames[] = {
12433 (char *) "self",(char *) "font", NULL
12434 };
12435
12436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12439 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12440 SWIG_POINTER_EXCEPTION | 0)) == -1)
12441 SWIG_fail;
12442 if (arg2 == NULL) {
12443 PyErr_SetString(PyExc_TypeError,"null reference");
12444 SWIG_fail;
12445 }
12446 {
12447 PyThreadState* __tstate = wxPyBeginAllowThreads();
12448 (arg1)->SetFont((wxFont const &)*arg2);
12449
12450 wxPyEndAllowThreads(__tstate);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 }
12453 Py_INCREF(Py_None); resultobj = Py_None;
12454 return resultobj;
12455 fail:
12456 return NULL;
12457 }
12458
12459
12460 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 wxPen *arg2 = 0 ;
12464 PyObject * obj0 = 0 ;
12465 PyObject * obj1 = 0 ;
12466 char *kwnames[] = {
12467 (char *) "self",(char *) "pen", NULL
12468 };
12469
12470 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12471 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12472 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12473 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12474 SWIG_POINTER_EXCEPTION | 0)) == -1)
12475 SWIG_fail;
12476 if (arg2 == NULL) {
12477 PyErr_SetString(PyExc_TypeError,"null reference");
12478 SWIG_fail;
12479 }
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 (arg1)->SetPen((wxPen const &)*arg2);
12483
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 Py_INCREF(Py_None); resultobj = Py_None;
12488 return resultobj;
12489 fail:
12490 return NULL;
12491 }
12492
12493
12494 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12495 PyObject *resultobj;
12496 wxDC *arg1 = (wxDC *) 0 ;
12497 wxBrush *arg2 = 0 ;
12498 PyObject * obj0 = 0 ;
12499 PyObject * obj1 = 0 ;
12500 char *kwnames[] = {
12501 (char *) "self",(char *) "brush", NULL
12502 };
12503
12504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12507 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12508 SWIG_POINTER_EXCEPTION | 0)) == -1)
12509 SWIG_fail;
12510 if (arg2 == NULL) {
12511 PyErr_SetString(PyExc_TypeError,"null reference");
12512 SWIG_fail;
12513 }
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 (arg1)->SetBrush((wxBrush const &)*arg2);
12517
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 Py_INCREF(Py_None); resultobj = Py_None;
12522 return resultobj;
12523 fail:
12524 return NULL;
12525 }
12526
12527
12528 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxDC *arg1 = (wxDC *) 0 ;
12531 wxBrush *arg2 = 0 ;
12532 PyObject * obj0 = 0 ;
12533 PyObject * obj1 = 0 ;
12534 char *kwnames[] = {
12535 (char *) "self",(char *) "brush", NULL
12536 };
12537
12538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12541 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12542 SWIG_POINTER_EXCEPTION | 0)) == -1)
12543 SWIG_fail;
12544 if (arg2 == NULL) {
12545 PyErr_SetString(PyExc_TypeError,"null reference");
12546 SWIG_fail;
12547 }
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 (arg1)->SetBackground((wxBrush const &)*arg2);
12551
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 Py_INCREF(Py_None); resultobj = Py_None;
12556 return resultobj;
12557 fail:
12558 return NULL;
12559 }
12560
12561
12562 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12563 PyObject *resultobj;
12564 wxDC *arg1 = (wxDC *) 0 ;
12565 int arg2 ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 char *kwnames[] = {
12569 (char *) "self",(char *) "mode", NULL
12570 };
12571
12572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12575 arg2 = (int) SWIG_AsInt(obj1);
12576 if (PyErr_Occurred()) SWIG_fail;
12577 {
12578 PyThreadState* __tstate = wxPyBeginAllowThreads();
12579 (arg1)->SetBackgroundMode(arg2);
12580
12581 wxPyEndAllowThreads(__tstate);
12582 if (PyErr_Occurred()) SWIG_fail;
12583 }
12584 Py_INCREF(Py_None); resultobj = Py_None;
12585 return resultobj;
12586 fail:
12587 return NULL;
12588 }
12589
12590
12591 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12592 PyObject *resultobj;
12593 wxDC *arg1 = (wxDC *) 0 ;
12594 wxPalette *arg2 = 0 ;
12595 PyObject * obj0 = 0 ;
12596 PyObject * obj1 = 0 ;
12597 char *kwnames[] = {
12598 (char *) "self",(char *) "palette", NULL
12599 };
12600
12601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12604 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12605 SWIG_POINTER_EXCEPTION | 0)) == -1)
12606 SWIG_fail;
12607 if (arg2 == NULL) {
12608 PyErr_SetString(PyExc_TypeError,"null reference");
12609 SWIG_fail;
12610 }
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 (arg1)->SetPalette((wxPalette const &)*arg2);
12614
12615 wxPyEndAllowThreads(__tstate);
12616 if (PyErr_Occurred()) SWIG_fail;
12617 }
12618 Py_INCREF(Py_None); resultobj = Py_None;
12619 return resultobj;
12620 fail:
12621 return NULL;
12622 }
12623
12624
12625 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12626 PyObject *resultobj;
12627 wxDC *arg1 = (wxDC *) 0 ;
12628 PyObject * obj0 = 0 ;
12629 char *kwnames[] = {
12630 (char *) "self", NULL
12631 };
12632
12633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12636 {
12637 PyThreadState* __tstate = wxPyBeginAllowThreads();
12638 (arg1)->DestroyClippingRegion();
12639
12640 wxPyEndAllowThreads(__tstate);
12641 if (PyErr_Occurred()) SWIG_fail;
12642 }
12643 Py_INCREF(Py_None); resultobj = Py_None;
12644 return resultobj;
12645 fail:
12646 return NULL;
12647 }
12648
12649
12650 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12651 PyObject *resultobj;
12652 wxDC *arg1 = (wxDC *) 0 ;
12653 int *arg2 = (int *) 0 ;
12654 int *arg3 = (int *) 0 ;
12655 int *arg4 = (int *) 0 ;
12656 int *arg5 = (int *) 0 ;
12657 int temp2 ;
12658 int temp3 ;
12659 int temp4 ;
12660 int temp5 ;
12661 PyObject * obj0 = 0 ;
12662 char *kwnames[] = {
12663 (char *) "self", NULL
12664 };
12665
12666 arg2 = &temp2;
12667 arg3 = &temp3;
12668 arg4 = &temp4;
12669 arg5 = &temp5;
12670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12673 {
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12676
12677 wxPyEndAllowThreads(__tstate);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 }
12680 Py_INCREF(Py_None); resultobj = Py_None;
12681 {
12682 PyObject *o = PyInt_FromLong((long) (*arg2));
12683 resultobj = t_output_helper(resultobj,o);
12684 }
12685 {
12686 PyObject *o = PyInt_FromLong((long) (*arg3));
12687 resultobj = t_output_helper(resultobj,o);
12688 }
12689 {
12690 PyObject *o = PyInt_FromLong((long) (*arg4));
12691 resultobj = t_output_helper(resultobj,o);
12692 }
12693 {
12694 PyObject *o = PyInt_FromLong((long) (*arg5));
12695 resultobj = t_output_helper(resultobj,o);
12696 }
12697 return resultobj;
12698 fail:
12699 return NULL;
12700 }
12701
12702
12703 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12704 PyObject *resultobj;
12705 wxDC *arg1 = (wxDC *) 0 ;
12706 wxRect result;
12707 PyObject * obj0 = 0 ;
12708 char *kwnames[] = {
12709 (char *) "self", NULL
12710 };
12711
12712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12715 {
12716 PyThreadState* __tstate = wxPyBeginAllowThreads();
12717 result = wxDC_GetClippingRect(arg1);
12718
12719 wxPyEndAllowThreads(__tstate);
12720 if (PyErr_Occurred()) SWIG_fail;
12721 }
12722 {
12723 wxRect * resultptr;
12724 resultptr = new wxRect((wxRect &) result);
12725 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12726 }
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj;
12735 wxDC *arg1 = (wxDC *) 0 ;
12736 int result;
12737 PyObject * obj0 = 0 ;
12738 char *kwnames[] = {
12739 (char *) "self", NULL
12740 };
12741
12742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 result = (int)((wxDC const *)arg1)->GetCharHeight();
12748
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 resultobj = SWIG_FromInt((int)result);
12753 return resultobj;
12754 fail:
12755 return NULL;
12756 }
12757
12758
12759 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxDC *arg1 = (wxDC *) 0 ;
12762 int result;
12763 PyObject * obj0 = 0 ;
12764 char *kwnames[] = {
12765 (char *) "self", NULL
12766 };
12767
12768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 result = (int)((wxDC const *)arg1)->GetCharWidth();
12774
12775 wxPyEndAllowThreads(__tstate);
12776 if (PyErr_Occurred()) SWIG_fail;
12777 }
12778 resultobj = SWIG_FromInt((int)result);
12779 return resultobj;
12780 fail:
12781 return NULL;
12782 }
12783
12784
12785 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12786 PyObject *resultobj;
12787 wxDC *arg1 = (wxDC *) 0 ;
12788 wxString *arg2 = 0 ;
12789 int *arg3 = (int *) 0 ;
12790 int *arg4 = (int *) 0 ;
12791 bool temp2 = False ;
12792 int temp3 ;
12793 int temp4 ;
12794 PyObject * obj0 = 0 ;
12795 PyObject * obj1 = 0 ;
12796 char *kwnames[] = {
12797 (char *) "self",(char *) "string", NULL
12798 };
12799
12800 arg3 = &temp3;
12801 arg4 = &temp4;
12802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12805 {
12806 arg2 = wxString_in_helper(obj1);
12807 if (arg2 == NULL) SWIG_fail;
12808 temp2 = True;
12809 }
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12813
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 Py_INCREF(Py_None); resultobj = Py_None;
12818 {
12819 PyObject *o = PyInt_FromLong((long) (*arg3));
12820 resultobj = t_output_helper(resultobj,o);
12821 }
12822 {
12823 PyObject *o = PyInt_FromLong((long) (*arg4));
12824 resultobj = t_output_helper(resultobj,o);
12825 }
12826 {
12827 if (temp2)
12828 delete arg2;
12829 }
12830 return resultobj;
12831 fail:
12832 {
12833 if (temp2)
12834 delete arg2;
12835 }
12836 return NULL;
12837 }
12838
12839
12840 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12841 PyObject *resultobj;
12842 wxDC *arg1 = (wxDC *) 0 ;
12843 wxString *arg2 = 0 ;
12844 int *arg3 = (int *) 0 ;
12845 int *arg4 = (int *) 0 ;
12846 int *arg5 = (int *) 0 ;
12847 int *arg6 = (int *) 0 ;
12848 wxFont *arg7 = (wxFont *) NULL ;
12849 bool temp2 = False ;
12850 int temp3 ;
12851 int temp4 ;
12852 int temp5 ;
12853 int temp6 ;
12854 PyObject * obj0 = 0 ;
12855 PyObject * obj1 = 0 ;
12856 PyObject * obj2 = 0 ;
12857 char *kwnames[] = {
12858 (char *) "self",(char *) "string",(char *) "font", NULL
12859 };
12860
12861 arg3 = &temp3;
12862 arg4 = &temp4;
12863 arg5 = &temp5;
12864 arg6 = &temp6;
12865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12868 {
12869 arg2 = wxString_in_helper(obj1);
12870 if (arg2 == NULL) SWIG_fail;
12871 temp2 = True;
12872 }
12873 if (obj2) {
12874 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12876 }
12877 {
12878 PyThreadState* __tstate = wxPyBeginAllowThreads();
12879 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12880
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 Py_INCREF(Py_None); resultobj = Py_None;
12885 {
12886 PyObject *o = PyInt_FromLong((long) (*arg3));
12887 resultobj = t_output_helper(resultobj,o);
12888 }
12889 {
12890 PyObject *o = PyInt_FromLong((long) (*arg4));
12891 resultobj = t_output_helper(resultobj,o);
12892 }
12893 {
12894 PyObject *o = PyInt_FromLong((long) (*arg5));
12895 resultobj = t_output_helper(resultobj,o);
12896 }
12897 {
12898 PyObject *o = PyInt_FromLong((long) (*arg6));
12899 resultobj = t_output_helper(resultobj,o);
12900 }
12901 {
12902 if (temp2)
12903 delete arg2;
12904 }
12905 return resultobj;
12906 fail:
12907 {
12908 if (temp2)
12909 delete arg2;
12910 }
12911 return NULL;
12912 }
12913
12914
12915 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12916 PyObject *resultobj;
12917 wxDC *arg1 = (wxDC *) 0 ;
12918 wxString *arg2 = 0 ;
12919 int *arg3 = (int *) 0 ;
12920 int *arg4 = (int *) 0 ;
12921 int *arg5 = (int *) 0 ;
12922 wxFont *arg6 = (wxFont *) NULL ;
12923 bool temp2 = False ;
12924 int temp3 ;
12925 int temp4 ;
12926 int temp5 ;
12927 PyObject * obj0 = 0 ;
12928 PyObject * obj1 = 0 ;
12929 PyObject * obj2 = 0 ;
12930 char *kwnames[] = {
12931 (char *) "self",(char *) "text",(char *) "font", NULL
12932 };
12933
12934 arg3 = &temp3;
12935 arg4 = &temp4;
12936 arg5 = &temp5;
12937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12940 {
12941 arg2 = wxString_in_helper(obj1);
12942 if (arg2 == NULL) SWIG_fail;
12943 temp2 = True;
12944 }
12945 if (obj2) {
12946 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12948 }
12949 {
12950 PyThreadState* __tstate = wxPyBeginAllowThreads();
12951 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12952
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 Py_INCREF(Py_None); resultobj = Py_None;
12957 {
12958 PyObject *o = PyInt_FromLong((long) (*arg3));
12959 resultobj = t_output_helper(resultobj,o);
12960 }
12961 {
12962 PyObject *o = PyInt_FromLong((long) (*arg4));
12963 resultobj = t_output_helper(resultobj,o);
12964 }
12965 {
12966 PyObject *o = PyInt_FromLong((long) (*arg5));
12967 resultobj = t_output_helper(resultobj,o);
12968 }
12969 {
12970 if (temp2)
12971 delete arg2;
12972 }
12973 return resultobj;
12974 fail:
12975 {
12976 if (temp2)
12977 delete arg2;
12978 }
12979 return NULL;
12980 }
12981
12982
12983 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
12984 PyObject *resultobj;
12985 wxDC *arg1 = (wxDC *) 0 ;
12986 wxString *arg2 = 0 ;
12987 wxArrayInt result;
12988 bool temp2 = False ;
12989 PyObject * obj0 = 0 ;
12990 PyObject * obj1 = 0 ;
12991 char *kwnames[] = {
12992 (char *) "self",(char *) "text", NULL
12993 };
12994
12995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
12996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12998 {
12999 arg2 = wxString_in_helper(obj1);
13000 if (arg2 == NULL) SWIG_fail;
13001 temp2 = True;
13002 }
13003 {
13004 PyThreadState* __tstate = wxPyBeginAllowThreads();
13005 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13006
13007 wxPyEndAllowThreads(__tstate);
13008 if (PyErr_Occurred()) SWIG_fail;
13009 }
13010 {
13011 resultobj = PyList_New(0);
13012 size_t idx;
13013 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13014 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13015 PyList_Append(resultobj, val);
13016 Py_DECREF(val);
13017 }
13018 }
13019 {
13020 if (temp2)
13021 delete arg2;
13022 }
13023 return resultobj;
13024 fail:
13025 {
13026 if (temp2)
13027 delete arg2;
13028 }
13029 return NULL;
13030 }
13031
13032
13033 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj;
13035 wxDC *arg1 = (wxDC *) 0 ;
13036 wxSize result;
13037 PyObject * obj0 = 0 ;
13038 char *kwnames[] = {
13039 (char *) "self", NULL
13040 };
13041
13042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = (arg1)->GetSize();
13048
13049 wxPyEndAllowThreads(__tstate);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 {
13053 wxSize * resultptr;
13054 resultptr = new wxSize((wxSize &) result);
13055 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13056 }
13057 return resultobj;
13058 fail:
13059 return NULL;
13060 }
13061
13062
13063 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13064 PyObject *resultobj;
13065 wxDC *arg1 = (wxDC *) 0 ;
13066 int *arg2 = (int *) 0 ;
13067 int *arg3 = (int *) 0 ;
13068 int temp2 ;
13069 int temp3 ;
13070 PyObject * obj0 = 0 ;
13071 char *kwnames[] = {
13072 (char *) "self", NULL
13073 };
13074
13075 arg2 = &temp2;
13076 arg3 = &temp3;
13077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13080 {
13081 PyThreadState* __tstate = wxPyBeginAllowThreads();
13082 (arg1)->GetSize(arg2,arg3);
13083
13084 wxPyEndAllowThreads(__tstate);
13085 if (PyErr_Occurred()) SWIG_fail;
13086 }
13087 Py_INCREF(Py_None); resultobj = Py_None;
13088 {
13089 PyObject *o = PyInt_FromLong((long) (*arg2));
13090 resultobj = t_output_helper(resultobj,o);
13091 }
13092 {
13093 PyObject *o = PyInt_FromLong((long) (*arg3));
13094 resultobj = t_output_helper(resultobj,o);
13095 }
13096 return resultobj;
13097 fail:
13098 return NULL;
13099 }
13100
13101
13102 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13103 PyObject *resultobj;
13104 wxDC *arg1 = (wxDC *) 0 ;
13105 wxSize result;
13106 PyObject * obj0 = 0 ;
13107 char *kwnames[] = {
13108 (char *) "self", NULL
13109 };
13110
13111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13114 {
13115 PyThreadState* __tstate = wxPyBeginAllowThreads();
13116 result = ((wxDC const *)arg1)->GetSizeMM();
13117
13118 wxPyEndAllowThreads(__tstate);
13119 if (PyErr_Occurred()) SWIG_fail;
13120 }
13121 {
13122 wxSize * resultptr;
13123 resultptr = new wxSize((wxSize &) result);
13124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13125 }
13126 return resultobj;
13127 fail:
13128 return NULL;
13129 }
13130
13131
13132 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13133 PyObject *resultobj;
13134 wxDC *arg1 = (wxDC *) 0 ;
13135 int *arg2 = (int *) 0 ;
13136 int *arg3 = (int *) 0 ;
13137 int temp2 ;
13138 int temp3 ;
13139 PyObject * obj0 = 0 ;
13140 char *kwnames[] = {
13141 (char *) "self", NULL
13142 };
13143
13144 arg2 = &temp2;
13145 arg3 = &temp3;
13146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13149 {
13150 PyThreadState* __tstate = wxPyBeginAllowThreads();
13151 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13152
13153 wxPyEndAllowThreads(__tstate);
13154 if (PyErr_Occurred()) SWIG_fail;
13155 }
13156 Py_INCREF(Py_None); resultobj = Py_None;
13157 {
13158 PyObject *o = PyInt_FromLong((long) (*arg2));
13159 resultobj = t_output_helper(resultobj,o);
13160 }
13161 {
13162 PyObject *o = PyInt_FromLong((long) (*arg3));
13163 resultobj = t_output_helper(resultobj,o);
13164 }
13165 return resultobj;
13166 fail:
13167 return NULL;
13168 }
13169
13170
13171 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13172 PyObject *resultobj;
13173 wxDC *arg1 = (wxDC *) 0 ;
13174 int arg2 ;
13175 int result;
13176 PyObject * obj0 = 0 ;
13177 PyObject * obj1 = 0 ;
13178 char *kwnames[] = {
13179 (char *) "self",(char *) "x", NULL
13180 };
13181
13182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13185 arg2 = (int) SWIG_AsInt(obj1);
13186 if (PyErr_Occurred()) SWIG_fail;
13187 {
13188 PyThreadState* __tstate = wxPyBeginAllowThreads();
13189 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13190
13191 wxPyEndAllowThreads(__tstate);
13192 if (PyErr_Occurred()) SWIG_fail;
13193 }
13194 resultobj = SWIG_FromInt((int)result);
13195 return resultobj;
13196 fail:
13197 return NULL;
13198 }
13199
13200
13201 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13202 PyObject *resultobj;
13203 wxDC *arg1 = (wxDC *) 0 ;
13204 int arg2 ;
13205 int result;
13206 PyObject * obj0 = 0 ;
13207 PyObject * obj1 = 0 ;
13208 char *kwnames[] = {
13209 (char *) "self",(char *) "y", NULL
13210 };
13211
13212 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13213 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13214 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13215 arg2 = (int) SWIG_AsInt(obj1);
13216 if (PyErr_Occurred()) SWIG_fail;
13217 {
13218 PyThreadState* __tstate = wxPyBeginAllowThreads();
13219 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13220
13221 wxPyEndAllowThreads(__tstate);
13222 if (PyErr_Occurred()) SWIG_fail;
13223 }
13224 resultobj = SWIG_FromInt((int)result);
13225 return resultobj;
13226 fail:
13227 return NULL;
13228 }
13229
13230
13231 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13232 PyObject *resultobj;
13233 wxDC *arg1 = (wxDC *) 0 ;
13234 int arg2 ;
13235 int result;
13236 PyObject * obj0 = 0 ;
13237 PyObject * obj1 = 0 ;
13238 char *kwnames[] = {
13239 (char *) "self",(char *) "x", NULL
13240 };
13241
13242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13245 arg2 = (int) SWIG_AsInt(obj1);
13246 if (PyErr_Occurred()) SWIG_fail;
13247 {
13248 PyThreadState* __tstate = wxPyBeginAllowThreads();
13249 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13250
13251 wxPyEndAllowThreads(__tstate);
13252 if (PyErr_Occurred()) SWIG_fail;
13253 }
13254 resultobj = SWIG_FromInt((int)result);
13255 return resultobj;
13256 fail:
13257 return NULL;
13258 }
13259
13260
13261 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13262 PyObject *resultobj;
13263 wxDC *arg1 = (wxDC *) 0 ;
13264 int arg2 ;
13265 int result;
13266 PyObject * obj0 = 0 ;
13267 PyObject * obj1 = 0 ;
13268 char *kwnames[] = {
13269 (char *) "self",(char *) "y", NULL
13270 };
13271
13272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13275 arg2 = (int) SWIG_AsInt(obj1);
13276 if (PyErr_Occurred()) SWIG_fail;
13277 {
13278 PyThreadState* __tstate = wxPyBeginAllowThreads();
13279 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13280
13281 wxPyEndAllowThreads(__tstate);
13282 if (PyErr_Occurred()) SWIG_fail;
13283 }
13284 resultobj = SWIG_FromInt((int)result);
13285 return resultobj;
13286 fail:
13287 return NULL;
13288 }
13289
13290
13291 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13292 PyObject *resultobj;
13293 wxDC *arg1 = (wxDC *) 0 ;
13294 int arg2 ;
13295 int result;
13296 PyObject * obj0 = 0 ;
13297 PyObject * obj1 = 0 ;
13298 char *kwnames[] = {
13299 (char *) "self",(char *) "x", NULL
13300 };
13301
13302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13303 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13304 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13305 arg2 = (int) SWIG_AsInt(obj1);
13306 if (PyErr_Occurred()) SWIG_fail;
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13310
13311 wxPyEndAllowThreads(__tstate);
13312 if (PyErr_Occurred()) SWIG_fail;
13313 }
13314 resultobj = SWIG_FromInt((int)result);
13315 return resultobj;
13316 fail:
13317 return NULL;
13318 }
13319
13320
13321 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13322 PyObject *resultobj;
13323 wxDC *arg1 = (wxDC *) 0 ;
13324 int arg2 ;
13325 int result;
13326 PyObject * obj0 = 0 ;
13327 PyObject * obj1 = 0 ;
13328 char *kwnames[] = {
13329 (char *) "self",(char *) "y", NULL
13330 };
13331
13332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13335 arg2 = (int) SWIG_AsInt(obj1);
13336 if (PyErr_Occurred()) SWIG_fail;
13337 {
13338 PyThreadState* __tstate = wxPyBeginAllowThreads();
13339 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13340
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 resultobj = SWIG_FromInt((int)result);
13345 return resultobj;
13346 fail:
13347 return NULL;
13348 }
13349
13350
13351 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13352 PyObject *resultobj;
13353 wxDC *arg1 = (wxDC *) 0 ;
13354 int arg2 ;
13355 int result;
13356 PyObject * obj0 = 0 ;
13357 PyObject * obj1 = 0 ;
13358 char *kwnames[] = {
13359 (char *) "self",(char *) "x", NULL
13360 };
13361
13362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13365 arg2 = (int) SWIG_AsInt(obj1);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 {
13368 PyThreadState* __tstate = wxPyBeginAllowThreads();
13369 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13370
13371 wxPyEndAllowThreads(__tstate);
13372 if (PyErr_Occurred()) SWIG_fail;
13373 }
13374 resultobj = SWIG_FromInt((int)result);
13375 return resultobj;
13376 fail:
13377 return NULL;
13378 }
13379
13380
13381 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13382 PyObject *resultobj;
13383 wxDC *arg1 = (wxDC *) 0 ;
13384 int arg2 ;
13385 int result;
13386 PyObject * obj0 = 0 ;
13387 PyObject * obj1 = 0 ;
13388 char *kwnames[] = {
13389 (char *) "self",(char *) "y", NULL
13390 };
13391
13392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13395 arg2 = (int) SWIG_AsInt(obj1);
13396 if (PyErr_Occurred()) SWIG_fail;
13397 {
13398 PyThreadState* __tstate = wxPyBeginAllowThreads();
13399 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13400
13401 wxPyEndAllowThreads(__tstate);
13402 if (PyErr_Occurred()) SWIG_fail;
13403 }
13404 resultobj = SWIG_FromInt((int)result);
13405 return resultobj;
13406 fail:
13407 return NULL;
13408 }
13409
13410
13411 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13412 PyObject *resultobj;
13413 wxDC *arg1 = (wxDC *) 0 ;
13414 bool result;
13415 PyObject * obj0 = 0 ;
13416 char *kwnames[] = {
13417 (char *) "self", NULL
13418 };
13419
13420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13423 {
13424 PyThreadState* __tstate = wxPyBeginAllowThreads();
13425 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13426
13427 wxPyEndAllowThreads(__tstate);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 }
13430 {
13431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13432 }
13433 return resultobj;
13434 fail:
13435 return NULL;
13436 }
13437
13438
13439 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13440 PyObject *resultobj;
13441 wxDC *arg1 = (wxDC *) 0 ;
13442 bool result;
13443 PyObject * obj0 = 0 ;
13444 char *kwnames[] = {
13445 (char *) "self", NULL
13446 };
13447
13448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13451 {
13452 PyThreadState* __tstate = wxPyBeginAllowThreads();
13453 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13454
13455 wxPyEndAllowThreads(__tstate);
13456 if (PyErr_Occurred()) SWIG_fail;
13457 }
13458 {
13459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13460 }
13461 return resultobj;
13462 fail:
13463 return NULL;
13464 }
13465
13466
13467 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13468 PyObject *resultobj;
13469 wxDC *arg1 = (wxDC *) 0 ;
13470 int result;
13471 PyObject * obj0 = 0 ;
13472 char *kwnames[] = {
13473 (char *) "self", NULL
13474 };
13475
13476 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13477 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13478 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13479 {
13480 PyThreadState* __tstate = wxPyBeginAllowThreads();
13481 result = (int)((wxDC const *)arg1)->GetDepth();
13482
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_FromInt((int)result);
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13494 PyObject *resultobj;
13495 wxDC *arg1 = (wxDC *) 0 ;
13496 wxSize result;
13497 PyObject * obj0 = 0 ;
13498 char *kwnames[] = {
13499 (char *) "self", NULL
13500 };
13501
13502 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13503 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13504 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13505 {
13506 PyThreadState* __tstate = wxPyBeginAllowThreads();
13507 result = ((wxDC const *)arg1)->GetPPI();
13508
13509 wxPyEndAllowThreads(__tstate);
13510 if (PyErr_Occurred()) SWIG_fail;
13511 }
13512 {
13513 wxSize * resultptr;
13514 resultptr = new wxSize((wxSize &) result);
13515 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13516 }
13517 return resultobj;
13518 fail:
13519 return NULL;
13520 }
13521
13522
13523 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13524 PyObject *resultobj;
13525 wxDC *arg1 = (wxDC *) 0 ;
13526 bool result;
13527 PyObject * obj0 = 0 ;
13528 char *kwnames[] = {
13529 (char *) "self", NULL
13530 };
13531
13532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13535 {
13536 PyThreadState* __tstate = wxPyBeginAllowThreads();
13537 result = (bool)((wxDC const *)arg1)->Ok();
13538
13539 wxPyEndAllowThreads(__tstate);
13540 if (PyErr_Occurred()) SWIG_fail;
13541 }
13542 {
13543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13544 }
13545 return resultobj;
13546 fail:
13547 return NULL;
13548 }
13549
13550
13551 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13552 PyObject *resultobj;
13553 wxDC *arg1 = (wxDC *) 0 ;
13554 int result;
13555 PyObject * obj0 = 0 ;
13556 char *kwnames[] = {
13557 (char *) "self", NULL
13558 };
13559
13560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13563 {
13564 PyThreadState* __tstate = wxPyBeginAllowThreads();
13565 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13566
13567 wxPyEndAllowThreads(__tstate);
13568 if (PyErr_Occurred()) SWIG_fail;
13569 }
13570 resultobj = SWIG_FromInt((int)result);
13571 return resultobj;
13572 fail:
13573 return NULL;
13574 }
13575
13576
13577 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13578 PyObject *resultobj;
13579 wxDC *arg1 = (wxDC *) 0 ;
13580 wxBrush *result;
13581 PyObject * obj0 = 0 ;
13582 char *kwnames[] = {
13583 (char *) "self", NULL
13584 };
13585
13586 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13587 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13589 {
13590 PyThreadState* __tstate = wxPyBeginAllowThreads();
13591 {
13592 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13593 result = (wxBrush *) &_result_ref;
13594 }
13595
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 {
13600 wxBrush* resultptr = new wxBrush(*result);
13601 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13602 }
13603 return resultobj;
13604 fail:
13605 return NULL;
13606 }
13607
13608
13609 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13610 PyObject *resultobj;
13611 wxDC *arg1 = (wxDC *) 0 ;
13612 wxBrush *result;
13613 PyObject * obj0 = 0 ;
13614 char *kwnames[] = {
13615 (char *) "self", NULL
13616 };
13617
13618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 {
13624 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13625 result = (wxBrush *) &_result_ref;
13626 }
13627
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 {
13632 wxBrush* resultptr = new wxBrush(*result);
13633 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13634 }
13635 return resultobj;
13636 fail:
13637 return NULL;
13638 }
13639
13640
13641 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13642 PyObject *resultobj;
13643 wxDC *arg1 = (wxDC *) 0 ;
13644 wxFont *result;
13645 PyObject * obj0 = 0 ;
13646 char *kwnames[] = {
13647 (char *) "self", NULL
13648 };
13649
13650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13653 {
13654 PyThreadState* __tstate = wxPyBeginAllowThreads();
13655 {
13656 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13657 result = (wxFont *) &_result_ref;
13658 }
13659
13660 wxPyEndAllowThreads(__tstate);
13661 if (PyErr_Occurred()) SWIG_fail;
13662 }
13663 {
13664 wxFont* resultptr = new wxFont(*result);
13665 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13666 }
13667 return resultobj;
13668 fail:
13669 return NULL;
13670 }
13671
13672
13673 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13674 PyObject *resultobj;
13675 wxDC *arg1 = (wxDC *) 0 ;
13676 wxPen *result;
13677 PyObject * obj0 = 0 ;
13678 char *kwnames[] = {
13679 (char *) "self", NULL
13680 };
13681
13682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13685 {
13686 PyThreadState* __tstate = wxPyBeginAllowThreads();
13687 {
13688 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13689 result = (wxPen *) &_result_ref;
13690 }
13691
13692 wxPyEndAllowThreads(__tstate);
13693 if (PyErr_Occurred()) SWIG_fail;
13694 }
13695 {
13696 wxPen* resultptr = new wxPen(*result);
13697 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13698 }
13699 return resultobj;
13700 fail:
13701 return NULL;
13702 }
13703
13704
13705 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13706 PyObject *resultobj;
13707 wxDC *arg1 = (wxDC *) 0 ;
13708 wxColour *result;
13709 PyObject * obj0 = 0 ;
13710 char *kwnames[] = {
13711 (char *) "self", NULL
13712 };
13713
13714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13715 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13716 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13717 {
13718 PyThreadState* __tstate = wxPyBeginAllowThreads();
13719 {
13720 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13721 result = (wxColour *) &_result_ref;
13722 }
13723
13724 wxPyEndAllowThreads(__tstate);
13725 if (PyErr_Occurred()) SWIG_fail;
13726 }
13727 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13728 return resultobj;
13729 fail:
13730 return NULL;
13731 }
13732
13733
13734 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13735 PyObject *resultobj;
13736 wxDC *arg1 = (wxDC *) 0 ;
13737 wxColour *result;
13738 PyObject * obj0 = 0 ;
13739 char *kwnames[] = {
13740 (char *) "self", NULL
13741 };
13742
13743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13746 {
13747 PyThreadState* __tstate = wxPyBeginAllowThreads();
13748 {
13749 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13750 result = (wxColour *) &_result_ref;
13751 }
13752
13753 wxPyEndAllowThreads(__tstate);
13754 if (PyErr_Occurred()) SWIG_fail;
13755 }
13756 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13757 return resultobj;
13758 fail:
13759 return NULL;
13760 }
13761
13762
13763 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13764 PyObject *resultobj;
13765 wxDC *arg1 = (wxDC *) 0 ;
13766 wxColour *arg2 = 0 ;
13767 wxColour temp2 ;
13768 PyObject * obj0 = 0 ;
13769 PyObject * obj1 = 0 ;
13770 char *kwnames[] = {
13771 (char *) "self",(char *) "colour", NULL
13772 };
13773
13774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13777 {
13778 arg2 = &temp2;
13779 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13780 }
13781 {
13782 PyThreadState* __tstate = wxPyBeginAllowThreads();
13783 (arg1)->SetTextForeground((wxColour const &)*arg2);
13784
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 Py_INCREF(Py_None); resultobj = Py_None;
13789 return resultobj;
13790 fail:
13791 return NULL;
13792 }
13793
13794
13795 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13796 PyObject *resultobj;
13797 wxDC *arg1 = (wxDC *) 0 ;
13798 wxColour *arg2 = 0 ;
13799 wxColour temp2 ;
13800 PyObject * obj0 = 0 ;
13801 PyObject * obj1 = 0 ;
13802 char *kwnames[] = {
13803 (char *) "self",(char *) "colour", NULL
13804 };
13805
13806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13809 {
13810 arg2 = &temp2;
13811 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13812 }
13813 {
13814 PyThreadState* __tstate = wxPyBeginAllowThreads();
13815 (arg1)->SetTextBackground((wxColour const &)*arg2);
13816
13817 wxPyEndAllowThreads(__tstate);
13818 if (PyErr_Occurred()) SWIG_fail;
13819 }
13820 Py_INCREF(Py_None); resultobj = Py_None;
13821 return resultobj;
13822 fail:
13823 return NULL;
13824 }
13825
13826
13827 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13828 PyObject *resultobj;
13829 wxDC *arg1 = (wxDC *) 0 ;
13830 int result;
13831 PyObject * obj0 = 0 ;
13832 char *kwnames[] = {
13833 (char *) "self", NULL
13834 };
13835
13836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13839 {
13840 PyThreadState* __tstate = wxPyBeginAllowThreads();
13841 result = (int)((wxDC const *)arg1)->GetMapMode();
13842
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_FromInt((int)result);
13847 return resultobj;
13848 fail:
13849 return NULL;
13850 }
13851
13852
13853 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13854 PyObject *resultobj;
13855 wxDC *arg1 = (wxDC *) 0 ;
13856 int arg2 ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 char *kwnames[] = {
13860 (char *) "self",(char *) "mode", NULL
13861 };
13862
13863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13866 arg2 = (int) SWIG_AsInt(obj1);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 {
13869 PyThreadState* __tstate = wxPyBeginAllowThreads();
13870 (arg1)->SetMapMode(arg2);
13871
13872 wxPyEndAllowThreads(__tstate);
13873 if (PyErr_Occurred()) SWIG_fail;
13874 }
13875 Py_INCREF(Py_None); resultobj = Py_None;
13876 return resultobj;
13877 fail:
13878 return NULL;
13879 }
13880
13881
13882 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13883 PyObject *resultobj;
13884 wxDC *arg1 = (wxDC *) 0 ;
13885 double *arg2 = (double *) 0 ;
13886 double *arg3 = (double *) 0 ;
13887 double temp2 ;
13888 double temp3 ;
13889 PyObject * obj0 = 0 ;
13890 char *kwnames[] = {
13891 (char *) "self", NULL
13892 };
13893
13894 arg2 = &temp2;
13895 arg3 = &temp3;
13896 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13897 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13899 {
13900 PyThreadState* __tstate = wxPyBeginAllowThreads();
13901 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13902
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 Py_INCREF(Py_None); resultobj = Py_None;
13907 {
13908 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13909 resultobj = t_output_helper(resultobj,o);
13910 }
13911 {
13912 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13913 resultobj = t_output_helper(resultobj,o);
13914 }
13915 return resultobj;
13916 fail:
13917 return NULL;
13918 }
13919
13920
13921 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj;
13923 wxDC *arg1 = (wxDC *) 0 ;
13924 double arg2 ;
13925 double arg3 ;
13926 PyObject * obj0 = 0 ;
13927 PyObject * obj1 = 0 ;
13928 PyObject * obj2 = 0 ;
13929 char *kwnames[] = {
13930 (char *) "self",(char *) "x",(char *) "y", NULL
13931 };
13932
13933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13936 arg2 = (double) SWIG_AsDouble(obj1);
13937 if (PyErr_Occurred()) SWIG_fail;
13938 arg3 = (double) SWIG_AsDouble(obj2);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 {
13941 PyThreadState* __tstate = wxPyBeginAllowThreads();
13942 (arg1)->SetUserScale(arg2,arg3);
13943
13944 wxPyEndAllowThreads(__tstate);
13945 if (PyErr_Occurred()) SWIG_fail;
13946 }
13947 Py_INCREF(Py_None); resultobj = Py_None;
13948 return resultobj;
13949 fail:
13950 return NULL;
13951 }
13952
13953
13954 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13955 PyObject *resultobj;
13956 wxDC *arg1 = (wxDC *) 0 ;
13957 double *arg2 = (double *) 0 ;
13958 double *arg3 = (double *) 0 ;
13959 double temp2 ;
13960 double temp3 ;
13961 PyObject * obj0 = 0 ;
13962 char *kwnames[] = {
13963 (char *) "self", NULL
13964 };
13965
13966 arg2 = &temp2;
13967 arg3 = &temp3;
13968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13971 {
13972 PyThreadState* __tstate = wxPyBeginAllowThreads();
13973 (arg1)->GetLogicalScale(arg2,arg3);
13974
13975 wxPyEndAllowThreads(__tstate);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 }
13978 Py_INCREF(Py_None); resultobj = Py_None;
13979 {
13980 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13981 resultobj = t_output_helper(resultobj,o);
13982 }
13983 {
13984 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13985 resultobj = t_output_helper(resultobj,o);
13986 }
13987 return resultobj;
13988 fail:
13989 return NULL;
13990 }
13991
13992
13993 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13994 PyObject *resultobj;
13995 wxDC *arg1 = (wxDC *) 0 ;
13996 double arg2 ;
13997 double arg3 ;
13998 PyObject * obj0 = 0 ;
13999 PyObject * obj1 = 0 ;
14000 PyObject * obj2 = 0 ;
14001 char *kwnames[] = {
14002 (char *) "self",(char *) "x",(char *) "y", NULL
14003 };
14004
14005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14008 arg2 = (double) SWIG_AsDouble(obj1);
14009 if (PyErr_Occurred()) SWIG_fail;
14010 arg3 = (double) SWIG_AsDouble(obj2);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 {
14013 PyThreadState* __tstate = wxPyBeginAllowThreads();
14014 (arg1)->SetLogicalScale(arg2,arg3);
14015
14016 wxPyEndAllowThreads(__tstate);
14017 if (PyErr_Occurred()) SWIG_fail;
14018 }
14019 Py_INCREF(Py_None); resultobj = Py_None;
14020 return resultobj;
14021 fail:
14022 return NULL;
14023 }
14024
14025
14026 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14027 PyObject *resultobj;
14028 wxDC *arg1 = (wxDC *) 0 ;
14029 wxPoint result;
14030 PyObject * obj0 = 0 ;
14031 char *kwnames[] = {
14032 (char *) "self", NULL
14033 };
14034
14035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14041
14042 wxPyEndAllowThreads(__tstate);
14043 if (PyErr_Occurred()) SWIG_fail;
14044 }
14045 {
14046 wxPoint * resultptr;
14047 resultptr = new wxPoint((wxPoint &) result);
14048 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14049 }
14050 return resultobj;
14051 fail:
14052 return NULL;
14053 }
14054
14055
14056 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj;
14058 wxDC *arg1 = (wxDC *) 0 ;
14059 int *arg2 = (int *) 0 ;
14060 int *arg3 = (int *) 0 ;
14061 int temp2 ;
14062 int temp3 ;
14063 PyObject * obj0 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self", NULL
14066 };
14067
14068 arg2 = &temp2;
14069 arg3 = &temp3;
14070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14073 {
14074 PyThreadState* __tstate = wxPyBeginAllowThreads();
14075 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14076
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 Py_INCREF(Py_None); resultobj = Py_None;
14081 {
14082 PyObject *o = PyInt_FromLong((long) (*arg2));
14083 resultobj = t_output_helper(resultobj,o);
14084 }
14085 {
14086 PyObject *o = PyInt_FromLong((long) (*arg3));
14087 resultobj = t_output_helper(resultobj,o);
14088 }
14089 return resultobj;
14090 fail:
14091 return NULL;
14092 }
14093
14094
14095 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj;
14097 wxDC *arg1 = (wxDC *) 0 ;
14098 int arg2 ;
14099 int arg3 ;
14100 PyObject * obj0 = 0 ;
14101 PyObject * obj1 = 0 ;
14102 PyObject * obj2 = 0 ;
14103 char *kwnames[] = {
14104 (char *) "self",(char *) "x",(char *) "y", NULL
14105 };
14106
14107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14110 arg2 = (int) SWIG_AsInt(obj1);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 arg3 = (int) SWIG_AsInt(obj2);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 (arg1)->SetLogicalOrigin(arg2,arg3);
14117
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 Py_INCREF(Py_None); resultobj = Py_None;
14122 return resultobj;
14123 fail:
14124 return NULL;
14125 }
14126
14127
14128 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14129 PyObject *resultobj;
14130 wxDC *arg1 = (wxDC *) 0 ;
14131 wxPoint *arg2 = 0 ;
14132 wxPoint temp2 ;
14133 PyObject * obj0 = 0 ;
14134 PyObject * obj1 = 0 ;
14135 char *kwnames[] = {
14136 (char *) "self",(char *) "point", NULL
14137 };
14138
14139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14142 {
14143 arg2 = &temp2;
14144 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14145 }
14146 {
14147 PyThreadState* __tstate = wxPyBeginAllowThreads();
14148 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14149
14150 wxPyEndAllowThreads(__tstate);
14151 if (PyErr_Occurred()) SWIG_fail;
14152 }
14153 Py_INCREF(Py_None); resultobj = Py_None;
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14161 PyObject *resultobj;
14162 wxDC *arg1 = (wxDC *) 0 ;
14163 wxPoint result;
14164 PyObject * obj0 = 0 ;
14165 char *kwnames[] = {
14166 (char *) "self", NULL
14167 };
14168
14169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14172 {
14173 PyThreadState* __tstate = wxPyBeginAllowThreads();
14174 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14175
14176 wxPyEndAllowThreads(__tstate);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 }
14179 {
14180 wxPoint * resultptr;
14181 resultptr = new wxPoint((wxPoint &) result);
14182 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14183 }
14184 return resultobj;
14185 fail:
14186 return NULL;
14187 }
14188
14189
14190 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14191 PyObject *resultobj;
14192 wxDC *arg1 = (wxDC *) 0 ;
14193 int *arg2 = (int *) 0 ;
14194 int *arg3 = (int *) 0 ;
14195 int temp2 ;
14196 int temp3 ;
14197 PyObject * obj0 = 0 ;
14198 char *kwnames[] = {
14199 (char *) "self", NULL
14200 };
14201
14202 arg2 = &temp2;
14203 arg3 = &temp3;
14204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14207 {
14208 PyThreadState* __tstate = wxPyBeginAllowThreads();
14209 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14210
14211 wxPyEndAllowThreads(__tstate);
14212 if (PyErr_Occurred()) SWIG_fail;
14213 }
14214 Py_INCREF(Py_None); resultobj = Py_None;
14215 {
14216 PyObject *o = PyInt_FromLong((long) (*arg2));
14217 resultobj = t_output_helper(resultobj,o);
14218 }
14219 {
14220 PyObject *o = PyInt_FromLong((long) (*arg3));
14221 resultobj = t_output_helper(resultobj,o);
14222 }
14223 return resultobj;
14224 fail:
14225 return NULL;
14226 }
14227
14228
14229 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14230 PyObject *resultobj;
14231 wxDC *arg1 = (wxDC *) 0 ;
14232 int arg2 ;
14233 int arg3 ;
14234 PyObject * obj0 = 0 ;
14235 PyObject * obj1 = 0 ;
14236 PyObject * obj2 = 0 ;
14237 char *kwnames[] = {
14238 (char *) "self",(char *) "x",(char *) "y", NULL
14239 };
14240
14241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14244 arg2 = (int) SWIG_AsInt(obj1);
14245 if (PyErr_Occurred()) SWIG_fail;
14246 arg3 = (int) SWIG_AsInt(obj2);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 {
14249 PyThreadState* __tstate = wxPyBeginAllowThreads();
14250 (arg1)->SetDeviceOrigin(arg2,arg3);
14251
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 Py_INCREF(Py_None); resultobj = Py_None;
14256 return resultobj;
14257 fail:
14258 return NULL;
14259 }
14260
14261
14262 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14263 PyObject *resultobj;
14264 wxDC *arg1 = (wxDC *) 0 ;
14265 wxPoint *arg2 = 0 ;
14266 wxPoint temp2 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 char *kwnames[] = {
14270 (char *) "self",(char *) "point", NULL
14271 };
14272
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14276 {
14277 arg2 = &temp2;
14278 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14279 }
14280 {
14281 PyThreadState* __tstate = wxPyBeginAllowThreads();
14282 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14283
14284 wxPyEndAllowThreads(__tstate);
14285 if (PyErr_Occurred()) SWIG_fail;
14286 }
14287 Py_INCREF(Py_None); resultobj = Py_None;
14288 return resultobj;
14289 fail:
14290 return NULL;
14291 }
14292
14293
14294 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14295 PyObject *resultobj;
14296 wxDC *arg1 = (wxDC *) 0 ;
14297 bool arg2 ;
14298 bool arg3 ;
14299 PyObject * obj0 = 0 ;
14300 PyObject * obj1 = 0 ;
14301 PyObject * obj2 = 0 ;
14302 char *kwnames[] = {
14303 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14304 };
14305
14306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14309 arg2 = (bool) SWIG_AsBool(obj1);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 arg3 = (bool) SWIG_AsBool(obj2);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 {
14314 PyThreadState* __tstate = wxPyBeginAllowThreads();
14315 (arg1)->SetAxisOrientation(arg2,arg3);
14316
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 Py_INCREF(Py_None); resultobj = Py_None;
14321 return resultobj;
14322 fail:
14323 return NULL;
14324 }
14325
14326
14327 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj;
14329 wxDC *arg1 = (wxDC *) 0 ;
14330 int result;
14331 PyObject * obj0 = 0 ;
14332 char *kwnames[] = {
14333 (char *) "self", NULL
14334 };
14335
14336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14339 {
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14342
14343 wxPyEndAllowThreads(__tstate);
14344 if (PyErr_Occurred()) SWIG_fail;
14345 }
14346 resultobj = SWIG_FromInt((int)result);
14347 return resultobj;
14348 fail:
14349 return NULL;
14350 }
14351
14352
14353 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14354 PyObject *resultobj;
14355 wxDC *arg1 = (wxDC *) 0 ;
14356 int arg2 ;
14357 PyObject * obj0 = 0 ;
14358 PyObject * obj1 = 0 ;
14359 char *kwnames[] = {
14360 (char *) "self",(char *) "function", NULL
14361 };
14362
14363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14366 arg2 = (int) SWIG_AsInt(obj1);
14367 if (PyErr_Occurred()) SWIG_fail;
14368 {
14369 PyThreadState* __tstate = wxPyBeginAllowThreads();
14370 (arg1)->SetLogicalFunction(arg2);
14371
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 Py_INCREF(Py_None); resultobj = Py_None;
14376 return resultobj;
14377 fail:
14378 return NULL;
14379 }
14380
14381
14382 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14383 PyObject *resultobj;
14384 wxDC *arg1 = (wxDC *) 0 ;
14385 bool arg2 ;
14386 PyObject * obj0 = 0 ;
14387 PyObject * obj1 = 0 ;
14388 char *kwnames[] = {
14389 (char *) "self",(char *) "opt", NULL
14390 };
14391
14392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14395 arg2 = (bool) SWIG_AsBool(obj1);
14396 if (PyErr_Occurred()) SWIG_fail;
14397 {
14398 PyThreadState* __tstate = wxPyBeginAllowThreads();
14399 (arg1)->SetOptimization(arg2);
14400
14401 wxPyEndAllowThreads(__tstate);
14402 if (PyErr_Occurred()) SWIG_fail;
14403 }
14404 Py_INCREF(Py_None); resultobj = Py_None;
14405 return resultobj;
14406 fail:
14407 return NULL;
14408 }
14409
14410
14411 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14412 PyObject *resultobj;
14413 wxDC *arg1 = (wxDC *) 0 ;
14414 bool result;
14415 PyObject * obj0 = 0 ;
14416 char *kwnames[] = {
14417 (char *) "self", NULL
14418 };
14419
14420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 result = (bool)(arg1)->GetOptimization();
14426
14427 wxPyEndAllowThreads(__tstate);
14428 if (PyErr_Occurred()) SWIG_fail;
14429 }
14430 {
14431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14432 }
14433 return resultobj;
14434 fail:
14435 return NULL;
14436 }
14437
14438
14439 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14440 PyObject *resultobj;
14441 wxDC *arg1 = (wxDC *) 0 ;
14442 int arg2 ;
14443 int arg3 ;
14444 PyObject * obj0 = 0 ;
14445 PyObject * obj1 = 0 ;
14446 PyObject * obj2 = 0 ;
14447 char *kwnames[] = {
14448 (char *) "self",(char *) "x",(char *) "y", NULL
14449 };
14450
14451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14454 arg2 = (int) SWIG_AsInt(obj1);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 arg3 = (int) SWIG_AsInt(obj2);
14457 if (PyErr_Occurred()) SWIG_fail;
14458 {
14459 PyThreadState* __tstate = wxPyBeginAllowThreads();
14460 (arg1)->CalcBoundingBox(arg2,arg3);
14461
14462 wxPyEndAllowThreads(__tstate);
14463 if (PyErr_Occurred()) SWIG_fail;
14464 }
14465 Py_INCREF(Py_None); resultobj = Py_None;
14466 return resultobj;
14467 fail:
14468 return NULL;
14469 }
14470
14471
14472 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj;
14474 wxDC *arg1 = (wxDC *) 0 ;
14475 wxPoint *arg2 = 0 ;
14476 wxPoint temp2 ;
14477 PyObject * obj0 = 0 ;
14478 PyObject * obj1 = 0 ;
14479 char *kwnames[] = {
14480 (char *) "self",(char *) "point", NULL
14481 };
14482
14483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14485 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14486 {
14487 arg2 = &temp2;
14488 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14489 }
14490 {
14491 PyThreadState* __tstate = wxPyBeginAllowThreads();
14492 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14493
14494 wxPyEndAllowThreads(__tstate);
14495 if (PyErr_Occurred()) SWIG_fail;
14496 }
14497 Py_INCREF(Py_None); resultobj = Py_None;
14498 return resultobj;
14499 fail:
14500 return NULL;
14501 }
14502
14503
14504 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14505 PyObject *resultobj;
14506 wxDC *arg1 = (wxDC *) 0 ;
14507 PyObject * obj0 = 0 ;
14508 char *kwnames[] = {
14509 (char *) "self", NULL
14510 };
14511
14512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14515 {
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 (arg1)->ResetBoundingBox();
14518
14519 wxPyEndAllowThreads(__tstate);
14520 if (PyErr_Occurred()) SWIG_fail;
14521 }
14522 Py_INCREF(Py_None); resultobj = Py_None;
14523 return resultobj;
14524 fail:
14525 return NULL;
14526 }
14527
14528
14529 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14530 PyObject *resultobj;
14531 wxDC *arg1 = (wxDC *) 0 ;
14532 int result;
14533 PyObject * obj0 = 0 ;
14534 char *kwnames[] = {
14535 (char *) "self", NULL
14536 };
14537
14538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14541 {
14542 PyThreadState* __tstate = wxPyBeginAllowThreads();
14543 result = (int)((wxDC const *)arg1)->MinX();
14544
14545 wxPyEndAllowThreads(__tstate);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 }
14548 resultobj = SWIG_FromInt((int)result);
14549 return resultobj;
14550 fail:
14551 return NULL;
14552 }
14553
14554
14555 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj;
14557 wxDC *arg1 = (wxDC *) 0 ;
14558 int result;
14559 PyObject * obj0 = 0 ;
14560 char *kwnames[] = {
14561 (char *) "self", NULL
14562 };
14563
14564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 result = (int)((wxDC const *)arg1)->MaxX();
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 resultobj = SWIG_FromInt((int)result);
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxDC *arg1 = (wxDC *) 0 ;
14584 int result;
14585 PyObject * obj0 = 0 ;
14586 char *kwnames[] = {
14587 (char *) "self", NULL
14588 };
14589
14590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = (int)((wxDC const *)arg1)->MinY();
14596
14597 wxPyEndAllowThreads(__tstate);
14598 if (PyErr_Occurred()) SWIG_fail;
14599 }
14600 resultobj = SWIG_FromInt((int)result);
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj;
14609 wxDC *arg1 = (wxDC *) 0 ;
14610 int result;
14611 PyObject * obj0 = 0 ;
14612 char *kwnames[] = {
14613 (char *) "self", NULL
14614 };
14615
14616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14619 {
14620 PyThreadState* __tstate = wxPyBeginAllowThreads();
14621 result = (int)((wxDC const *)arg1)->MaxY();
14622
14623 wxPyEndAllowThreads(__tstate);
14624 if (PyErr_Occurred()) SWIG_fail;
14625 }
14626 resultobj = SWIG_FromInt((int)result);
14627 return resultobj;
14628 fail:
14629 return NULL;
14630 }
14631
14632
14633 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14634 PyObject *resultobj;
14635 wxDC *arg1 = (wxDC *) 0 ;
14636 int *arg2 = (int *) 0 ;
14637 int *arg3 = (int *) 0 ;
14638 int *arg4 = (int *) 0 ;
14639 int *arg5 = (int *) 0 ;
14640 int temp2 ;
14641 int temp3 ;
14642 int temp4 ;
14643 int temp5 ;
14644 PyObject * obj0 = 0 ;
14645 char *kwnames[] = {
14646 (char *) "self", NULL
14647 };
14648
14649 arg2 = &temp2;
14650 arg3 = &temp3;
14651 arg4 = &temp4;
14652 arg5 = &temp5;
14653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 Py_INCREF(Py_None); resultobj = Py_None;
14664 {
14665 PyObject *o = PyInt_FromLong((long) (*arg2));
14666 resultobj = t_output_helper(resultobj,o);
14667 }
14668 {
14669 PyObject *o = PyInt_FromLong((long) (*arg3));
14670 resultobj = t_output_helper(resultobj,o);
14671 }
14672 {
14673 PyObject *o = PyInt_FromLong((long) (*arg4));
14674 resultobj = t_output_helper(resultobj,o);
14675 }
14676 {
14677 PyObject *o = PyInt_FromLong((long) (*arg5));
14678 resultobj = t_output_helper(resultobj,o);
14679 }
14680 return resultobj;
14681 fail:
14682 return NULL;
14683 }
14684
14685
14686 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14687 PyObject *resultobj;
14688 wxDC *arg1 = (wxDC *) 0 ;
14689 PyObject *arg2 = (PyObject *) 0 ;
14690 PyObject *arg3 = (PyObject *) 0 ;
14691 PyObject *arg4 = (PyObject *) 0 ;
14692 PyObject *result;
14693 PyObject * obj0 = 0 ;
14694 PyObject * obj1 = 0 ;
14695 PyObject * obj2 = 0 ;
14696 PyObject * obj3 = 0 ;
14697 char *kwnames[] = {
14698 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14699 };
14700
14701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14704 arg2 = obj1;
14705 arg3 = obj2;
14706 arg4 = obj3;
14707 {
14708 PyThreadState* __tstate = wxPyBeginAllowThreads();
14709 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14710
14711 wxPyEndAllowThreads(__tstate);
14712 if (PyErr_Occurred()) SWIG_fail;
14713 }
14714 resultobj = result;
14715 return resultobj;
14716 fail:
14717 return NULL;
14718 }
14719
14720
14721 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14722 PyObject *resultobj;
14723 wxDC *arg1 = (wxDC *) 0 ;
14724 PyObject *arg2 = (PyObject *) 0 ;
14725 PyObject *arg3 = (PyObject *) 0 ;
14726 PyObject *arg4 = (PyObject *) 0 ;
14727 PyObject *result;
14728 PyObject * obj0 = 0 ;
14729 PyObject * obj1 = 0 ;
14730 PyObject * obj2 = 0 ;
14731 PyObject * obj3 = 0 ;
14732 char *kwnames[] = {
14733 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14734 };
14735
14736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14737 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14738 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14739 arg2 = obj1;
14740 arg3 = obj2;
14741 arg4 = obj3;
14742 {
14743 PyThreadState* __tstate = wxPyBeginAllowThreads();
14744 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14745
14746 wxPyEndAllowThreads(__tstate);
14747 if (PyErr_Occurred()) SWIG_fail;
14748 }
14749 resultobj = result;
14750 return resultobj;
14751 fail:
14752 return NULL;
14753 }
14754
14755
14756 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14757 PyObject *resultobj;
14758 wxDC *arg1 = (wxDC *) 0 ;
14759 PyObject *arg2 = (PyObject *) 0 ;
14760 PyObject *arg3 = (PyObject *) 0 ;
14761 PyObject *arg4 = (PyObject *) 0 ;
14762 PyObject *result;
14763 PyObject * obj0 = 0 ;
14764 PyObject * obj1 = 0 ;
14765 PyObject * obj2 = 0 ;
14766 PyObject * obj3 = 0 ;
14767 char *kwnames[] = {
14768 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14769 };
14770
14771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14774 arg2 = obj1;
14775 arg3 = obj2;
14776 arg4 = obj3;
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14780
14781 wxPyEndAllowThreads(__tstate);
14782 if (PyErr_Occurred()) SWIG_fail;
14783 }
14784 resultobj = result;
14785 return resultobj;
14786 fail:
14787 return NULL;
14788 }
14789
14790
14791 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14792 PyObject *resultobj;
14793 wxDC *arg1 = (wxDC *) 0 ;
14794 PyObject *arg2 = (PyObject *) 0 ;
14795 PyObject *arg3 = (PyObject *) 0 ;
14796 PyObject *arg4 = (PyObject *) 0 ;
14797 PyObject *result;
14798 PyObject * obj0 = 0 ;
14799 PyObject * obj1 = 0 ;
14800 PyObject * obj2 = 0 ;
14801 PyObject * obj3 = 0 ;
14802 char *kwnames[] = {
14803 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14804 };
14805
14806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14809 arg2 = obj1;
14810 arg3 = obj2;
14811 arg4 = obj3;
14812 {
14813 PyThreadState* __tstate = wxPyBeginAllowThreads();
14814 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14815
14816 wxPyEndAllowThreads(__tstate);
14817 if (PyErr_Occurred()) SWIG_fail;
14818 }
14819 resultobj = result;
14820 return resultobj;
14821 fail:
14822 return NULL;
14823 }
14824
14825
14826 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14827 PyObject *resultobj;
14828 wxDC *arg1 = (wxDC *) 0 ;
14829 PyObject *arg2 = (PyObject *) 0 ;
14830 PyObject *arg3 = (PyObject *) 0 ;
14831 PyObject *arg4 = (PyObject *) 0 ;
14832 PyObject *result;
14833 PyObject * obj0 = 0 ;
14834 PyObject * obj1 = 0 ;
14835 PyObject * obj2 = 0 ;
14836 PyObject * obj3 = 0 ;
14837 char *kwnames[] = {
14838 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14839 };
14840
14841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14844 arg2 = obj1;
14845 arg3 = obj2;
14846 arg4 = obj3;
14847 {
14848 PyThreadState* __tstate = wxPyBeginAllowThreads();
14849 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14850
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 resultobj = result;
14855 return resultobj;
14856 fail:
14857 return NULL;
14858 }
14859
14860
14861 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14862 PyObject *resultobj;
14863 wxDC *arg1 = (wxDC *) 0 ;
14864 PyObject *arg2 = (PyObject *) 0 ;
14865 PyObject *arg3 = (PyObject *) 0 ;
14866 PyObject *arg4 = (PyObject *) 0 ;
14867 PyObject *arg5 = (PyObject *) 0 ;
14868 PyObject *result;
14869 PyObject * obj0 = 0 ;
14870 PyObject * obj1 = 0 ;
14871 PyObject * obj2 = 0 ;
14872 PyObject * obj3 = 0 ;
14873 PyObject * obj4 = 0 ;
14874 char *kwnames[] = {
14875 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14876 };
14877
14878 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14879 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14880 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14881 arg2 = obj1;
14882 arg3 = obj2;
14883 arg4 = obj3;
14884 arg5 = obj4;
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = result;
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14900 PyObject *obj;
14901 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14902 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14903 Py_INCREF(obj);
14904 return Py_BuildValue((char *)"");
14905 }
14906 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14907 PyObject *resultobj;
14908 wxMemoryDC *result;
14909 char *kwnames[] = {
14910 NULL
14911 };
14912
14913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 result = (wxMemoryDC *)new wxMemoryDC();
14917
14918 wxPyEndAllowThreads(__tstate);
14919 if (PyErr_Occurred()) SWIG_fail;
14920 }
14921 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14922 return resultobj;
14923 fail:
14924 return NULL;
14925 }
14926
14927
14928 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14929 PyObject *resultobj;
14930 wxDC *arg1 = (wxDC *) 0 ;
14931 wxMemoryDC *result;
14932 PyObject * obj0 = 0 ;
14933 char *kwnames[] = {
14934 (char *) "oldDC", NULL
14935 };
14936
14937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14943
14944 wxPyEndAllowThreads(__tstate);
14945 if (PyErr_Occurred()) SWIG_fail;
14946 }
14947 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14948 return resultobj;
14949 fail:
14950 return NULL;
14951 }
14952
14953
14954 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14955 PyObject *resultobj;
14956 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14957 wxBitmap *arg2 = 0 ;
14958 PyObject * obj0 = 0 ;
14959 PyObject * obj1 = 0 ;
14960 char *kwnames[] = {
14961 (char *) "self",(char *) "bitmap", NULL
14962 };
14963
14964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14967 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14968 SWIG_POINTER_EXCEPTION | 0)) == -1)
14969 SWIG_fail;
14970 if (arg2 == NULL) {
14971 PyErr_SetString(PyExc_TypeError,"null reference");
14972 SWIG_fail;
14973 }
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 (arg1)->SelectObject((wxBitmap const &)*arg2);
14977
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 Py_INCREF(Py_None); resultobj = Py_None;
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14989 PyObject *obj;
14990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14991 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
14992 Py_INCREF(obj);
14993 return Py_BuildValue((char *)"");
14994 }
14995 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
14996 PyObject *resultobj;
14997 wxDC *arg1 = (wxDC *) 0 ;
14998 wxBitmap *arg2 = 0 ;
14999 wxBufferedDC *result;
15000 PyObject * obj0 = 0 ;
15001 PyObject * obj1 = 0 ;
15002
15003 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15006 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15007 SWIG_POINTER_EXCEPTION | 0)) == -1)
15008 SWIG_fail;
15009 if (arg2 == NULL) {
15010 PyErr_SetString(PyExc_TypeError,"null reference");
15011 SWIG_fail;
15012 }
15013 {
15014 PyThreadState* __tstate = wxPyBeginAllowThreads();
15015 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15016
15017 wxPyEndAllowThreads(__tstate);
15018 if (PyErr_Occurred()) SWIG_fail;
15019 }
15020 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15021 return resultobj;
15022 fail:
15023 return NULL;
15024 }
15025
15026
15027 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15028 PyObject *resultobj;
15029 wxDC *arg1 = (wxDC *) 0 ;
15030 wxSize *arg2 = 0 ;
15031 wxBufferedDC *result;
15032 wxSize temp2 ;
15033 PyObject * obj0 = 0 ;
15034 PyObject * obj1 = 0 ;
15035
15036 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15039 {
15040 arg2 = &temp2;
15041 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15042 }
15043 {
15044 PyThreadState* __tstate = wxPyBeginAllowThreads();
15045 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15046
15047 wxPyEndAllowThreads(__tstate);
15048 if (PyErr_Occurred()) SWIG_fail;
15049 }
15050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15051 return resultobj;
15052 fail:
15053 return NULL;
15054 }
15055
15056
15057 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15058 int argc;
15059 PyObject *argv[3];
15060 int ii;
15061
15062 argc = PyObject_Length(args);
15063 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15064 argv[ii] = PyTuple_GetItem(args,ii);
15065 }
15066 if (argc == 2) {
15067 int _v;
15068 {
15069 void *ptr;
15070 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15071 _v = 0;
15072 PyErr_Clear();
15073 } else {
15074 _v = 1;
15075 }
15076 }
15077 if (_v) {
15078 {
15079 void *ptr;
15080 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15081 _v = 0;
15082 PyErr_Clear();
15083 } else {
15084 _v = 1;
15085 }
15086 }
15087 if (_v) {
15088 return _wrap_new_BufferedDC__SWIG_0(self,args);
15089 }
15090 }
15091 }
15092 if (argc == 2) {
15093 int _v;
15094 {
15095 void *ptr;
15096 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15097 _v = 0;
15098 PyErr_Clear();
15099 } else {
15100 _v = 1;
15101 }
15102 }
15103 if (_v) {
15104 {
15105 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15106 }
15107 if (_v) {
15108 return _wrap_new_BufferedDC__SWIG_1(self,args);
15109 }
15110 }
15111 }
15112
15113 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15114 return NULL;
15115 }
15116
15117
15118 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15119 PyObject *resultobj;
15120 wxDC *arg1 = (wxDC *) 0 ;
15121 wxSize *arg2 = 0 ;
15122 wxBufferedDC *result;
15123 wxSize temp2 ;
15124 PyObject * obj0 = 0 ;
15125 PyObject * obj1 = 0 ;
15126
15127 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15130 {
15131 arg2 = &temp2;
15132 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15133 }
15134 {
15135 PyThreadState* __tstate = wxPyBeginAllowThreads();
15136 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15137
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj;
15150 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15151 PyObject * obj0 = 0 ;
15152 char *kwnames[] = {
15153 (char *) "self", NULL
15154 };
15155
15156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15159 {
15160 PyThreadState* __tstate = wxPyBeginAllowThreads();
15161 delete arg1;
15162
15163 wxPyEndAllowThreads(__tstate);
15164 if (PyErr_Occurred()) SWIG_fail;
15165 }
15166 Py_INCREF(Py_None); resultobj = Py_None;
15167 return resultobj;
15168 fail:
15169 return NULL;
15170 }
15171
15172
15173 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15174 PyObject *resultobj;
15175 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15176 PyObject * obj0 = 0 ;
15177 char *kwnames[] = {
15178 (char *) "self", NULL
15179 };
15180
15181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15184 {
15185 PyThreadState* __tstate = wxPyBeginAllowThreads();
15186 (arg1)->UnMask();
15187
15188 wxPyEndAllowThreads(__tstate);
15189 if (PyErr_Occurred()) SWIG_fail;
15190 }
15191 Py_INCREF(Py_None); resultobj = Py_None;
15192 return resultobj;
15193 fail:
15194 return NULL;
15195 }
15196
15197
15198 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15199 PyObject *obj;
15200 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15201 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15202 Py_INCREF(obj);
15203 return Py_BuildValue((char *)"");
15204 }
15205 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15206 PyObject *resultobj;
15207 wxWindow *arg1 = (wxWindow *) 0 ;
15208 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15209 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15210 wxBufferedPaintDC *result;
15211 PyObject * obj0 = 0 ;
15212 PyObject * obj1 = 0 ;
15213 char *kwnames[] = {
15214 (char *) "window",(char *) "buffer", NULL
15215 };
15216
15217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15220 if (obj1) {
15221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15222 SWIG_POINTER_EXCEPTION | 0)) == -1)
15223 SWIG_fail;
15224 if (arg2 == NULL) {
15225 PyErr_SetString(PyExc_TypeError,"null reference");
15226 SWIG_fail;
15227 }
15228 }
15229 {
15230 PyThreadState* __tstate = wxPyBeginAllowThreads();
15231 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15232
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15237 return resultobj;
15238 fail:
15239 return NULL;
15240 }
15241
15242
15243 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15244 PyObject *obj;
15245 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15246 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15247 Py_INCREF(obj);
15248 return Py_BuildValue((char *)"");
15249 }
15250 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15251 PyObject *resultobj;
15252 wxScreenDC *result;
15253 char *kwnames[] = {
15254 NULL
15255 };
15256
15257 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15258 {
15259 PyThreadState* __tstate = wxPyBeginAllowThreads();
15260 result = (wxScreenDC *)new wxScreenDC();
15261
15262 wxPyEndAllowThreads(__tstate);
15263 if (PyErr_Occurred()) SWIG_fail;
15264 }
15265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15266 return resultobj;
15267 fail:
15268 return NULL;
15269 }
15270
15271
15272 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15273 PyObject *resultobj;
15274 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15275 wxWindow *arg2 = (wxWindow *) 0 ;
15276 bool result;
15277 PyObject * obj0 = 0 ;
15278 PyObject * obj1 = 0 ;
15279 char *kwnames[] = {
15280 (char *) "self",(char *) "window", NULL
15281 };
15282
15283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15288 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15291
15292 wxPyEndAllowThreads(__tstate);
15293 if (PyErr_Occurred()) SWIG_fail;
15294 }
15295 {
15296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15297 }
15298 return resultobj;
15299 fail:
15300 return NULL;
15301 }
15302
15303
15304 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15305 PyObject *resultobj;
15306 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15307 wxRect *arg2 = (wxRect *) NULL ;
15308 bool result;
15309 PyObject * obj0 = 0 ;
15310 PyObject * obj1 = 0 ;
15311 char *kwnames[] = {
15312 (char *) "self",(char *) "rect", NULL
15313 };
15314
15315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15318 if (obj1) {
15319 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15321 }
15322 {
15323 PyThreadState* __tstate = wxPyBeginAllowThreads();
15324 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15325
15326 wxPyEndAllowThreads(__tstate);
15327 if (PyErr_Occurred()) SWIG_fail;
15328 }
15329 {
15330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15331 }
15332 return resultobj;
15333 fail:
15334 return NULL;
15335 }
15336
15337
15338 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15339 PyObject *resultobj;
15340 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15341 bool result;
15342 PyObject * obj0 = 0 ;
15343 char *kwnames[] = {
15344 (char *) "self", NULL
15345 };
15346
15347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15350 {
15351 PyThreadState* __tstate = wxPyBeginAllowThreads();
15352 result = (bool)(arg1)->EndDrawingOnTop();
15353
15354 wxPyEndAllowThreads(__tstate);
15355 if (PyErr_Occurred()) SWIG_fail;
15356 }
15357 {
15358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15359 }
15360 return resultobj;
15361 fail:
15362 return NULL;
15363 }
15364
15365
15366 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15367 PyObject *obj;
15368 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15369 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15370 Py_INCREF(obj);
15371 return Py_BuildValue((char *)"");
15372 }
15373 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15374 PyObject *resultobj;
15375 wxWindow *arg1 = (wxWindow *) 0 ;
15376 wxClientDC *result;
15377 PyObject * obj0 = 0 ;
15378 char *kwnames[] = {
15379 (char *) "win", NULL
15380 };
15381
15382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15385 {
15386 PyThreadState* __tstate = wxPyBeginAllowThreads();
15387 result = (wxClientDC *)new wxClientDC(arg1);
15388
15389 wxPyEndAllowThreads(__tstate);
15390 if (PyErr_Occurred()) SWIG_fail;
15391 }
15392 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15393 return resultobj;
15394 fail:
15395 return NULL;
15396 }
15397
15398
15399 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15400 PyObject *obj;
15401 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15402 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15403 Py_INCREF(obj);
15404 return Py_BuildValue((char *)"");
15405 }
15406 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15407 PyObject *resultobj;
15408 wxWindow *arg1 = (wxWindow *) 0 ;
15409 wxPaintDC *result;
15410 PyObject * obj0 = 0 ;
15411 char *kwnames[] = {
15412 (char *) "win", NULL
15413 };
15414
15415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15418 {
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 result = (wxPaintDC *)new wxPaintDC(arg1);
15421
15422 wxPyEndAllowThreads(__tstate);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15426 return resultobj;
15427 fail:
15428 return NULL;
15429 }
15430
15431
15432 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15433 PyObject *obj;
15434 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15435 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15436 Py_INCREF(obj);
15437 return Py_BuildValue((char *)"");
15438 }
15439 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15440 PyObject *resultobj;
15441 wxWindow *arg1 = (wxWindow *) 0 ;
15442 wxWindowDC *result;
15443 PyObject * obj0 = 0 ;
15444 char *kwnames[] = {
15445 (char *) "win", NULL
15446 };
15447
15448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15451 {
15452 PyThreadState* __tstate = wxPyBeginAllowThreads();
15453 result = (wxWindowDC *)new wxWindowDC(arg1);
15454
15455 wxPyEndAllowThreads(__tstate);
15456 if (PyErr_Occurred()) SWIG_fail;
15457 }
15458 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15459 return resultobj;
15460 fail:
15461 return NULL;
15462 }
15463
15464
15465 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15466 PyObject *obj;
15467 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15468 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15469 Py_INCREF(obj);
15470 return Py_BuildValue((char *)"");
15471 }
15472 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15473 PyObject *resultobj;
15474 wxDC *arg1 = 0 ;
15475 bool arg2 ;
15476 wxMirrorDC *result;
15477 PyObject * obj0 = 0 ;
15478 PyObject * obj1 = 0 ;
15479 char *kwnames[] = {
15480 (char *) "dc",(char *) "mirror", NULL
15481 };
15482
15483 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15484 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15485 SWIG_POINTER_EXCEPTION | 0)) == -1)
15486 SWIG_fail;
15487 if (arg1 == NULL) {
15488 PyErr_SetString(PyExc_TypeError,"null reference");
15489 SWIG_fail;
15490 }
15491 arg2 = (bool) SWIG_AsBool(obj1);
15492 if (PyErr_Occurred()) SWIG_fail;
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15496
15497 wxPyEndAllowThreads(__tstate);
15498 if (PyErr_Occurred()) SWIG_fail;
15499 }
15500 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15501 return resultobj;
15502 fail:
15503 return NULL;
15504 }
15505
15506
15507 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15508 PyObject *obj;
15509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15510 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15511 Py_INCREF(obj);
15512 return Py_BuildValue((char *)"");
15513 }
15514 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15515 PyObject *resultobj;
15516 wxPrintData *arg1 = 0 ;
15517 wxPostScriptDC *result;
15518 PyObject * obj0 = 0 ;
15519 char *kwnames[] = {
15520 (char *) "printData", NULL
15521 };
15522
15523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15525 SWIG_POINTER_EXCEPTION | 0)) == -1)
15526 SWIG_fail;
15527 if (arg1 == NULL) {
15528 PyErr_SetString(PyExc_TypeError,"null reference");
15529 SWIG_fail;
15530 }
15531 {
15532 PyThreadState* __tstate = wxPyBeginAllowThreads();
15533 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15534
15535 wxPyEndAllowThreads(__tstate);
15536 if (PyErr_Occurred()) SWIG_fail;
15537 }
15538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15539 return resultobj;
15540 fail:
15541 return NULL;
15542 }
15543
15544
15545 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15546 PyObject *resultobj;
15547 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15548 wxPrintData *result;
15549 PyObject * obj0 = 0 ;
15550 char *kwnames[] = {
15551 (char *) "self", NULL
15552 };
15553
15554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15557 {
15558 PyThreadState* __tstate = wxPyBeginAllowThreads();
15559 {
15560 wxPrintData &_result_ref = (arg1)->GetPrintData();
15561 result = (wxPrintData *) &_result_ref;
15562 }
15563
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj;
15576 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15577 wxPrintData *arg2 = 0 ;
15578 PyObject * obj0 = 0 ;
15579 PyObject * obj1 = 0 ;
15580 char *kwnames[] = {
15581 (char *) "self",(char *) "data", NULL
15582 };
15583
15584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15587 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15588 SWIG_POINTER_EXCEPTION | 0)) == -1)
15589 SWIG_fail;
15590 if (arg2 == NULL) {
15591 PyErr_SetString(PyExc_TypeError,"null reference");
15592 SWIG_fail;
15593 }
15594 {
15595 PyThreadState* __tstate = wxPyBeginAllowThreads();
15596 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15597
15598 wxPyEndAllowThreads(__tstate);
15599 if (PyErr_Occurred()) SWIG_fail;
15600 }
15601 Py_INCREF(Py_None); resultobj = Py_None;
15602 return resultobj;
15603 fail:
15604 return NULL;
15605 }
15606
15607
15608 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15609 PyObject *resultobj;
15610 int arg1 ;
15611 PyObject * obj0 = 0 ;
15612 char *kwnames[] = {
15613 (char *) "ppi", NULL
15614 };
15615
15616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15617 arg1 = (int) SWIG_AsInt(obj0);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 {
15620 PyThreadState* __tstate = wxPyBeginAllowThreads();
15621 wxPostScriptDC::SetResolution(arg1);
15622
15623 wxPyEndAllowThreads(__tstate);
15624 if (PyErr_Occurred()) SWIG_fail;
15625 }
15626 Py_INCREF(Py_None); resultobj = Py_None;
15627 return resultobj;
15628 fail:
15629 return NULL;
15630 }
15631
15632
15633 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15634 PyObject *resultobj;
15635 int result;
15636 char *kwnames[] = {
15637 NULL
15638 };
15639
15640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15641 {
15642 PyThreadState* __tstate = wxPyBeginAllowThreads();
15643 result = (int)wxPostScriptDC::GetResolution();
15644
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 resultobj = SWIG_FromInt((int)result);
15649 return resultobj;
15650 fail:
15651 return NULL;
15652 }
15653
15654
15655 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15656 PyObject *obj;
15657 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15658 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15659 Py_INCREF(obj);
15660 return Py_BuildValue((char *)"");
15661 }
15662 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15663 PyObject *resultobj;
15664 wxString const &arg1_defvalue = wxPyEmptyString ;
15665 wxString *arg1 = (wxString *) &arg1_defvalue ;
15666 wxMetaFile *result;
15667 bool temp1 = False ;
15668 PyObject * obj0 = 0 ;
15669 char *kwnames[] = {
15670 (char *) "filename", NULL
15671 };
15672
15673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15674 if (obj0) {
15675 {
15676 arg1 = wxString_in_helper(obj0);
15677 if (arg1 == NULL) SWIG_fail;
15678 temp1 = True;
15679 }
15680 }
15681 {
15682 PyThreadState* __tstate = wxPyBeginAllowThreads();
15683 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15684
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15689 {
15690 if (temp1)
15691 delete arg1;
15692 }
15693 return resultobj;
15694 fail:
15695 {
15696 if (temp1)
15697 delete arg1;
15698 }
15699 return NULL;
15700 }
15701
15702
15703 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15704 PyObject *resultobj;
15705 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15706 PyObject * obj0 = 0 ;
15707 char *kwnames[] = {
15708 (char *) "self", NULL
15709 };
15710
15711 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15712 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15713 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15714 {
15715 PyThreadState* __tstate = wxPyBeginAllowThreads();
15716 delete arg1;
15717
15718 wxPyEndAllowThreads(__tstate);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 }
15721 Py_INCREF(Py_None); resultobj = Py_None;
15722 return resultobj;
15723 fail:
15724 return NULL;
15725 }
15726
15727
15728 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15729 PyObject *resultobj;
15730 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15731 bool result;
15732 PyObject * obj0 = 0 ;
15733 char *kwnames[] = {
15734 (char *) "self", NULL
15735 };
15736
15737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15740 {
15741 PyThreadState* __tstate = wxPyBeginAllowThreads();
15742 result = (bool)(arg1)->Ok();
15743
15744 wxPyEndAllowThreads(__tstate);
15745 if (PyErr_Occurred()) SWIG_fail;
15746 }
15747 {
15748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15749 }
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15757 PyObject *resultobj;
15758 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15759 int arg2 = (int) 0 ;
15760 int arg3 = (int) 0 ;
15761 bool result;
15762 PyObject * obj0 = 0 ;
15763 PyObject * obj1 = 0 ;
15764 PyObject * obj2 = 0 ;
15765 char *kwnames[] = {
15766 (char *) "self",(char *) "width",(char *) "height", NULL
15767 };
15768
15769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15772 if (obj1) {
15773 arg2 = (int) SWIG_AsInt(obj1);
15774 if (PyErr_Occurred()) SWIG_fail;
15775 }
15776 if (obj2) {
15777 arg3 = (int) SWIG_AsInt(obj2);
15778 if (PyErr_Occurred()) SWIG_fail;
15779 }
15780 {
15781 PyThreadState* __tstate = wxPyBeginAllowThreads();
15782 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15783
15784 wxPyEndAllowThreads(__tstate);
15785 if (PyErr_Occurred()) SWIG_fail;
15786 }
15787 {
15788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15789 }
15790 return resultobj;
15791 fail:
15792 return NULL;
15793 }
15794
15795
15796 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15797 PyObject *resultobj;
15798 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15799 wxSize result;
15800 PyObject * obj0 = 0 ;
15801 char *kwnames[] = {
15802 (char *) "self", NULL
15803 };
15804
15805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15808 {
15809 PyThreadState* __tstate = wxPyBeginAllowThreads();
15810 result = (arg1)->GetSize();
15811
15812 wxPyEndAllowThreads(__tstate);
15813 if (PyErr_Occurred()) SWIG_fail;
15814 }
15815 {
15816 wxSize * resultptr;
15817 resultptr = new wxSize((wxSize &) result);
15818 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15819 }
15820 return resultobj;
15821 fail:
15822 return NULL;
15823 }
15824
15825
15826 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15827 PyObject *resultobj;
15828 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15829 int result;
15830 PyObject * obj0 = 0 ;
15831 char *kwnames[] = {
15832 (char *) "self", NULL
15833 };
15834
15835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15838 {
15839 PyThreadState* __tstate = wxPyBeginAllowThreads();
15840 result = (int)(arg1)->GetWidth();
15841
15842 wxPyEndAllowThreads(__tstate);
15843 if (PyErr_Occurred()) SWIG_fail;
15844 }
15845 resultobj = SWIG_FromInt((int)result);
15846 return resultobj;
15847 fail:
15848 return NULL;
15849 }
15850
15851
15852 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15853 PyObject *resultobj;
15854 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15855 int result;
15856 PyObject * obj0 = 0 ;
15857 char *kwnames[] = {
15858 (char *) "self", NULL
15859 };
15860
15861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15864 {
15865 PyThreadState* __tstate = wxPyBeginAllowThreads();
15866 result = (int)(arg1)->GetHeight();
15867
15868 wxPyEndAllowThreads(__tstate);
15869 if (PyErr_Occurred()) SWIG_fail;
15870 }
15871 resultobj = SWIG_FromInt((int)result);
15872 return resultobj;
15873 fail:
15874 return NULL;
15875 }
15876
15877
15878 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15879 PyObject *obj;
15880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15881 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15882 Py_INCREF(obj);
15883 return Py_BuildValue((char *)"");
15884 }
15885 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj;
15887 wxString const &arg1_defvalue = wxPyEmptyString ;
15888 wxString *arg1 = (wxString *) &arg1_defvalue ;
15889 int arg2 = (int) 0 ;
15890 int arg3 = (int) 0 ;
15891 wxString const &arg4_defvalue = wxPyEmptyString ;
15892 wxString *arg4 = (wxString *) &arg4_defvalue ;
15893 wxMetaFileDC *result;
15894 bool temp1 = False ;
15895 bool temp4 = False ;
15896 PyObject * obj0 = 0 ;
15897 PyObject * obj1 = 0 ;
15898 PyObject * obj2 = 0 ;
15899 PyObject * obj3 = 0 ;
15900 char *kwnames[] = {
15901 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15902 };
15903
15904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15905 if (obj0) {
15906 {
15907 arg1 = wxString_in_helper(obj0);
15908 if (arg1 == NULL) SWIG_fail;
15909 temp1 = True;
15910 }
15911 }
15912 if (obj1) {
15913 arg2 = (int) SWIG_AsInt(obj1);
15914 if (PyErr_Occurred()) SWIG_fail;
15915 }
15916 if (obj2) {
15917 arg3 = (int) SWIG_AsInt(obj2);
15918 if (PyErr_Occurred()) SWIG_fail;
15919 }
15920 if (obj3) {
15921 {
15922 arg4 = wxString_in_helper(obj3);
15923 if (arg4 == NULL) SWIG_fail;
15924 temp4 = True;
15925 }
15926 }
15927 {
15928 PyThreadState* __tstate = wxPyBeginAllowThreads();
15929 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15930
15931 wxPyEndAllowThreads(__tstate);
15932 if (PyErr_Occurred()) SWIG_fail;
15933 }
15934 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15935 {
15936 if (temp1)
15937 delete arg1;
15938 }
15939 {
15940 if (temp4)
15941 delete arg4;
15942 }
15943 return resultobj;
15944 fail:
15945 {
15946 if (temp1)
15947 delete arg1;
15948 }
15949 {
15950 if (temp4)
15951 delete arg4;
15952 }
15953 return NULL;
15954 }
15955
15956
15957 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
15958 PyObject *resultobj;
15959 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
15960 wxMetaFile *result;
15961 PyObject * obj0 = 0 ;
15962 char *kwnames[] = {
15963 (char *) "self", NULL
15964 };
15965
15966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
15967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
15968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15969 {
15970 PyThreadState* __tstate = wxPyBeginAllowThreads();
15971 result = (wxMetaFile *)(arg1)->Close();
15972
15973 wxPyEndAllowThreads(__tstate);
15974 if (PyErr_Occurred()) SWIG_fail;
15975 }
15976 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
15977 return resultobj;
15978 fail:
15979 return NULL;
15980 }
15981
15982
15983 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15984 PyObject *obj;
15985 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15986 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15987 Py_INCREF(obj);
15988 return Py_BuildValue((char *)"");
15989 }
15990 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15991 PyObject *resultobj;
15992 wxPrintData *arg1 = 0 ;
15993 wxPrinterDC *result;
15994 PyObject * obj0 = 0 ;
15995 char *kwnames[] = {
15996 (char *) "printData", NULL
15997 };
15998
15999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16001 SWIG_POINTER_EXCEPTION | 0)) == -1)
16002 SWIG_fail;
16003 if (arg1 == NULL) {
16004 PyErr_SetString(PyExc_TypeError,"null reference");
16005 SWIG_fail;
16006 }
16007 {
16008 PyThreadState* __tstate = wxPyBeginAllowThreads();
16009 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16010
16011 wxPyEndAllowThreads(__tstate);
16012 if (PyErr_Occurred()) SWIG_fail;
16013 }
16014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16015 return resultobj;
16016 fail:
16017 return NULL;
16018 }
16019
16020
16021 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16022 PyObject *obj;
16023 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16024 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16025 Py_INCREF(obj);
16026 return Py_BuildValue((char *)"");
16027 }
16028 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16029 PyObject *resultobj;
16030 int arg1 ;
16031 int arg2 ;
16032 int arg3 = (int) True ;
16033 int arg4 = (int) 1 ;
16034 wxImageList *result;
16035 PyObject * obj0 = 0 ;
16036 PyObject * obj1 = 0 ;
16037 PyObject * obj2 = 0 ;
16038 PyObject * obj3 = 0 ;
16039 char *kwnames[] = {
16040 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16041 };
16042
16043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16044 arg1 = (int) SWIG_AsInt(obj0);
16045 if (PyErr_Occurred()) SWIG_fail;
16046 arg2 = (int) SWIG_AsInt(obj1);
16047 if (PyErr_Occurred()) SWIG_fail;
16048 if (obj2) {
16049 arg3 = (int) SWIG_AsInt(obj2);
16050 if (PyErr_Occurred()) SWIG_fail;
16051 }
16052 if (obj3) {
16053 arg4 = (int) SWIG_AsInt(obj3);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 }
16056 {
16057 PyThreadState* __tstate = wxPyBeginAllowThreads();
16058 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16059
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 {
16064 resultobj = wxPyMake_wxObject(result);
16065 }
16066 return resultobj;
16067 fail:
16068 return NULL;
16069 }
16070
16071
16072 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16073 PyObject *resultobj;
16074 wxImageList *arg1 = (wxImageList *) 0 ;
16075 PyObject * obj0 = 0 ;
16076 char *kwnames[] = {
16077 (char *) "self", NULL
16078 };
16079
16080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16083 {
16084 PyThreadState* __tstate = wxPyBeginAllowThreads();
16085 delete arg1;
16086
16087 wxPyEndAllowThreads(__tstate);
16088 if (PyErr_Occurred()) SWIG_fail;
16089 }
16090 Py_INCREF(Py_None); resultobj = Py_None;
16091 return resultobj;
16092 fail:
16093 return NULL;
16094 }
16095
16096
16097 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16098 PyObject *resultobj;
16099 wxImageList *arg1 = (wxImageList *) 0 ;
16100 wxBitmap *arg2 = 0 ;
16101 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16102 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16103 int result;
16104 PyObject * obj0 = 0 ;
16105 PyObject * obj1 = 0 ;
16106 PyObject * obj2 = 0 ;
16107 char *kwnames[] = {
16108 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16109 };
16110
16111 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16112 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16113 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16114 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16115 SWIG_POINTER_EXCEPTION | 0)) == -1)
16116 SWIG_fail;
16117 if (arg2 == NULL) {
16118 PyErr_SetString(PyExc_TypeError,"null reference");
16119 SWIG_fail;
16120 }
16121 if (obj2) {
16122 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16123 SWIG_POINTER_EXCEPTION | 0)) == -1)
16124 SWIG_fail;
16125 if (arg3 == NULL) {
16126 PyErr_SetString(PyExc_TypeError,"null reference");
16127 SWIG_fail;
16128 }
16129 }
16130 {
16131 PyThreadState* __tstate = wxPyBeginAllowThreads();
16132 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16133
16134 wxPyEndAllowThreads(__tstate);
16135 if (PyErr_Occurred()) SWIG_fail;
16136 }
16137 resultobj = SWIG_FromInt((int)result);
16138 return resultobj;
16139 fail:
16140 return NULL;
16141 }
16142
16143
16144 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16145 PyObject *resultobj;
16146 wxImageList *arg1 = (wxImageList *) 0 ;
16147 wxBitmap *arg2 = 0 ;
16148 wxColour *arg3 = 0 ;
16149 int result;
16150 wxColour temp3 ;
16151 PyObject * obj0 = 0 ;
16152 PyObject * obj1 = 0 ;
16153 PyObject * obj2 = 0 ;
16154 char *kwnames[] = {
16155 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16156 };
16157
16158 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16159 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16161 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16162 SWIG_POINTER_EXCEPTION | 0)) == -1)
16163 SWIG_fail;
16164 if (arg2 == NULL) {
16165 PyErr_SetString(PyExc_TypeError,"null reference");
16166 SWIG_fail;
16167 }
16168 {
16169 arg3 = &temp3;
16170 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16171 }
16172 {
16173 PyThreadState* __tstate = wxPyBeginAllowThreads();
16174 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16175
16176 wxPyEndAllowThreads(__tstate);
16177 if (PyErr_Occurred()) SWIG_fail;
16178 }
16179 resultobj = SWIG_FromInt((int)result);
16180 return resultobj;
16181 fail:
16182 return NULL;
16183 }
16184
16185
16186 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16187 PyObject *resultobj;
16188 wxImageList *arg1 = (wxImageList *) 0 ;
16189 wxIcon *arg2 = 0 ;
16190 int result;
16191 PyObject * obj0 = 0 ;
16192 PyObject * obj1 = 0 ;
16193 char *kwnames[] = {
16194 (char *) "self",(char *) "icon", NULL
16195 };
16196
16197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16200 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16201 SWIG_POINTER_EXCEPTION | 0)) == -1)
16202 SWIG_fail;
16203 if (arg2 == NULL) {
16204 PyErr_SetString(PyExc_TypeError,"null reference");
16205 SWIG_fail;
16206 }
16207 {
16208 PyThreadState* __tstate = wxPyBeginAllowThreads();
16209 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16210
16211 wxPyEndAllowThreads(__tstate);
16212 if (PyErr_Occurred()) SWIG_fail;
16213 }
16214 resultobj = SWIG_FromInt((int)result);
16215 return resultobj;
16216 fail:
16217 return NULL;
16218 }
16219
16220
16221 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16222 PyObject *resultobj;
16223 wxImageList *arg1 = (wxImageList *) 0 ;
16224 int arg2 ;
16225 wxBitmap *arg3 = 0 ;
16226 bool result;
16227 PyObject * obj0 = 0 ;
16228 PyObject * obj1 = 0 ;
16229 PyObject * obj2 = 0 ;
16230 char *kwnames[] = {
16231 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16232 };
16233
16234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16237 arg2 = (int) SWIG_AsInt(obj1);
16238 if (PyErr_Occurred()) SWIG_fail;
16239 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16240 SWIG_POINTER_EXCEPTION | 0)) == -1)
16241 SWIG_fail;
16242 if (arg3 == NULL) {
16243 PyErr_SetString(PyExc_TypeError,"null reference");
16244 SWIG_fail;
16245 }
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16249
16250 wxPyEndAllowThreads(__tstate);
16251 if (PyErr_Occurred()) SWIG_fail;
16252 }
16253 {
16254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16255 }
16256 return resultobj;
16257 fail:
16258 return NULL;
16259 }
16260
16261
16262 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj;
16264 wxImageList *arg1 = (wxImageList *) 0 ;
16265 int arg2 ;
16266 wxDC *arg3 = 0 ;
16267 int arg4 ;
16268 int arg5 ;
16269 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16270 bool arg7 = (bool) (bool)False ;
16271 bool result;
16272 PyObject * obj0 = 0 ;
16273 PyObject * obj1 = 0 ;
16274 PyObject * obj2 = 0 ;
16275 PyObject * obj3 = 0 ;
16276 PyObject * obj4 = 0 ;
16277 PyObject * obj5 = 0 ;
16278 PyObject * obj6 = 0 ;
16279 char *kwnames[] = {
16280 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16281 };
16282
16283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16286 arg2 = (int) SWIG_AsInt(obj1);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16289 SWIG_POINTER_EXCEPTION | 0)) == -1)
16290 SWIG_fail;
16291 if (arg3 == NULL) {
16292 PyErr_SetString(PyExc_TypeError,"null reference");
16293 SWIG_fail;
16294 }
16295 arg4 = (int) SWIG_AsInt(obj3);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 arg5 = (int) SWIG_AsInt(obj4);
16298 if (PyErr_Occurred()) SWIG_fail;
16299 if (obj5) {
16300 arg6 = (int) SWIG_AsInt(obj5);
16301 if (PyErr_Occurred()) SWIG_fail;
16302 }
16303 if (obj6) {
16304 arg7 = (bool const) SWIG_AsBool(obj6);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 }
16307 {
16308 PyThreadState* __tstate = wxPyBeginAllowThreads();
16309 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16310
16311 wxPyEndAllowThreads(__tstate);
16312 if (PyErr_Occurred()) SWIG_fail;
16313 }
16314 {
16315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16316 }
16317 return resultobj;
16318 fail:
16319 return NULL;
16320 }
16321
16322
16323 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16324 PyObject *resultobj;
16325 wxImageList *arg1 = (wxImageList *) 0 ;
16326 int result;
16327 PyObject * obj0 = 0 ;
16328 char *kwnames[] = {
16329 (char *) "self", NULL
16330 };
16331
16332 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16333 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16334 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16335 {
16336 PyThreadState* __tstate = wxPyBeginAllowThreads();
16337 result = (int)(arg1)->GetImageCount();
16338
16339 wxPyEndAllowThreads(__tstate);
16340 if (PyErr_Occurred()) SWIG_fail;
16341 }
16342 resultobj = SWIG_FromInt((int)result);
16343 return resultobj;
16344 fail:
16345 return NULL;
16346 }
16347
16348
16349 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16350 PyObject *resultobj;
16351 wxImageList *arg1 = (wxImageList *) 0 ;
16352 int arg2 ;
16353 bool result;
16354 PyObject * obj0 = 0 ;
16355 PyObject * obj1 = 0 ;
16356 char *kwnames[] = {
16357 (char *) "self",(char *) "index", NULL
16358 };
16359
16360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16363 arg2 = (int) SWIG_AsInt(obj1);
16364 if (PyErr_Occurred()) SWIG_fail;
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 result = (bool)(arg1)->Remove(arg2);
16368
16369 wxPyEndAllowThreads(__tstate);
16370 if (PyErr_Occurred()) SWIG_fail;
16371 }
16372 {
16373 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16374 }
16375 return resultobj;
16376 fail:
16377 return NULL;
16378 }
16379
16380
16381 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj;
16383 wxImageList *arg1 = (wxImageList *) 0 ;
16384 bool result;
16385 PyObject * obj0 = 0 ;
16386 char *kwnames[] = {
16387 (char *) "self", NULL
16388 };
16389
16390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16393 {
16394 PyThreadState* __tstate = wxPyBeginAllowThreads();
16395 result = (bool)(arg1)->RemoveAll();
16396
16397 wxPyEndAllowThreads(__tstate);
16398 if (PyErr_Occurred()) SWIG_fail;
16399 }
16400 {
16401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16402 }
16403 return resultobj;
16404 fail:
16405 return NULL;
16406 }
16407
16408
16409 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16410 PyObject *resultobj;
16411 wxImageList *arg1 = (wxImageList *) 0 ;
16412 int arg2 ;
16413 int *arg3 = 0 ;
16414 int *arg4 = 0 ;
16415 int temp3 ;
16416 int temp4 ;
16417 PyObject * obj0 = 0 ;
16418 PyObject * obj1 = 0 ;
16419 char *kwnames[] = {
16420 (char *) "self",(char *) "index", NULL
16421 };
16422
16423 arg3 = &temp3;
16424 arg4 = &temp4;
16425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16428 arg2 = (int) SWIG_AsInt(obj1);
16429 if (PyErr_Occurred()) SWIG_fail;
16430 {
16431 PyThreadState* __tstate = wxPyBeginAllowThreads();
16432 (arg1)->GetSize(arg2,*arg3,*arg4);
16433
16434 wxPyEndAllowThreads(__tstate);
16435 if (PyErr_Occurred()) SWIG_fail;
16436 }
16437 Py_INCREF(Py_None); resultobj = Py_None;
16438 {
16439 PyObject *o = PyInt_FromLong((long) (*arg3));
16440 resultobj = t_output_helper(resultobj,o);
16441 }
16442 {
16443 PyObject *o = PyInt_FromLong((long) (*arg4));
16444 resultobj = t_output_helper(resultobj,o);
16445 }
16446 return resultobj;
16447 fail:
16448 return NULL;
16449 }
16450
16451
16452 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16453 PyObject *obj;
16454 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16455 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16456 Py_INCREF(obj);
16457 return Py_BuildValue((char *)"");
16458 }
16459 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16460 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16461 return 1;
16462 }
16463
16464
16465 static PyObject *_wrap_NORMAL_FONT_get() {
16466 PyObject *pyobj;
16467
16468 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16469 return pyobj;
16470 }
16471
16472
16473 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16474 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16475 return 1;
16476 }
16477
16478
16479 static PyObject *_wrap_SMALL_FONT_get() {
16480 PyObject *pyobj;
16481
16482 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16483 return pyobj;
16484 }
16485
16486
16487 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16488 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16489 return 1;
16490 }
16491
16492
16493 static PyObject *_wrap_ITALIC_FONT_get() {
16494 PyObject *pyobj;
16495
16496 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16497 return pyobj;
16498 }
16499
16500
16501 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16502 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16503 return 1;
16504 }
16505
16506
16507 static PyObject *_wrap_SWISS_FONT_get() {
16508 PyObject *pyobj;
16509
16510 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16511 return pyobj;
16512 }
16513
16514
16515 static int _wrap_RED_PEN_set(PyObject *_val) {
16516 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16517 return 1;
16518 }
16519
16520
16521 static PyObject *_wrap_RED_PEN_get() {
16522 PyObject *pyobj;
16523
16524 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16525 return pyobj;
16526 }
16527
16528
16529 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16530 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16531 return 1;
16532 }
16533
16534
16535 static PyObject *_wrap_CYAN_PEN_get() {
16536 PyObject *pyobj;
16537
16538 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16539 return pyobj;
16540 }
16541
16542
16543 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16544 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16545 return 1;
16546 }
16547
16548
16549 static PyObject *_wrap_GREEN_PEN_get() {
16550 PyObject *pyobj;
16551
16552 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16553 return pyobj;
16554 }
16555
16556
16557 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16558 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16559 return 1;
16560 }
16561
16562
16563 static PyObject *_wrap_BLACK_PEN_get() {
16564 PyObject *pyobj;
16565
16566 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16567 return pyobj;
16568 }
16569
16570
16571 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16572 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16573 return 1;
16574 }
16575
16576
16577 static PyObject *_wrap_WHITE_PEN_get() {
16578 PyObject *pyobj;
16579
16580 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16581 return pyobj;
16582 }
16583
16584
16585 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16586 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16587 return 1;
16588 }
16589
16590
16591 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16592 PyObject *pyobj;
16593
16594 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16595 return pyobj;
16596 }
16597
16598
16599 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16600 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16601 return 1;
16602 }
16603
16604
16605 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16606 PyObject *pyobj;
16607
16608 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16609 return pyobj;
16610 }
16611
16612
16613 static int _wrap_GREY_PEN_set(PyObject *_val) {
16614 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16615 return 1;
16616 }
16617
16618
16619 static PyObject *_wrap_GREY_PEN_get() {
16620 PyObject *pyobj;
16621
16622 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16623 return pyobj;
16624 }
16625
16626
16627 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16628 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16629 return 1;
16630 }
16631
16632
16633 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16634 PyObject *pyobj;
16635
16636 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16637 return pyobj;
16638 }
16639
16640
16641 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16642 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16643 return 1;
16644 }
16645
16646
16647 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16648 PyObject *pyobj;
16649
16650 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16651 return pyobj;
16652 }
16653
16654
16655 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16656 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16657 return 1;
16658 }
16659
16660
16661 static PyObject *_wrap_BLUE_BRUSH_get() {
16662 PyObject *pyobj;
16663
16664 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16665 return pyobj;
16666 }
16667
16668
16669 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16670 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16671 return 1;
16672 }
16673
16674
16675 static PyObject *_wrap_GREEN_BRUSH_get() {
16676 PyObject *pyobj;
16677
16678 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16679 return pyobj;
16680 }
16681
16682
16683 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16684 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16685 return 1;
16686 }
16687
16688
16689 static PyObject *_wrap_WHITE_BRUSH_get() {
16690 PyObject *pyobj;
16691
16692 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16693 return pyobj;
16694 }
16695
16696
16697 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16698 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16699 return 1;
16700 }
16701
16702
16703 static PyObject *_wrap_BLACK_BRUSH_get() {
16704 PyObject *pyobj;
16705
16706 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16707 return pyobj;
16708 }
16709
16710
16711 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16712 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16713 return 1;
16714 }
16715
16716
16717 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16718 PyObject *pyobj;
16719
16720 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16721 return pyobj;
16722 }
16723
16724
16725 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16726 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16727 return 1;
16728 }
16729
16730
16731 static PyObject *_wrap_CYAN_BRUSH_get() {
16732 PyObject *pyobj;
16733
16734 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16735 return pyobj;
16736 }
16737
16738
16739 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16740 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16741 return 1;
16742 }
16743
16744
16745 static PyObject *_wrap_RED_BRUSH_get() {
16746 PyObject *pyobj;
16747
16748 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16749 return pyobj;
16750 }
16751
16752
16753 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16754 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16755 return 1;
16756 }
16757
16758
16759 static PyObject *_wrap_GREY_BRUSH_get() {
16760 PyObject *pyobj;
16761
16762 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16763 return pyobj;
16764 }
16765
16766
16767 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16768 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16769 return 1;
16770 }
16771
16772
16773 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16774 PyObject *pyobj;
16775
16776 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16777 return pyobj;
16778 }
16779
16780
16781 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16782 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16783 return 1;
16784 }
16785
16786
16787 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16788 PyObject *pyobj;
16789
16790 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16791 return pyobj;
16792 }
16793
16794
16795 static int _wrap_BLACK_set(PyObject *_val) {
16796 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16797 return 1;
16798 }
16799
16800
16801 static PyObject *_wrap_BLACK_get() {
16802 PyObject *pyobj;
16803
16804 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16805 return pyobj;
16806 }
16807
16808
16809 static int _wrap_WHITE_set(PyObject *_val) {
16810 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16811 return 1;
16812 }
16813
16814
16815 static PyObject *_wrap_WHITE_get() {
16816 PyObject *pyobj;
16817
16818 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16819 return pyobj;
16820 }
16821
16822
16823 static int _wrap_RED_set(PyObject *_val) {
16824 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16825 return 1;
16826 }
16827
16828
16829 static PyObject *_wrap_RED_get() {
16830 PyObject *pyobj;
16831
16832 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16833 return pyobj;
16834 }
16835
16836
16837 static int _wrap_BLUE_set(PyObject *_val) {
16838 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16839 return 1;
16840 }
16841
16842
16843 static PyObject *_wrap_BLUE_get() {
16844 PyObject *pyobj;
16845
16846 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16847 return pyobj;
16848 }
16849
16850
16851 static int _wrap_GREEN_set(PyObject *_val) {
16852 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16853 return 1;
16854 }
16855
16856
16857 static PyObject *_wrap_GREEN_get() {
16858 PyObject *pyobj;
16859
16860 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16861 return pyobj;
16862 }
16863
16864
16865 static int _wrap_CYAN_set(PyObject *_val) {
16866 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16867 return 1;
16868 }
16869
16870
16871 static PyObject *_wrap_CYAN_get() {
16872 PyObject *pyobj;
16873
16874 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16875 return pyobj;
16876 }
16877
16878
16879 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16880 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16881 return 1;
16882 }
16883
16884
16885 static PyObject *_wrap_LIGHT_GREY_get() {
16886 PyObject *pyobj;
16887
16888 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16889 return pyobj;
16890 }
16891
16892
16893 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16894 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16895 return 1;
16896 }
16897
16898
16899 static PyObject *_wrap_STANDARD_CURSOR_get() {
16900 PyObject *pyobj;
16901
16902 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16903 return pyobj;
16904 }
16905
16906
16907 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16908 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16909 return 1;
16910 }
16911
16912
16913 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16914 PyObject *pyobj;
16915
16916 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16917 return pyobj;
16918 }
16919
16920
16921 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16922 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16923 return 1;
16924 }
16925
16926
16927 static PyObject *_wrap_CROSS_CURSOR_get() {
16928 PyObject *pyobj;
16929
16930 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16931 return pyobj;
16932 }
16933
16934
16935 static int _wrap_NullBitmap_set(PyObject *_val) {
16936 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16937 return 1;
16938 }
16939
16940
16941 static PyObject *_wrap_NullBitmap_get() {
16942 PyObject *pyobj;
16943
16944 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16945 return pyobj;
16946 }
16947
16948
16949 static int _wrap_NullIcon_set(PyObject *_val) {
16950 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16951 return 1;
16952 }
16953
16954
16955 static PyObject *_wrap_NullIcon_get() {
16956 PyObject *pyobj;
16957
16958 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16959 return pyobj;
16960 }
16961
16962
16963 static int _wrap_NullCursor_set(PyObject *_val) {
16964 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16965 return 1;
16966 }
16967
16968
16969 static PyObject *_wrap_NullCursor_get() {
16970 PyObject *pyobj;
16971
16972 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16973 return pyobj;
16974 }
16975
16976
16977 static int _wrap_NullPen_set(PyObject *_val) {
16978 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16979 return 1;
16980 }
16981
16982
16983 static PyObject *_wrap_NullPen_get() {
16984 PyObject *pyobj;
16985
16986 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16987 return pyobj;
16988 }
16989
16990
16991 static int _wrap_NullBrush_set(PyObject *_val) {
16992 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16993 return 1;
16994 }
16995
16996
16997 static PyObject *_wrap_NullBrush_get() {
16998 PyObject *pyobj;
16999
17000 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17001 return pyobj;
17002 }
17003
17004
17005 static int _wrap_NullPalette_set(PyObject *_val) {
17006 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17007 return 1;
17008 }
17009
17010
17011 static PyObject *_wrap_NullPalette_get() {
17012 PyObject *pyobj;
17013
17014 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17015 return pyobj;
17016 }
17017
17018
17019 static int _wrap_NullFont_set(PyObject *_val) {
17020 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17021 return 1;
17022 }
17023
17024
17025 static PyObject *_wrap_NullFont_get() {
17026 PyObject *pyobj;
17027
17028 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17029 return pyobj;
17030 }
17031
17032
17033 static int _wrap_NullColour_set(PyObject *_val) {
17034 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17035 return 1;
17036 }
17037
17038
17039 static PyObject *_wrap_NullColour_get() {
17040 PyObject *pyobj;
17041
17042 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17043 return pyobj;
17044 }
17045
17046
17047 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17048 PyObject *resultobj;
17049 wxPenList *arg1 = (wxPenList *) 0 ;
17050 wxPen *arg2 = (wxPen *) 0 ;
17051 PyObject * obj0 = 0 ;
17052 PyObject * obj1 = 0 ;
17053 char *kwnames[] = {
17054 (char *) "self",(char *) "pen", NULL
17055 };
17056
17057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 (arg1)->AddPen(arg2);
17065
17066 wxPyEndAllowThreads(__tstate);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 }
17069 Py_INCREF(Py_None); resultobj = Py_None;
17070 return resultobj;
17071 fail:
17072 return NULL;
17073 }
17074
17075
17076 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17077 PyObject *resultobj;
17078 wxPenList *arg1 = (wxPenList *) 0 ;
17079 wxColour *arg2 = 0 ;
17080 int arg3 ;
17081 int arg4 ;
17082 wxPen *result;
17083 wxColour temp2 ;
17084 PyObject * obj0 = 0 ;
17085 PyObject * obj1 = 0 ;
17086 PyObject * obj2 = 0 ;
17087 PyObject * obj3 = 0 ;
17088 char *kwnames[] = {
17089 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17090 };
17091
17092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17095 {
17096 arg2 = &temp2;
17097 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17098 }
17099 arg3 = (int) SWIG_AsInt(obj2);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 arg4 = (int) SWIG_AsInt(obj3);
17102 if (PyErr_Occurred()) SWIG_fail;
17103 {
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17106
17107 wxPyEndAllowThreads(__tstate);
17108 if (PyErr_Occurred()) SWIG_fail;
17109 }
17110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17111 return resultobj;
17112 fail:
17113 return NULL;
17114 }
17115
17116
17117 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17118 PyObject *resultobj;
17119 wxPenList *arg1 = (wxPenList *) 0 ;
17120 wxPen *arg2 = (wxPen *) 0 ;
17121 PyObject * obj0 = 0 ;
17122 PyObject * obj1 = 0 ;
17123 char *kwnames[] = {
17124 (char *) "self",(char *) "pen", NULL
17125 };
17126
17127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17130 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17132 {
17133 PyThreadState* __tstate = wxPyBeginAllowThreads();
17134 (arg1)->RemovePen(arg2);
17135
17136 wxPyEndAllowThreads(__tstate);
17137 if (PyErr_Occurred()) SWIG_fail;
17138 }
17139 Py_INCREF(Py_None); resultobj = Py_None;
17140 return resultobj;
17141 fail:
17142 return NULL;
17143 }
17144
17145
17146 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17147 PyObject *resultobj;
17148 wxPenList *arg1 = (wxPenList *) 0 ;
17149 int result;
17150 PyObject * obj0 = 0 ;
17151 char *kwnames[] = {
17152 (char *) "self", NULL
17153 };
17154
17155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17158 {
17159 PyThreadState* __tstate = wxPyBeginAllowThreads();
17160 result = (int)(arg1)->GetCount();
17161
17162 wxPyEndAllowThreads(__tstate);
17163 if (PyErr_Occurred()) SWIG_fail;
17164 }
17165 resultobj = SWIG_FromInt((int)result);
17166 return resultobj;
17167 fail:
17168 return NULL;
17169 }
17170
17171
17172 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17173 PyObject *obj;
17174 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17175 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17176 Py_INCREF(obj);
17177 return Py_BuildValue((char *)"");
17178 }
17179 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17180 PyObject *resultobj;
17181 wxBrushList *arg1 = (wxBrushList *) 0 ;
17182 wxBrush *arg2 = (wxBrush *) 0 ;
17183 PyObject * obj0 = 0 ;
17184 PyObject * obj1 = 0 ;
17185 char *kwnames[] = {
17186 (char *) "self",(char *) "brush", NULL
17187 };
17188
17189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17192 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17194 {
17195 PyThreadState* __tstate = wxPyBeginAllowThreads();
17196 (arg1)->AddBrush(arg2);
17197
17198 wxPyEndAllowThreads(__tstate);
17199 if (PyErr_Occurred()) SWIG_fail;
17200 }
17201 Py_INCREF(Py_None); resultobj = Py_None;
17202 return resultobj;
17203 fail:
17204 return NULL;
17205 }
17206
17207
17208 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17209 PyObject *resultobj;
17210 wxBrushList *arg1 = (wxBrushList *) 0 ;
17211 wxColour *arg2 = 0 ;
17212 int arg3 ;
17213 wxBrush *result;
17214 wxColour temp2 ;
17215 PyObject * obj0 = 0 ;
17216 PyObject * obj1 = 0 ;
17217 PyObject * obj2 = 0 ;
17218 char *kwnames[] = {
17219 (char *) "self",(char *) "colour",(char *) "style", NULL
17220 };
17221
17222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17225 {
17226 arg2 = &temp2;
17227 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17228 }
17229 arg3 = (int) SWIG_AsInt(obj2);
17230 if (PyErr_Occurred()) SWIG_fail;
17231 {
17232 PyThreadState* __tstate = wxPyBeginAllowThreads();
17233 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17234
17235 wxPyEndAllowThreads(__tstate);
17236 if (PyErr_Occurred()) SWIG_fail;
17237 }
17238 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17239 return resultobj;
17240 fail:
17241 return NULL;
17242 }
17243
17244
17245 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17246 PyObject *resultobj;
17247 wxBrushList *arg1 = (wxBrushList *) 0 ;
17248 wxBrush *arg2 = (wxBrush *) 0 ;
17249 PyObject * obj0 = 0 ;
17250 PyObject * obj1 = 0 ;
17251 char *kwnames[] = {
17252 (char *) "self",(char *) "brush", NULL
17253 };
17254
17255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17258 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17259 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17260 {
17261 PyThreadState* __tstate = wxPyBeginAllowThreads();
17262 (arg1)->RemoveBrush(arg2);
17263
17264 wxPyEndAllowThreads(__tstate);
17265 if (PyErr_Occurred()) SWIG_fail;
17266 }
17267 Py_INCREF(Py_None); resultobj = Py_None;
17268 return resultobj;
17269 fail:
17270 return NULL;
17271 }
17272
17273
17274 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17275 PyObject *resultobj;
17276 wxBrushList *arg1 = (wxBrushList *) 0 ;
17277 int result;
17278 PyObject * obj0 = 0 ;
17279 char *kwnames[] = {
17280 (char *) "self", NULL
17281 };
17282
17283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 result = (int)(arg1)->GetCount();
17289
17290 wxPyEndAllowThreads(__tstate);
17291 if (PyErr_Occurred()) SWIG_fail;
17292 }
17293 resultobj = SWIG_FromInt((int)result);
17294 return resultobj;
17295 fail:
17296 return NULL;
17297 }
17298
17299
17300 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17301 PyObject *obj;
17302 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17303 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17304 Py_INCREF(obj);
17305 return Py_BuildValue((char *)"");
17306 }
17307 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17308 PyObject *resultobj;
17309 wxColourDatabase *result;
17310 char *kwnames[] = {
17311 NULL
17312 };
17313
17314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17315 {
17316 PyThreadState* __tstate = wxPyBeginAllowThreads();
17317 result = (wxColourDatabase *)new wxColourDatabase();
17318
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17323 return resultobj;
17324 fail:
17325 return NULL;
17326 }
17327
17328
17329 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17330 PyObject *resultobj;
17331 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17332 PyObject * obj0 = 0 ;
17333 char *kwnames[] = {
17334 (char *) "self", NULL
17335 };
17336
17337 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17338 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17339 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17340 {
17341 PyThreadState* __tstate = wxPyBeginAllowThreads();
17342 delete arg1;
17343
17344 wxPyEndAllowThreads(__tstate);
17345 if (PyErr_Occurred()) SWIG_fail;
17346 }
17347 Py_INCREF(Py_None); resultobj = Py_None;
17348 return resultobj;
17349 fail:
17350 return NULL;
17351 }
17352
17353
17354 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17355 PyObject *resultobj;
17356 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17357 wxString *arg2 = 0 ;
17358 wxColour result;
17359 bool temp2 = False ;
17360 PyObject * obj0 = 0 ;
17361 PyObject * obj1 = 0 ;
17362 char *kwnames[] = {
17363 (char *) "self",(char *) "name", NULL
17364 };
17365
17366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17369 {
17370 arg2 = wxString_in_helper(obj1);
17371 if (arg2 == NULL) SWIG_fail;
17372 temp2 = True;
17373 }
17374 {
17375 PyThreadState* __tstate = wxPyBeginAllowThreads();
17376 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17377
17378 wxPyEndAllowThreads(__tstate);
17379 if (PyErr_Occurred()) SWIG_fail;
17380 }
17381 {
17382 wxColour * resultptr;
17383 resultptr = new wxColour((wxColour &) result);
17384 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17385 }
17386 {
17387 if (temp2)
17388 delete arg2;
17389 }
17390 return resultobj;
17391 fail:
17392 {
17393 if (temp2)
17394 delete arg2;
17395 }
17396 return NULL;
17397 }
17398
17399
17400 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17401 PyObject *resultobj;
17402 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17403 wxColour *arg2 = 0 ;
17404 wxString result;
17405 wxColour temp2 ;
17406 PyObject * obj0 = 0 ;
17407 PyObject * obj1 = 0 ;
17408 char *kwnames[] = {
17409 (char *) "self",(char *) "colour", NULL
17410 };
17411
17412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17415 {
17416 arg2 = &temp2;
17417 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17418 }
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17422
17423 wxPyEndAllowThreads(__tstate);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 {
17427 #if wxUSE_UNICODE
17428 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17429 #else
17430 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17431 #endif
17432 }
17433 return resultobj;
17434 fail:
17435 return NULL;
17436 }
17437
17438
17439 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17440 PyObject *resultobj;
17441 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17442 wxString *arg2 = 0 ;
17443 wxColour *arg3 = 0 ;
17444 bool temp2 = False ;
17445 wxColour temp3 ;
17446 PyObject * obj0 = 0 ;
17447 PyObject * obj1 = 0 ;
17448 PyObject * obj2 = 0 ;
17449 char *kwnames[] = {
17450 (char *) "self",(char *) "name",(char *) "colour", NULL
17451 };
17452
17453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17456 {
17457 arg2 = wxString_in_helper(obj1);
17458 if (arg2 == NULL) SWIG_fail;
17459 temp2 = True;
17460 }
17461 {
17462 arg3 = &temp3;
17463 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17464 }
17465 {
17466 PyThreadState* __tstate = wxPyBeginAllowThreads();
17467 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17468
17469 wxPyEndAllowThreads(__tstate);
17470 if (PyErr_Occurred()) SWIG_fail;
17471 }
17472 Py_INCREF(Py_None); resultobj = Py_None;
17473 {
17474 if (temp2)
17475 delete arg2;
17476 }
17477 return resultobj;
17478 fail:
17479 {
17480 if (temp2)
17481 delete arg2;
17482 }
17483 return NULL;
17484 }
17485
17486
17487 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17488 PyObject *resultobj;
17489 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17490 wxString *arg2 = 0 ;
17491 int arg3 ;
17492 int arg4 ;
17493 int arg5 ;
17494 bool temp2 = False ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 PyObject * obj2 = 0 ;
17498 PyObject * obj3 = 0 ;
17499 PyObject * obj4 = 0 ;
17500 char *kwnames[] = {
17501 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17502 };
17503
17504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17507 {
17508 arg2 = wxString_in_helper(obj1);
17509 if (arg2 == NULL) SWIG_fail;
17510 temp2 = True;
17511 }
17512 arg3 = (int) SWIG_AsInt(obj2);
17513 if (PyErr_Occurred()) SWIG_fail;
17514 arg4 = (int) SWIG_AsInt(obj3);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 arg5 = (int) SWIG_AsInt(obj4);
17517 if (PyErr_Occurred()) SWIG_fail;
17518 {
17519 PyThreadState* __tstate = wxPyBeginAllowThreads();
17520 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17521
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 Py_INCREF(Py_None); resultobj = Py_None;
17526 {
17527 if (temp2)
17528 delete arg2;
17529 }
17530 return resultobj;
17531 fail:
17532 {
17533 if (temp2)
17534 delete arg2;
17535 }
17536 return NULL;
17537 }
17538
17539
17540 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17541 PyObject *obj;
17542 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17543 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17544 Py_INCREF(obj);
17545 return Py_BuildValue((char *)"");
17546 }
17547 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17548 PyObject *resultobj;
17549 wxFontList *arg1 = (wxFontList *) 0 ;
17550 wxFont *arg2 = (wxFont *) 0 ;
17551 PyObject * obj0 = 0 ;
17552 PyObject * obj1 = 0 ;
17553 char *kwnames[] = {
17554 (char *) "self",(char *) "font", NULL
17555 };
17556
17557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17560 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17562 {
17563 PyThreadState* __tstate = wxPyBeginAllowThreads();
17564 (arg1)->AddFont(arg2);
17565
17566 wxPyEndAllowThreads(__tstate);
17567 if (PyErr_Occurred()) SWIG_fail;
17568 }
17569 Py_INCREF(Py_None); resultobj = Py_None;
17570 return resultobj;
17571 fail:
17572 return NULL;
17573 }
17574
17575
17576 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17577 PyObject *resultobj;
17578 wxFontList *arg1 = (wxFontList *) 0 ;
17579 int arg2 ;
17580 int arg3 ;
17581 int arg4 ;
17582 int arg5 ;
17583 bool arg6 = (bool) False ;
17584 wxString const &arg7_defvalue = wxPyEmptyString ;
17585 wxString *arg7 = (wxString *) &arg7_defvalue ;
17586 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17587 wxFont *result;
17588 bool temp7 = False ;
17589 PyObject * obj0 = 0 ;
17590 PyObject * obj1 = 0 ;
17591 PyObject * obj2 = 0 ;
17592 PyObject * obj3 = 0 ;
17593 PyObject * obj4 = 0 ;
17594 PyObject * obj5 = 0 ;
17595 PyObject * obj6 = 0 ;
17596 PyObject * obj7 = 0 ;
17597 char *kwnames[] = {
17598 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17599 };
17600
17601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17604 arg2 = (int) SWIG_AsInt(obj1);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 arg3 = (int) SWIG_AsInt(obj2);
17607 if (PyErr_Occurred()) SWIG_fail;
17608 arg4 = (int) SWIG_AsInt(obj3);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 arg5 = (int) SWIG_AsInt(obj4);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 if (obj5) {
17613 arg6 = (bool) SWIG_AsBool(obj5);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 }
17616 if (obj6) {
17617 {
17618 arg7 = wxString_in_helper(obj6);
17619 if (arg7 == NULL) SWIG_fail;
17620 temp7 = True;
17621 }
17622 }
17623 if (obj7) {
17624 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17625 if (PyErr_Occurred()) SWIG_fail;
17626 }
17627 {
17628 PyThreadState* __tstate = wxPyBeginAllowThreads();
17629 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17630
17631 wxPyEndAllowThreads(__tstate);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 }
17634 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17635 {
17636 if (temp7)
17637 delete arg7;
17638 }
17639 return resultobj;
17640 fail:
17641 {
17642 if (temp7)
17643 delete arg7;
17644 }
17645 return NULL;
17646 }
17647
17648
17649 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17650 PyObject *resultobj;
17651 wxFontList *arg1 = (wxFontList *) 0 ;
17652 wxFont *arg2 = (wxFont *) 0 ;
17653 PyObject * obj0 = 0 ;
17654 PyObject * obj1 = 0 ;
17655 char *kwnames[] = {
17656 (char *) "self",(char *) "font", NULL
17657 };
17658
17659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17662 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 (arg1)->RemoveFont(arg2);
17667
17668 wxPyEndAllowThreads(__tstate);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 Py_INCREF(Py_None); resultobj = Py_None;
17672 return resultobj;
17673 fail:
17674 return NULL;
17675 }
17676
17677
17678 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17679 PyObject *resultobj;
17680 wxFontList *arg1 = (wxFontList *) 0 ;
17681 int result;
17682 PyObject * obj0 = 0 ;
17683 char *kwnames[] = {
17684 (char *) "self", NULL
17685 };
17686
17687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17690 {
17691 PyThreadState* __tstate = wxPyBeginAllowThreads();
17692 result = (int)(arg1)->GetCount();
17693
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 resultobj = SWIG_FromInt((int)result);
17698 return resultobj;
17699 fail:
17700 return NULL;
17701 }
17702
17703
17704 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17705 PyObject *obj;
17706 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17707 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17708 Py_INCREF(obj);
17709 return Py_BuildValue((char *)"");
17710 }
17711 static int _wrap_TheFontList_set(PyObject *_val) {
17712 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17713 return 1;
17714 }
17715
17716
17717 static PyObject *_wrap_TheFontList_get() {
17718 PyObject *pyobj;
17719
17720 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17721 return pyobj;
17722 }
17723
17724
17725 static int _wrap_ThePenList_set(PyObject *_val) {
17726 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17727 return 1;
17728 }
17729
17730
17731 static PyObject *_wrap_ThePenList_get() {
17732 PyObject *pyobj;
17733
17734 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17735 return pyobj;
17736 }
17737
17738
17739 static int _wrap_TheBrushList_set(PyObject *_val) {
17740 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17741 return 1;
17742 }
17743
17744
17745 static PyObject *_wrap_TheBrushList_get() {
17746 PyObject *pyobj;
17747
17748 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17749 return pyobj;
17750 }
17751
17752
17753 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17754 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17755 return 1;
17756 }
17757
17758
17759 static PyObject *_wrap_TheColourDatabase_get() {
17760 PyObject *pyobj;
17761
17762 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17763 return pyobj;
17764 }
17765
17766
17767 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17768 PyObject *resultobj;
17769 wxEffects *result;
17770 char *kwnames[] = {
17771 NULL
17772 };
17773
17774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17775 {
17776 PyThreadState* __tstate = wxPyBeginAllowThreads();
17777 result = (wxEffects *)new wxEffects();
17778
17779 wxPyEndAllowThreads(__tstate);
17780 if (PyErr_Occurred()) SWIG_fail;
17781 }
17782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17783 return resultobj;
17784 fail:
17785 return NULL;
17786 }
17787
17788
17789 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17790 PyObject *resultobj;
17791 wxEffects *arg1 = (wxEffects *) 0 ;
17792 wxColour result;
17793 PyObject * obj0 = 0 ;
17794 char *kwnames[] = {
17795 (char *) "self", NULL
17796 };
17797
17798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17801 {
17802 PyThreadState* __tstate = wxPyBeginAllowThreads();
17803 result = ((wxEffects const *)arg1)->GetHighlightColour();
17804
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 {
17809 wxColour * resultptr;
17810 resultptr = new wxColour((wxColour &) result);
17811 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17812 }
17813 return resultobj;
17814 fail:
17815 return NULL;
17816 }
17817
17818
17819 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17820 PyObject *resultobj;
17821 wxEffects *arg1 = (wxEffects *) 0 ;
17822 wxColour result;
17823 PyObject * obj0 = 0 ;
17824 char *kwnames[] = {
17825 (char *) "self", NULL
17826 };
17827
17828 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17829 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17830 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17831 {
17832 PyThreadState* __tstate = wxPyBeginAllowThreads();
17833 result = ((wxEffects const *)arg1)->GetLightShadow();
17834
17835 wxPyEndAllowThreads(__tstate);
17836 if (PyErr_Occurred()) SWIG_fail;
17837 }
17838 {
17839 wxColour * resultptr;
17840 resultptr = new wxColour((wxColour &) result);
17841 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17842 }
17843 return resultobj;
17844 fail:
17845 return NULL;
17846 }
17847
17848
17849 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj;
17851 wxEffects *arg1 = (wxEffects *) 0 ;
17852 wxColour result;
17853 PyObject * obj0 = 0 ;
17854 char *kwnames[] = {
17855 (char *) "self", NULL
17856 };
17857
17858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17861 {
17862 PyThreadState* __tstate = wxPyBeginAllowThreads();
17863 result = ((wxEffects const *)arg1)->GetFaceColour();
17864
17865 wxPyEndAllowThreads(__tstate);
17866 if (PyErr_Occurred()) SWIG_fail;
17867 }
17868 {
17869 wxColour * resultptr;
17870 resultptr = new wxColour((wxColour &) result);
17871 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17872 }
17873 return resultobj;
17874 fail:
17875 return NULL;
17876 }
17877
17878
17879 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17880 PyObject *resultobj;
17881 wxEffects *arg1 = (wxEffects *) 0 ;
17882 wxColour result;
17883 PyObject * obj0 = 0 ;
17884 char *kwnames[] = {
17885 (char *) "self", NULL
17886 };
17887
17888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17891 {
17892 PyThreadState* __tstate = wxPyBeginAllowThreads();
17893 result = ((wxEffects const *)arg1)->GetMediumShadow();
17894
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 {
17899 wxColour * resultptr;
17900 resultptr = new wxColour((wxColour &) result);
17901 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17902 }
17903 return resultobj;
17904 fail:
17905 return NULL;
17906 }
17907
17908
17909 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17910 PyObject *resultobj;
17911 wxEffects *arg1 = (wxEffects *) 0 ;
17912 wxColour result;
17913 PyObject * obj0 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 {
17922 PyThreadState* __tstate = wxPyBeginAllowThreads();
17923 result = ((wxEffects const *)arg1)->GetDarkShadow();
17924
17925 wxPyEndAllowThreads(__tstate);
17926 if (PyErr_Occurred()) SWIG_fail;
17927 }
17928 {
17929 wxColour * resultptr;
17930 resultptr = new wxColour((wxColour &) result);
17931 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17932 }
17933 return resultobj;
17934 fail:
17935 return NULL;
17936 }
17937
17938
17939 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17940 PyObject *resultobj;
17941 wxEffects *arg1 = (wxEffects *) 0 ;
17942 wxColour *arg2 = 0 ;
17943 wxColour temp2 ;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 char *kwnames[] = {
17947 (char *) "self",(char *) "c", NULL
17948 };
17949
17950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17960
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 Py_INCREF(Py_None); resultobj = Py_None;
17965 return resultobj;
17966 fail:
17967 return NULL;
17968 }
17969
17970
17971 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj;
17973 wxEffects *arg1 = (wxEffects *) 0 ;
17974 wxColour *arg2 = 0 ;
17975 wxColour temp2 ;
17976 PyObject * obj0 = 0 ;
17977 PyObject * obj1 = 0 ;
17978 char *kwnames[] = {
17979 (char *) "self",(char *) "c", NULL
17980 };
17981
17982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17985 {
17986 arg2 = &temp2;
17987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17988 }
17989 {
17990 PyThreadState* __tstate = wxPyBeginAllowThreads();
17991 (arg1)->SetLightShadow((wxColour const &)*arg2);
17992
17993 wxPyEndAllowThreads(__tstate);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 }
17996 Py_INCREF(Py_None); resultobj = Py_None;
17997 return resultobj;
17998 fail:
17999 return NULL;
18000 }
18001
18002
18003 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18004 PyObject *resultobj;
18005 wxEffects *arg1 = (wxEffects *) 0 ;
18006 wxColour *arg2 = 0 ;
18007 wxColour temp2 ;
18008 PyObject * obj0 = 0 ;
18009 PyObject * obj1 = 0 ;
18010 char *kwnames[] = {
18011 (char *) "self",(char *) "c", NULL
18012 };
18013
18014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18017 {
18018 arg2 = &temp2;
18019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 (arg1)->SetFaceColour((wxColour const &)*arg2);
18024
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 Py_INCREF(Py_None); resultobj = Py_None;
18029 return resultobj;
18030 fail:
18031 return NULL;
18032 }
18033
18034
18035 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18036 PyObject *resultobj;
18037 wxEffects *arg1 = (wxEffects *) 0 ;
18038 wxColour *arg2 = 0 ;
18039 wxColour temp2 ;
18040 PyObject * obj0 = 0 ;
18041 PyObject * obj1 = 0 ;
18042 char *kwnames[] = {
18043 (char *) "self",(char *) "c", NULL
18044 };
18045
18046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18049 {
18050 arg2 = &temp2;
18051 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18052 }
18053 {
18054 PyThreadState* __tstate = wxPyBeginAllowThreads();
18055 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18056
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 Py_INCREF(Py_None); resultobj = Py_None;
18061 return resultobj;
18062 fail:
18063 return NULL;
18064 }
18065
18066
18067 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj;
18069 wxEffects *arg1 = (wxEffects *) 0 ;
18070 wxColour *arg2 = 0 ;
18071 wxColour temp2 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 char *kwnames[] = {
18075 (char *) "self",(char *) "c", NULL
18076 };
18077
18078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18081 {
18082 arg2 = &temp2;
18083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18084 }
18085 {
18086 PyThreadState* __tstate = wxPyBeginAllowThreads();
18087 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18088
18089 wxPyEndAllowThreads(__tstate);
18090 if (PyErr_Occurred()) SWIG_fail;
18091 }
18092 Py_INCREF(Py_None); resultobj = Py_None;
18093 return resultobj;
18094 fail:
18095 return NULL;
18096 }
18097
18098
18099 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18100 PyObject *resultobj;
18101 wxEffects *arg1 = (wxEffects *) 0 ;
18102 wxColour *arg2 = 0 ;
18103 wxColour *arg3 = 0 ;
18104 wxColour *arg4 = 0 ;
18105 wxColour *arg5 = 0 ;
18106 wxColour *arg6 = 0 ;
18107 wxColour temp2 ;
18108 wxColour temp3 ;
18109 wxColour temp4 ;
18110 wxColour temp5 ;
18111 wxColour temp6 ;
18112 PyObject * obj0 = 0 ;
18113 PyObject * obj1 = 0 ;
18114 PyObject * obj2 = 0 ;
18115 PyObject * obj3 = 0 ;
18116 PyObject * obj4 = 0 ;
18117 PyObject * obj5 = 0 ;
18118 char *kwnames[] = {
18119 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18120 };
18121
18122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18125 {
18126 arg2 = &temp2;
18127 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18128 }
18129 {
18130 arg3 = &temp3;
18131 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18132 }
18133 {
18134 arg4 = &temp4;
18135 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18136 }
18137 {
18138 arg5 = &temp5;
18139 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18140 }
18141 {
18142 arg6 = &temp6;
18143 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18144 }
18145 {
18146 PyThreadState* __tstate = wxPyBeginAllowThreads();
18147 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18148
18149 wxPyEndAllowThreads(__tstate);
18150 if (PyErr_Occurred()) SWIG_fail;
18151 }
18152 Py_INCREF(Py_None); resultobj = Py_None;
18153 return resultobj;
18154 fail:
18155 return NULL;
18156 }
18157
18158
18159 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18160 PyObject *resultobj;
18161 wxEffects *arg1 = (wxEffects *) 0 ;
18162 wxDC *arg2 = 0 ;
18163 wxRect *arg3 = 0 ;
18164 int arg4 = (int) 1 ;
18165 wxRect temp3 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 PyObject * obj2 = 0 ;
18169 PyObject * obj3 = 0 ;
18170 char *kwnames[] = {
18171 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18172 };
18173
18174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18177 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18178 SWIG_POINTER_EXCEPTION | 0)) == -1)
18179 SWIG_fail;
18180 if (arg2 == NULL) {
18181 PyErr_SetString(PyExc_TypeError,"null reference");
18182 SWIG_fail;
18183 }
18184 {
18185 arg3 = &temp3;
18186 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18187 }
18188 if (obj3) {
18189 arg4 = (int) SWIG_AsInt(obj3);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 {
18193 PyThreadState* __tstate = wxPyBeginAllowThreads();
18194 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18195
18196 wxPyEndAllowThreads(__tstate);
18197 if (PyErr_Occurred()) SWIG_fail;
18198 }
18199 Py_INCREF(Py_None); resultobj = Py_None;
18200 return resultobj;
18201 fail:
18202 return NULL;
18203 }
18204
18205
18206 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18207 PyObject *resultobj;
18208 wxEffects *arg1 = (wxEffects *) 0 ;
18209 wxRect *arg2 = 0 ;
18210 wxDC *arg3 = 0 ;
18211 wxBitmap *arg4 = 0 ;
18212 bool result;
18213 wxRect temp2 ;
18214 PyObject * obj0 = 0 ;
18215 PyObject * obj1 = 0 ;
18216 PyObject * obj2 = 0 ;
18217 PyObject * obj3 = 0 ;
18218 char *kwnames[] = {
18219 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18220 };
18221
18222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18225 {
18226 arg2 = &temp2;
18227 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18228 }
18229 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18230 SWIG_POINTER_EXCEPTION | 0)) == -1)
18231 SWIG_fail;
18232 if (arg3 == NULL) {
18233 PyErr_SetString(PyExc_TypeError,"null reference");
18234 SWIG_fail;
18235 }
18236 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18237 SWIG_POINTER_EXCEPTION | 0)) == -1)
18238 SWIG_fail;
18239 if (arg4 == NULL) {
18240 PyErr_SetString(PyExc_TypeError,"null reference");
18241 SWIG_fail;
18242 }
18243 {
18244 PyThreadState* __tstate = wxPyBeginAllowThreads();
18245 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18246
18247 wxPyEndAllowThreads(__tstate);
18248 if (PyErr_Occurred()) SWIG_fail;
18249 }
18250 {
18251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18252 }
18253 return resultobj;
18254 fail:
18255 return NULL;
18256 }
18257
18258
18259 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18260 PyObject *obj;
18261 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18262 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18263 Py_INCREF(obj);
18264 return Py_BuildValue((char *)"");
18265 }
18266 static PyMethodDef SwigMethods[] = {
18267 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18273 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18290 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18296 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18315 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18327 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18354 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18356 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18371 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18379 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18387 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18393 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18419 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18433 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18457 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18466 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18486 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18523 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18531 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18538 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18560 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18562 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18570 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18699 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18703 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18704 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18705 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18708 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18710 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18715 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18717 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18719 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18721 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18723 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18728 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18729 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18737 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18740 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18742 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18754 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18759 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18764 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18771 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18776 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18791 { NULL, NULL }
18792 };
18793
18794
18795 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18796
18797 static void *_p_wxControlTo_p_wxWindow(void *x) {
18798 return (void *)((wxWindow *) ((wxControl *) x));
18799 }
18800 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18801 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18802 }
18803 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18804 return (void *)((wxWindow *) ((wxMenuBar *) x));
18805 }
18806 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18807 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18808 }
18809 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18810 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18811 }
18812 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18813 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18814 }
18815 static void *_p_wxPenTo_p_wxObject(void *x) {
18816 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18817 }
18818 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18819 return (void *)((wxObject *) ((wxRegionIterator *) x));
18820 }
18821 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18822 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18823 }
18824 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18825 return (void *)((wxObject *) ((wxSizerItem *) x));
18826 }
18827 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18828 return (void *)((wxObject *) ((wxColourDatabase *) x));
18829 }
18830 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18831 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18832 }
18833 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18834 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18835 }
18836 static void *_p_wxIconTo_p_wxObject(void *x) {
18837 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18838 }
18839 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18840 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18841 }
18842 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18843 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18844 }
18845 static void *_p_wxSizerTo_p_wxObject(void *x) {
18846 return (void *)((wxObject *) ((wxSizer *) x));
18847 }
18848 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18849 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18850 }
18851 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18852 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18853 }
18854 static void *_p_wxPenListTo_p_wxObject(void *x) {
18855 return (void *)((wxObject *) ((wxPenList *) x));
18856 }
18857 static void *_p_wxEventTo_p_wxObject(void *x) {
18858 return (void *)((wxObject *) ((wxEvent *) x));
18859 }
18860 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18861 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18862 }
18863 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18864 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18865 }
18866 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18867 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18868 }
18869 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18870 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18871 }
18872 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18873 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18874 }
18875 static void *_p_wxDCTo_p_wxObject(void *x) {
18876 return (void *)((wxObject *) ((wxDC *) x));
18877 }
18878 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18879 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18880 }
18881 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18882 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18883 }
18884 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18885 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18886 }
18887 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18888 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18889 }
18890 static void *_p_wxControlTo_p_wxObject(void *x) {
18891 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18892 }
18893 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18894 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18895 }
18896 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18897 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18898 }
18899 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18900 return (void *)((wxObject *) ((wxFSFile *) x));
18901 }
18902 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18903 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18904 }
18905 static void *_p_wxRegionTo_p_wxObject(void *x) {
18906 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18907 }
18908 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18909 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18910 }
18911 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18912 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18913 }
18914 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18915 return (void *)((wxObject *) ((wxGDIObject *) x));
18916 }
18917 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18918 return (void *)((wxObject *) ((wxEffects *) x));
18919 }
18920 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18921 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18922 }
18923 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18924 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18925 }
18926 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18927 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18928 }
18929 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18930 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18931 }
18932 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18933 return (void *)((wxObject *) ((wxMenuItem *) x));
18934 }
18935 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18936 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18937 }
18938 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18939 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18940 }
18941 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18942 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18943 }
18944 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18945 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18946 }
18947 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18948 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18949 }
18950 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18951 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18952 }
18953 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18954 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18955 }
18956 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18957 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18958 }
18959 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18960 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18961 }
18962 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18963 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18964 }
18965 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18966 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18967 }
18968 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18969 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18970 }
18971 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18972 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18973 }
18974 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18975 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18976 }
18977 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18978 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18979 }
18980 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18981 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18982 }
18983 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18984 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18985 }
18986 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18987 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18988 }
18989 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18990 return (void *)((wxObject *) ((wxImageHandler *) x));
18991 }
18992 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18993 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18994 }
18995 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18996 return (void *)((wxObject *) ((wxEvtHandler *) x));
18997 }
18998 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18999 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19000 }
19001 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19002 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19003 }
19004 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19005 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19006 }
19007 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19008 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19009 }
19010 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19011 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19012 }
19013 static void *_p_wxImageTo_p_wxObject(void *x) {
19014 return (void *)((wxObject *) ((wxImage *) x));
19015 }
19016 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19017 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19018 }
19019 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19020 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19021 }
19022 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19023 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19024 }
19025 static void *_p_wxImageListTo_p_wxObject(void *x) {
19026 return (void *)((wxObject *) ((wxImageList *) x));
19027 }
19028 static void *_p_wxCursorTo_p_wxObject(void *x) {
19029 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19030 }
19031 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19032 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19033 }
19034 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19035 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19036 }
19037 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19038 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19039 }
19040 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19041 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19042 }
19043 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19044 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19045 }
19046 static void *_p_wxWindowTo_p_wxObject(void *x) {
19047 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19048 }
19049 static void *_p_wxMenuTo_p_wxObject(void *x) {
19050 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19051 }
19052 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19053 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19054 }
19055 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19056 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19057 }
19058 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19059 return (void *)((wxObject *) ((wxBrushList *) x));
19060 }
19061 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19062 return (void *)((wxObject *) ((wxFileSystem *) x));
19063 }
19064 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19065 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19066 }
19067 static void *_p_wxMaskTo_p_wxObject(void *x) {
19068 return (void *)((wxObject *) ((wxMask *) x));
19069 }
19070 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19071 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19072 }
19073 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19074 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19075 }
19076 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19077 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19078 }
19079 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19080 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19081 }
19082 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19083 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19084 }
19085 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19086 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19087 }
19088 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19089 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19090 }
19091 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19092 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19093 }
19094 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19095 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19096 }
19097 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19098 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19099 }
19100 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19101 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19102 }
19103 static void *_p_wxFontTo_p_wxObject(void *x) {
19104 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19105 }
19106 static void *_p_wxBrushTo_p_wxObject(void *x) {
19107 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19108 }
19109 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19110 return (void *)((wxObject *) ((wxMetaFile *) x));
19111 }
19112 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19113 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19114 }
19115 static void *_p_wxColourTo_p_wxObject(void *x) {
19116 return (void *)((wxObject *) ((wxColour *) x));
19117 }
19118 static void *_p_wxFontListTo_p_wxObject(void *x) {
19119 return (void *)((wxObject *) ((wxFontList *) x));
19120 }
19121 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19122 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19123 }
19124 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19125 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19126 }
19127 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19128 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19129 }
19130 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19131 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19132 }
19133 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19134 return (void *)((wxDC *) ((wxScreenDC *) x));
19135 }
19136 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19137 return (void *)((wxDC *) ((wxMirrorDC *) x));
19138 }
19139 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19140 return (void *)((wxDC *) ((wxMemoryDC *) x));
19141 }
19142 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19143 return (void *)((wxDC *) ((wxWindowDC *) x));
19144 }
19145 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19146 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19147 }
19148 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19149 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19150 }
19151 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19152 return (void *)((wxDC *) ((wxClientDC *) x));
19153 }
19154 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19155 return (void *)((wxDC *) ((wxPaintDC *) x));
19156 }
19157 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19158 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19159 }
19160 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19161 return (void *)((wxDC *) ((wxPrinterDC *) x));
19162 }
19163 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19164 return (void *)((wxGDIObject *) ((wxIcon *) x));
19165 }
19166 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19167 return (void *)((wxGDIObject *) ((wxPalette *) x));
19168 }
19169 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19170 return (void *)((wxGDIObject *) ((wxPen *) x));
19171 }
19172 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19173 return (void *)((wxGDIObject *) ((wxFont *) x));
19174 }
19175 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19176 return (void *)((wxGDIObject *) ((wxCursor *) x));
19177 }
19178 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19179 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19180 }
19181 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19182 return (void *)((wxGDIObject *) ((wxRegion *) x));
19183 }
19184 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19185 return (void *)((wxGDIObject *) ((wxBrush *) x));
19186 }
19187 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}};
19188 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}};
19189 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}};
19190 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}};
19191 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}};
19192 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}};
19193 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}};
19194 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}};
19195 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}};
19196 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}};
19197 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}};
19198 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}};
19199 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}};
19200 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}};
19201 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}};
19202 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}};
19203 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}};
19204 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}};
19205 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}};
19206 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}};
19207 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}};
19208 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}};
19209 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}};
19210 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}};
19211 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}};
19212 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}};
19213 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}};
19214 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}};
19215 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}};
19216 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}};
19217 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}};
19218 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}};
19219 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}};
19220 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}};
19221 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}};
19222 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}};
19223 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}};
19224 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}};
19225 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}};
19226 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}};
19227 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}};
19228 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}};
19229 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}};
19230 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}};
19231 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}};
19232 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}};
19233 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}};
19234 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}};
19235 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}};
19236 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}};
19237 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}};
19238 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}};
19239 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}};
19240 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}};
19241 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}};
19242
19243 static swig_type_info *swig_types_initial[] = {
19244 _swigt__p_wxPostScriptDC,
19245 _swigt__p_wxBrush,
19246 _swigt__p_wxColour,
19247 _swigt__p_wxDC,
19248 _swigt__p_wxMirrorDC,
19249 _swigt__p_byte,
19250 _swigt__p_wxPyFontEnumerator,
19251 _swigt__p_char,
19252 _swigt__p_wxIconLocation,
19253 _swigt__p_wxImage,
19254 _swigt__p_wxMetaFileDC,
19255 _swigt__p_wxMask,
19256 _swigt__p_wxSize,
19257 _swigt__p_wxFont,
19258 _swigt__p_wxWindow,
19259 _swigt__p_double,
19260 _swigt__p_wxMemoryDC,
19261 _swigt__p_wxFontMapper,
19262 _swigt__p_wxEffects,
19263 _swigt__p_wxNativeEncodingInfo,
19264 _swigt__p_wxPalette,
19265 _swigt__p_wxBitmap,
19266 _swigt__p_wxObject,
19267 _swigt__p_wxRegionIterator,
19268 _swigt__p_wxRect,
19269 _swigt__p_wxString,
19270 _swigt__p_wxPrinterDC,
19271 _swigt__p_wxIconBundle,
19272 _swigt__p_wxPoint,
19273 _swigt__p_wxDash,
19274 _swigt__p_wxScreenDC,
19275 _swigt__p_wxCursor,
19276 _swigt__p_wxClientDC,
19277 _swigt__p_wxBufferedDC,
19278 _swigt__p_wxImageList,
19279 _swigt__p_unsigned_char,
19280 _swigt__p_wxGDIObject,
19281 _swigt__p_wxIcon,
19282 _swigt__p_wxLocale,
19283 _swigt__p_wxRegion,
19284 _swigt__p_wxLanguageInfo,
19285 _swigt__p_wxConfigBase,
19286 _swigt__p_wxWindowDC,
19287 _swigt__p_wxPrintData,
19288 _swigt__p_wxBrushList,
19289 _swigt__p_wxFontList,
19290 _swigt__p_wxPen,
19291 _swigt__p_wxBufferedPaintDC,
19292 _swigt__p_wxPaintDC,
19293 _swigt__p_wxPenList,
19294 _swigt__p_int,
19295 _swigt__p_wxMetaFile,
19296 _swigt__p_wxNativeFontInfo,
19297 _swigt__p_wxEncodingConverter,
19298 _swigt__p_wxColourDatabase,
19299 0
19300 };
19301
19302
19303 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19304
19305 static swig_const_info swig_const_table[] = {
19306 {0}};
19307
19308 #ifdef __cplusplus
19309 }
19310 #endif
19311
19312 #ifdef __cplusplus
19313 extern "C"
19314 #endif
19315 SWIGEXPORT(void) SWIG_init(void) {
19316 static PyObject *SWIG_globals = 0;
19317 static int typeinit = 0;
19318 PyObject *m, *d;
19319 int i;
19320 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19321 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19322 d = PyModule_GetDict(m);
19323
19324 if (!typeinit) {
19325 for (i = 0; swig_types_initial[i]; i++) {
19326 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19327 }
19328 typeinit = 1;
19329 }
19330 SWIG_InstallConstants(d,swig_const_table);
19331
19332 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19333 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19334 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19335 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19336 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19337 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19338 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19339 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19340 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19341 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19342 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19343 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19344 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19345 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19346 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19347 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19348 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19349 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19350 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19351 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19352 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19353 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19354 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19355 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19356 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19357 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19358 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19359 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19360 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19361 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19362 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19363 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19364 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19365 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19366 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19367 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19368 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19369 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19370 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19371 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19372 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19373 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19374 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19375 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19376 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19377 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19378 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19379 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19380 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19381 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19382 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19383 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19384 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19385 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19386 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19387 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19388 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19389 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19390 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19391 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19392 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19393 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19394 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19395 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19396 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19397 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19398 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19399 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19400 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19401 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19402 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19403 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19404 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19405 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19406 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19407 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19408 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19409 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19410 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19411 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19412 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19413 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19414 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19415 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19416 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19417 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19418 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19419 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19420 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19421 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19422 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19423 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19424 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19425 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19426 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19427 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19428 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19429 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19430 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19431 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19432 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19433 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19434 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19435 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19436 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19437 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19438 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19439 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19440 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19441 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19442 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19443 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19444 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19445 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19446 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19447 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19448 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19449 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19450 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19451 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19452 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19453 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19454 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19455 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19456 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19457 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19458 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19459
19460 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19461
19462 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19463 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19464 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19465 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19466 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19467 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19468 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19469 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19470 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19471 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19472 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19473 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19474 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19475 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19476 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19477 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19478 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19479 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19480 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19481 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19482 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19483 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19484 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19485 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19486 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19487 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19488 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19489 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19490 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19491 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19492 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19493 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19494 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19495 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19496 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19497 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19498 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19499 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19500 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19501 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19502 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19503 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19504 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19505 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19506 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19507 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19508 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19509 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19510 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19511 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19512 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19513 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19514 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19515 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19516 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19517 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19518 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19519 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19520 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19521 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19522 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19523 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19524 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19525 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19526 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19527 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19528 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19529 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19530 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19531 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19532 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19533 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19534 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19535 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19536 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19537 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19538 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19539 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19540 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19541 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19542 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19543 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19544 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19545 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19546 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19547 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19548 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19549 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19550 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19551 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19552 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19553 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19554 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19555 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19556 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19557 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19558 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19559 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19560 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19561 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19562 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19563 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19564 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19565 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19566 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19567 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19568 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19569 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19570 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19571 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19572 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19573 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19574 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19575 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19576 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19577 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19578 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19579 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19580 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19581 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19582 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19583 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19584 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19585 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19586 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19587 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19588 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19589 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19590 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19591 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19592 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19593 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19594 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19595 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19596 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19597 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19598 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19599 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19600 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19601 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19602 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19603 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19604 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19605 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19606 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19607 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19608 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19609 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19610 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19611 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19612 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19613 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19614 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19615 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19616 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19617 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19618 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19619 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19620 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19621 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19622 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19623 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19624 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19625 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19626 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19627 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19628 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19629 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19630 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19631 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19632 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19633 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19634 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19635 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19636 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19637 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19638 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19639 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19640 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19641 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19642 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19643 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19644 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19645 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19646 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19647 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19648 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19649 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19650 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19651 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19652 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19653 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19654 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19655 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19656 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19657 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19658 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19659 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19660 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19661 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19662 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19663 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19664 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19665 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19666 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19667 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19668 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19669 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19670 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19671 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19672 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19673 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19674 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19675 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19676 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19677 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19678 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19679 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19680 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19681 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19682 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19683 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19684 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19685 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19686 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19687 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19688 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19689 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19690 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19691 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19692 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19693 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19694 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19695 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19696 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19697 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19698 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19699 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19700 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19701 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19702 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19703 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19704 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19705 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19706 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19707 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19708 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19709 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19710 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19711 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19712 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19713 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19714 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19715 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19716 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19723 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19724 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19725 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19726 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19727 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19728 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19729 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19730 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19731 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19732 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19733 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19734 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19735 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19736 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19737 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19738 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19739 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19740 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19741 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19742 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19743 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19744 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19745 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19746 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19747 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19748 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19749 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19750 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19751 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19752 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19753 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19754 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19755 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19756 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19757 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19758 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19759 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19760 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19761 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19762
19763 // Work around a chicken/egg problem in drawlist.cpp
19764 wxPyDrawList_SetAPIPtr();
19765
19766 }
19767