]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
compilation fix for gcc-3.4
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_int swig_types[50]
260 #define SWIGTYPE_p_wxMetaFile swig_types[51]
261 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
262 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
263 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
264 static swig_type_info *swig_types[56];
265
266 /* -------- TYPES TABLE (END) -------- */
267
268
269 /*-----------------------------------------------
270 @(target):= _gdi_.so
271 ------------------------------------------------*/
272 #define SWIG_init init_gdi_
273
274 #define SWIG_name "_gdi_"
275
276 /* Auxiliar swig macros */
277
278 #ifdef __cplusplus
279 #define SWIGSTATICINLINE(a) static inline a
280 #define SWIGSTATIC(a) static a
281 #define swig_new_array(type, size) (new type[(size)])
282 #define swig_delete_array(cptr) delete[] cptr
283 #define swig_const_cast(type,a) const_cast<type>(a)
284 #define swig_static_cast(type,a) static_cast<type>(a)
285 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
286
287 #ifdef HAVE_NUMERIC_CAST
288 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
289 #else
290 #define swig_numeric_cast(type,a) static_cast<type>(a)
291 #endif
292
293 #else /* C case */
294
295 #define SWIGSTATICINLINE(a) static a
296 #define SWIGSTATIC(a) static a
297 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
298 #define swig_delete_array(cptr) free((char*)cptr)
299 #define swig_const_cast(type,a) (type)(a)
300 #define swig_static_cast(type,a) (type)(a)
301 #define swig_reinterpret_cast(type,a) (type)(a)
302 #define swig_numeric_cast(type,a) (type)(a)
303
304 #endif /* __cplusplus */
305
306
307 #define SWIG_FromSignedChar PyInt_FromLong
308 #define SWIG_FromUnsignedChar PyInt_FromLong
309 #define SWIG_FromShort PyInt_FromLong
310 #define SWIG_FromUnsignedShort PyInt_FromLong
311 #define SWIG_FromInt PyInt_FromLong
312 #define SWIG_FromLong PyInt_FromLong
313 #define SWIG_FromFloat PyFloat_FromDouble
314 #define SWIG_FromDouble PyFloat_FromDouble
315 #define SWIG_FromFloat PyFloat_FromDouble
316 #define SWIG_FromDouble PyFloat_FromDouble
317
318
319 #include "wx/wxPython/wxPython.h"
320 #include "wx/wxPython/pyclasses.h"
321
322
323 static const wxString wxPyEmptyString(wxEmptyString);
324
325 SWIGSTATICINLINE(bool)
326 SWIG_AsBool(PyObject *obj)
327 {
328 return PyObject_IsTrue(obj) ? true : false;
329 }
330
331
332 SWIGSTATICINLINE(int)
333 SWIG_CheckBool(PyObject* obj)
334 {
335 SWIG_AsBool(obj);
336 if (PyErr_Occurred()) {
337 PyErr_Clear();
338 return 0;
339 } else {
340 return 1;
341 }
342 }
343
344
345 #include <limits.h>
346
347
348 SWIGSTATICINLINE(unsigned long)
349 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
350 unsigned long max_value)
351 {
352 if (!PyErr_Occurred()) {
353 if (value > max_value) {
354 PyObject *err =
355 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
356 value, type, max_value);
357 PyErr_SetObject(PyExc_OverflowError, err);
358 Py_DECREF(err);
359 }
360 }
361 return value;
362 }
363
364
365 SWIGSTATICINLINE(long)
366 SWIG_AsLong(PyObject * obj)
367 {
368 if (PyNumber_Check(obj))
369 return PyInt_AsLong(obj);
370 else {
371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
372 obj->ob_type->tp_name);
373 PyErr_SetObject(PyExc_TypeError, errmsg);
374 Py_DECREF(errmsg);
375 return 0;
376 }
377 }
378
379
380 SWIGSTATICINLINE(unsigned long)
381 SWIG_AsUnsignedLong(PyObject * obj)
382 {
383 if (PyLong_Check(obj)) {
384 return PyLong_AsUnsignedLong(obj);
385 } else {
386 long i = SWIG_AsLong(obj);
387 if ( !PyErr_Occurred() && (i < 0)) {
388 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
389 }
390 return i;
391 }
392 }
393
394
395 SWIGSTATICINLINE(unsigned char)
396 SWIG_AsUnsignedChar(PyObject *obj)
397 {
398 return swig_numeric_cast(unsigned char,
399 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
400 "unsigned char", UCHAR_MAX));
401 }
402
403
404 SWIGSTATICINLINE(int)
405 SWIG_CheckUnsignedChar(PyObject* obj)
406 {
407 SWIG_AsUnsignedChar(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
414 }
415
416
417 SWIGSTATICINLINE(int)
418 SWIG_CheckUnsignedLong(PyObject* obj)
419 {
420 SWIG_AsUnsignedLong(obj);
421 if (PyErr_Occurred()) {
422 PyErr_Clear();
423 return 0;
424 } else {
425 return 1;
426 }
427 }
428
429 PyObject *wxColour_Get(wxColour *self){
430 PyObject* rv = PyTuple_New(3);
431 int red = -1;
432 int green = -1;
433 int blue = -1;
434 if (self->Ok()) {
435 red = self->Red();
436 green = self->Green();
437 blue = self->Blue();
438 }
439 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
440 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
441 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
442 return rv;
443 }
444 unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
448 SWIGSTATICINLINE(PyObject* )
449 SWIG_FromUnsignedLong(unsigned long value)
450 {
451 return (value > LONG_MAX) ?
452 PyLong_FromUnsignedLong(value)
453 : PyInt_FromLong(swig_numeric_cast(long,value));
454 }
455
456
457 SWIGSTATICINLINE(long)
458 SWIG_CheckLongInRange(long value, const char* type,
459 long min_value, long max_value)
460 {
461 if (!PyErr_Occurred()) {
462 if (value < min_value) {
463 PyObject *err =
464 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
465 value, type, min_value);
466
467 PyErr_SetObject(PyExc_OverflowError, err);
468 Py_DECREF(err);
469 } else if (value > max_value) {
470 PyObject *err =
471 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
472 value, type, max_value);
473 PyErr_SetObject(PyExc_OverflowError, err);
474 Py_DECREF(err);
475 }
476 }
477 return value;
478 }
479
480
481 #if INT_MAX != LONG_MAX
482 SWIGSTATICINLINE(int)
483 SWIG_AsInt(PyObject *obj)
484 {
485 return swig_numeric_cast(int,
486 SWIG_CheckLongInRange(SWIG_AsLong(obj),
487 "int", INT_MIN, INT_MAX));
488 }
489 #else
490 #define SWIG_AsInt SWIG_AsLong
491 #endif
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_CheckInt(PyObject* obj)
496 {
497 SWIG_AsInt(obj);
498 if (PyErr_Occurred()) {
499 PyErr_Clear();
500 return 0;
501 } else {
502 return 1;
503 }
504 }
505
506
507 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531 }
532
533 PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
536 bool blocked = wxPyBeginBlockThreads();
537 PyObject* retval = PyList_New(0);
538 for (int x=0; x<count; x++) {
539 PyObject* pyint = PyInt_FromLong(dashes[x]);
540 PyList_Append(retval, pyint);
541 Py_DECREF(pyint);
542 }
543 wxPyEndBlockThreads(blocked);
544 return retval;
545 }
546 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
547 bool blocked = wxPyBeginBlockThreads();
548 int size = PyList_Size(pyDashes);
549 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
550
551 // black magic warning! The array of wxDashes needs to exist as
552 // long as the pen does because wxPen does not copy the array. So
553 // stick a copy in a Python string object and attach it to _self,
554 // and then call SetDashes with a pointer to that array. Then
555 // when the Python pen object is destroyed the array will be
556 // cleaned up too.
557 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
558 PyObject_SetAttrString(_self, "_dashes", strDashes);
559
560 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
561 delete [] dashes;
562 Py_DECREF(strDashes);
563 wxPyEndBlockThreads(blocked);
564 }
565 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
567
568 SWIGSTATICINLINE(short)
569 SWIG_AsShort(PyObject *obj)
570 {
571 return swig_numeric_cast(short,
572 SWIG_CheckLongInRange(SWIG_AsLong(obj),
573 "short", SHRT_MIN, SHRT_MAX));
574 }
575
576
577 SWIGSTATICINLINE(int)
578 SWIG_CheckShort(PyObject* obj)
579 {
580 SWIG_AsShort(obj);
581 if (PyErr_Occurred()) {
582 PyErr_Clear();
583 return 0;
584 } else {
585 return 1;
586 }
587 }
588
589
590 #include <wx/image.h>
591
592 static char** ConvertListOfStrings(PyObject* listOfStrings) {
593 char** cArray = NULL;
594 int count;
595
596 if (!PyList_Check(listOfStrings)) {
597 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
598 return NULL;
599 }
600 count = PyList_Size(listOfStrings);
601 cArray = new char*[count];
602
603 for(int x=0; x<count; x++) {
604 // TODO: Need some validation and error checking here
605 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
606 }
607 return cArray;
608 }
609
610
611 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
612 char** cArray = NULL;
613 wxBitmap* bmp;
614
615 cArray = ConvertListOfStrings(listOfStrings);
616 if (! cArray)
617 return NULL;
618 bmp = new wxBitmap(cArray);
619 delete [] cArray;
620 return bmp;
621 }
622 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
623 char* buf;
624 int length;
625 PyString_AsStringAndSize(bits, &buf, &length);
626 return new wxBitmap(buf, width, height, depth);
627 }
628 wxSize wxBitmap_GetSize(wxBitmap *self){
629 wxSize size(self->GetWidth(), self->GetHeight());
630 return size;
631 }
632 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
633 wxMask *mask = new wxMask(*self, colour);
634 self->SetMask(mask);
635 }
636 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
637 self->SetWidth(size.x);
638 self->SetHeight(size.y);
639 }
640 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
641 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
642 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
643 if ( !colour.Ok() )
644 return new wxMask(bitmap, *wxBLACK);
645 else
646 return new wxMask(bitmap, colour);
647 }
648
649 #include <wx/iconbndl.h>
650
651 wxIcon *new_wxIcon(wxBitmap const &bmp){
652 wxIcon* icon = new wxIcon();
653 icon->CopyFromBitmap(bmp);
654 return icon;
655 }
656 wxIcon *new_wxIcon(PyObject *listOfStrings){
657 char** cArray = NULL;
658 wxIcon* icon;
659
660 cArray = ConvertListOfStrings(listOfStrings);
661 if (! cArray)
662 return NULL;
663 icon = new wxIcon(cArray);
664 delete [] cArray;
665 return icon;
666 }
667 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
668
669
670
671 return new wxIconLocation(*filename);
672
673 }
674 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
675
676
677
678 // do nothing
679
680 }
681 int wxIconLocation_GetIndex(wxIconLocation *self){
682
683
684
685 return -1;
686
687 }
688
689 SWIGSTATICINLINE(int)
690 SWIG_CheckLong(PyObject* obj)
691 {
692 SWIG_AsLong(obj);
693 if (PyErr_Occurred()) {
694 PyErr_Clear();
695 return 0;
696 } else {
697 return 1;
698 }
699 }
700
701 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
702 #ifdef __WXGTK__
703 wxCHECK_MSG(False, NULL,
704 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
705 #else
706 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
707 #endif
708 }
709
710
711 wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
712 wxPyRaiseNotImplemented();
713 return NULL;
714 }
715 void wxRegionIterator_Next(wxRegionIterator *self){
716 (*self) ++;
717 }
718 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
719 return self->operator bool();
720 }
721
722 #include <wx/fontutil.h>
723 #include <wx/fontmap.h>
724 #include <wx/fontenum.h>
725
726 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
727 return self->ToString();
728 }
729
730 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
731 static wxNativeEncodingInfo info;
732 if ( wxGetNativeFontEncoding(encoding, &info) )
733 return &info;
734 else
735 return NULL;
736 }
737
738 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
739 wxFontEncoding alt_enc;
740 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
741 return PyInt_FromLong(alt_enc);
742 else {
743 Py_INCREF(Py_None);
744 return Py_None;
745 }
746 }
747 wxFont *new_wxFont(wxString const &info){
748 wxNativeFontInfo nfi;
749 nfi.FromString(info);
750 return new wxFont(nfi);
751 }
752 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
753 return wxFont::New(pointSize, family, flags, face, encoding);
754 }
755 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
756 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
757
758 class wxPyFontEnumerator : public wxFontEnumerator {
759 public:
760 wxPyFontEnumerator() {}
761 ~wxPyFontEnumerator() {}
762
763 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
764 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
765
766 PYPRIVATE;
767 };
768
769 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
770 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
771
772
773 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
774 wxArrayString* arr = self->GetEncodings();
775 return wxArrayString2PyList_helper(*arr);
776 }
777 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
778 wxArrayString* arr = self->GetFacenames();
779 return wxArrayString2PyList_helper(*arr);
780 }
781
782
783 wxLocale *new_wxLocale(int language,int flags){
784 if (language == -1)
785 return new wxLocale();
786 else
787 return new wxLocale(language, flags);
788 }
789
790 #include "wx/wxPython/pydrawxxx.h"
791
792 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
793 wxColour col;
794 self->GetPixel(x, y, &col);
795 return col;
796 }
797 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
798 wxColour col;
799 self->GetPixel(pt, &col);
800 return col;
801 }
802
803 SWIGSTATICINLINE(double)
804 SWIG_AsDouble(PyObject *obj)
805 {
806 if (PyNumber_Check(obj))
807 return PyFloat_AsDouble(obj);
808 else {
809 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
810 obj->ob_type->tp_name);
811 PyErr_SetObject(PyExc_TypeError, errmsg);
812 Py_DECREF(errmsg);
813 return 0;
814 }
815 }
816
817
818 SWIGSTATICINLINE(int)
819 SWIG_CheckDouble(PyObject* obj)
820 {
821 SWIG_AsDouble(obj);
822 if (PyErr_Occurred()) {
823 PyErr_Clear();
824 return 0;
825 } else {
826 return 1;
827 }
828 }
829
830 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
831 wxRect rv;
832 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
833 return rv;
834 }
835 wxRect wxDC_GetClippingRect(wxDC *self){
836 wxRect rect;
837 self->GetClippingBox(rect);
838 return rect;
839 }
840 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
841 wxArrayInt widths;
842 self->GetPartialTextExtents(text, widths);
843 return widths;
844 }
845 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
846 self->SetLogicalOrigin(point.x, point.y);
847 }
848 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
849 self->SetDeviceOrigin(point.x, point.y);
850 }
851 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
852 self->CalcBoundingBox(point.x, point.y);
853 }
854 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
855 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
856 }
857 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
858 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
859 }
860 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
861 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
862 }
863 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
864 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
865 }
866 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
867 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
868 }
869 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
870 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
871 }
872
873 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
874 *x1 = dc->MinX();
875 *y1 = dc->MinY();
876 *x2 = dc->MaxX();
877 *y2 = dc->MaxY();
878 }
879
880
881 #include <wx/dcbuffer.h>
882
883
884 #include <wx/dcps.h>
885
886
887 #include <wx/metafile.h>
888
889
890
891 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
892 self->AddColour(name, wxColour(red, green, blue));
893 }
894
895 #include <wx/effects.h>
896
897 #ifdef __cplusplus
898 extern "C" {
899 #endif
900 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
901 PyObject *resultobj;
902 wxGDIObject *result;
903 char *kwnames[] = {
904 NULL
905 };
906
907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
908 {
909 PyThreadState* __tstate = wxPyBeginAllowThreads();
910 result = (wxGDIObject *)new wxGDIObject();
911
912 wxPyEndAllowThreads(__tstate);
913 if (PyErr_Occurred()) SWIG_fail;
914 }
915 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
916 return resultobj;
917 fail:
918 return NULL;
919 }
920
921
922 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
923 PyObject *resultobj;
924 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
925 PyObject * obj0 = 0 ;
926 char *kwnames[] = {
927 (char *) "self", NULL
928 };
929
930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
933 {
934 PyThreadState* __tstate = wxPyBeginAllowThreads();
935 delete arg1;
936
937 wxPyEndAllowThreads(__tstate);
938 if (PyErr_Occurred()) SWIG_fail;
939 }
940 Py_INCREF(Py_None); resultobj = Py_None;
941 return resultobj;
942 fail:
943 return NULL;
944 }
945
946
947 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
948 PyObject *resultobj;
949 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
950 bool result;
951 PyObject * obj0 = 0 ;
952 char *kwnames[] = {
953 (char *) "self", NULL
954 };
955
956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
957 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
958 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
959 {
960 PyThreadState* __tstate = wxPyBeginAllowThreads();
961 result = (bool)(arg1)->GetVisible();
962
963 wxPyEndAllowThreads(__tstate);
964 if (PyErr_Occurred()) SWIG_fail;
965 }
966 {
967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
968 }
969 return resultobj;
970 fail:
971 return NULL;
972 }
973
974
975 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
976 PyObject *resultobj;
977 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
978 bool arg2 ;
979 PyObject * obj0 = 0 ;
980 PyObject * obj1 = 0 ;
981 char *kwnames[] = {
982 (char *) "self",(char *) "visible", NULL
983 };
984
985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
988 arg2 = (bool) SWIG_AsBool(obj1);
989 if (PyErr_Occurred()) SWIG_fail;
990 {
991 PyThreadState* __tstate = wxPyBeginAllowThreads();
992 (arg1)->SetVisible(arg2);
993
994 wxPyEndAllowThreads(__tstate);
995 if (PyErr_Occurred()) SWIG_fail;
996 }
997 Py_INCREF(Py_None); resultobj = Py_None;
998 return resultobj;
999 fail:
1000 return NULL;
1001 }
1002
1003
1004 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1005 PyObject *resultobj;
1006 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1007 bool result;
1008 PyObject * obj0 = 0 ;
1009 char *kwnames[] = {
1010 (char *) "self", NULL
1011 };
1012
1013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1014 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1015 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1016 {
1017 PyThreadState* __tstate = wxPyBeginAllowThreads();
1018 result = (bool)(arg1)->IsNull();
1019
1020 wxPyEndAllowThreads(__tstate);
1021 if (PyErr_Occurred()) SWIG_fail;
1022 }
1023 {
1024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1025 }
1026 return resultobj;
1027 fail:
1028 return NULL;
1029 }
1030
1031
1032 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1033 PyObject *obj;
1034 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1035 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1036 Py_INCREF(obj);
1037 return Py_BuildValue((char *)"");
1038 }
1039 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1040 PyObject *resultobj;
1041 byte arg1 = (byte) 0 ;
1042 byte arg2 = (byte) 0 ;
1043 byte arg3 = (byte) 0 ;
1044 wxColour *result;
1045 PyObject * obj0 = 0 ;
1046 PyObject * obj1 = 0 ;
1047 PyObject * obj2 = 0 ;
1048 char *kwnames[] = {
1049 (char *) "red",(char *) "green",(char *) "blue", NULL
1050 };
1051
1052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1053 if (obj0) {
1054 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1055 if (PyErr_Occurred()) SWIG_fail;
1056 }
1057 if (obj1) {
1058 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1059 if (PyErr_Occurred()) SWIG_fail;
1060 }
1061 if (obj2) {
1062 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1063 if (PyErr_Occurred()) SWIG_fail;
1064 }
1065 {
1066 PyThreadState* __tstate = wxPyBeginAllowThreads();
1067 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1068
1069 wxPyEndAllowThreads(__tstate);
1070 if (PyErr_Occurred()) SWIG_fail;
1071 }
1072 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1073 return resultobj;
1074 fail:
1075 return NULL;
1076 }
1077
1078
1079 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1080 PyObject *resultobj;
1081 wxString *arg1 = 0 ;
1082 wxColour *result;
1083 bool temp1 = False ;
1084 PyObject * obj0 = 0 ;
1085 char *kwnames[] = {
1086 (char *) "colorName", NULL
1087 };
1088
1089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1090 {
1091 arg1 = wxString_in_helper(obj0);
1092 if (arg1 == NULL) SWIG_fail;
1093 temp1 = True;
1094 }
1095 {
1096 PyThreadState* __tstate = wxPyBeginAllowThreads();
1097 result = (wxColour *)new wxColour((wxString const &)*arg1);
1098
1099 wxPyEndAllowThreads(__tstate);
1100 if (PyErr_Occurred()) SWIG_fail;
1101 }
1102 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1103 {
1104 if (temp1)
1105 delete arg1;
1106 }
1107 return resultobj;
1108 fail:
1109 {
1110 if (temp1)
1111 delete arg1;
1112 }
1113 return NULL;
1114 }
1115
1116
1117 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1118 PyObject *resultobj;
1119 unsigned long arg1 ;
1120 wxColour *result;
1121 PyObject * obj0 = 0 ;
1122 char *kwnames[] = {
1123 (char *) "colRGB", NULL
1124 };
1125
1126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1127 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1128 if (PyErr_Occurred()) SWIG_fail;
1129 {
1130 PyThreadState* __tstate = wxPyBeginAllowThreads();
1131 result = (wxColour *)new wxColour(arg1);
1132
1133 wxPyEndAllowThreads(__tstate);
1134 if (PyErr_Occurred()) SWIG_fail;
1135 }
1136 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1137 return resultobj;
1138 fail:
1139 return NULL;
1140 }
1141
1142
1143 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1144 PyObject *resultobj;
1145 wxColour *arg1 = (wxColour *) 0 ;
1146 PyObject * obj0 = 0 ;
1147 char *kwnames[] = {
1148 (char *) "self", NULL
1149 };
1150
1151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1154 {
1155 PyThreadState* __tstate = wxPyBeginAllowThreads();
1156 delete arg1;
1157
1158 wxPyEndAllowThreads(__tstate);
1159 if (PyErr_Occurred()) SWIG_fail;
1160 }
1161 Py_INCREF(Py_None); resultobj = Py_None;
1162 return resultobj;
1163 fail:
1164 return NULL;
1165 }
1166
1167
1168 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1169 PyObject *resultobj;
1170 wxColour *arg1 = (wxColour *) 0 ;
1171 byte result;
1172 PyObject * obj0 = 0 ;
1173 char *kwnames[] = {
1174 (char *) "self", NULL
1175 };
1176
1177 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1178 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1180 {
1181 PyThreadState* __tstate = wxPyBeginAllowThreads();
1182 result = (byte)(arg1)->Red();
1183
1184 wxPyEndAllowThreads(__tstate);
1185 if (PyErr_Occurred()) SWIG_fail;
1186 }
1187 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1188 return resultobj;
1189 fail:
1190 return NULL;
1191 }
1192
1193
1194 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1195 PyObject *resultobj;
1196 wxColour *arg1 = (wxColour *) 0 ;
1197 byte result;
1198 PyObject * obj0 = 0 ;
1199 char *kwnames[] = {
1200 (char *) "self", NULL
1201 };
1202
1203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1206 {
1207 PyThreadState* __tstate = wxPyBeginAllowThreads();
1208 result = (byte)(arg1)->Green();
1209
1210 wxPyEndAllowThreads(__tstate);
1211 if (PyErr_Occurred()) SWIG_fail;
1212 }
1213 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1214 return resultobj;
1215 fail:
1216 return NULL;
1217 }
1218
1219
1220 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1221 PyObject *resultobj;
1222 wxColour *arg1 = (wxColour *) 0 ;
1223 byte result;
1224 PyObject * obj0 = 0 ;
1225 char *kwnames[] = {
1226 (char *) "self", NULL
1227 };
1228
1229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1232 {
1233 PyThreadState* __tstate = wxPyBeginAllowThreads();
1234 result = (byte)(arg1)->Blue();
1235
1236 wxPyEndAllowThreads(__tstate);
1237 if (PyErr_Occurred()) SWIG_fail;
1238 }
1239 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1240 return resultobj;
1241 fail:
1242 return NULL;
1243 }
1244
1245
1246 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1247 PyObject *resultobj;
1248 wxColour *arg1 = (wxColour *) 0 ;
1249 bool result;
1250 PyObject * obj0 = 0 ;
1251 char *kwnames[] = {
1252 (char *) "self", NULL
1253 };
1254
1255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1258 {
1259 PyThreadState* __tstate = wxPyBeginAllowThreads();
1260 result = (bool)(arg1)->Ok();
1261
1262 wxPyEndAllowThreads(__tstate);
1263 if (PyErr_Occurred()) SWIG_fail;
1264 }
1265 {
1266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1267 }
1268 return resultobj;
1269 fail:
1270 return NULL;
1271 }
1272
1273
1274 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1275 PyObject *resultobj;
1276 wxColour *arg1 = (wxColour *) 0 ;
1277 byte arg2 ;
1278 byte arg3 ;
1279 byte arg4 ;
1280 PyObject * obj0 = 0 ;
1281 PyObject * obj1 = 0 ;
1282 PyObject * obj2 = 0 ;
1283 PyObject * obj3 = 0 ;
1284 char *kwnames[] = {
1285 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1286 };
1287
1288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1291 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1292 if (PyErr_Occurred()) SWIG_fail;
1293 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1294 if (PyErr_Occurred()) SWIG_fail;
1295 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1296 if (PyErr_Occurred()) SWIG_fail;
1297 {
1298 PyThreadState* __tstate = wxPyBeginAllowThreads();
1299 (arg1)->Set(arg2,arg3,arg4);
1300
1301 wxPyEndAllowThreads(__tstate);
1302 if (PyErr_Occurred()) SWIG_fail;
1303 }
1304 Py_INCREF(Py_None); resultobj = Py_None;
1305 return resultobj;
1306 fail:
1307 return NULL;
1308 }
1309
1310
1311 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1312 PyObject *resultobj;
1313 wxColour *arg1 = (wxColour *) 0 ;
1314 unsigned long arg2 ;
1315 PyObject * obj0 = 0 ;
1316 PyObject * obj1 = 0 ;
1317 char *kwnames[] = {
1318 (char *) "self",(char *) "colRGB", NULL
1319 };
1320
1321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1324 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1325 if (PyErr_Occurred()) SWIG_fail;
1326 {
1327 PyThreadState* __tstate = wxPyBeginAllowThreads();
1328 (arg1)->Set(arg2);
1329
1330 wxPyEndAllowThreads(__tstate);
1331 if (PyErr_Occurred()) SWIG_fail;
1332 }
1333 Py_INCREF(Py_None); resultobj = Py_None;
1334 return resultobj;
1335 fail:
1336 return NULL;
1337 }
1338
1339
1340 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1341 PyObject *resultobj;
1342 wxColour *arg1 = (wxColour *) 0 ;
1343 wxString *arg2 = 0 ;
1344 bool temp2 = False ;
1345 PyObject * obj0 = 0 ;
1346 PyObject * obj1 = 0 ;
1347 char *kwnames[] = {
1348 (char *) "self",(char *) "colourName", NULL
1349 };
1350
1351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1354 {
1355 arg2 = wxString_in_helper(obj1);
1356 if (arg2 == NULL) SWIG_fail;
1357 temp2 = True;
1358 }
1359 {
1360 PyThreadState* __tstate = wxPyBeginAllowThreads();
1361 (arg1)->InitFromName((wxString const &)*arg2);
1362
1363 wxPyEndAllowThreads(__tstate);
1364 if (PyErr_Occurred()) SWIG_fail;
1365 }
1366 Py_INCREF(Py_None); resultobj = Py_None;
1367 {
1368 if (temp2)
1369 delete arg2;
1370 }
1371 return resultobj;
1372 fail:
1373 {
1374 if (temp2)
1375 delete arg2;
1376 }
1377 return NULL;
1378 }
1379
1380
1381 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1382 PyObject *resultobj;
1383 wxColour *arg1 = (wxColour *) 0 ;
1384 long result;
1385 PyObject * obj0 = 0 ;
1386 char *kwnames[] = {
1387 (char *) "self", NULL
1388 };
1389
1390 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1391 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1392 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1393 {
1394 PyThreadState* __tstate = wxPyBeginAllowThreads();
1395 result = (long)((wxColour const *)arg1)->GetPixel();
1396
1397 wxPyEndAllowThreads(__tstate);
1398 if (PyErr_Occurred()) SWIG_fail;
1399 }
1400 resultobj = SWIG_FromLong((long)result);
1401 return resultobj;
1402 fail:
1403 return NULL;
1404 }
1405
1406
1407 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1408 PyObject *resultobj;
1409 wxColour *arg1 = (wxColour *) 0 ;
1410 wxColour *arg2 = 0 ;
1411 bool result;
1412 wxColour temp2 ;
1413 PyObject * obj0 = 0 ;
1414 PyObject * obj1 = 0 ;
1415 char *kwnames[] = {
1416 (char *) "self",(char *) "colour", NULL
1417 };
1418
1419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1422 {
1423 arg2 = &temp2;
1424 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1425 }
1426 {
1427 PyThreadState* __tstate = wxPyBeginAllowThreads();
1428 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1429
1430 wxPyEndAllowThreads(__tstate);
1431 if (PyErr_Occurred()) SWIG_fail;
1432 }
1433 {
1434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1435 }
1436 return resultobj;
1437 fail:
1438 return NULL;
1439 }
1440
1441
1442 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1443 PyObject *resultobj;
1444 wxColour *arg1 = (wxColour *) 0 ;
1445 wxColour *arg2 = 0 ;
1446 bool result;
1447 wxColour temp2 ;
1448 PyObject * obj0 = 0 ;
1449 PyObject * obj1 = 0 ;
1450 char *kwnames[] = {
1451 (char *) "self",(char *) "colour", NULL
1452 };
1453
1454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1457 {
1458 arg2 = &temp2;
1459 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1460 }
1461 {
1462 PyThreadState* __tstate = wxPyBeginAllowThreads();
1463 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1464
1465 wxPyEndAllowThreads(__tstate);
1466 if (PyErr_Occurred()) SWIG_fail;
1467 }
1468 {
1469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1470 }
1471 return resultobj;
1472 fail:
1473 return NULL;
1474 }
1475
1476
1477 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1478 PyObject *resultobj;
1479 wxColour *arg1 = (wxColour *) 0 ;
1480 PyObject *result;
1481 PyObject * obj0 = 0 ;
1482 char *kwnames[] = {
1483 (char *) "self", NULL
1484 };
1485
1486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1489 {
1490 PyThreadState* __tstate = wxPyBeginAllowThreads();
1491 result = (PyObject *)wxColour_Get(arg1);
1492
1493 wxPyEndAllowThreads(__tstate);
1494 if (PyErr_Occurred()) SWIG_fail;
1495 }
1496 resultobj = result;
1497 return resultobj;
1498 fail:
1499 return NULL;
1500 }
1501
1502
1503 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1504 PyObject *resultobj;
1505 wxColour *arg1 = (wxColour *) 0 ;
1506 unsigned long result;
1507 PyObject * obj0 = 0 ;
1508 char *kwnames[] = {
1509 (char *) "self", NULL
1510 };
1511
1512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1515 {
1516 PyThreadState* __tstate = wxPyBeginAllowThreads();
1517 result = (unsigned long)wxColour_GetRGB(arg1);
1518
1519 wxPyEndAllowThreads(__tstate);
1520 if (PyErr_Occurred()) SWIG_fail;
1521 }
1522 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1523 return resultobj;
1524 fail:
1525 return NULL;
1526 }
1527
1528
1529 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1530 PyObject *obj;
1531 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1532 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1533 Py_INCREF(obj);
1534 return Py_BuildValue((char *)"");
1535 }
1536 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1537 PyObject *resultobj;
1538 int arg1 ;
1539 unsigned char *arg2 = (unsigned char *) 0 ;
1540 unsigned char *arg3 = (unsigned char *) 0 ;
1541 unsigned char *arg4 = (unsigned char *) 0 ;
1542 wxPalette *result;
1543 PyObject * obj0 = 0 ;
1544 PyObject * obj1 = 0 ;
1545 PyObject * obj2 = 0 ;
1546 PyObject * obj3 = 0 ;
1547 char *kwnames[] = {
1548 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1549 };
1550
1551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1552 arg1 = (int) SWIG_AsInt(obj0);
1553 if (PyErr_Occurred()) SWIG_fail;
1554 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1556 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1558 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1560 {
1561 PyThreadState* __tstate = wxPyBeginAllowThreads();
1562 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1563
1564 wxPyEndAllowThreads(__tstate);
1565 if (PyErr_Occurred()) SWIG_fail;
1566 }
1567 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1568 return resultobj;
1569 fail:
1570 return NULL;
1571 }
1572
1573
1574 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1575 PyObject *resultobj;
1576 wxPalette *arg1 = (wxPalette *) 0 ;
1577 PyObject * obj0 = 0 ;
1578 char *kwnames[] = {
1579 (char *) "self", NULL
1580 };
1581
1582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1584 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1585 {
1586 PyThreadState* __tstate = wxPyBeginAllowThreads();
1587 delete arg1;
1588
1589 wxPyEndAllowThreads(__tstate);
1590 if (PyErr_Occurred()) SWIG_fail;
1591 }
1592 Py_INCREF(Py_None); resultobj = Py_None;
1593 return resultobj;
1594 fail:
1595 return NULL;
1596 }
1597
1598
1599 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1600 PyObject *resultobj;
1601 wxPalette *arg1 = (wxPalette *) 0 ;
1602 byte arg2 ;
1603 byte arg3 ;
1604 byte arg4 ;
1605 int result;
1606 PyObject * obj0 = 0 ;
1607 PyObject * obj1 = 0 ;
1608 PyObject * obj2 = 0 ;
1609 PyObject * obj3 = 0 ;
1610 char *kwnames[] = {
1611 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1612 };
1613
1614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1617 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1618 if (PyErr_Occurred()) SWIG_fail;
1619 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1620 if (PyErr_Occurred()) SWIG_fail;
1621 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 {
1624 PyThreadState* __tstate = wxPyBeginAllowThreads();
1625 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1626
1627 wxPyEndAllowThreads(__tstate);
1628 if (PyErr_Occurred()) SWIG_fail;
1629 }
1630 resultobj = SWIG_FromInt((int)result);
1631 return resultobj;
1632 fail:
1633 return NULL;
1634 }
1635
1636
1637 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1638 PyObject *resultobj;
1639 wxPalette *arg1 = (wxPalette *) 0 ;
1640 int arg2 ;
1641 byte *arg3 = (byte *) 0 ;
1642 byte *arg4 = (byte *) 0 ;
1643 byte *arg5 = (byte *) 0 ;
1644 bool result;
1645 byte temp3 ;
1646 byte temp4 ;
1647 byte temp5 ;
1648 PyObject * obj0 = 0 ;
1649 PyObject * obj1 = 0 ;
1650 char *kwnames[] = {
1651 (char *) "self",(char *) "pixel", NULL
1652 };
1653
1654 arg3 = &temp3;
1655 arg4 = &temp4;
1656 arg5 = &temp5;
1657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1660 arg2 = (int) SWIG_AsInt(obj1);
1661 if (PyErr_Occurred()) SWIG_fail;
1662 {
1663 PyThreadState* __tstate = wxPyBeginAllowThreads();
1664 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1665
1666 wxPyEndAllowThreads(__tstate);
1667 if (PyErr_Occurred()) SWIG_fail;
1668 }
1669 {
1670 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1671 }
1672 {
1673 PyObject *o = PyInt_FromLong((long) (*arg3));
1674 resultobj = t_output_helper(resultobj,o);
1675 }
1676 {
1677 PyObject *o = PyInt_FromLong((long) (*arg4));
1678 resultobj = t_output_helper(resultobj,o);
1679 }
1680 {
1681 PyObject *o = PyInt_FromLong((long) (*arg5));
1682 resultobj = t_output_helper(resultobj,o);
1683 }
1684 return resultobj;
1685 fail:
1686 return NULL;
1687 }
1688
1689
1690 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1691 PyObject *resultobj;
1692 wxPalette *arg1 = (wxPalette *) 0 ;
1693 bool result;
1694 PyObject * obj0 = 0 ;
1695 char *kwnames[] = {
1696 (char *) "self", NULL
1697 };
1698
1699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1702 {
1703 PyThreadState* __tstate = wxPyBeginAllowThreads();
1704 result = (bool)(arg1)->Ok();
1705
1706 wxPyEndAllowThreads(__tstate);
1707 if (PyErr_Occurred()) SWIG_fail;
1708 }
1709 {
1710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1711 }
1712 return resultobj;
1713 fail:
1714 return NULL;
1715 }
1716
1717
1718 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1719 PyObject *obj;
1720 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1721 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1722 Py_INCREF(obj);
1723 return Py_BuildValue((char *)"");
1724 }
1725 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1726 PyObject *resultobj;
1727 wxColour *arg1 = 0 ;
1728 int arg2 = (int) 1 ;
1729 int arg3 = (int) wxSOLID ;
1730 wxPen *result;
1731 wxColour temp1 ;
1732 PyObject * obj0 = 0 ;
1733 PyObject * obj1 = 0 ;
1734 PyObject * obj2 = 0 ;
1735 char *kwnames[] = {
1736 (char *) "colour",(char *) "width",(char *) "style", NULL
1737 };
1738
1739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1740 {
1741 arg1 = &temp1;
1742 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1743 }
1744 if (obj1) {
1745 arg2 = (int) SWIG_AsInt(obj1);
1746 if (PyErr_Occurred()) SWIG_fail;
1747 }
1748 if (obj2) {
1749 arg3 = (int) SWIG_AsInt(obj2);
1750 if (PyErr_Occurred()) SWIG_fail;
1751 }
1752 {
1753 PyThreadState* __tstate = wxPyBeginAllowThreads();
1754 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1755
1756 wxPyEndAllowThreads(__tstate);
1757 if (PyErr_Occurred()) SWIG_fail;
1758 }
1759 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1760 return resultobj;
1761 fail:
1762 return NULL;
1763 }
1764
1765
1766 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1767 PyObject *resultobj;
1768 wxPen *arg1 = (wxPen *) 0 ;
1769 PyObject * obj0 = 0 ;
1770 char *kwnames[] = {
1771 (char *) "self", NULL
1772 };
1773
1774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1777 {
1778 PyThreadState* __tstate = wxPyBeginAllowThreads();
1779 delete arg1;
1780
1781 wxPyEndAllowThreads(__tstate);
1782 if (PyErr_Occurred()) SWIG_fail;
1783 }
1784 Py_INCREF(Py_None); resultobj = Py_None;
1785 return resultobj;
1786 fail:
1787 return NULL;
1788 }
1789
1790
1791 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1792 PyObject *resultobj;
1793 wxPen *arg1 = (wxPen *) 0 ;
1794 int result;
1795 PyObject * obj0 = 0 ;
1796 char *kwnames[] = {
1797 (char *) "self", NULL
1798 };
1799
1800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1803 {
1804 PyThreadState* __tstate = wxPyBeginAllowThreads();
1805 result = (int)(arg1)->GetCap();
1806
1807 wxPyEndAllowThreads(__tstate);
1808 if (PyErr_Occurred()) SWIG_fail;
1809 }
1810 resultobj = SWIG_FromInt((int)result);
1811 return resultobj;
1812 fail:
1813 return NULL;
1814 }
1815
1816
1817 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1818 PyObject *resultobj;
1819 wxPen *arg1 = (wxPen *) 0 ;
1820 wxColour result;
1821 PyObject * obj0 = 0 ;
1822 char *kwnames[] = {
1823 (char *) "self", NULL
1824 };
1825
1826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1829 {
1830 PyThreadState* __tstate = wxPyBeginAllowThreads();
1831 result = (arg1)->GetColour();
1832
1833 wxPyEndAllowThreads(__tstate);
1834 if (PyErr_Occurred()) SWIG_fail;
1835 }
1836 {
1837 wxColour * resultptr;
1838 resultptr = new wxColour((wxColour &) result);
1839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1840 }
1841 return resultobj;
1842 fail:
1843 return NULL;
1844 }
1845
1846
1847 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1848 PyObject *resultobj;
1849 wxPen *arg1 = (wxPen *) 0 ;
1850 int result;
1851 PyObject * obj0 = 0 ;
1852 char *kwnames[] = {
1853 (char *) "self", NULL
1854 };
1855
1856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1859 {
1860 PyThreadState* __tstate = wxPyBeginAllowThreads();
1861 result = (int)(arg1)->GetJoin();
1862
1863 wxPyEndAllowThreads(__tstate);
1864 if (PyErr_Occurred()) SWIG_fail;
1865 }
1866 resultobj = SWIG_FromInt((int)result);
1867 return resultobj;
1868 fail:
1869 return NULL;
1870 }
1871
1872
1873 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1874 PyObject *resultobj;
1875 wxPen *arg1 = (wxPen *) 0 ;
1876 int result;
1877 PyObject * obj0 = 0 ;
1878 char *kwnames[] = {
1879 (char *) "self", NULL
1880 };
1881
1882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1885 {
1886 PyThreadState* __tstate = wxPyBeginAllowThreads();
1887 result = (int)(arg1)->GetStyle();
1888
1889 wxPyEndAllowThreads(__tstate);
1890 if (PyErr_Occurred()) SWIG_fail;
1891 }
1892 resultobj = SWIG_FromInt((int)result);
1893 return resultobj;
1894 fail:
1895 return NULL;
1896 }
1897
1898
1899 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1900 PyObject *resultobj;
1901 wxPen *arg1 = (wxPen *) 0 ;
1902 int result;
1903 PyObject * obj0 = 0 ;
1904 char *kwnames[] = {
1905 (char *) "self", NULL
1906 };
1907
1908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1911 {
1912 PyThreadState* __tstate = wxPyBeginAllowThreads();
1913 result = (int)(arg1)->GetWidth();
1914
1915 wxPyEndAllowThreads(__tstate);
1916 if (PyErr_Occurred()) SWIG_fail;
1917 }
1918 resultobj = SWIG_FromInt((int)result);
1919 return resultobj;
1920 fail:
1921 return NULL;
1922 }
1923
1924
1925 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1926 PyObject *resultobj;
1927 wxPen *arg1 = (wxPen *) 0 ;
1928 bool result;
1929 PyObject * obj0 = 0 ;
1930 char *kwnames[] = {
1931 (char *) "self", NULL
1932 };
1933
1934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1937 {
1938 PyThreadState* __tstate = wxPyBeginAllowThreads();
1939 result = (bool)(arg1)->Ok();
1940
1941 wxPyEndAllowThreads(__tstate);
1942 if (PyErr_Occurred()) SWIG_fail;
1943 }
1944 {
1945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1946 }
1947 return resultobj;
1948 fail:
1949 return NULL;
1950 }
1951
1952
1953 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1954 PyObject *resultobj;
1955 wxPen *arg1 = (wxPen *) 0 ;
1956 int arg2 ;
1957 PyObject * obj0 = 0 ;
1958 PyObject * obj1 = 0 ;
1959 char *kwnames[] = {
1960 (char *) "self",(char *) "cap_style", NULL
1961 };
1962
1963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1966 arg2 = (int) SWIG_AsInt(obj1);
1967 if (PyErr_Occurred()) SWIG_fail;
1968 {
1969 PyThreadState* __tstate = wxPyBeginAllowThreads();
1970 (arg1)->SetCap(arg2);
1971
1972 wxPyEndAllowThreads(__tstate);
1973 if (PyErr_Occurred()) SWIG_fail;
1974 }
1975 Py_INCREF(Py_None); resultobj = Py_None;
1976 return resultobj;
1977 fail:
1978 return NULL;
1979 }
1980
1981
1982 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1983 PyObject *resultobj;
1984 wxPen *arg1 = (wxPen *) 0 ;
1985 wxColour *arg2 = 0 ;
1986 wxColour temp2 ;
1987 PyObject * obj0 = 0 ;
1988 PyObject * obj1 = 0 ;
1989 char *kwnames[] = {
1990 (char *) "self",(char *) "colour", NULL
1991 };
1992
1993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1996 {
1997 arg2 = &temp2;
1998 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1999 }
2000 {
2001 PyThreadState* __tstate = wxPyBeginAllowThreads();
2002 (arg1)->SetColour(*arg2);
2003
2004 wxPyEndAllowThreads(__tstate);
2005 if (PyErr_Occurred()) SWIG_fail;
2006 }
2007 Py_INCREF(Py_None); resultobj = Py_None;
2008 return resultobj;
2009 fail:
2010 return NULL;
2011 }
2012
2013
2014 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2015 PyObject *resultobj;
2016 wxPen *arg1 = (wxPen *) 0 ;
2017 int arg2 ;
2018 PyObject * obj0 = 0 ;
2019 PyObject * obj1 = 0 ;
2020 char *kwnames[] = {
2021 (char *) "self",(char *) "join_style", NULL
2022 };
2023
2024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2027 arg2 = (int) SWIG_AsInt(obj1);
2028 if (PyErr_Occurred()) SWIG_fail;
2029 {
2030 PyThreadState* __tstate = wxPyBeginAllowThreads();
2031 (arg1)->SetJoin(arg2);
2032
2033 wxPyEndAllowThreads(__tstate);
2034 if (PyErr_Occurred()) SWIG_fail;
2035 }
2036 Py_INCREF(Py_None); resultobj = Py_None;
2037 return resultobj;
2038 fail:
2039 return NULL;
2040 }
2041
2042
2043 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2044 PyObject *resultobj;
2045 wxPen *arg1 = (wxPen *) 0 ;
2046 int arg2 ;
2047 PyObject * obj0 = 0 ;
2048 PyObject * obj1 = 0 ;
2049 char *kwnames[] = {
2050 (char *) "self",(char *) "style", NULL
2051 };
2052
2053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2056 arg2 = (int) SWIG_AsInt(obj1);
2057 if (PyErr_Occurred()) SWIG_fail;
2058 {
2059 PyThreadState* __tstate = wxPyBeginAllowThreads();
2060 (arg1)->SetStyle(arg2);
2061
2062 wxPyEndAllowThreads(__tstate);
2063 if (PyErr_Occurred()) SWIG_fail;
2064 }
2065 Py_INCREF(Py_None); resultobj = Py_None;
2066 return resultobj;
2067 fail:
2068 return NULL;
2069 }
2070
2071
2072 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2073 PyObject *resultobj;
2074 wxPen *arg1 = (wxPen *) 0 ;
2075 int arg2 ;
2076 PyObject * obj0 = 0 ;
2077 PyObject * obj1 = 0 ;
2078 char *kwnames[] = {
2079 (char *) "self",(char *) "width", NULL
2080 };
2081
2082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2085 arg2 = (int) SWIG_AsInt(obj1);
2086 if (PyErr_Occurred()) SWIG_fail;
2087 {
2088 PyThreadState* __tstate = wxPyBeginAllowThreads();
2089 (arg1)->SetWidth(arg2);
2090
2091 wxPyEndAllowThreads(__tstate);
2092 if (PyErr_Occurred()) SWIG_fail;
2093 }
2094 Py_INCREF(Py_None); resultobj = Py_None;
2095 return resultobj;
2096 fail:
2097 return NULL;
2098 }
2099
2100
2101 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2102 PyObject *resultobj;
2103 wxPen *arg1 = (wxPen *) 0 ;
2104 int arg2 ;
2105 wxDash *arg3 = (wxDash *) 0 ;
2106 PyObject * obj0 = 0 ;
2107 PyObject * obj1 = 0 ;
2108 char *kwnames[] = {
2109 (char *) "self",(char *) "dashes", NULL
2110 };
2111
2112 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2113 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2114 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2115 {
2116 arg2 = PyList_Size(obj1);
2117 arg3 = (wxDash*)byte_LIST_helper(obj1);
2118 if (arg3 == NULL) SWIG_fail;
2119 }
2120 {
2121 PyThreadState* __tstate = wxPyBeginAllowThreads();
2122 (arg1)->SetDashes(arg2,arg3);
2123
2124 wxPyEndAllowThreads(__tstate);
2125 if (PyErr_Occurred()) SWIG_fail;
2126 }
2127 Py_INCREF(Py_None); resultobj = Py_None;
2128 {
2129 if (arg3) delete [] arg3;
2130 }
2131 return resultobj;
2132 fail:
2133 {
2134 if (arg3) delete [] arg3;
2135 }
2136 return NULL;
2137 }
2138
2139
2140 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2141 PyObject *resultobj;
2142 wxPen *arg1 = (wxPen *) 0 ;
2143 PyObject *result;
2144 PyObject * obj0 = 0 ;
2145 char *kwnames[] = {
2146 (char *) "self", NULL
2147 };
2148
2149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2152 {
2153 PyThreadState* __tstate = wxPyBeginAllowThreads();
2154 result = (PyObject *)wxPen_GetDashes(arg1);
2155
2156 wxPyEndAllowThreads(__tstate);
2157 if (PyErr_Occurred()) SWIG_fail;
2158 }
2159 resultobj = result;
2160 return resultobj;
2161 fail:
2162 return NULL;
2163 }
2164
2165
2166 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2167 PyObject *resultobj;
2168 wxPen *arg1 = (wxPen *) 0 ;
2169 PyObject *arg2 = (PyObject *) 0 ;
2170 PyObject *arg3 = (PyObject *) 0 ;
2171 PyObject * obj0 = 0 ;
2172 PyObject * obj1 = 0 ;
2173 PyObject * obj2 = 0 ;
2174 char *kwnames[] = {
2175 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2176 };
2177
2178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2181 arg2 = obj1;
2182 arg3 = obj2;
2183 {
2184 PyThreadState* __tstate = wxPyBeginAllowThreads();
2185 wxPen__SetDashes(arg1,arg2,arg3);
2186
2187 wxPyEndAllowThreads(__tstate);
2188 if (PyErr_Occurred()) SWIG_fail;
2189 }
2190 Py_INCREF(Py_None); resultobj = Py_None;
2191 return resultobj;
2192 fail:
2193 return NULL;
2194 }
2195
2196
2197 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2198 PyObject *resultobj;
2199 wxPen *arg1 = (wxPen *) 0 ;
2200 wxPen *arg2 = (wxPen *) 0 ;
2201 bool result;
2202 PyObject * obj0 = 0 ;
2203 PyObject * obj1 = 0 ;
2204 char *kwnames[] = {
2205 (char *) "self",(char *) "other", NULL
2206 };
2207
2208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2209 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2210 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2211 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2213 {
2214 PyThreadState* __tstate = wxPyBeginAllowThreads();
2215 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2216
2217 wxPyEndAllowThreads(__tstate);
2218 if (PyErr_Occurred()) SWIG_fail;
2219 }
2220 {
2221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2222 }
2223 return resultobj;
2224 fail:
2225 return NULL;
2226 }
2227
2228
2229 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2230 PyObject *resultobj;
2231 wxPen *arg1 = (wxPen *) 0 ;
2232 wxPen *arg2 = (wxPen *) 0 ;
2233 bool result;
2234 PyObject * obj0 = 0 ;
2235 PyObject * obj1 = 0 ;
2236 char *kwnames[] = {
2237 (char *) "self",(char *) "other", NULL
2238 };
2239
2240 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2243 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2245 {
2246 PyThreadState* __tstate = wxPyBeginAllowThreads();
2247 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2248
2249 wxPyEndAllowThreads(__tstate);
2250 if (PyErr_Occurred()) SWIG_fail;
2251 }
2252 {
2253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2254 }
2255 return resultobj;
2256 fail:
2257 return NULL;
2258 }
2259
2260
2261 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2262 PyObject *obj;
2263 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2264 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2265 Py_INCREF(obj);
2266 return Py_BuildValue((char *)"");
2267 }
2268 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2269 PyObject *resultobj;
2270 wxColour *arg1 = 0 ;
2271 int arg2 = (int) wxSOLID ;
2272 wxBrush *result;
2273 wxColour temp1 ;
2274 PyObject * obj0 = 0 ;
2275 PyObject * obj1 = 0 ;
2276 char *kwnames[] = {
2277 (char *) "colour",(char *) "style", NULL
2278 };
2279
2280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2281 {
2282 arg1 = &temp1;
2283 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2284 }
2285 if (obj1) {
2286 arg2 = (int) SWIG_AsInt(obj1);
2287 if (PyErr_Occurred()) SWIG_fail;
2288 }
2289 {
2290 PyThreadState* __tstate = wxPyBeginAllowThreads();
2291 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2292
2293 wxPyEndAllowThreads(__tstate);
2294 if (PyErr_Occurred()) SWIG_fail;
2295 }
2296 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2297 return resultobj;
2298 fail:
2299 return NULL;
2300 }
2301
2302
2303 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2304 PyObject *resultobj;
2305 wxBrush *arg1 = (wxBrush *) 0 ;
2306 PyObject * obj0 = 0 ;
2307 char *kwnames[] = {
2308 (char *) "self", NULL
2309 };
2310
2311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2314 {
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 delete arg1;
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 }
2321 Py_INCREF(Py_None); resultobj = Py_None;
2322 return resultobj;
2323 fail:
2324 return NULL;
2325 }
2326
2327
2328 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2329 PyObject *resultobj;
2330 wxBrush *arg1 = (wxBrush *) 0 ;
2331 wxColour *arg2 = 0 ;
2332 wxColour temp2 ;
2333 PyObject * obj0 = 0 ;
2334 PyObject * obj1 = 0 ;
2335 char *kwnames[] = {
2336 (char *) "self",(char *) "col", NULL
2337 };
2338
2339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2342 {
2343 arg2 = &temp2;
2344 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2345 }
2346 {
2347 PyThreadState* __tstate = wxPyBeginAllowThreads();
2348 (arg1)->SetColour((wxColour const &)*arg2);
2349
2350 wxPyEndAllowThreads(__tstate);
2351 if (PyErr_Occurred()) SWIG_fail;
2352 }
2353 Py_INCREF(Py_None); resultobj = Py_None;
2354 return resultobj;
2355 fail:
2356 return NULL;
2357 }
2358
2359
2360 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2361 PyObject *resultobj;
2362 wxBrush *arg1 = (wxBrush *) 0 ;
2363 int arg2 ;
2364 PyObject * obj0 = 0 ;
2365 PyObject * obj1 = 0 ;
2366 char *kwnames[] = {
2367 (char *) "self",(char *) "style", NULL
2368 };
2369
2370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2373 arg2 = (int) SWIG_AsInt(obj1);
2374 if (PyErr_Occurred()) SWIG_fail;
2375 {
2376 PyThreadState* __tstate = wxPyBeginAllowThreads();
2377 (arg1)->SetStyle(arg2);
2378
2379 wxPyEndAllowThreads(__tstate);
2380 if (PyErr_Occurred()) SWIG_fail;
2381 }
2382 Py_INCREF(Py_None); resultobj = Py_None;
2383 return resultobj;
2384 fail:
2385 return NULL;
2386 }
2387
2388
2389 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2390 PyObject *resultobj;
2391 wxBrush *arg1 = (wxBrush *) 0 ;
2392 wxBitmap *arg2 = 0 ;
2393 PyObject * obj0 = 0 ;
2394 PyObject * obj1 = 0 ;
2395 char *kwnames[] = {
2396 (char *) "self",(char *) "stipple", NULL
2397 };
2398
2399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2403 SWIG_POINTER_EXCEPTION | 0)) == -1)
2404 SWIG_fail;
2405 if (arg2 == NULL) {
2406 PyErr_SetString(PyExc_TypeError,"null reference");
2407 SWIG_fail;
2408 }
2409 {
2410 PyThreadState* __tstate = wxPyBeginAllowThreads();
2411 (arg1)->SetStipple((wxBitmap const &)*arg2);
2412
2413 wxPyEndAllowThreads(__tstate);
2414 if (PyErr_Occurred()) SWIG_fail;
2415 }
2416 Py_INCREF(Py_None); resultobj = Py_None;
2417 return resultobj;
2418 fail:
2419 return NULL;
2420 }
2421
2422
2423 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2424 PyObject *resultobj;
2425 wxBrush *arg1 = (wxBrush *) 0 ;
2426 wxColour result;
2427 PyObject * obj0 = 0 ;
2428 char *kwnames[] = {
2429 (char *) "self", NULL
2430 };
2431
2432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2433 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2434 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2435 {
2436 PyThreadState* __tstate = wxPyBeginAllowThreads();
2437 result = ((wxBrush const *)arg1)->GetColour();
2438
2439 wxPyEndAllowThreads(__tstate);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 }
2442 {
2443 wxColour * resultptr;
2444 resultptr = new wxColour((wxColour &) result);
2445 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2446 }
2447 return resultobj;
2448 fail:
2449 return NULL;
2450 }
2451
2452
2453 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2454 PyObject *resultobj;
2455 wxBrush *arg1 = (wxBrush *) 0 ;
2456 int result;
2457 PyObject * obj0 = 0 ;
2458 char *kwnames[] = {
2459 (char *) "self", NULL
2460 };
2461
2462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2465 {
2466 PyThreadState* __tstate = wxPyBeginAllowThreads();
2467 result = (int)((wxBrush const *)arg1)->GetStyle();
2468
2469 wxPyEndAllowThreads(__tstate);
2470 if (PyErr_Occurred()) SWIG_fail;
2471 }
2472 resultobj = SWIG_FromInt((int)result);
2473 return resultobj;
2474 fail:
2475 return NULL;
2476 }
2477
2478
2479 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2480 PyObject *resultobj;
2481 wxBrush *arg1 = (wxBrush *) 0 ;
2482 wxBitmap *result;
2483 PyObject * obj0 = 0 ;
2484 char *kwnames[] = {
2485 (char *) "self", NULL
2486 };
2487
2488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2491 {
2492 PyThreadState* __tstate = wxPyBeginAllowThreads();
2493 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2494
2495 wxPyEndAllowThreads(__tstate);
2496 if (PyErr_Occurred()) SWIG_fail;
2497 }
2498 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2499 return resultobj;
2500 fail:
2501 return NULL;
2502 }
2503
2504
2505 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2506 PyObject *resultobj;
2507 wxBrush *arg1 = (wxBrush *) 0 ;
2508 bool result;
2509 PyObject * obj0 = 0 ;
2510 char *kwnames[] = {
2511 (char *) "self", NULL
2512 };
2513
2514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2517 {
2518 PyThreadState* __tstate = wxPyBeginAllowThreads();
2519 result = (bool)(arg1)->Ok();
2520
2521 wxPyEndAllowThreads(__tstate);
2522 if (PyErr_Occurred()) SWIG_fail;
2523 }
2524 {
2525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2526 }
2527 return resultobj;
2528 fail:
2529 return NULL;
2530 }
2531
2532
2533 static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2534 PyObject *resultobj;
2535 wxBrush *arg1 = (wxBrush *) 0 ;
2536 short result;
2537 PyObject * obj0 = 0 ;
2538 char *kwnames[] = {
2539 (char *) "self", NULL
2540 };
2541
2542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2544 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2545 {
2546 PyThreadState* __tstate = wxPyBeginAllowThreads();
2547 result = (short)(arg1)->MacGetTheme();
2548
2549 wxPyEndAllowThreads(__tstate);
2550 if (PyErr_Occurred()) SWIG_fail;
2551 }
2552 resultobj = SWIG_FromShort((short)result);
2553 return resultobj;
2554 fail:
2555 return NULL;
2556 }
2557
2558
2559 static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2560 PyObject *resultobj;
2561 wxBrush *arg1 = (wxBrush *) 0 ;
2562 short arg2 ;
2563 PyObject * obj0 = 0 ;
2564 PyObject * obj1 = 0 ;
2565 char *kwnames[] = {
2566 (char *) "self",(char *) "macThemeBrush", NULL
2567 };
2568
2569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2572 arg2 = (short) SWIG_AsShort(obj1);
2573 if (PyErr_Occurred()) SWIG_fail;
2574 {
2575 PyThreadState* __tstate = wxPyBeginAllowThreads();
2576 (arg1)->MacSetTheme(arg2);
2577
2578 wxPyEndAllowThreads(__tstate);
2579 if (PyErr_Occurred()) SWIG_fail;
2580 }
2581 Py_INCREF(Py_None); resultobj = Py_None;
2582 return resultobj;
2583 fail:
2584 return NULL;
2585 }
2586
2587
2588 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2589 PyObject *obj;
2590 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2591 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2592 Py_INCREF(obj);
2593 return Py_BuildValue((char *)"");
2594 }
2595 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2596 PyObject *resultobj;
2597 wxString *arg1 = 0 ;
2598 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2599 wxBitmap *result;
2600 bool temp1 = False ;
2601 PyObject * obj0 = 0 ;
2602 PyObject * obj1 = 0 ;
2603 char *kwnames[] = {
2604 (char *) "name",(char *) "type", NULL
2605 };
2606
2607 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2608 {
2609 arg1 = wxString_in_helper(obj0);
2610 if (arg1 == NULL) SWIG_fail;
2611 temp1 = True;
2612 }
2613 if (obj1) {
2614 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2615 if (PyErr_Occurred()) SWIG_fail;
2616 }
2617 {
2618 PyThreadState* __tstate = wxPyBeginAllowThreads();
2619 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2620
2621 wxPyEndAllowThreads(__tstate);
2622 if (PyErr_Occurred()) SWIG_fail;
2623 }
2624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2625 {
2626 if (temp1)
2627 delete arg1;
2628 }
2629 return resultobj;
2630 fail:
2631 {
2632 if (temp1)
2633 delete arg1;
2634 }
2635 return NULL;
2636 }
2637
2638
2639 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2640 PyObject *resultobj;
2641 wxBitmap *arg1 = (wxBitmap *) 0 ;
2642 PyObject * obj0 = 0 ;
2643 char *kwnames[] = {
2644 (char *) "self", NULL
2645 };
2646
2647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2650 {
2651 PyThreadState* __tstate = wxPyBeginAllowThreads();
2652 delete arg1;
2653
2654 wxPyEndAllowThreads(__tstate);
2655 if (PyErr_Occurred()) SWIG_fail;
2656 }
2657 Py_INCREF(Py_None); resultobj = Py_None;
2658 return resultobj;
2659 fail:
2660 return NULL;
2661 }
2662
2663
2664 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2665 PyObject *resultobj;
2666 int arg1 ;
2667 int arg2 ;
2668 int arg3 = (int) -1 ;
2669 wxBitmap *result;
2670 PyObject * obj0 = 0 ;
2671 PyObject * obj1 = 0 ;
2672 PyObject * obj2 = 0 ;
2673 char *kwnames[] = {
2674 (char *) "width",(char *) "height",(char *) "depth", NULL
2675 };
2676
2677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2678 arg1 = (int) SWIG_AsInt(obj0);
2679 if (PyErr_Occurred()) SWIG_fail;
2680 arg2 = (int) SWIG_AsInt(obj1);
2681 if (PyErr_Occurred()) SWIG_fail;
2682 if (obj2) {
2683 arg3 = (int) SWIG_AsInt(obj2);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 }
2686 {
2687 PyThreadState* __tstate = wxPyBeginAllowThreads();
2688 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2689
2690 wxPyEndAllowThreads(__tstate);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 }
2693 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2694 return resultobj;
2695 fail:
2696 return NULL;
2697 }
2698
2699
2700 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2701 PyObject *resultobj;
2702 wxIcon *arg1 = 0 ;
2703 wxBitmap *result;
2704 PyObject * obj0 = 0 ;
2705 char *kwnames[] = {
2706 (char *) "icon", NULL
2707 };
2708
2709 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2710 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2711 SWIG_POINTER_EXCEPTION | 0)) == -1)
2712 SWIG_fail;
2713 if (arg1 == NULL) {
2714 PyErr_SetString(PyExc_TypeError,"null reference");
2715 SWIG_fail;
2716 }
2717 {
2718 PyThreadState* __tstate = wxPyBeginAllowThreads();
2719 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2720
2721 wxPyEndAllowThreads(__tstate);
2722 if (PyErr_Occurred()) SWIG_fail;
2723 }
2724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2725 return resultobj;
2726 fail:
2727 return NULL;
2728 }
2729
2730
2731 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2732 PyObject *resultobj;
2733 wxImage *arg1 = 0 ;
2734 int arg2 = (int) -1 ;
2735 wxBitmap *result;
2736 PyObject * obj0 = 0 ;
2737 PyObject * obj1 = 0 ;
2738 char *kwnames[] = {
2739 (char *) "image",(char *) "depth", NULL
2740 };
2741
2742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2744 SWIG_POINTER_EXCEPTION | 0)) == -1)
2745 SWIG_fail;
2746 if (arg1 == NULL) {
2747 PyErr_SetString(PyExc_TypeError,"null reference");
2748 SWIG_fail;
2749 }
2750 if (obj1) {
2751 arg2 = (int) SWIG_AsInt(obj1);
2752 if (PyErr_Occurred()) SWIG_fail;
2753 }
2754 {
2755 PyThreadState* __tstate = wxPyBeginAllowThreads();
2756 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2757
2758 wxPyEndAllowThreads(__tstate);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 }
2761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2762 return resultobj;
2763 fail:
2764 return NULL;
2765 }
2766
2767
2768 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject *resultobj;
2770 PyObject *arg1 = (PyObject *) 0 ;
2771 wxBitmap *result;
2772 PyObject * obj0 = 0 ;
2773 char *kwnames[] = {
2774 (char *) "listOfStrings", NULL
2775 };
2776
2777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2778 arg1 = obj0;
2779 {
2780 PyThreadState* __tstate = wxPyBeginAllowThreads();
2781 result = (wxBitmap *)new_wxBitmap(arg1);
2782
2783 wxPyEndAllowThreads(__tstate);
2784 if (PyErr_Occurred()) SWIG_fail;
2785 }
2786 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2787 return resultobj;
2788 fail:
2789 return NULL;
2790 }
2791
2792
2793 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2794 PyObject *resultobj;
2795 PyObject *arg1 = (PyObject *) 0 ;
2796 int arg2 ;
2797 int arg3 ;
2798 int arg4 = (int) 1 ;
2799 wxBitmap *result;
2800 PyObject * obj0 = 0 ;
2801 PyObject * obj1 = 0 ;
2802 PyObject * obj2 = 0 ;
2803 PyObject * obj3 = 0 ;
2804 char *kwnames[] = {
2805 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2806 };
2807
2808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2809 arg1 = obj0;
2810 arg2 = (int) SWIG_AsInt(obj1);
2811 if (PyErr_Occurred()) SWIG_fail;
2812 arg3 = (int) SWIG_AsInt(obj2);
2813 if (PyErr_Occurred()) SWIG_fail;
2814 if (obj3) {
2815 arg4 = (int) SWIG_AsInt(obj3);
2816 if (PyErr_Occurred()) SWIG_fail;
2817 }
2818 {
2819 PyThreadState* __tstate = wxPyBeginAllowThreads();
2820 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2821
2822 wxPyEndAllowThreads(__tstate);
2823 if (PyErr_Occurred()) SWIG_fail;
2824 }
2825 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2826 return resultobj;
2827 fail:
2828 return NULL;
2829 }
2830
2831
2832 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2833 PyObject *resultobj;
2834 wxBitmap *arg1 = (wxBitmap *) 0 ;
2835 bool result;
2836 PyObject * obj0 = 0 ;
2837 char *kwnames[] = {
2838 (char *) "self", NULL
2839 };
2840
2841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2844 {
2845 PyThreadState* __tstate = wxPyBeginAllowThreads();
2846 result = (bool)(arg1)->Ok();
2847
2848 wxPyEndAllowThreads(__tstate);
2849 if (PyErr_Occurred()) SWIG_fail;
2850 }
2851 {
2852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2853 }
2854 return resultobj;
2855 fail:
2856 return NULL;
2857 }
2858
2859
2860 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2861 PyObject *resultobj;
2862 wxBitmap *arg1 = (wxBitmap *) 0 ;
2863 int result;
2864 PyObject * obj0 = 0 ;
2865 char *kwnames[] = {
2866 (char *) "self", NULL
2867 };
2868
2869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2872 {
2873 PyThreadState* __tstate = wxPyBeginAllowThreads();
2874 result = (int)(arg1)->GetWidth();
2875
2876 wxPyEndAllowThreads(__tstate);
2877 if (PyErr_Occurred()) SWIG_fail;
2878 }
2879 resultobj = SWIG_FromInt((int)result);
2880 return resultobj;
2881 fail:
2882 return NULL;
2883 }
2884
2885
2886 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2887 PyObject *resultobj;
2888 wxBitmap *arg1 = (wxBitmap *) 0 ;
2889 int result;
2890 PyObject * obj0 = 0 ;
2891 char *kwnames[] = {
2892 (char *) "self", NULL
2893 };
2894
2895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2898 {
2899 PyThreadState* __tstate = wxPyBeginAllowThreads();
2900 result = (int)(arg1)->GetHeight();
2901
2902 wxPyEndAllowThreads(__tstate);
2903 if (PyErr_Occurred()) SWIG_fail;
2904 }
2905 resultobj = SWIG_FromInt((int)result);
2906 return resultobj;
2907 fail:
2908 return NULL;
2909 }
2910
2911
2912 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2913 PyObject *resultobj;
2914 wxBitmap *arg1 = (wxBitmap *) 0 ;
2915 int result;
2916 PyObject * obj0 = 0 ;
2917 char *kwnames[] = {
2918 (char *) "self", NULL
2919 };
2920
2921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 result = (int)(arg1)->GetDepth();
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 resultobj = SWIG_FromInt((int)result);
2932 return resultobj;
2933 fail:
2934 return NULL;
2935 }
2936
2937
2938 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2939 PyObject *resultobj;
2940 wxBitmap *arg1 = (wxBitmap *) 0 ;
2941 wxSize result;
2942 PyObject * obj0 = 0 ;
2943 char *kwnames[] = {
2944 (char *) "self", NULL
2945 };
2946
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2950 {
2951 PyThreadState* __tstate = wxPyBeginAllowThreads();
2952 result = wxBitmap_GetSize(arg1);
2953
2954 wxPyEndAllowThreads(__tstate);
2955 if (PyErr_Occurred()) SWIG_fail;
2956 }
2957 {
2958 wxSize * resultptr;
2959 resultptr = new wxSize((wxSize &) result);
2960 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2961 }
2962 return resultobj;
2963 fail:
2964 return NULL;
2965 }
2966
2967
2968 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2969 PyObject *resultobj;
2970 wxBitmap *arg1 = (wxBitmap *) 0 ;
2971 SwigValueWrapper< wxImage > result;
2972 PyObject * obj0 = 0 ;
2973 char *kwnames[] = {
2974 (char *) "self", NULL
2975 };
2976
2977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2980 {
2981 PyThreadState* __tstate = wxPyBeginAllowThreads();
2982 result = ((wxBitmap const *)arg1)->ConvertToImage();
2983
2984 wxPyEndAllowThreads(__tstate);
2985 if (PyErr_Occurred()) SWIG_fail;
2986 }
2987 {
2988 wxImage * resultptr;
2989 resultptr = new wxImage((wxImage &) result);
2990 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
2991 }
2992 return resultobj;
2993 fail:
2994 return NULL;
2995 }
2996
2997
2998 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2999 PyObject *resultobj;
3000 wxBitmap *arg1 = (wxBitmap *) 0 ;
3001 wxMask *result;
3002 PyObject * obj0 = 0 ;
3003 char *kwnames[] = {
3004 (char *) "self", NULL
3005 };
3006
3007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3010 {
3011 PyThreadState* __tstate = wxPyBeginAllowThreads();
3012 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3013
3014 wxPyEndAllowThreads(__tstate);
3015 if (PyErr_Occurred()) SWIG_fail;
3016 }
3017 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3018 return resultobj;
3019 fail:
3020 return NULL;
3021 }
3022
3023
3024 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3025 PyObject *resultobj;
3026 wxBitmap *arg1 = (wxBitmap *) 0 ;
3027 wxMask *arg2 = (wxMask *) 0 ;
3028 PyObject * obj0 = 0 ;
3029 PyObject * obj1 = 0 ;
3030 char *kwnames[] = {
3031 (char *) "self",(char *) "mask", NULL
3032 };
3033
3034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3037 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3039 {
3040 PyThreadState* __tstate = wxPyBeginAllowThreads();
3041 (arg1)->SetMask(arg2);
3042
3043 wxPyEndAllowThreads(__tstate);
3044 if (PyErr_Occurred()) SWIG_fail;
3045 }
3046 Py_INCREF(Py_None); resultobj = Py_None;
3047 return resultobj;
3048 fail:
3049 return NULL;
3050 }
3051
3052
3053 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3054 PyObject *resultobj;
3055 wxBitmap *arg1 = (wxBitmap *) 0 ;
3056 wxColour *arg2 = 0 ;
3057 wxColour temp2 ;
3058 PyObject * obj0 = 0 ;
3059 PyObject * obj1 = 0 ;
3060 char *kwnames[] = {
3061 (char *) "self",(char *) "colour", NULL
3062 };
3063
3064 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3065 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3067 {
3068 arg2 = &temp2;
3069 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3070 }
3071 {
3072 PyThreadState* __tstate = wxPyBeginAllowThreads();
3073 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3074
3075 wxPyEndAllowThreads(__tstate);
3076 if (PyErr_Occurred()) SWIG_fail;
3077 }
3078 Py_INCREF(Py_None); resultobj = Py_None;
3079 return resultobj;
3080 fail:
3081 return NULL;
3082 }
3083
3084
3085 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3086 PyObject *resultobj;
3087 wxBitmap *arg1 = (wxBitmap *) 0 ;
3088 wxRect *arg2 = 0 ;
3089 SwigValueWrapper< wxBitmap > result;
3090 wxRect temp2 ;
3091 PyObject * obj0 = 0 ;
3092 PyObject * obj1 = 0 ;
3093 char *kwnames[] = {
3094 (char *) "self",(char *) "rect", NULL
3095 };
3096
3097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3100 {
3101 arg2 = &temp2;
3102 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3103 }
3104 {
3105 PyThreadState* __tstate = wxPyBeginAllowThreads();
3106 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3107
3108 wxPyEndAllowThreads(__tstate);
3109 if (PyErr_Occurred()) SWIG_fail;
3110 }
3111 {
3112 wxBitmap * resultptr;
3113 resultptr = new wxBitmap((wxBitmap &) result);
3114 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3115 }
3116 return resultobj;
3117 fail:
3118 return NULL;
3119 }
3120
3121
3122 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3123 PyObject *resultobj;
3124 wxBitmap *arg1 = (wxBitmap *) 0 ;
3125 wxString *arg2 = 0 ;
3126 int arg3 ;
3127 wxPalette *arg4 = (wxPalette *) NULL ;
3128 bool result;
3129 bool temp2 = False ;
3130 PyObject * obj0 = 0 ;
3131 PyObject * obj1 = 0 ;
3132 PyObject * obj2 = 0 ;
3133 PyObject * obj3 = 0 ;
3134 char *kwnames[] = {
3135 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3136 };
3137
3138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3141 {
3142 arg2 = wxString_in_helper(obj1);
3143 if (arg2 == NULL) SWIG_fail;
3144 temp2 = True;
3145 }
3146 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3147 if (PyErr_Occurred()) SWIG_fail;
3148 if (obj3) {
3149 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3151 }
3152 {
3153 PyThreadState* __tstate = wxPyBeginAllowThreads();
3154 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3155
3156 wxPyEndAllowThreads(__tstate);
3157 if (PyErr_Occurred()) SWIG_fail;
3158 }
3159 {
3160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3161 }
3162 {
3163 if (temp2)
3164 delete arg2;
3165 }
3166 return resultobj;
3167 fail:
3168 {
3169 if (temp2)
3170 delete arg2;
3171 }
3172 return NULL;
3173 }
3174
3175
3176 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3177 PyObject *resultobj;
3178 wxBitmap *arg1 = (wxBitmap *) 0 ;
3179 wxString *arg2 = 0 ;
3180 int arg3 ;
3181 bool result;
3182 bool temp2 = False ;
3183 PyObject * obj0 = 0 ;
3184 PyObject * obj1 = 0 ;
3185 PyObject * obj2 = 0 ;
3186 char *kwnames[] = {
3187 (char *) "self",(char *) "name",(char *) "type", NULL
3188 };
3189
3190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3193 {
3194 arg2 = wxString_in_helper(obj1);
3195 if (arg2 == NULL) SWIG_fail;
3196 temp2 = True;
3197 }
3198 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3199 if (PyErr_Occurred()) SWIG_fail;
3200 {
3201 PyThreadState* __tstate = wxPyBeginAllowThreads();
3202 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3203
3204 wxPyEndAllowThreads(__tstate);
3205 if (PyErr_Occurred()) SWIG_fail;
3206 }
3207 {
3208 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3209 }
3210 {
3211 if (temp2)
3212 delete arg2;
3213 }
3214 return resultobj;
3215 fail:
3216 {
3217 if (temp2)
3218 delete arg2;
3219 }
3220 return NULL;
3221 }
3222
3223
3224 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3225 PyObject *resultobj;
3226 wxBitmap *arg1 = (wxBitmap *) 0 ;
3227 wxIcon *arg2 = 0 ;
3228 bool result;
3229 PyObject * obj0 = 0 ;
3230 PyObject * obj1 = 0 ;
3231 char *kwnames[] = {
3232 (char *) "self",(char *) "icon", NULL
3233 };
3234
3235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3238 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3239 SWIG_POINTER_EXCEPTION | 0)) == -1)
3240 SWIG_fail;
3241 if (arg2 == NULL) {
3242 PyErr_SetString(PyExc_TypeError,"null reference");
3243 SWIG_fail;
3244 }
3245 {
3246 PyThreadState* __tstate = wxPyBeginAllowThreads();
3247 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3248
3249 wxPyEndAllowThreads(__tstate);
3250 if (PyErr_Occurred()) SWIG_fail;
3251 }
3252 {
3253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3254 }
3255 return resultobj;
3256 fail:
3257 return NULL;
3258 }
3259
3260
3261 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3262 PyObject *resultobj;
3263 wxBitmap *arg1 = (wxBitmap *) 0 ;
3264 int arg2 ;
3265 PyObject * obj0 = 0 ;
3266 PyObject * obj1 = 0 ;
3267 char *kwnames[] = {
3268 (char *) "self",(char *) "height", NULL
3269 };
3270
3271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3274 arg2 = (int) SWIG_AsInt(obj1);
3275 if (PyErr_Occurred()) SWIG_fail;
3276 {
3277 PyThreadState* __tstate = wxPyBeginAllowThreads();
3278 (arg1)->SetHeight(arg2);
3279
3280 wxPyEndAllowThreads(__tstate);
3281 if (PyErr_Occurred()) SWIG_fail;
3282 }
3283 Py_INCREF(Py_None); resultobj = Py_None;
3284 return resultobj;
3285 fail:
3286 return NULL;
3287 }
3288
3289
3290 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3291 PyObject *resultobj;
3292 wxBitmap *arg1 = (wxBitmap *) 0 ;
3293 int arg2 ;
3294 PyObject * obj0 = 0 ;
3295 PyObject * obj1 = 0 ;
3296 char *kwnames[] = {
3297 (char *) "self",(char *) "width", NULL
3298 };
3299
3300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3303 arg2 = (int) SWIG_AsInt(obj1);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 {
3306 PyThreadState* __tstate = wxPyBeginAllowThreads();
3307 (arg1)->SetWidth(arg2);
3308
3309 wxPyEndAllowThreads(__tstate);
3310 if (PyErr_Occurred()) SWIG_fail;
3311 }
3312 Py_INCREF(Py_None); resultobj = Py_None;
3313 return resultobj;
3314 fail:
3315 return NULL;
3316 }
3317
3318
3319 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3320 PyObject *resultobj;
3321 wxBitmap *arg1 = (wxBitmap *) 0 ;
3322 int arg2 ;
3323 PyObject * obj0 = 0 ;
3324 PyObject * obj1 = 0 ;
3325 char *kwnames[] = {
3326 (char *) "self",(char *) "depth", NULL
3327 };
3328
3329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3332 arg2 = (int) SWIG_AsInt(obj1);
3333 if (PyErr_Occurred()) SWIG_fail;
3334 {
3335 PyThreadState* __tstate = wxPyBeginAllowThreads();
3336 (arg1)->SetDepth(arg2);
3337
3338 wxPyEndAllowThreads(__tstate);
3339 if (PyErr_Occurred()) SWIG_fail;
3340 }
3341 Py_INCREF(Py_None); resultobj = Py_None;
3342 return resultobj;
3343 fail:
3344 return NULL;
3345 }
3346
3347
3348 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3349 PyObject *resultobj;
3350 wxBitmap *arg1 = (wxBitmap *) 0 ;
3351 wxSize *arg2 = 0 ;
3352 wxSize temp2 ;
3353 PyObject * obj0 = 0 ;
3354 PyObject * obj1 = 0 ;
3355 char *kwnames[] = {
3356 (char *) "self",(char *) "size", NULL
3357 };
3358
3359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3362 {
3363 arg2 = &temp2;
3364 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3365 }
3366 {
3367 PyThreadState* __tstate = wxPyBeginAllowThreads();
3368 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3369
3370 wxPyEndAllowThreads(__tstate);
3371 if (PyErr_Occurred()) SWIG_fail;
3372 }
3373 Py_INCREF(Py_None); resultobj = Py_None;
3374 return resultobj;
3375 fail:
3376 return NULL;
3377 }
3378
3379
3380 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3381 PyObject *resultobj;
3382 wxBitmap *arg1 = (wxBitmap *) 0 ;
3383 wxBitmap *arg2 = (wxBitmap *) 0 ;
3384 bool result;
3385 PyObject * obj0 = 0 ;
3386 PyObject * obj1 = 0 ;
3387 char *kwnames[] = {
3388 (char *) "self",(char *) "other", NULL
3389 };
3390
3391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3394 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3396 {
3397 PyThreadState* __tstate = wxPyBeginAllowThreads();
3398 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3399
3400 wxPyEndAllowThreads(__tstate);
3401 if (PyErr_Occurred()) SWIG_fail;
3402 }
3403 {
3404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3405 }
3406 return resultobj;
3407 fail:
3408 return NULL;
3409 }
3410
3411
3412 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3413 PyObject *resultobj;
3414 wxBitmap *arg1 = (wxBitmap *) 0 ;
3415 wxBitmap *arg2 = (wxBitmap *) 0 ;
3416 bool result;
3417 PyObject * obj0 = 0 ;
3418 PyObject * obj1 = 0 ;
3419 char *kwnames[] = {
3420 (char *) "self",(char *) "other", NULL
3421 };
3422
3423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3426 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3428 {
3429 PyThreadState* __tstate = wxPyBeginAllowThreads();
3430 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3431
3432 wxPyEndAllowThreads(__tstate);
3433 if (PyErr_Occurred()) SWIG_fail;
3434 }
3435 {
3436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3437 }
3438 return resultobj;
3439 fail:
3440 return NULL;
3441 }
3442
3443
3444 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3445 PyObject *obj;
3446 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3447 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3448 Py_INCREF(obj);
3449 return Py_BuildValue((char *)"");
3450 }
3451 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3452 PyObject *resultobj;
3453 wxBitmap *arg1 = 0 ;
3454 wxColour const &arg2_defvalue = wxNullColour ;
3455 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3456 wxMask *result;
3457 wxColour temp2 ;
3458 PyObject * obj0 = 0 ;
3459 PyObject * obj1 = 0 ;
3460 char *kwnames[] = {
3461 (char *) "bitmap",(char *) "colour", NULL
3462 };
3463
3464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3466 SWIG_POINTER_EXCEPTION | 0)) == -1)
3467 SWIG_fail;
3468 if (arg1 == NULL) {
3469 PyErr_SetString(PyExc_TypeError,"null reference");
3470 SWIG_fail;
3471 }
3472 if (obj1) {
3473 {
3474 arg2 = &temp2;
3475 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3476 }
3477 }
3478 {
3479 PyThreadState* __tstate = wxPyBeginAllowThreads();
3480 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3481
3482 wxPyEndAllowThreads(__tstate);
3483 if (PyErr_Occurred()) SWIG_fail;
3484 }
3485 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3486 return resultobj;
3487 fail:
3488 return NULL;
3489 }
3490
3491
3492 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3493 PyObject *obj;
3494 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3495 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3496 Py_INCREF(obj);
3497 return Py_BuildValue((char *)"");
3498 }
3499 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3500 PyObject *resultobj;
3501 wxString *arg1 = 0 ;
3502 int arg2 ;
3503 int arg3 = (int) -1 ;
3504 int arg4 = (int) -1 ;
3505 wxIcon *result;
3506 bool temp1 = False ;
3507 PyObject * obj0 = 0 ;
3508 PyObject * obj1 = 0 ;
3509 PyObject * obj2 = 0 ;
3510 PyObject * obj3 = 0 ;
3511 char *kwnames[] = {
3512 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3513 };
3514
3515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3516 {
3517 arg1 = wxString_in_helper(obj0);
3518 if (arg1 == NULL) SWIG_fail;
3519 temp1 = True;
3520 }
3521 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3522 if (PyErr_Occurred()) SWIG_fail;
3523 if (obj2) {
3524 arg3 = (int) SWIG_AsInt(obj2);
3525 if (PyErr_Occurred()) SWIG_fail;
3526 }
3527 if (obj3) {
3528 arg4 = (int) SWIG_AsInt(obj3);
3529 if (PyErr_Occurred()) SWIG_fail;
3530 }
3531 {
3532 PyThreadState* __tstate = wxPyBeginAllowThreads();
3533 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3534
3535 wxPyEndAllowThreads(__tstate);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3539 {
3540 if (temp1)
3541 delete arg1;
3542 }
3543 return resultobj;
3544 fail:
3545 {
3546 if (temp1)
3547 delete arg1;
3548 }
3549 return NULL;
3550 }
3551
3552
3553 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3554 PyObject *resultobj;
3555 wxIcon *arg1 = (wxIcon *) 0 ;
3556 PyObject * obj0 = 0 ;
3557 char *kwnames[] = {
3558 (char *) "self", NULL
3559 };
3560
3561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3564 {
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 delete arg1;
3567
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 Py_INCREF(Py_None); resultobj = Py_None;
3572 return resultobj;
3573 fail:
3574 return NULL;
3575 }
3576
3577
3578 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3579 PyObject *resultobj;
3580 wxIcon *result;
3581 char *kwnames[] = {
3582 NULL
3583 };
3584
3585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3586 {
3587 PyThreadState* __tstate = wxPyBeginAllowThreads();
3588 result = (wxIcon *)new wxIcon();
3589
3590 wxPyEndAllowThreads(__tstate);
3591 if (PyErr_Occurred()) SWIG_fail;
3592 }
3593 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3594 return resultobj;
3595 fail:
3596 return NULL;
3597 }
3598
3599
3600 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3601 PyObject *resultobj;
3602 wxIconLocation *arg1 = 0 ;
3603 wxIcon *result;
3604 PyObject * obj0 = 0 ;
3605 char *kwnames[] = {
3606 (char *) "loc", NULL
3607 };
3608
3609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3611 SWIG_POINTER_EXCEPTION | 0)) == -1)
3612 SWIG_fail;
3613 if (arg1 == NULL) {
3614 PyErr_SetString(PyExc_TypeError,"null reference");
3615 SWIG_fail;
3616 }
3617 {
3618 PyThreadState* __tstate = wxPyBeginAllowThreads();
3619 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3620
3621 wxPyEndAllowThreads(__tstate);
3622 if (PyErr_Occurred()) SWIG_fail;
3623 }
3624 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3625 return resultobj;
3626 fail:
3627 return NULL;
3628 }
3629
3630
3631 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3632 PyObject *resultobj;
3633 wxBitmap *arg1 = 0 ;
3634 wxIcon *result;
3635 PyObject * obj0 = 0 ;
3636 char *kwnames[] = {
3637 (char *) "bmp", NULL
3638 };
3639
3640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3642 SWIG_POINTER_EXCEPTION | 0)) == -1)
3643 SWIG_fail;
3644 if (arg1 == NULL) {
3645 PyErr_SetString(PyExc_TypeError,"null reference");
3646 SWIG_fail;
3647 }
3648 {
3649 PyThreadState* __tstate = wxPyBeginAllowThreads();
3650 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3651
3652 wxPyEndAllowThreads(__tstate);
3653 if (PyErr_Occurred()) SWIG_fail;
3654 }
3655 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3656 return resultobj;
3657 fail:
3658 return NULL;
3659 }
3660
3661
3662 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3663 PyObject *resultobj;
3664 PyObject *arg1 = (PyObject *) 0 ;
3665 wxIcon *result;
3666 PyObject * obj0 = 0 ;
3667 char *kwnames[] = {
3668 (char *) "listOfStrings", NULL
3669 };
3670
3671 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3672 arg1 = obj0;
3673 {
3674 PyThreadState* __tstate = wxPyBeginAllowThreads();
3675 result = (wxIcon *)new_wxIcon(arg1);
3676
3677 wxPyEndAllowThreads(__tstate);
3678 if (PyErr_Occurred()) SWIG_fail;
3679 }
3680 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3681 return resultobj;
3682 fail:
3683 return NULL;
3684 }
3685
3686
3687 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3688 PyObject *resultobj;
3689 wxIcon *arg1 = (wxIcon *) 0 ;
3690 bool result;
3691 PyObject * obj0 = 0 ;
3692 char *kwnames[] = {
3693 (char *) "self", NULL
3694 };
3695
3696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 result = (bool)(arg1)->Ok();
3702
3703 wxPyEndAllowThreads(__tstate);
3704 if (PyErr_Occurred()) SWIG_fail;
3705 }
3706 {
3707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3708 }
3709 return resultobj;
3710 fail:
3711 return NULL;
3712 }
3713
3714
3715 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3716 PyObject *resultobj;
3717 wxIcon *arg1 = (wxIcon *) 0 ;
3718 int result;
3719 PyObject * obj0 = 0 ;
3720 char *kwnames[] = {
3721 (char *) "self", NULL
3722 };
3723
3724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 result = (int)(arg1)->GetWidth();
3730
3731 wxPyEndAllowThreads(__tstate);
3732 if (PyErr_Occurred()) SWIG_fail;
3733 }
3734 resultobj = SWIG_FromInt((int)result);
3735 return resultobj;
3736 fail:
3737 return NULL;
3738 }
3739
3740
3741 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3742 PyObject *resultobj;
3743 wxIcon *arg1 = (wxIcon *) 0 ;
3744 int result;
3745 PyObject * obj0 = 0 ;
3746 char *kwnames[] = {
3747 (char *) "self", NULL
3748 };
3749
3750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3753 {
3754 PyThreadState* __tstate = wxPyBeginAllowThreads();
3755 result = (int)(arg1)->GetHeight();
3756
3757 wxPyEndAllowThreads(__tstate);
3758 if (PyErr_Occurred()) SWIG_fail;
3759 }
3760 resultobj = SWIG_FromInt((int)result);
3761 return resultobj;
3762 fail:
3763 return NULL;
3764 }
3765
3766
3767 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3768 PyObject *resultobj;
3769 wxIcon *arg1 = (wxIcon *) 0 ;
3770 int result;
3771 PyObject * obj0 = 0 ;
3772 char *kwnames[] = {
3773 (char *) "self", NULL
3774 };
3775
3776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3779 {
3780 PyThreadState* __tstate = wxPyBeginAllowThreads();
3781 result = (int)(arg1)->GetDepth();
3782
3783 wxPyEndAllowThreads(__tstate);
3784 if (PyErr_Occurred()) SWIG_fail;
3785 }
3786 resultobj = SWIG_FromInt((int)result);
3787 return resultobj;
3788 fail:
3789 return NULL;
3790 }
3791
3792
3793 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3794 PyObject *resultobj;
3795 wxIcon *arg1 = (wxIcon *) 0 ;
3796 int arg2 ;
3797 PyObject * obj0 = 0 ;
3798 PyObject * obj1 = 0 ;
3799 char *kwnames[] = {
3800 (char *) "self",(char *) "w", NULL
3801 };
3802
3803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3806 arg2 = (int) SWIG_AsInt(obj1);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 {
3809 PyThreadState* __tstate = wxPyBeginAllowThreads();
3810 (arg1)->SetWidth(arg2);
3811
3812 wxPyEndAllowThreads(__tstate);
3813 if (PyErr_Occurred()) SWIG_fail;
3814 }
3815 Py_INCREF(Py_None); resultobj = Py_None;
3816 return resultobj;
3817 fail:
3818 return NULL;
3819 }
3820
3821
3822 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj;
3824 wxIcon *arg1 = (wxIcon *) 0 ;
3825 int arg2 ;
3826 PyObject * obj0 = 0 ;
3827 PyObject * obj1 = 0 ;
3828 char *kwnames[] = {
3829 (char *) "self",(char *) "h", NULL
3830 };
3831
3832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3835 arg2 = (int) SWIG_AsInt(obj1);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 {
3838 PyThreadState* __tstate = wxPyBeginAllowThreads();
3839 (arg1)->SetHeight(arg2);
3840
3841 wxPyEndAllowThreads(__tstate);
3842 if (PyErr_Occurred()) SWIG_fail;
3843 }
3844 Py_INCREF(Py_None); resultobj = Py_None;
3845 return resultobj;
3846 fail:
3847 return NULL;
3848 }
3849
3850
3851 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3852 PyObject *resultobj;
3853 wxIcon *arg1 = (wxIcon *) 0 ;
3854 int arg2 ;
3855 PyObject * obj0 = 0 ;
3856 PyObject * obj1 = 0 ;
3857 char *kwnames[] = {
3858 (char *) "self",(char *) "d", NULL
3859 };
3860
3861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3864 arg2 = (int) SWIG_AsInt(obj1);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 {
3867 PyThreadState* __tstate = wxPyBeginAllowThreads();
3868 (arg1)->SetDepth(arg2);
3869
3870 wxPyEndAllowThreads(__tstate);
3871 if (PyErr_Occurred()) SWIG_fail;
3872 }
3873 Py_INCREF(Py_None); resultobj = Py_None;
3874 return resultobj;
3875 fail:
3876 return NULL;
3877 }
3878
3879
3880 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3881 PyObject *resultobj;
3882 wxIcon *arg1 = (wxIcon *) 0 ;
3883 wxBitmap *arg2 = 0 ;
3884 PyObject * obj0 = 0 ;
3885 PyObject * obj1 = 0 ;
3886 char *kwnames[] = {
3887 (char *) "self",(char *) "bmp", NULL
3888 };
3889
3890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3893 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3894 SWIG_POINTER_EXCEPTION | 0)) == -1)
3895 SWIG_fail;
3896 if (arg2 == NULL) {
3897 PyErr_SetString(PyExc_TypeError,"null reference");
3898 SWIG_fail;
3899 }
3900 {
3901 PyThreadState* __tstate = wxPyBeginAllowThreads();
3902 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3903
3904 wxPyEndAllowThreads(__tstate);
3905 if (PyErr_Occurred()) SWIG_fail;
3906 }
3907 Py_INCREF(Py_None); resultobj = Py_None;
3908 return resultobj;
3909 fail:
3910 return NULL;
3911 }
3912
3913
3914 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3915 PyObject *obj;
3916 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3917 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3918 Py_INCREF(obj);
3919 return Py_BuildValue((char *)"");
3920 }
3921 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3922 PyObject *resultobj;
3923 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3924 int arg2 = (int) 0 ;
3925 wxIconLocation *result;
3926 bool temp1 = False ;
3927 PyObject * obj0 = 0 ;
3928 PyObject * obj1 = 0 ;
3929 char *kwnames[] = {
3930 (char *) "filename",(char *) "num", NULL
3931 };
3932
3933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3934 if (obj0) {
3935 {
3936 arg1 = wxString_in_helper(obj0);
3937 if (arg1 == NULL) SWIG_fail;
3938 temp1 = True;
3939 }
3940 }
3941 if (obj1) {
3942 arg2 = (int) SWIG_AsInt(obj1);
3943 if (PyErr_Occurred()) SWIG_fail;
3944 }
3945 {
3946 PyThreadState* __tstate = wxPyBeginAllowThreads();
3947 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3948
3949 wxPyEndAllowThreads(__tstate);
3950 if (PyErr_Occurred()) SWIG_fail;
3951 }
3952 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3953 {
3954 if (temp1)
3955 delete arg1;
3956 }
3957 return resultobj;
3958 fail:
3959 {
3960 if (temp1)
3961 delete arg1;
3962 }
3963 return NULL;
3964 }
3965
3966
3967 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3968 PyObject *resultobj;
3969 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3970 PyObject * obj0 = 0 ;
3971 char *kwnames[] = {
3972 (char *) "self", NULL
3973 };
3974
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3978 {
3979 PyThreadState* __tstate = wxPyBeginAllowThreads();
3980 delete arg1;
3981
3982 wxPyEndAllowThreads(__tstate);
3983 if (PyErr_Occurred()) SWIG_fail;
3984 }
3985 Py_INCREF(Py_None); resultobj = Py_None;
3986 return resultobj;
3987 fail:
3988 return NULL;
3989 }
3990
3991
3992 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
3993 PyObject *resultobj;
3994 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3995 bool result;
3996 PyObject * obj0 = 0 ;
3997 char *kwnames[] = {
3998 (char *) "self", NULL
3999 };
4000
4001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4004 {
4005 PyThreadState* __tstate = wxPyBeginAllowThreads();
4006 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4007
4008 wxPyEndAllowThreads(__tstate);
4009 if (PyErr_Occurred()) SWIG_fail;
4010 }
4011 {
4012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4013 }
4014 return resultobj;
4015 fail:
4016 return NULL;
4017 }
4018
4019
4020 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4021 PyObject *resultobj;
4022 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4023 wxString *arg2 = 0 ;
4024 bool temp2 = False ;
4025 PyObject * obj0 = 0 ;
4026 PyObject * obj1 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self",(char *) "filename", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4034 {
4035 arg2 = wxString_in_helper(obj1);
4036 if (arg2 == NULL) SWIG_fail;
4037 temp2 = True;
4038 }
4039 {
4040 PyThreadState* __tstate = wxPyBeginAllowThreads();
4041 (arg1)->SetFileName((wxString const &)*arg2);
4042
4043 wxPyEndAllowThreads(__tstate);
4044 if (PyErr_Occurred()) SWIG_fail;
4045 }
4046 Py_INCREF(Py_None); resultobj = Py_None;
4047 {
4048 if (temp2)
4049 delete arg2;
4050 }
4051 return resultobj;
4052 fail:
4053 {
4054 if (temp2)
4055 delete arg2;
4056 }
4057 return NULL;
4058 }
4059
4060
4061 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj;
4063 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4064 wxString *result;
4065 PyObject * obj0 = 0 ;
4066 char *kwnames[] = {
4067 (char *) "self", NULL
4068 };
4069
4070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4073 {
4074 PyThreadState* __tstate = wxPyBeginAllowThreads();
4075 {
4076 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4077 result = (wxString *) &_result_ref;
4078 }
4079
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
4083 {
4084 #if wxUSE_UNICODE
4085 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4086 #else
4087 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4088 #endif
4089 }
4090 return resultobj;
4091 fail:
4092 return NULL;
4093 }
4094
4095
4096 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4097 PyObject *resultobj;
4098 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4099 int arg2 ;
4100 PyObject * obj0 = 0 ;
4101 PyObject * obj1 = 0 ;
4102 char *kwnames[] = {
4103 (char *) "self",(char *) "num", NULL
4104 };
4105
4106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4109 arg2 = (int) SWIG_AsInt(obj1);
4110 if (PyErr_Occurred()) SWIG_fail;
4111 {
4112 PyThreadState* __tstate = wxPyBeginAllowThreads();
4113 wxIconLocation_SetIndex(arg1,arg2);
4114
4115 wxPyEndAllowThreads(__tstate);
4116 if (PyErr_Occurred()) SWIG_fail;
4117 }
4118 Py_INCREF(Py_None); resultobj = Py_None;
4119 return resultobj;
4120 fail:
4121 return NULL;
4122 }
4123
4124
4125 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4126 PyObject *resultobj;
4127 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4128 int result;
4129 PyObject * obj0 = 0 ;
4130 char *kwnames[] = {
4131 (char *) "self", NULL
4132 };
4133
4134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (int)wxIconLocation_GetIndex(arg1);
4140
4141 wxPyEndAllowThreads(__tstate);
4142 if (PyErr_Occurred()) SWIG_fail;
4143 }
4144 resultobj = SWIG_FromInt((int)result);
4145 return resultobj;
4146 fail:
4147 return NULL;
4148 }
4149
4150
4151 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4152 PyObject *obj;
4153 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4154 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4155 Py_INCREF(obj);
4156 return Py_BuildValue((char *)"");
4157 }
4158 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4159 PyObject *resultobj;
4160 wxIconBundle *result;
4161 char *kwnames[] = {
4162 NULL
4163 };
4164
4165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4166 {
4167 PyThreadState* __tstate = wxPyBeginAllowThreads();
4168 result = (wxIconBundle *)new wxIconBundle();
4169
4170 wxPyEndAllowThreads(__tstate);
4171 if (PyErr_Occurred()) SWIG_fail;
4172 }
4173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4174 return resultobj;
4175 fail:
4176 return NULL;
4177 }
4178
4179
4180 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4181 PyObject *resultobj;
4182 wxString *arg1 = 0 ;
4183 long arg2 ;
4184 wxIconBundle *result;
4185 bool temp1 = False ;
4186 PyObject * obj0 = 0 ;
4187 PyObject * obj1 = 0 ;
4188 char *kwnames[] = {
4189 (char *) "file",(char *) "type", NULL
4190 };
4191
4192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4193 {
4194 arg1 = wxString_in_helper(obj0);
4195 if (arg1 == NULL) SWIG_fail;
4196 temp1 = True;
4197 }
4198 arg2 = (long) SWIG_AsLong(obj1);
4199 if (PyErr_Occurred()) SWIG_fail;
4200 {
4201 PyThreadState* __tstate = wxPyBeginAllowThreads();
4202 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4203
4204 wxPyEndAllowThreads(__tstate);
4205 if (PyErr_Occurred()) SWIG_fail;
4206 }
4207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4208 {
4209 if (temp1)
4210 delete arg1;
4211 }
4212 return resultobj;
4213 fail:
4214 {
4215 if (temp1)
4216 delete arg1;
4217 }
4218 return NULL;
4219 }
4220
4221
4222 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj;
4224 wxIcon *arg1 = 0 ;
4225 wxIconBundle *result;
4226 PyObject * obj0 = 0 ;
4227 char *kwnames[] = {
4228 (char *) "icon", NULL
4229 };
4230
4231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4233 SWIG_POINTER_EXCEPTION | 0)) == -1)
4234 SWIG_fail;
4235 if (arg1 == NULL) {
4236 PyErr_SetString(PyExc_TypeError,"null reference");
4237 SWIG_fail;
4238 }
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4254 PyObject *resultobj;
4255 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4256 PyObject * obj0 = 0 ;
4257 char *kwnames[] = {
4258 (char *) "self", NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4264 {
4265 PyThreadState* __tstate = wxPyBeginAllowThreads();
4266 delete arg1;
4267
4268 wxPyEndAllowThreads(__tstate);
4269 if (PyErr_Occurred()) SWIG_fail;
4270 }
4271 Py_INCREF(Py_None); resultobj = Py_None;
4272 return resultobj;
4273 fail:
4274 return NULL;
4275 }
4276
4277
4278 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4279 PyObject *resultobj;
4280 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4281 wxIcon *arg2 = 0 ;
4282 PyObject * obj0 = 0 ;
4283 PyObject * obj1 = 0 ;
4284 char *kwnames[] = {
4285 (char *) "self",(char *) "icon", NULL
4286 };
4287
4288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4291 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4292 SWIG_POINTER_EXCEPTION | 0)) == -1)
4293 SWIG_fail;
4294 if (arg2 == NULL) {
4295 PyErr_SetString(PyExc_TypeError,"null reference");
4296 SWIG_fail;
4297 }
4298 {
4299 PyThreadState* __tstate = wxPyBeginAllowThreads();
4300 (arg1)->AddIcon((wxIcon const &)*arg2);
4301
4302 wxPyEndAllowThreads(__tstate);
4303 if (PyErr_Occurred()) SWIG_fail;
4304 }
4305 Py_INCREF(Py_None); resultobj = Py_None;
4306 return resultobj;
4307 fail:
4308 return NULL;
4309 }
4310
4311
4312 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4313 PyObject *resultobj;
4314 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4315 wxString *arg2 = 0 ;
4316 long arg3 ;
4317 bool temp2 = False ;
4318 PyObject * obj0 = 0 ;
4319 PyObject * obj1 = 0 ;
4320 PyObject * obj2 = 0 ;
4321 char *kwnames[] = {
4322 (char *) "self",(char *) "file",(char *) "type", NULL
4323 };
4324
4325 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4326 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4327 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4328 {
4329 arg2 = wxString_in_helper(obj1);
4330 if (arg2 == NULL) SWIG_fail;
4331 temp2 = True;
4332 }
4333 arg3 = (long) SWIG_AsLong(obj2);
4334 if (PyErr_Occurred()) SWIG_fail;
4335 {
4336 PyThreadState* __tstate = wxPyBeginAllowThreads();
4337 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4338
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 Py_INCREF(Py_None); resultobj = Py_None;
4343 {
4344 if (temp2)
4345 delete arg2;
4346 }
4347 return resultobj;
4348 fail:
4349 {
4350 if (temp2)
4351 delete arg2;
4352 }
4353 return NULL;
4354 }
4355
4356
4357 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4358 PyObject *resultobj;
4359 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4360 wxSize *arg2 = 0 ;
4361 wxIcon *result;
4362 wxSize temp2 ;
4363 PyObject * obj0 = 0 ;
4364 PyObject * obj1 = 0 ;
4365 char *kwnames[] = {
4366 (char *) "self",(char *) "size", NULL
4367 };
4368
4369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4372 {
4373 arg2 = &temp2;
4374 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4375 }
4376 {
4377 PyThreadState* __tstate = wxPyBeginAllowThreads();
4378 {
4379 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4380 result = (wxIcon *) &_result_ref;
4381 }
4382
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 {
4387 wxIcon* resultptr = new wxIcon(*result);
4388 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4389 }
4390 return resultobj;
4391 fail:
4392 return NULL;
4393 }
4394
4395
4396 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4397 PyObject *obj;
4398 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4399 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4400 Py_INCREF(obj);
4401 return Py_BuildValue((char *)"");
4402 }
4403 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4404 PyObject *resultobj;
4405 wxString *arg1 = (wxString *) 0 ;
4406 long arg2 ;
4407 int arg3 = (int) 0 ;
4408 int arg4 = (int) 0 ;
4409 wxCursor *result;
4410 bool temp1 = False ;
4411 PyObject * obj0 = 0 ;
4412 PyObject * obj1 = 0 ;
4413 PyObject * obj2 = 0 ;
4414 PyObject * obj3 = 0 ;
4415 char *kwnames[] = {
4416 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4417 };
4418
4419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4420 {
4421 arg1 = wxString_in_helper(obj0);
4422 if (arg1 == NULL) SWIG_fail;
4423 temp1 = True;
4424 }
4425 arg2 = (long) SWIG_AsLong(obj1);
4426 if (PyErr_Occurred()) SWIG_fail;
4427 if (obj2) {
4428 arg3 = (int) SWIG_AsInt(obj2);
4429 if (PyErr_Occurred()) SWIG_fail;
4430 }
4431 if (obj3) {
4432 arg4 = (int) SWIG_AsInt(obj3);
4433 if (PyErr_Occurred()) SWIG_fail;
4434 }
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4438
4439 wxPyEndAllowThreads(__tstate);
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4443 {
4444 if (temp1)
4445 delete arg1;
4446 }
4447 return resultobj;
4448 fail:
4449 {
4450 if (temp1)
4451 delete arg1;
4452 }
4453 return NULL;
4454 }
4455
4456
4457 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4458 PyObject *resultobj;
4459 wxCursor *arg1 = (wxCursor *) 0 ;
4460 PyObject * obj0 = 0 ;
4461 char *kwnames[] = {
4462 (char *) "self", NULL
4463 };
4464
4465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4468 {
4469 PyThreadState* __tstate = wxPyBeginAllowThreads();
4470 delete arg1;
4471
4472 wxPyEndAllowThreads(__tstate);
4473 if (PyErr_Occurred()) SWIG_fail;
4474 }
4475 Py_INCREF(Py_None); resultobj = Py_None;
4476 return resultobj;
4477 fail:
4478 return NULL;
4479 }
4480
4481
4482 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4483 PyObject *resultobj;
4484 int arg1 ;
4485 wxCursor *result;
4486 PyObject * obj0 = 0 ;
4487 char *kwnames[] = {
4488 (char *) "id", NULL
4489 };
4490
4491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4492 arg1 = (int) SWIG_AsInt(obj0);
4493 if (PyErr_Occurred()) SWIG_fail;
4494 {
4495 PyThreadState* __tstate = wxPyBeginAllowThreads();
4496 result = (wxCursor *)new wxCursor(arg1);
4497
4498 wxPyEndAllowThreads(__tstate);
4499 if (PyErr_Occurred()) SWIG_fail;
4500 }
4501 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4502 return resultobj;
4503 fail:
4504 return NULL;
4505 }
4506
4507
4508 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4509 PyObject *resultobj;
4510 wxImage *arg1 = 0 ;
4511 wxCursor *result;
4512 PyObject * obj0 = 0 ;
4513 char *kwnames[] = {
4514 (char *) "image", NULL
4515 };
4516
4517 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4518 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4519 SWIG_POINTER_EXCEPTION | 0)) == -1)
4520 SWIG_fail;
4521 if (arg1 == NULL) {
4522 PyErr_SetString(PyExc_TypeError,"null reference");
4523 SWIG_fail;
4524 }
4525 {
4526 PyThreadState* __tstate = wxPyBeginAllowThreads();
4527 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4528
4529 wxPyEndAllowThreads(__tstate);
4530 if (PyErr_Occurred()) SWIG_fail;
4531 }
4532 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4533 return resultobj;
4534 fail:
4535 return NULL;
4536 }
4537
4538
4539 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4540 PyObject *resultobj;
4541 wxCursor *arg1 = (wxCursor *) 0 ;
4542 bool result;
4543 PyObject * obj0 = 0 ;
4544 char *kwnames[] = {
4545 (char *) "self", NULL
4546 };
4547
4548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4551 {
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (bool)(arg1)->Ok();
4554
4555 wxPyEndAllowThreads(__tstate);
4556 if (PyErr_Occurred()) SWIG_fail;
4557 }
4558 {
4559 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4560 }
4561 return resultobj;
4562 fail:
4563 return NULL;
4564 }
4565
4566
4567 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4568 PyObject *obj;
4569 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4570 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4571 Py_INCREF(obj);
4572 return Py_BuildValue((char *)"");
4573 }
4574 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4575 PyObject *resultobj;
4576 int arg1 = (int) 0 ;
4577 int arg2 = (int) 0 ;
4578 int arg3 = (int) 0 ;
4579 int arg4 = (int) 0 ;
4580 wxRegion *result;
4581 PyObject * obj0 = 0 ;
4582 PyObject * obj1 = 0 ;
4583 PyObject * obj2 = 0 ;
4584 PyObject * obj3 = 0 ;
4585 char *kwnames[] = {
4586 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4587 };
4588
4589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4590 if (obj0) {
4591 arg1 = (int) SWIG_AsInt(obj0);
4592 if (PyErr_Occurred()) SWIG_fail;
4593 }
4594 if (obj1) {
4595 arg2 = (int) SWIG_AsInt(obj1);
4596 if (PyErr_Occurred()) SWIG_fail;
4597 }
4598 if (obj2) {
4599 arg3 = (int) SWIG_AsInt(obj2);
4600 if (PyErr_Occurred()) SWIG_fail;
4601 }
4602 if (obj3) {
4603 arg4 = (int) SWIG_AsInt(obj3);
4604 if (PyErr_Occurred()) SWIG_fail;
4605 }
4606 {
4607 PyThreadState* __tstate = wxPyBeginAllowThreads();
4608 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4609
4610 wxPyEndAllowThreads(__tstate);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4614 return resultobj;
4615 fail:
4616 return NULL;
4617 }
4618
4619
4620 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4621 PyObject *resultobj;
4622 wxBitmap *arg1 = 0 ;
4623 wxColour const &arg2_defvalue = wxNullColour ;
4624 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4625 int arg3 = (int) 0 ;
4626 wxRegion *result;
4627 wxColour temp2 ;
4628 PyObject * obj0 = 0 ;
4629 PyObject * obj1 = 0 ;
4630 PyObject * obj2 = 0 ;
4631 char *kwnames[] = {
4632 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4633 };
4634
4635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4637 SWIG_POINTER_EXCEPTION | 0)) == -1)
4638 SWIG_fail;
4639 if (arg1 == NULL) {
4640 PyErr_SetString(PyExc_TypeError,"null reference");
4641 SWIG_fail;
4642 }
4643 if (obj1) {
4644 {
4645 arg2 = &temp2;
4646 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4647 }
4648 }
4649 if (obj2) {
4650 arg3 = (int) SWIG_AsInt(obj2);
4651 if (PyErr_Occurred()) SWIG_fail;
4652 }
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4656
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj;
4669 int arg1 ;
4670 wxPoint *arg2 = (wxPoint *) 0 ;
4671 int arg3 = (int) wxWINDING_RULE ;
4672 wxRegion *result;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 char *kwnames[] = {
4676 (char *) "points",(char *) "fillStyle", NULL
4677 };
4678
4679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4680 {
4681 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4682 if (arg2 == NULL) SWIG_fail;
4683 }
4684 if (obj1) {
4685 arg3 = (int) SWIG_AsInt(obj1);
4686 if (PyErr_Occurred()) SWIG_fail;
4687 }
4688 {
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4691
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4696 {
4697 if (arg2) delete [] arg2;
4698 }
4699 return resultobj;
4700 fail:
4701 {
4702 if (arg2) delete [] arg2;
4703 }
4704 return NULL;
4705 }
4706
4707
4708 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4709 PyObject *resultobj;
4710 wxRegion *arg1 = (wxRegion *) 0 ;
4711 PyObject * obj0 = 0 ;
4712 char *kwnames[] = {
4713 (char *) "self", NULL
4714 };
4715
4716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4719 {
4720 PyThreadState* __tstate = wxPyBeginAllowThreads();
4721 delete arg1;
4722
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 Py_INCREF(Py_None); resultobj = Py_None;
4727 return resultobj;
4728 fail:
4729 return NULL;
4730 }
4731
4732
4733 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4734 PyObject *resultobj;
4735 wxRegion *arg1 = (wxRegion *) 0 ;
4736 PyObject * obj0 = 0 ;
4737 char *kwnames[] = {
4738 (char *) "self", NULL
4739 };
4740
4741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4744 {
4745 PyThreadState* __tstate = wxPyBeginAllowThreads();
4746 (arg1)->Clear();
4747
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 Py_INCREF(Py_None); resultobj = Py_None;
4752 return resultobj;
4753 fail:
4754 return NULL;
4755 }
4756
4757
4758 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4759 PyObject *resultobj;
4760 wxRegion *arg1 = (wxRegion *) 0 ;
4761 int arg2 ;
4762 int arg3 ;
4763 int result;
4764 PyObject * obj0 = 0 ;
4765 PyObject * obj1 = 0 ;
4766 PyObject * obj2 = 0 ;
4767 char *kwnames[] = {
4768 (char *) "self",(char *) "x",(char *) "y", NULL
4769 };
4770
4771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4774 arg2 = (int) SWIG_AsInt(obj1);
4775 if (PyErr_Occurred()) SWIG_fail;
4776 arg3 = (int) SWIG_AsInt(obj2);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 {
4779 PyThreadState* __tstate = wxPyBeginAllowThreads();
4780 result = (int)(arg1)->Contains(arg2,arg3);
4781
4782 wxPyEndAllowThreads(__tstate);
4783 if (PyErr_Occurred()) SWIG_fail;
4784 }
4785 resultobj = SWIG_FromInt((int)result);
4786 return resultobj;
4787 fail:
4788 return NULL;
4789 }
4790
4791
4792 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4793 PyObject *resultobj;
4794 wxRegion *arg1 = (wxRegion *) 0 ;
4795 wxPoint *arg2 = 0 ;
4796 int result;
4797 wxPoint temp2 ;
4798 PyObject * obj0 = 0 ;
4799 PyObject * obj1 = 0 ;
4800 char *kwnames[] = {
4801 (char *) "self",(char *) "pt", NULL
4802 };
4803
4804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4807 {
4808 arg2 = &temp2;
4809 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4810 }
4811 {
4812 PyThreadState* __tstate = wxPyBeginAllowThreads();
4813 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4814
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 resultobj = SWIG_FromInt((int)result);
4819 return resultobj;
4820 fail:
4821 return NULL;
4822 }
4823
4824
4825 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4826 PyObject *resultobj;
4827 wxRegion *arg1 = (wxRegion *) 0 ;
4828 wxRect *arg2 = 0 ;
4829 int result;
4830 wxRect temp2 ;
4831 PyObject * obj0 = 0 ;
4832 PyObject * obj1 = 0 ;
4833 char *kwnames[] = {
4834 (char *) "self",(char *) "rect", NULL
4835 };
4836
4837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4840 {
4841 arg2 = &temp2;
4842 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4843 }
4844 {
4845 PyThreadState* __tstate = wxPyBeginAllowThreads();
4846 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4847
4848 wxPyEndAllowThreads(__tstate);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 }
4851 resultobj = SWIG_FromInt((int)result);
4852 return resultobj;
4853 fail:
4854 return NULL;
4855 }
4856
4857
4858 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4859 PyObject *resultobj;
4860 wxRegion *arg1 = (wxRegion *) 0 ;
4861 int arg2 ;
4862 int arg3 ;
4863 int arg4 ;
4864 int arg5 ;
4865 int result;
4866 PyObject * obj0 = 0 ;
4867 PyObject * obj1 = 0 ;
4868 PyObject * obj2 = 0 ;
4869 PyObject * obj3 = 0 ;
4870 PyObject * obj4 = 0 ;
4871 char *kwnames[] = {
4872 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4873 };
4874
4875 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4876 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4877 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4878 arg2 = (int) SWIG_AsInt(obj1);
4879 if (PyErr_Occurred()) SWIG_fail;
4880 arg3 = (int) SWIG_AsInt(obj2);
4881 if (PyErr_Occurred()) SWIG_fail;
4882 arg4 = (int) SWIG_AsInt(obj3);
4883 if (PyErr_Occurred()) SWIG_fail;
4884 arg5 = (int) SWIG_AsInt(obj4);
4885 if (PyErr_Occurred()) SWIG_fail;
4886 {
4887 PyThreadState* __tstate = wxPyBeginAllowThreads();
4888 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4889
4890 wxPyEndAllowThreads(__tstate);
4891 if (PyErr_Occurred()) SWIG_fail;
4892 }
4893 resultobj = SWIG_FromInt((int)result);
4894 return resultobj;
4895 fail:
4896 return NULL;
4897 }
4898
4899
4900 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4901 PyObject *resultobj;
4902 wxRegion *arg1 = (wxRegion *) 0 ;
4903 wxRect result;
4904 PyObject * obj0 = 0 ;
4905 char *kwnames[] = {
4906 (char *) "self", NULL
4907 };
4908
4909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4912 {
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
4914 result = (arg1)->GetBox();
4915
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 {
4920 wxRect * resultptr;
4921 resultptr = new wxRect((wxRect &) result);
4922 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4923 }
4924 return resultobj;
4925 fail:
4926 return NULL;
4927 }
4928
4929
4930 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj;
4932 wxRegion *arg1 = (wxRegion *) 0 ;
4933 int arg2 ;
4934 int arg3 ;
4935 int arg4 ;
4936 int arg5 ;
4937 bool result;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 PyObject * obj2 = 0 ;
4941 PyObject * obj3 = 0 ;
4942 PyObject * obj4 = 0 ;
4943 char *kwnames[] = {
4944 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4945 };
4946
4947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4950 arg2 = (int) SWIG_AsInt(obj1);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 arg3 = (int) SWIG_AsInt(obj2);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 arg4 = (int) SWIG_AsInt(obj3);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 arg5 = (int) SWIG_AsInt(obj4);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
4961
4962 wxPyEndAllowThreads(__tstate);
4963 if (PyErr_Occurred()) SWIG_fail;
4964 }
4965 {
4966 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4967 }
4968 return resultobj;
4969 fail:
4970 return NULL;
4971 }
4972
4973
4974 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4975 PyObject *resultobj;
4976 wxRegion *arg1 = (wxRegion *) 0 ;
4977 wxRect *arg2 = 0 ;
4978 bool result;
4979 wxRect temp2 ;
4980 PyObject * obj0 = 0 ;
4981 PyObject * obj1 = 0 ;
4982 char *kwnames[] = {
4983 (char *) "self",(char *) "rect", NULL
4984 };
4985
4986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
4987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4989 {
4990 arg2 = &temp2;
4991 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4992 }
4993 {
4994 PyThreadState* __tstate = wxPyBeginAllowThreads();
4995 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
4996
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 {
5001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5002 }
5003 return resultobj;
5004 fail:
5005 return NULL;
5006 }
5007
5008
5009 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5010 PyObject *resultobj;
5011 wxRegion *arg1 = (wxRegion *) 0 ;
5012 wxRegion *arg2 = 0 ;
5013 bool result;
5014 PyObject * obj0 = 0 ;
5015 PyObject * obj1 = 0 ;
5016 char *kwnames[] = {
5017 (char *) "self",(char *) "region", NULL
5018 };
5019
5020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5023 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5024 SWIG_POINTER_EXCEPTION | 0)) == -1)
5025 SWIG_fail;
5026 if (arg2 == NULL) {
5027 PyErr_SetString(PyExc_TypeError,"null reference");
5028 SWIG_fail;
5029 }
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 {
5038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5039 }
5040 return resultobj;
5041 fail:
5042 return NULL;
5043 }
5044
5045
5046 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5047 PyObject *resultobj;
5048 wxRegion *arg1 = (wxRegion *) 0 ;
5049 bool result;
5050 PyObject * obj0 = 0 ;
5051 char *kwnames[] = {
5052 (char *) "self", NULL
5053 };
5054
5055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5058 {
5059 PyThreadState* __tstate = wxPyBeginAllowThreads();
5060 result = (bool)(arg1)->IsEmpty();
5061
5062 wxPyEndAllowThreads(__tstate);
5063 if (PyErr_Occurred()) SWIG_fail;
5064 }
5065 {
5066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5067 }
5068 return resultobj;
5069 fail:
5070 return NULL;
5071 }
5072
5073
5074 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5075 PyObject *resultobj;
5076 wxRegion *arg1 = (wxRegion *) 0 ;
5077 int arg2 ;
5078 int arg3 ;
5079 int arg4 ;
5080 int arg5 ;
5081 bool result;
5082 PyObject * obj0 = 0 ;
5083 PyObject * obj1 = 0 ;
5084 PyObject * obj2 = 0 ;
5085 PyObject * obj3 = 0 ;
5086 PyObject * obj4 = 0 ;
5087 char *kwnames[] = {
5088 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5089 };
5090
5091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5094 arg2 = (int) SWIG_AsInt(obj1);
5095 if (PyErr_Occurred()) SWIG_fail;
5096 arg3 = (int) SWIG_AsInt(obj2);
5097 if (PyErr_Occurred()) SWIG_fail;
5098 arg4 = (int) SWIG_AsInt(obj3);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 arg5 = (int) SWIG_AsInt(obj4);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 {
5110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5111 }
5112 return resultobj;
5113 fail:
5114 return NULL;
5115 }
5116
5117
5118 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5119 PyObject *resultobj;
5120 wxRegion *arg1 = (wxRegion *) 0 ;
5121 wxRect *arg2 = 0 ;
5122 bool result;
5123 wxRect temp2 ;
5124 PyObject * obj0 = 0 ;
5125 PyObject * obj1 = 0 ;
5126 char *kwnames[] = {
5127 (char *) "self",(char *) "rect", NULL
5128 };
5129
5130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5133 {
5134 arg2 = &temp2;
5135 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5136 }
5137 {
5138 PyThreadState* __tstate = wxPyBeginAllowThreads();
5139 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5140
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 {
5145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5146 }
5147 return resultobj;
5148 fail:
5149 return NULL;
5150 }
5151
5152
5153 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5154 PyObject *resultobj;
5155 wxRegion *arg1 = (wxRegion *) 0 ;
5156 wxRegion *arg2 = 0 ;
5157 bool result;
5158 PyObject * obj0 = 0 ;
5159 PyObject * obj1 = 0 ;
5160 char *kwnames[] = {
5161 (char *) "self",(char *) "region", NULL
5162 };
5163
5164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5168 SWIG_POINTER_EXCEPTION | 0)) == -1)
5169 SWIG_fail;
5170 if (arg2 == NULL) {
5171 PyErr_SetString(PyExc_TypeError,"null reference");
5172 SWIG_fail;
5173 }
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5177
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 {
5182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5183 }
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxRegion *arg1 = (wxRegion *) 0 ;
5193 int arg2 ;
5194 int arg3 ;
5195 int arg4 ;
5196 int arg5 ;
5197 bool result;
5198 PyObject * obj0 = 0 ;
5199 PyObject * obj1 = 0 ;
5200 PyObject * obj2 = 0 ;
5201 PyObject * obj3 = 0 ;
5202 PyObject * obj4 = 0 ;
5203 char *kwnames[] = {
5204 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5205 };
5206
5207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5210 arg2 = (int) SWIG_AsInt(obj1);
5211 if (PyErr_Occurred()) SWIG_fail;
5212 arg3 = (int) SWIG_AsInt(obj2);
5213 if (PyErr_Occurred()) SWIG_fail;
5214 arg4 = (int) SWIG_AsInt(obj3);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 arg5 = (int) SWIG_AsInt(obj4);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 {
5219 PyThreadState* __tstate = wxPyBeginAllowThreads();
5220 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5221
5222 wxPyEndAllowThreads(__tstate);
5223 if (PyErr_Occurred()) SWIG_fail;
5224 }
5225 {
5226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5227 }
5228 return resultobj;
5229 fail:
5230 return NULL;
5231 }
5232
5233
5234 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5235 PyObject *resultobj;
5236 wxRegion *arg1 = (wxRegion *) 0 ;
5237 wxRect *arg2 = 0 ;
5238 bool result;
5239 wxRect temp2 ;
5240 PyObject * obj0 = 0 ;
5241 PyObject * obj1 = 0 ;
5242 char *kwnames[] = {
5243 (char *) "self",(char *) "rect", NULL
5244 };
5245
5246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5249 {
5250 arg2 = &temp2;
5251 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5252 }
5253 {
5254 PyThreadState* __tstate = wxPyBeginAllowThreads();
5255 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5256
5257 wxPyEndAllowThreads(__tstate);
5258 if (PyErr_Occurred()) SWIG_fail;
5259 }
5260 {
5261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5262 }
5263 return resultobj;
5264 fail:
5265 return NULL;
5266 }
5267
5268
5269 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5270 PyObject *resultobj;
5271 wxRegion *arg1 = (wxRegion *) 0 ;
5272 wxRegion *arg2 = 0 ;
5273 bool result;
5274 PyObject * obj0 = 0 ;
5275 PyObject * obj1 = 0 ;
5276 char *kwnames[] = {
5277 (char *) "self",(char *) "region", NULL
5278 };
5279
5280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5283 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5284 SWIG_POINTER_EXCEPTION | 0)) == -1)
5285 SWIG_fail;
5286 if (arg2 == NULL) {
5287 PyErr_SetString(PyExc_TypeError,"null reference");
5288 SWIG_fail;
5289 }
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5293
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 {
5298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5299 }
5300 return resultobj;
5301 fail:
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxRegion *arg1 = (wxRegion *) 0 ;
5309 int arg2 ;
5310 int arg3 ;
5311 int arg4 ;
5312 int arg5 ;
5313 bool result;
5314 PyObject * obj0 = 0 ;
5315 PyObject * obj1 = 0 ;
5316 PyObject * obj2 = 0 ;
5317 PyObject * obj3 = 0 ;
5318 PyObject * obj4 = 0 ;
5319 char *kwnames[] = {
5320 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5321 };
5322
5323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5326 arg2 = (int) SWIG_AsInt(obj1);
5327 if (PyErr_Occurred()) SWIG_fail;
5328 arg3 = (int) SWIG_AsInt(obj2);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 arg4 = (int) SWIG_AsInt(obj3);
5331 if (PyErr_Occurred()) SWIG_fail;
5332 arg5 = (int) SWIG_AsInt(obj4);
5333 if (PyErr_Occurred()) SWIG_fail;
5334 {
5335 PyThreadState* __tstate = wxPyBeginAllowThreads();
5336 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5337
5338 wxPyEndAllowThreads(__tstate);
5339 if (PyErr_Occurred()) SWIG_fail;
5340 }
5341 {
5342 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5343 }
5344 return resultobj;
5345 fail:
5346 return NULL;
5347 }
5348
5349
5350 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5351 PyObject *resultobj;
5352 wxRegion *arg1 = (wxRegion *) 0 ;
5353 wxRect *arg2 = 0 ;
5354 bool result;
5355 wxRect temp2 ;
5356 PyObject * obj0 = 0 ;
5357 PyObject * obj1 = 0 ;
5358 char *kwnames[] = {
5359 (char *) "self",(char *) "rect", NULL
5360 };
5361
5362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5365 {
5366 arg2 = &temp2;
5367 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5368 }
5369 {
5370 PyThreadState* __tstate = wxPyBeginAllowThreads();
5371 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5372
5373 wxPyEndAllowThreads(__tstate);
5374 if (PyErr_Occurred()) SWIG_fail;
5375 }
5376 {
5377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5378 }
5379 return resultobj;
5380 fail:
5381 return NULL;
5382 }
5383
5384
5385 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5386 PyObject *resultobj;
5387 wxRegion *arg1 = (wxRegion *) 0 ;
5388 wxRegion *arg2 = 0 ;
5389 bool result;
5390 PyObject * obj0 = 0 ;
5391 PyObject * obj1 = 0 ;
5392 char *kwnames[] = {
5393 (char *) "self",(char *) "region", NULL
5394 };
5395
5396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5400 SWIG_POINTER_EXCEPTION | 0)) == -1)
5401 SWIG_fail;
5402 if (arg2 == NULL) {
5403 PyErr_SetString(PyExc_TypeError,"null reference");
5404 SWIG_fail;
5405 }
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 {
5414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5415 }
5416 return resultobj;
5417 fail:
5418 return NULL;
5419 }
5420
5421
5422 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5423 PyObject *resultobj;
5424 wxRegion *arg1 = (wxRegion *) 0 ;
5425 SwigValueWrapper< wxBitmap > result;
5426 PyObject * obj0 = 0 ;
5427 char *kwnames[] = {
5428 (char *) "self", NULL
5429 };
5430
5431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5434 {
5435 PyThreadState* __tstate = wxPyBeginAllowThreads();
5436 result = (arg1)->ConvertToBitmap();
5437
5438 wxPyEndAllowThreads(__tstate);
5439 if (PyErr_Occurred()) SWIG_fail;
5440 }
5441 {
5442 wxBitmap * resultptr;
5443 resultptr = new wxBitmap((wxBitmap &) result);
5444 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5445 }
5446 return resultobj;
5447 fail:
5448 return NULL;
5449 }
5450
5451
5452 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5453 PyObject *resultobj;
5454 wxRegion *arg1 = (wxRegion *) 0 ;
5455 wxBitmap *arg2 = 0 ;
5456 wxColour const &arg3_defvalue = wxNullColour ;
5457 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5458 int arg4 = (int) 0 ;
5459 bool result;
5460 wxColour temp3 ;
5461 PyObject * obj0 = 0 ;
5462 PyObject * obj1 = 0 ;
5463 PyObject * obj2 = 0 ;
5464 PyObject * obj3 = 0 ;
5465 char *kwnames[] = {
5466 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5467 };
5468
5469 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5470 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5471 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5472 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5473 SWIG_POINTER_EXCEPTION | 0)) == -1)
5474 SWIG_fail;
5475 if (arg2 == NULL) {
5476 PyErr_SetString(PyExc_TypeError,"null reference");
5477 SWIG_fail;
5478 }
5479 if (obj2) {
5480 {
5481 arg3 = &temp3;
5482 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5483 }
5484 }
5485 if (obj3) {
5486 arg4 = (int) SWIG_AsInt(obj3);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 {
5490 PyThreadState* __tstate = wxPyBeginAllowThreads();
5491 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5492
5493 wxPyEndAllowThreads(__tstate);
5494 if (PyErr_Occurred()) SWIG_fail;
5495 }
5496 {
5497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5498 }
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5506 PyObject *obj;
5507 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5508 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5509 Py_INCREF(obj);
5510 return Py_BuildValue((char *)"");
5511 }
5512 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5513 PyObject *resultobj;
5514 wxRegion *arg1 = 0 ;
5515 wxRegionIterator *result;
5516 PyObject * obj0 = 0 ;
5517 char *kwnames[] = {
5518 (char *) "region", NULL
5519 };
5520
5521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5523 SWIG_POINTER_EXCEPTION | 0)) == -1)
5524 SWIG_fail;
5525 if (arg1 == NULL) {
5526 PyErr_SetString(PyExc_TypeError,"null reference");
5527 SWIG_fail;
5528 }
5529 {
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5532
5533 wxPyEndAllowThreads(__tstate);
5534 if (PyErr_Occurred()) SWIG_fail;
5535 }
5536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5537 return resultobj;
5538 fail:
5539 return NULL;
5540 }
5541
5542
5543 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5544 PyObject *resultobj;
5545 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5546 PyObject * obj0 = 0 ;
5547 char *kwnames[] = {
5548 (char *) "self", NULL
5549 };
5550
5551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5552 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5554 {
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 delete arg1;
5557
5558 wxPyEndAllowThreads(__tstate);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 Py_INCREF(Py_None); resultobj = Py_None;
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj;
5570 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5571 int result;
5572 PyObject * obj0 = 0 ;
5573 char *kwnames[] = {
5574 (char *) "self", NULL
5575 };
5576
5577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5578 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5579 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5580 {
5581 PyThreadState* __tstate = wxPyBeginAllowThreads();
5582 result = (int)(arg1)->GetX();
5583
5584 wxPyEndAllowThreads(__tstate);
5585 if (PyErr_Occurred()) SWIG_fail;
5586 }
5587 resultobj = SWIG_FromInt((int)result);
5588 return resultobj;
5589 fail:
5590 return NULL;
5591 }
5592
5593
5594 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5595 PyObject *resultobj;
5596 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5597 int result;
5598 PyObject * obj0 = 0 ;
5599 char *kwnames[] = {
5600 (char *) "self", NULL
5601 };
5602
5603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5606 {
5607 PyThreadState* __tstate = wxPyBeginAllowThreads();
5608 result = (int)(arg1)->GetY();
5609
5610 wxPyEndAllowThreads(__tstate);
5611 if (PyErr_Occurred()) SWIG_fail;
5612 }
5613 resultobj = SWIG_FromInt((int)result);
5614 return resultobj;
5615 fail:
5616 return NULL;
5617 }
5618
5619
5620 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5621 PyObject *resultobj;
5622 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5623 int result;
5624 PyObject * obj0 = 0 ;
5625 char *kwnames[] = {
5626 (char *) "self", NULL
5627 };
5628
5629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5632 {
5633 PyThreadState* __tstate = wxPyBeginAllowThreads();
5634 result = (int)(arg1)->GetW();
5635
5636 wxPyEndAllowThreads(__tstate);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 }
5639 resultobj = SWIG_FromInt((int)result);
5640 return resultobj;
5641 fail:
5642 return NULL;
5643 }
5644
5645
5646 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5647 PyObject *resultobj;
5648 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5649 int result;
5650 PyObject * obj0 = 0 ;
5651 char *kwnames[] = {
5652 (char *) "self", NULL
5653 };
5654
5655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5658 {
5659 PyThreadState* __tstate = wxPyBeginAllowThreads();
5660 result = (int)(arg1)->GetWidth();
5661
5662 wxPyEndAllowThreads(__tstate);
5663 if (PyErr_Occurred()) SWIG_fail;
5664 }
5665 resultobj = SWIG_FromInt((int)result);
5666 return resultobj;
5667 fail:
5668 return NULL;
5669 }
5670
5671
5672 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5673 PyObject *resultobj;
5674 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5675 int result;
5676 PyObject * obj0 = 0 ;
5677 char *kwnames[] = {
5678 (char *) "self", NULL
5679 };
5680
5681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 result = (int)(arg1)->GetH();
5687
5688 wxPyEndAllowThreads(__tstate);
5689 if (PyErr_Occurred()) SWIG_fail;
5690 }
5691 resultobj = SWIG_FromInt((int)result);
5692 return resultobj;
5693 fail:
5694 return NULL;
5695 }
5696
5697
5698 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5699 PyObject *resultobj;
5700 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5701 int result;
5702 PyObject * obj0 = 0 ;
5703 char *kwnames[] = {
5704 (char *) "self", NULL
5705 };
5706
5707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (int)(arg1)->GetHeight();
5713
5714 wxPyEndAllowThreads(__tstate);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 }
5717 resultobj = SWIG_FromInt((int)result);
5718 return resultobj;
5719 fail:
5720 return NULL;
5721 }
5722
5723
5724 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5725 PyObject *resultobj;
5726 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5727 wxRect result;
5728 PyObject * obj0 = 0 ;
5729 char *kwnames[] = {
5730 (char *) "self", NULL
5731 };
5732
5733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5736 {
5737 PyThreadState* __tstate = wxPyBeginAllowThreads();
5738 result = (arg1)->GetRect();
5739
5740 wxPyEndAllowThreads(__tstate);
5741 if (PyErr_Occurred()) SWIG_fail;
5742 }
5743 {
5744 wxRect * resultptr;
5745 resultptr = new wxRect((wxRect &) result);
5746 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5747 }
5748 return resultobj;
5749 fail:
5750 return NULL;
5751 }
5752
5753
5754 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5755 PyObject *resultobj;
5756 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5757 bool result;
5758 PyObject * obj0 = 0 ;
5759 char *kwnames[] = {
5760 (char *) "self", NULL
5761 };
5762
5763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5766 {
5767 PyThreadState* __tstate = wxPyBeginAllowThreads();
5768 result = (bool)(arg1)->HaveRects();
5769
5770 wxPyEndAllowThreads(__tstate);
5771 if (PyErr_Occurred()) SWIG_fail;
5772 }
5773 {
5774 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5775 }
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj;
5784 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5785 PyObject * obj0 = 0 ;
5786 char *kwnames[] = {
5787 (char *) "self", NULL
5788 };
5789
5790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5793 {
5794 PyThreadState* __tstate = wxPyBeginAllowThreads();
5795 (arg1)->Reset();
5796
5797 wxPyEndAllowThreads(__tstate);
5798 if (PyErr_Occurred()) SWIG_fail;
5799 }
5800 Py_INCREF(Py_None); resultobj = Py_None;
5801 return resultobj;
5802 fail:
5803 return NULL;
5804 }
5805
5806
5807 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5808 PyObject *resultobj;
5809 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5810 PyObject * obj0 = 0 ;
5811 char *kwnames[] = {
5812 (char *) "self", NULL
5813 };
5814
5815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5818 {
5819 PyThreadState* __tstate = wxPyBeginAllowThreads();
5820 wxRegionIterator_Next(arg1);
5821
5822 wxPyEndAllowThreads(__tstate);
5823 if (PyErr_Occurred()) SWIG_fail;
5824 }
5825 Py_INCREF(Py_None); resultobj = Py_None;
5826 return resultobj;
5827 fail:
5828 return NULL;
5829 }
5830
5831
5832 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5833 PyObject *resultobj;
5834 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5835 bool result;
5836 PyObject * obj0 = 0 ;
5837 char *kwnames[] = {
5838 (char *) "self", NULL
5839 };
5840
5841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 result = (bool)wxRegionIterator___nonzero__(arg1);
5847
5848 wxPyEndAllowThreads(__tstate);
5849 if (PyErr_Occurred()) SWIG_fail;
5850 }
5851 {
5852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5853 }
5854 return resultobj;
5855 fail:
5856 return NULL;
5857 }
5858
5859
5860 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5861 PyObject *obj;
5862 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5863 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5864 Py_INCREF(obj);
5865 return Py_BuildValue((char *)"");
5866 }
5867 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5868 PyObject *resultobj;
5869 wxNativeFontInfo *result;
5870 char *kwnames[] = {
5871 NULL
5872 };
5873
5874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5878
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5883 return resultobj;
5884 fail:
5885 return NULL;
5886 }
5887
5888
5889 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5890 PyObject *resultobj;
5891 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5892 PyObject * obj0 = 0 ;
5893 char *kwnames[] = {
5894 (char *) "self", NULL
5895 };
5896
5897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5900 {
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 delete arg1;
5903
5904 wxPyEndAllowThreads(__tstate);
5905 if (PyErr_Occurred()) SWIG_fail;
5906 }
5907 Py_INCREF(Py_None); resultobj = Py_None;
5908 return resultobj;
5909 fail:
5910 return NULL;
5911 }
5912
5913
5914 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5915 PyObject *resultobj;
5916 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5917 PyObject * obj0 = 0 ;
5918 char *kwnames[] = {
5919 (char *) "self", NULL
5920 };
5921
5922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5925 {
5926 PyThreadState* __tstate = wxPyBeginAllowThreads();
5927 (arg1)->Init();
5928
5929 wxPyEndAllowThreads(__tstate);
5930 if (PyErr_Occurred()) SWIG_fail;
5931 }
5932 Py_INCREF(Py_None); resultobj = Py_None;
5933 return resultobj;
5934 fail:
5935 return NULL;
5936 }
5937
5938
5939 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
5940 PyObject *resultobj;
5941 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5942 wxFont *arg2 = 0 ;
5943 PyObject * obj0 = 0 ;
5944 PyObject * obj1 = 0 ;
5945 char *kwnames[] = {
5946 (char *) "self",(char *) "font", NULL
5947 };
5948
5949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
5950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5952 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
5953 SWIG_POINTER_EXCEPTION | 0)) == -1)
5954 SWIG_fail;
5955 if (arg2 == NULL) {
5956 PyErr_SetString(PyExc_TypeError,"null reference");
5957 SWIG_fail;
5958 }
5959 {
5960 PyThreadState* __tstate = wxPyBeginAllowThreads();
5961 (arg1)->InitFromFont((wxFont const &)*arg2);
5962
5963 wxPyEndAllowThreads(__tstate);
5964 if (PyErr_Occurred()) SWIG_fail;
5965 }
5966 Py_INCREF(Py_None); resultobj = Py_None;
5967 return resultobj;
5968 fail:
5969 return NULL;
5970 }
5971
5972
5973 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5974 PyObject *resultobj;
5975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5976 int result;
5977 PyObject * obj0 = 0 ;
5978 char *kwnames[] = {
5979 (char *) "self", NULL
5980 };
5981
5982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
5983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5985 {
5986 PyThreadState* __tstate = wxPyBeginAllowThreads();
5987 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
5988
5989 wxPyEndAllowThreads(__tstate);
5990 if (PyErr_Occurred()) SWIG_fail;
5991 }
5992 resultobj = SWIG_FromInt((int)result);
5993 return resultobj;
5994 fail:
5995 return NULL;
5996 }
5997
5998
5999 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6000 PyObject *resultobj;
6001 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6002 int result;
6003 PyObject * obj0 = 0 ;
6004 char *kwnames[] = {
6005 (char *) "self", NULL
6006 };
6007
6008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = SWIG_FromInt((int)result);
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj;
6027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6028 int result;
6029 PyObject * obj0 = 0 ;
6030 char *kwnames[] = {
6031 (char *) "self", NULL
6032 };
6033
6034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6037 {
6038 PyThreadState* __tstate = wxPyBeginAllowThreads();
6039 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6040
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 resultobj = SWIG_FromInt((int)result);
6045 return resultobj;
6046 fail:
6047 return NULL;
6048 }
6049
6050
6051 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6052 PyObject *resultobj;
6053 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6054 bool result;
6055 PyObject * obj0 = 0 ;
6056 char *kwnames[] = {
6057 (char *) "self", NULL
6058 };
6059
6060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6063 {
6064 PyThreadState* __tstate = wxPyBeginAllowThreads();
6065 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6066
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 {
6071 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6072 }
6073 return resultobj;
6074 fail:
6075 return NULL;
6076 }
6077
6078
6079 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6080 PyObject *resultobj;
6081 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6082 wxString result;
6083 PyObject * obj0 = 0 ;
6084 char *kwnames[] = {
6085 (char *) "self", NULL
6086 };
6087
6088 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6089 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6090 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6091 {
6092 PyThreadState* __tstate = wxPyBeginAllowThreads();
6093 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6094
6095 wxPyEndAllowThreads(__tstate);
6096 if (PyErr_Occurred()) SWIG_fail;
6097 }
6098 {
6099 #if wxUSE_UNICODE
6100 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6101 #else
6102 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6103 #endif
6104 }
6105 return resultobj;
6106 fail:
6107 return NULL;
6108 }
6109
6110
6111 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6114 int result;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_FromInt((int)result);
6131 return resultobj;
6132 fail:
6133 return NULL;
6134 }
6135
6136
6137 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj;
6139 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6140 int result;
6141 PyObject * obj0 = 0 ;
6142 char *kwnames[] = {
6143 (char *) "self", NULL
6144 };
6145
6146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 resultobj = SWIG_FromInt((int)result);
6157 return resultobj;
6158 fail:
6159 return NULL;
6160 }
6161
6162
6163 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6164 PyObject *resultobj;
6165 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6166 int arg2 ;
6167 PyObject * obj0 = 0 ;
6168 PyObject * obj1 = 0 ;
6169 char *kwnames[] = {
6170 (char *) "self",(char *) "pointsize", NULL
6171 };
6172
6173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6176 arg2 = (int) SWIG_AsInt(obj1);
6177 if (PyErr_Occurred()) SWIG_fail;
6178 {
6179 PyThreadState* __tstate = wxPyBeginAllowThreads();
6180 (arg1)->SetPointSize(arg2);
6181
6182 wxPyEndAllowThreads(__tstate);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 Py_INCREF(Py_None); resultobj = Py_None;
6186 return resultobj;
6187 fail:
6188 return NULL;
6189 }
6190
6191
6192 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6193 PyObject *resultobj;
6194 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6195 int arg2 ;
6196 PyObject * obj0 = 0 ;
6197 PyObject * obj1 = 0 ;
6198 char *kwnames[] = {
6199 (char *) "self",(char *) "style", NULL
6200 };
6201
6202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6205 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6206 if (PyErr_Occurred()) SWIG_fail;
6207 {
6208 PyThreadState* __tstate = wxPyBeginAllowThreads();
6209 (arg1)->SetStyle((wxFontStyle )arg2);
6210
6211 wxPyEndAllowThreads(__tstate);
6212 if (PyErr_Occurred()) SWIG_fail;
6213 }
6214 Py_INCREF(Py_None); resultobj = Py_None;
6215 return resultobj;
6216 fail:
6217 return NULL;
6218 }
6219
6220
6221 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6222 PyObject *resultobj;
6223 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6224 int arg2 ;
6225 PyObject * obj0 = 0 ;
6226 PyObject * obj1 = 0 ;
6227 char *kwnames[] = {
6228 (char *) "self",(char *) "weight", NULL
6229 };
6230
6231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6234 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6235 if (PyErr_Occurred()) SWIG_fail;
6236 {
6237 PyThreadState* __tstate = wxPyBeginAllowThreads();
6238 (arg1)->SetWeight((wxFontWeight )arg2);
6239
6240 wxPyEndAllowThreads(__tstate);
6241 if (PyErr_Occurred()) SWIG_fail;
6242 }
6243 Py_INCREF(Py_None); resultobj = Py_None;
6244 return resultobj;
6245 fail:
6246 return NULL;
6247 }
6248
6249
6250 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6251 PyObject *resultobj;
6252 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6253 bool arg2 ;
6254 PyObject * obj0 = 0 ;
6255 PyObject * obj1 = 0 ;
6256 char *kwnames[] = {
6257 (char *) "self",(char *) "underlined", NULL
6258 };
6259
6260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6263 arg2 = (bool) SWIG_AsBool(obj1);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 (arg1)->SetUnderlined(arg2);
6268
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 Py_INCREF(Py_None); resultobj = Py_None;
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj;
6281 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6282 wxString arg2 ;
6283 PyObject * obj0 = 0 ;
6284 PyObject * obj1 = 0 ;
6285 char *kwnames[] = {
6286 (char *) "self",(char *) "facename", NULL
6287 };
6288
6289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6292 {
6293 wxString* sptr = wxString_in_helper(obj1);
6294 if (sptr == NULL) SWIG_fail;
6295 arg2 = *sptr;
6296 delete sptr;
6297 }
6298 {
6299 PyThreadState* __tstate = wxPyBeginAllowThreads();
6300 (arg1)->SetFaceName(arg2);
6301
6302 wxPyEndAllowThreads(__tstate);
6303 if (PyErr_Occurred()) SWIG_fail;
6304 }
6305 Py_INCREF(Py_None); resultobj = Py_None;
6306 return resultobj;
6307 fail:
6308 return NULL;
6309 }
6310
6311
6312 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6313 PyObject *resultobj;
6314 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6315 int arg2 ;
6316 PyObject * obj0 = 0 ;
6317 PyObject * obj1 = 0 ;
6318 char *kwnames[] = {
6319 (char *) "self",(char *) "family", NULL
6320 };
6321
6322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6325 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 {
6328 PyThreadState* __tstate = wxPyBeginAllowThreads();
6329 (arg1)->SetFamily((wxFontFamily )arg2);
6330
6331 wxPyEndAllowThreads(__tstate);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 Py_INCREF(Py_None); resultobj = Py_None;
6335 return resultobj;
6336 fail:
6337 return NULL;
6338 }
6339
6340
6341 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6342 PyObject *resultobj;
6343 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6344 int arg2 ;
6345 PyObject * obj0 = 0 ;
6346 PyObject * obj1 = 0 ;
6347 char *kwnames[] = {
6348 (char *) "self",(char *) "encoding", NULL
6349 };
6350
6351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6354 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6355 if (PyErr_Occurred()) SWIG_fail;
6356 {
6357 PyThreadState* __tstate = wxPyBeginAllowThreads();
6358 (arg1)->SetEncoding((wxFontEncoding )arg2);
6359
6360 wxPyEndAllowThreads(__tstate);
6361 if (PyErr_Occurred()) SWIG_fail;
6362 }
6363 Py_INCREF(Py_None); resultobj = Py_None;
6364 return resultobj;
6365 fail:
6366 return NULL;
6367 }
6368
6369
6370 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6371 PyObject *resultobj;
6372 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6373 wxString *arg2 = 0 ;
6374 bool result;
6375 bool temp2 = False ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 char *kwnames[] = {
6379 (char *) "self",(char *) "s", NULL
6380 };
6381
6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6385 {
6386 arg2 = wxString_in_helper(obj1);
6387 if (arg2 == NULL) SWIG_fail;
6388 temp2 = True;
6389 }
6390 {
6391 PyThreadState* __tstate = wxPyBeginAllowThreads();
6392 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6393
6394 wxPyEndAllowThreads(__tstate);
6395 if (PyErr_Occurred()) SWIG_fail;
6396 }
6397 {
6398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6399 }
6400 {
6401 if (temp2)
6402 delete arg2;
6403 }
6404 return resultobj;
6405 fail:
6406 {
6407 if (temp2)
6408 delete arg2;
6409 }
6410 return NULL;
6411 }
6412
6413
6414 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6417 wxString result;
6418 PyObject * obj0 = 0 ;
6419 char *kwnames[] = {
6420 (char *) "self", NULL
6421 };
6422
6423 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6424 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6425 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6426 {
6427 PyThreadState* __tstate = wxPyBeginAllowThreads();
6428 result = ((wxNativeFontInfo const *)arg1)->ToString();
6429
6430 wxPyEndAllowThreads(__tstate);
6431 if (PyErr_Occurred()) SWIG_fail;
6432 }
6433 {
6434 #if wxUSE_UNICODE
6435 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6436 #else
6437 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6438 #endif
6439 }
6440 return resultobj;
6441 fail:
6442 return NULL;
6443 }
6444
6445
6446 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6447 PyObject *resultobj;
6448 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6449 wxString result;
6450 PyObject * obj0 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6458 {
6459 PyThreadState* __tstate = wxPyBeginAllowThreads();
6460 result = wxNativeFontInfo___str__(arg1);
6461
6462 wxPyEndAllowThreads(__tstate);
6463 if (PyErr_Occurred()) SWIG_fail;
6464 }
6465 {
6466 #if wxUSE_UNICODE
6467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6468 #else
6469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6470 #endif
6471 }
6472 return resultobj;
6473 fail:
6474 return NULL;
6475 }
6476
6477
6478 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6479 PyObject *resultobj;
6480 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6481 wxString *arg2 = 0 ;
6482 bool result;
6483 bool temp2 = False ;
6484 PyObject * obj0 = 0 ;
6485 PyObject * obj1 = 0 ;
6486 char *kwnames[] = {
6487 (char *) "self",(char *) "s", NULL
6488 };
6489
6490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6493 {
6494 arg2 = wxString_in_helper(obj1);
6495 if (arg2 == NULL) SWIG_fail;
6496 temp2 = True;
6497 }
6498 {
6499 PyThreadState* __tstate = wxPyBeginAllowThreads();
6500 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6501
6502 wxPyEndAllowThreads(__tstate);
6503 if (PyErr_Occurred()) SWIG_fail;
6504 }
6505 {
6506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6507 }
6508 {
6509 if (temp2)
6510 delete arg2;
6511 }
6512 return resultobj;
6513 fail:
6514 {
6515 if (temp2)
6516 delete arg2;
6517 }
6518 return NULL;
6519 }
6520
6521
6522 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6523 PyObject *resultobj;
6524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6525 wxString result;
6526 PyObject * obj0 = 0 ;
6527 char *kwnames[] = {
6528 (char *) "self", NULL
6529 };
6530
6531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6534 {
6535 PyThreadState* __tstate = wxPyBeginAllowThreads();
6536 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6537
6538 wxPyEndAllowThreads(__tstate);
6539 if (PyErr_Occurred()) SWIG_fail;
6540 }
6541 {
6542 #if wxUSE_UNICODE
6543 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6544 #else
6545 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6546 #endif
6547 }
6548 return resultobj;
6549 fail:
6550 return NULL;
6551 }
6552
6553
6554 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6555 PyObject *obj;
6556 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6557 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6558 Py_INCREF(obj);
6559 return Py_BuildValue((char *)"");
6560 }
6561 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj;
6563 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6564 wxString *arg2 = (wxString *) 0 ;
6565 bool temp2 = False ;
6566 PyObject * obj0 = 0 ;
6567 PyObject * obj1 = 0 ;
6568 char *kwnames[] = {
6569 (char *) "self",(char *) "facename", NULL
6570 };
6571
6572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6575 {
6576 arg2 = wxString_in_helper(obj1);
6577 if (arg2 == NULL) SWIG_fail;
6578 temp2 = True;
6579 }
6580 if (arg1) (arg1)->facename = *arg2;
6581
6582 Py_INCREF(Py_None); resultobj = Py_None;
6583 {
6584 if (temp2)
6585 delete arg2;
6586 }
6587 return resultobj;
6588 fail:
6589 {
6590 if (temp2)
6591 delete arg2;
6592 }
6593 return NULL;
6594 }
6595
6596
6597 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6598 PyObject *resultobj;
6599 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6600 wxString *result;
6601 PyObject * obj0 = 0 ;
6602 char *kwnames[] = {
6603 (char *) "self", NULL
6604 };
6605
6606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6609 result = (wxString *)& ((arg1)->facename);
6610
6611 {
6612 #if wxUSE_UNICODE
6613 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6614 #else
6615 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6616 #endif
6617 }
6618 return resultobj;
6619 fail:
6620 return NULL;
6621 }
6622
6623
6624 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6625 PyObject *resultobj;
6626 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6627 int arg2 ;
6628 PyObject * obj0 = 0 ;
6629 PyObject * obj1 = 0 ;
6630 char *kwnames[] = {
6631 (char *) "self",(char *) "encoding", NULL
6632 };
6633
6634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6637 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6640
6641 Py_INCREF(Py_None); resultobj = Py_None;
6642 return resultobj;
6643 fail:
6644 return NULL;
6645 }
6646
6647
6648 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6649 PyObject *resultobj;
6650 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6651 int result;
6652 PyObject * obj0 = 0 ;
6653 char *kwnames[] = {
6654 (char *) "self", NULL
6655 };
6656
6657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6660 result = (int) ((arg1)->encoding);
6661
6662 resultobj = SWIG_FromInt((int)result);
6663 return resultobj;
6664 fail:
6665 return NULL;
6666 }
6667
6668
6669 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6670 PyObject *resultobj;
6671 wxNativeEncodingInfo *result;
6672 char *kwnames[] = {
6673 NULL
6674 };
6675
6676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6677 {
6678 PyThreadState* __tstate = wxPyBeginAllowThreads();
6679 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6680
6681 wxPyEndAllowThreads(__tstate);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6685 return resultobj;
6686 fail:
6687 return NULL;
6688 }
6689
6690
6691 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6692 PyObject *resultobj;
6693 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6694 PyObject * obj0 = 0 ;
6695 char *kwnames[] = {
6696 (char *) "self", NULL
6697 };
6698
6699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6702 {
6703 PyThreadState* __tstate = wxPyBeginAllowThreads();
6704 delete arg1;
6705
6706 wxPyEndAllowThreads(__tstate);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 Py_INCREF(Py_None); resultobj = Py_None;
6710 return resultobj;
6711 fail:
6712 return NULL;
6713 }
6714
6715
6716 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6717 PyObject *resultobj;
6718 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6719 wxString *arg2 = 0 ;
6720 bool result;
6721 bool temp2 = False ;
6722 PyObject * obj0 = 0 ;
6723 PyObject * obj1 = 0 ;
6724 char *kwnames[] = {
6725 (char *) "self",(char *) "s", NULL
6726 };
6727
6728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6731 {
6732 arg2 = wxString_in_helper(obj1);
6733 if (arg2 == NULL) SWIG_fail;
6734 temp2 = True;
6735 }
6736 {
6737 PyThreadState* __tstate = wxPyBeginAllowThreads();
6738 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6739
6740 wxPyEndAllowThreads(__tstate);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 {
6744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6745 }
6746 {
6747 if (temp2)
6748 delete arg2;
6749 }
6750 return resultobj;
6751 fail:
6752 {
6753 if (temp2)
6754 delete arg2;
6755 }
6756 return NULL;
6757 }
6758
6759
6760 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6761 PyObject *resultobj;
6762 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6763 wxString result;
6764 PyObject * obj0 = 0 ;
6765 char *kwnames[] = {
6766 (char *) "self", NULL
6767 };
6768
6769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6772 {
6773 PyThreadState* __tstate = wxPyBeginAllowThreads();
6774 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6775
6776 wxPyEndAllowThreads(__tstate);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 {
6780 #if wxUSE_UNICODE
6781 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6782 #else
6783 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6784 #endif
6785 }
6786 return resultobj;
6787 fail:
6788 return NULL;
6789 }
6790
6791
6792 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6793 PyObject *obj;
6794 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6795 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6796 Py_INCREF(obj);
6797 return Py_BuildValue((char *)"");
6798 }
6799 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6800 PyObject *resultobj;
6801 int arg1 ;
6802 wxNativeEncodingInfo *result;
6803 PyObject * obj0 = 0 ;
6804 char *kwnames[] = {
6805 (char *) "encoding", NULL
6806 };
6807
6808 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6809 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 {
6812 PyThreadState* __tstate = wxPyBeginAllowThreads();
6813 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6814
6815 wxPyEndAllowThreads(__tstate);
6816 if (PyErr_Occurred()) SWIG_fail;
6817 }
6818 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6819 return resultobj;
6820 fail:
6821 return NULL;
6822 }
6823
6824
6825 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6826 PyObject *resultobj;
6827 wxNativeEncodingInfo *arg1 = 0 ;
6828 bool result;
6829 PyObject * obj0 = 0 ;
6830 char *kwnames[] = {
6831 (char *) "info", NULL
6832 };
6833
6834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6836 SWIG_POINTER_EXCEPTION | 0)) == -1)
6837 SWIG_fail;
6838 if (arg1 == NULL) {
6839 PyErr_SetString(PyExc_TypeError,"null reference");
6840 SWIG_fail;
6841 }
6842 {
6843 PyThreadState* __tstate = wxPyBeginAllowThreads();
6844 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6845
6846 wxPyEndAllowThreads(__tstate);
6847 if (PyErr_Occurred()) SWIG_fail;
6848 }
6849 {
6850 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6851 }
6852 return resultobj;
6853 fail:
6854 return NULL;
6855 }
6856
6857
6858 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6859 PyObject *resultobj;
6860 wxFontMapper *result;
6861 char *kwnames[] = {
6862 NULL
6863 };
6864
6865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6866 {
6867 PyThreadState* __tstate = wxPyBeginAllowThreads();
6868 result = (wxFontMapper *)new wxFontMapper();
6869
6870 wxPyEndAllowThreads(__tstate);
6871 if (PyErr_Occurred()) SWIG_fail;
6872 }
6873 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6874 return resultobj;
6875 fail:
6876 return NULL;
6877 }
6878
6879
6880 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6881 PyObject *resultobj;
6882 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6883 PyObject * obj0 = 0 ;
6884 char *kwnames[] = {
6885 (char *) "self", NULL
6886 };
6887
6888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6891 {
6892 PyThreadState* __tstate = wxPyBeginAllowThreads();
6893 delete arg1;
6894
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 Py_INCREF(Py_None); resultobj = Py_None;
6899 return resultobj;
6900 fail:
6901 return NULL;
6902 }
6903
6904
6905 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj;
6907 wxFontMapper *result;
6908 char *kwnames[] = {
6909 NULL
6910 };
6911
6912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6913 {
6914 PyThreadState* __tstate = wxPyBeginAllowThreads();
6915 result = (wxFontMapper *)wxFontMapper::Get();
6916
6917 wxPyEndAllowThreads(__tstate);
6918 if (PyErr_Occurred()) SWIG_fail;
6919 }
6920 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6921 return resultobj;
6922 fail:
6923 return NULL;
6924 }
6925
6926
6927 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
6928 PyObject *resultobj;
6929 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6930 wxFontMapper *result;
6931 PyObject * obj0 = 0 ;
6932 char *kwnames[] = {
6933 (char *) "mapper", NULL
6934 };
6935
6936 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
6937 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6938 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 result = (wxFontMapper *)wxFontMapper::Set(arg1);
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6947 return resultobj;
6948 fail:
6949 return NULL;
6950 }
6951
6952
6953 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6954 PyObject *resultobj;
6955 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6956 wxString *arg2 = 0 ;
6957 bool arg3 = (bool) True ;
6958 int result;
6959 bool temp2 = False ;
6960 PyObject * obj0 = 0 ;
6961 PyObject * obj1 = 0 ;
6962 PyObject * obj2 = 0 ;
6963 char *kwnames[] = {
6964 (char *) "self",(char *) "charset",(char *) "interactive", NULL
6965 };
6966
6967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
6968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6970 {
6971 arg2 = wxString_in_helper(obj1);
6972 if (arg2 == NULL) SWIG_fail;
6973 temp2 = True;
6974 }
6975 if (obj2) {
6976 arg3 = (bool) SWIG_AsBool(obj2);
6977 if (PyErr_Occurred()) SWIG_fail;
6978 }
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
6982
6983 wxPyEndAllowThreads(__tstate);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 resultobj = SWIG_FromInt((int)result);
6987 {
6988 if (temp2)
6989 delete arg2;
6990 }
6991 return resultobj;
6992 fail:
6993 {
6994 if (temp2)
6995 delete arg2;
6996 }
6997 return NULL;
6998 }
6999
7000
7001 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7002 PyObject *resultobj;
7003 size_t result;
7004 char *kwnames[] = {
7005 NULL
7006 };
7007
7008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7009 {
7010 PyThreadState* __tstate = wxPyBeginAllowThreads();
7011 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7012
7013 wxPyEndAllowThreads(__tstate);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7017 return resultobj;
7018 fail:
7019 return NULL;
7020 }
7021
7022
7023 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7024 PyObject *resultobj;
7025 size_t arg1 ;
7026 int result;
7027 PyObject * obj0 = 0 ;
7028 char *kwnames[] = {
7029 (char *) "n", NULL
7030 };
7031
7032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7033 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7034 if (PyErr_Occurred()) SWIG_fail;
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 result = (int)wxFontMapper::GetEncoding(arg1);
7038
7039 wxPyEndAllowThreads(__tstate);
7040 if (PyErr_Occurred()) SWIG_fail;
7041 }
7042 resultobj = SWIG_FromInt((int)result);
7043 return resultobj;
7044 fail:
7045 return NULL;
7046 }
7047
7048
7049 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7050 PyObject *resultobj;
7051 int arg1 ;
7052 wxString result;
7053 PyObject * obj0 = 0 ;
7054 char *kwnames[] = {
7055 (char *) "encoding", NULL
7056 };
7057
7058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7059 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7060 if (PyErr_Occurred()) SWIG_fail;
7061 {
7062 PyThreadState* __tstate = wxPyBeginAllowThreads();
7063 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7064
7065 wxPyEndAllowThreads(__tstate);
7066 if (PyErr_Occurred()) SWIG_fail;
7067 }
7068 {
7069 #if wxUSE_UNICODE
7070 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7071 #else
7072 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7073 #endif
7074 }
7075 return resultobj;
7076 fail:
7077 return NULL;
7078 }
7079
7080
7081 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7082 PyObject *resultobj;
7083 int arg1 ;
7084 wxString result;
7085 PyObject * obj0 = 0 ;
7086 char *kwnames[] = {
7087 (char *) "encoding", NULL
7088 };
7089
7090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7091 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 {
7094 PyThreadState* __tstate = wxPyBeginAllowThreads();
7095 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7096
7097 wxPyEndAllowThreads(__tstate);
7098 if (PyErr_Occurred()) SWIG_fail;
7099 }
7100 {
7101 #if wxUSE_UNICODE
7102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7103 #else
7104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7105 #endif
7106 }
7107 return resultobj;
7108 fail:
7109 return NULL;
7110 }
7111
7112
7113 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7114 PyObject *resultobj;
7115 wxString *arg1 = 0 ;
7116 int result;
7117 bool temp1 = False ;
7118 PyObject * obj0 = 0 ;
7119 char *kwnames[] = {
7120 (char *) "name", NULL
7121 };
7122
7123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7124 {
7125 arg1 = wxString_in_helper(obj0);
7126 if (arg1 == NULL) SWIG_fail;
7127 temp1 = True;
7128 }
7129 {
7130 PyThreadState* __tstate = wxPyBeginAllowThreads();
7131 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7132
7133 wxPyEndAllowThreads(__tstate);
7134 if (PyErr_Occurred()) SWIG_fail;
7135 }
7136 resultobj = SWIG_FromInt((int)result);
7137 {
7138 if (temp1)
7139 delete arg1;
7140 }
7141 return resultobj;
7142 fail:
7143 {
7144 if (temp1)
7145 delete arg1;
7146 }
7147 return NULL;
7148 }
7149
7150
7151 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7152 PyObject *resultobj;
7153 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7154 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7155 PyObject * obj0 = 0 ;
7156 PyObject * obj1 = 0 ;
7157 char *kwnames[] = {
7158 (char *) "self",(char *) "config", NULL
7159 };
7160
7161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7164 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 (arg1)->SetConfig(arg2);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 Py_INCREF(Py_None); resultobj = Py_None;
7174 return resultobj;
7175 fail:
7176 return NULL;
7177 }
7178
7179
7180 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7181 PyObject *resultobj;
7182 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7183 wxString *arg2 = 0 ;
7184 bool temp2 = False ;
7185 PyObject * obj0 = 0 ;
7186 PyObject * obj1 = 0 ;
7187 char *kwnames[] = {
7188 (char *) "self",(char *) "prefix", NULL
7189 };
7190
7191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7194 {
7195 arg2 = wxString_in_helper(obj1);
7196 if (arg2 == NULL) SWIG_fail;
7197 temp2 = True;
7198 }
7199 {
7200 PyThreadState* __tstate = wxPyBeginAllowThreads();
7201 (arg1)->SetConfigPath((wxString const &)*arg2);
7202
7203 wxPyEndAllowThreads(__tstate);
7204 if (PyErr_Occurred()) SWIG_fail;
7205 }
7206 Py_INCREF(Py_None); resultobj = Py_None;
7207 {
7208 if (temp2)
7209 delete arg2;
7210 }
7211 return resultobj;
7212 fail:
7213 {
7214 if (temp2)
7215 delete arg2;
7216 }
7217 return NULL;
7218 }
7219
7220
7221 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7222 PyObject *resultobj;
7223 wxString result;
7224 char *kwnames[] = {
7225 NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7229 {
7230 PyThreadState* __tstate = wxPyBeginAllowThreads();
7231 result = wxFontMapper::GetDefaultConfigPath();
7232
7233 wxPyEndAllowThreads(__tstate);
7234 if (PyErr_Occurred()) SWIG_fail;
7235 }
7236 {
7237 #if wxUSE_UNICODE
7238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7239 #else
7240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7241 #endif
7242 }
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7252 int arg2 ;
7253 wxString const &arg3_defvalue = wxPyEmptyString ;
7254 wxString *arg3 = (wxString *) &arg3_defvalue ;
7255 bool arg4 = (bool) True ;
7256 PyObject *result;
7257 bool temp3 = False ;
7258 PyObject * obj0 = 0 ;
7259 PyObject * obj1 = 0 ;
7260 PyObject * obj2 = 0 ;
7261 PyObject * obj3 = 0 ;
7262 char *kwnames[] = {
7263 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7264 };
7265
7266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7269 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 if (obj2) {
7272 {
7273 arg3 = wxString_in_helper(obj2);
7274 if (arg3 == NULL) SWIG_fail;
7275 temp3 = True;
7276 }
7277 }
7278 if (obj3) {
7279 arg4 = (bool) SWIG_AsBool(obj3);
7280 if (PyErr_Occurred()) SWIG_fail;
7281 }
7282 {
7283 PyThreadState* __tstate = wxPyBeginAllowThreads();
7284 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7285
7286 wxPyEndAllowThreads(__tstate);
7287 if (PyErr_Occurred()) SWIG_fail;
7288 }
7289 resultobj = result;
7290 {
7291 if (temp3)
7292 delete arg3;
7293 }
7294 return resultobj;
7295 fail:
7296 {
7297 if (temp3)
7298 delete arg3;
7299 }
7300 return NULL;
7301 }
7302
7303
7304 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7305 PyObject *resultobj;
7306 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7307 int arg2 ;
7308 wxString const &arg3_defvalue = wxPyEmptyString ;
7309 wxString *arg3 = (wxString *) &arg3_defvalue ;
7310 bool result;
7311 bool temp3 = False ;
7312 PyObject * obj0 = 0 ;
7313 PyObject * obj1 = 0 ;
7314 PyObject * obj2 = 0 ;
7315 char *kwnames[] = {
7316 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7317 };
7318
7319 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7320 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7321 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7322 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 if (obj2) {
7325 {
7326 arg3 = wxString_in_helper(obj2);
7327 if (arg3 == NULL) SWIG_fail;
7328 temp3 = True;
7329 }
7330 }
7331 {
7332 PyThreadState* __tstate = wxPyBeginAllowThreads();
7333 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7334
7335 wxPyEndAllowThreads(__tstate);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 {
7339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7340 }
7341 {
7342 if (temp3)
7343 delete arg3;
7344 }
7345 return resultobj;
7346 fail:
7347 {
7348 if (temp3)
7349 delete arg3;
7350 }
7351 return NULL;
7352 }
7353
7354
7355 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7356 PyObject *resultobj;
7357 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7358 wxWindow *arg2 = (wxWindow *) 0 ;
7359 PyObject * obj0 = 0 ;
7360 PyObject * obj1 = 0 ;
7361 char *kwnames[] = {
7362 (char *) "self",(char *) "parent", NULL
7363 };
7364
7365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7368 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7370 {
7371 PyThreadState* __tstate = wxPyBeginAllowThreads();
7372 (arg1)->SetDialogParent(arg2);
7373
7374 wxPyEndAllowThreads(__tstate);
7375 if (PyErr_Occurred()) SWIG_fail;
7376 }
7377 Py_INCREF(Py_None); resultobj = Py_None;
7378 return resultobj;
7379 fail:
7380 return NULL;
7381 }
7382
7383
7384 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7385 PyObject *resultobj;
7386 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7387 wxString *arg2 = 0 ;
7388 bool temp2 = False ;
7389 PyObject * obj0 = 0 ;
7390 PyObject * obj1 = 0 ;
7391 char *kwnames[] = {
7392 (char *) "self",(char *) "title", NULL
7393 };
7394
7395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7398 {
7399 arg2 = wxString_in_helper(obj1);
7400 if (arg2 == NULL) SWIG_fail;
7401 temp2 = True;
7402 }
7403 {
7404 PyThreadState* __tstate = wxPyBeginAllowThreads();
7405 (arg1)->SetDialogTitle((wxString const &)*arg2);
7406
7407 wxPyEndAllowThreads(__tstate);
7408 if (PyErr_Occurred()) SWIG_fail;
7409 }
7410 Py_INCREF(Py_None); resultobj = Py_None;
7411 {
7412 if (temp2)
7413 delete arg2;
7414 }
7415 return resultobj;
7416 fail:
7417 {
7418 if (temp2)
7419 delete arg2;
7420 }
7421 return NULL;
7422 }
7423
7424
7425 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7426 PyObject *obj;
7427 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7428 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7429 Py_INCREF(obj);
7430 return Py_BuildValue((char *)"");
7431 }
7432 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7433 PyObject *resultobj;
7434 int arg1 ;
7435 int arg2 ;
7436 int arg3 ;
7437 int arg4 ;
7438 bool arg5 = (bool) False ;
7439 wxString const &arg6_defvalue = wxPyEmptyString ;
7440 wxString *arg6 = (wxString *) &arg6_defvalue ;
7441 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7442 wxFont *result;
7443 bool temp6 = False ;
7444 PyObject * obj0 = 0 ;
7445 PyObject * obj1 = 0 ;
7446 PyObject * obj2 = 0 ;
7447 PyObject * obj3 = 0 ;
7448 PyObject * obj4 = 0 ;
7449 PyObject * obj5 = 0 ;
7450 PyObject * obj6 = 0 ;
7451 char *kwnames[] = {
7452 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7453 };
7454
7455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7456 arg1 = (int) SWIG_AsInt(obj0);
7457 if (PyErr_Occurred()) SWIG_fail;
7458 arg2 = (int) SWIG_AsInt(obj1);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 arg3 = (int) SWIG_AsInt(obj2);
7461 if (PyErr_Occurred()) SWIG_fail;
7462 arg4 = (int) SWIG_AsInt(obj3);
7463 if (PyErr_Occurred()) SWIG_fail;
7464 if (obj4) {
7465 arg5 = (bool) SWIG_AsBool(obj4);
7466 if (PyErr_Occurred()) SWIG_fail;
7467 }
7468 if (obj5) {
7469 {
7470 arg6 = wxString_in_helper(obj5);
7471 if (arg6 == NULL) SWIG_fail;
7472 temp6 = True;
7473 }
7474 }
7475 if (obj6) {
7476 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 {
7480 PyThreadState* __tstate = wxPyBeginAllowThreads();
7481 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7482
7483 wxPyEndAllowThreads(__tstate);
7484 if (PyErr_Occurred()) SWIG_fail;
7485 }
7486 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7487 {
7488 if (temp6)
7489 delete arg6;
7490 }
7491 return resultobj;
7492 fail:
7493 {
7494 if (temp6)
7495 delete arg6;
7496 }
7497 return NULL;
7498 }
7499
7500
7501 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7502 PyObject *resultobj;
7503 wxFont *arg1 = (wxFont *) 0 ;
7504 PyObject * obj0 = 0 ;
7505 char *kwnames[] = {
7506 (char *) "self", NULL
7507 };
7508
7509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7512 {
7513 PyThreadState* __tstate = wxPyBeginAllowThreads();
7514 delete arg1;
7515
7516 wxPyEndAllowThreads(__tstate);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 Py_INCREF(Py_None); resultobj = Py_None;
7520 return resultobj;
7521 fail:
7522 return NULL;
7523 }
7524
7525
7526 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7527 PyObject *resultobj;
7528 wxNativeFontInfo *arg1 = 0 ;
7529 wxFont *result;
7530 PyObject * obj0 = 0 ;
7531 char *kwnames[] = {
7532 (char *) "info", NULL
7533 };
7534
7535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7537 SWIG_POINTER_EXCEPTION | 0)) == -1)
7538 SWIG_fail;
7539 if (arg1 == NULL) {
7540 PyErr_SetString(PyExc_TypeError,"null reference");
7541 SWIG_fail;
7542 }
7543 {
7544 PyThreadState* __tstate = wxPyBeginAllowThreads();
7545 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7546
7547 wxPyEndAllowThreads(__tstate);
7548 if (PyErr_Occurred()) SWIG_fail;
7549 }
7550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7551 return resultobj;
7552 fail:
7553 return NULL;
7554 }
7555
7556
7557 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7558 PyObject *resultobj;
7559 wxString *arg1 = 0 ;
7560 wxFont *result;
7561 bool temp1 = False ;
7562 PyObject * obj0 = 0 ;
7563 char *kwnames[] = {
7564 (char *) "info", NULL
7565 };
7566
7567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7568 {
7569 arg1 = wxString_in_helper(obj0);
7570 if (arg1 == NULL) SWIG_fail;
7571 temp1 = True;
7572 }
7573 {
7574 PyThreadState* __tstate = wxPyBeginAllowThreads();
7575 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7576
7577 wxPyEndAllowThreads(__tstate);
7578 if (PyErr_Occurred()) SWIG_fail;
7579 }
7580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7581 {
7582 if (temp1)
7583 delete arg1;
7584 }
7585 return resultobj;
7586 fail:
7587 {
7588 if (temp1)
7589 delete arg1;
7590 }
7591 return NULL;
7592 }
7593
7594
7595 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj;
7597 int arg1 ;
7598 int arg2 ;
7599 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7600 wxString const &arg4_defvalue = wxPyEmptyString ;
7601 wxString *arg4 = (wxString *) &arg4_defvalue ;
7602 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7603 wxFont *result;
7604 bool temp4 = False ;
7605 PyObject * obj0 = 0 ;
7606 PyObject * obj1 = 0 ;
7607 PyObject * obj2 = 0 ;
7608 PyObject * obj3 = 0 ;
7609 PyObject * obj4 = 0 ;
7610 char *kwnames[] = {
7611 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7612 };
7613
7614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7615 arg1 = (int) SWIG_AsInt(obj0);
7616 if (PyErr_Occurred()) SWIG_fail;
7617 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7618 if (PyErr_Occurred()) SWIG_fail;
7619 if (obj2) {
7620 arg3 = (int) SWIG_AsInt(obj2);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 if (obj3) {
7624 {
7625 arg4 = wxString_in_helper(obj3);
7626 if (arg4 == NULL) SWIG_fail;
7627 temp4 = True;
7628 }
7629 }
7630 if (obj4) {
7631 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7632 if (PyErr_Occurred()) SWIG_fail;
7633 }
7634 {
7635 PyThreadState* __tstate = wxPyBeginAllowThreads();
7636 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7637
7638 wxPyEndAllowThreads(__tstate);
7639 if (PyErr_Occurred()) SWIG_fail;
7640 }
7641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7642 {
7643 if (temp4)
7644 delete arg4;
7645 }
7646 return resultobj;
7647 fail:
7648 {
7649 if (temp4)
7650 delete arg4;
7651 }
7652 return NULL;
7653 }
7654
7655
7656 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7657 PyObject *resultobj;
7658 wxFont *arg1 = (wxFont *) 0 ;
7659 bool result;
7660 PyObject * obj0 = 0 ;
7661 char *kwnames[] = {
7662 (char *) "self", NULL
7663 };
7664
7665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7668 {
7669 PyThreadState* __tstate = wxPyBeginAllowThreads();
7670 result = (bool)((wxFont const *)arg1)->Ok();
7671
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 {
7676 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7677 }
7678 return resultobj;
7679 fail:
7680 return NULL;
7681 }
7682
7683
7684 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj;
7686 wxFont *arg1 = (wxFont *) 0 ;
7687 wxFont *arg2 = (wxFont *) 0 ;
7688 bool result;
7689 PyObject * obj0 = 0 ;
7690 PyObject * obj1 = 0 ;
7691 char *kwnames[] = {
7692 (char *) "self",(char *) "other", NULL
7693 };
7694
7695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7698 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7699 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7700 {
7701 PyThreadState* __tstate = wxPyBeginAllowThreads();
7702 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7703
7704 wxPyEndAllowThreads(__tstate);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 }
7707 {
7708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7709 }
7710 return resultobj;
7711 fail:
7712 return NULL;
7713 }
7714
7715
7716 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7717 PyObject *resultobj;
7718 wxFont *arg1 = (wxFont *) 0 ;
7719 wxFont *arg2 = (wxFont *) 0 ;
7720 bool result;
7721 PyObject * obj0 = 0 ;
7722 PyObject * obj1 = 0 ;
7723 char *kwnames[] = {
7724 (char *) "self",(char *) "other", NULL
7725 };
7726
7727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7730 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7735
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 {
7740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7741 }
7742 return resultobj;
7743 fail:
7744 return NULL;
7745 }
7746
7747
7748 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7749 PyObject *resultobj;
7750 wxFont *arg1 = (wxFont *) 0 ;
7751 int result;
7752 PyObject * obj0 = 0 ;
7753 char *kwnames[] = {
7754 (char *) "self", NULL
7755 };
7756
7757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7760 {
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 result = (int)((wxFont const *)arg1)->GetPointSize();
7763
7764 wxPyEndAllowThreads(__tstate);
7765 if (PyErr_Occurred()) SWIG_fail;
7766 }
7767 resultobj = SWIG_FromInt((int)result);
7768 return resultobj;
7769 fail:
7770 return NULL;
7771 }
7772
7773
7774 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7775 PyObject *resultobj;
7776 wxFont *arg1 = (wxFont *) 0 ;
7777 int result;
7778 PyObject * obj0 = 0 ;
7779 char *kwnames[] = {
7780 (char *) "self", NULL
7781 };
7782
7783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7786 {
7787 PyThreadState* __tstate = wxPyBeginAllowThreads();
7788 result = (int)((wxFont const *)arg1)->GetFamily();
7789
7790 wxPyEndAllowThreads(__tstate);
7791 if (PyErr_Occurred()) SWIG_fail;
7792 }
7793 resultobj = SWIG_FromInt((int)result);
7794 return resultobj;
7795 fail:
7796 return NULL;
7797 }
7798
7799
7800 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj;
7802 wxFont *arg1 = (wxFont *) 0 ;
7803 int result;
7804 PyObject * obj0 = 0 ;
7805 char *kwnames[] = {
7806 (char *) "self", NULL
7807 };
7808
7809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7812 {
7813 PyThreadState* __tstate = wxPyBeginAllowThreads();
7814 result = (int)((wxFont const *)arg1)->GetStyle();
7815
7816 wxPyEndAllowThreads(__tstate);
7817 if (PyErr_Occurred()) SWIG_fail;
7818 }
7819 resultobj = SWIG_FromInt((int)result);
7820 return resultobj;
7821 fail:
7822 return NULL;
7823 }
7824
7825
7826 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7827 PyObject *resultobj;
7828 wxFont *arg1 = (wxFont *) 0 ;
7829 int result;
7830 PyObject * obj0 = 0 ;
7831 char *kwnames[] = {
7832 (char *) "self", NULL
7833 };
7834
7835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7838 {
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 result = (int)((wxFont const *)arg1)->GetWeight();
7841
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 resultobj = SWIG_FromInt((int)result);
7846 return resultobj;
7847 fail:
7848 return NULL;
7849 }
7850
7851
7852 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7853 PyObject *resultobj;
7854 wxFont *arg1 = (wxFont *) 0 ;
7855 bool result;
7856 PyObject * obj0 = 0 ;
7857 char *kwnames[] = {
7858 (char *) "self", NULL
7859 };
7860
7861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7864 {
7865 PyThreadState* __tstate = wxPyBeginAllowThreads();
7866 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7867
7868 wxPyEndAllowThreads(__tstate);
7869 if (PyErr_Occurred()) SWIG_fail;
7870 }
7871 {
7872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7873 }
7874 return resultobj;
7875 fail:
7876 return NULL;
7877 }
7878
7879
7880 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7881 PyObject *resultobj;
7882 wxFont *arg1 = (wxFont *) 0 ;
7883 wxString result;
7884 PyObject * obj0 = 0 ;
7885 char *kwnames[] = {
7886 (char *) "self", NULL
7887 };
7888
7889 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7890 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7891 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7892 {
7893 PyThreadState* __tstate = wxPyBeginAllowThreads();
7894 result = ((wxFont const *)arg1)->GetFaceName();
7895
7896 wxPyEndAllowThreads(__tstate);
7897 if (PyErr_Occurred()) SWIG_fail;
7898 }
7899 {
7900 #if wxUSE_UNICODE
7901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7902 #else
7903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7904 #endif
7905 }
7906 return resultobj;
7907 fail:
7908 return NULL;
7909 }
7910
7911
7912 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7913 PyObject *resultobj;
7914 wxFont *arg1 = (wxFont *) 0 ;
7915 int result;
7916 PyObject * obj0 = 0 ;
7917 char *kwnames[] = {
7918 (char *) "self", NULL
7919 };
7920
7921 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7922 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7923 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7924 {
7925 PyThreadState* __tstate = wxPyBeginAllowThreads();
7926 result = (int)((wxFont const *)arg1)->GetEncoding();
7927
7928 wxPyEndAllowThreads(__tstate);
7929 if (PyErr_Occurred()) SWIG_fail;
7930 }
7931 resultobj = SWIG_FromInt((int)result);
7932 return resultobj;
7933 fail:
7934 return NULL;
7935 }
7936
7937
7938 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7939 PyObject *resultobj;
7940 wxFont *arg1 = (wxFont *) 0 ;
7941 wxNativeFontInfo *result;
7942 PyObject * obj0 = 0 ;
7943 char *kwnames[] = {
7944 (char *) "self", NULL
7945 };
7946
7947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
7948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7950 {
7951 PyThreadState* __tstate = wxPyBeginAllowThreads();
7952 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
7953
7954 wxPyEndAllowThreads(__tstate);
7955 if (PyErr_Occurred()) SWIG_fail;
7956 }
7957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
7958 return resultobj;
7959 fail:
7960 return NULL;
7961 }
7962
7963
7964 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
7965 PyObject *resultobj;
7966 wxFont *arg1 = (wxFont *) 0 ;
7967 bool result;
7968 PyObject * obj0 = 0 ;
7969 char *kwnames[] = {
7970 (char *) "self", NULL
7971 };
7972
7973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
7974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7976 {
7977 PyThreadState* __tstate = wxPyBeginAllowThreads();
7978 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
7979
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 {
7984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7985 }
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj;
7994 wxFont *arg1 = (wxFont *) 0 ;
7995 wxString result;
7996 PyObject * obj0 = 0 ;
7997 char *kwnames[] = {
7998 (char *) "self", NULL
7999 };
8000
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8004 {
8005 PyThreadState* __tstate = wxPyBeginAllowThreads();
8006 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8007
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 {
8012 #if wxUSE_UNICODE
8013 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8014 #else
8015 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8016 #endif
8017 }
8018 return resultobj;
8019 fail:
8020 return NULL;
8021 }
8022
8023
8024 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8025 PyObject *resultobj;
8026 wxFont *arg1 = (wxFont *) 0 ;
8027 wxString result;
8028 PyObject * obj0 = 0 ;
8029 char *kwnames[] = {
8030 (char *) "self", NULL
8031 };
8032
8033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8036 {
8037 PyThreadState* __tstate = wxPyBeginAllowThreads();
8038 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8039
8040 wxPyEndAllowThreads(__tstate);
8041 if (PyErr_Occurred()) SWIG_fail;
8042 }
8043 {
8044 #if wxUSE_UNICODE
8045 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8046 #else
8047 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8048 #endif
8049 }
8050 return resultobj;
8051 fail:
8052 return NULL;
8053 }
8054
8055
8056 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8057 PyObject *resultobj;
8058 wxFont *arg1 = (wxFont *) 0 ;
8059 int arg2 ;
8060 PyObject * obj0 = 0 ;
8061 PyObject * obj1 = 0 ;
8062 char *kwnames[] = {
8063 (char *) "self",(char *) "pointSize", NULL
8064 };
8065
8066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8069 arg2 = (int) SWIG_AsInt(obj1);
8070 if (PyErr_Occurred()) SWIG_fail;
8071 {
8072 PyThreadState* __tstate = wxPyBeginAllowThreads();
8073 (arg1)->SetPointSize(arg2);
8074
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 Py_INCREF(Py_None); resultobj = Py_None;
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8086 PyObject *resultobj;
8087 wxFont *arg1 = (wxFont *) 0 ;
8088 int arg2 ;
8089 PyObject * obj0 = 0 ;
8090 PyObject * obj1 = 0 ;
8091 char *kwnames[] = {
8092 (char *) "self",(char *) "family", NULL
8093 };
8094
8095 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8096 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8098 arg2 = (int) SWIG_AsInt(obj1);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 (arg1)->SetFamily(arg2);
8103
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 Py_INCREF(Py_None); resultobj = Py_None;
8108 return resultobj;
8109 fail:
8110 return NULL;
8111 }
8112
8113
8114 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8115 PyObject *resultobj;
8116 wxFont *arg1 = (wxFont *) 0 ;
8117 int arg2 ;
8118 PyObject * obj0 = 0 ;
8119 PyObject * obj1 = 0 ;
8120 char *kwnames[] = {
8121 (char *) "self",(char *) "style", NULL
8122 };
8123
8124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8127 arg2 = (int) SWIG_AsInt(obj1);
8128 if (PyErr_Occurred()) SWIG_fail;
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 (arg1)->SetStyle(arg2);
8132
8133 wxPyEndAllowThreads(__tstate);
8134 if (PyErr_Occurred()) SWIG_fail;
8135 }
8136 Py_INCREF(Py_None); resultobj = Py_None;
8137 return resultobj;
8138 fail:
8139 return NULL;
8140 }
8141
8142
8143 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8144 PyObject *resultobj;
8145 wxFont *arg1 = (wxFont *) 0 ;
8146 int arg2 ;
8147 PyObject * obj0 = 0 ;
8148 PyObject * obj1 = 0 ;
8149 char *kwnames[] = {
8150 (char *) "self",(char *) "weight", NULL
8151 };
8152
8153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8156 arg2 = (int) SWIG_AsInt(obj1);
8157 if (PyErr_Occurred()) SWIG_fail;
8158 {
8159 PyThreadState* __tstate = wxPyBeginAllowThreads();
8160 (arg1)->SetWeight(arg2);
8161
8162 wxPyEndAllowThreads(__tstate);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 Py_INCREF(Py_None); resultobj = Py_None;
8166 return resultobj;
8167 fail:
8168 return NULL;
8169 }
8170
8171
8172 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8173 PyObject *resultobj;
8174 wxFont *arg1 = (wxFont *) 0 ;
8175 wxString *arg2 = 0 ;
8176 bool temp2 = False ;
8177 PyObject * obj0 = 0 ;
8178 PyObject * obj1 = 0 ;
8179 char *kwnames[] = {
8180 (char *) "self",(char *) "faceName", NULL
8181 };
8182
8183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8186 {
8187 arg2 = wxString_in_helper(obj1);
8188 if (arg2 == NULL) SWIG_fail;
8189 temp2 = True;
8190 }
8191 {
8192 PyThreadState* __tstate = wxPyBeginAllowThreads();
8193 (arg1)->SetFaceName((wxString const &)*arg2);
8194
8195 wxPyEndAllowThreads(__tstate);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 Py_INCREF(Py_None); resultobj = Py_None;
8199 {
8200 if (temp2)
8201 delete arg2;
8202 }
8203 return resultobj;
8204 fail:
8205 {
8206 if (temp2)
8207 delete arg2;
8208 }
8209 return NULL;
8210 }
8211
8212
8213 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8214 PyObject *resultobj;
8215 wxFont *arg1 = (wxFont *) 0 ;
8216 bool arg2 ;
8217 PyObject * obj0 = 0 ;
8218 PyObject * obj1 = 0 ;
8219 char *kwnames[] = {
8220 (char *) "self",(char *) "underlined", NULL
8221 };
8222
8223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8226 arg2 = (bool) SWIG_AsBool(obj1);
8227 if (PyErr_Occurred()) SWIG_fail;
8228 {
8229 PyThreadState* __tstate = wxPyBeginAllowThreads();
8230 (arg1)->SetUnderlined(arg2);
8231
8232 wxPyEndAllowThreads(__tstate);
8233 if (PyErr_Occurred()) SWIG_fail;
8234 }
8235 Py_INCREF(Py_None); resultobj = Py_None;
8236 return resultobj;
8237 fail:
8238 return NULL;
8239 }
8240
8241
8242 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8243 PyObject *resultobj;
8244 wxFont *arg1 = (wxFont *) 0 ;
8245 int arg2 ;
8246 PyObject * obj0 = 0 ;
8247 PyObject * obj1 = 0 ;
8248 char *kwnames[] = {
8249 (char *) "self",(char *) "encoding", NULL
8250 };
8251
8252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8255 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8256 if (PyErr_Occurred()) SWIG_fail;
8257 {
8258 PyThreadState* __tstate = wxPyBeginAllowThreads();
8259 (arg1)->SetEncoding((wxFontEncoding )arg2);
8260
8261 wxPyEndAllowThreads(__tstate);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 Py_INCREF(Py_None); resultobj = Py_None;
8265 return resultobj;
8266 fail:
8267 return NULL;
8268 }
8269
8270
8271 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8272 PyObject *resultobj;
8273 wxFont *arg1 = (wxFont *) 0 ;
8274 wxNativeFontInfo *arg2 = 0 ;
8275 PyObject * obj0 = 0 ;
8276 PyObject * obj1 = 0 ;
8277 char *kwnames[] = {
8278 (char *) "self",(char *) "info", NULL
8279 };
8280
8281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8284 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8285 SWIG_POINTER_EXCEPTION | 0)) == -1)
8286 SWIG_fail;
8287 if (arg2 == NULL) {
8288 PyErr_SetString(PyExc_TypeError,"null reference");
8289 SWIG_fail;
8290 }
8291 {
8292 PyThreadState* __tstate = wxPyBeginAllowThreads();
8293 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8294
8295 wxPyEndAllowThreads(__tstate);
8296 if (PyErr_Occurred()) SWIG_fail;
8297 }
8298 Py_INCREF(Py_None); resultobj = Py_None;
8299 return resultobj;
8300 fail:
8301 return NULL;
8302 }
8303
8304
8305 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8306 PyObject *resultobj;
8307 wxFont *arg1 = (wxFont *) 0 ;
8308 wxString *arg2 = 0 ;
8309 bool temp2 = False ;
8310 PyObject * obj0 = 0 ;
8311 PyObject * obj1 = 0 ;
8312 char *kwnames[] = {
8313 (char *) "self",(char *) "info", NULL
8314 };
8315
8316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8319 {
8320 arg2 = wxString_in_helper(obj1);
8321 if (arg2 == NULL) SWIG_fail;
8322 temp2 = True;
8323 }
8324 {
8325 PyThreadState* __tstate = wxPyBeginAllowThreads();
8326 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8327
8328 wxPyEndAllowThreads(__tstate);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 Py_INCREF(Py_None); resultobj = Py_None;
8332 {
8333 if (temp2)
8334 delete arg2;
8335 }
8336 return resultobj;
8337 fail:
8338 {
8339 if (temp2)
8340 delete arg2;
8341 }
8342 return NULL;
8343 }
8344
8345
8346 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8347 PyObject *resultobj;
8348 wxFont *arg1 = (wxFont *) 0 ;
8349 wxString *arg2 = 0 ;
8350 bool temp2 = False ;
8351 PyObject * obj0 = 0 ;
8352 PyObject * obj1 = 0 ;
8353 char *kwnames[] = {
8354 (char *) "self",(char *) "info", NULL
8355 };
8356
8357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8360 {
8361 arg2 = wxString_in_helper(obj1);
8362 if (arg2 == NULL) SWIG_fail;
8363 temp2 = True;
8364 }
8365 {
8366 PyThreadState* __tstate = wxPyBeginAllowThreads();
8367 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8368
8369 wxPyEndAllowThreads(__tstate);
8370 if (PyErr_Occurred()) SWIG_fail;
8371 }
8372 Py_INCREF(Py_None); resultobj = Py_None;
8373 {
8374 if (temp2)
8375 delete arg2;
8376 }
8377 return resultobj;
8378 fail:
8379 {
8380 if (temp2)
8381 delete arg2;
8382 }
8383 return NULL;
8384 }
8385
8386
8387 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8388 PyObject *resultobj;
8389 wxFont *arg1 = (wxFont *) 0 ;
8390 wxString result;
8391 PyObject * obj0 = 0 ;
8392 char *kwnames[] = {
8393 (char *) "self", NULL
8394 };
8395
8396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8399 {
8400 PyThreadState* __tstate = wxPyBeginAllowThreads();
8401 result = ((wxFont const *)arg1)->GetFamilyString();
8402
8403 wxPyEndAllowThreads(__tstate);
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 {
8407 #if wxUSE_UNICODE
8408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8409 #else
8410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8411 #endif
8412 }
8413 return resultobj;
8414 fail:
8415 return NULL;
8416 }
8417
8418
8419 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8420 PyObject *resultobj;
8421 wxFont *arg1 = (wxFont *) 0 ;
8422 wxString result;
8423 PyObject * obj0 = 0 ;
8424 char *kwnames[] = {
8425 (char *) "self", NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8431 {
8432 PyThreadState* __tstate = wxPyBeginAllowThreads();
8433 result = ((wxFont const *)arg1)->GetStyleString();
8434
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 {
8439 #if wxUSE_UNICODE
8440 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8441 #else
8442 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8443 #endif
8444 }
8445 return resultobj;
8446 fail:
8447 return NULL;
8448 }
8449
8450
8451 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj;
8453 wxFont *arg1 = (wxFont *) 0 ;
8454 wxString result;
8455 PyObject * obj0 = 0 ;
8456 char *kwnames[] = {
8457 (char *) "self", NULL
8458 };
8459
8460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8463 {
8464 PyThreadState* __tstate = wxPyBeginAllowThreads();
8465 result = ((wxFont const *)arg1)->GetWeightString();
8466
8467 wxPyEndAllowThreads(__tstate);
8468 if (PyErr_Occurred()) SWIG_fail;
8469 }
8470 {
8471 #if wxUSE_UNICODE
8472 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8473 #else
8474 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8475 #endif
8476 }
8477 return resultobj;
8478 fail:
8479 return NULL;
8480 }
8481
8482
8483 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8484 PyObject *resultobj;
8485 wxFont *arg1 = (wxFont *) 0 ;
8486 bool arg2 = (bool) True ;
8487 PyObject * obj0 = 0 ;
8488 PyObject * obj1 = 0 ;
8489 char *kwnames[] = {
8490 (char *) "self",(char *) "no", NULL
8491 };
8492
8493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8496 if (obj1) {
8497 arg2 = (bool) SWIG_AsBool(obj1);
8498 if (PyErr_Occurred()) SWIG_fail;
8499 }
8500 {
8501 PyThreadState* __tstate = wxPyBeginAllowThreads();
8502 (arg1)->SetNoAntiAliasing(arg2);
8503
8504 wxPyEndAllowThreads(__tstate);
8505 if (PyErr_Occurred()) SWIG_fail;
8506 }
8507 Py_INCREF(Py_None); resultobj = Py_None;
8508 return resultobj;
8509 fail:
8510 return NULL;
8511 }
8512
8513
8514 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8515 PyObject *resultobj;
8516 wxFont *arg1 = (wxFont *) 0 ;
8517 bool result;
8518 PyObject * obj0 = 0 ;
8519 char *kwnames[] = {
8520 (char *) "self", NULL
8521 };
8522
8523 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8524 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8525 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8526 {
8527 PyThreadState* __tstate = wxPyBeginAllowThreads();
8528 result = (bool)(arg1)->GetNoAntiAliasing();
8529
8530 wxPyEndAllowThreads(__tstate);
8531 if (PyErr_Occurred()) SWIG_fail;
8532 }
8533 {
8534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8535 }
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj;
8544 int result;
8545 char *kwnames[] = {
8546 NULL
8547 };
8548
8549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8550 {
8551 PyThreadState* __tstate = wxPyBeginAllowThreads();
8552 result = (int)wxFont::GetDefaultEncoding();
8553
8554 wxPyEndAllowThreads(__tstate);
8555 if (PyErr_Occurred()) SWIG_fail;
8556 }
8557 resultobj = SWIG_FromInt((int)result);
8558 return resultobj;
8559 fail:
8560 return NULL;
8561 }
8562
8563
8564 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8565 PyObject *resultobj;
8566 int arg1 ;
8567 PyObject * obj0 = 0 ;
8568 char *kwnames[] = {
8569 (char *) "encoding", NULL
8570 };
8571
8572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8573 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8574 if (PyErr_Occurred()) SWIG_fail;
8575 {
8576 PyThreadState* __tstate = wxPyBeginAllowThreads();
8577 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8578
8579 wxPyEndAllowThreads(__tstate);
8580 if (PyErr_Occurred()) SWIG_fail;
8581 }
8582 Py_INCREF(Py_None); resultobj = Py_None;
8583 return resultobj;
8584 fail:
8585 return NULL;
8586 }
8587
8588
8589 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8590 PyObject *obj;
8591 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8592 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8593 Py_INCREF(obj);
8594 return Py_BuildValue((char *)"");
8595 }
8596 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj;
8598 wxPyFontEnumerator *result;
8599 char *kwnames[] = {
8600 NULL
8601 };
8602
8603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8604 {
8605 PyThreadState* __tstate = wxPyBeginAllowThreads();
8606 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8607
8608 wxPyEndAllowThreads(__tstate);
8609 if (PyErr_Occurred()) SWIG_fail;
8610 }
8611 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8612 return resultobj;
8613 fail:
8614 return NULL;
8615 }
8616
8617
8618 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8619 PyObject *resultobj;
8620 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8621 PyObject * obj0 = 0 ;
8622 char *kwnames[] = {
8623 (char *) "self", NULL
8624 };
8625
8626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8629 {
8630 PyThreadState* __tstate = wxPyBeginAllowThreads();
8631 delete arg1;
8632
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 Py_INCREF(Py_None); resultobj = Py_None;
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj;
8645 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8646 PyObject *arg2 = (PyObject *) 0 ;
8647 PyObject *arg3 = (PyObject *) 0 ;
8648 bool arg4 ;
8649 PyObject * obj0 = 0 ;
8650 PyObject * obj1 = 0 ;
8651 PyObject * obj2 = 0 ;
8652 PyObject * obj3 = 0 ;
8653 char *kwnames[] = {
8654 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8655 };
8656
8657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8658 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8659 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8660 arg2 = obj1;
8661 arg3 = obj2;
8662 arg4 = (bool) SWIG_AsBool(obj3);
8663 if (PyErr_Occurred()) SWIG_fail;
8664 {
8665 PyThreadState* __tstate = wxPyBeginAllowThreads();
8666 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8667
8668 wxPyEndAllowThreads(__tstate);
8669 if (PyErr_Occurred()) SWIG_fail;
8670 }
8671 Py_INCREF(Py_None); resultobj = Py_None;
8672 return resultobj;
8673 fail:
8674 return NULL;
8675 }
8676
8677
8678 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8679 PyObject *resultobj;
8680 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8681 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8682 bool arg3 = (bool) False ;
8683 bool result;
8684 PyObject * obj0 = 0 ;
8685 PyObject * obj1 = 0 ;
8686 PyObject * obj2 = 0 ;
8687 char *kwnames[] = {
8688 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8689 };
8690
8691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8694 if (obj1) {
8695 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 if (obj2) {
8699 arg3 = (bool) SWIG_AsBool(obj2);
8700 if (PyErr_Occurred()) SWIG_fail;
8701 }
8702 {
8703 PyThreadState* __tstate = wxPyBeginAllowThreads();
8704 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8705
8706 wxPyEndAllowThreads(__tstate);
8707 if (PyErr_Occurred()) SWIG_fail;
8708 }
8709 {
8710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8711 }
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8721 wxString const &arg2_defvalue = wxPyEmptyString ;
8722 wxString *arg2 = (wxString *) &arg2_defvalue ;
8723 bool result;
8724 bool temp2 = False ;
8725 PyObject * obj0 = 0 ;
8726 PyObject * obj1 = 0 ;
8727 char *kwnames[] = {
8728 (char *) "self",(char *) "facename", NULL
8729 };
8730
8731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8734 if (obj1) {
8735 {
8736 arg2 = wxString_in_helper(obj1);
8737 if (arg2 == NULL) SWIG_fail;
8738 temp2 = True;
8739 }
8740 }
8741 {
8742 PyThreadState* __tstate = wxPyBeginAllowThreads();
8743 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8744
8745 wxPyEndAllowThreads(__tstate);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 {
8749 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8750 }
8751 {
8752 if (temp2)
8753 delete arg2;
8754 }
8755 return resultobj;
8756 fail:
8757 {
8758 if (temp2)
8759 delete arg2;
8760 }
8761 return NULL;
8762 }
8763
8764
8765 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8766 PyObject *resultobj;
8767 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8768 PyObject *result;
8769 PyObject * obj0 = 0 ;
8770 char *kwnames[] = {
8771 (char *) "self", NULL
8772 };
8773
8774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8777 {
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8780
8781 wxPyEndAllowThreads(__tstate);
8782 if (PyErr_Occurred()) SWIG_fail;
8783 }
8784 resultobj = result;
8785 return resultobj;
8786 fail:
8787 return NULL;
8788 }
8789
8790
8791 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8792 PyObject *resultobj;
8793 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8794 PyObject *result;
8795 PyObject * obj0 = 0 ;
8796 char *kwnames[] = {
8797 (char *) "self", NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8803 {
8804 PyThreadState* __tstate = wxPyBeginAllowThreads();
8805 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8806
8807 wxPyEndAllowThreads(__tstate);
8808 if (PyErr_Occurred()) SWIG_fail;
8809 }
8810 resultobj = result;
8811 return resultobj;
8812 fail:
8813 return NULL;
8814 }
8815
8816
8817 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8818 PyObject *obj;
8819 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8820 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8821 Py_INCREF(obj);
8822 return Py_BuildValue((char *)"");
8823 }
8824 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8825 PyObject *resultobj;
8826 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8827 int arg2 ;
8828 PyObject * obj0 = 0 ;
8829 PyObject * obj1 = 0 ;
8830 char *kwnames[] = {
8831 (char *) "self",(char *) "Language", NULL
8832 };
8833
8834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8837 arg2 = (int) SWIG_AsInt(obj1);
8838 if (PyErr_Occurred()) SWIG_fail;
8839 if (arg1) (arg1)->Language = arg2;
8840
8841 Py_INCREF(Py_None); resultobj = Py_None;
8842 return resultobj;
8843 fail:
8844 return NULL;
8845 }
8846
8847
8848 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8849 PyObject *resultobj;
8850 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8851 int result;
8852 PyObject * obj0 = 0 ;
8853 char *kwnames[] = {
8854 (char *) "self", NULL
8855 };
8856
8857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8860 result = (int) ((arg1)->Language);
8861
8862 resultobj = SWIG_FromInt((int)result);
8863 return resultobj;
8864 fail:
8865 return NULL;
8866 }
8867
8868
8869 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8870 PyObject *resultobj;
8871 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8872 wxString *arg2 = (wxString *) 0 ;
8873 bool temp2 = False ;
8874 PyObject * obj0 = 0 ;
8875 PyObject * obj1 = 0 ;
8876 char *kwnames[] = {
8877 (char *) "self",(char *) "CanonicalName", NULL
8878 };
8879
8880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8883 {
8884 arg2 = wxString_in_helper(obj1);
8885 if (arg2 == NULL) SWIG_fail;
8886 temp2 = True;
8887 }
8888 if (arg1) (arg1)->CanonicalName = *arg2;
8889
8890 Py_INCREF(Py_None); resultobj = Py_None;
8891 {
8892 if (temp2)
8893 delete arg2;
8894 }
8895 return resultobj;
8896 fail:
8897 {
8898 if (temp2)
8899 delete arg2;
8900 }
8901 return NULL;
8902 }
8903
8904
8905 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8906 PyObject *resultobj;
8907 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8908 wxString *result;
8909 PyObject * obj0 = 0 ;
8910 char *kwnames[] = {
8911 (char *) "self", NULL
8912 };
8913
8914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8917 result = (wxString *)& ((arg1)->CanonicalName);
8918
8919 {
8920 #if wxUSE_UNICODE
8921 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8922 #else
8923 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8924 #endif
8925 }
8926 return resultobj;
8927 fail:
8928 return NULL;
8929 }
8930
8931
8932 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8933 PyObject *resultobj;
8934 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8935 wxString *arg2 = (wxString *) 0 ;
8936 bool temp2 = False ;
8937 PyObject * obj0 = 0 ;
8938 PyObject * obj1 = 0 ;
8939 char *kwnames[] = {
8940 (char *) "self",(char *) "Description", NULL
8941 };
8942
8943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
8944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8946 {
8947 arg2 = wxString_in_helper(obj1);
8948 if (arg2 == NULL) SWIG_fail;
8949 temp2 = True;
8950 }
8951 if (arg1) (arg1)->Description = *arg2;
8952
8953 Py_INCREF(Py_None); resultobj = Py_None;
8954 {
8955 if (temp2)
8956 delete arg2;
8957 }
8958 return resultobj;
8959 fail:
8960 {
8961 if (temp2)
8962 delete arg2;
8963 }
8964 return NULL;
8965 }
8966
8967
8968 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8969 PyObject *resultobj;
8970 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8971 wxString *result;
8972 PyObject * obj0 = 0 ;
8973 char *kwnames[] = {
8974 (char *) "self", NULL
8975 };
8976
8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
8978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8980 result = (wxString *)& ((arg1)->Description);
8981
8982 {
8983 #if wxUSE_UNICODE
8984 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
8985 #else
8986 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
8987 #endif
8988 }
8989 return resultobj;
8990 fail:
8991 return NULL;
8992 }
8993
8994
8995 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
8996 PyObject *obj;
8997 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8998 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
8999 Py_INCREF(obj);
9000 return Py_BuildValue((char *)"");
9001 }
9002 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj;
9004 int arg1 = (int) -1 ;
9005 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9006 wxLocale *result;
9007 PyObject * obj0 = 0 ;
9008 PyObject * obj1 = 0 ;
9009 char *kwnames[] = {
9010 (char *) "language",(char *) "flags", NULL
9011 };
9012
9013 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9014 if (obj0) {
9015 arg1 = (int) SWIG_AsInt(obj0);
9016 if (PyErr_Occurred()) SWIG_fail;
9017 }
9018 if (obj1) {
9019 arg2 = (int) SWIG_AsInt(obj1);
9020 if (PyErr_Occurred()) SWIG_fail;
9021 }
9022 {
9023 PyThreadState* __tstate = wxPyBeginAllowThreads();
9024 result = (wxLocale *)new_wxLocale(arg1,arg2);
9025
9026 wxPyEndAllowThreads(__tstate);
9027 if (PyErr_Occurred()) SWIG_fail;
9028 }
9029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9030 return resultobj;
9031 fail:
9032 return NULL;
9033 }
9034
9035
9036 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9037 PyObject *resultobj;
9038 wxLocale *arg1 = (wxLocale *) 0 ;
9039 PyObject * obj0 = 0 ;
9040 char *kwnames[] = {
9041 (char *) "self", NULL
9042 };
9043
9044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9047 {
9048 PyThreadState* __tstate = wxPyBeginAllowThreads();
9049 delete arg1;
9050
9051 wxPyEndAllowThreads(__tstate);
9052 if (PyErr_Occurred()) SWIG_fail;
9053 }
9054 Py_INCREF(Py_None); resultobj = Py_None;
9055 return resultobj;
9056 fail:
9057 return NULL;
9058 }
9059
9060
9061 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj;
9063 wxLocale *arg1 = (wxLocale *) 0 ;
9064 wxString *arg2 = 0 ;
9065 wxString const &arg3_defvalue = wxPyEmptyString ;
9066 wxString *arg3 = (wxString *) &arg3_defvalue ;
9067 wxString const &arg4_defvalue = wxPyEmptyString ;
9068 wxString *arg4 = (wxString *) &arg4_defvalue ;
9069 bool arg5 = (bool) True ;
9070 bool arg6 = (bool) False ;
9071 bool result;
9072 bool temp2 = False ;
9073 bool temp3 = False ;
9074 bool temp4 = False ;
9075 PyObject * obj0 = 0 ;
9076 PyObject * obj1 = 0 ;
9077 PyObject * obj2 = 0 ;
9078 PyObject * obj3 = 0 ;
9079 PyObject * obj4 = 0 ;
9080 PyObject * obj5 = 0 ;
9081 char *kwnames[] = {
9082 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9083 };
9084
9085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9088 {
9089 arg2 = wxString_in_helper(obj1);
9090 if (arg2 == NULL) SWIG_fail;
9091 temp2 = True;
9092 }
9093 if (obj2) {
9094 {
9095 arg3 = wxString_in_helper(obj2);
9096 if (arg3 == NULL) SWIG_fail;
9097 temp3 = True;
9098 }
9099 }
9100 if (obj3) {
9101 {
9102 arg4 = wxString_in_helper(obj3);
9103 if (arg4 == NULL) SWIG_fail;
9104 temp4 = True;
9105 }
9106 }
9107 if (obj4) {
9108 arg5 = (bool) SWIG_AsBool(obj4);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 if (obj5) {
9112 arg6 = (bool) SWIG_AsBool(obj5);
9113 if (PyErr_Occurred()) SWIG_fail;
9114 }
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9118
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 {
9123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9124 }
9125 {
9126 if (temp2)
9127 delete arg2;
9128 }
9129 {
9130 if (temp3)
9131 delete arg3;
9132 }
9133 {
9134 if (temp4)
9135 delete arg4;
9136 }
9137 return resultobj;
9138 fail:
9139 {
9140 if (temp2)
9141 delete arg2;
9142 }
9143 {
9144 if (temp3)
9145 delete arg3;
9146 }
9147 {
9148 if (temp4)
9149 delete arg4;
9150 }
9151 return NULL;
9152 }
9153
9154
9155 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9156 PyObject *resultobj;
9157 wxLocale *arg1 = (wxLocale *) 0 ;
9158 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9159 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9160 bool result;
9161 PyObject * obj0 = 0 ;
9162 PyObject * obj1 = 0 ;
9163 PyObject * obj2 = 0 ;
9164 char *kwnames[] = {
9165 (char *) "self",(char *) "language",(char *) "flags", NULL
9166 };
9167
9168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9171 if (obj1) {
9172 arg2 = (int) SWIG_AsInt(obj1);
9173 if (PyErr_Occurred()) SWIG_fail;
9174 }
9175 if (obj2) {
9176 arg3 = (int) SWIG_AsInt(obj2);
9177 if (PyErr_Occurred()) SWIG_fail;
9178 }
9179 {
9180 PyThreadState* __tstate = wxPyBeginAllowThreads();
9181 result = (bool)(arg1)->Init(arg2,arg3);
9182
9183 wxPyEndAllowThreads(__tstate);
9184 if (PyErr_Occurred()) SWIG_fail;
9185 }
9186 {
9187 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9188 }
9189 return resultobj;
9190 fail:
9191 return NULL;
9192 }
9193
9194
9195 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9196 PyObject *resultobj;
9197 int result;
9198 char *kwnames[] = {
9199 NULL
9200 };
9201
9202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9203 {
9204 PyThreadState* __tstate = wxPyBeginAllowThreads();
9205 result = (int)wxLocale::GetSystemLanguage();
9206
9207 wxPyEndAllowThreads(__tstate);
9208 if (PyErr_Occurred()) SWIG_fail;
9209 }
9210 resultobj = SWIG_FromInt((int)result);
9211 return resultobj;
9212 fail:
9213 return NULL;
9214 }
9215
9216
9217 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9218 PyObject *resultobj;
9219 int result;
9220 char *kwnames[] = {
9221 NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9225 {
9226 PyThreadState* __tstate = wxPyBeginAllowThreads();
9227 result = (int)wxLocale::GetSystemEncoding();
9228
9229 wxPyEndAllowThreads(__tstate);
9230 if (PyErr_Occurred()) SWIG_fail;
9231 }
9232 resultobj = SWIG_FromInt((int)result);
9233 return resultobj;
9234 fail:
9235 return NULL;
9236 }
9237
9238
9239 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9240 PyObject *resultobj;
9241 wxString result;
9242 char *kwnames[] = {
9243 NULL
9244 };
9245
9246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = wxLocale::GetSystemEncodingName();
9250
9251 wxPyEndAllowThreads(__tstate);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 {
9255 #if wxUSE_UNICODE
9256 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9257 #else
9258 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9259 #endif
9260 }
9261 return resultobj;
9262 fail:
9263 return NULL;
9264 }
9265
9266
9267 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9268 PyObject *resultobj;
9269 wxLocale *arg1 = (wxLocale *) 0 ;
9270 bool result;
9271 PyObject * obj0 = 0 ;
9272 char *kwnames[] = {
9273 (char *) "self", NULL
9274 };
9275
9276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (bool)((wxLocale const *)arg1)->IsOk();
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 {
9287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9288 }
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj;
9297 wxLocale *arg1 = (wxLocale *) 0 ;
9298 wxString result;
9299 PyObject * obj0 = 0 ;
9300 char *kwnames[] = {
9301 (char *) "self", NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9307 {
9308 PyThreadState* __tstate = wxPyBeginAllowThreads();
9309 result = ((wxLocale const *)arg1)->GetLocale();
9310
9311 wxPyEndAllowThreads(__tstate);
9312 if (PyErr_Occurred()) SWIG_fail;
9313 }
9314 {
9315 #if wxUSE_UNICODE
9316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9317 #else
9318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9319 #endif
9320 }
9321 return resultobj;
9322 fail:
9323 return NULL;
9324 }
9325
9326
9327 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj;
9329 wxLocale *arg1 = (wxLocale *) 0 ;
9330 int result;
9331 PyObject * obj0 = 0 ;
9332 char *kwnames[] = {
9333 (char *) "self", NULL
9334 };
9335
9336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9339 {
9340 PyThreadState* __tstate = wxPyBeginAllowThreads();
9341 result = (int)((wxLocale const *)arg1)->GetLanguage();
9342
9343 wxPyEndAllowThreads(__tstate);
9344 if (PyErr_Occurred()) SWIG_fail;
9345 }
9346 resultobj = SWIG_FromInt((int)result);
9347 return resultobj;
9348 fail:
9349 return NULL;
9350 }
9351
9352
9353 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9354 PyObject *resultobj;
9355 wxLocale *arg1 = (wxLocale *) 0 ;
9356 wxString result;
9357 PyObject * obj0 = 0 ;
9358 char *kwnames[] = {
9359 (char *) "self", NULL
9360 };
9361
9362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9365 {
9366 PyThreadState* __tstate = wxPyBeginAllowThreads();
9367 result = ((wxLocale const *)arg1)->GetSysName();
9368
9369 wxPyEndAllowThreads(__tstate);
9370 if (PyErr_Occurred()) SWIG_fail;
9371 }
9372 {
9373 #if wxUSE_UNICODE
9374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9375 #else
9376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9377 #endif
9378 }
9379 return resultobj;
9380 fail:
9381 return NULL;
9382 }
9383
9384
9385 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9386 PyObject *resultobj;
9387 wxLocale *arg1 = (wxLocale *) 0 ;
9388 wxString result;
9389 PyObject * obj0 = 0 ;
9390 char *kwnames[] = {
9391 (char *) "self", NULL
9392 };
9393
9394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = ((wxLocale const *)arg1)->GetCanonicalName();
9400
9401 wxPyEndAllowThreads(__tstate);
9402 if (PyErr_Occurred()) SWIG_fail;
9403 }
9404 {
9405 #if wxUSE_UNICODE
9406 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9407 #else
9408 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9409 #endif
9410 }
9411 return resultobj;
9412 fail:
9413 return NULL;
9414 }
9415
9416
9417 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9418 PyObject *resultobj;
9419 wxString *arg1 = 0 ;
9420 bool temp1 = False ;
9421 PyObject * obj0 = 0 ;
9422 char *kwnames[] = {
9423 (char *) "prefix", NULL
9424 };
9425
9426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9427 {
9428 arg1 = wxString_in_helper(obj0);
9429 if (arg1 == NULL) SWIG_fail;
9430 temp1 = True;
9431 }
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9435
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 Py_INCREF(Py_None); resultobj = Py_None;
9440 {
9441 if (temp1)
9442 delete arg1;
9443 }
9444 return resultobj;
9445 fail:
9446 {
9447 if (temp1)
9448 delete arg1;
9449 }
9450 return NULL;
9451 }
9452
9453
9454 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9455 PyObject *resultobj;
9456 wxLocale *arg1 = (wxLocale *) 0 ;
9457 wxString *arg2 = 0 ;
9458 bool result;
9459 bool temp2 = False ;
9460 PyObject * obj0 = 0 ;
9461 PyObject * obj1 = 0 ;
9462 char *kwnames[] = {
9463 (char *) "self",(char *) "szDomain", NULL
9464 };
9465
9466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9469 {
9470 arg2 = wxString_in_helper(obj1);
9471 if (arg2 == NULL) SWIG_fail;
9472 temp2 = True;
9473 }
9474 {
9475 PyThreadState* __tstate = wxPyBeginAllowThreads();
9476 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9477
9478 wxPyEndAllowThreads(__tstate);
9479 if (PyErr_Occurred()) SWIG_fail;
9480 }
9481 {
9482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9483 }
9484 {
9485 if (temp2)
9486 delete arg2;
9487 }
9488 return resultobj;
9489 fail:
9490 {
9491 if (temp2)
9492 delete arg2;
9493 }
9494 return NULL;
9495 }
9496
9497
9498 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9499 PyObject *resultobj;
9500 wxLocale *arg1 = (wxLocale *) 0 ;
9501 wxString *arg2 = 0 ;
9502 bool result;
9503 bool temp2 = False ;
9504 PyObject * obj0 = 0 ;
9505 PyObject * obj1 = 0 ;
9506 char *kwnames[] = {
9507 (char *) "self",(char *) "szDomain", NULL
9508 };
9509
9510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9513 {
9514 arg2 = wxString_in_helper(obj1);
9515 if (arg2 == NULL) SWIG_fail;
9516 temp2 = True;
9517 }
9518 {
9519 PyThreadState* __tstate = wxPyBeginAllowThreads();
9520 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9521
9522 wxPyEndAllowThreads(__tstate);
9523 if (PyErr_Occurred()) SWIG_fail;
9524 }
9525 {
9526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9527 }
9528 {
9529 if (temp2)
9530 delete arg2;
9531 }
9532 return resultobj;
9533 fail:
9534 {
9535 if (temp2)
9536 delete arg2;
9537 }
9538 return NULL;
9539 }
9540
9541
9542 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9543 PyObject *resultobj;
9544 int arg1 ;
9545 wxLanguageInfo *result;
9546 PyObject * obj0 = 0 ;
9547 char *kwnames[] = {
9548 (char *) "lang", NULL
9549 };
9550
9551 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9552 arg1 = (int) SWIG_AsInt(obj0);
9553 if (PyErr_Occurred()) SWIG_fail;
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9562 return resultobj;
9563 fail:
9564 return NULL;
9565 }
9566
9567
9568 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9569 PyObject *resultobj;
9570 int arg1 ;
9571 wxString result;
9572 PyObject * obj0 = 0 ;
9573 char *kwnames[] = {
9574 (char *) "lang", NULL
9575 };
9576
9577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9578 arg1 = (int) SWIG_AsInt(obj0);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 {
9581 PyThreadState* __tstate = wxPyBeginAllowThreads();
9582 result = wxLocale::GetLanguageName(arg1);
9583
9584 wxPyEndAllowThreads(__tstate);
9585 if (PyErr_Occurred()) SWIG_fail;
9586 }
9587 {
9588 #if wxUSE_UNICODE
9589 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9590 #else
9591 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9592 #endif
9593 }
9594 return resultobj;
9595 fail:
9596 return NULL;
9597 }
9598
9599
9600 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj;
9602 wxString *arg1 = 0 ;
9603 wxLanguageInfo *result;
9604 bool temp1 = False ;
9605 PyObject * obj0 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "locale", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9611 {
9612 arg1 = wxString_in_helper(obj0);
9613 if (arg1 == NULL) SWIG_fail;
9614 temp1 = True;
9615 }
9616 {
9617 PyThreadState* __tstate = wxPyBeginAllowThreads();
9618 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9619
9620 wxPyEndAllowThreads(__tstate);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9624 {
9625 if (temp1)
9626 delete arg1;
9627 }
9628 return resultobj;
9629 fail:
9630 {
9631 if (temp1)
9632 delete arg1;
9633 }
9634 return NULL;
9635 }
9636
9637
9638 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9639 PyObject *resultobj;
9640 wxLanguageInfo *arg1 = 0 ;
9641 PyObject * obj0 = 0 ;
9642 char *kwnames[] = {
9643 (char *) "info", NULL
9644 };
9645
9646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9648 SWIG_POINTER_EXCEPTION | 0)) == -1)
9649 SWIG_fail;
9650 if (arg1 == NULL) {
9651 PyErr_SetString(PyExc_TypeError,"null reference");
9652 SWIG_fail;
9653 }
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 Py_INCREF(Py_None); resultobj = Py_None;
9662 return resultobj;
9663 fail:
9664 return NULL;
9665 }
9666
9667
9668 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 wxLocale *arg1 = (wxLocale *) 0 ;
9671 wxString *arg2 = 0 ;
9672 wxString const &arg3_defvalue = wxPyEmptyString ;
9673 wxString *arg3 = (wxString *) &arg3_defvalue ;
9674 wxString result;
9675 bool temp2 = False ;
9676 bool temp3 = False ;
9677 PyObject * obj0 = 0 ;
9678 PyObject * obj1 = 0 ;
9679 PyObject * obj2 = 0 ;
9680 char *kwnames[] = {
9681 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9682 };
9683
9684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9687 {
9688 arg2 = wxString_in_helper(obj1);
9689 if (arg2 == NULL) SWIG_fail;
9690 temp2 = True;
9691 }
9692 if (obj2) {
9693 {
9694 arg3 = wxString_in_helper(obj2);
9695 if (arg3 == NULL) SWIG_fail;
9696 temp3 = True;
9697 }
9698 }
9699 {
9700 PyThreadState* __tstate = wxPyBeginAllowThreads();
9701 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9702
9703 wxPyEndAllowThreads(__tstate);
9704 if (PyErr_Occurred()) SWIG_fail;
9705 }
9706 {
9707 #if wxUSE_UNICODE
9708 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9709 #else
9710 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9711 #endif
9712 }
9713 {
9714 if (temp2)
9715 delete arg2;
9716 }
9717 {
9718 if (temp3)
9719 delete arg3;
9720 }
9721 return resultobj;
9722 fail:
9723 {
9724 if (temp2)
9725 delete arg2;
9726 }
9727 {
9728 if (temp3)
9729 delete arg3;
9730 }
9731 return NULL;
9732 }
9733
9734
9735 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9736 PyObject *resultobj;
9737 wxLocale *arg1 = (wxLocale *) 0 ;
9738 wxString *result;
9739 PyObject * obj0 = 0 ;
9740 char *kwnames[] = {
9741 (char *) "self", NULL
9742 };
9743
9744 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 {
9750 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9751 result = (wxString *) &_result_ref;
9752 }
9753
9754 wxPyEndAllowThreads(__tstate);
9755 if (PyErr_Occurred()) SWIG_fail;
9756 }
9757 {
9758 #if wxUSE_UNICODE
9759 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9760 #else
9761 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9762 #endif
9763 }
9764 return resultobj;
9765 fail:
9766 return NULL;
9767 }
9768
9769
9770 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9771 PyObject *obj;
9772 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9773 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9774 Py_INCREF(obj);
9775 return Py_BuildValue((char *)"");
9776 }
9777 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9778 PyObject *resultobj;
9779 wxLocale *result;
9780 char *kwnames[] = {
9781 NULL
9782 };
9783
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9785 {
9786 PyThreadState* __tstate = wxPyBeginAllowThreads();
9787 result = (wxLocale *)wxGetLocale();
9788
9789 wxPyEndAllowThreads(__tstate);
9790 if (PyErr_Occurred()) SWIG_fail;
9791 }
9792 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9793 return resultobj;
9794 fail:
9795 return NULL;
9796 }
9797
9798
9799 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9800 PyObject *resultobj;
9801 wxString *arg1 = 0 ;
9802 wxString result;
9803 bool temp1 = False ;
9804 PyObject * obj0 = 0 ;
9805
9806 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9807 {
9808 arg1 = wxString_in_helper(obj0);
9809 if (arg1 == NULL) SWIG_fail;
9810 temp1 = True;
9811 }
9812 {
9813 PyThreadState* __tstate = wxPyBeginAllowThreads();
9814 result = wxGetTranslation((wxString const &)*arg1);
9815
9816 wxPyEndAllowThreads(__tstate);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 {
9820 #if wxUSE_UNICODE
9821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9822 #else
9823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9824 #endif
9825 }
9826 {
9827 if (temp1)
9828 delete arg1;
9829 }
9830 return resultobj;
9831 fail:
9832 {
9833 if (temp1)
9834 delete arg1;
9835 }
9836 return NULL;
9837 }
9838
9839
9840 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9841 PyObject *resultobj;
9842 wxString *arg1 = 0 ;
9843 wxString *arg2 = 0 ;
9844 size_t arg3 ;
9845 wxString result;
9846 bool temp1 = False ;
9847 bool temp2 = False ;
9848 PyObject * obj0 = 0 ;
9849 PyObject * obj1 = 0 ;
9850 PyObject * obj2 = 0 ;
9851
9852 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9853 {
9854 arg1 = wxString_in_helper(obj0);
9855 if (arg1 == NULL) SWIG_fail;
9856 temp1 = True;
9857 }
9858 {
9859 arg2 = wxString_in_helper(obj1);
9860 if (arg2 == NULL) SWIG_fail;
9861 temp2 = True;
9862 }
9863 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9864 if (PyErr_Occurred()) SWIG_fail;
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 {
9873 #if wxUSE_UNICODE
9874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9875 #else
9876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9877 #endif
9878 }
9879 {
9880 if (temp1)
9881 delete arg1;
9882 }
9883 {
9884 if (temp2)
9885 delete arg2;
9886 }
9887 return resultobj;
9888 fail:
9889 {
9890 if (temp1)
9891 delete arg1;
9892 }
9893 {
9894 if (temp2)
9895 delete arg2;
9896 }
9897 return NULL;
9898 }
9899
9900
9901 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9902 int argc;
9903 PyObject *argv[4];
9904 int ii;
9905
9906 argc = PyObject_Length(args);
9907 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9908 argv[ii] = PyTuple_GetItem(args,ii);
9909 }
9910 if (argc == 1) {
9911 int _v;
9912 {
9913 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9914 }
9915 if (_v) {
9916 return _wrap_GetTranslation__SWIG_0(self,args);
9917 }
9918 }
9919 if (argc == 3) {
9920 int _v;
9921 {
9922 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9923 }
9924 if (_v) {
9925 {
9926 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
9927 }
9928 if (_v) {
9929 _v = SWIG_CheckUnsignedLong(argv[2]);
9930 if (_v) {
9931 return _wrap_GetTranslation__SWIG_1(self,args);
9932 }
9933 }
9934 }
9935 }
9936
9937 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
9938 return NULL;
9939 }
9940
9941
9942 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9943 PyObject *resultobj;
9944 wxEncodingConverter *result;
9945 char *kwnames[] = {
9946 NULL
9947 };
9948
9949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
9950 {
9951 PyThreadState* __tstate = wxPyBeginAllowThreads();
9952 result = (wxEncodingConverter *)new wxEncodingConverter();
9953
9954 wxPyEndAllowThreads(__tstate);
9955 if (PyErr_Occurred()) SWIG_fail;
9956 }
9957 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
9965 PyObject *resultobj;
9966 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9967 PyObject * obj0 = 0 ;
9968 char *kwnames[] = {
9969 (char *) "self", NULL
9970 };
9971
9972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
9973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
9974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9975 {
9976 PyThreadState* __tstate = wxPyBeginAllowThreads();
9977 delete arg1;
9978
9979 wxPyEndAllowThreads(__tstate);
9980 if (PyErr_Occurred()) SWIG_fail;
9981 }
9982 Py_INCREF(Py_None); resultobj = Py_None;
9983 return resultobj;
9984 fail:
9985 return NULL;
9986 }
9987
9988
9989 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
9990 PyObject *resultobj;
9991 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
9992 int arg2 ;
9993 int arg3 ;
9994 int arg4 = (int) wxCONVERT_STRICT ;
9995 bool result;
9996 PyObject * obj0 = 0 ;
9997 PyObject * obj1 = 0 ;
9998 PyObject * obj2 = 0 ;
9999 PyObject * obj3 = 0 ;
10000 char *kwnames[] = {
10001 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10002 };
10003
10004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10007 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10010 if (PyErr_Occurred()) SWIG_fail;
10011 if (obj3) {
10012 arg4 = (int) SWIG_AsInt(obj3);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10018
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 {
10023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10024 }
10025 return resultobj;
10026 fail:
10027 return NULL;
10028 }
10029
10030
10031 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj;
10033 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10034 wxString *arg2 = 0 ;
10035 wxString result;
10036 bool temp2 = False ;
10037 PyObject * obj0 = 0 ;
10038 PyObject * obj1 = 0 ;
10039 char *kwnames[] = {
10040 (char *) "self",(char *) "input", NULL
10041 };
10042
10043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10046 {
10047 arg2 = wxString_in_helper(obj1);
10048 if (arg2 == NULL) SWIG_fail;
10049 temp2 = True;
10050 }
10051 {
10052 PyThreadState* __tstate = wxPyBeginAllowThreads();
10053 result = (arg1)->Convert((wxString const &)*arg2);
10054
10055 wxPyEndAllowThreads(__tstate);
10056 if (PyErr_Occurred()) SWIG_fail;
10057 }
10058 {
10059 #if wxUSE_UNICODE
10060 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10061 #else
10062 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10063 #endif
10064 }
10065 {
10066 if (temp2)
10067 delete arg2;
10068 }
10069 return resultobj;
10070 fail:
10071 {
10072 if (temp2)
10073 delete arg2;
10074 }
10075 return NULL;
10076 }
10077
10078
10079 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10080 PyObject *resultobj;
10081 int arg1 ;
10082 int arg2 = (int) wxPLATFORM_CURRENT ;
10083 wxFontEncodingArray result;
10084 PyObject * obj0 = 0 ;
10085 PyObject * obj1 = 0 ;
10086 char *kwnames[] = {
10087 (char *) "enc",(char *) "platform", NULL
10088 };
10089
10090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10091 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10092 if (PyErr_Occurred()) SWIG_fail;
10093 if (obj1) {
10094 arg2 = (int) SWIG_AsInt(obj1);
10095 if (PyErr_Occurred()) SWIG_fail;
10096 }
10097 {
10098 PyThreadState* __tstate = wxPyBeginAllowThreads();
10099 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10100
10101 wxPyEndAllowThreads(__tstate);
10102 if (PyErr_Occurred()) SWIG_fail;
10103 }
10104 {
10105 resultobj = PyList_New(0);
10106 for (size_t i=0; i < (&result)->GetCount(); i++) {
10107 PyObject* number = PyInt_FromLong((&result)->Item(i));
10108 PyList_Append(resultobj, number);
10109 Py_DECREF(number);
10110 }
10111 }
10112 return resultobj;
10113 fail:
10114 return NULL;
10115 }
10116
10117
10118 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10119 PyObject *resultobj;
10120 int arg1 ;
10121 wxFontEncodingArray result;
10122 PyObject * obj0 = 0 ;
10123 char *kwnames[] = {
10124 (char *) "enc", NULL
10125 };
10126
10127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10128 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10129 if (PyErr_Occurred()) SWIG_fail;
10130 {
10131 PyThreadState* __tstate = wxPyBeginAllowThreads();
10132 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10133
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 {
10138 resultobj = PyList_New(0);
10139 for (size_t i=0; i < (&result)->GetCount(); i++) {
10140 PyObject* number = PyInt_FromLong((&result)->Item(i));
10141 PyList_Append(resultobj, number);
10142 Py_DECREF(number);
10143 }
10144 }
10145 return resultobj;
10146 fail:
10147 return NULL;
10148 }
10149
10150
10151 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10152 PyObject *resultobj;
10153 int arg1 ;
10154 int arg2 ;
10155 bool result;
10156 PyObject * obj0 = 0 ;
10157 PyObject * obj1 = 0 ;
10158 char *kwnames[] = {
10159 (char *) "encIn",(char *) "encOut", NULL
10160 };
10161
10162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10163 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10166 if (PyErr_Occurred()) SWIG_fail;
10167 {
10168 PyThreadState* __tstate = wxPyBeginAllowThreads();
10169 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10170
10171 wxPyEndAllowThreads(__tstate);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 }
10174 {
10175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10176 }
10177 return resultobj;
10178 fail:
10179 return NULL;
10180 }
10181
10182
10183 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10184 PyObject *obj;
10185 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10186 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10187 Py_INCREF(obj);
10188 return Py_BuildValue((char *)"");
10189 }
10190 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10191 PyObject *resultobj;
10192 wxDC *arg1 = (wxDC *) 0 ;
10193 PyObject * obj0 = 0 ;
10194 char *kwnames[] = {
10195 (char *) "self", NULL
10196 };
10197
10198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10201 {
10202 PyThreadState* __tstate = wxPyBeginAllowThreads();
10203 delete arg1;
10204
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 Py_INCREF(Py_None); resultobj = Py_None;
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj;
10217 wxDC *arg1 = (wxDC *) 0 ;
10218 PyObject * obj0 = 0 ;
10219 char *kwnames[] = {
10220 (char *) "self", NULL
10221 };
10222
10223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10226 {
10227 PyThreadState* __tstate = wxPyBeginAllowThreads();
10228 (arg1)->BeginDrawing();
10229
10230 wxPyEndAllowThreads(__tstate);
10231 if (PyErr_Occurred()) SWIG_fail;
10232 }
10233 Py_INCREF(Py_None); resultobj = Py_None;
10234 return resultobj;
10235 fail:
10236 return NULL;
10237 }
10238
10239
10240 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10241 PyObject *resultobj;
10242 wxDC *arg1 = (wxDC *) 0 ;
10243 PyObject * obj0 = 0 ;
10244 char *kwnames[] = {
10245 (char *) "self", NULL
10246 };
10247
10248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10251 {
10252 PyThreadState* __tstate = wxPyBeginAllowThreads();
10253 (arg1)->EndDrawing();
10254
10255 wxPyEndAllowThreads(__tstate);
10256 if (PyErr_Occurred()) SWIG_fail;
10257 }
10258 Py_INCREF(Py_None); resultobj = Py_None;
10259 return resultobj;
10260 fail:
10261 return NULL;
10262 }
10263
10264
10265 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10266 PyObject *resultobj;
10267 wxDC *arg1 = (wxDC *) 0 ;
10268 int arg2 ;
10269 int arg3 ;
10270 wxColour *arg4 = 0 ;
10271 int arg5 = (int) wxFLOOD_SURFACE ;
10272 bool result;
10273 wxColour temp4 ;
10274 PyObject * obj0 = 0 ;
10275 PyObject * obj1 = 0 ;
10276 PyObject * obj2 = 0 ;
10277 PyObject * obj3 = 0 ;
10278 PyObject * obj4 = 0 ;
10279 char *kwnames[] = {
10280 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10281 };
10282
10283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10286 arg2 = (int) SWIG_AsInt(obj1);
10287 if (PyErr_Occurred()) SWIG_fail;
10288 arg3 = (int) SWIG_AsInt(obj2);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 {
10291 arg4 = &temp4;
10292 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10293 }
10294 if (obj4) {
10295 arg5 = (int) SWIG_AsInt(obj4);
10296 if (PyErr_Occurred()) SWIG_fail;
10297 }
10298 {
10299 PyThreadState* __tstate = wxPyBeginAllowThreads();
10300 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10301
10302 wxPyEndAllowThreads(__tstate);
10303 if (PyErr_Occurred()) SWIG_fail;
10304 }
10305 {
10306 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10307 }
10308 return resultobj;
10309 fail:
10310 return NULL;
10311 }
10312
10313
10314 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10315 PyObject *resultobj;
10316 wxDC *arg1 = (wxDC *) 0 ;
10317 wxPoint *arg2 = 0 ;
10318 wxColour *arg3 = 0 ;
10319 int arg4 = (int) wxFLOOD_SURFACE ;
10320 bool result;
10321 wxPoint temp2 ;
10322 wxColour temp3 ;
10323 PyObject * obj0 = 0 ;
10324 PyObject * obj1 = 0 ;
10325 PyObject * obj2 = 0 ;
10326 PyObject * obj3 = 0 ;
10327 char *kwnames[] = {
10328 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10329 };
10330
10331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10334 {
10335 arg2 = &temp2;
10336 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10337 }
10338 {
10339 arg3 = &temp3;
10340 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10341 }
10342 if (obj3) {
10343 arg4 = (int) SWIG_AsInt(obj3);
10344 if (PyErr_Occurred()) SWIG_fail;
10345 }
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10349
10350 wxPyEndAllowThreads(__tstate);
10351 if (PyErr_Occurred()) SWIG_fail;
10352 }
10353 {
10354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10355 }
10356 return resultobj;
10357 fail:
10358 return NULL;
10359 }
10360
10361
10362 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10363 PyObject *resultobj;
10364 wxDC *arg1 = (wxDC *) 0 ;
10365 int arg2 ;
10366 int arg3 ;
10367 wxColour result;
10368 PyObject * obj0 = 0 ;
10369 PyObject * obj1 = 0 ;
10370 PyObject * obj2 = 0 ;
10371 char *kwnames[] = {
10372 (char *) "self",(char *) "x",(char *) "y", NULL
10373 };
10374
10375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10378 arg2 = (int) SWIG_AsInt(obj1);
10379 if (PyErr_Occurred()) SWIG_fail;
10380 arg3 = (int) SWIG_AsInt(obj2);
10381 if (PyErr_Occurred()) SWIG_fail;
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 result = wxDC_GetPixel(arg1,arg2,arg3);
10385
10386 wxPyEndAllowThreads(__tstate);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 }
10389 {
10390 wxColour * resultptr;
10391 resultptr = new wxColour((wxColour &) result);
10392 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10393 }
10394 return resultobj;
10395 fail:
10396 return NULL;
10397 }
10398
10399
10400 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10401 PyObject *resultobj;
10402 wxDC *arg1 = (wxDC *) 0 ;
10403 wxPoint *arg2 = 0 ;
10404 wxColour result;
10405 wxPoint temp2 ;
10406 PyObject * obj0 = 0 ;
10407 PyObject * obj1 = 0 ;
10408 char *kwnames[] = {
10409 (char *) "self",(char *) "pt", NULL
10410 };
10411
10412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10415 {
10416 arg2 = &temp2;
10417 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10418 }
10419 {
10420 PyThreadState* __tstate = wxPyBeginAllowThreads();
10421 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10422
10423 wxPyEndAllowThreads(__tstate);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 {
10427 wxColour * resultptr;
10428 resultptr = new wxColour((wxColour &) result);
10429 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10430 }
10431 return resultobj;
10432 fail:
10433 return NULL;
10434 }
10435
10436
10437 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10438 PyObject *resultobj;
10439 wxDC *arg1 = (wxDC *) 0 ;
10440 int arg2 ;
10441 int arg3 ;
10442 int arg4 ;
10443 int arg5 ;
10444 PyObject * obj0 = 0 ;
10445 PyObject * obj1 = 0 ;
10446 PyObject * obj2 = 0 ;
10447 PyObject * obj3 = 0 ;
10448 PyObject * obj4 = 0 ;
10449 char *kwnames[] = {
10450 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10451 };
10452
10453 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10454 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10456 arg2 = (int) SWIG_AsInt(obj1);
10457 if (PyErr_Occurred()) SWIG_fail;
10458 arg3 = (int) SWIG_AsInt(obj2);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 arg4 = (int) SWIG_AsInt(obj3);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 arg5 = (int) SWIG_AsInt(obj4);
10463 if (PyErr_Occurred()) SWIG_fail;
10464 {
10465 PyThreadState* __tstate = wxPyBeginAllowThreads();
10466 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10467
10468 wxPyEndAllowThreads(__tstate);
10469 if (PyErr_Occurred()) SWIG_fail;
10470 }
10471 Py_INCREF(Py_None); resultobj = Py_None;
10472 return resultobj;
10473 fail:
10474 return NULL;
10475 }
10476
10477
10478 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10479 PyObject *resultobj;
10480 wxDC *arg1 = (wxDC *) 0 ;
10481 wxPoint *arg2 = 0 ;
10482 wxPoint *arg3 = 0 ;
10483 wxPoint temp2 ;
10484 wxPoint temp3 ;
10485 PyObject * obj0 = 0 ;
10486 PyObject * obj1 = 0 ;
10487 PyObject * obj2 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10495 {
10496 arg2 = &temp2;
10497 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10498 }
10499 {
10500 arg3 = &temp3;
10501 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10502 }
10503 {
10504 PyThreadState* __tstate = wxPyBeginAllowThreads();
10505 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10506
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 Py_INCREF(Py_None); resultobj = Py_None;
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj;
10519 wxDC *arg1 = (wxDC *) 0 ;
10520 int arg2 ;
10521 int arg3 ;
10522 PyObject * obj0 = 0 ;
10523 PyObject * obj1 = 0 ;
10524 PyObject * obj2 = 0 ;
10525 char *kwnames[] = {
10526 (char *) "self",(char *) "x",(char *) "y", NULL
10527 };
10528
10529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10532 arg2 = (int) SWIG_AsInt(obj1);
10533 if (PyErr_Occurred()) SWIG_fail;
10534 arg3 = (int) SWIG_AsInt(obj2);
10535 if (PyErr_Occurred()) SWIG_fail;
10536 {
10537 PyThreadState* __tstate = wxPyBeginAllowThreads();
10538 (arg1)->CrossHair(arg2,arg3);
10539
10540 wxPyEndAllowThreads(__tstate);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 }
10543 Py_INCREF(Py_None); resultobj = Py_None;
10544 return resultobj;
10545 fail:
10546 return NULL;
10547 }
10548
10549
10550 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10551 PyObject *resultobj;
10552 wxDC *arg1 = (wxDC *) 0 ;
10553 wxPoint *arg2 = 0 ;
10554 wxPoint temp2 ;
10555 PyObject * obj0 = 0 ;
10556 PyObject * obj1 = 0 ;
10557 char *kwnames[] = {
10558 (char *) "self",(char *) "pt", NULL
10559 };
10560
10561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10564 {
10565 arg2 = &temp2;
10566 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10567 }
10568 {
10569 PyThreadState* __tstate = wxPyBeginAllowThreads();
10570 (arg1)->CrossHair((wxPoint const &)*arg2);
10571
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 Py_INCREF(Py_None); resultobj = Py_None;
10576 return resultobj;
10577 fail:
10578 return NULL;
10579 }
10580
10581
10582 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10583 PyObject *resultobj;
10584 wxDC *arg1 = (wxDC *) 0 ;
10585 int arg2 ;
10586 int arg3 ;
10587 int arg4 ;
10588 int arg5 ;
10589 int arg6 ;
10590 int arg7 ;
10591 PyObject * obj0 = 0 ;
10592 PyObject * obj1 = 0 ;
10593 PyObject * obj2 = 0 ;
10594 PyObject * obj3 = 0 ;
10595 PyObject * obj4 = 0 ;
10596 PyObject * obj5 = 0 ;
10597 PyObject * obj6 = 0 ;
10598 char *kwnames[] = {
10599 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10600 };
10601
10602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10604 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10605 arg2 = (int) SWIG_AsInt(obj1);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 arg3 = (int) SWIG_AsInt(obj2);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 arg4 = (int) SWIG_AsInt(obj3);
10610 if (PyErr_Occurred()) SWIG_fail;
10611 arg5 = (int) SWIG_AsInt(obj4);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 arg6 = (int) SWIG_AsInt(obj5);
10614 if (PyErr_Occurred()) SWIG_fail;
10615 arg7 = (int) SWIG_AsInt(obj6);
10616 if (PyErr_Occurred()) SWIG_fail;
10617 {
10618 PyThreadState* __tstate = wxPyBeginAllowThreads();
10619 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10620
10621 wxPyEndAllowThreads(__tstate);
10622 if (PyErr_Occurred()) SWIG_fail;
10623 }
10624 Py_INCREF(Py_None); resultobj = Py_None;
10625 return resultobj;
10626 fail:
10627 return NULL;
10628 }
10629
10630
10631 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10632 PyObject *resultobj;
10633 wxDC *arg1 = (wxDC *) 0 ;
10634 wxPoint *arg2 = 0 ;
10635 wxPoint *arg3 = 0 ;
10636 wxPoint *arg4 = 0 ;
10637 wxPoint temp2 ;
10638 wxPoint temp3 ;
10639 wxPoint temp4 ;
10640 PyObject * obj0 = 0 ;
10641 PyObject * obj1 = 0 ;
10642 PyObject * obj2 = 0 ;
10643 PyObject * obj3 = 0 ;
10644 char *kwnames[] = {
10645 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10646 };
10647
10648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10651 {
10652 arg2 = &temp2;
10653 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10654 }
10655 {
10656 arg3 = &temp3;
10657 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10658 }
10659 {
10660 arg4 = &temp4;
10661 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10662 }
10663 {
10664 PyThreadState* __tstate = wxPyBeginAllowThreads();
10665 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10666
10667 wxPyEndAllowThreads(__tstate);
10668 if (PyErr_Occurred()) SWIG_fail;
10669 }
10670 Py_INCREF(Py_None); resultobj = Py_None;
10671 return resultobj;
10672 fail:
10673 return NULL;
10674 }
10675
10676
10677 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10678 PyObject *resultobj;
10679 wxDC *arg1 = (wxDC *) 0 ;
10680 int arg2 ;
10681 int arg3 ;
10682 int arg4 ;
10683 int arg5 ;
10684 PyObject * obj0 = 0 ;
10685 PyObject * obj1 = 0 ;
10686 PyObject * obj2 = 0 ;
10687 PyObject * obj3 = 0 ;
10688 PyObject * obj4 = 0 ;
10689 char *kwnames[] = {
10690 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10691 };
10692
10693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10695 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10696 arg2 = (int) SWIG_AsInt(obj1);
10697 if (PyErr_Occurred()) SWIG_fail;
10698 arg3 = (int) SWIG_AsInt(obj2);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 arg4 = (int) SWIG_AsInt(obj3);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 arg5 = (int) SWIG_AsInt(obj4);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 {
10705 PyThreadState* __tstate = wxPyBeginAllowThreads();
10706 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10707
10708 wxPyEndAllowThreads(__tstate);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 }
10711 Py_INCREF(Py_None); resultobj = Py_None;
10712 return resultobj;
10713 fail:
10714 return NULL;
10715 }
10716
10717
10718 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10719 PyObject *resultobj;
10720 wxDC *arg1 = (wxDC *) 0 ;
10721 wxRect *arg2 = 0 ;
10722 wxRect temp2 ;
10723 PyObject * obj0 = 0 ;
10724 PyObject * obj1 = 0 ;
10725 char *kwnames[] = {
10726 (char *) "self",(char *) "rect", NULL
10727 };
10728
10729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10730 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10731 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10732 {
10733 arg2 = &temp2;
10734 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10735 }
10736 {
10737 PyThreadState* __tstate = wxPyBeginAllowThreads();
10738 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10739
10740 wxPyEndAllowThreads(__tstate);
10741 if (PyErr_Occurred()) SWIG_fail;
10742 }
10743 Py_INCREF(Py_None); resultobj = Py_None;
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj;
10752 wxDC *arg1 = (wxDC *) 0 ;
10753 int arg2 ;
10754 int arg3 ;
10755 int arg4 ;
10756 int arg5 ;
10757 double arg6 ;
10758 double arg7 ;
10759 PyObject * obj0 = 0 ;
10760 PyObject * obj1 = 0 ;
10761 PyObject * obj2 = 0 ;
10762 PyObject * obj3 = 0 ;
10763 PyObject * obj4 = 0 ;
10764 PyObject * obj5 = 0 ;
10765 PyObject * obj6 = 0 ;
10766 char *kwnames[] = {
10767 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10768 };
10769
10770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10773 arg2 = (int) SWIG_AsInt(obj1);
10774 if (PyErr_Occurred()) SWIG_fail;
10775 arg3 = (int) SWIG_AsInt(obj2);
10776 if (PyErr_Occurred()) SWIG_fail;
10777 arg4 = (int) SWIG_AsInt(obj3);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 arg5 = (int) SWIG_AsInt(obj4);
10780 if (PyErr_Occurred()) SWIG_fail;
10781 arg6 = (double) SWIG_AsDouble(obj5);
10782 if (PyErr_Occurred()) SWIG_fail;
10783 arg7 = (double) SWIG_AsDouble(obj6);
10784 if (PyErr_Occurred()) SWIG_fail;
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 Py_INCREF(Py_None); resultobj = Py_None;
10793 return resultobj;
10794 fail:
10795 return NULL;
10796 }
10797
10798
10799 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10800 PyObject *resultobj;
10801 wxDC *arg1 = (wxDC *) 0 ;
10802 wxPoint *arg2 = 0 ;
10803 wxSize *arg3 = 0 ;
10804 double arg4 ;
10805 double arg5 ;
10806 wxPoint temp2 ;
10807 wxSize temp3 ;
10808 PyObject * obj0 = 0 ;
10809 PyObject * obj1 = 0 ;
10810 PyObject * obj2 = 0 ;
10811 PyObject * obj3 = 0 ;
10812 PyObject * obj4 = 0 ;
10813 char *kwnames[] = {
10814 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10815 };
10816
10817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10820 {
10821 arg2 = &temp2;
10822 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10823 }
10824 {
10825 arg3 = &temp3;
10826 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10827 }
10828 arg4 = (double) SWIG_AsDouble(obj3);
10829 if (PyErr_Occurred()) SWIG_fail;
10830 arg5 = (double) SWIG_AsDouble(obj4);
10831 if (PyErr_Occurred()) SWIG_fail;
10832 {
10833 PyThreadState* __tstate = wxPyBeginAllowThreads();
10834 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10835
10836 wxPyEndAllowThreads(__tstate);
10837 if (PyErr_Occurred()) SWIG_fail;
10838 }
10839 Py_INCREF(Py_None); resultobj = Py_None;
10840 return resultobj;
10841 fail:
10842 return NULL;
10843 }
10844
10845
10846 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10847 PyObject *resultobj;
10848 wxDC *arg1 = (wxDC *) 0 ;
10849 int arg2 ;
10850 int arg3 ;
10851 PyObject * obj0 = 0 ;
10852 PyObject * obj1 = 0 ;
10853 PyObject * obj2 = 0 ;
10854 char *kwnames[] = {
10855 (char *) "self",(char *) "x",(char *) "y", NULL
10856 };
10857
10858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10861 arg2 = (int) SWIG_AsInt(obj1);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 arg3 = (int) SWIG_AsInt(obj2);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 (arg1)->DrawPoint(arg2,arg3);
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 Py_INCREF(Py_None); resultobj = Py_None;
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxDC *arg1 = (wxDC *) 0 ;
10882 wxPoint *arg2 = 0 ;
10883 wxPoint temp2 ;
10884 PyObject * obj0 = 0 ;
10885 PyObject * obj1 = 0 ;
10886 char *kwnames[] = {
10887 (char *) "self",(char *) "pt", NULL
10888 };
10889
10890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
10891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10893 {
10894 arg2 = &temp2;
10895 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10896 }
10897 {
10898 PyThreadState* __tstate = wxPyBeginAllowThreads();
10899 (arg1)->DrawPoint((wxPoint const &)*arg2);
10900
10901 wxPyEndAllowThreads(__tstate);
10902 if (PyErr_Occurred()) SWIG_fail;
10903 }
10904 Py_INCREF(Py_None); resultobj = Py_None;
10905 return resultobj;
10906 fail:
10907 return NULL;
10908 }
10909
10910
10911 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10912 PyObject *resultobj;
10913 wxDC *arg1 = (wxDC *) 0 ;
10914 int arg2 ;
10915 int arg3 ;
10916 int arg4 ;
10917 int arg5 ;
10918 PyObject * obj0 = 0 ;
10919 PyObject * obj1 = 0 ;
10920 PyObject * obj2 = 0 ;
10921 PyObject * obj3 = 0 ;
10922 PyObject * obj4 = 0 ;
10923 char *kwnames[] = {
10924 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10925 };
10926
10927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10930 arg2 = (int) SWIG_AsInt(obj1);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 arg3 = (int) SWIG_AsInt(obj2);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 arg4 = (int) SWIG_AsInt(obj3);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 arg5 = (int) SWIG_AsInt(obj4);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 {
10939 PyThreadState* __tstate = wxPyBeginAllowThreads();
10940 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
10941
10942 wxPyEndAllowThreads(__tstate);
10943 if (PyErr_Occurred()) SWIG_fail;
10944 }
10945 Py_INCREF(Py_None); resultobj = Py_None;
10946 return resultobj;
10947 fail:
10948 return NULL;
10949 }
10950
10951
10952 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10953 PyObject *resultobj;
10954 wxDC *arg1 = (wxDC *) 0 ;
10955 wxRect *arg2 = 0 ;
10956 wxRect temp2 ;
10957 PyObject * obj0 = 0 ;
10958 PyObject * obj1 = 0 ;
10959 char *kwnames[] = {
10960 (char *) "self",(char *) "rect", NULL
10961 };
10962
10963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
10964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10966 {
10967 arg2 = &temp2;
10968 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10969 }
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 (arg1)->DrawRectangle((wxRect const &)*arg2);
10973
10974 wxPyEndAllowThreads(__tstate);
10975 if (PyErr_Occurred()) SWIG_fail;
10976 }
10977 Py_INCREF(Py_None); resultobj = Py_None;
10978 return resultobj;
10979 fail:
10980 return NULL;
10981 }
10982
10983
10984 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10985 PyObject *resultobj;
10986 wxDC *arg1 = (wxDC *) 0 ;
10987 wxPoint *arg2 = 0 ;
10988 wxSize *arg3 = 0 ;
10989 wxPoint temp2 ;
10990 wxSize temp3 ;
10991 PyObject * obj0 = 0 ;
10992 PyObject * obj1 = 0 ;
10993 PyObject * obj2 = 0 ;
10994 char *kwnames[] = {
10995 (char *) "self",(char *) "pt",(char *) "sz", NULL
10996 };
10997
10998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
10999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11001 {
11002 arg2 = &temp2;
11003 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11004 }
11005 {
11006 arg3 = &temp3;
11007 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11008 }
11009 {
11010 PyThreadState* __tstate = wxPyBeginAllowThreads();
11011 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11012
11013 wxPyEndAllowThreads(__tstate);
11014 if (PyErr_Occurred()) SWIG_fail;
11015 }
11016 Py_INCREF(Py_None); resultobj = Py_None;
11017 return resultobj;
11018 fail:
11019 return NULL;
11020 }
11021
11022
11023 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11024 PyObject *resultobj;
11025 wxDC *arg1 = (wxDC *) 0 ;
11026 int arg2 ;
11027 int arg3 ;
11028 int arg4 ;
11029 int arg5 ;
11030 double arg6 ;
11031 PyObject * obj0 = 0 ;
11032 PyObject * obj1 = 0 ;
11033 PyObject * obj2 = 0 ;
11034 PyObject * obj3 = 0 ;
11035 PyObject * obj4 = 0 ;
11036 PyObject * obj5 = 0 ;
11037 char *kwnames[] = {
11038 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11039 };
11040
11041 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11042 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11043 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11044 arg2 = (int) SWIG_AsInt(obj1);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 arg3 = (int) SWIG_AsInt(obj2);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 arg4 = (int) SWIG_AsInt(obj3);
11049 if (PyErr_Occurred()) SWIG_fail;
11050 arg5 = (int) SWIG_AsInt(obj4);
11051 if (PyErr_Occurred()) SWIG_fail;
11052 arg6 = (double) SWIG_AsDouble(obj5);
11053 if (PyErr_Occurred()) SWIG_fail;
11054 {
11055 PyThreadState* __tstate = wxPyBeginAllowThreads();
11056 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11057
11058 wxPyEndAllowThreads(__tstate);
11059 if (PyErr_Occurred()) SWIG_fail;
11060 }
11061 Py_INCREF(Py_None); resultobj = Py_None;
11062 return resultobj;
11063 fail:
11064 return NULL;
11065 }
11066
11067
11068 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11069 PyObject *resultobj;
11070 wxDC *arg1 = (wxDC *) 0 ;
11071 wxRect *arg2 = 0 ;
11072 double arg3 ;
11073 wxRect temp2 ;
11074 PyObject * obj0 = 0 ;
11075 PyObject * obj1 = 0 ;
11076 PyObject * obj2 = 0 ;
11077 char *kwnames[] = {
11078 (char *) "self",(char *) "r",(char *) "radius", NULL
11079 };
11080
11081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11084 {
11085 arg2 = &temp2;
11086 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11087 }
11088 arg3 = (double) SWIG_AsDouble(obj2);
11089 if (PyErr_Occurred()) SWIG_fail;
11090 {
11091 PyThreadState* __tstate = wxPyBeginAllowThreads();
11092 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11093
11094 wxPyEndAllowThreads(__tstate);
11095 if (PyErr_Occurred()) SWIG_fail;
11096 }
11097 Py_INCREF(Py_None); resultobj = Py_None;
11098 return resultobj;
11099 fail:
11100 return NULL;
11101 }
11102
11103
11104 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11105 PyObject *resultobj;
11106 wxDC *arg1 = (wxDC *) 0 ;
11107 wxPoint *arg2 = 0 ;
11108 wxSize *arg3 = 0 ;
11109 double arg4 ;
11110 wxPoint temp2 ;
11111 wxSize temp3 ;
11112 PyObject * obj0 = 0 ;
11113 PyObject * obj1 = 0 ;
11114 PyObject * obj2 = 0 ;
11115 PyObject * obj3 = 0 ;
11116 char *kwnames[] = {
11117 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11118 };
11119
11120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11123 {
11124 arg2 = &temp2;
11125 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11126 }
11127 {
11128 arg3 = &temp3;
11129 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11130 }
11131 arg4 = (double) SWIG_AsDouble(obj3);
11132 if (PyErr_Occurred()) SWIG_fail;
11133 {
11134 PyThreadState* __tstate = wxPyBeginAllowThreads();
11135 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11136
11137 wxPyEndAllowThreads(__tstate);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 }
11140 Py_INCREF(Py_None); resultobj = Py_None;
11141 return resultobj;
11142 fail:
11143 return NULL;
11144 }
11145
11146
11147 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11148 PyObject *resultobj;
11149 wxDC *arg1 = (wxDC *) 0 ;
11150 int arg2 ;
11151 int arg3 ;
11152 int arg4 ;
11153 PyObject * obj0 = 0 ;
11154 PyObject * obj1 = 0 ;
11155 PyObject * obj2 = 0 ;
11156 PyObject * obj3 = 0 ;
11157 char *kwnames[] = {
11158 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11159 };
11160
11161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11164 arg2 = (int) SWIG_AsInt(obj1);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 arg3 = (int) SWIG_AsInt(obj2);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 arg4 = (int) SWIG_AsInt(obj3);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 {
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 (arg1)->DrawCircle(arg2,arg3,arg4);
11173
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 Py_INCREF(Py_None); resultobj = Py_None;
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj;
11186 wxDC *arg1 = (wxDC *) 0 ;
11187 wxPoint *arg2 = 0 ;
11188 int arg3 ;
11189 wxPoint temp2 ;
11190 PyObject * obj0 = 0 ;
11191 PyObject * obj1 = 0 ;
11192 PyObject * obj2 = 0 ;
11193 char *kwnames[] = {
11194 (char *) "self",(char *) "pt",(char *) "radius", NULL
11195 };
11196
11197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11200 {
11201 arg2 = &temp2;
11202 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11203 }
11204 arg3 = (int) SWIG_AsInt(obj2);
11205 if (PyErr_Occurred()) SWIG_fail;
11206 {
11207 PyThreadState* __tstate = wxPyBeginAllowThreads();
11208 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11209
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 Py_INCREF(Py_None); resultobj = Py_None;
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj;
11222 wxDC *arg1 = (wxDC *) 0 ;
11223 int arg2 ;
11224 int arg3 ;
11225 int arg4 ;
11226 int arg5 ;
11227 PyObject * obj0 = 0 ;
11228 PyObject * obj1 = 0 ;
11229 PyObject * obj2 = 0 ;
11230 PyObject * obj3 = 0 ;
11231 PyObject * obj4 = 0 ;
11232 char *kwnames[] = {
11233 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11234 };
11235
11236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11239 arg2 = (int) SWIG_AsInt(obj1);
11240 if (PyErr_Occurred()) SWIG_fail;
11241 arg3 = (int) SWIG_AsInt(obj2);
11242 if (PyErr_Occurred()) SWIG_fail;
11243 arg4 = (int) SWIG_AsInt(obj3);
11244 if (PyErr_Occurred()) SWIG_fail;
11245 arg5 = (int) SWIG_AsInt(obj4);
11246 if (PyErr_Occurred()) SWIG_fail;
11247 {
11248 PyThreadState* __tstate = wxPyBeginAllowThreads();
11249 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11250
11251 wxPyEndAllowThreads(__tstate);
11252 if (PyErr_Occurred()) SWIG_fail;
11253 }
11254 Py_INCREF(Py_None); resultobj = Py_None;
11255 return resultobj;
11256 fail:
11257 return NULL;
11258 }
11259
11260
11261 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11262 PyObject *resultobj;
11263 wxDC *arg1 = (wxDC *) 0 ;
11264 wxRect *arg2 = 0 ;
11265 wxRect temp2 ;
11266 PyObject * obj0 = 0 ;
11267 PyObject * obj1 = 0 ;
11268 char *kwnames[] = {
11269 (char *) "self",(char *) "rect", NULL
11270 };
11271
11272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11273 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11274 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11275 {
11276 arg2 = &temp2;
11277 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11278 }
11279 {
11280 PyThreadState* __tstate = wxPyBeginAllowThreads();
11281 (arg1)->DrawEllipse((wxRect const &)*arg2);
11282
11283 wxPyEndAllowThreads(__tstate);
11284 if (PyErr_Occurred()) SWIG_fail;
11285 }
11286 Py_INCREF(Py_None); resultobj = Py_None;
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11294 PyObject *resultobj;
11295 wxDC *arg1 = (wxDC *) 0 ;
11296 wxPoint *arg2 = 0 ;
11297 wxSize *arg3 = 0 ;
11298 wxPoint temp2 ;
11299 wxSize temp3 ;
11300 PyObject * obj0 = 0 ;
11301 PyObject * obj1 = 0 ;
11302 PyObject * obj2 = 0 ;
11303 char *kwnames[] = {
11304 (char *) "self",(char *) "pt",(char *) "sz", NULL
11305 };
11306
11307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11310 {
11311 arg2 = &temp2;
11312 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11313 }
11314 {
11315 arg3 = &temp3;
11316 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11317 }
11318 {
11319 PyThreadState* __tstate = wxPyBeginAllowThreads();
11320 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11321
11322 wxPyEndAllowThreads(__tstate);
11323 if (PyErr_Occurred()) SWIG_fail;
11324 }
11325 Py_INCREF(Py_None); resultobj = Py_None;
11326 return resultobj;
11327 fail:
11328 return NULL;
11329 }
11330
11331
11332 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11333 PyObject *resultobj;
11334 wxDC *arg1 = (wxDC *) 0 ;
11335 wxIcon *arg2 = 0 ;
11336 int arg3 ;
11337 int arg4 ;
11338 PyObject * obj0 = 0 ;
11339 PyObject * obj1 = 0 ;
11340 PyObject * obj2 = 0 ;
11341 PyObject * obj3 = 0 ;
11342 char *kwnames[] = {
11343 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11344 };
11345
11346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11349 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11350 SWIG_POINTER_EXCEPTION | 0)) == -1)
11351 SWIG_fail;
11352 if (arg2 == NULL) {
11353 PyErr_SetString(PyExc_TypeError,"null reference");
11354 SWIG_fail;
11355 }
11356 arg3 = (int) SWIG_AsInt(obj2);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 arg4 = (int) SWIG_AsInt(obj3);
11359 if (PyErr_Occurred()) SWIG_fail;
11360 {
11361 PyThreadState* __tstate = wxPyBeginAllowThreads();
11362 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11363
11364 wxPyEndAllowThreads(__tstate);
11365 if (PyErr_Occurred()) SWIG_fail;
11366 }
11367 Py_INCREF(Py_None); resultobj = Py_None;
11368 return resultobj;
11369 fail:
11370 return NULL;
11371 }
11372
11373
11374 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11375 PyObject *resultobj;
11376 wxDC *arg1 = (wxDC *) 0 ;
11377 wxIcon *arg2 = 0 ;
11378 wxPoint *arg3 = 0 ;
11379 wxPoint temp3 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 PyObject * obj2 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self",(char *) "icon",(char *) "pt", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11390 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11391 SWIG_POINTER_EXCEPTION | 0)) == -1)
11392 SWIG_fail;
11393 if (arg2 == NULL) {
11394 PyErr_SetString(PyExc_TypeError,"null reference");
11395 SWIG_fail;
11396 }
11397 {
11398 arg3 = &temp3;
11399 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11400 }
11401 {
11402 PyThreadState* __tstate = wxPyBeginAllowThreads();
11403 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11404
11405 wxPyEndAllowThreads(__tstate);
11406 if (PyErr_Occurred()) SWIG_fail;
11407 }
11408 Py_INCREF(Py_None); resultobj = Py_None;
11409 return resultobj;
11410 fail:
11411 return NULL;
11412 }
11413
11414
11415 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11416 PyObject *resultobj;
11417 wxDC *arg1 = (wxDC *) 0 ;
11418 wxBitmap *arg2 = 0 ;
11419 int arg3 ;
11420 int arg4 ;
11421 bool arg5 = (bool) False ;
11422 PyObject * obj0 = 0 ;
11423 PyObject * obj1 = 0 ;
11424 PyObject * obj2 = 0 ;
11425 PyObject * obj3 = 0 ;
11426 PyObject * obj4 = 0 ;
11427 char *kwnames[] = {
11428 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11429 };
11430
11431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11434 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1)
11436 SWIG_fail;
11437 if (arg2 == NULL) {
11438 PyErr_SetString(PyExc_TypeError,"null reference");
11439 SWIG_fail;
11440 }
11441 arg3 = (int) SWIG_AsInt(obj2);
11442 if (PyErr_Occurred()) SWIG_fail;
11443 arg4 = (int) SWIG_AsInt(obj3);
11444 if (PyErr_Occurred()) SWIG_fail;
11445 if (obj4) {
11446 arg5 = (bool) SWIG_AsBool(obj4);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11452
11453 wxPyEndAllowThreads(__tstate);
11454 if (PyErr_Occurred()) SWIG_fail;
11455 }
11456 Py_INCREF(Py_None); resultobj = Py_None;
11457 return resultobj;
11458 fail:
11459 return NULL;
11460 }
11461
11462
11463 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11464 PyObject *resultobj;
11465 wxDC *arg1 = (wxDC *) 0 ;
11466 wxBitmap *arg2 = 0 ;
11467 wxPoint *arg3 = 0 ;
11468 bool arg4 = (bool) False ;
11469 wxPoint temp3 ;
11470 PyObject * obj0 = 0 ;
11471 PyObject * obj1 = 0 ;
11472 PyObject * obj2 = 0 ;
11473 PyObject * obj3 = 0 ;
11474 char *kwnames[] = {
11475 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11476 };
11477
11478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11481 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11482 SWIG_POINTER_EXCEPTION | 0)) == -1)
11483 SWIG_fail;
11484 if (arg2 == NULL) {
11485 PyErr_SetString(PyExc_TypeError,"null reference");
11486 SWIG_fail;
11487 }
11488 {
11489 arg3 = &temp3;
11490 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11491 }
11492 if (obj3) {
11493 arg4 = (bool) SWIG_AsBool(obj3);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 }
11496 {
11497 PyThreadState* __tstate = wxPyBeginAllowThreads();
11498 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11499
11500 wxPyEndAllowThreads(__tstate);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 }
11503 Py_INCREF(Py_None); resultobj = Py_None;
11504 return resultobj;
11505 fail:
11506 return NULL;
11507 }
11508
11509
11510 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11511 PyObject *resultobj;
11512 wxDC *arg1 = (wxDC *) 0 ;
11513 wxString *arg2 = 0 ;
11514 int arg3 ;
11515 int arg4 ;
11516 bool temp2 = False ;
11517 PyObject * obj0 = 0 ;
11518 PyObject * obj1 = 0 ;
11519 PyObject * obj2 = 0 ;
11520 PyObject * obj3 = 0 ;
11521 char *kwnames[] = {
11522 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11523 };
11524
11525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11528 {
11529 arg2 = wxString_in_helper(obj1);
11530 if (arg2 == NULL) SWIG_fail;
11531 temp2 = True;
11532 }
11533 arg3 = (int) SWIG_AsInt(obj2);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 arg4 = (int) SWIG_AsInt(obj3);
11536 if (PyErr_Occurred()) SWIG_fail;
11537 {
11538 PyThreadState* __tstate = wxPyBeginAllowThreads();
11539 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11540
11541 wxPyEndAllowThreads(__tstate);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 }
11544 Py_INCREF(Py_None); resultobj = Py_None;
11545 {
11546 if (temp2)
11547 delete arg2;
11548 }
11549 return resultobj;
11550 fail:
11551 {
11552 if (temp2)
11553 delete arg2;
11554 }
11555 return NULL;
11556 }
11557
11558
11559 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11560 PyObject *resultobj;
11561 wxDC *arg1 = (wxDC *) 0 ;
11562 wxString *arg2 = 0 ;
11563 wxPoint *arg3 = 0 ;
11564 bool temp2 = False ;
11565 wxPoint temp3 ;
11566 PyObject * obj0 = 0 ;
11567 PyObject * obj1 = 0 ;
11568 PyObject * obj2 = 0 ;
11569 char *kwnames[] = {
11570 (char *) "self",(char *) "text",(char *) "pt", NULL
11571 };
11572
11573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11576 {
11577 arg2 = wxString_in_helper(obj1);
11578 if (arg2 == NULL) SWIG_fail;
11579 temp2 = True;
11580 }
11581 {
11582 arg3 = &temp3;
11583 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11584 }
11585 {
11586 PyThreadState* __tstate = wxPyBeginAllowThreads();
11587 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11588
11589 wxPyEndAllowThreads(__tstate);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 Py_INCREF(Py_None); resultobj = Py_None;
11593 {
11594 if (temp2)
11595 delete arg2;
11596 }
11597 return resultobj;
11598 fail:
11599 {
11600 if (temp2)
11601 delete arg2;
11602 }
11603 return NULL;
11604 }
11605
11606
11607 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11608 PyObject *resultobj;
11609 wxDC *arg1 = (wxDC *) 0 ;
11610 wxString *arg2 = 0 ;
11611 int arg3 ;
11612 int arg4 ;
11613 double arg5 ;
11614 bool temp2 = False ;
11615 PyObject * obj0 = 0 ;
11616 PyObject * obj1 = 0 ;
11617 PyObject * obj2 = 0 ;
11618 PyObject * obj3 = 0 ;
11619 PyObject * obj4 = 0 ;
11620 char *kwnames[] = {
11621 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11622 };
11623
11624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11627 {
11628 arg2 = wxString_in_helper(obj1);
11629 if (arg2 == NULL) SWIG_fail;
11630 temp2 = True;
11631 }
11632 arg3 = (int) SWIG_AsInt(obj2);
11633 if (PyErr_Occurred()) SWIG_fail;
11634 arg4 = (int) SWIG_AsInt(obj3);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 arg5 = (double) SWIG_AsDouble(obj4);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11641
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 Py_INCREF(Py_None); resultobj = Py_None;
11646 {
11647 if (temp2)
11648 delete arg2;
11649 }
11650 return resultobj;
11651 fail:
11652 {
11653 if (temp2)
11654 delete arg2;
11655 }
11656 return NULL;
11657 }
11658
11659
11660 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11661 PyObject *resultobj;
11662 wxDC *arg1 = (wxDC *) 0 ;
11663 wxString *arg2 = 0 ;
11664 wxPoint *arg3 = 0 ;
11665 double arg4 ;
11666 bool temp2 = False ;
11667 wxPoint temp3 ;
11668 PyObject * obj0 = 0 ;
11669 PyObject * obj1 = 0 ;
11670 PyObject * obj2 = 0 ;
11671 PyObject * obj3 = 0 ;
11672 char *kwnames[] = {
11673 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11674 };
11675
11676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11679 {
11680 arg2 = wxString_in_helper(obj1);
11681 if (arg2 == NULL) SWIG_fail;
11682 temp2 = True;
11683 }
11684 {
11685 arg3 = &temp3;
11686 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11687 }
11688 arg4 = (double) SWIG_AsDouble(obj3);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 {
11691 PyThreadState* __tstate = wxPyBeginAllowThreads();
11692 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11693
11694 wxPyEndAllowThreads(__tstate);
11695 if (PyErr_Occurred()) SWIG_fail;
11696 }
11697 Py_INCREF(Py_None); resultobj = Py_None;
11698 {
11699 if (temp2)
11700 delete arg2;
11701 }
11702 return resultobj;
11703 fail:
11704 {
11705 if (temp2)
11706 delete arg2;
11707 }
11708 return NULL;
11709 }
11710
11711
11712 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11713 PyObject *resultobj;
11714 wxDC *arg1 = (wxDC *) 0 ;
11715 int arg2 ;
11716 int arg3 ;
11717 int arg4 ;
11718 int arg5 ;
11719 wxDC *arg6 = (wxDC *) 0 ;
11720 int arg7 ;
11721 int arg8 ;
11722 int arg9 = (int) wxCOPY ;
11723 bool arg10 = (bool) False ;
11724 int arg11 = (int) -1 ;
11725 int arg12 = (int) -1 ;
11726 bool result;
11727 PyObject * obj0 = 0 ;
11728 PyObject * obj1 = 0 ;
11729 PyObject * obj2 = 0 ;
11730 PyObject * obj3 = 0 ;
11731 PyObject * obj4 = 0 ;
11732 PyObject * obj5 = 0 ;
11733 PyObject * obj6 = 0 ;
11734 PyObject * obj7 = 0 ;
11735 PyObject * obj8 = 0 ;
11736 PyObject * obj9 = 0 ;
11737 PyObject * obj10 = 0 ;
11738 PyObject * obj11 = 0 ;
11739 char *kwnames[] = {
11740 (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
11741 };
11742
11743 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;
11744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11746 arg2 = (int) SWIG_AsInt(obj1);
11747 if (PyErr_Occurred()) SWIG_fail;
11748 arg3 = (int) SWIG_AsInt(obj2);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 arg4 = (int) SWIG_AsInt(obj3);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 arg5 = (int) SWIG_AsInt(obj4);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11756 arg7 = (int) SWIG_AsInt(obj6);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 arg8 = (int) SWIG_AsInt(obj7);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 if (obj8) {
11761 arg9 = (int) SWIG_AsInt(obj8);
11762 if (PyErr_Occurred()) SWIG_fail;
11763 }
11764 if (obj9) {
11765 arg10 = (bool) SWIG_AsBool(obj9);
11766 if (PyErr_Occurred()) SWIG_fail;
11767 }
11768 if (obj10) {
11769 arg11 = (int) SWIG_AsInt(obj10);
11770 if (PyErr_Occurred()) SWIG_fail;
11771 }
11772 if (obj11) {
11773 arg12 = (int) SWIG_AsInt(obj11);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 {
11777 PyThreadState* __tstate = wxPyBeginAllowThreads();
11778 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11779
11780 wxPyEndAllowThreads(__tstate);
11781 if (PyErr_Occurred()) SWIG_fail;
11782 }
11783 {
11784 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11785 }
11786 return resultobj;
11787 fail:
11788 return NULL;
11789 }
11790
11791
11792 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj;
11794 wxDC *arg1 = (wxDC *) 0 ;
11795 wxPoint *arg2 = 0 ;
11796 wxSize *arg3 = 0 ;
11797 wxDC *arg4 = (wxDC *) 0 ;
11798 wxPoint *arg5 = 0 ;
11799 int arg6 = (int) wxCOPY ;
11800 bool arg7 = (bool) False ;
11801 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11802 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11803 bool result;
11804 wxPoint temp2 ;
11805 wxSize temp3 ;
11806 wxPoint temp5 ;
11807 wxPoint temp8 ;
11808 PyObject * obj0 = 0 ;
11809 PyObject * obj1 = 0 ;
11810 PyObject * obj2 = 0 ;
11811 PyObject * obj3 = 0 ;
11812 PyObject * obj4 = 0 ;
11813 PyObject * obj5 = 0 ;
11814 PyObject * obj6 = 0 ;
11815 PyObject * obj7 = 0 ;
11816 char *kwnames[] = {
11817 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11818 };
11819
11820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11823 {
11824 arg2 = &temp2;
11825 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11826 }
11827 {
11828 arg3 = &temp3;
11829 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11830 }
11831 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11832 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11833 {
11834 arg5 = &temp5;
11835 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11836 }
11837 if (obj5) {
11838 arg6 = (int) SWIG_AsInt(obj5);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 }
11841 if (obj6) {
11842 arg7 = (bool) SWIG_AsBool(obj6);
11843 if (PyErr_Occurred()) SWIG_fail;
11844 }
11845 if (obj7) {
11846 {
11847 arg8 = &temp8;
11848 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11849 }
11850 }
11851 {
11852 PyThreadState* __tstate = wxPyBeginAllowThreads();
11853 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11854
11855 wxPyEndAllowThreads(__tstate);
11856 if (PyErr_Occurred()) SWIG_fail;
11857 }
11858 {
11859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11860 }
11861 return resultobj;
11862 fail:
11863 return NULL;
11864 }
11865
11866
11867 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11868 PyObject *resultobj;
11869 wxDC *arg1 = (wxDC *) 0 ;
11870 int arg2 ;
11871 int arg3 ;
11872 int arg4 ;
11873 int arg5 ;
11874 PyObject * obj0 = 0 ;
11875 PyObject * obj1 = 0 ;
11876 PyObject * obj2 = 0 ;
11877 PyObject * obj3 = 0 ;
11878 PyObject * obj4 = 0 ;
11879 char *kwnames[] = {
11880 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11881 };
11882
11883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11886 arg2 = (int) SWIG_AsInt(obj1);
11887 if (PyErr_Occurred()) SWIG_fail;
11888 arg3 = (int) SWIG_AsInt(obj2);
11889 if (PyErr_Occurred()) SWIG_fail;
11890 arg4 = (int) SWIG_AsInt(obj3);
11891 if (PyErr_Occurred()) SWIG_fail;
11892 arg5 = (int) SWIG_AsInt(obj4);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 {
11895 PyThreadState* __tstate = wxPyBeginAllowThreads();
11896 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11897
11898 wxPyEndAllowThreads(__tstate);
11899 if (PyErr_Occurred()) SWIG_fail;
11900 }
11901 Py_INCREF(Py_None); resultobj = Py_None;
11902 return resultobj;
11903 fail:
11904 return NULL;
11905 }
11906
11907
11908 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11909 PyObject *resultobj;
11910 wxDC *arg1 = (wxDC *) 0 ;
11911 wxPoint *arg2 = 0 ;
11912 wxSize *arg3 = 0 ;
11913 wxPoint temp2 ;
11914 wxSize temp3 ;
11915 PyObject * obj0 = 0 ;
11916 PyObject * obj1 = 0 ;
11917 PyObject * obj2 = 0 ;
11918 char *kwnames[] = {
11919 (char *) "self",(char *) "pt",(char *) "sz", NULL
11920 };
11921
11922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11923 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11924 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11925 {
11926 arg2 = &temp2;
11927 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11928 }
11929 {
11930 arg3 = &temp3;
11931 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11932 }
11933 {
11934 PyThreadState* __tstate = wxPyBeginAllowThreads();
11935 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
11936
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 Py_INCREF(Py_None); resultobj = Py_None;
11941 return resultobj;
11942 fail:
11943 return NULL;
11944 }
11945
11946
11947 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11948 PyObject *resultobj;
11949 wxDC *arg1 = (wxDC *) 0 ;
11950 wxRegion *arg2 = 0 ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 char *kwnames[] = {
11954 (char *) "self",(char *) "region", NULL
11955 };
11956
11957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
11958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11960 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
11961 SWIG_POINTER_EXCEPTION | 0)) == -1)
11962 SWIG_fail;
11963 if (arg2 == NULL) {
11964 PyErr_SetString(PyExc_TypeError,"null reference");
11965 SWIG_fail;
11966 }
11967 {
11968 PyThreadState* __tstate = wxPyBeginAllowThreads();
11969 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
11970
11971 wxPyEndAllowThreads(__tstate);
11972 if (PyErr_Occurred()) SWIG_fail;
11973 }
11974 Py_INCREF(Py_None); resultobj = Py_None;
11975 return resultobj;
11976 fail:
11977 return NULL;
11978 }
11979
11980
11981 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11982 PyObject *resultobj;
11983 wxDC *arg1 = (wxDC *) 0 ;
11984 wxRect *arg2 = 0 ;
11985 wxRect temp2 ;
11986 PyObject * obj0 = 0 ;
11987 PyObject * obj1 = 0 ;
11988 char *kwnames[] = {
11989 (char *) "self",(char *) "rect", NULL
11990 };
11991
11992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
11993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11995 {
11996 arg2 = &temp2;
11997 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11998 }
11999 {
12000 PyThreadState* __tstate = wxPyBeginAllowThreads();
12001 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12002
12003 wxPyEndAllowThreads(__tstate);
12004 if (PyErr_Occurred()) SWIG_fail;
12005 }
12006 Py_INCREF(Py_None); resultobj = Py_None;
12007 return resultobj;
12008 fail:
12009 return NULL;
12010 }
12011
12012
12013 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12014 PyObject *resultobj;
12015 wxDC *arg1 = (wxDC *) 0 ;
12016 int arg2 ;
12017 wxPoint *arg3 = (wxPoint *) 0 ;
12018 int arg4 = (int) 0 ;
12019 int arg5 = (int) 0 ;
12020 PyObject * obj0 = 0 ;
12021 PyObject * obj1 = 0 ;
12022 PyObject * obj2 = 0 ;
12023 PyObject * obj3 = 0 ;
12024 char *kwnames[] = {
12025 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12026 };
12027
12028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12029 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12030 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12031 {
12032 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12033 if (arg3 == NULL) SWIG_fail;
12034 }
12035 if (obj2) {
12036 arg4 = (int) SWIG_AsInt(obj2);
12037 if (PyErr_Occurred()) SWIG_fail;
12038 }
12039 if (obj3) {
12040 arg5 = (int) SWIG_AsInt(obj3);
12041 if (PyErr_Occurred()) SWIG_fail;
12042 }
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12046
12047 wxPyEndAllowThreads(__tstate);
12048 if (PyErr_Occurred()) SWIG_fail;
12049 }
12050 Py_INCREF(Py_None); resultobj = Py_None;
12051 {
12052 if (arg3) delete [] arg3;
12053 }
12054 return resultobj;
12055 fail:
12056 {
12057 if (arg3) delete [] arg3;
12058 }
12059 return NULL;
12060 }
12061
12062
12063 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12064 PyObject *resultobj;
12065 wxDC *arg1 = (wxDC *) 0 ;
12066 int arg2 ;
12067 wxPoint *arg3 = (wxPoint *) 0 ;
12068 int arg4 = (int) 0 ;
12069 int arg5 = (int) 0 ;
12070 int arg6 = (int) wxODDEVEN_RULE ;
12071 PyObject * obj0 = 0 ;
12072 PyObject * obj1 = 0 ;
12073 PyObject * obj2 = 0 ;
12074 PyObject * obj3 = 0 ;
12075 PyObject * obj4 = 0 ;
12076 char *kwnames[] = {
12077 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12078 };
12079
12080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12083 {
12084 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12085 if (arg3 == NULL) SWIG_fail;
12086 }
12087 if (obj2) {
12088 arg4 = (int) SWIG_AsInt(obj2);
12089 if (PyErr_Occurred()) SWIG_fail;
12090 }
12091 if (obj3) {
12092 arg5 = (int) SWIG_AsInt(obj3);
12093 if (PyErr_Occurred()) SWIG_fail;
12094 }
12095 if (obj4) {
12096 arg6 = (int) SWIG_AsInt(obj4);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12102
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
12106 Py_INCREF(Py_None); resultobj = Py_None;
12107 {
12108 if (arg3) delete [] arg3;
12109 }
12110 return resultobj;
12111 fail:
12112 {
12113 if (arg3) delete [] arg3;
12114 }
12115 return NULL;
12116 }
12117
12118
12119 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12120 PyObject *resultobj;
12121 wxDC *arg1 = (wxDC *) 0 ;
12122 wxString *arg2 = 0 ;
12123 wxRect *arg3 = 0 ;
12124 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12125 int arg5 = (int) -1 ;
12126 bool temp2 = False ;
12127 wxRect temp3 ;
12128 PyObject * obj0 = 0 ;
12129 PyObject * obj1 = 0 ;
12130 PyObject * obj2 = 0 ;
12131 PyObject * obj3 = 0 ;
12132 PyObject * obj4 = 0 ;
12133 char *kwnames[] = {
12134 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12135 };
12136
12137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12140 {
12141 arg2 = wxString_in_helper(obj1);
12142 if (arg2 == NULL) SWIG_fail;
12143 temp2 = True;
12144 }
12145 {
12146 arg3 = &temp3;
12147 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12148 }
12149 if (obj3) {
12150 arg4 = (int) SWIG_AsInt(obj3);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 if (obj4) {
12154 arg5 = (int) SWIG_AsInt(obj4);
12155 if (PyErr_Occurred()) SWIG_fail;
12156 }
12157 {
12158 PyThreadState* __tstate = wxPyBeginAllowThreads();
12159 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12160
12161 wxPyEndAllowThreads(__tstate);
12162 if (PyErr_Occurred()) SWIG_fail;
12163 }
12164 Py_INCREF(Py_None); resultobj = Py_None;
12165 {
12166 if (temp2)
12167 delete arg2;
12168 }
12169 return resultobj;
12170 fail:
12171 {
12172 if (temp2)
12173 delete arg2;
12174 }
12175 return NULL;
12176 }
12177
12178
12179 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12180 PyObject *resultobj;
12181 wxDC *arg1 = (wxDC *) 0 ;
12182 wxString *arg2 = 0 ;
12183 wxBitmap *arg3 = 0 ;
12184 wxRect *arg4 = 0 ;
12185 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12186 int arg6 = (int) -1 ;
12187 wxRect result;
12188 bool temp2 = False ;
12189 wxRect temp4 ;
12190 PyObject * obj0 = 0 ;
12191 PyObject * obj1 = 0 ;
12192 PyObject * obj2 = 0 ;
12193 PyObject * obj3 = 0 ;
12194 PyObject * obj4 = 0 ;
12195 PyObject * obj5 = 0 ;
12196 char *kwnames[] = {
12197 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12198 };
12199
12200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12203 {
12204 arg2 = wxString_in_helper(obj1);
12205 if (arg2 == NULL) SWIG_fail;
12206 temp2 = True;
12207 }
12208 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12209 SWIG_POINTER_EXCEPTION | 0)) == -1)
12210 SWIG_fail;
12211 if (arg3 == NULL) {
12212 PyErr_SetString(PyExc_TypeError,"null reference");
12213 SWIG_fail;
12214 }
12215 {
12216 arg4 = &temp4;
12217 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12218 }
12219 if (obj4) {
12220 arg5 = (int) SWIG_AsInt(obj4);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 if (obj5) {
12224 arg6 = (int) SWIG_AsInt(obj5);
12225 if (PyErr_Occurred()) SWIG_fail;
12226 }
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12230
12231 wxPyEndAllowThreads(__tstate);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 {
12235 wxRect * resultptr;
12236 resultptr = new wxRect((wxRect &) result);
12237 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12238 }
12239 {
12240 if (temp2)
12241 delete arg2;
12242 }
12243 return resultobj;
12244 fail:
12245 {
12246 if (temp2)
12247 delete arg2;
12248 }
12249 return NULL;
12250 }
12251
12252
12253 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12254 PyObject *resultobj;
12255 wxDC *arg1 = (wxDC *) 0 ;
12256 int arg2 ;
12257 wxPoint *arg3 = (wxPoint *) 0 ;
12258 PyObject * obj0 = 0 ;
12259 PyObject * obj1 = 0 ;
12260 char *kwnames[] = {
12261 (char *) "self",(char *) "points", NULL
12262 };
12263
12264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12267 {
12268 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12269 if (arg3 == NULL) SWIG_fail;
12270 }
12271 {
12272 PyThreadState* __tstate = wxPyBeginAllowThreads();
12273 (arg1)->DrawSpline(arg2,arg3);
12274
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 Py_INCREF(Py_None); resultobj = Py_None;
12279 {
12280 if (arg3) delete [] arg3;
12281 }
12282 return resultobj;
12283 fail:
12284 {
12285 if (arg3) delete [] arg3;
12286 }
12287 return NULL;
12288 }
12289
12290
12291 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12292 PyObject *resultobj;
12293 wxDC *arg1 = (wxDC *) 0 ;
12294 PyObject * obj0 = 0 ;
12295 char *kwnames[] = {
12296 (char *) "self", NULL
12297 };
12298
12299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12302 {
12303 PyThreadState* __tstate = wxPyBeginAllowThreads();
12304 (arg1)->Clear();
12305
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 Py_INCREF(Py_None); resultobj = Py_None;
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12317 PyObject *resultobj;
12318 wxDC *arg1 = (wxDC *) 0 ;
12319 wxString *arg2 = 0 ;
12320 bool result;
12321 bool temp2 = False ;
12322 PyObject * obj0 = 0 ;
12323 PyObject * obj1 = 0 ;
12324 char *kwnames[] = {
12325 (char *) "self",(char *) "message", NULL
12326 };
12327
12328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12331 {
12332 arg2 = wxString_in_helper(obj1);
12333 if (arg2 == NULL) SWIG_fail;
12334 temp2 = True;
12335 }
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12339
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 {
12344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12345 }
12346 {
12347 if (temp2)
12348 delete arg2;
12349 }
12350 return resultobj;
12351 fail:
12352 {
12353 if (temp2)
12354 delete arg2;
12355 }
12356 return NULL;
12357 }
12358
12359
12360 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12361 PyObject *resultobj;
12362 wxDC *arg1 = (wxDC *) 0 ;
12363 PyObject * obj0 = 0 ;
12364 char *kwnames[] = {
12365 (char *) "self", NULL
12366 };
12367
12368 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12369 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12370 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 (arg1)->EndDoc();
12374
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 Py_INCREF(Py_None); resultobj = Py_None;
12379 return resultobj;
12380 fail:
12381 return NULL;
12382 }
12383
12384
12385 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12386 PyObject *resultobj;
12387 wxDC *arg1 = (wxDC *) 0 ;
12388 PyObject * obj0 = 0 ;
12389 char *kwnames[] = {
12390 (char *) "self", NULL
12391 };
12392
12393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12396 {
12397 PyThreadState* __tstate = wxPyBeginAllowThreads();
12398 (arg1)->StartPage();
12399
12400 wxPyEndAllowThreads(__tstate);
12401 if (PyErr_Occurred()) SWIG_fail;
12402 }
12403 Py_INCREF(Py_None); resultobj = Py_None;
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12411 PyObject *resultobj;
12412 wxDC *arg1 = (wxDC *) 0 ;
12413 PyObject * obj0 = 0 ;
12414 char *kwnames[] = {
12415 (char *) "self", NULL
12416 };
12417
12418 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12419 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12420 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12421 {
12422 PyThreadState* __tstate = wxPyBeginAllowThreads();
12423 (arg1)->EndPage();
12424
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 Py_INCREF(Py_None); resultobj = Py_None;
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12436 PyObject *resultobj;
12437 wxDC *arg1 = (wxDC *) 0 ;
12438 wxFont *arg2 = 0 ;
12439 PyObject * obj0 = 0 ;
12440 PyObject * obj1 = 0 ;
12441 char *kwnames[] = {
12442 (char *) "self",(char *) "font", NULL
12443 };
12444
12445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12448 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12449 SWIG_POINTER_EXCEPTION | 0)) == -1)
12450 SWIG_fail;
12451 if (arg2 == NULL) {
12452 PyErr_SetString(PyExc_TypeError,"null reference");
12453 SWIG_fail;
12454 }
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 (arg1)->SetFont((wxFont const &)*arg2);
12458
12459 wxPyEndAllowThreads(__tstate);
12460 if (PyErr_Occurred()) SWIG_fail;
12461 }
12462 Py_INCREF(Py_None); resultobj = Py_None;
12463 return resultobj;
12464 fail:
12465 return NULL;
12466 }
12467
12468
12469 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12470 PyObject *resultobj;
12471 wxDC *arg1 = (wxDC *) 0 ;
12472 wxPen *arg2 = 0 ;
12473 PyObject * obj0 = 0 ;
12474 PyObject * obj1 = 0 ;
12475 char *kwnames[] = {
12476 (char *) "self",(char *) "pen", NULL
12477 };
12478
12479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12482 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12483 SWIG_POINTER_EXCEPTION | 0)) == -1)
12484 SWIG_fail;
12485 if (arg2 == NULL) {
12486 PyErr_SetString(PyExc_TypeError,"null reference");
12487 SWIG_fail;
12488 }
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 (arg1)->SetPen((wxPen const &)*arg2);
12492
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 Py_INCREF(Py_None); resultobj = Py_None;
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj;
12505 wxDC *arg1 = (wxDC *) 0 ;
12506 wxBrush *arg2 = 0 ;
12507 PyObject * obj0 = 0 ;
12508 PyObject * obj1 = 0 ;
12509 char *kwnames[] = {
12510 (char *) "self",(char *) "brush", NULL
12511 };
12512
12513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12516 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12517 SWIG_POINTER_EXCEPTION | 0)) == -1)
12518 SWIG_fail;
12519 if (arg2 == NULL) {
12520 PyErr_SetString(PyExc_TypeError,"null reference");
12521 SWIG_fail;
12522 }
12523 {
12524 PyThreadState* __tstate = wxPyBeginAllowThreads();
12525 (arg1)->SetBrush((wxBrush const &)*arg2);
12526
12527 wxPyEndAllowThreads(__tstate);
12528 if (PyErr_Occurred()) SWIG_fail;
12529 }
12530 Py_INCREF(Py_None); resultobj = Py_None;
12531 return resultobj;
12532 fail:
12533 return NULL;
12534 }
12535
12536
12537 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12538 PyObject *resultobj;
12539 wxDC *arg1 = (wxDC *) 0 ;
12540 wxBrush *arg2 = 0 ;
12541 PyObject * obj0 = 0 ;
12542 PyObject * obj1 = 0 ;
12543 char *kwnames[] = {
12544 (char *) "self",(char *) "brush", NULL
12545 };
12546
12547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12550 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12551 SWIG_POINTER_EXCEPTION | 0)) == -1)
12552 SWIG_fail;
12553 if (arg2 == NULL) {
12554 PyErr_SetString(PyExc_TypeError,"null reference");
12555 SWIG_fail;
12556 }
12557 {
12558 PyThreadState* __tstate = wxPyBeginAllowThreads();
12559 (arg1)->SetBackground((wxBrush const &)*arg2);
12560
12561 wxPyEndAllowThreads(__tstate);
12562 if (PyErr_Occurred()) SWIG_fail;
12563 }
12564 Py_INCREF(Py_None); resultobj = Py_None;
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj;
12573 wxDC *arg1 = (wxDC *) 0 ;
12574 int arg2 ;
12575 PyObject * obj0 = 0 ;
12576 PyObject * obj1 = 0 ;
12577 char *kwnames[] = {
12578 (char *) "self",(char *) "mode", NULL
12579 };
12580
12581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12584 arg2 = (int) SWIG_AsInt(obj1);
12585 if (PyErr_Occurred()) SWIG_fail;
12586 {
12587 PyThreadState* __tstate = wxPyBeginAllowThreads();
12588 (arg1)->SetBackgroundMode(arg2);
12589
12590 wxPyEndAllowThreads(__tstate);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 }
12593 Py_INCREF(Py_None); resultobj = Py_None;
12594 return resultobj;
12595 fail:
12596 return NULL;
12597 }
12598
12599
12600 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12601 PyObject *resultobj;
12602 wxDC *arg1 = (wxDC *) 0 ;
12603 wxPalette *arg2 = 0 ;
12604 PyObject * obj0 = 0 ;
12605 PyObject * obj1 = 0 ;
12606 char *kwnames[] = {
12607 (char *) "self",(char *) "palette", NULL
12608 };
12609
12610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12613 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12614 SWIG_POINTER_EXCEPTION | 0)) == -1)
12615 SWIG_fail;
12616 if (arg2 == NULL) {
12617 PyErr_SetString(PyExc_TypeError,"null reference");
12618 SWIG_fail;
12619 }
12620 {
12621 PyThreadState* __tstate = wxPyBeginAllowThreads();
12622 (arg1)->SetPalette((wxPalette const &)*arg2);
12623
12624 wxPyEndAllowThreads(__tstate);
12625 if (PyErr_Occurred()) SWIG_fail;
12626 }
12627 Py_INCREF(Py_None); resultobj = Py_None;
12628 return resultobj;
12629 fail:
12630 return NULL;
12631 }
12632
12633
12634 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12635 PyObject *resultobj;
12636 wxDC *arg1 = (wxDC *) 0 ;
12637 PyObject * obj0 = 0 ;
12638 char *kwnames[] = {
12639 (char *) "self", NULL
12640 };
12641
12642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12643 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12645 {
12646 PyThreadState* __tstate = wxPyBeginAllowThreads();
12647 (arg1)->DestroyClippingRegion();
12648
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 Py_INCREF(Py_None); resultobj = Py_None;
12653 return resultobj;
12654 fail:
12655 return NULL;
12656 }
12657
12658
12659 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12660 PyObject *resultobj;
12661 wxDC *arg1 = (wxDC *) 0 ;
12662 int *arg2 = (int *) 0 ;
12663 int *arg3 = (int *) 0 ;
12664 int *arg4 = (int *) 0 ;
12665 int *arg5 = (int *) 0 ;
12666 int temp2 ;
12667 int temp3 ;
12668 int temp4 ;
12669 int temp5 ;
12670 PyObject * obj0 = 0 ;
12671 char *kwnames[] = {
12672 (char *) "self", NULL
12673 };
12674
12675 arg2 = &temp2;
12676 arg3 = &temp3;
12677 arg4 = &temp4;
12678 arg5 = &temp5;
12679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12682 {
12683 PyThreadState* __tstate = wxPyBeginAllowThreads();
12684 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12685
12686 wxPyEndAllowThreads(__tstate);
12687 if (PyErr_Occurred()) SWIG_fail;
12688 }
12689 Py_INCREF(Py_None); resultobj = Py_None;
12690 {
12691 PyObject *o = PyInt_FromLong((long) (*arg2));
12692 resultobj = t_output_helper(resultobj,o);
12693 }
12694 {
12695 PyObject *o = PyInt_FromLong((long) (*arg3));
12696 resultobj = t_output_helper(resultobj,o);
12697 }
12698 {
12699 PyObject *o = PyInt_FromLong((long) (*arg4));
12700 resultobj = t_output_helper(resultobj,o);
12701 }
12702 {
12703 PyObject *o = PyInt_FromLong((long) (*arg5));
12704 resultobj = t_output_helper(resultobj,o);
12705 }
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj;
12714 wxDC *arg1 = (wxDC *) 0 ;
12715 wxRect result;
12716 PyObject * obj0 = 0 ;
12717 char *kwnames[] = {
12718 (char *) "self", NULL
12719 };
12720
12721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12724 {
12725 PyThreadState* __tstate = wxPyBeginAllowThreads();
12726 result = wxDC_GetClippingRect(arg1);
12727
12728 wxPyEndAllowThreads(__tstate);
12729 if (PyErr_Occurred()) SWIG_fail;
12730 }
12731 {
12732 wxRect * resultptr;
12733 resultptr = new wxRect((wxRect &) result);
12734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12735 }
12736 return resultobj;
12737 fail:
12738 return NULL;
12739 }
12740
12741
12742 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12743 PyObject *resultobj;
12744 wxDC *arg1 = (wxDC *) 0 ;
12745 int result;
12746 PyObject * obj0 = 0 ;
12747 char *kwnames[] = {
12748 (char *) "self", NULL
12749 };
12750
12751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12752 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12753 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12754 {
12755 PyThreadState* __tstate = wxPyBeginAllowThreads();
12756 result = (int)((wxDC const *)arg1)->GetCharHeight();
12757
12758 wxPyEndAllowThreads(__tstate);
12759 if (PyErr_Occurred()) SWIG_fail;
12760 }
12761 resultobj = SWIG_FromInt((int)result);
12762 return resultobj;
12763 fail:
12764 return NULL;
12765 }
12766
12767
12768 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12769 PyObject *resultobj;
12770 wxDC *arg1 = (wxDC *) 0 ;
12771 int result;
12772 PyObject * obj0 = 0 ;
12773 char *kwnames[] = {
12774 (char *) "self", NULL
12775 };
12776
12777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12780 {
12781 PyThreadState* __tstate = wxPyBeginAllowThreads();
12782 result = (int)((wxDC const *)arg1)->GetCharWidth();
12783
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 resultobj = SWIG_FromInt((int)result);
12788 return resultobj;
12789 fail:
12790 return NULL;
12791 }
12792
12793
12794 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj;
12796 wxDC *arg1 = (wxDC *) 0 ;
12797 wxString *arg2 = 0 ;
12798 int *arg3 = (int *) 0 ;
12799 int *arg4 = (int *) 0 ;
12800 bool temp2 = False ;
12801 int temp3 ;
12802 int temp4 ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 char *kwnames[] = {
12806 (char *) "self",(char *) "string", NULL
12807 };
12808
12809 arg3 = &temp3;
12810 arg4 = &temp4;
12811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12814 {
12815 arg2 = wxString_in_helper(obj1);
12816 if (arg2 == NULL) SWIG_fail;
12817 temp2 = True;
12818 }
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12822
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 Py_INCREF(Py_None); resultobj = Py_None;
12827 {
12828 PyObject *o = PyInt_FromLong((long) (*arg3));
12829 resultobj = t_output_helper(resultobj,o);
12830 }
12831 {
12832 PyObject *o = PyInt_FromLong((long) (*arg4));
12833 resultobj = t_output_helper(resultobj,o);
12834 }
12835 {
12836 if (temp2)
12837 delete arg2;
12838 }
12839 return resultobj;
12840 fail:
12841 {
12842 if (temp2)
12843 delete arg2;
12844 }
12845 return NULL;
12846 }
12847
12848
12849 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12850 PyObject *resultobj;
12851 wxDC *arg1 = (wxDC *) 0 ;
12852 wxString *arg2 = 0 ;
12853 int *arg3 = (int *) 0 ;
12854 int *arg4 = (int *) 0 ;
12855 int *arg5 = (int *) 0 ;
12856 int *arg6 = (int *) 0 ;
12857 wxFont *arg7 = (wxFont *) NULL ;
12858 bool temp2 = False ;
12859 int temp3 ;
12860 int temp4 ;
12861 int temp5 ;
12862 int temp6 ;
12863 PyObject * obj0 = 0 ;
12864 PyObject * obj1 = 0 ;
12865 PyObject * obj2 = 0 ;
12866 char *kwnames[] = {
12867 (char *) "self",(char *) "string",(char *) "font", NULL
12868 };
12869
12870 arg3 = &temp3;
12871 arg4 = &temp4;
12872 arg5 = &temp5;
12873 arg6 = &temp6;
12874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12877 {
12878 arg2 = wxString_in_helper(obj1);
12879 if (arg2 == NULL) SWIG_fail;
12880 temp2 = True;
12881 }
12882 if (obj2) {
12883 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12885 }
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12889
12890 wxPyEndAllowThreads(__tstate);
12891 if (PyErr_Occurred()) SWIG_fail;
12892 }
12893 Py_INCREF(Py_None); resultobj = Py_None;
12894 {
12895 PyObject *o = PyInt_FromLong((long) (*arg3));
12896 resultobj = t_output_helper(resultobj,o);
12897 }
12898 {
12899 PyObject *o = PyInt_FromLong((long) (*arg4));
12900 resultobj = t_output_helper(resultobj,o);
12901 }
12902 {
12903 PyObject *o = PyInt_FromLong((long) (*arg5));
12904 resultobj = t_output_helper(resultobj,o);
12905 }
12906 {
12907 PyObject *o = PyInt_FromLong((long) (*arg6));
12908 resultobj = t_output_helper(resultobj,o);
12909 }
12910 {
12911 if (temp2)
12912 delete arg2;
12913 }
12914 return resultobj;
12915 fail:
12916 {
12917 if (temp2)
12918 delete arg2;
12919 }
12920 return NULL;
12921 }
12922
12923
12924 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12925 PyObject *resultobj;
12926 wxDC *arg1 = (wxDC *) 0 ;
12927 wxString *arg2 = 0 ;
12928 int *arg3 = (int *) 0 ;
12929 int *arg4 = (int *) 0 ;
12930 int *arg5 = (int *) 0 ;
12931 wxFont *arg6 = (wxFont *) NULL ;
12932 bool temp2 = False ;
12933 int temp3 ;
12934 int temp4 ;
12935 int temp5 ;
12936 PyObject * obj0 = 0 ;
12937 PyObject * obj1 = 0 ;
12938 PyObject * obj2 = 0 ;
12939 char *kwnames[] = {
12940 (char *) "self",(char *) "text",(char *) "font", NULL
12941 };
12942
12943 arg3 = &temp3;
12944 arg4 = &temp4;
12945 arg5 = &temp5;
12946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12949 {
12950 arg2 = wxString_in_helper(obj1);
12951 if (arg2 == NULL) SWIG_fail;
12952 temp2 = True;
12953 }
12954 if (obj2) {
12955 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
12956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12957 }
12958 {
12959 PyThreadState* __tstate = wxPyBeginAllowThreads();
12960 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
12961
12962 wxPyEndAllowThreads(__tstate);
12963 if (PyErr_Occurred()) SWIG_fail;
12964 }
12965 Py_INCREF(Py_None); resultobj = Py_None;
12966 {
12967 PyObject *o = PyInt_FromLong((long) (*arg3));
12968 resultobj = t_output_helper(resultobj,o);
12969 }
12970 {
12971 PyObject *o = PyInt_FromLong((long) (*arg4));
12972 resultobj = t_output_helper(resultobj,o);
12973 }
12974 {
12975 PyObject *o = PyInt_FromLong((long) (*arg5));
12976 resultobj = t_output_helper(resultobj,o);
12977 }
12978 {
12979 if (temp2)
12980 delete arg2;
12981 }
12982 return resultobj;
12983 fail:
12984 {
12985 if (temp2)
12986 delete arg2;
12987 }
12988 return NULL;
12989 }
12990
12991
12992 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj;
12994 wxDC *arg1 = (wxDC *) 0 ;
12995 wxString *arg2 = 0 ;
12996 wxArrayInt result;
12997 bool temp2 = False ;
12998 PyObject * obj0 = 0 ;
12999 PyObject * obj1 = 0 ;
13000 char *kwnames[] = {
13001 (char *) "self",(char *) "text", NULL
13002 };
13003
13004 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13005 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13006 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13007 {
13008 arg2 = wxString_in_helper(obj1);
13009 if (arg2 == NULL) SWIG_fail;
13010 temp2 = True;
13011 }
13012 {
13013 PyThreadState* __tstate = wxPyBeginAllowThreads();
13014 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13015
13016 wxPyEndAllowThreads(__tstate);
13017 if (PyErr_Occurred()) SWIG_fail;
13018 }
13019 {
13020 resultobj = PyList_New(0);
13021 size_t idx;
13022 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13023 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13024 PyList_Append(resultobj, val);
13025 Py_DECREF(val);
13026 }
13027 }
13028 {
13029 if (temp2)
13030 delete arg2;
13031 }
13032 return resultobj;
13033 fail:
13034 {
13035 if (temp2)
13036 delete arg2;
13037 }
13038 return NULL;
13039 }
13040
13041
13042 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13043 PyObject *resultobj;
13044 wxDC *arg1 = (wxDC *) 0 ;
13045 wxSize result;
13046 PyObject * obj0 = 0 ;
13047 char *kwnames[] = {
13048 (char *) "self", NULL
13049 };
13050
13051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13054 {
13055 PyThreadState* __tstate = wxPyBeginAllowThreads();
13056 result = (arg1)->GetSize();
13057
13058 wxPyEndAllowThreads(__tstate);
13059 if (PyErr_Occurred()) SWIG_fail;
13060 }
13061 {
13062 wxSize * resultptr;
13063 resultptr = new wxSize((wxSize &) result);
13064 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13065 }
13066 return resultobj;
13067 fail:
13068 return NULL;
13069 }
13070
13071
13072 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj;
13074 wxDC *arg1 = (wxDC *) 0 ;
13075 int *arg2 = (int *) 0 ;
13076 int *arg3 = (int *) 0 ;
13077 int temp2 ;
13078 int temp3 ;
13079 PyObject * obj0 = 0 ;
13080 char *kwnames[] = {
13081 (char *) "self", NULL
13082 };
13083
13084 arg2 = &temp2;
13085 arg3 = &temp3;
13086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 (arg1)->GetSize(arg2,arg3);
13092
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 Py_INCREF(Py_None); resultobj = Py_None;
13097 {
13098 PyObject *o = PyInt_FromLong((long) (*arg2));
13099 resultobj = t_output_helper(resultobj,o);
13100 }
13101 {
13102 PyObject *o = PyInt_FromLong((long) (*arg3));
13103 resultobj = t_output_helper(resultobj,o);
13104 }
13105 return resultobj;
13106 fail:
13107 return NULL;
13108 }
13109
13110
13111 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13112 PyObject *resultobj;
13113 wxDC *arg1 = (wxDC *) 0 ;
13114 wxSize result;
13115 PyObject * obj0 = 0 ;
13116 char *kwnames[] = {
13117 (char *) "self", NULL
13118 };
13119
13120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13123 {
13124 PyThreadState* __tstate = wxPyBeginAllowThreads();
13125 result = ((wxDC const *)arg1)->GetSizeMM();
13126
13127 wxPyEndAllowThreads(__tstate);
13128 if (PyErr_Occurred()) SWIG_fail;
13129 }
13130 {
13131 wxSize * resultptr;
13132 resultptr = new wxSize((wxSize &) result);
13133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13134 }
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13142 PyObject *resultobj;
13143 wxDC *arg1 = (wxDC *) 0 ;
13144 int *arg2 = (int *) 0 ;
13145 int *arg3 = (int *) 0 ;
13146 int temp2 ;
13147 int temp3 ;
13148 PyObject * obj0 = 0 ;
13149 char *kwnames[] = {
13150 (char *) "self", NULL
13151 };
13152
13153 arg2 = &temp2;
13154 arg3 = &temp3;
13155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13158 {
13159 PyThreadState* __tstate = wxPyBeginAllowThreads();
13160 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13161
13162 wxPyEndAllowThreads(__tstate);
13163 if (PyErr_Occurred()) SWIG_fail;
13164 }
13165 Py_INCREF(Py_None); resultobj = Py_None;
13166 {
13167 PyObject *o = PyInt_FromLong((long) (*arg2));
13168 resultobj = t_output_helper(resultobj,o);
13169 }
13170 {
13171 PyObject *o = PyInt_FromLong((long) (*arg3));
13172 resultobj = t_output_helper(resultobj,o);
13173 }
13174 return resultobj;
13175 fail:
13176 return NULL;
13177 }
13178
13179
13180 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13181 PyObject *resultobj;
13182 wxDC *arg1 = (wxDC *) 0 ;
13183 int arg2 ;
13184 int result;
13185 PyObject * obj0 = 0 ;
13186 PyObject * obj1 = 0 ;
13187 char *kwnames[] = {
13188 (char *) "self",(char *) "x", NULL
13189 };
13190
13191 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13194 arg2 = (int) SWIG_AsInt(obj1);
13195 if (PyErr_Occurred()) SWIG_fail;
13196 {
13197 PyThreadState* __tstate = wxPyBeginAllowThreads();
13198 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13199
13200 wxPyEndAllowThreads(__tstate);
13201 if (PyErr_Occurred()) SWIG_fail;
13202 }
13203 resultobj = SWIG_FromInt((int)result);
13204 return resultobj;
13205 fail:
13206 return NULL;
13207 }
13208
13209
13210 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13211 PyObject *resultobj;
13212 wxDC *arg1 = (wxDC *) 0 ;
13213 int arg2 ;
13214 int result;
13215 PyObject * obj0 = 0 ;
13216 PyObject * obj1 = 0 ;
13217 char *kwnames[] = {
13218 (char *) "self",(char *) "y", NULL
13219 };
13220
13221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13224 arg2 = (int) SWIG_AsInt(obj1);
13225 if (PyErr_Occurred()) SWIG_fail;
13226 {
13227 PyThreadState* __tstate = wxPyBeginAllowThreads();
13228 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13229
13230 wxPyEndAllowThreads(__tstate);
13231 if (PyErr_Occurred()) SWIG_fail;
13232 }
13233 resultobj = SWIG_FromInt((int)result);
13234 return resultobj;
13235 fail:
13236 return NULL;
13237 }
13238
13239
13240 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13241 PyObject *resultobj;
13242 wxDC *arg1 = (wxDC *) 0 ;
13243 int arg2 ;
13244 int result;
13245 PyObject * obj0 = 0 ;
13246 PyObject * obj1 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self",(char *) "x", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13254 arg2 = (int) SWIG_AsInt(obj1);
13255 if (PyErr_Occurred()) SWIG_fail;
13256 {
13257 PyThreadState* __tstate = wxPyBeginAllowThreads();
13258 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13259
13260 wxPyEndAllowThreads(__tstate);
13261 if (PyErr_Occurred()) SWIG_fail;
13262 }
13263 resultobj = SWIG_FromInt((int)result);
13264 return resultobj;
13265 fail:
13266 return NULL;
13267 }
13268
13269
13270 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13271 PyObject *resultobj;
13272 wxDC *arg1 = (wxDC *) 0 ;
13273 int arg2 ;
13274 int result;
13275 PyObject * obj0 = 0 ;
13276 PyObject * obj1 = 0 ;
13277 char *kwnames[] = {
13278 (char *) "self",(char *) "y", NULL
13279 };
13280
13281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13284 arg2 = (int) SWIG_AsInt(obj1);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 {
13287 PyThreadState* __tstate = wxPyBeginAllowThreads();
13288 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13289
13290 wxPyEndAllowThreads(__tstate);
13291 if (PyErr_Occurred()) SWIG_fail;
13292 }
13293 resultobj = SWIG_FromInt((int)result);
13294 return resultobj;
13295 fail:
13296 return NULL;
13297 }
13298
13299
13300 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13301 PyObject *resultobj;
13302 wxDC *arg1 = (wxDC *) 0 ;
13303 int arg2 ;
13304 int result;
13305 PyObject * obj0 = 0 ;
13306 PyObject * obj1 = 0 ;
13307 char *kwnames[] = {
13308 (char *) "self",(char *) "x", NULL
13309 };
13310
13311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13314 arg2 = (int) SWIG_AsInt(obj1);
13315 if (PyErr_Occurred()) SWIG_fail;
13316 {
13317 PyThreadState* __tstate = wxPyBeginAllowThreads();
13318 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13319
13320 wxPyEndAllowThreads(__tstate);
13321 if (PyErr_Occurred()) SWIG_fail;
13322 }
13323 resultobj = SWIG_FromInt((int)result);
13324 return resultobj;
13325 fail:
13326 return NULL;
13327 }
13328
13329
13330 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13331 PyObject *resultobj;
13332 wxDC *arg1 = (wxDC *) 0 ;
13333 int arg2 ;
13334 int result;
13335 PyObject * obj0 = 0 ;
13336 PyObject * obj1 = 0 ;
13337 char *kwnames[] = {
13338 (char *) "self",(char *) "y", NULL
13339 };
13340
13341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13344 arg2 = (int) SWIG_AsInt(obj1);
13345 if (PyErr_Occurred()) SWIG_fail;
13346 {
13347 PyThreadState* __tstate = wxPyBeginAllowThreads();
13348 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13349
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 resultobj = SWIG_FromInt((int)result);
13354 return resultobj;
13355 fail:
13356 return NULL;
13357 }
13358
13359
13360 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13361 PyObject *resultobj;
13362 wxDC *arg1 = (wxDC *) 0 ;
13363 int arg2 ;
13364 int result;
13365 PyObject * obj0 = 0 ;
13366 PyObject * obj1 = 0 ;
13367 char *kwnames[] = {
13368 (char *) "self",(char *) "x", NULL
13369 };
13370
13371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13374 arg2 = (int) SWIG_AsInt(obj1);
13375 if (PyErr_Occurred()) SWIG_fail;
13376 {
13377 PyThreadState* __tstate = wxPyBeginAllowThreads();
13378 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13379
13380 wxPyEndAllowThreads(__tstate);
13381 if (PyErr_Occurred()) SWIG_fail;
13382 }
13383 resultobj = SWIG_FromInt((int)result);
13384 return resultobj;
13385 fail:
13386 return NULL;
13387 }
13388
13389
13390 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13391 PyObject *resultobj;
13392 wxDC *arg1 = (wxDC *) 0 ;
13393 int arg2 ;
13394 int result;
13395 PyObject * obj0 = 0 ;
13396 PyObject * obj1 = 0 ;
13397 char *kwnames[] = {
13398 (char *) "self",(char *) "y", NULL
13399 };
13400
13401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13404 arg2 = (int) SWIG_AsInt(obj1);
13405 if (PyErr_Occurred()) SWIG_fail;
13406 {
13407 PyThreadState* __tstate = wxPyBeginAllowThreads();
13408 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13409
13410 wxPyEndAllowThreads(__tstate);
13411 if (PyErr_Occurred()) SWIG_fail;
13412 }
13413 resultobj = SWIG_FromInt((int)result);
13414 return resultobj;
13415 fail:
13416 return NULL;
13417 }
13418
13419
13420 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj;
13422 wxDC *arg1 = (wxDC *) 0 ;
13423 bool result;
13424 PyObject * obj0 = 0 ;
13425 char *kwnames[] = {
13426 (char *) "self", NULL
13427 };
13428
13429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13435
13436 wxPyEndAllowThreads(__tstate);
13437 if (PyErr_Occurred()) SWIG_fail;
13438 }
13439 {
13440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13441 }
13442 return resultobj;
13443 fail:
13444 return NULL;
13445 }
13446
13447
13448 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13449 PyObject *resultobj;
13450 wxDC *arg1 = (wxDC *) 0 ;
13451 bool result;
13452 PyObject * obj0 = 0 ;
13453 char *kwnames[] = {
13454 (char *) "self", NULL
13455 };
13456
13457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13463
13464 wxPyEndAllowThreads(__tstate);
13465 if (PyErr_Occurred()) SWIG_fail;
13466 }
13467 {
13468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13469 }
13470 return resultobj;
13471 fail:
13472 return NULL;
13473 }
13474
13475
13476 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13477 PyObject *resultobj;
13478 wxDC *arg1 = (wxDC *) 0 ;
13479 int result;
13480 PyObject * obj0 = 0 ;
13481 char *kwnames[] = {
13482 (char *) "self", NULL
13483 };
13484
13485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13488 {
13489 PyThreadState* __tstate = wxPyBeginAllowThreads();
13490 result = (int)((wxDC const *)arg1)->GetDepth();
13491
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 resultobj = SWIG_FromInt((int)result);
13496 return resultobj;
13497 fail:
13498 return NULL;
13499 }
13500
13501
13502 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13503 PyObject *resultobj;
13504 wxDC *arg1 = (wxDC *) 0 ;
13505 wxSize result;
13506 PyObject * obj0 = 0 ;
13507 char *kwnames[] = {
13508 (char *) "self", NULL
13509 };
13510
13511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13514 {
13515 PyThreadState* __tstate = wxPyBeginAllowThreads();
13516 result = ((wxDC const *)arg1)->GetPPI();
13517
13518 wxPyEndAllowThreads(__tstate);
13519 if (PyErr_Occurred()) SWIG_fail;
13520 }
13521 {
13522 wxSize * resultptr;
13523 resultptr = new wxSize((wxSize &) result);
13524 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13525 }
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj;
13534 wxDC *arg1 = (wxDC *) 0 ;
13535 bool result;
13536 PyObject * obj0 = 0 ;
13537 char *kwnames[] = {
13538 (char *) "self", NULL
13539 };
13540
13541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13544 {
13545 PyThreadState* __tstate = wxPyBeginAllowThreads();
13546 result = (bool)((wxDC const *)arg1)->Ok();
13547
13548 wxPyEndAllowThreads(__tstate);
13549 if (PyErr_Occurred()) SWIG_fail;
13550 }
13551 {
13552 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13553 }
13554 return resultobj;
13555 fail:
13556 return NULL;
13557 }
13558
13559
13560 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13561 PyObject *resultobj;
13562 wxDC *arg1 = (wxDC *) 0 ;
13563 int result;
13564 PyObject * obj0 = 0 ;
13565 char *kwnames[] = {
13566 (char *) "self", NULL
13567 };
13568
13569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13572 {
13573 PyThreadState* __tstate = wxPyBeginAllowThreads();
13574 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13575
13576 wxPyEndAllowThreads(__tstate);
13577 if (PyErr_Occurred()) SWIG_fail;
13578 }
13579 resultobj = SWIG_FromInt((int)result);
13580 return resultobj;
13581 fail:
13582 return NULL;
13583 }
13584
13585
13586 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13587 PyObject *resultobj;
13588 wxDC *arg1 = (wxDC *) 0 ;
13589 wxBrush *result;
13590 PyObject * obj0 = 0 ;
13591 char *kwnames[] = {
13592 (char *) "self", NULL
13593 };
13594
13595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13597 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13598 {
13599 PyThreadState* __tstate = wxPyBeginAllowThreads();
13600 {
13601 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13602 result = (wxBrush *) &_result_ref;
13603 }
13604
13605 wxPyEndAllowThreads(__tstate);
13606 if (PyErr_Occurred()) SWIG_fail;
13607 }
13608 {
13609 wxBrush* resultptr = new wxBrush(*result);
13610 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13611 }
13612 return resultobj;
13613 fail:
13614 return NULL;
13615 }
13616
13617
13618 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13619 PyObject *resultobj;
13620 wxDC *arg1 = (wxDC *) 0 ;
13621 wxBrush *result;
13622 PyObject * obj0 = 0 ;
13623 char *kwnames[] = {
13624 (char *) "self", NULL
13625 };
13626
13627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13630 {
13631 PyThreadState* __tstate = wxPyBeginAllowThreads();
13632 {
13633 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13634 result = (wxBrush *) &_result_ref;
13635 }
13636
13637 wxPyEndAllowThreads(__tstate);
13638 if (PyErr_Occurred()) SWIG_fail;
13639 }
13640 {
13641 wxBrush* resultptr = new wxBrush(*result);
13642 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13643 }
13644 return resultobj;
13645 fail:
13646 return NULL;
13647 }
13648
13649
13650 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13651 PyObject *resultobj;
13652 wxDC *arg1 = (wxDC *) 0 ;
13653 wxFont *result;
13654 PyObject * obj0 = 0 ;
13655 char *kwnames[] = {
13656 (char *) "self", NULL
13657 };
13658
13659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 {
13665 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13666 result = (wxFont *) &_result_ref;
13667 }
13668
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 {
13673 wxFont* resultptr = new wxFont(*result);
13674 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13675 }
13676 return resultobj;
13677 fail:
13678 return NULL;
13679 }
13680
13681
13682 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13683 PyObject *resultobj;
13684 wxDC *arg1 = (wxDC *) 0 ;
13685 wxPen *result;
13686 PyObject * obj0 = 0 ;
13687 char *kwnames[] = {
13688 (char *) "self", NULL
13689 };
13690
13691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13694 {
13695 PyThreadState* __tstate = wxPyBeginAllowThreads();
13696 {
13697 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13698 result = (wxPen *) &_result_ref;
13699 }
13700
13701 wxPyEndAllowThreads(__tstate);
13702 if (PyErr_Occurred()) SWIG_fail;
13703 }
13704 {
13705 wxPen* resultptr = new wxPen(*result);
13706 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13707 }
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13715 PyObject *resultobj;
13716 wxDC *arg1 = (wxDC *) 0 ;
13717 wxColour *result;
13718 PyObject * obj0 = 0 ;
13719 char *kwnames[] = {
13720 (char *) "self", NULL
13721 };
13722
13723 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13724 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13725 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13726 {
13727 PyThreadState* __tstate = wxPyBeginAllowThreads();
13728 {
13729 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13730 result = (wxColour *) &_result_ref;
13731 }
13732
13733 wxPyEndAllowThreads(__tstate);
13734 if (PyErr_Occurred()) SWIG_fail;
13735 }
13736 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13737 return resultobj;
13738 fail:
13739 return NULL;
13740 }
13741
13742
13743 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13744 PyObject *resultobj;
13745 wxDC *arg1 = (wxDC *) 0 ;
13746 wxColour *result;
13747 PyObject * obj0 = 0 ;
13748 char *kwnames[] = {
13749 (char *) "self", NULL
13750 };
13751
13752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 {
13758 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13759 result = (wxColour *) &_result_ref;
13760 }
13761
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13766 return resultobj;
13767 fail:
13768 return NULL;
13769 }
13770
13771
13772 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13773 PyObject *resultobj;
13774 wxDC *arg1 = (wxDC *) 0 ;
13775 wxColour *arg2 = 0 ;
13776 wxColour temp2 ;
13777 PyObject * obj0 = 0 ;
13778 PyObject * obj1 = 0 ;
13779 char *kwnames[] = {
13780 (char *) "self",(char *) "colour", NULL
13781 };
13782
13783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13786 {
13787 arg2 = &temp2;
13788 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13789 }
13790 {
13791 PyThreadState* __tstate = wxPyBeginAllowThreads();
13792 (arg1)->SetTextForeground((wxColour const &)*arg2);
13793
13794 wxPyEndAllowThreads(__tstate);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 Py_INCREF(Py_None); resultobj = Py_None;
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13805 PyObject *resultobj;
13806 wxDC *arg1 = (wxDC *) 0 ;
13807 wxColour *arg2 = 0 ;
13808 wxColour temp2 ;
13809 PyObject * obj0 = 0 ;
13810 PyObject * obj1 = 0 ;
13811 char *kwnames[] = {
13812 (char *) "self",(char *) "colour", NULL
13813 };
13814
13815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13818 {
13819 arg2 = &temp2;
13820 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13821 }
13822 {
13823 PyThreadState* __tstate = wxPyBeginAllowThreads();
13824 (arg1)->SetTextBackground((wxColour const &)*arg2);
13825
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 Py_INCREF(Py_None); resultobj = Py_None;
13830 return resultobj;
13831 fail:
13832 return NULL;
13833 }
13834
13835
13836 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxDC *arg1 = (wxDC *) 0 ;
13839 int result;
13840 PyObject * obj0 = 0 ;
13841 char *kwnames[] = {
13842 (char *) "self", NULL
13843 };
13844
13845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 result = (int)((wxDC const *)arg1)->GetMapMode();
13851
13852 wxPyEndAllowThreads(__tstate);
13853 if (PyErr_Occurred()) SWIG_fail;
13854 }
13855 resultobj = SWIG_FromInt((int)result);
13856 return resultobj;
13857 fail:
13858 return NULL;
13859 }
13860
13861
13862 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13863 PyObject *resultobj;
13864 wxDC *arg1 = (wxDC *) 0 ;
13865 int arg2 ;
13866 PyObject * obj0 = 0 ;
13867 PyObject * obj1 = 0 ;
13868 char *kwnames[] = {
13869 (char *) "self",(char *) "mode", NULL
13870 };
13871
13872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13875 arg2 = (int) SWIG_AsInt(obj1);
13876 if (PyErr_Occurred()) SWIG_fail;
13877 {
13878 PyThreadState* __tstate = wxPyBeginAllowThreads();
13879 (arg1)->SetMapMode(arg2);
13880
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 Py_INCREF(Py_None); resultobj = Py_None;
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj;
13893 wxDC *arg1 = (wxDC *) 0 ;
13894 double *arg2 = (double *) 0 ;
13895 double *arg3 = (double *) 0 ;
13896 double temp2 ;
13897 double temp3 ;
13898 PyObject * obj0 = 0 ;
13899 char *kwnames[] = {
13900 (char *) "self", NULL
13901 };
13902
13903 arg2 = &temp2;
13904 arg3 = &temp3;
13905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13908 {
13909 PyThreadState* __tstate = wxPyBeginAllowThreads();
13910 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13911
13912 wxPyEndAllowThreads(__tstate);
13913 if (PyErr_Occurred()) SWIG_fail;
13914 }
13915 Py_INCREF(Py_None); resultobj = Py_None;
13916 {
13917 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13918 resultobj = t_output_helper(resultobj,o);
13919 }
13920 {
13921 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13922 resultobj = t_output_helper(resultobj,o);
13923 }
13924 return resultobj;
13925 fail:
13926 return NULL;
13927 }
13928
13929
13930 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13931 PyObject *resultobj;
13932 wxDC *arg1 = (wxDC *) 0 ;
13933 double arg2 ;
13934 double arg3 ;
13935 PyObject * obj0 = 0 ;
13936 PyObject * obj1 = 0 ;
13937 PyObject * obj2 = 0 ;
13938 char *kwnames[] = {
13939 (char *) "self",(char *) "x",(char *) "y", NULL
13940 };
13941
13942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
13943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13945 arg2 = (double) SWIG_AsDouble(obj1);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 arg3 = (double) SWIG_AsDouble(obj2);
13948 if (PyErr_Occurred()) SWIG_fail;
13949 {
13950 PyThreadState* __tstate = wxPyBeginAllowThreads();
13951 (arg1)->SetUserScale(arg2,arg3);
13952
13953 wxPyEndAllowThreads(__tstate);
13954 if (PyErr_Occurred()) SWIG_fail;
13955 }
13956 Py_INCREF(Py_None); resultobj = Py_None;
13957 return resultobj;
13958 fail:
13959 return NULL;
13960 }
13961
13962
13963 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13964 PyObject *resultobj;
13965 wxDC *arg1 = (wxDC *) 0 ;
13966 double *arg2 = (double *) 0 ;
13967 double *arg3 = (double *) 0 ;
13968 double temp2 ;
13969 double temp3 ;
13970 PyObject * obj0 = 0 ;
13971 char *kwnames[] = {
13972 (char *) "self", NULL
13973 };
13974
13975 arg2 = &temp2;
13976 arg3 = &temp3;
13977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
13978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13980 {
13981 PyThreadState* __tstate = wxPyBeginAllowThreads();
13982 (arg1)->GetLogicalScale(arg2,arg3);
13983
13984 wxPyEndAllowThreads(__tstate);
13985 if (PyErr_Occurred()) SWIG_fail;
13986 }
13987 Py_INCREF(Py_None); resultobj = Py_None;
13988 {
13989 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13990 resultobj = t_output_helper(resultobj,o);
13991 }
13992 {
13993 PyObject *o = PyFloat_FromDouble((double) (*arg3));
13994 resultobj = t_output_helper(resultobj,o);
13995 }
13996 return resultobj;
13997 fail:
13998 return NULL;
13999 }
14000
14001
14002 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14003 PyObject *resultobj;
14004 wxDC *arg1 = (wxDC *) 0 ;
14005 double arg2 ;
14006 double arg3 ;
14007 PyObject * obj0 = 0 ;
14008 PyObject * obj1 = 0 ;
14009 PyObject * obj2 = 0 ;
14010 char *kwnames[] = {
14011 (char *) "self",(char *) "x",(char *) "y", NULL
14012 };
14013
14014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14017 arg2 = (double) SWIG_AsDouble(obj1);
14018 if (PyErr_Occurred()) SWIG_fail;
14019 arg3 = (double) SWIG_AsDouble(obj2);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 {
14022 PyThreadState* __tstate = wxPyBeginAllowThreads();
14023 (arg1)->SetLogicalScale(arg2,arg3);
14024
14025 wxPyEndAllowThreads(__tstate);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 }
14028 Py_INCREF(Py_None); resultobj = Py_None;
14029 return resultobj;
14030 fail:
14031 return NULL;
14032 }
14033
14034
14035 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14036 PyObject *resultobj;
14037 wxDC *arg1 = (wxDC *) 0 ;
14038 wxPoint result;
14039 PyObject * obj0 = 0 ;
14040 char *kwnames[] = {
14041 (char *) "self", NULL
14042 };
14043
14044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14047 {
14048 PyThreadState* __tstate = wxPyBeginAllowThreads();
14049 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14050
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 {
14055 wxPoint * resultptr;
14056 resultptr = new wxPoint((wxPoint &) result);
14057 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14058 }
14059 return resultobj;
14060 fail:
14061 return NULL;
14062 }
14063
14064
14065 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14066 PyObject *resultobj;
14067 wxDC *arg1 = (wxDC *) 0 ;
14068 int *arg2 = (int *) 0 ;
14069 int *arg3 = (int *) 0 ;
14070 int temp2 ;
14071 int temp3 ;
14072 PyObject * obj0 = 0 ;
14073 char *kwnames[] = {
14074 (char *) "self", NULL
14075 };
14076
14077 arg2 = &temp2;
14078 arg3 = &temp3;
14079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14082 {
14083 PyThreadState* __tstate = wxPyBeginAllowThreads();
14084 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14085
14086 wxPyEndAllowThreads(__tstate);
14087 if (PyErr_Occurred()) SWIG_fail;
14088 }
14089 Py_INCREF(Py_None); resultobj = Py_None;
14090 {
14091 PyObject *o = PyInt_FromLong((long) (*arg2));
14092 resultobj = t_output_helper(resultobj,o);
14093 }
14094 {
14095 PyObject *o = PyInt_FromLong((long) (*arg3));
14096 resultobj = t_output_helper(resultobj,o);
14097 }
14098 return resultobj;
14099 fail:
14100 return NULL;
14101 }
14102
14103
14104 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14105 PyObject *resultobj;
14106 wxDC *arg1 = (wxDC *) 0 ;
14107 int arg2 ;
14108 int arg3 ;
14109 PyObject * obj0 = 0 ;
14110 PyObject * obj1 = 0 ;
14111 PyObject * obj2 = 0 ;
14112 char *kwnames[] = {
14113 (char *) "self",(char *) "x",(char *) "y", NULL
14114 };
14115
14116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14119 arg2 = (int) SWIG_AsInt(obj1);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 arg3 = (int) SWIG_AsInt(obj2);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 (arg1)->SetLogicalOrigin(arg2,arg3);
14126
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 Py_INCREF(Py_None); resultobj = Py_None;
14131 return resultobj;
14132 fail:
14133 return NULL;
14134 }
14135
14136
14137 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14138 PyObject *resultobj;
14139 wxDC *arg1 = (wxDC *) 0 ;
14140 wxPoint *arg2 = 0 ;
14141 wxPoint temp2 ;
14142 PyObject * obj0 = 0 ;
14143 PyObject * obj1 = 0 ;
14144 char *kwnames[] = {
14145 (char *) "self",(char *) "point", NULL
14146 };
14147
14148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14151 {
14152 arg2 = &temp2;
14153 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14154 }
14155 {
14156 PyThreadState* __tstate = wxPyBeginAllowThreads();
14157 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14158
14159 wxPyEndAllowThreads(__tstate);
14160 if (PyErr_Occurred()) SWIG_fail;
14161 }
14162 Py_INCREF(Py_None); resultobj = Py_None;
14163 return resultobj;
14164 fail:
14165 return NULL;
14166 }
14167
14168
14169 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14170 PyObject *resultobj;
14171 wxDC *arg1 = (wxDC *) 0 ;
14172 wxPoint result;
14173 PyObject * obj0 = 0 ;
14174 char *kwnames[] = {
14175 (char *) "self", NULL
14176 };
14177
14178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14181 {
14182 PyThreadState* __tstate = wxPyBeginAllowThreads();
14183 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14184
14185 wxPyEndAllowThreads(__tstate);
14186 if (PyErr_Occurred()) SWIG_fail;
14187 }
14188 {
14189 wxPoint * resultptr;
14190 resultptr = new wxPoint((wxPoint &) result);
14191 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14192 }
14193 return resultobj;
14194 fail:
14195 return NULL;
14196 }
14197
14198
14199 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14200 PyObject *resultobj;
14201 wxDC *arg1 = (wxDC *) 0 ;
14202 int *arg2 = (int *) 0 ;
14203 int *arg3 = (int *) 0 ;
14204 int temp2 ;
14205 int temp3 ;
14206 PyObject * obj0 = 0 ;
14207 char *kwnames[] = {
14208 (char *) "self", NULL
14209 };
14210
14211 arg2 = &temp2;
14212 arg3 = &temp3;
14213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14219
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 Py_INCREF(Py_None); resultobj = Py_None;
14224 {
14225 PyObject *o = PyInt_FromLong((long) (*arg2));
14226 resultobj = t_output_helper(resultobj,o);
14227 }
14228 {
14229 PyObject *o = PyInt_FromLong((long) (*arg3));
14230 resultobj = t_output_helper(resultobj,o);
14231 }
14232 return resultobj;
14233 fail:
14234 return NULL;
14235 }
14236
14237
14238 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14239 PyObject *resultobj;
14240 wxDC *arg1 = (wxDC *) 0 ;
14241 int arg2 ;
14242 int arg3 ;
14243 PyObject * obj0 = 0 ;
14244 PyObject * obj1 = 0 ;
14245 PyObject * obj2 = 0 ;
14246 char *kwnames[] = {
14247 (char *) "self",(char *) "x",(char *) "y", NULL
14248 };
14249
14250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14253 arg2 = (int) SWIG_AsInt(obj1);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 arg3 = (int) SWIG_AsInt(obj2);
14256 if (PyErr_Occurred()) SWIG_fail;
14257 {
14258 PyThreadState* __tstate = wxPyBeginAllowThreads();
14259 (arg1)->SetDeviceOrigin(arg2,arg3);
14260
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 Py_INCREF(Py_None); resultobj = Py_None;
14265 return resultobj;
14266 fail:
14267 return NULL;
14268 }
14269
14270
14271 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14272 PyObject *resultobj;
14273 wxDC *arg1 = (wxDC *) 0 ;
14274 wxPoint *arg2 = 0 ;
14275 wxPoint temp2 ;
14276 PyObject * obj0 = 0 ;
14277 PyObject * obj1 = 0 ;
14278 char *kwnames[] = {
14279 (char *) "self",(char *) "point", NULL
14280 };
14281
14282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14285 {
14286 arg2 = &temp2;
14287 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14288 }
14289 {
14290 PyThreadState* __tstate = wxPyBeginAllowThreads();
14291 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14292
14293 wxPyEndAllowThreads(__tstate);
14294 if (PyErr_Occurred()) SWIG_fail;
14295 }
14296 Py_INCREF(Py_None); resultobj = Py_None;
14297 return resultobj;
14298 fail:
14299 return NULL;
14300 }
14301
14302
14303 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14304 PyObject *resultobj;
14305 wxDC *arg1 = (wxDC *) 0 ;
14306 bool arg2 ;
14307 bool arg3 ;
14308 PyObject * obj0 = 0 ;
14309 PyObject * obj1 = 0 ;
14310 PyObject * obj2 = 0 ;
14311 char *kwnames[] = {
14312 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14313 };
14314
14315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14318 arg2 = (bool) SWIG_AsBool(obj1);
14319 if (PyErr_Occurred()) SWIG_fail;
14320 arg3 = (bool) SWIG_AsBool(obj2);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 {
14323 PyThreadState* __tstate = wxPyBeginAllowThreads();
14324 (arg1)->SetAxisOrientation(arg2,arg3);
14325
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 Py_INCREF(Py_None); resultobj = Py_None;
14330 return resultobj;
14331 fail:
14332 return NULL;
14333 }
14334
14335
14336 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14337 PyObject *resultobj;
14338 wxDC *arg1 = (wxDC *) 0 ;
14339 int result;
14340 PyObject * obj0 = 0 ;
14341 char *kwnames[] = {
14342 (char *) "self", NULL
14343 };
14344
14345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14346 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14347 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14348 {
14349 PyThreadState* __tstate = wxPyBeginAllowThreads();
14350 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14351
14352 wxPyEndAllowThreads(__tstate);
14353 if (PyErr_Occurred()) SWIG_fail;
14354 }
14355 resultobj = SWIG_FromInt((int)result);
14356 return resultobj;
14357 fail:
14358 return NULL;
14359 }
14360
14361
14362 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14363 PyObject *resultobj;
14364 wxDC *arg1 = (wxDC *) 0 ;
14365 int arg2 ;
14366 PyObject * obj0 = 0 ;
14367 PyObject * obj1 = 0 ;
14368 char *kwnames[] = {
14369 (char *) "self",(char *) "function", NULL
14370 };
14371
14372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14375 arg2 = (int) SWIG_AsInt(obj1);
14376 if (PyErr_Occurred()) SWIG_fail;
14377 {
14378 PyThreadState* __tstate = wxPyBeginAllowThreads();
14379 (arg1)->SetLogicalFunction(arg2);
14380
14381 wxPyEndAllowThreads(__tstate);
14382 if (PyErr_Occurred()) SWIG_fail;
14383 }
14384 Py_INCREF(Py_None); resultobj = Py_None;
14385 return resultobj;
14386 fail:
14387 return NULL;
14388 }
14389
14390
14391 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14392 PyObject *resultobj;
14393 wxDC *arg1 = (wxDC *) 0 ;
14394 bool arg2 ;
14395 PyObject * obj0 = 0 ;
14396 PyObject * obj1 = 0 ;
14397 char *kwnames[] = {
14398 (char *) "self",(char *) "opt", NULL
14399 };
14400
14401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14404 arg2 = (bool) SWIG_AsBool(obj1);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 {
14407 PyThreadState* __tstate = wxPyBeginAllowThreads();
14408 (arg1)->SetOptimization(arg2);
14409
14410 wxPyEndAllowThreads(__tstate);
14411 if (PyErr_Occurred()) SWIG_fail;
14412 }
14413 Py_INCREF(Py_None); resultobj = Py_None;
14414 return resultobj;
14415 fail:
14416 return NULL;
14417 }
14418
14419
14420 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14421 PyObject *resultobj;
14422 wxDC *arg1 = (wxDC *) 0 ;
14423 bool result;
14424 PyObject * obj0 = 0 ;
14425 char *kwnames[] = {
14426 (char *) "self", NULL
14427 };
14428
14429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 result = (bool)(arg1)->GetOptimization();
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 {
14440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14441 }
14442 return resultobj;
14443 fail:
14444 return NULL;
14445 }
14446
14447
14448 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14449 PyObject *resultobj;
14450 wxDC *arg1 = (wxDC *) 0 ;
14451 int arg2 ;
14452 int arg3 ;
14453 PyObject * obj0 = 0 ;
14454 PyObject * obj1 = 0 ;
14455 PyObject * obj2 = 0 ;
14456 char *kwnames[] = {
14457 (char *) "self",(char *) "x",(char *) "y", NULL
14458 };
14459
14460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14463 arg2 = (int) SWIG_AsInt(obj1);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 arg3 = (int) SWIG_AsInt(obj2);
14466 if (PyErr_Occurred()) SWIG_fail;
14467 {
14468 PyThreadState* __tstate = wxPyBeginAllowThreads();
14469 (arg1)->CalcBoundingBox(arg2,arg3);
14470
14471 wxPyEndAllowThreads(__tstate);
14472 if (PyErr_Occurred()) SWIG_fail;
14473 }
14474 Py_INCREF(Py_None); resultobj = Py_None;
14475 return resultobj;
14476 fail:
14477 return NULL;
14478 }
14479
14480
14481 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14482 PyObject *resultobj;
14483 wxDC *arg1 = (wxDC *) 0 ;
14484 wxPoint *arg2 = 0 ;
14485 wxPoint temp2 ;
14486 PyObject * obj0 = 0 ;
14487 PyObject * obj1 = 0 ;
14488 char *kwnames[] = {
14489 (char *) "self",(char *) "point", NULL
14490 };
14491
14492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14495 {
14496 arg2 = &temp2;
14497 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14498 }
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14502
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 Py_INCREF(Py_None); resultobj = Py_None;
14507 return resultobj;
14508 fail:
14509 return NULL;
14510 }
14511
14512
14513 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14514 PyObject *resultobj;
14515 wxDC *arg1 = (wxDC *) 0 ;
14516 PyObject * obj0 = 0 ;
14517 char *kwnames[] = {
14518 (char *) "self", NULL
14519 };
14520
14521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14524 {
14525 PyThreadState* __tstate = wxPyBeginAllowThreads();
14526 (arg1)->ResetBoundingBox();
14527
14528 wxPyEndAllowThreads(__tstate);
14529 if (PyErr_Occurred()) SWIG_fail;
14530 }
14531 Py_INCREF(Py_None); resultobj = Py_None;
14532 return resultobj;
14533 fail:
14534 return NULL;
14535 }
14536
14537
14538 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14539 PyObject *resultobj;
14540 wxDC *arg1 = (wxDC *) 0 ;
14541 int result;
14542 PyObject * obj0 = 0 ;
14543 char *kwnames[] = {
14544 (char *) "self", NULL
14545 };
14546
14547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14548 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14549 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14550 {
14551 PyThreadState* __tstate = wxPyBeginAllowThreads();
14552 result = (int)((wxDC const *)arg1)->MinX();
14553
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 resultobj = SWIG_FromInt((int)result);
14558 return resultobj;
14559 fail:
14560 return NULL;
14561 }
14562
14563
14564 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj;
14566 wxDC *arg1 = (wxDC *) 0 ;
14567 int result;
14568 PyObject * obj0 = 0 ;
14569 char *kwnames[] = {
14570 (char *) "self", NULL
14571 };
14572
14573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14576 {
14577 PyThreadState* __tstate = wxPyBeginAllowThreads();
14578 result = (int)((wxDC const *)arg1)->MaxX();
14579
14580 wxPyEndAllowThreads(__tstate);
14581 if (PyErr_Occurred()) SWIG_fail;
14582 }
14583 resultobj = SWIG_FromInt((int)result);
14584 return resultobj;
14585 fail:
14586 return NULL;
14587 }
14588
14589
14590 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14591 PyObject *resultobj;
14592 wxDC *arg1 = (wxDC *) 0 ;
14593 int result;
14594 PyObject * obj0 = 0 ;
14595 char *kwnames[] = {
14596 (char *) "self", NULL
14597 };
14598
14599 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14600 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14601 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14602 {
14603 PyThreadState* __tstate = wxPyBeginAllowThreads();
14604 result = (int)((wxDC const *)arg1)->MinY();
14605
14606 wxPyEndAllowThreads(__tstate);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 resultobj = SWIG_FromInt((int)result);
14610 return resultobj;
14611 fail:
14612 return NULL;
14613 }
14614
14615
14616 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14617 PyObject *resultobj;
14618 wxDC *arg1 = (wxDC *) 0 ;
14619 int result;
14620 PyObject * obj0 = 0 ;
14621 char *kwnames[] = {
14622 (char *) "self", NULL
14623 };
14624
14625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14628 {
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 result = (int)((wxDC const *)arg1)->MaxY();
14631
14632 wxPyEndAllowThreads(__tstate);
14633 if (PyErr_Occurred()) SWIG_fail;
14634 }
14635 resultobj = SWIG_FromInt((int)result);
14636 return resultobj;
14637 fail:
14638 return NULL;
14639 }
14640
14641
14642 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14643 PyObject *resultobj;
14644 wxDC *arg1 = (wxDC *) 0 ;
14645 int *arg2 = (int *) 0 ;
14646 int *arg3 = (int *) 0 ;
14647 int *arg4 = (int *) 0 ;
14648 int *arg5 = (int *) 0 ;
14649 int temp2 ;
14650 int temp3 ;
14651 int temp4 ;
14652 int temp5 ;
14653 PyObject * obj0 = 0 ;
14654 char *kwnames[] = {
14655 (char *) "self", NULL
14656 };
14657
14658 arg2 = &temp2;
14659 arg3 = &temp3;
14660 arg4 = &temp4;
14661 arg5 = &temp5;
14662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14665 {
14666 PyThreadState* __tstate = wxPyBeginAllowThreads();
14667 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14668
14669 wxPyEndAllowThreads(__tstate);
14670 if (PyErr_Occurred()) SWIG_fail;
14671 }
14672 Py_INCREF(Py_None); resultobj = Py_None;
14673 {
14674 PyObject *o = PyInt_FromLong((long) (*arg2));
14675 resultobj = t_output_helper(resultobj,o);
14676 }
14677 {
14678 PyObject *o = PyInt_FromLong((long) (*arg3));
14679 resultobj = t_output_helper(resultobj,o);
14680 }
14681 {
14682 PyObject *o = PyInt_FromLong((long) (*arg4));
14683 resultobj = t_output_helper(resultobj,o);
14684 }
14685 {
14686 PyObject *o = PyInt_FromLong((long) (*arg5));
14687 resultobj = t_output_helper(resultobj,o);
14688 }
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14696 PyObject *resultobj;
14697 wxDC *arg1 = (wxDC *) 0 ;
14698 PyObject *arg2 = (PyObject *) 0 ;
14699 PyObject *arg3 = (PyObject *) 0 ;
14700 PyObject *arg4 = (PyObject *) 0 ;
14701 PyObject *result;
14702 PyObject * obj0 = 0 ;
14703 PyObject * obj1 = 0 ;
14704 PyObject * obj2 = 0 ;
14705 PyObject * obj3 = 0 ;
14706 char *kwnames[] = {
14707 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14708 };
14709
14710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14713 arg2 = obj1;
14714 arg3 = obj2;
14715 arg4 = obj3;
14716 {
14717 PyThreadState* __tstate = wxPyBeginAllowThreads();
14718 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14719
14720 wxPyEndAllowThreads(__tstate);
14721 if (PyErr_Occurred()) SWIG_fail;
14722 }
14723 resultobj = result;
14724 return resultobj;
14725 fail:
14726 return NULL;
14727 }
14728
14729
14730 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14731 PyObject *resultobj;
14732 wxDC *arg1 = (wxDC *) 0 ;
14733 PyObject *arg2 = (PyObject *) 0 ;
14734 PyObject *arg3 = (PyObject *) 0 ;
14735 PyObject *arg4 = (PyObject *) 0 ;
14736 PyObject *result;
14737 PyObject * obj0 = 0 ;
14738 PyObject * obj1 = 0 ;
14739 PyObject * obj2 = 0 ;
14740 PyObject * obj3 = 0 ;
14741 char *kwnames[] = {
14742 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14743 };
14744
14745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14748 arg2 = obj1;
14749 arg3 = obj2;
14750 arg4 = obj3;
14751 {
14752 PyThreadState* __tstate = wxPyBeginAllowThreads();
14753 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14754
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 resultobj = result;
14759 return resultobj;
14760 fail:
14761 return NULL;
14762 }
14763
14764
14765 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14766 PyObject *resultobj;
14767 wxDC *arg1 = (wxDC *) 0 ;
14768 PyObject *arg2 = (PyObject *) 0 ;
14769 PyObject *arg3 = (PyObject *) 0 ;
14770 PyObject *arg4 = (PyObject *) 0 ;
14771 PyObject *result;
14772 PyObject * obj0 = 0 ;
14773 PyObject * obj1 = 0 ;
14774 PyObject * obj2 = 0 ;
14775 PyObject * obj3 = 0 ;
14776 char *kwnames[] = {
14777 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14778 };
14779
14780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14783 arg2 = obj1;
14784 arg3 = obj2;
14785 arg4 = obj3;
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14789
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 resultobj = result;
14794 return resultobj;
14795 fail:
14796 return NULL;
14797 }
14798
14799
14800 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14801 PyObject *resultobj;
14802 wxDC *arg1 = (wxDC *) 0 ;
14803 PyObject *arg2 = (PyObject *) 0 ;
14804 PyObject *arg3 = (PyObject *) 0 ;
14805 PyObject *arg4 = (PyObject *) 0 ;
14806 PyObject *result;
14807 PyObject * obj0 = 0 ;
14808 PyObject * obj1 = 0 ;
14809 PyObject * obj2 = 0 ;
14810 PyObject * obj3 = 0 ;
14811 char *kwnames[] = {
14812 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14813 };
14814
14815 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14816 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14817 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14818 arg2 = obj1;
14819 arg3 = obj2;
14820 arg4 = obj3;
14821 {
14822 PyThreadState* __tstate = wxPyBeginAllowThreads();
14823 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14824
14825 wxPyEndAllowThreads(__tstate);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 }
14828 resultobj = result;
14829 return resultobj;
14830 fail:
14831 return NULL;
14832 }
14833
14834
14835 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14836 PyObject *resultobj;
14837 wxDC *arg1 = (wxDC *) 0 ;
14838 PyObject *arg2 = (PyObject *) 0 ;
14839 PyObject *arg3 = (PyObject *) 0 ;
14840 PyObject *arg4 = (PyObject *) 0 ;
14841 PyObject *result;
14842 PyObject * obj0 = 0 ;
14843 PyObject * obj1 = 0 ;
14844 PyObject * obj2 = 0 ;
14845 PyObject * obj3 = 0 ;
14846 char *kwnames[] = {
14847 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14848 };
14849
14850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14853 arg2 = obj1;
14854 arg3 = obj2;
14855 arg4 = obj3;
14856 {
14857 PyThreadState* __tstate = wxPyBeginAllowThreads();
14858 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14859
14860 wxPyEndAllowThreads(__tstate);
14861 if (PyErr_Occurred()) SWIG_fail;
14862 }
14863 resultobj = result;
14864 return resultobj;
14865 fail:
14866 return NULL;
14867 }
14868
14869
14870 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14871 PyObject *resultobj;
14872 wxDC *arg1 = (wxDC *) 0 ;
14873 PyObject *arg2 = (PyObject *) 0 ;
14874 PyObject *arg3 = (PyObject *) 0 ;
14875 PyObject *arg4 = (PyObject *) 0 ;
14876 PyObject *arg5 = (PyObject *) 0 ;
14877 PyObject *result;
14878 PyObject * obj0 = 0 ;
14879 PyObject * obj1 = 0 ;
14880 PyObject * obj2 = 0 ;
14881 PyObject * obj3 = 0 ;
14882 PyObject * obj4 = 0 ;
14883 char *kwnames[] = {
14884 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14885 };
14886
14887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14890 arg2 = obj1;
14891 arg3 = obj2;
14892 arg4 = obj3;
14893 arg5 = obj4;
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14897
14898 wxPyEndAllowThreads(__tstate);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 }
14901 resultobj = result;
14902 return resultobj;
14903 fail:
14904 return NULL;
14905 }
14906
14907
14908 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14909 PyObject *obj;
14910 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14911 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14912 Py_INCREF(obj);
14913 return Py_BuildValue((char *)"");
14914 }
14915 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 wxMemoryDC *result;
14918 char *kwnames[] = {
14919 NULL
14920 };
14921
14922 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
14923 {
14924 PyThreadState* __tstate = wxPyBeginAllowThreads();
14925 result = (wxMemoryDC *)new wxMemoryDC();
14926
14927 wxPyEndAllowThreads(__tstate);
14928 if (PyErr_Occurred()) SWIG_fail;
14929 }
14930 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14931 return resultobj;
14932 fail:
14933 return NULL;
14934 }
14935
14936
14937 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14938 PyObject *resultobj;
14939 wxDC *arg1 = (wxDC *) 0 ;
14940 wxMemoryDC *result;
14941 PyObject * obj0 = 0 ;
14942 char *kwnames[] = {
14943 (char *) "oldDC", NULL
14944 };
14945
14946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
14947 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14948 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (wxMemoryDC *)new wxMemoryDC(arg1);
14952
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
14966 wxBitmap *arg2 = 0 ;
14967 PyObject * obj0 = 0 ;
14968 PyObject * obj1 = 0 ;
14969 char *kwnames[] = {
14970 (char *) "self",(char *) "bitmap", NULL
14971 };
14972
14973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
14974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
14975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14976 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
14977 SWIG_POINTER_EXCEPTION | 0)) == -1)
14978 SWIG_fail;
14979 if (arg2 == NULL) {
14980 PyErr_SetString(PyExc_TypeError,"null reference");
14981 SWIG_fail;
14982 }
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 (arg1)->SelectObject((wxBitmap const &)*arg2);
14986
14987 wxPyEndAllowThreads(__tstate);
14988 if (PyErr_Occurred()) SWIG_fail;
14989 }
14990 Py_INCREF(Py_None); resultobj = Py_None;
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
14998 PyObject *obj;
14999 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15000 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15001 Py_INCREF(obj);
15002 return Py_BuildValue((char *)"");
15003 }
15004 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15005 PyObject *resultobj;
15006 wxDC *arg1 = (wxDC *) 0 ;
15007 wxBitmap *arg2 = 0 ;
15008 wxBufferedDC *result;
15009 PyObject * obj0 = 0 ;
15010 PyObject * obj1 = 0 ;
15011
15012 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15013 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15015 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15016 SWIG_POINTER_EXCEPTION | 0)) == -1)
15017 SWIG_fail;
15018 if (arg2 == NULL) {
15019 PyErr_SetString(PyExc_TypeError,"null reference");
15020 SWIG_fail;
15021 }
15022 {
15023 PyThreadState* __tstate = wxPyBeginAllowThreads();
15024 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15025
15026 wxPyEndAllowThreads(__tstate);
15027 if (PyErr_Occurred()) SWIG_fail;
15028 }
15029 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15030 return resultobj;
15031 fail:
15032 return NULL;
15033 }
15034
15035
15036 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15037 PyObject *resultobj;
15038 wxDC *arg1 = (wxDC *) 0 ;
15039 wxSize *arg2 = 0 ;
15040 wxBufferedDC *result;
15041 wxSize temp2 ;
15042 PyObject * obj0 = 0 ;
15043 PyObject * obj1 = 0 ;
15044
15045 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15048 {
15049 arg2 = &temp2;
15050 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15051 }
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15067 int argc;
15068 PyObject *argv[3];
15069 int ii;
15070
15071 argc = PyObject_Length(args);
15072 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15073 argv[ii] = PyTuple_GetItem(args,ii);
15074 }
15075 if (argc == 2) {
15076 int _v;
15077 {
15078 void *ptr;
15079 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15080 _v = 0;
15081 PyErr_Clear();
15082 } else {
15083 _v = 1;
15084 }
15085 }
15086 if (_v) {
15087 {
15088 void *ptr;
15089 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15090 _v = 0;
15091 PyErr_Clear();
15092 } else {
15093 _v = 1;
15094 }
15095 }
15096 if (_v) {
15097 return _wrap_new_BufferedDC__SWIG_0(self,args);
15098 }
15099 }
15100 }
15101 if (argc == 2) {
15102 int _v;
15103 {
15104 void *ptr;
15105 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15106 _v = 0;
15107 PyErr_Clear();
15108 } else {
15109 _v = 1;
15110 }
15111 }
15112 if (_v) {
15113 {
15114 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15115 }
15116 if (_v) {
15117 return _wrap_new_BufferedDC__SWIG_1(self,args);
15118 }
15119 }
15120 }
15121
15122 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15123 return NULL;
15124 }
15125
15126
15127 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15128 PyObject *resultobj;
15129 wxDC *arg1 = (wxDC *) 0 ;
15130 wxSize *arg2 = 0 ;
15131 wxBufferedDC *result;
15132 wxSize temp2 ;
15133 PyObject * obj0 = 0 ;
15134 PyObject * obj1 = 0 ;
15135
15136 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15139 {
15140 arg2 = &temp2;
15141 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15142 }
15143 {
15144 PyThreadState* __tstate = wxPyBeginAllowThreads();
15145 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15146
15147 wxPyEndAllowThreads(__tstate);
15148 if (PyErr_Occurred()) SWIG_fail;
15149 }
15150 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15151 return resultobj;
15152 fail:
15153 return NULL;
15154 }
15155
15156
15157 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15158 PyObject *resultobj;
15159 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15160 PyObject * obj0 = 0 ;
15161 char *kwnames[] = {
15162 (char *) "self", NULL
15163 };
15164
15165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 delete arg1;
15171
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 Py_INCREF(Py_None); resultobj = Py_None;
15176 return resultobj;
15177 fail:
15178 return NULL;
15179 }
15180
15181
15182 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15183 PyObject *resultobj;
15184 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15185 PyObject * obj0 = 0 ;
15186 char *kwnames[] = {
15187 (char *) "self", NULL
15188 };
15189
15190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15193 {
15194 PyThreadState* __tstate = wxPyBeginAllowThreads();
15195 (arg1)->UnMask();
15196
15197 wxPyEndAllowThreads(__tstate);
15198 if (PyErr_Occurred()) SWIG_fail;
15199 }
15200 Py_INCREF(Py_None); resultobj = Py_None;
15201 return resultobj;
15202 fail:
15203 return NULL;
15204 }
15205
15206
15207 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15208 PyObject *obj;
15209 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15210 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15211 Py_INCREF(obj);
15212 return Py_BuildValue((char *)"");
15213 }
15214 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15215 PyObject *resultobj;
15216 wxWindow *arg1 = (wxWindow *) 0 ;
15217 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15218 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15219 wxBufferedPaintDC *result;
15220 PyObject * obj0 = 0 ;
15221 PyObject * obj1 = 0 ;
15222 char *kwnames[] = {
15223 (char *) "window",(char *) "buffer", NULL
15224 };
15225
15226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15227 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15228 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15229 if (obj1) {
15230 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15231 SWIG_POINTER_EXCEPTION | 0)) == -1)
15232 SWIG_fail;
15233 if (arg2 == NULL) {
15234 PyErr_SetString(PyExc_TypeError,"null reference");
15235 SWIG_fail;
15236 }
15237 }
15238 {
15239 PyThreadState* __tstate = wxPyBeginAllowThreads();
15240 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15241
15242 wxPyEndAllowThreads(__tstate);
15243 if (PyErr_Occurred()) SWIG_fail;
15244 }
15245 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15246 return resultobj;
15247 fail:
15248 return NULL;
15249 }
15250
15251
15252 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15253 PyObject *obj;
15254 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15255 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15256 Py_INCREF(obj);
15257 return Py_BuildValue((char *)"");
15258 }
15259 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15260 PyObject *resultobj;
15261 wxScreenDC *result;
15262 char *kwnames[] = {
15263 NULL
15264 };
15265
15266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15267 {
15268 PyThreadState* __tstate = wxPyBeginAllowThreads();
15269 result = (wxScreenDC *)new wxScreenDC();
15270
15271 wxPyEndAllowThreads(__tstate);
15272 if (PyErr_Occurred()) SWIG_fail;
15273 }
15274 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15275 return resultobj;
15276 fail:
15277 return NULL;
15278 }
15279
15280
15281 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15282 PyObject *resultobj;
15283 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15284 wxWindow *arg2 = (wxWindow *) 0 ;
15285 bool result;
15286 PyObject * obj0 = 0 ;
15287 PyObject * obj1 = 0 ;
15288 char *kwnames[] = {
15289 (char *) "self",(char *) "window", NULL
15290 };
15291
15292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15295 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15300
15301 wxPyEndAllowThreads(__tstate);
15302 if (PyErr_Occurred()) SWIG_fail;
15303 }
15304 {
15305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15306 }
15307 return resultobj;
15308 fail:
15309 return NULL;
15310 }
15311
15312
15313 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15314 PyObject *resultobj;
15315 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15316 wxRect *arg2 = (wxRect *) NULL ;
15317 bool result;
15318 PyObject * obj0 = 0 ;
15319 PyObject * obj1 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "self",(char *) "rect", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15327 if (obj1) {
15328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15330 }
15331 {
15332 PyThreadState* __tstate = wxPyBeginAllowThreads();
15333 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15334
15335 wxPyEndAllowThreads(__tstate);
15336 if (PyErr_Occurred()) SWIG_fail;
15337 }
15338 {
15339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15340 }
15341 return resultobj;
15342 fail:
15343 return NULL;
15344 }
15345
15346
15347 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15348 PyObject *resultobj;
15349 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15350 bool result;
15351 PyObject * obj0 = 0 ;
15352 char *kwnames[] = {
15353 (char *) "self", NULL
15354 };
15355
15356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15359 {
15360 PyThreadState* __tstate = wxPyBeginAllowThreads();
15361 result = (bool)(arg1)->EndDrawingOnTop();
15362
15363 wxPyEndAllowThreads(__tstate);
15364 if (PyErr_Occurred()) SWIG_fail;
15365 }
15366 {
15367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15368 }
15369 return resultobj;
15370 fail:
15371 return NULL;
15372 }
15373
15374
15375 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15376 PyObject *obj;
15377 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15378 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15379 Py_INCREF(obj);
15380 return Py_BuildValue((char *)"");
15381 }
15382 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15383 PyObject *resultobj;
15384 wxWindow *arg1 = (wxWindow *) 0 ;
15385 wxClientDC *result;
15386 PyObject * obj0 = 0 ;
15387 char *kwnames[] = {
15388 (char *) "win", NULL
15389 };
15390
15391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15394 {
15395 PyThreadState* __tstate = wxPyBeginAllowThreads();
15396 result = (wxClientDC *)new wxClientDC(arg1);
15397
15398 wxPyEndAllowThreads(__tstate);
15399 if (PyErr_Occurred()) SWIG_fail;
15400 }
15401 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15402 return resultobj;
15403 fail:
15404 return NULL;
15405 }
15406
15407
15408 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15409 PyObject *obj;
15410 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15411 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15412 Py_INCREF(obj);
15413 return Py_BuildValue((char *)"");
15414 }
15415 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15416 PyObject *resultobj;
15417 wxWindow *arg1 = (wxWindow *) 0 ;
15418 wxPaintDC *result;
15419 PyObject * obj0 = 0 ;
15420 char *kwnames[] = {
15421 (char *) "win", NULL
15422 };
15423
15424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15427 {
15428 PyThreadState* __tstate = wxPyBeginAllowThreads();
15429 result = (wxPaintDC *)new wxPaintDC(arg1);
15430
15431 wxPyEndAllowThreads(__tstate);
15432 if (PyErr_Occurred()) SWIG_fail;
15433 }
15434 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15435 return resultobj;
15436 fail:
15437 return NULL;
15438 }
15439
15440
15441 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15442 PyObject *obj;
15443 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15444 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15445 Py_INCREF(obj);
15446 return Py_BuildValue((char *)"");
15447 }
15448 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15449 PyObject *resultobj;
15450 wxWindow *arg1 = (wxWindow *) 0 ;
15451 wxWindowDC *result;
15452 PyObject * obj0 = 0 ;
15453 char *kwnames[] = {
15454 (char *) "win", NULL
15455 };
15456
15457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15460 {
15461 PyThreadState* __tstate = wxPyBeginAllowThreads();
15462 result = (wxWindowDC *)new wxWindowDC(arg1);
15463
15464 wxPyEndAllowThreads(__tstate);
15465 if (PyErr_Occurred()) SWIG_fail;
15466 }
15467 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15468 return resultobj;
15469 fail:
15470 return NULL;
15471 }
15472
15473
15474 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15475 PyObject *obj;
15476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15477 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15478 Py_INCREF(obj);
15479 return Py_BuildValue((char *)"");
15480 }
15481 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15482 PyObject *resultobj;
15483 wxDC *arg1 = 0 ;
15484 bool arg2 ;
15485 wxMirrorDC *result;
15486 PyObject * obj0 = 0 ;
15487 PyObject * obj1 = 0 ;
15488 char *kwnames[] = {
15489 (char *) "dc",(char *) "mirror", NULL
15490 };
15491
15492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15494 SWIG_POINTER_EXCEPTION | 0)) == -1)
15495 SWIG_fail;
15496 if (arg1 == NULL) {
15497 PyErr_SetString(PyExc_TypeError,"null reference");
15498 SWIG_fail;
15499 }
15500 arg2 = (bool) SWIG_AsBool(obj1);
15501 if (PyErr_Occurred()) SWIG_fail;
15502 {
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15505
15506 wxPyEndAllowThreads(__tstate);
15507 if (PyErr_Occurred()) SWIG_fail;
15508 }
15509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15510 return resultobj;
15511 fail:
15512 return NULL;
15513 }
15514
15515
15516 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15517 PyObject *obj;
15518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15519 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15520 Py_INCREF(obj);
15521 return Py_BuildValue((char *)"");
15522 }
15523 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj;
15525 wxPrintData *arg1 = 0 ;
15526 wxPostScriptDC *result;
15527 PyObject * obj0 = 0 ;
15528 char *kwnames[] = {
15529 (char *) "printData", NULL
15530 };
15531
15532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15534 SWIG_POINTER_EXCEPTION | 0)) == -1)
15535 SWIG_fail;
15536 if (arg1 == NULL) {
15537 PyErr_SetString(PyExc_TypeError,"null reference");
15538 SWIG_fail;
15539 }
15540 {
15541 PyThreadState* __tstate = wxPyBeginAllowThreads();
15542 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15543
15544 wxPyEndAllowThreads(__tstate);
15545 if (PyErr_Occurred()) SWIG_fail;
15546 }
15547 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15548 return resultobj;
15549 fail:
15550 return NULL;
15551 }
15552
15553
15554 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15555 PyObject *resultobj;
15556 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15557 wxPrintData *result;
15558 PyObject * obj0 = 0 ;
15559 char *kwnames[] = {
15560 (char *) "self", NULL
15561 };
15562
15563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15566 {
15567 PyThreadState* __tstate = wxPyBeginAllowThreads();
15568 {
15569 wxPrintData &_result_ref = (arg1)->GetPrintData();
15570 result = (wxPrintData *) &_result_ref;
15571 }
15572
15573 wxPyEndAllowThreads(__tstate);
15574 if (PyErr_Occurred()) SWIG_fail;
15575 }
15576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15577 return resultobj;
15578 fail:
15579 return NULL;
15580 }
15581
15582
15583 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15584 PyObject *resultobj;
15585 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15586 wxPrintData *arg2 = 0 ;
15587 PyObject * obj0 = 0 ;
15588 PyObject * obj1 = 0 ;
15589 char *kwnames[] = {
15590 (char *) "self",(char *) "data", NULL
15591 };
15592
15593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15597 SWIG_POINTER_EXCEPTION | 0)) == -1)
15598 SWIG_fail;
15599 if (arg2 == NULL) {
15600 PyErr_SetString(PyExc_TypeError,"null reference");
15601 SWIG_fail;
15602 }
15603 {
15604 PyThreadState* __tstate = wxPyBeginAllowThreads();
15605 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15606
15607 wxPyEndAllowThreads(__tstate);
15608 if (PyErr_Occurred()) SWIG_fail;
15609 }
15610 Py_INCREF(Py_None); resultobj = Py_None;
15611 return resultobj;
15612 fail:
15613 return NULL;
15614 }
15615
15616
15617 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15618 PyObject *resultobj;
15619 int arg1 ;
15620 PyObject * obj0 = 0 ;
15621 char *kwnames[] = {
15622 (char *) "ppi", NULL
15623 };
15624
15625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15626 arg1 = (int) SWIG_AsInt(obj0);
15627 if (PyErr_Occurred()) SWIG_fail;
15628 {
15629 PyThreadState* __tstate = wxPyBeginAllowThreads();
15630 wxPostScriptDC::SetResolution(arg1);
15631
15632 wxPyEndAllowThreads(__tstate);
15633 if (PyErr_Occurred()) SWIG_fail;
15634 }
15635 Py_INCREF(Py_None); resultobj = Py_None;
15636 return resultobj;
15637 fail:
15638 return NULL;
15639 }
15640
15641
15642 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15643 PyObject *resultobj;
15644 int result;
15645 char *kwnames[] = {
15646 NULL
15647 };
15648
15649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15650 {
15651 PyThreadState* __tstate = wxPyBeginAllowThreads();
15652 result = (int)wxPostScriptDC::GetResolution();
15653
15654 wxPyEndAllowThreads(__tstate);
15655 if (PyErr_Occurred()) SWIG_fail;
15656 }
15657 resultobj = SWIG_FromInt((int)result);
15658 return resultobj;
15659 fail:
15660 return NULL;
15661 }
15662
15663
15664 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15665 PyObject *obj;
15666 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15667 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15668 Py_INCREF(obj);
15669 return Py_BuildValue((char *)"");
15670 }
15671 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15672 PyObject *resultobj;
15673 wxString const &arg1_defvalue = wxPyEmptyString ;
15674 wxString *arg1 = (wxString *) &arg1_defvalue ;
15675 wxMetaFile *result;
15676 bool temp1 = False ;
15677 PyObject * obj0 = 0 ;
15678 char *kwnames[] = {
15679 (char *) "filename", NULL
15680 };
15681
15682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15683 if (obj0) {
15684 {
15685 arg1 = wxString_in_helper(obj0);
15686 if (arg1 == NULL) SWIG_fail;
15687 temp1 = True;
15688 }
15689 }
15690 {
15691 PyThreadState* __tstate = wxPyBeginAllowThreads();
15692 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15693
15694 wxPyEndAllowThreads(__tstate);
15695 if (PyErr_Occurred()) SWIG_fail;
15696 }
15697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15698 {
15699 if (temp1)
15700 delete arg1;
15701 }
15702 return resultobj;
15703 fail:
15704 {
15705 if (temp1)
15706 delete arg1;
15707 }
15708 return NULL;
15709 }
15710
15711
15712 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15713 PyObject *resultobj;
15714 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15715 PyObject * obj0 = 0 ;
15716 char *kwnames[] = {
15717 (char *) "self", NULL
15718 };
15719
15720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15723 {
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 delete arg1;
15726
15727 wxPyEndAllowThreads(__tstate);
15728 if (PyErr_Occurred()) SWIG_fail;
15729 }
15730 Py_INCREF(Py_None); resultobj = Py_None;
15731 return resultobj;
15732 fail:
15733 return NULL;
15734 }
15735
15736
15737 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15738 PyObject *resultobj;
15739 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15740 bool result;
15741 PyObject * obj0 = 0 ;
15742 char *kwnames[] = {
15743 (char *) "self", NULL
15744 };
15745
15746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15748 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15749 {
15750 PyThreadState* __tstate = wxPyBeginAllowThreads();
15751 result = (bool)(arg1)->Ok();
15752
15753 wxPyEndAllowThreads(__tstate);
15754 if (PyErr_Occurred()) SWIG_fail;
15755 }
15756 {
15757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15758 }
15759 return resultobj;
15760 fail:
15761 return NULL;
15762 }
15763
15764
15765 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15766 PyObject *resultobj;
15767 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15768 int arg2 = (int) 0 ;
15769 int arg3 = (int) 0 ;
15770 bool result;
15771 PyObject * obj0 = 0 ;
15772 PyObject * obj1 = 0 ;
15773 PyObject * obj2 = 0 ;
15774 char *kwnames[] = {
15775 (char *) "self",(char *) "width",(char *) "height", NULL
15776 };
15777
15778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15781 if (obj1) {
15782 arg2 = (int) SWIG_AsInt(obj1);
15783 if (PyErr_Occurred()) SWIG_fail;
15784 }
15785 if (obj2) {
15786 arg3 = (int) SWIG_AsInt(obj2);
15787 if (PyErr_Occurred()) SWIG_fail;
15788 }
15789 {
15790 PyThreadState* __tstate = wxPyBeginAllowThreads();
15791 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15792
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 {
15797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15798 }
15799 return resultobj;
15800 fail:
15801 return NULL;
15802 }
15803
15804
15805 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15806 PyObject *resultobj;
15807 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15808 wxSize result;
15809 PyObject * obj0 = 0 ;
15810 char *kwnames[] = {
15811 (char *) "self", NULL
15812 };
15813
15814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 result = (arg1)->GetSize();
15820
15821 wxPyEndAllowThreads(__tstate);
15822 if (PyErr_Occurred()) SWIG_fail;
15823 }
15824 {
15825 wxSize * resultptr;
15826 resultptr = new wxSize((wxSize &) result);
15827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15828 }
15829 return resultobj;
15830 fail:
15831 return NULL;
15832 }
15833
15834
15835 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15836 PyObject *resultobj;
15837 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15838 int result;
15839 PyObject * obj0 = 0 ;
15840 char *kwnames[] = {
15841 (char *) "self", NULL
15842 };
15843
15844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (int)(arg1)->GetWidth();
15850
15851 wxPyEndAllowThreads(__tstate);
15852 if (PyErr_Occurred()) SWIG_fail;
15853 }
15854 resultobj = SWIG_FromInt((int)result);
15855 return resultobj;
15856 fail:
15857 return NULL;
15858 }
15859
15860
15861 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15862 PyObject *resultobj;
15863 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15864 int result;
15865 PyObject * obj0 = 0 ;
15866 char *kwnames[] = {
15867 (char *) "self", NULL
15868 };
15869
15870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15873 {
15874 PyThreadState* __tstate = wxPyBeginAllowThreads();
15875 result = (int)(arg1)->GetHeight();
15876
15877 wxPyEndAllowThreads(__tstate);
15878 if (PyErr_Occurred()) SWIG_fail;
15879 }
15880 resultobj = SWIG_FromInt((int)result);
15881 return resultobj;
15882 fail:
15883 return NULL;
15884 }
15885
15886
15887 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15888 PyObject *obj;
15889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15890 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15891 Py_INCREF(obj);
15892 return Py_BuildValue((char *)"");
15893 }
15894 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15895 PyObject *resultobj;
15896 wxString const &arg1_defvalue = wxPyEmptyString ;
15897 wxString *arg1 = (wxString *) &arg1_defvalue ;
15898 int arg2 = (int) 0 ;
15899 int arg3 = (int) 0 ;
15900 wxString const &arg4_defvalue = wxPyEmptyString ;
15901 wxString *arg4 = (wxString *) &arg4_defvalue ;
15902 wxMetaFileDC *result;
15903 bool temp1 = False ;
15904 bool temp4 = False ;
15905 PyObject * obj0 = 0 ;
15906 PyObject * obj1 = 0 ;
15907 PyObject * obj2 = 0 ;
15908 PyObject * obj3 = 0 ;
15909 char *kwnames[] = {
15910 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15911 };
15912
15913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15914 if (obj0) {
15915 {
15916 arg1 = wxString_in_helper(obj0);
15917 if (arg1 == NULL) SWIG_fail;
15918 temp1 = True;
15919 }
15920 }
15921 if (obj1) {
15922 arg2 = (int) SWIG_AsInt(obj1);
15923 if (PyErr_Occurred()) SWIG_fail;
15924 }
15925 if (obj2) {
15926 arg3 = (int) SWIG_AsInt(obj2);
15927 if (PyErr_Occurred()) SWIG_fail;
15928 }
15929 if (obj3) {
15930 {
15931 arg4 = wxString_in_helper(obj3);
15932 if (arg4 == NULL) SWIG_fail;
15933 temp4 = True;
15934 }
15935 }
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15939
15940 wxPyEndAllowThreads(__tstate);
15941 if (PyErr_Occurred()) SWIG_fail;
15942 }
15943 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15944 {
15945 if (temp1)
15946 delete arg1;
15947 }
15948 {
15949 if (temp4)
15950 delete arg4;
15951 }
15952 return resultobj;
15953 fail:
15954 {
15955 if (temp1)
15956 delete arg1;
15957 }
15958 {
15959 if (temp4)
15960 delete arg4;
15961 }
15962 return NULL;
15963 }
15964
15965
15966 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
15967 PyObject *resultobj;
15968 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
15969 wxMetaFile *result;
15970 PyObject * obj0 = 0 ;
15971 char *kwnames[] = {
15972 (char *) "self", NULL
15973 };
15974
15975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
15976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
15977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15978 {
15979 PyThreadState* __tstate = wxPyBeginAllowThreads();
15980 result = (wxMetaFile *)(arg1)->Close();
15981
15982 wxPyEndAllowThreads(__tstate);
15983 if (PyErr_Occurred()) SWIG_fail;
15984 }
15985 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
15986 return resultobj;
15987 fail:
15988 return NULL;
15989 }
15990
15991
15992 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15993 PyObject *obj;
15994 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15995 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15996 Py_INCREF(obj);
15997 return Py_BuildValue((char *)"");
15998 }
15999 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16000 PyObject *resultobj;
16001 wxPrintData *arg1 = 0 ;
16002 wxPrinterDC *result;
16003 PyObject * obj0 = 0 ;
16004 char *kwnames[] = {
16005 (char *) "printData", NULL
16006 };
16007
16008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16010 SWIG_POINTER_EXCEPTION | 0)) == -1)
16011 SWIG_fail;
16012 if (arg1 == NULL) {
16013 PyErr_SetString(PyExc_TypeError,"null reference");
16014 SWIG_fail;
16015 }
16016 {
16017 PyThreadState* __tstate = wxPyBeginAllowThreads();
16018 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16019
16020 wxPyEndAllowThreads(__tstate);
16021 if (PyErr_Occurred()) SWIG_fail;
16022 }
16023 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16024 return resultobj;
16025 fail:
16026 return NULL;
16027 }
16028
16029
16030 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16031 PyObject *obj;
16032 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16033 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16034 Py_INCREF(obj);
16035 return Py_BuildValue((char *)"");
16036 }
16037 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16038 PyObject *resultobj;
16039 int arg1 ;
16040 int arg2 ;
16041 int arg3 = (int) True ;
16042 int arg4 = (int) 1 ;
16043 wxImageList *result;
16044 PyObject * obj0 = 0 ;
16045 PyObject * obj1 = 0 ;
16046 PyObject * obj2 = 0 ;
16047 PyObject * obj3 = 0 ;
16048 char *kwnames[] = {
16049 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16050 };
16051
16052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16053 arg1 = (int) SWIG_AsInt(obj0);
16054 if (PyErr_Occurred()) SWIG_fail;
16055 arg2 = (int) SWIG_AsInt(obj1);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 if (obj2) {
16058 arg3 = (int) SWIG_AsInt(obj2);
16059 if (PyErr_Occurred()) SWIG_fail;
16060 }
16061 if (obj3) {
16062 arg4 = (int) SWIG_AsInt(obj3);
16063 if (PyErr_Occurred()) SWIG_fail;
16064 }
16065 {
16066 PyThreadState* __tstate = wxPyBeginAllowThreads();
16067 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16068
16069 wxPyEndAllowThreads(__tstate);
16070 if (PyErr_Occurred()) SWIG_fail;
16071 }
16072 {
16073 resultobj = wxPyMake_wxObject(result);
16074 }
16075 return resultobj;
16076 fail:
16077 return NULL;
16078 }
16079
16080
16081 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16082 PyObject *resultobj;
16083 wxImageList *arg1 = (wxImageList *) 0 ;
16084 PyObject * obj0 = 0 ;
16085 char *kwnames[] = {
16086 (char *) "self", NULL
16087 };
16088
16089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16092 {
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 delete arg1;
16095
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 Py_INCREF(Py_None); resultobj = Py_None;
16100 return resultobj;
16101 fail:
16102 return NULL;
16103 }
16104
16105
16106 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16107 PyObject *resultobj;
16108 wxImageList *arg1 = (wxImageList *) 0 ;
16109 wxBitmap *arg2 = 0 ;
16110 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16111 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16112 int result;
16113 PyObject * obj0 = 0 ;
16114 PyObject * obj1 = 0 ;
16115 PyObject * obj2 = 0 ;
16116 char *kwnames[] = {
16117 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16118 };
16119
16120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16123 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1)
16125 SWIG_fail;
16126 if (arg2 == NULL) {
16127 PyErr_SetString(PyExc_TypeError,"null reference");
16128 SWIG_fail;
16129 }
16130 if (obj2) {
16131 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16132 SWIG_POINTER_EXCEPTION | 0)) == -1)
16133 SWIG_fail;
16134 if (arg3 == NULL) {
16135 PyErr_SetString(PyExc_TypeError,"null reference");
16136 SWIG_fail;
16137 }
16138 }
16139 {
16140 PyThreadState* __tstate = wxPyBeginAllowThreads();
16141 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16142
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 resultobj = SWIG_FromInt((int)result);
16147 return resultobj;
16148 fail:
16149 return NULL;
16150 }
16151
16152
16153 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16154 PyObject *resultobj;
16155 wxImageList *arg1 = (wxImageList *) 0 ;
16156 wxBitmap *arg2 = 0 ;
16157 wxColour *arg3 = 0 ;
16158 int result;
16159 wxColour temp3 ;
16160 PyObject * obj0 = 0 ;
16161 PyObject * obj1 = 0 ;
16162 PyObject * obj2 = 0 ;
16163 char *kwnames[] = {
16164 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16165 };
16166
16167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16170 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16171 SWIG_POINTER_EXCEPTION | 0)) == -1)
16172 SWIG_fail;
16173 if (arg2 == NULL) {
16174 PyErr_SetString(PyExc_TypeError,"null reference");
16175 SWIG_fail;
16176 }
16177 {
16178 arg3 = &temp3;
16179 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16180 }
16181 {
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16184
16185 wxPyEndAllowThreads(__tstate);
16186 if (PyErr_Occurred()) SWIG_fail;
16187 }
16188 resultobj = SWIG_FromInt((int)result);
16189 return resultobj;
16190 fail:
16191 return NULL;
16192 }
16193
16194
16195 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16196 PyObject *resultobj;
16197 wxImageList *arg1 = (wxImageList *) 0 ;
16198 wxIcon *arg2 = 0 ;
16199 int result;
16200 PyObject * obj0 = 0 ;
16201 PyObject * obj1 = 0 ;
16202 char *kwnames[] = {
16203 (char *) "self",(char *) "icon", NULL
16204 };
16205
16206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16209 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16210 SWIG_POINTER_EXCEPTION | 0)) == -1)
16211 SWIG_fail;
16212 if (arg2 == NULL) {
16213 PyErr_SetString(PyExc_TypeError,"null reference");
16214 SWIG_fail;
16215 }
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16219
16220 wxPyEndAllowThreads(__tstate);
16221 if (PyErr_Occurred()) SWIG_fail;
16222 }
16223 resultobj = SWIG_FromInt((int)result);
16224 return resultobj;
16225 fail:
16226 return NULL;
16227 }
16228
16229
16230 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16231 PyObject *resultobj;
16232 wxImageList *arg1 = (wxImageList *) 0 ;
16233 int arg2 ;
16234 wxBitmap *arg3 = 0 ;
16235 bool result;
16236 PyObject * obj0 = 0 ;
16237 PyObject * obj1 = 0 ;
16238 PyObject * obj2 = 0 ;
16239 char *kwnames[] = {
16240 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16241 };
16242
16243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16246 arg2 = (int) SWIG_AsInt(obj1);
16247 if (PyErr_Occurred()) SWIG_fail;
16248 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16249 SWIG_POINTER_EXCEPTION | 0)) == -1)
16250 SWIG_fail;
16251 if (arg3 == NULL) {
16252 PyErr_SetString(PyExc_TypeError,"null reference");
16253 SWIG_fail;
16254 }
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16258
16259 wxPyEndAllowThreads(__tstate);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 {
16263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16264 }
16265 return resultobj;
16266 fail:
16267 return NULL;
16268 }
16269
16270
16271 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16272 PyObject *resultobj;
16273 wxImageList *arg1 = (wxImageList *) 0 ;
16274 int arg2 ;
16275 wxDC *arg3 = 0 ;
16276 int arg4 ;
16277 int arg5 ;
16278 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16279 bool arg7 = (bool) (bool)False ;
16280 bool result;
16281 PyObject * obj0 = 0 ;
16282 PyObject * obj1 = 0 ;
16283 PyObject * obj2 = 0 ;
16284 PyObject * obj3 = 0 ;
16285 PyObject * obj4 = 0 ;
16286 PyObject * obj5 = 0 ;
16287 PyObject * obj6 = 0 ;
16288 char *kwnames[] = {
16289 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16290 };
16291
16292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16295 arg2 = (int) SWIG_AsInt(obj1);
16296 if (PyErr_Occurred()) SWIG_fail;
16297 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16298 SWIG_POINTER_EXCEPTION | 0)) == -1)
16299 SWIG_fail;
16300 if (arg3 == NULL) {
16301 PyErr_SetString(PyExc_TypeError,"null reference");
16302 SWIG_fail;
16303 }
16304 arg4 = (int) SWIG_AsInt(obj3);
16305 if (PyErr_Occurred()) SWIG_fail;
16306 arg5 = (int) SWIG_AsInt(obj4);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 if (obj5) {
16309 arg6 = (int) SWIG_AsInt(obj5);
16310 if (PyErr_Occurred()) SWIG_fail;
16311 }
16312 if (obj6) {
16313 arg7 = (bool const) SWIG_AsBool(obj6);
16314 if (PyErr_Occurred()) SWIG_fail;
16315 }
16316 {
16317 PyThreadState* __tstate = wxPyBeginAllowThreads();
16318 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16319
16320 wxPyEndAllowThreads(__tstate);
16321 if (PyErr_Occurred()) SWIG_fail;
16322 }
16323 {
16324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16325 }
16326 return resultobj;
16327 fail:
16328 return NULL;
16329 }
16330
16331
16332 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16333 PyObject *resultobj;
16334 wxImageList *arg1 = (wxImageList *) 0 ;
16335 int result;
16336 PyObject * obj0 = 0 ;
16337 char *kwnames[] = {
16338 (char *) "self", NULL
16339 };
16340
16341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16344 {
16345 PyThreadState* __tstate = wxPyBeginAllowThreads();
16346 result = (int)(arg1)->GetImageCount();
16347
16348 wxPyEndAllowThreads(__tstate);
16349 if (PyErr_Occurred()) SWIG_fail;
16350 }
16351 resultobj = SWIG_FromInt((int)result);
16352 return resultobj;
16353 fail:
16354 return NULL;
16355 }
16356
16357
16358 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16359 PyObject *resultobj;
16360 wxImageList *arg1 = (wxImageList *) 0 ;
16361 int arg2 ;
16362 bool result;
16363 PyObject * obj0 = 0 ;
16364 PyObject * obj1 = 0 ;
16365 char *kwnames[] = {
16366 (char *) "self",(char *) "index", NULL
16367 };
16368
16369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16372 arg2 = (int) SWIG_AsInt(obj1);
16373 if (PyErr_Occurred()) SWIG_fail;
16374 {
16375 PyThreadState* __tstate = wxPyBeginAllowThreads();
16376 result = (bool)(arg1)->Remove(arg2);
16377
16378 wxPyEndAllowThreads(__tstate);
16379 if (PyErr_Occurred()) SWIG_fail;
16380 }
16381 {
16382 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16383 }
16384 return resultobj;
16385 fail:
16386 return NULL;
16387 }
16388
16389
16390 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16391 PyObject *resultobj;
16392 wxImageList *arg1 = (wxImageList *) 0 ;
16393 bool result;
16394 PyObject * obj0 = 0 ;
16395 char *kwnames[] = {
16396 (char *) "self", NULL
16397 };
16398
16399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16402 {
16403 PyThreadState* __tstate = wxPyBeginAllowThreads();
16404 result = (bool)(arg1)->RemoveAll();
16405
16406 wxPyEndAllowThreads(__tstate);
16407 if (PyErr_Occurred()) SWIG_fail;
16408 }
16409 {
16410 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16411 }
16412 return resultobj;
16413 fail:
16414 return NULL;
16415 }
16416
16417
16418 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16419 PyObject *resultobj;
16420 wxImageList *arg1 = (wxImageList *) 0 ;
16421 int arg2 ;
16422 int *arg3 = 0 ;
16423 int *arg4 = 0 ;
16424 int temp3 ;
16425 int temp4 ;
16426 PyObject * obj0 = 0 ;
16427 PyObject * obj1 = 0 ;
16428 char *kwnames[] = {
16429 (char *) "self",(char *) "index", NULL
16430 };
16431
16432 arg3 = &temp3;
16433 arg4 = &temp4;
16434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16437 arg2 = (int) SWIG_AsInt(obj1);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 {
16440 PyThreadState* __tstate = wxPyBeginAllowThreads();
16441 (arg1)->GetSize(arg2,*arg3,*arg4);
16442
16443 wxPyEndAllowThreads(__tstate);
16444 if (PyErr_Occurred()) SWIG_fail;
16445 }
16446 Py_INCREF(Py_None); resultobj = Py_None;
16447 {
16448 PyObject *o = PyInt_FromLong((long) (*arg3));
16449 resultobj = t_output_helper(resultobj,o);
16450 }
16451 {
16452 PyObject *o = PyInt_FromLong((long) (*arg4));
16453 resultobj = t_output_helper(resultobj,o);
16454 }
16455 return resultobj;
16456 fail:
16457 return NULL;
16458 }
16459
16460
16461 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16462 PyObject *obj;
16463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16464 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16465 Py_INCREF(obj);
16466 return Py_BuildValue((char *)"");
16467 }
16468 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16469 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16470 return 1;
16471 }
16472
16473
16474 static PyObject *_wrap_NORMAL_FONT_get() {
16475 PyObject *pyobj;
16476
16477 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16478 return pyobj;
16479 }
16480
16481
16482 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16483 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16484 return 1;
16485 }
16486
16487
16488 static PyObject *_wrap_SMALL_FONT_get() {
16489 PyObject *pyobj;
16490
16491 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16492 return pyobj;
16493 }
16494
16495
16496 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16497 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16498 return 1;
16499 }
16500
16501
16502 static PyObject *_wrap_ITALIC_FONT_get() {
16503 PyObject *pyobj;
16504
16505 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16506 return pyobj;
16507 }
16508
16509
16510 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16511 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16512 return 1;
16513 }
16514
16515
16516 static PyObject *_wrap_SWISS_FONT_get() {
16517 PyObject *pyobj;
16518
16519 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16520 return pyobj;
16521 }
16522
16523
16524 static int _wrap_RED_PEN_set(PyObject *_val) {
16525 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16526 return 1;
16527 }
16528
16529
16530 static PyObject *_wrap_RED_PEN_get() {
16531 PyObject *pyobj;
16532
16533 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16534 return pyobj;
16535 }
16536
16537
16538 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16539 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16540 return 1;
16541 }
16542
16543
16544 static PyObject *_wrap_CYAN_PEN_get() {
16545 PyObject *pyobj;
16546
16547 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16548 return pyobj;
16549 }
16550
16551
16552 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16553 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16554 return 1;
16555 }
16556
16557
16558 static PyObject *_wrap_GREEN_PEN_get() {
16559 PyObject *pyobj;
16560
16561 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16562 return pyobj;
16563 }
16564
16565
16566 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16567 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16568 return 1;
16569 }
16570
16571
16572 static PyObject *_wrap_BLACK_PEN_get() {
16573 PyObject *pyobj;
16574
16575 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16576 return pyobj;
16577 }
16578
16579
16580 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16581 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16582 return 1;
16583 }
16584
16585
16586 static PyObject *_wrap_WHITE_PEN_get() {
16587 PyObject *pyobj;
16588
16589 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16590 return pyobj;
16591 }
16592
16593
16594 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16595 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16596 return 1;
16597 }
16598
16599
16600 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16601 PyObject *pyobj;
16602
16603 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16604 return pyobj;
16605 }
16606
16607
16608 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16609 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16610 return 1;
16611 }
16612
16613
16614 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16615 PyObject *pyobj;
16616
16617 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16618 return pyobj;
16619 }
16620
16621
16622 static int _wrap_GREY_PEN_set(PyObject *_val) {
16623 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16624 return 1;
16625 }
16626
16627
16628 static PyObject *_wrap_GREY_PEN_get() {
16629 PyObject *pyobj;
16630
16631 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16632 return pyobj;
16633 }
16634
16635
16636 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16637 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16638 return 1;
16639 }
16640
16641
16642 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16643 PyObject *pyobj;
16644
16645 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16646 return pyobj;
16647 }
16648
16649
16650 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16651 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16652 return 1;
16653 }
16654
16655
16656 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16657 PyObject *pyobj;
16658
16659 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16660 return pyobj;
16661 }
16662
16663
16664 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16665 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16666 return 1;
16667 }
16668
16669
16670 static PyObject *_wrap_BLUE_BRUSH_get() {
16671 PyObject *pyobj;
16672
16673 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16674 return pyobj;
16675 }
16676
16677
16678 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16679 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16680 return 1;
16681 }
16682
16683
16684 static PyObject *_wrap_GREEN_BRUSH_get() {
16685 PyObject *pyobj;
16686
16687 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16688 return pyobj;
16689 }
16690
16691
16692 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16693 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16694 return 1;
16695 }
16696
16697
16698 static PyObject *_wrap_WHITE_BRUSH_get() {
16699 PyObject *pyobj;
16700
16701 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16702 return pyobj;
16703 }
16704
16705
16706 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16707 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16708 return 1;
16709 }
16710
16711
16712 static PyObject *_wrap_BLACK_BRUSH_get() {
16713 PyObject *pyobj;
16714
16715 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16716 return pyobj;
16717 }
16718
16719
16720 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16721 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16722 return 1;
16723 }
16724
16725
16726 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16727 PyObject *pyobj;
16728
16729 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16730 return pyobj;
16731 }
16732
16733
16734 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16735 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16736 return 1;
16737 }
16738
16739
16740 static PyObject *_wrap_CYAN_BRUSH_get() {
16741 PyObject *pyobj;
16742
16743 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16744 return pyobj;
16745 }
16746
16747
16748 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16749 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16750 return 1;
16751 }
16752
16753
16754 static PyObject *_wrap_RED_BRUSH_get() {
16755 PyObject *pyobj;
16756
16757 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16758 return pyobj;
16759 }
16760
16761
16762 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16763 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16764 return 1;
16765 }
16766
16767
16768 static PyObject *_wrap_GREY_BRUSH_get() {
16769 PyObject *pyobj;
16770
16771 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16772 return pyobj;
16773 }
16774
16775
16776 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16777 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16778 return 1;
16779 }
16780
16781
16782 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16783 PyObject *pyobj;
16784
16785 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16786 return pyobj;
16787 }
16788
16789
16790 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16791 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16792 return 1;
16793 }
16794
16795
16796 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16797 PyObject *pyobj;
16798
16799 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16800 return pyobj;
16801 }
16802
16803
16804 static int _wrap_BLACK_set(PyObject *_val) {
16805 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16806 return 1;
16807 }
16808
16809
16810 static PyObject *_wrap_BLACK_get() {
16811 PyObject *pyobj;
16812
16813 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16814 return pyobj;
16815 }
16816
16817
16818 static int _wrap_WHITE_set(PyObject *_val) {
16819 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16820 return 1;
16821 }
16822
16823
16824 static PyObject *_wrap_WHITE_get() {
16825 PyObject *pyobj;
16826
16827 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16828 return pyobj;
16829 }
16830
16831
16832 static int _wrap_RED_set(PyObject *_val) {
16833 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16834 return 1;
16835 }
16836
16837
16838 static PyObject *_wrap_RED_get() {
16839 PyObject *pyobj;
16840
16841 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16842 return pyobj;
16843 }
16844
16845
16846 static int _wrap_BLUE_set(PyObject *_val) {
16847 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16848 return 1;
16849 }
16850
16851
16852 static PyObject *_wrap_BLUE_get() {
16853 PyObject *pyobj;
16854
16855 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16856 return pyobj;
16857 }
16858
16859
16860 static int _wrap_GREEN_set(PyObject *_val) {
16861 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16862 return 1;
16863 }
16864
16865
16866 static PyObject *_wrap_GREEN_get() {
16867 PyObject *pyobj;
16868
16869 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16870 return pyobj;
16871 }
16872
16873
16874 static int _wrap_CYAN_set(PyObject *_val) {
16875 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16876 return 1;
16877 }
16878
16879
16880 static PyObject *_wrap_CYAN_get() {
16881 PyObject *pyobj;
16882
16883 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16884 return pyobj;
16885 }
16886
16887
16888 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16889 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16890 return 1;
16891 }
16892
16893
16894 static PyObject *_wrap_LIGHT_GREY_get() {
16895 PyObject *pyobj;
16896
16897 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16898 return pyobj;
16899 }
16900
16901
16902 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16903 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16904 return 1;
16905 }
16906
16907
16908 static PyObject *_wrap_STANDARD_CURSOR_get() {
16909 PyObject *pyobj;
16910
16911 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16912 return pyobj;
16913 }
16914
16915
16916 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16917 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16918 return 1;
16919 }
16920
16921
16922 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16923 PyObject *pyobj;
16924
16925 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16926 return pyobj;
16927 }
16928
16929
16930 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16931 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16932 return 1;
16933 }
16934
16935
16936 static PyObject *_wrap_CROSS_CURSOR_get() {
16937 PyObject *pyobj;
16938
16939 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16940 return pyobj;
16941 }
16942
16943
16944 static int _wrap_NullBitmap_set(PyObject *_val) {
16945 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16946 return 1;
16947 }
16948
16949
16950 static PyObject *_wrap_NullBitmap_get() {
16951 PyObject *pyobj;
16952
16953 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16954 return pyobj;
16955 }
16956
16957
16958 static int _wrap_NullIcon_set(PyObject *_val) {
16959 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16960 return 1;
16961 }
16962
16963
16964 static PyObject *_wrap_NullIcon_get() {
16965 PyObject *pyobj;
16966
16967 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16968 return pyobj;
16969 }
16970
16971
16972 static int _wrap_NullCursor_set(PyObject *_val) {
16973 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16974 return 1;
16975 }
16976
16977
16978 static PyObject *_wrap_NullCursor_get() {
16979 PyObject *pyobj;
16980
16981 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16982 return pyobj;
16983 }
16984
16985
16986 static int _wrap_NullPen_set(PyObject *_val) {
16987 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16988 return 1;
16989 }
16990
16991
16992 static PyObject *_wrap_NullPen_get() {
16993 PyObject *pyobj;
16994
16995 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16996 return pyobj;
16997 }
16998
16999
17000 static int _wrap_NullBrush_set(PyObject *_val) {
17001 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17002 return 1;
17003 }
17004
17005
17006 static PyObject *_wrap_NullBrush_get() {
17007 PyObject *pyobj;
17008
17009 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17010 return pyobj;
17011 }
17012
17013
17014 static int _wrap_NullPalette_set(PyObject *_val) {
17015 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17016 return 1;
17017 }
17018
17019
17020 static PyObject *_wrap_NullPalette_get() {
17021 PyObject *pyobj;
17022
17023 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17024 return pyobj;
17025 }
17026
17027
17028 static int _wrap_NullFont_set(PyObject *_val) {
17029 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17030 return 1;
17031 }
17032
17033
17034 static PyObject *_wrap_NullFont_get() {
17035 PyObject *pyobj;
17036
17037 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17038 return pyobj;
17039 }
17040
17041
17042 static int _wrap_NullColour_set(PyObject *_val) {
17043 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17044 return 1;
17045 }
17046
17047
17048 static PyObject *_wrap_NullColour_get() {
17049 PyObject *pyobj;
17050
17051 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17052 return pyobj;
17053 }
17054
17055
17056 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17057 PyObject *resultobj;
17058 wxPenList *arg1 = (wxPenList *) 0 ;
17059 wxPen *arg2 = (wxPen *) 0 ;
17060 PyObject * obj0 = 0 ;
17061 PyObject * obj1 = 0 ;
17062 char *kwnames[] = {
17063 (char *) "self",(char *) "pen", NULL
17064 };
17065
17066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17069 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17071 {
17072 PyThreadState* __tstate = wxPyBeginAllowThreads();
17073 (arg1)->AddPen(arg2);
17074
17075 wxPyEndAllowThreads(__tstate);
17076 if (PyErr_Occurred()) SWIG_fail;
17077 }
17078 Py_INCREF(Py_None); resultobj = Py_None;
17079 return resultobj;
17080 fail:
17081 return NULL;
17082 }
17083
17084
17085 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17086 PyObject *resultobj;
17087 wxPenList *arg1 = (wxPenList *) 0 ;
17088 wxColour *arg2 = 0 ;
17089 int arg3 ;
17090 int arg4 ;
17091 wxPen *result;
17092 wxColour temp2 ;
17093 PyObject * obj0 = 0 ;
17094 PyObject * obj1 = 0 ;
17095 PyObject * obj2 = 0 ;
17096 PyObject * obj3 = 0 ;
17097 char *kwnames[] = {
17098 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17099 };
17100
17101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17104 {
17105 arg2 = &temp2;
17106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17107 }
17108 arg3 = (int) SWIG_AsInt(obj2);
17109 if (PyErr_Occurred()) SWIG_fail;
17110 arg4 = (int) SWIG_AsInt(obj3);
17111 if (PyErr_Occurred()) SWIG_fail;
17112 {
17113 PyThreadState* __tstate = wxPyBeginAllowThreads();
17114 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17115
17116 wxPyEndAllowThreads(__tstate);
17117 if (PyErr_Occurred()) SWIG_fail;
17118 }
17119 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17120 return resultobj;
17121 fail:
17122 return NULL;
17123 }
17124
17125
17126 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17127 PyObject *resultobj;
17128 wxPenList *arg1 = (wxPenList *) 0 ;
17129 wxPen *arg2 = (wxPen *) 0 ;
17130 PyObject * obj0 = 0 ;
17131 PyObject * obj1 = 0 ;
17132 char *kwnames[] = {
17133 (char *) "self",(char *) "pen", NULL
17134 };
17135
17136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17139 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 (arg1)->RemovePen(arg2);
17144
17145 wxPyEndAllowThreads(__tstate);
17146 if (PyErr_Occurred()) SWIG_fail;
17147 }
17148 Py_INCREF(Py_None); resultobj = Py_None;
17149 return resultobj;
17150 fail:
17151 return NULL;
17152 }
17153
17154
17155 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17156 PyObject *resultobj;
17157 wxPenList *arg1 = (wxPenList *) 0 ;
17158 int result;
17159 PyObject * obj0 = 0 ;
17160 char *kwnames[] = {
17161 (char *) "self", NULL
17162 };
17163
17164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17167 {
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 result = (int)(arg1)->GetCount();
17170
17171 wxPyEndAllowThreads(__tstate);
17172 if (PyErr_Occurred()) SWIG_fail;
17173 }
17174 resultobj = SWIG_FromInt((int)result);
17175 return resultobj;
17176 fail:
17177 return NULL;
17178 }
17179
17180
17181 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17182 PyObject *obj;
17183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17184 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17185 Py_INCREF(obj);
17186 return Py_BuildValue((char *)"");
17187 }
17188 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17189 PyObject *resultobj;
17190 wxBrushList *arg1 = (wxBrushList *) 0 ;
17191 wxBrush *arg2 = (wxBrush *) 0 ;
17192 PyObject * obj0 = 0 ;
17193 PyObject * obj1 = 0 ;
17194 char *kwnames[] = {
17195 (char *) "self",(char *) "brush", NULL
17196 };
17197
17198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17201 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17203 {
17204 PyThreadState* __tstate = wxPyBeginAllowThreads();
17205 (arg1)->AddBrush(arg2);
17206
17207 wxPyEndAllowThreads(__tstate);
17208 if (PyErr_Occurred()) SWIG_fail;
17209 }
17210 Py_INCREF(Py_None); resultobj = Py_None;
17211 return resultobj;
17212 fail:
17213 return NULL;
17214 }
17215
17216
17217 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17218 PyObject *resultobj;
17219 wxBrushList *arg1 = (wxBrushList *) 0 ;
17220 wxColour *arg2 = 0 ;
17221 int arg3 ;
17222 wxBrush *result;
17223 wxColour temp2 ;
17224 PyObject * obj0 = 0 ;
17225 PyObject * obj1 = 0 ;
17226 PyObject * obj2 = 0 ;
17227 char *kwnames[] = {
17228 (char *) "self",(char *) "colour",(char *) "style", NULL
17229 };
17230
17231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17234 {
17235 arg2 = &temp2;
17236 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17237 }
17238 arg3 = (int) SWIG_AsInt(obj2);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 {
17241 PyThreadState* __tstate = wxPyBeginAllowThreads();
17242 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17243
17244 wxPyEndAllowThreads(__tstate);
17245 if (PyErr_Occurred()) SWIG_fail;
17246 }
17247 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17248 return resultobj;
17249 fail:
17250 return NULL;
17251 }
17252
17253
17254 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17255 PyObject *resultobj;
17256 wxBrushList *arg1 = (wxBrushList *) 0 ;
17257 wxBrush *arg2 = (wxBrush *) 0 ;
17258 PyObject * obj0 = 0 ;
17259 PyObject * obj1 = 0 ;
17260 char *kwnames[] = {
17261 (char *) "self",(char *) "brush", NULL
17262 };
17263
17264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17269 {
17270 PyThreadState* __tstate = wxPyBeginAllowThreads();
17271 (arg1)->RemoveBrush(arg2);
17272
17273 wxPyEndAllowThreads(__tstate);
17274 if (PyErr_Occurred()) SWIG_fail;
17275 }
17276 Py_INCREF(Py_None); resultobj = Py_None;
17277 return resultobj;
17278 fail:
17279 return NULL;
17280 }
17281
17282
17283 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17284 PyObject *resultobj;
17285 wxBrushList *arg1 = (wxBrushList *) 0 ;
17286 int result;
17287 PyObject * obj0 = 0 ;
17288 char *kwnames[] = {
17289 (char *) "self", NULL
17290 };
17291
17292 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17293 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17294 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17295 {
17296 PyThreadState* __tstate = wxPyBeginAllowThreads();
17297 result = (int)(arg1)->GetCount();
17298
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 resultobj = SWIG_FromInt((int)result);
17303 return resultobj;
17304 fail:
17305 return NULL;
17306 }
17307
17308
17309 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17310 PyObject *obj;
17311 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17312 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17313 Py_INCREF(obj);
17314 return Py_BuildValue((char *)"");
17315 }
17316 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17317 PyObject *resultobj;
17318 wxColourDatabase *result;
17319 char *kwnames[] = {
17320 NULL
17321 };
17322
17323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17324 {
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = (wxColourDatabase *)new wxColourDatabase();
17327
17328 wxPyEndAllowThreads(__tstate);
17329 if (PyErr_Occurred()) SWIG_fail;
17330 }
17331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17332 return resultobj;
17333 fail:
17334 return NULL;
17335 }
17336
17337
17338 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17339 PyObject *resultobj;
17340 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17341 PyObject * obj0 = 0 ;
17342 char *kwnames[] = {
17343 (char *) "self", NULL
17344 };
17345
17346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17349 {
17350 PyThreadState* __tstate = wxPyBeginAllowThreads();
17351 delete arg1;
17352
17353 wxPyEndAllowThreads(__tstate);
17354 if (PyErr_Occurred()) SWIG_fail;
17355 }
17356 Py_INCREF(Py_None); resultobj = Py_None;
17357 return resultobj;
17358 fail:
17359 return NULL;
17360 }
17361
17362
17363 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17364 PyObject *resultobj;
17365 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17366 wxString *arg2 = 0 ;
17367 wxColour result;
17368 bool temp2 = False ;
17369 PyObject * obj0 = 0 ;
17370 PyObject * obj1 = 0 ;
17371 char *kwnames[] = {
17372 (char *) "self",(char *) "name", NULL
17373 };
17374
17375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17378 {
17379 arg2 = wxString_in_helper(obj1);
17380 if (arg2 == NULL) SWIG_fail;
17381 temp2 = True;
17382 }
17383 {
17384 PyThreadState* __tstate = wxPyBeginAllowThreads();
17385 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17386
17387 wxPyEndAllowThreads(__tstate);
17388 if (PyErr_Occurred()) SWIG_fail;
17389 }
17390 {
17391 wxColour * resultptr;
17392 resultptr = new wxColour((wxColour &) result);
17393 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17394 }
17395 {
17396 if (temp2)
17397 delete arg2;
17398 }
17399 return resultobj;
17400 fail:
17401 {
17402 if (temp2)
17403 delete arg2;
17404 }
17405 return NULL;
17406 }
17407
17408
17409 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17410 PyObject *resultobj;
17411 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17412 wxColour *arg2 = 0 ;
17413 wxString result;
17414 wxColour temp2 ;
17415 PyObject * obj0 = 0 ;
17416 PyObject * obj1 = 0 ;
17417 char *kwnames[] = {
17418 (char *) "self",(char *) "colour", NULL
17419 };
17420
17421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17424 {
17425 arg2 = &temp2;
17426 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17427 }
17428 {
17429 PyThreadState* __tstate = wxPyBeginAllowThreads();
17430 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17431
17432 wxPyEndAllowThreads(__tstate);
17433 if (PyErr_Occurred()) SWIG_fail;
17434 }
17435 {
17436 #if wxUSE_UNICODE
17437 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17438 #else
17439 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17440 #endif
17441 }
17442 return resultobj;
17443 fail:
17444 return NULL;
17445 }
17446
17447
17448 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj;
17450 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17451 wxString *arg2 = 0 ;
17452 wxColour *arg3 = 0 ;
17453 bool temp2 = False ;
17454 wxColour temp3 ;
17455 PyObject * obj0 = 0 ;
17456 PyObject * obj1 = 0 ;
17457 PyObject * obj2 = 0 ;
17458 char *kwnames[] = {
17459 (char *) "self",(char *) "name",(char *) "colour", NULL
17460 };
17461
17462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17465 {
17466 arg2 = wxString_in_helper(obj1);
17467 if (arg2 == NULL) SWIG_fail;
17468 temp2 = True;
17469 }
17470 {
17471 arg3 = &temp3;
17472 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17473 }
17474 {
17475 PyThreadState* __tstate = wxPyBeginAllowThreads();
17476 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17477
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 Py_INCREF(Py_None); resultobj = Py_None;
17482 {
17483 if (temp2)
17484 delete arg2;
17485 }
17486 return resultobj;
17487 fail:
17488 {
17489 if (temp2)
17490 delete arg2;
17491 }
17492 return NULL;
17493 }
17494
17495
17496 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17497 PyObject *resultobj;
17498 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17499 wxString *arg2 = 0 ;
17500 int arg3 ;
17501 int arg4 ;
17502 int arg5 ;
17503 bool temp2 = False ;
17504 PyObject * obj0 = 0 ;
17505 PyObject * obj1 = 0 ;
17506 PyObject * obj2 = 0 ;
17507 PyObject * obj3 = 0 ;
17508 PyObject * obj4 = 0 ;
17509 char *kwnames[] = {
17510 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17511 };
17512
17513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17516 {
17517 arg2 = wxString_in_helper(obj1);
17518 if (arg2 == NULL) SWIG_fail;
17519 temp2 = True;
17520 }
17521 arg3 = (int) SWIG_AsInt(obj2);
17522 if (PyErr_Occurred()) SWIG_fail;
17523 arg4 = (int) SWIG_AsInt(obj3);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 arg5 = (int) SWIG_AsInt(obj4);
17526 if (PyErr_Occurred()) SWIG_fail;
17527 {
17528 PyThreadState* __tstate = wxPyBeginAllowThreads();
17529 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17530
17531 wxPyEndAllowThreads(__tstate);
17532 if (PyErr_Occurred()) SWIG_fail;
17533 }
17534 Py_INCREF(Py_None); resultobj = Py_None;
17535 {
17536 if (temp2)
17537 delete arg2;
17538 }
17539 return resultobj;
17540 fail:
17541 {
17542 if (temp2)
17543 delete arg2;
17544 }
17545 return NULL;
17546 }
17547
17548
17549 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17550 PyObject *obj;
17551 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17552 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17553 Py_INCREF(obj);
17554 return Py_BuildValue((char *)"");
17555 }
17556 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17557 PyObject *resultobj;
17558 wxFontList *arg1 = (wxFontList *) 0 ;
17559 wxFont *arg2 = (wxFont *) 0 ;
17560 PyObject * obj0 = 0 ;
17561 PyObject * obj1 = 0 ;
17562 char *kwnames[] = {
17563 (char *) "self",(char *) "font", NULL
17564 };
17565
17566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17569 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17571 {
17572 PyThreadState* __tstate = wxPyBeginAllowThreads();
17573 (arg1)->AddFont(arg2);
17574
17575 wxPyEndAllowThreads(__tstate);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
17578 Py_INCREF(Py_None); resultobj = Py_None;
17579 return resultobj;
17580 fail:
17581 return NULL;
17582 }
17583
17584
17585 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17586 PyObject *resultobj;
17587 wxFontList *arg1 = (wxFontList *) 0 ;
17588 int arg2 ;
17589 int arg3 ;
17590 int arg4 ;
17591 int arg5 ;
17592 bool arg6 = (bool) False ;
17593 wxString const &arg7_defvalue = wxPyEmptyString ;
17594 wxString *arg7 = (wxString *) &arg7_defvalue ;
17595 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17596 wxFont *result;
17597 bool temp7 = False ;
17598 PyObject * obj0 = 0 ;
17599 PyObject * obj1 = 0 ;
17600 PyObject * obj2 = 0 ;
17601 PyObject * obj3 = 0 ;
17602 PyObject * obj4 = 0 ;
17603 PyObject * obj5 = 0 ;
17604 PyObject * obj6 = 0 ;
17605 PyObject * obj7 = 0 ;
17606 char *kwnames[] = {
17607 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17608 };
17609
17610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17613 arg2 = (int) SWIG_AsInt(obj1);
17614 if (PyErr_Occurred()) SWIG_fail;
17615 arg3 = (int) SWIG_AsInt(obj2);
17616 if (PyErr_Occurred()) SWIG_fail;
17617 arg4 = (int) SWIG_AsInt(obj3);
17618 if (PyErr_Occurred()) SWIG_fail;
17619 arg5 = (int) SWIG_AsInt(obj4);
17620 if (PyErr_Occurred()) SWIG_fail;
17621 if (obj5) {
17622 arg6 = (bool) SWIG_AsBool(obj5);
17623 if (PyErr_Occurred()) SWIG_fail;
17624 }
17625 if (obj6) {
17626 {
17627 arg7 = wxString_in_helper(obj6);
17628 if (arg7 == NULL) SWIG_fail;
17629 temp7 = True;
17630 }
17631 }
17632 if (obj7) {
17633 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 }
17636 {
17637 PyThreadState* __tstate = wxPyBeginAllowThreads();
17638 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17639
17640 wxPyEndAllowThreads(__tstate);
17641 if (PyErr_Occurred()) SWIG_fail;
17642 }
17643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17644 {
17645 if (temp7)
17646 delete arg7;
17647 }
17648 return resultobj;
17649 fail:
17650 {
17651 if (temp7)
17652 delete arg7;
17653 }
17654 return NULL;
17655 }
17656
17657
17658 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17659 PyObject *resultobj;
17660 wxFontList *arg1 = (wxFontList *) 0 ;
17661 wxFont *arg2 = (wxFont *) 0 ;
17662 PyObject * obj0 = 0 ;
17663 PyObject * obj1 = 0 ;
17664 char *kwnames[] = {
17665 (char *) "self",(char *) "font", NULL
17666 };
17667
17668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17671 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17673 {
17674 PyThreadState* __tstate = wxPyBeginAllowThreads();
17675 (arg1)->RemoveFont(arg2);
17676
17677 wxPyEndAllowThreads(__tstate);
17678 if (PyErr_Occurred()) SWIG_fail;
17679 }
17680 Py_INCREF(Py_None); resultobj = Py_None;
17681 return resultobj;
17682 fail:
17683 return NULL;
17684 }
17685
17686
17687 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17688 PyObject *resultobj;
17689 wxFontList *arg1 = (wxFontList *) 0 ;
17690 int result;
17691 PyObject * obj0 = 0 ;
17692 char *kwnames[] = {
17693 (char *) "self", NULL
17694 };
17695
17696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17699 {
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 result = (int)(arg1)->GetCount();
17702
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 resultobj = SWIG_FromInt((int)result);
17707 return resultobj;
17708 fail:
17709 return NULL;
17710 }
17711
17712
17713 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17714 PyObject *obj;
17715 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17716 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17717 Py_INCREF(obj);
17718 return Py_BuildValue((char *)"");
17719 }
17720 static int _wrap_TheFontList_set(PyObject *_val) {
17721 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17722 return 1;
17723 }
17724
17725
17726 static PyObject *_wrap_TheFontList_get() {
17727 PyObject *pyobj;
17728
17729 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17730 return pyobj;
17731 }
17732
17733
17734 static int _wrap_ThePenList_set(PyObject *_val) {
17735 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17736 return 1;
17737 }
17738
17739
17740 static PyObject *_wrap_ThePenList_get() {
17741 PyObject *pyobj;
17742
17743 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17744 return pyobj;
17745 }
17746
17747
17748 static int _wrap_TheBrushList_set(PyObject *_val) {
17749 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17750 return 1;
17751 }
17752
17753
17754 static PyObject *_wrap_TheBrushList_get() {
17755 PyObject *pyobj;
17756
17757 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17758 return pyobj;
17759 }
17760
17761
17762 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17763 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17764 return 1;
17765 }
17766
17767
17768 static PyObject *_wrap_TheColourDatabase_get() {
17769 PyObject *pyobj;
17770
17771 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17772 return pyobj;
17773 }
17774
17775
17776 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17777 PyObject *resultobj;
17778 wxEffects *result;
17779 char *kwnames[] = {
17780 NULL
17781 };
17782
17783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17784 {
17785 PyThreadState* __tstate = wxPyBeginAllowThreads();
17786 result = (wxEffects *)new wxEffects();
17787
17788 wxPyEndAllowThreads(__tstate);
17789 if (PyErr_Occurred()) SWIG_fail;
17790 }
17791 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17792 return resultobj;
17793 fail:
17794 return NULL;
17795 }
17796
17797
17798 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17799 PyObject *resultobj;
17800 wxEffects *arg1 = (wxEffects *) 0 ;
17801 wxColour result;
17802 PyObject * obj0 = 0 ;
17803 char *kwnames[] = {
17804 (char *) "self", NULL
17805 };
17806
17807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 result = ((wxEffects const *)arg1)->GetHighlightColour();
17813
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 {
17818 wxColour * resultptr;
17819 resultptr = new wxColour((wxColour &) result);
17820 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17821 }
17822 return resultobj;
17823 fail:
17824 return NULL;
17825 }
17826
17827
17828 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17829 PyObject *resultobj;
17830 wxEffects *arg1 = (wxEffects *) 0 ;
17831 wxColour result;
17832 PyObject * obj0 = 0 ;
17833 char *kwnames[] = {
17834 (char *) "self", NULL
17835 };
17836
17837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17840 {
17841 PyThreadState* __tstate = wxPyBeginAllowThreads();
17842 result = ((wxEffects const *)arg1)->GetLightShadow();
17843
17844 wxPyEndAllowThreads(__tstate);
17845 if (PyErr_Occurred()) SWIG_fail;
17846 }
17847 {
17848 wxColour * resultptr;
17849 resultptr = new wxColour((wxColour &) result);
17850 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17851 }
17852 return resultobj;
17853 fail:
17854 return NULL;
17855 }
17856
17857
17858 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17859 PyObject *resultobj;
17860 wxEffects *arg1 = (wxEffects *) 0 ;
17861 wxColour result;
17862 PyObject * obj0 = 0 ;
17863 char *kwnames[] = {
17864 (char *) "self", NULL
17865 };
17866
17867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17870 {
17871 PyThreadState* __tstate = wxPyBeginAllowThreads();
17872 result = ((wxEffects const *)arg1)->GetFaceColour();
17873
17874 wxPyEndAllowThreads(__tstate);
17875 if (PyErr_Occurred()) SWIG_fail;
17876 }
17877 {
17878 wxColour * resultptr;
17879 resultptr = new wxColour((wxColour &) result);
17880 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17881 }
17882 return resultobj;
17883 fail:
17884 return NULL;
17885 }
17886
17887
17888 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17889 PyObject *resultobj;
17890 wxEffects *arg1 = (wxEffects *) 0 ;
17891 wxColour result;
17892 PyObject * obj0 = 0 ;
17893 char *kwnames[] = {
17894 (char *) "self", NULL
17895 };
17896
17897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17900 {
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 result = ((wxEffects const *)arg1)->GetMediumShadow();
17903
17904 wxPyEndAllowThreads(__tstate);
17905 if (PyErr_Occurred()) SWIG_fail;
17906 }
17907 {
17908 wxColour * resultptr;
17909 resultptr = new wxColour((wxColour &) result);
17910 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17911 }
17912 return resultobj;
17913 fail:
17914 return NULL;
17915 }
17916
17917
17918 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17919 PyObject *resultobj;
17920 wxEffects *arg1 = (wxEffects *) 0 ;
17921 wxColour result;
17922 PyObject * obj0 = 0 ;
17923 char *kwnames[] = {
17924 (char *) "self", NULL
17925 };
17926
17927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17930 {
17931 PyThreadState* __tstate = wxPyBeginAllowThreads();
17932 result = ((wxEffects const *)arg1)->GetDarkShadow();
17933
17934 wxPyEndAllowThreads(__tstate);
17935 if (PyErr_Occurred()) SWIG_fail;
17936 }
17937 {
17938 wxColour * resultptr;
17939 resultptr = new wxColour((wxColour &) result);
17940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17941 }
17942 return resultobj;
17943 fail:
17944 return NULL;
17945 }
17946
17947
17948 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17949 PyObject *resultobj;
17950 wxEffects *arg1 = (wxEffects *) 0 ;
17951 wxColour *arg2 = 0 ;
17952 wxColour temp2 ;
17953 PyObject * obj0 = 0 ;
17954 PyObject * obj1 = 0 ;
17955 char *kwnames[] = {
17956 (char *) "self",(char *) "c", NULL
17957 };
17958
17959 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17960 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17961 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17962 {
17963 arg2 = &temp2;
17964 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17965 }
17966 {
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17969
17970 wxPyEndAllowThreads(__tstate);
17971 if (PyErr_Occurred()) SWIG_fail;
17972 }
17973 Py_INCREF(Py_None); resultobj = Py_None;
17974 return resultobj;
17975 fail:
17976 return NULL;
17977 }
17978
17979
17980 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17981 PyObject *resultobj;
17982 wxEffects *arg1 = (wxEffects *) 0 ;
17983 wxColour *arg2 = 0 ;
17984 wxColour temp2 ;
17985 PyObject * obj0 = 0 ;
17986 PyObject * obj1 = 0 ;
17987 char *kwnames[] = {
17988 (char *) "self",(char *) "c", NULL
17989 };
17990
17991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17994 {
17995 arg2 = &temp2;
17996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17997 }
17998 {
17999 PyThreadState* __tstate = wxPyBeginAllowThreads();
18000 (arg1)->SetLightShadow((wxColour const &)*arg2);
18001
18002 wxPyEndAllowThreads(__tstate);
18003 if (PyErr_Occurred()) SWIG_fail;
18004 }
18005 Py_INCREF(Py_None); resultobj = Py_None;
18006 return resultobj;
18007 fail:
18008 return NULL;
18009 }
18010
18011
18012 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18013 PyObject *resultobj;
18014 wxEffects *arg1 = (wxEffects *) 0 ;
18015 wxColour *arg2 = 0 ;
18016 wxColour temp2 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 char *kwnames[] = {
18020 (char *) "self",(char *) "c", NULL
18021 };
18022
18023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18026 {
18027 arg2 = &temp2;
18028 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18029 }
18030 {
18031 PyThreadState* __tstate = wxPyBeginAllowThreads();
18032 (arg1)->SetFaceColour((wxColour const &)*arg2);
18033
18034 wxPyEndAllowThreads(__tstate);
18035 if (PyErr_Occurred()) SWIG_fail;
18036 }
18037 Py_INCREF(Py_None); resultobj = Py_None;
18038 return resultobj;
18039 fail:
18040 return NULL;
18041 }
18042
18043
18044 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18045 PyObject *resultobj;
18046 wxEffects *arg1 = (wxEffects *) 0 ;
18047 wxColour *arg2 = 0 ;
18048 wxColour temp2 ;
18049 PyObject * obj0 = 0 ;
18050 PyObject * obj1 = 0 ;
18051 char *kwnames[] = {
18052 (char *) "self",(char *) "c", NULL
18053 };
18054
18055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18058 {
18059 arg2 = &temp2;
18060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18061 }
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18065
18066 wxPyEndAllowThreads(__tstate);
18067 if (PyErr_Occurred()) SWIG_fail;
18068 }
18069 Py_INCREF(Py_None); resultobj = Py_None;
18070 return resultobj;
18071 fail:
18072 return NULL;
18073 }
18074
18075
18076 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18077 PyObject *resultobj;
18078 wxEffects *arg1 = (wxEffects *) 0 ;
18079 wxColour *arg2 = 0 ;
18080 wxColour temp2 ;
18081 PyObject * obj0 = 0 ;
18082 PyObject * obj1 = 0 ;
18083 char *kwnames[] = {
18084 (char *) "self",(char *) "c", NULL
18085 };
18086
18087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18090 {
18091 arg2 = &temp2;
18092 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18093 }
18094 {
18095 PyThreadState* __tstate = wxPyBeginAllowThreads();
18096 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18097
18098 wxPyEndAllowThreads(__tstate);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 }
18101 Py_INCREF(Py_None); resultobj = Py_None;
18102 return resultobj;
18103 fail:
18104 return NULL;
18105 }
18106
18107
18108 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18109 PyObject *resultobj;
18110 wxEffects *arg1 = (wxEffects *) 0 ;
18111 wxColour *arg2 = 0 ;
18112 wxColour *arg3 = 0 ;
18113 wxColour *arg4 = 0 ;
18114 wxColour *arg5 = 0 ;
18115 wxColour *arg6 = 0 ;
18116 wxColour temp2 ;
18117 wxColour temp3 ;
18118 wxColour temp4 ;
18119 wxColour temp5 ;
18120 wxColour temp6 ;
18121 PyObject * obj0 = 0 ;
18122 PyObject * obj1 = 0 ;
18123 PyObject * obj2 = 0 ;
18124 PyObject * obj3 = 0 ;
18125 PyObject * obj4 = 0 ;
18126 PyObject * obj5 = 0 ;
18127 char *kwnames[] = {
18128 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18129 };
18130
18131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18134 {
18135 arg2 = &temp2;
18136 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18137 }
18138 {
18139 arg3 = &temp3;
18140 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18141 }
18142 {
18143 arg4 = &temp4;
18144 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18145 }
18146 {
18147 arg5 = &temp5;
18148 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18149 }
18150 {
18151 arg6 = &temp6;
18152 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18153 }
18154 {
18155 PyThreadState* __tstate = wxPyBeginAllowThreads();
18156 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18157
18158 wxPyEndAllowThreads(__tstate);
18159 if (PyErr_Occurred()) SWIG_fail;
18160 }
18161 Py_INCREF(Py_None); resultobj = Py_None;
18162 return resultobj;
18163 fail:
18164 return NULL;
18165 }
18166
18167
18168 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18169 PyObject *resultobj;
18170 wxEffects *arg1 = (wxEffects *) 0 ;
18171 wxDC *arg2 = 0 ;
18172 wxRect *arg3 = 0 ;
18173 int arg4 = (int) 1 ;
18174 wxRect temp3 ;
18175 PyObject * obj0 = 0 ;
18176 PyObject * obj1 = 0 ;
18177 PyObject * obj2 = 0 ;
18178 PyObject * obj3 = 0 ;
18179 char *kwnames[] = {
18180 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18181 };
18182
18183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18187 SWIG_POINTER_EXCEPTION | 0)) == -1)
18188 SWIG_fail;
18189 if (arg2 == NULL) {
18190 PyErr_SetString(PyExc_TypeError,"null reference");
18191 SWIG_fail;
18192 }
18193 {
18194 arg3 = &temp3;
18195 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18196 }
18197 if (obj3) {
18198 arg4 = (int) SWIG_AsInt(obj3);
18199 if (PyErr_Occurred()) SWIG_fail;
18200 }
18201 {
18202 PyThreadState* __tstate = wxPyBeginAllowThreads();
18203 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18204
18205 wxPyEndAllowThreads(__tstate);
18206 if (PyErr_Occurred()) SWIG_fail;
18207 }
18208 Py_INCREF(Py_None); resultobj = Py_None;
18209 return resultobj;
18210 fail:
18211 return NULL;
18212 }
18213
18214
18215 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18216 PyObject *resultobj;
18217 wxEffects *arg1 = (wxEffects *) 0 ;
18218 wxRect *arg2 = 0 ;
18219 wxDC *arg3 = 0 ;
18220 wxBitmap *arg4 = 0 ;
18221 bool result;
18222 wxRect temp2 ;
18223 PyObject * obj0 = 0 ;
18224 PyObject * obj1 = 0 ;
18225 PyObject * obj2 = 0 ;
18226 PyObject * obj3 = 0 ;
18227 char *kwnames[] = {
18228 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18229 };
18230
18231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18234 {
18235 arg2 = &temp2;
18236 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18237 }
18238 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18239 SWIG_POINTER_EXCEPTION | 0)) == -1)
18240 SWIG_fail;
18241 if (arg3 == NULL) {
18242 PyErr_SetString(PyExc_TypeError,"null reference");
18243 SWIG_fail;
18244 }
18245 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18246 SWIG_POINTER_EXCEPTION | 0)) == -1)
18247 SWIG_fail;
18248 if (arg4 == NULL) {
18249 PyErr_SetString(PyExc_TypeError,"null reference");
18250 SWIG_fail;
18251 }
18252 {
18253 PyThreadState* __tstate = wxPyBeginAllowThreads();
18254 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18255
18256 wxPyEndAllowThreads(__tstate);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 }
18259 {
18260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18261 }
18262 return resultobj;
18263 fail:
18264 return NULL;
18265 }
18266
18267
18268 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18269 PyObject *obj;
18270 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18271 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18272 Py_INCREF(obj);
18273 return Py_BuildValue((char *)"");
18274 }
18275 static PyMethodDef SwigMethods[] = {
18276 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18282 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18284 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18299 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18305 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18324 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18336 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18339 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18363 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18365 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18380 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18388 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18396 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18402 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18428 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18442 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18466 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18475 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18495 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18532 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18540 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18547 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18569 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18571 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18579 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18702 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18704 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18706 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18708 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18712 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18713 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18714 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18717 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18719 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18723 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18724 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18726 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18728 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18730 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18732 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18735 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18738 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18746 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18749 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18751 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18763 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18768 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18773 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18780 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18785 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18800 { NULL, NULL }
18801 };
18802
18803
18804 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18805
18806 static void *_p_wxControlTo_p_wxWindow(void *x) {
18807 return (void *)((wxWindow *) ((wxControl *) x));
18808 }
18809 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18810 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18811 }
18812 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18813 return (void *)((wxWindow *) ((wxMenuBar *) x));
18814 }
18815 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18816 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18817 }
18818 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18819 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18820 }
18821 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18822 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18823 }
18824 static void *_p_wxPenTo_p_wxObject(void *x) {
18825 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18826 }
18827 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18828 return (void *)((wxObject *) ((wxRegionIterator *) x));
18829 }
18830 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18831 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18832 }
18833 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18834 return (void *)((wxObject *) ((wxSizerItem *) x));
18835 }
18836 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18837 return (void *)((wxObject *) ((wxColourDatabase *) x));
18838 }
18839 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18840 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18841 }
18842 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18843 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18844 }
18845 static void *_p_wxIconTo_p_wxObject(void *x) {
18846 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18847 }
18848 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18849 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18850 }
18851 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18852 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18853 }
18854 static void *_p_wxSizerTo_p_wxObject(void *x) {
18855 return (void *)((wxObject *) ((wxSizer *) x));
18856 }
18857 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18858 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18859 }
18860 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18861 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18862 }
18863 static void *_p_wxPenListTo_p_wxObject(void *x) {
18864 return (void *)((wxObject *) ((wxPenList *) x));
18865 }
18866 static void *_p_wxEventTo_p_wxObject(void *x) {
18867 return (void *)((wxObject *) ((wxEvent *) x));
18868 }
18869 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18870 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18871 }
18872 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18873 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18874 }
18875 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18876 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18877 }
18878 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18879 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18880 }
18881 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18882 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18883 }
18884 static void *_p_wxDCTo_p_wxObject(void *x) {
18885 return (void *)((wxObject *) ((wxDC *) x));
18886 }
18887 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18888 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18889 }
18890 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18891 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18892 }
18893 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18894 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18895 }
18896 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18897 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18898 }
18899 static void *_p_wxControlTo_p_wxObject(void *x) {
18900 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18901 }
18902 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18903 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18904 }
18905 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18906 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18907 }
18908 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18909 return (void *)((wxObject *) ((wxFSFile *) x));
18910 }
18911 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18912 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18913 }
18914 static void *_p_wxRegionTo_p_wxObject(void *x) {
18915 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18916 }
18917 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18918 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18919 }
18920 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18921 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18922 }
18923 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18924 return (void *)((wxObject *) ((wxGDIObject *) x));
18925 }
18926 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18927 return (void *)((wxObject *) ((wxEffects *) x));
18928 }
18929 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18930 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18931 }
18932 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18933 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18934 }
18935 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18936 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18937 }
18938 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18939 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18940 }
18941 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18942 return (void *)((wxObject *) ((wxMenuItem *) x));
18943 }
18944 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18945 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18946 }
18947 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18948 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18949 }
18950 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18951 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18952 }
18953 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18954 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18955 }
18956 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18957 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18958 }
18959 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18960 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18961 }
18962 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18963 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18964 }
18965 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18966 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18967 }
18968 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18969 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18970 }
18971 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18972 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18973 }
18974 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18975 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18976 }
18977 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18978 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18979 }
18980 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18981 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18982 }
18983 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18984 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18985 }
18986 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18987 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18988 }
18989 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18990 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18991 }
18992 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18993 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18994 }
18995 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18996 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18997 }
18998 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18999 return (void *)((wxObject *) ((wxImageHandler *) x));
19000 }
19001 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19002 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19003 }
19004 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19005 return (void *)((wxObject *) ((wxEvtHandler *) x));
19006 }
19007 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19008 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19009 }
19010 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19011 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19012 }
19013 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19014 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19015 }
19016 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19017 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19018 }
19019 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19020 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19021 }
19022 static void *_p_wxImageTo_p_wxObject(void *x) {
19023 return (void *)((wxObject *) ((wxImage *) x));
19024 }
19025 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19026 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19027 }
19028 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19029 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19030 }
19031 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19032 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19033 }
19034 static void *_p_wxImageListTo_p_wxObject(void *x) {
19035 return (void *)((wxObject *) ((wxImageList *) x));
19036 }
19037 static void *_p_wxCursorTo_p_wxObject(void *x) {
19038 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19039 }
19040 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19041 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19042 }
19043 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19044 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19045 }
19046 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19048 }
19049 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19050 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19051 }
19052 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19053 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19054 }
19055 static void *_p_wxWindowTo_p_wxObject(void *x) {
19056 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19057 }
19058 static void *_p_wxMenuTo_p_wxObject(void *x) {
19059 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19060 }
19061 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19062 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19063 }
19064 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19065 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19066 }
19067 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19068 return (void *)((wxObject *) ((wxBrushList *) x));
19069 }
19070 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19071 return (void *)((wxObject *) ((wxFileSystem *) x));
19072 }
19073 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19074 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19075 }
19076 static void *_p_wxMaskTo_p_wxObject(void *x) {
19077 return (void *)((wxObject *) ((wxMask *) x));
19078 }
19079 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19081 }
19082 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19083 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19084 }
19085 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19086 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19087 }
19088 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19089 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19090 }
19091 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19092 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19093 }
19094 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19095 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19096 }
19097 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19098 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19099 }
19100 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19101 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19102 }
19103 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19104 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19105 }
19106 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19107 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19108 }
19109 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19110 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19111 }
19112 static void *_p_wxFontTo_p_wxObject(void *x) {
19113 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19114 }
19115 static void *_p_wxBrushTo_p_wxObject(void *x) {
19116 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19117 }
19118 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19119 return (void *)((wxObject *) ((wxMetaFile *) x));
19120 }
19121 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19122 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19123 }
19124 static void *_p_wxColourTo_p_wxObject(void *x) {
19125 return (void *)((wxObject *) ((wxColour *) x));
19126 }
19127 static void *_p_wxFontListTo_p_wxObject(void *x) {
19128 return (void *)((wxObject *) ((wxFontList *) x));
19129 }
19130 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19131 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19132 }
19133 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19134 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19135 }
19136 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19137 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19138 }
19139 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19140 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19141 }
19142 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19143 return (void *)((wxDC *) ((wxScreenDC *) x));
19144 }
19145 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19146 return (void *)((wxDC *) ((wxMirrorDC *) x));
19147 }
19148 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19149 return (void *)((wxDC *) ((wxMemoryDC *) x));
19150 }
19151 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19152 return (void *)((wxDC *) ((wxWindowDC *) x));
19153 }
19154 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19155 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19156 }
19157 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19158 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19159 }
19160 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19161 return (void *)((wxDC *) ((wxClientDC *) x));
19162 }
19163 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19164 return (void *)((wxDC *) ((wxPaintDC *) x));
19165 }
19166 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19167 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19168 }
19169 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19170 return (void *)((wxDC *) ((wxPrinterDC *) x));
19171 }
19172 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19173 return (void *)((wxGDIObject *) ((wxIcon *) x));
19174 }
19175 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19176 return (void *)((wxGDIObject *) ((wxPalette *) x));
19177 }
19178 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19179 return (void *)((wxGDIObject *) ((wxPen *) x));
19180 }
19181 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19182 return (void *)((wxGDIObject *) ((wxFont *) x));
19183 }
19184 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19185 return (void *)((wxGDIObject *) ((wxCursor *) x));
19186 }
19187 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19188 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19189 }
19190 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19191 return (void *)((wxGDIObject *) ((wxRegion *) x));
19192 }
19193 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19194 return (void *)((wxGDIObject *) ((wxBrush *) x));
19195 }
19196 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}};
19197 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}};
19198 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}};
19199 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}};
19200 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}};
19201 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}};
19202 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}};
19203 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}};
19204 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}};
19205 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}};
19206 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}};
19207 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}};
19208 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}};
19209 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}};
19210 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}};
19211 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}};
19212 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}};
19213 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}};
19214 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}};
19215 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}};
19216 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}};
19217 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}};
19218 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}};
19219 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}};
19220 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}};
19221 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}};
19222 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}};
19223 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}};
19224 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}};
19225 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}};
19226 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}};
19227 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}};
19228 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}};
19229 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}};
19230 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}};
19231 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}};
19232 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}};
19233 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}};
19234 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}};
19235 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}};
19236 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}};
19237 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}};
19238 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}};
19239 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}};
19240 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}};
19241 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}};
19242 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}};
19243 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}};
19244 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}};
19245 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}};
19246 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}};
19247 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}};
19248 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}};
19249 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}};
19250 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}};
19251
19252 static swig_type_info *swig_types_initial[] = {
19253 _swigt__p_wxPostScriptDC,
19254 _swigt__p_wxBrush,
19255 _swigt__p_wxColour,
19256 _swigt__p_wxDC,
19257 _swigt__p_wxMirrorDC,
19258 _swigt__p_byte,
19259 _swigt__p_wxPyFontEnumerator,
19260 _swigt__p_char,
19261 _swigt__p_wxIconLocation,
19262 _swigt__p_wxImage,
19263 _swigt__p_wxMetaFileDC,
19264 _swigt__p_wxMask,
19265 _swigt__p_wxSize,
19266 _swigt__p_wxFont,
19267 _swigt__p_wxWindow,
19268 _swigt__p_double,
19269 _swigt__p_wxMemoryDC,
19270 _swigt__p_wxFontMapper,
19271 _swigt__p_wxEffects,
19272 _swigt__p_wxNativeEncodingInfo,
19273 _swigt__p_wxPalette,
19274 _swigt__p_wxBitmap,
19275 _swigt__p_wxObject,
19276 _swigt__p_wxRegionIterator,
19277 _swigt__p_wxRect,
19278 _swigt__p_wxString,
19279 _swigt__p_wxPrinterDC,
19280 _swigt__p_wxIconBundle,
19281 _swigt__p_wxPoint,
19282 _swigt__p_wxDash,
19283 _swigt__p_wxScreenDC,
19284 _swigt__p_wxCursor,
19285 _swigt__p_wxClientDC,
19286 _swigt__p_wxBufferedDC,
19287 _swigt__p_wxImageList,
19288 _swigt__p_unsigned_char,
19289 _swigt__p_wxGDIObject,
19290 _swigt__p_wxIcon,
19291 _swigt__p_wxLocale,
19292 _swigt__p_wxRegion,
19293 _swigt__p_wxLanguageInfo,
19294 _swigt__p_wxConfigBase,
19295 _swigt__p_wxWindowDC,
19296 _swigt__p_wxPrintData,
19297 _swigt__p_wxBrushList,
19298 _swigt__p_wxFontList,
19299 _swigt__p_wxPen,
19300 _swigt__p_wxBufferedPaintDC,
19301 _swigt__p_wxPaintDC,
19302 _swigt__p_wxPenList,
19303 _swigt__p_int,
19304 _swigt__p_wxMetaFile,
19305 _swigt__p_wxNativeFontInfo,
19306 _swigt__p_wxEncodingConverter,
19307 _swigt__p_wxColourDatabase,
19308 0
19309 };
19310
19311
19312 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19313
19314 static swig_const_info swig_const_table[] = {
19315 {0}};
19316
19317 #ifdef __cplusplus
19318 }
19319 #endif
19320
19321 #ifdef __cplusplus
19322 extern "C"
19323 #endif
19324 SWIGEXPORT(void) SWIG_init(void) {
19325 static PyObject *SWIG_globals = 0;
19326 static int typeinit = 0;
19327 PyObject *m, *d;
19328 int i;
19329 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19330 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19331 d = PyModule_GetDict(m);
19332
19333 if (!typeinit) {
19334 for (i = 0; swig_types_initial[i]; i++) {
19335 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19336 }
19337 typeinit = 1;
19338 }
19339 SWIG_InstallConstants(d,swig_const_table);
19340
19341 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19342 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19343 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19344 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19345 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19346 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19347 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19348 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19349 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19350 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19351 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19352 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19353 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19354 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19355 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19356 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19357 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19358 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19359 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19360 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19361 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19362 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19363 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19364 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19365 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19366 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19367 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19368 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19369 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19370 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19371 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19372 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19373 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19374 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19375 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19376 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19377 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19378 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19379 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19380 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19381 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19382 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19383 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19384 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19385 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19386 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19387 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19388 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19389 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19390 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19391 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19392 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19393 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19394 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19395 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19396 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19397 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19398 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19399 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19400 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19401 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19402 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19403 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19404 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19405 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19406 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19407 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19408 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19409 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19410 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19411 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19412 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19413 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19414 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19415 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19416 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19417 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19418 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19419 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19420 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19421 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19422 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19423 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19424 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19425 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19426 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19427 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19428 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19429 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19430 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19431 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19432 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19433 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19434 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19435 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19436 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19437 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19438 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19439 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19440 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19441 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19442 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19443 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19444 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19445 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19446 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19447 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19448 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19449 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19450 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19451 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19452 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19453 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19454 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19455 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19456 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19457 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19458 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19459 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19460 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19461 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19462 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19463 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19464 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19465 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19466 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19467 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19468
19469 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19470
19471 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19472 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19473 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19474 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19475 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19476 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19477 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19478 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19479 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19480 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19481 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19482 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19483 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19484 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19485 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19486 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19487 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19488 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19489 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19490 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19491 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19492 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19493 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19494 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19495 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19496 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19497 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19498 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19499 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19500 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19501 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19502 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19503 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19504 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19505 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19506 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19507 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19508 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19509 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19510 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19511 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19512 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19513 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19514 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19515 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19516 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19517 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19518 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19519 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19520 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19521 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19522 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19523 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19524 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19525 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19526 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19528 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19529 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19530 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19531 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19532 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19533 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19534 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19535 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19536 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19537 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19538 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19539 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19540 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19541 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19542 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19543 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19544 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19545 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19546 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19547 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19548 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19549 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19550 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19551 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19552 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19553 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19554 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19555 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19556 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19557 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19558 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19559 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19560 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19561 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19562 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19563 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19564 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19565 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19566 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19567 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19568 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19569 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19570 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19571 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19572 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19573 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19574 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19575 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19576 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19577 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19578 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19579 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19580 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19581 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19582 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19583 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19584 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19585 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19586 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19587 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19588 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19589 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19590 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19591 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19592 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19593 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19594 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19595 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19596 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19597 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19598 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19599 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19600 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19601 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19602 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19603 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19604 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19605 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19606 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19607 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19608 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19609 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19610 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19611 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19612 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19613 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19614 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19615 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19616 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19617 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19618 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19619 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19620 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19621 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19622 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19623 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19624 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19625 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19626 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19627 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19628 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19629 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19630 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19631 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19632 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19633 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19634 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19635 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19636 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19637 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19638 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19639 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19640 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19641 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19642 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19643 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19644 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19645 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19646 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19647 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19648 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19649 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19650 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19651 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19652 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19653 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19654 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19655 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19656 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19657 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19658 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19659 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19660 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19661 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19662 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19663 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19664 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19665 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19666 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19667 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19668 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19669 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19670 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19671 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19672 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19673 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19674 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19675 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19676 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19677 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19678 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19679 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19680 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19681 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19682 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19683 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19684 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19685 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19686 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19687 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19688 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19689 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19690 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19691 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19692 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19693 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19694 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19695 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19696 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19697 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19698 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19699 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19700 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19701 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19702 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19703 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19704 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19705 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19706 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19707 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19708 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19709 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19710 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19711 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19712 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19713 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19714 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19715 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19716 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19717 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19718 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19719 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19720 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19721 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19722 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19723 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19724 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19725 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19726 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19727 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19728 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19729 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19730 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19731 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19732 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19733 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19734 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19735 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19736 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19737 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19738 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19739 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19740 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19741 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19742 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19743 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19744 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19745 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19746 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19747 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19748 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19749 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19750 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19751 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19752 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19753 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19754 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19755 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19756 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19757 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19758 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19759 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19760 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19761 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19762 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19763 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19764 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19765 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19766 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19767 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19768 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19769 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19770 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19771
19772 // Work around a chicken/egg problem in drawlist.cpp
19773 wxPyDrawList_SetAPIPtr();
19774
19775 }
19776