]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
0b081b5b2c434c31b151fa982cadcf677437b7f4
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.22
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_NOINCLUDE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30
31 #include "Python.h"
32
33 /*************************************************************** -*- c -*-
34 * python/precommon.swg
35 *
36 * Rename all exported symbols from common.swg, to avoid symbol
37 * clashes if multiple interpreters are included
38 *
39 ************************************************************************/
40
41 #define SWIG_TypeRegister SWIG_Python_TypeRegister
42 #define SWIG_TypeCheck SWIG_Python_TypeCheck
43 #define SWIG_TypeCast SWIG_Python_TypeCast
44 #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast
45 #define SWIG_TypeName SWIG_Python_TypeName
46 #define SWIG_TypeQuery SWIG_Python_TypeQuery
47 #define SWIG_TypeClientData SWIG_Python_TypeClientData
48 #define SWIG_PackData SWIG_Python_PackData
49 #define SWIG_UnpackData SWIG_Python_UnpackData
50
51
52 /***********************************************************************
53 * common.swg for wxPython
54 *
55 * Include only the function prototypes and such from SWIG's common.swg,
56 * but not the runtime functions themselves. This helps keep the
57 * wrapper files clean of unnecessary stuff that is in the libpy.c file
58 * anyway.
59 *
60 ************************************************************************/
61
62 #include <string.h>
63
64 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
65 # if defined(_MSC_VER) || defined(__GNUC__)
66 # if defined(STATIC_LINKED)
67 # define SWIGEXPORT(a) a
68 # define SWIGIMPORT(a) extern a
69 # else
70 # define SWIGEXPORT(a) __declspec(dllexport) a
71 # define SWIGIMPORT(a) extern a
72 # endif
73 # else
74 # if defined(__BORLANDC__)
75 # define SWIGEXPORT(a) a _export
76 # define SWIGIMPORT(a) a _export
77 # else
78 # define SWIGEXPORT(a) a
79 # define SWIGIMPORT(a) a
80 # endif
81 # endif
82 #else
83 # define SWIGEXPORT(a) a
84 # define SWIGIMPORT(a) a
85 #endif
86
87 #ifdef SWIG_GLOBAL
88 # define SWIGRUNTIME(a) SWIGEXPORT(a)
89 #else
90 # define SWIGRUNTIME(a) static a
91 #endif
92
93 #ifdef __cplusplus
94 extern "C" {
95 #endif
96
97 typedef void *(*swig_converter_func)(void *);
98 typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100 typedef struct swig_type_info {
101 const char *name;
102 swig_converter_func converter;
103 const char *str;
104 void *clientdata;
105 swig_dycast_func dcast;
106 struct swig_type_info *next;
107 struct swig_type_info *prev;
108 } swig_type_info;
109
110
111 SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112 SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113 SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114 SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115 SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116 SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117 SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118 SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119 SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int);
120
121
122 #ifdef __cplusplus
123 }
124 #endif
125
126 /***********************************************************************
127 * pyrun.swg for wxPython
128 *
129 * Include only the function prototypes and such from SWIG's pyrun.swg,
130 * but not the runtime functions themselves. This helps keep the
131 * wrapper files clean of unnecessary stuff that is in the libpy.c file
132 * anyway.
133 *
134 ************************************************************************/
135
136 #include "Python.h"
137
138 #ifdef __cplusplus
139 extern "C" {
140 #endif
141
142 #define SWIG_PY_INT 1
143 #define SWIG_PY_FLOAT 2
144 #define SWIG_PY_STRING 3
145 #define SWIG_PY_POINTER 4
146 #define SWIG_PY_BINARY 5
147
148 /* Flags for pointer conversion */
149
150 #define SWIG_POINTER_EXCEPTION 0x1
151 #define SWIG_POINTER_DISOWN 0x2
152
153 /* Exception handling in wrappers */
154 #define SWIG_fail goto fail
155
156 /* Constant information structure */
157 typedef struct swig_const_info {
158 int type;
159 char *name;
160 long lvalue;
161 double dvalue;
162 void *pvalue;
163 swig_type_info **ptype;
164 } swig_const_info;
165
166 /* Common SWIG API */
167 #define SWIG_ConvertPtr(obj, pp, type, flags) \
168 SWIG_Python_ConvertPtr(obj, pp, type, flags)
169 #define SWIG_NewPointerObj(p, type, flags) \
170 SWIG_Python_NewPointerObj(p, type, flags)
171 #define SWIG_MustGetPtr(p, type, argnum, flags) \
172 SWIG_Python_MustGetPtr(p, type, argnum, flags)
173
174 /* Python-specific SWIG API */
175 #define SWIG_newvarlink() \
176 SWIG_Python_newvarlink()
177 #define SWIG_addvarlink(p, name, get_attr, set_attr) \
178 SWIG_Python_addvarlink(p, name, get_attr, set_attr)
179 #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \
180 SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags)
181 #define SWIG_NewPackedObj(ptr, sz, type) \
182 SWIG_Python_NewPackedObj(ptr, sz, type)
183 #define SWIG_InstallConstants(d, constants) \
184 SWIG_Python_InstallConstants(d, constants)
185
186 typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188 SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189 SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190 SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191 SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192 SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193 SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194 SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195 SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]);
196
197
198 /* Contract support */
199
200 #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else
201
202 #ifdef __cplusplus
203 }
204 #endif
205
206
207 /* -------- TYPES TABLE (BEGIN) -------- */
208
209 #define SWIGTYPE_p_wxPostScriptDC swig_types[0]
210 #define SWIGTYPE_p_wxBrush swig_types[1]
211 #define SWIGTYPE_p_wxColour swig_types[2]
212 #define SWIGTYPE_p_wxDC swig_types[3]
213 #define SWIGTYPE_p_wxMirrorDC swig_types[4]
214 #define SWIGTYPE_p_byte swig_types[5]
215 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[6]
216 #define SWIGTYPE_p_char swig_types[7]
217 #define SWIGTYPE_p_wxIconLocation swig_types[8]
218 #define SWIGTYPE_p_wxImage swig_types[9]
219 #define SWIGTYPE_p_wxMetaFileDC swig_types[10]
220 #define SWIGTYPE_p_wxMask swig_types[11]
221 #define SWIGTYPE_p_wxSize swig_types[12]
222 #define SWIGTYPE_p_wxFont swig_types[13]
223 #define SWIGTYPE_p_wxWindow swig_types[14]
224 #define SWIGTYPE_p_double swig_types[15]
225 #define SWIGTYPE_p_wxMemoryDC swig_types[16]
226 #define SWIGTYPE_p_wxFontMapper swig_types[17]
227 #define SWIGTYPE_p_wxEffects swig_types[18]
228 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[19]
229 #define SWIGTYPE_p_wxPalette swig_types[20]
230 #define SWIGTYPE_p_wxBitmap swig_types[21]
231 #define SWIGTYPE_p_wxObject swig_types[22]
232 #define SWIGTYPE_p_wxRegionIterator swig_types[23]
233 #define SWIGTYPE_p_wxRect swig_types[24]
234 #define SWIGTYPE_p_wxString swig_types[25]
235 #define SWIGTYPE_p_wxPrinterDC swig_types[26]
236 #define SWIGTYPE_p_wxIconBundle swig_types[27]
237 #define SWIGTYPE_p_wxPoint swig_types[28]
238 #define SWIGTYPE_p_wxDash swig_types[29]
239 #define SWIGTYPE_p_wxScreenDC swig_types[30]
240 #define SWIGTYPE_p_wxCursor swig_types[31]
241 #define SWIGTYPE_p_wxClientDC swig_types[32]
242 #define SWIGTYPE_p_wxBufferedDC swig_types[33]
243 #define SWIGTYPE_p_wxImageList swig_types[34]
244 #define SWIGTYPE_p_unsigned_char swig_types[35]
245 #define SWIGTYPE_p_wxGDIObject swig_types[36]
246 #define SWIGTYPE_p_wxIcon swig_types[37]
247 #define SWIGTYPE_p_wxLocale swig_types[38]
248 #define SWIGTYPE_p_wxRegion swig_types[39]
249 #define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250 #define SWIGTYPE_p_wxConfigBase swig_types[41]
251 #define SWIGTYPE_p_wxWindowDC swig_types[42]
252 #define SWIGTYPE_p_wxPrintData swig_types[43]
253 #define SWIGTYPE_p_wxBrushList swig_types[44]
254 #define SWIGTYPE_p_wxFontList swig_types[45]
255 #define SWIGTYPE_p_wxPen swig_types[46]
256 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[47]
257 #define SWIGTYPE_p_wxPaintDC swig_types[48]
258 #define SWIGTYPE_p_wxPenList swig_types[49]
259 #define SWIGTYPE_p_int swig_types[50]
260 #define SWIGTYPE_p_wxMetaFile swig_types[51]
261 #define SWIGTYPE_p_wxNativeFontInfo swig_types[52]
262 #define SWIGTYPE_p_wxEncodingConverter swig_types[53]
263 #define SWIGTYPE_p_wxColourDatabase swig_types[54]
264 static swig_type_info *swig_types[56];
265
266 /* -------- TYPES TABLE (END) -------- */
267
268
269 /*-----------------------------------------------
270 @(target):= _gdi_.so
271 ------------------------------------------------*/
272 #define SWIG_init init_gdi_
273
274 #define SWIG_name "_gdi_"
275
276 /* Auxiliar swig macros */
277
278 #ifdef __cplusplus
279 #define SWIGSTATICINLINE(a) static inline a
280 #define SWIGSTATIC(a) static a
281 #define swig_new_array(type, size) (new type[(size)])
282 #define swig_delete_array(cptr) delete[] cptr
283 #define swig_const_cast(type,a) const_cast<type>(a)
284 #define swig_static_cast(type,a) static_cast<type>(a)
285 #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a)
286
287 #ifdef HAVE_NUMERIC_CAST
288 #define swig_numeric_cast(type,a) numeric_cast<type>(a)
289 #else
290 #define swig_numeric_cast(type,a) static_cast<type>(a)
291 #endif
292
293 #else /* C case */
294
295 #define SWIGSTATICINLINE(a) static a
296 #define SWIGSTATIC(a) static a
297 #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type)))
298 #define swig_delete_array(cptr) free((char*)cptr)
299 #define swig_const_cast(type,a) (type)(a)
300 #define swig_static_cast(type,a) (type)(a)
301 #define swig_reinterpret_cast(type,a) (type)(a)
302 #define swig_numeric_cast(type,a) (type)(a)
303
304 #endif /* __cplusplus */
305
306
307 #define SWIG_FromSignedChar PyInt_FromLong
308 #define SWIG_FromUnsignedChar PyInt_FromLong
309 #define SWIG_FromShort PyInt_FromLong
310 #define SWIG_FromUnsignedShort PyInt_FromLong
311 #define SWIG_FromInt PyInt_FromLong
312 #define SWIG_FromLong PyInt_FromLong
313 #define SWIG_FromFloat PyFloat_FromDouble
314 #define SWIG_FromDouble PyFloat_FromDouble
315 #define SWIG_FromFloat PyFloat_FromDouble
316 #define SWIG_FromDouble PyFloat_FromDouble
317
318
319 #include "wx/wxPython/wxPython.h"
320 #include "wx/wxPython/pyclasses.h"
321
322
323 static const wxString wxPyEmptyString(wxEmptyString);
324
325 SWIGSTATICINLINE(bool)
326 SWIG_AsBool(PyObject *obj)
327 {
328 return PyObject_IsTrue(obj) ? true : false;
329 }
330
331
332 SWIGSTATICINLINE(int)
333 SWIG_CheckBool(PyObject* obj)
334 {
335 SWIG_AsBool(obj);
336 if (PyErr_Occurred()) {
337 PyErr_Clear();
338 return 0;
339 } else {
340 return 1;
341 }
342 }
343
344
345 #include <limits.h>
346
347
348 SWIGSTATICINLINE(unsigned long)
349 SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type,
350 unsigned long max_value)
351 {
352 if (!PyErr_Occurred()) {
353 if (value > max_value) {
354 PyObject *err =
355 PyString_FromFormat("value %ld is greater than '%s' minimum %ld",
356 value, type, max_value);
357 PyErr_SetObject(PyExc_OverflowError, err);
358 Py_DECREF(err);
359 }
360 }
361 return value;
362 }
363
364
365 SWIGSTATICINLINE(long)
366 SWIG_AsLong(PyObject * obj)
367 {
368 if (PyNumber_Check(obj))
369 return PyInt_AsLong(obj);
370 else {
371 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
372 obj->ob_type->tp_name);
373 PyErr_SetObject(PyExc_TypeError, errmsg);
374 Py_DECREF(errmsg);
375 return 0;
376 }
377 }
378
379
380 SWIGSTATICINLINE(unsigned long)
381 SWIG_AsUnsignedLong(PyObject * obj)
382 {
383 if (PyLong_Check(obj)) {
384 return PyLong_AsUnsignedLong(obj);
385 } else {
386 long i = SWIG_AsLong(obj);
387 if ( !PyErr_Occurred() && (i < 0)) {
388 PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type");
389 }
390 return i;
391 }
392 }
393
394
395 SWIGSTATICINLINE(unsigned char)
396 SWIG_AsUnsignedChar(PyObject *obj)
397 {
398 return swig_numeric_cast(unsigned char,
399 SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj),
400 "unsigned char", UCHAR_MAX));
401 }
402
403
404 SWIGSTATICINLINE(int)
405 SWIG_CheckUnsignedChar(PyObject* obj)
406 {
407 SWIG_AsUnsignedChar(obj);
408 if (PyErr_Occurred()) {
409 PyErr_Clear();
410 return 0;
411 } else {
412 return 1;
413 }
414 }
415
416
417 SWIGSTATICINLINE(int)
418 SWIG_CheckUnsignedLong(PyObject* obj)
419 {
420 SWIG_AsUnsignedLong(obj);
421 if (PyErr_Occurred()) {
422 PyErr_Clear();
423 return 0;
424 } else {
425 return 1;
426 }
427 }
428
429 PyObject *wxColour_Get(wxColour *self){
430 PyObject* rv = PyTuple_New(3);
431 int red = -1;
432 int green = -1;
433 int blue = -1;
434 if (self->Ok()) {
435 red = self->Red();
436 green = self->Green();
437 blue = self->Blue();
438 }
439 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
440 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
441 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
442 return rv;
443 }
444 unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
448 SWIGSTATICINLINE(PyObject* )
449 SWIG_FromUnsignedLong(unsigned long value)
450 {
451 return (value > LONG_MAX) ?
452 PyLong_FromUnsignedLong(value)
453 : PyInt_FromLong(swig_numeric_cast(long,value));
454 }
455
456
457 SWIGSTATICINLINE(long)
458 SWIG_CheckLongInRange(long value, const char* type,
459 long min_value, long max_value)
460 {
461 if (!PyErr_Occurred()) {
462 if (value < min_value) {
463 PyObject *err =
464 PyString_FromFormat("value %ld is less than '%s' minimum %ld",
465 value, type, min_value);
466
467 PyErr_SetObject(PyExc_OverflowError, err);
468 Py_DECREF(err);
469 } else if (value > max_value) {
470 PyObject *err =
471 PyString_FromFormat("value %ld is greater than '%s' maximum %ld",
472 value, type, max_value);
473 PyErr_SetObject(PyExc_OverflowError, err);
474 Py_DECREF(err);
475 }
476 }
477 return value;
478 }
479
480
481 #if INT_MAX != LONG_MAX
482 SWIGSTATICINLINE(int)
483 SWIG_AsInt(PyObject *obj)
484 {
485 return swig_numeric_cast(int,
486 SWIG_CheckLongInRange(SWIG_AsLong(obj),
487 "int", INT_MIN, INT_MAX));
488 }
489 #else
490 #define SWIG_AsInt SWIG_AsLong
491 #endif
492
493
494 SWIGSTATICINLINE(int)
495 SWIG_CheckInt(PyObject* obj)
496 {
497 SWIG_AsInt(obj);
498 if (PyErr_Occurred()) {
499 PyErr_Clear();
500 return 0;
501 } else {
502 return 1;
503 }
504 }
505
506
507 static PyObject* t_output_helper(PyObject* target, PyObject* o) {
508 PyObject* o2;
509 PyObject* o3;
510
511 if (!target) {
512 target = o;
513 } else if (target == Py_None) {
514 Py_DECREF(Py_None);
515 target = o;
516 } else {
517 if (!PyTuple_Check(target)) {
518 o2 = target;
519 target = PyTuple_New(1);
520 PyTuple_SetItem(target, 0, o2);
521 }
522 o3 = PyTuple_New(1);
523 PyTuple_SetItem(o3, 0, o);
524
525 o2 = target;
526 target = PySequence_Concat(o2, o3);
527 Py_DECREF(o2);
528 Py_DECREF(o3);
529 }
530 return target;
531 }
532
533 PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
536 bool blocked = wxPyBeginBlockThreads();
537 PyObject* retval = PyList_New(0);
538 for (int x=0; x<count; x++) {
539 PyObject* pyint = PyInt_FromLong(dashes[x]);
540 PyList_Append(retval, pyint);
541 Py_DECREF(pyint);
542 }
543 wxPyEndBlockThreads(blocked);
544 return retval;
545 }
546 void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
547 bool blocked = wxPyBeginBlockThreads();
548 int size = PyList_Size(pyDashes);
549 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
550
551 // black magic warning! The array of wxDashes needs to exist as
552 // long as the pen does because wxPen does not copy the array. So
553 // stick a copy in a Python string object and attach it to _self,
554 // and then call SetDashes with a pointer to that array. Then
555 // when the Python pen object is destroyed the array will be
556 // cleaned up too.
557 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
558 PyObject_SetAttrString(_self, "_dashes", strDashes);
559
560 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
561 delete [] dashes;
562 Py_DECREF(strDashes);
563 wxPyEndBlockThreads(blocked);
564 }
565 bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566 bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
567
568 #include <wx/image.h>
569
570 static char** ConvertListOfStrings(PyObject* listOfStrings) {
571 char** cArray = NULL;
572 int count;
573
574 if (!PyList_Check(listOfStrings)) {
575 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
576 return NULL;
577 }
578 count = PyList_Size(listOfStrings);
579 cArray = new char*[count];
580
581 for(int x=0; x<count; x++) {
582 // TODO: Need some validation and error checking here
583 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
584 }
585 return cArray;
586 }
587
588
589 wxBitmap *new_wxBitmap(PyObject *listOfStrings){
590 char** cArray = NULL;
591 wxBitmap* bmp;
592
593 cArray = ConvertListOfStrings(listOfStrings);
594 if (! cArray)
595 return NULL;
596 bmp = new wxBitmap(cArray);
597 delete [] cArray;
598 return bmp;
599 }
600 wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
601 char* buf;
602 int length;
603 PyString_AsStringAndSize(bits, &buf, &length);
604 return new wxBitmap(buf, width, height, depth);
605 }
606
607 SWIGSTATICINLINE(int)
608 SWIG_CheckLong(PyObject* obj)
609 {
610 SWIG_AsLong(obj);
611 if (PyErr_Occurred()) {
612 PyErr_Clear();
613 return 0;
614 } else {
615 return 1;
616 }
617 }
618
619 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
620 wxSize wxBitmap_GetSize(wxBitmap *self){
621 wxSize size(self->GetWidth(), self->GetHeight());
622 return size;
623 }
624 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
625 wxMask *mask = new wxMask(*self, colour);
626 self->SetMask(mask);
627 }
628 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
629 self->SetWidth(size.x);
630 self->SetHeight(size.y);
631 }
632 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
633 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
634 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
635 if ( !colour.Ok() )
636 return new wxMask(bitmap, *wxBLACK);
637 else
638 return new wxMask(bitmap, colour);
639 }
640
641 #include <wx/iconbndl.h>
642
643 wxIcon *new_wxIcon(wxBitmap const &bmp){
644 wxIcon* icon = new wxIcon();
645 icon->CopyFromBitmap(bmp);
646 return icon;
647 }
648 wxIcon *new_wxIcon(PyObject *listOfStrings){
649 char** cArray = NULL;
650 wxIcon* icon;
651
652 cArray = ConvertListOfStrings(listOfStrings);
653 if (! cArray)
654 return NULL;
655 icon = new wxIcon(cArray);
656 delete [] cArray;
657 return icon;
658 }
659 void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
660 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
661
662 return new wxIconLocation(*filename, num);
663
664
665
666 }
667 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
668
669 self->SetIndex(num);
670
671
672
673 }
674 int wxIconLocation_GetIndex(wxIconLocation *self){
675
676 return self->GetIndex();
677
678
679
680 }
681 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
682 #ifdef __WXGTK__
683 wxCHECK_MSG(False, NULL,
684 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
685 #else
686 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
687 #endif
688 }
689 void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
690
691
692 void wxRegionIterator_Next(wxRegionIterator *self){
693 (*self) ++;
694 }
695 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
696 return self->operator bool();
697 }
698
699 #include <wx/fontutil.h>
700 #include <wx/fontmap.h>
701 #include <wx/fontenum.h>
702
703 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
704 return self->ToString();
705 }
706
707 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
708 { wxPyRaiseNotImplemented(); return NULL; }
709
710 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
711 { wxPyRaiseNotImplemented(); return False; }
712
713 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
714 wxFontEncoding alt_enc;
715 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
716 return PyInt_FromLong(alt_enc);
717 else {
718 Py_INCREF(Py_None);
719 return Py_None;
720 }
721 }
722 wxFont *new_wxFont(wxString const &info){
723 wxNativeFontInfo nfi;
724 nfi.FromString(info);
725 return new wxFont(nfi);
726 }
727 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
728 return wxFont::New(pointSize, family, flags, face, encoding);
729 }
730 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
731 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
732
733 class wxPyFontEnumerator : public wxFontEnumerator {
734 public:
735 wxPyFontEnumerator() {}
736 ~wxPyFontEnumerator() {}
737
738 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
739 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
740
741 PYPRIVATE;
742 };
743
744 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
745 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
746
747
748 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
749 wxArrayString* arr = self->GetEncodings();
750 return wxArrayString2PyList_helper(*arr);
751 }
752 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
753 wxArrayString* arr = self->GetFacenames();
754 return wxArrayString2PyList_helper(*arr);
755 }
756
757
758 wxLocale *new_wxLocale(int language,int flags){
759 if (language == -1)
760 return new wxLocale();
761 else
762 return new wxLocale(language, flags);
763 }
764
765 #include "wx/wxPython/pydrawxxx.h"
766
767 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
768 wxColour col;
769 self->GetPixel(x, y, &col);
770 return col;
771 }
772 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
773 wxColour col;
774 self->GetPixel(pt, &col);
775 return col;
776 }
777
778 SWIGSTATICINLINE(double)
779 SWIG_AsDouble(PyObject *obj)
780 {
781 if (PyNumber_Check(obj))
782 return PyFloat_AsDouble(obj);
783 else {
784 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
785 obj->ob_type->tp_name);
786 PyErr_SetObject(PyExc_TypeError, errmsg);
787 Py_DECREF(errmsg);
788 return 0;
789 }
790 }
791
792
793 SWIGSTATICINLINE(int)
794 SWIG_CheckDouble(PyObject* obj)
795 {
796 SWIG_AsDouble(obj);
797 if (PyErr_Occurred()) {
798 PyErr_Clear();
799 return 0;
800 } else {
801 return 1;
802 }
803 }
804
805 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
806 wxRect rv;
807 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
808 return rv;
809 }
810 wxRect wxDC_GetClippingRect(wxDC *self){
811 wxRect rect;
812 self->GetClippingBox(rect);
813 return rect;
814 }
815 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
816 wxArrayInt widths;
817 self->GetPartialTextExtents(text, widths);
818 return widths;
819 }
820 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
821 self->SetLogicalOrigin(point.x, point.y);
822 }
823 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
824 self->SetDeviceOrigin(point.x, point.y);
825 }
826 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
827 self->CalcBoundingBox(point.x, point.y);
828 }
829 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
830 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
831 }
832 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
833 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
834 }
835 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
836 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
837 }
838 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
839 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
840 }
841 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
842 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
843 }
844 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
845 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
846 }
847
848 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
849 *x1 = dc->MinX();
850 *y1 = dc->MinY();
851 *x2 = dc->MaxX();
852 *y2 = dc->MaxY();
853 }
854
855
856 #include <wx/dcbuffer.h>
857
858
859 #include <wx/dcps.h>
860
861
862 #include <wx/metafile.h>
863
864
865
866 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
867 self->AddColour(name, wxColour(red, green, blue));
868 }
869
870 #include <wx/effects.h>
871
872 #ifdef __cplusplus
873 extern "C" {
874 #endif
875 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
876 PyObject *resultobj;
877 wxGDIObject *result;
878 char *kwnames[] = {
879 NULL
880 };
881
882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
883 {
884 if (!wxPyCheckForApp()) SWIG_fail;
885 PyThreadState* __tstate = wxPyBeginAllowThreads();
886 result = (wxGDIObject *)new wxGDIObject();
887
888 wxPyEndAllowThreads(__tstate);
889 if (PyErr_Occurred()) SWIG_fail;
890 }
891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
892 return resultobj;
893 fail:
894 return NULL;
895 }
896
897
898 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
899 PyObject *resultobj;
900 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
901 PyObject * obj0 = 0 ;
902 char *kwnames[] = {
903 (char *) "self", NULL
904 };
905
906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
909 {
910 PyThreadState* __tstate = wxPyBeginAllowThreads();
911 delete arg1;
912
913 wxPyEndAllowThreads(__tstate);
914 if (PyErr_Occurred()) SWIG_fail;
915 }
916 Py_INCREF(Py_None); resultobj = Py_None;
917 return resultobj;
918 fail:
919 return NULL;
920 }
921
922
923 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject *resultobj;
925 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
926 bool result;
927 PyObject * obj0 = 0 ;
928 char *kwnames[] = {
929 (char *) "self", NULL
930 };
931
932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
935 {
936 PyThreadState* __tstate = wxPyBeginAllowThreads();
937 result = (bool)(arg1)->GetVisible();
938
939 wxPyEndAllowThreads(__tstate);
940 if (PyErr_Occurred()) SWIG_fail;
941 }
942 {
943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
944 }
945 return resultobj;
946 fail:
947 return NULL;
948 }
949
950
951 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
952 PyObject *resultobj;
953 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
954 bool arg2 ;
955 PyObject * obj0 = 0 ;
956 PyObject * obj1 = 0 ;
957 char *kwnames[] = {
958 (char *) "self",(char *) "visible", NULL
959 };
960
961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
964 arg2 = (bool) SWIG_AsBool(obj1);
965 if (PyErr_Occurred()) SWIG_fail;
966 {
967 PyThreadState* __tstate = wxPyBeginAllowThreads();
968 (arg1)->SetVisible(arg2);
969
970 wxPyEndAllowThreads(__tstate);
971 if (PyErr_Occurred()) SWIG_fail;
972 }
973 Py_INCREF(Py_None); resultobj = Py_None;
974 return resultobj;
975 fail:
976 return NULL;
977 }
978
979
980 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
981 PyObject *resultobj;
982 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
983 bool result;
984 PyObject * obj0 = 0 ;
985 char *kwnames[] = {
986 (char *) "self", NULL
987 };
988
989 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
990 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
991 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
992 {
993 PyThreadState* __tstate = wxPyBeginAllowThreads();
994 result = (bool)(arg1)->IsNull();
995
996 wxPyEndAllowThreads(__tstate);
997 if (PyErr_Occurred()) SWIG_fail;
998 }
999 {
1000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1001 }
1002 return resultobj;
1003 fail:
1004 return NULL;
1005 }
1006
1007
1008 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1009 PyObject *obj;
1010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1011 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1012 Py_INCREF(obj);
1013 return Py_BuildValue((char *)"");
1014 }
1015 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1016 PyObject *resultobj;
1017 byte arg1 = (byte) 0 ;
1018 byte arg2 = (byte) 0 ;
1019 byte arg3 = (byte) 0 ;
1020 wxColour *result;
1021 PyObject * obj0 = 0 ;
1022 PyObject * obj1 = 0 ;
1023 PyObject * obj2 = 0 ;
1024 char *kwnames[] = {
1025 (char *) "red",(char *) "green",(char *) "blue", NULL
1026 };
1027
1028 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1029 if (obj0) {
1030 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1031 if (PyErr_Occurred()) SWIG_fail;
1032 }
1033 if (obj1) {
1034 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1035 if (PyErr_Occurred()) SWIG_fail;
1036 }
1037 if (obj2) {
1038 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1039 if (PyErr_Occurred()) SWIG_fail;
1040 }
1041 {
1042 PyThreadState* __tstate = wxPyBeginAllowThreads();
1043 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1044
1045 wxPyEndAllowThreads(__tstate);
1046 if (PyErr_Occurred()) SWIG_fail;
1047 }
1048 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1049 return resultobj;
1050 fail:
1051 return NULL;
1052 }
1053
1054
1055 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1056 PyObject *resultobj;
1057 wxString *arg1 = 0 ;
1058 wxColour *result;
1059 bool temp1 = False ;
1060 PyObject * obj0 = 0 ;
1061 char *kwnames[] = {
1062 (char *) "colorName", NULL
1063 };
1064
1065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1066 {
1067 arg1 = wxString_in_helper(obj0);
1068 if (arg1 == NULL) SWIG_fail;
1069 temp1 = True;
1070 }
1071 {
1072 if (!wxPyCheckForApp()) SWIG_fail;
1073 PyThreadState* __tstate = wxPyBeginAllowThreads();
1074 result = (wxColour *)new wxColour((wxString const &)*arg1);
1075
1076 wxPyEndAllowThreads(__tstate);
1077 if (PyErr_Occurred()) SWIG_fail;
1078 }
1079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1080 {
1081 if (temp1)
1082 delete arg1;
1083 }
1084 return resultobj;
1085 fail:
1086 {
1087 if (temp1)
1088 delete arg1;
1089 }
1090 return NULL;
1091 }
1092
1093
1094 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1095 PyObject *resultobj;
1096 unsigned long arg1 ;
1097 wxColour *result;
1098 PyObject * obj0 = 0 ;
1099 char *kwnames[] = {
1100 (char *) "colRGB", NULL
1101 };
1102
1103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1104 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1105 if (PyErr_Occurred()) SWIG_fail;
1106 {
1107 PyThreadState* __tstate = wxPyBeginAllowThreads();
1108 result = (wxColour *)new wxColour(arg1);
1109
1110 wxPyEndAllowThreads(__tstate);
1111 if (PyErr_Occurred()) SWIG_fail;
1112 }
1113 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1114 return resultobj;
1115 fail:
1116 return NULL;
1117 }
1118
1119
1120 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1121 PyObject *resultobj;
1122 wxColour *arg1 = (wxColour *) 0 ;
1123 PyObject * obj0 = 0 ;
1124 char *kwnames[] = {
1125 (char *) "self", NULL
1126 };
1127
1128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1131 {
1132 PyThreadState* __tstate = wxPyBeginAllowThreads();
1133 delete arg1;
1134
1135 wxPyEndAllowThreads(__tstate);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 }
1138 Py_INCREF(Py_None); resultobj = Py_None;
1139 return resultobj;
1140 fail:
1141 return NULL;
1142 }
1143
1144
1145 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1146 PyObject *resultobj;
1147 wxColour *arg1 = (wxColour *) 0 ;
1148 byte result;
1149 PyObject * obj0 = 0 ;
1150 char *kwnames[] = {
1151 (char *) "self", NULL
1152 };
1153
1154 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1155 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1156 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1157 {
1158 PyThreadState* __tstate = wxPyBeginAllowThreads();
1159 result = (byte)(arg1)->Red();
1160
1161 wxPyEndAllowThreads(__tstate);
1162 if (PyErr_Occurred()) SWIG_fail;
1163 }
1164 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1165 return resultobj;
1166 fail:
1167 return NULL;
1168 }
1169
1170
1171 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1172 PyObject *resultobj;
1173 wxColour *arg1 = (wxColour *) 0 ;
1174 byte result;
1175 PyObject * obj0 = 0 ;
1176 char *kwnames[] = {
1177 (char *) "self", NULL
1178 };
1179
1180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1183 {
1184 PyThreadState* __tstate = wxPyBeginAllowThreads();
1185 result = (byte)(arg1)->Green();
1186
1187 wxPyEndAllowThreads(__tstate);
1188 if (PyErr_Occurred()) SWIG_fail;
1189 }
1190 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1191 return resultobj;
1192 fail:
1193 return NULL;
1194 }
1195
1196
1197 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1198 PyObject *resultobj;
1199 wxColour *arg1 = (wxColour *) 0 ;
1200 byte result;
1201 PyObject * obj0 = 0 ;
1202 char *kwnames[] = {
1203 (char *) "self", NULL
1204 };
1205
1206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1209 {
1210 PyThreadState* __tstate = wxPyBeginAllowThreads();
1211 result = (byte)(arg1)->Blue();
1212
1213 wxPyEndAllowThreads(__tstate);
1214 if (PyErr_Occurred()) SWIG_fail;
1215 }
1216 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1217 return resultobj;
1218 fail:
1219 return NULL;
1220 }
1221
1222
1223 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1224 PyObject *resultobj;
1225 wxColour *arg1 = (wxColour *) 0 ;
1226 bool result;
1227 PyObject * obj0 = 0 ;
1228 char *kwnames[] = {
1229 (char *) "self", NULL
1230 };
1231
1232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1235 {
1236 PyThreadState* __tstate = wxPyBeginAllowThreads();
1237 result = (bool)(arg1)->Ok();
1238
1239 wxPyEndAllowThreads(__tstate);
1240 if (PyErr_Occurred()) SWIG_fail;
1241 }
1242 {
1243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1244 }
1245 return resultobj;
1246 fail:
1247 return NULL;
1248 }
1249
1250
1251 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1252 PyObject *resultobj;
1253 wxColour *arg1 = (wxColour *) 0 ;
1254 byte arg2 ;
1255 byte arg3 ;
1256 byte arg4 ;
1257 PyObject * obj0 = 0 ;
1258 PyObject * obj1 = 0 ;
1259 PyObject * obj2 = 0 ;
1260 PyObject * obj3 = 0 ;
1261 char *kwnames[] = {
1262 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1263 };
1264
1265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1268 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1269 if (PyErr_Occurred()) SWIG_fail;
1270 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1273 if (PyErr_Occurred()) SWIG_fail;
1274 {
1275 PyThreadState* __tstate = wxPyBeginAllowThreads();
1276 (arg1)->Set(arg2,arg3,arg4);
1277
1278 wxPyEndAllowThreads(__tstate);
1279 if (PyErr_Occurred()) SWIG_fail;
1280 }
1281 Py_INCREF(Py_None); resultobj = Py_None;
1282 return resultobj;
1283 fail:
1284 return NULL;
1285 }
1286
1287
1288 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1289 PyObject *resultobj;
1290 wxColour *arg1 = (wxColour *) 0 ;
1291 unsigned long arg2 ;
1292 PyObject * obj0 = 0 ;
1293 PyObject * obj1 = 0 ;
1294 char *kwnames[] = {
1295 (char *) "self",(char *) "colRGB", NULL
1296 };
1297
1298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1301 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1302 if (PyErr_Occurred()) SWIG_fail;
1303 {
1304 PyThreadState* __tstate = wxPyBeginAllowThreads();
1305 (arg1)->Set(arg2);
1306
1307 wxPyEndAllowThreads(__tstate);
1308 if (PyErr_Occurred()) SWIG_fail;
1309 }
1310 Py_INCREF(Py_None); resultobj = Py_None;
1311 return resultobj;
1312 fail:
1313 return NULL;
1314 }
1315
1316
1317 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1318 PyObject *resultobj;
1319 wxColour *arg1 = (wxColour *) 0 ;
1320 wxString *arg2 = 0 ;
1321 bool temp2 = False ;
1322 PyObject * obj0 = 0 ;
1323 PyObject * obj1 = 0 ;
1324 char *kwnames[] = {
1325 (char *) "self",(char *) "colourName", NULL
1326 };
1327
1328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1331 {
1332 arg2 = wxString_in_helper(obj1);
1333 if (arg2 == NULL) SWIG_fail;
1334 temp2 = True;
1335 }
1336 {
1337 PyThreadState* __tstate = wxPyBeginAllowThreads();
1338 (arg1)->InitFromName((wxString const &)*arg2);
1339
1340 wxPyEndAllowThreads(__tstate);
1341 if (PyErr_Occurred()) SWIG_fail;
1342 }
1343 Py_INCREF(Py_None); resultobj = Py_None;
1344 {
1345 if (temp2)
1346 delete arg2;
1347 }
1348 return resultobj;
1349 fail:
1350 {
1351 if (temp2)
1352 delete arg2;
1353 }
1354 return NULL;
1355 }
1356
1357
1358 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1359 PyObject *resultobj;
1360 wxColour *arg1 = (wxColour *) 0 ;
1361 long result;
1362 PyObject * obj0 = 0 ;
1363 char *kwnames[] = {
1364 (char *) "self", NULL
1365 };
1366
1367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1370 {
1371 PyThreadState* __tstate = wxPyBeginAllowThreads();
1372 result = (long)((wxColour const *)arg1)->GetPixel();
1373
1374 wxPyEndAllowThreads(__tstate);
1375 if (PyErr_Occurred()) SWIG_fail;
1376 }
1377 resultobj = SWIG_FromLong((long)result);
1378 return resultobj;
1379 fail:
1380 return NULL;
1381 }
1382
1383
1384 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1385 PyObject *resultobj;
1386 wxColour *arg1 = (wxColour *) 0 ;
1387 wxColour *arg2 = 0 ;
1388 bool result;
1389 wxColour temp2 ;
1390 PyObject * obj0 = 0 ;
1391 PyObject * obj1 = 0 ;
1392 char *kwnames[] = {
1393 (char *) "self",(char *) "colour", NULL
1394 };
1395
1396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1399 {
1400 arg2 = &temp2;
1401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1402 }
1403 {
1404 PyThreadState* __tstate = wxPyBeginAllowThreads();
1405 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1406
1407 wxPyEndAllowThreads(__tstate);
1408 if (PyErr_Occurred()) SWIG_fail;
1409 }
1410 {
1411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1412 }
1413 return resultobj;
1414 fail:
1415 return NULL;
1416 }
1417
1418
1419 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1420 PyObject *resultobj;
1421 wxColour *arg1 = (wxColour *) 0 ;
1422 wxColour *arg2 = 0 ;
1423 bool result;
1424 wxColour temp2 ;
1425 PyObject * obj0 = 0 ;
1426 PyObject * obj1 = 0 ;
1427 char *kwnames[] = {
1428 (char *) "self",(char *) "colour", NULL
1429 };
1430
1431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1434 {
1435 arg2 = &temp2;
1436 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1437 }
1438 {
1439 PyThreadState* __tstate = wxPyBeginAllowThreads();
1440 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1441
1442 wxPyEndAllowThreads(__tstate);
1443 if (PyErr_Occurred()) SWIG_fail;
1444 }
1445 {
1446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1447 }
1448 return resultobj;
1449 fail:
1450 return NULL;
1451 }
1452
1453
1454 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1455 PyObject *resultobj;
1456 wxColour *arg1 = (wxColour *) 0 ;
1457 PyObject *result;
1458 PyObject * obj0 = 0 ;
1459 char *kwnames[] = {
1460 (char *) "self", NULL
1461 };
1462
1463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1466 {
1467 PyThreadState* __tstate = wxPyBeginAllowThreads();
1468 result = (PyObject *)wxColour_Get(arg1);
1469
1470 wxPyEndAllowThreads(__tstate);
1471 if (PyErr_Occurred()) SWIG_fail;
1472 }
1473 resultobj = result;
1474 return resultobj;
1475 fail:
1476 return NULL;
1477 }
1478
1479
1480 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1481 PyObject *resultobj;
1482 wxColour *arg1 = (wxColour *) 0 ;
1483 unsigned long result;
1484 PyObject * obj0 = 0 ;
1485 char *kwnames[] = {
1486 (char *) "self", NULL
1487 };
1488
1489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1492 {
1493 PyThreadState* __tstate = wxPyBeginAllowThreads();
1494 result = (unsigned long)wxColour_GetRGB(arg1);
1495
1496 wxPyEndAllowThreads(__tstate);
1497 if (PyErr_Occurred()) SWIG_fail;
1498 }
1499 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1500 return resultobj;
1501 fail:
1502 return NULL;
1503 }
1504
1505
1506 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1507 PyObject *obj;
1508 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1509 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1510 Py_INCREF(obj);
1511 return Py_BuildValue((char *)"");
1512 }
1513 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1514 PyObject *resultobj;
1515 int arg1 ;
1516 unsigned char *arg2 = (unsigned char *) 0 ;
1517 unsigned char *arg3 = (unsigned char *) 0 ;
1518 unsigned char *arg4 = (unsigned char *) 0 ;
1519 wxPalette *result;
1520 PyObject * obj0 = 0 ;
1521 PyObject * obj1 = 0 ;
1522 PyObject * obj2 = 0 ;
1523 PyObject * obj3 = 0 ;
1524 char *kwnames[] = {
1525 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1526 };
1527
1528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1529 arg1 = (int) SWIG_AsInt(obj0);
1530 if (PyErr_Occurred()) SWIG_fail;
1531 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1533 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1535 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1537 {
1538 if (!wxPyCheckForApp()) SWIG_fail;
1539 PyThreadState* __tstate = wxPyBeginAllowThreads();
1540 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1541
1542 wxPyEndAllowThreads(__tstate);
1543 if (PyErr_Occurred()) SWIG_fail;
1544 }
1545 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1546 return resultobj;
1547 fail:
1548 return NULL;
1549 }
1550
1551
1552 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1553 PyObject *resultobj;
1554 wxPalette *arg1 = (wxPalette *) 0 ;
1555 PyObject * obj0 = 0 ;
1556 char *kwnames[] = {
1557 (char *) "self", NULL
1558 };
1559
1560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1563 {
1564 PyThreadState* __tstate = wxPyBeginAllowThreads();
1565 delete arg1;
1566
1567 wxPyEndAllowThreads(__tstate);
1568 if (PyErr_Occurred()) SWIG_fail;
1569 }
1570 Py_INCREF(Py_None); resultobj = Py_None;
1571 return resultobj;
1572 fail:
1573 return NULL;
1574 }
1575
1576
1577 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1578 PyObject *resultobj;
1579 wxPalette *arg1 = (wxPalette *) 0 ;
1580 byte arg2 ;
1581 byte arg3 ;
1582 byte arg4 ;
1583 int result;
1584 PyObject * obj0 = 0 ;
1585 PyObject * obj1 = 0 ;
1586 PyObject * obj2 = 0 ;
1587 PyObject * obj3 = 0 ;
1588 char *kwnames[] = {
1589 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1590 };
1591
1592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1595 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1596 if (PyErr_Occurred()) SWIG_fail;
1597 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1598 if (PyErr_Occurred()) SWIG_fail;
1599 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1600 if (PyErr_Occurred()) SWIG_fail;
1601 {
1602 PyThreadState* __tstate = wxPyBeginAllowThreads();
1603 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1604
1605 wxPyEndAllowThreads(__tstate);
1606 if (PyErr_Occurred()) SWIG_fail;
1607 }
1608 resultobj = SWIG_FromInt((int)result);
1609 return resultobj;
1610 fail:
1611 return NULL;
1612 }
1613
1614
1615 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1616 PyObject *resultobj;
1617 wxPalette *arg1 = (wxPalette *) 0 ;
1618 int arg2 ;
1619 byte *arg3 = (byte *) 0 ;
1620 byte *arg4 = (byte *) 0 ;
1621 byte *arg5 = (byte *) 0 ;
1622 bool result;
1623 byte temp3 ;
1624 byte temp4 ;
1625 byte temp5 ;
1626 PyObject * obj0 = 0 ;
1627 PyObject * obj1 = 0 ;
1628 char *kwnames[] = {
1629 (char *) "self",(char *) "pixel", NULL
1630 };
1631
1632 arg3 = &temp3;
1633 arg4 = &temp4;
1634 arg5 = &temp5;
1635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1638 arg2 = (int) SWIG_AsInt(obj1);
1639 if (PyErr_Occurred()) SWIG_fail;
1640 {
1641 PyThreadState* __tstate = wxPyBeginAllowThreads();
1642 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1643
1644 wxPyEndAllowThreads(__tstate);
1645 if (PyErr_Occurred()) SWIG_fail;
1646 }
1647 {
1648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1649 }
1650 {
1651 PyObject *o = PyInt_FromLong((long) (*arg3));
1652 resultobj = t_output_helper(resultobj,o);
1653 }
1654 {
1655 PyObject *o = PyInt_FromLong((long) (*arg4));
1656 resultobj = t_output_helper(resultobj,o);
1657 }
1658 {
1659 PyObject *o = PyInt_FromLong((long) (*arg5));
1660 resultobj = t_output_helper(resultobj,o);
1661 }
1662 return resultobj;
1663 fail:
1664 return NULL;
1665 }
1666
1667
1668 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1669 PyObject *resultobj;
1670 wxPalette *arg1 = (wxPalette *) 0 ;
1671 bool result;
1672 PyObject * obj0 = 0 ;
1673 char *kwnames[] = {
1674 (char *) "self", NULL
1675 };
1676
1677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1680 {
1681 PyThreadState* __tstate = wxPyBeginAllowThreads();
1682 result = (bool)(arg1)->Ok();
1683
1684 wxPyEndAllowThreads(__tstate);
1685 if (PyErr_Occurred()) SWIG_fail;
1686 }
1687 {
1688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1689 }
1690 return resultobj;
1691 fail:
1692 return NULL;
1693 }
1694
1695
1696 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1697 PyObject *obj;
1698 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1699 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1700 Py_INCREF(obj);
1701 return Py_BuildValue((char *)"");
1702 }
1703 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1704 PyObject *resultobj;
1705 wxColour *arg1 = 0 ;
1706 int arg2 = (int) 1 ;
1707 int arg3 = (int) wxSOLID ;
1708 wxPen *result;
1709 wxColour temp1 ;
1710 PyObject * obj0 = 0 ;
1711 PyObject * obj1 = 0 ;
1712 PyObject * obj2 = 0 ;
1713 char *kwnames[] = {
1714 (char *) "colour",(char *) "width",(char *) "style", NULL
1715 };
1716
1717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1718 {
1719 arg1 = &temp1;
1720 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1721 }
1722 if (obj1) {
1723 arg2 = (int) SWIG_AsInt(obj1);
1724 if (PyErr_Occurred()) SWIG_fail;
1725 }
1726 if (obj2) {
1727 arg3 = (int) SWIG_AsInt(obj2);
1728 if (PyErr_Occurred()) SWIG_fail;
1729 }
1730 {
1731 if (!wxPyCheckForApp()) SWIG_fail;
1732 PyThreadState* __tstate = wxPyBeginAllowThreads();
1733 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1734
1735 wxPyEndAllowThreads(__tstate);
1736 if (PyErr_Occurred()) SWIG_fail;
1737 }
1738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1739 return resultobj;
1740 fail:
1741 return NULL;
1742 }
1743
1744
1745 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1746 PyObject *resultobj;
1747 wxPen *arg1 = (wxPen *) 0 ;
1748 PyObject * obj0 = 0 ;
1749 char *kwnames[] = {
1750 (char *) "self", NULL
1751 };
1752
1753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1756 {
1757 PyThreadState* __tstate = wxPyBeginAllowThreads();
1758 delete arg1;
1759
1760 wxPyEndAllowThreads(__tstate);
1761 if (PyErr_Occurred()) SWIG_fail;
1762 }
1763 Py_INCREF(Py_None); resultobj = Py_None;
1764 return resultobj;
1765 fail:
1766 return NULL;
1767 }
1768
1769
1770 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1771 PyObject *resultobj;
1772 wxPen *arg1 = (wxPen *) 0 ;
1773 int result;
1774 PyObject * obj0 = 0 ;
1775 char *kwnames[] = {
1776 (char *) "self", NULL
1777 };
1778
1779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1782 {
1783 PyThreadState* __tstate = wxPyBeginAllowThreads();
1784 result = (int)(arg1)->GetCap();
1785
1786 wxPyEndAllowThreads(__tstate);
1787 if (PyErr_Occurred()) SWIG_fail;
1788 }
1789 resultobj = SWIG_FromInt((int)result);
1790 return resultobj;
1791 fail:
1792 return NULL;
1793 }
1794
1795
1796 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1797 PyObject *resultobj;
1798 wxPen *arg1 = (wxPen *) 0 ;
1799 wxColour result;
1800 PyObject * obj0 = 0 ;
1801 char *kwnames[] = {
1802 (char *) "self", NULL
1803 };
1804
1805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1808 {
1809 PyThreadState* __tstate = wxPyBeginAllowThreads();
1810 result = (arg1)->GetColour();
1811
1812 wxPyEndAllowThreads(__tstate);
1813 if (PyErr_Occurred()) SWIG_fail;
1814 }
1815 {
1816 wxColour * resultptr;
1817 resultptr = new wxColour((wxColour &) result);
1818 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1819 }
1820 return resultobj;
1821 fail:
1822 return NULL;
1823 }
1824
1825
1826 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1827 PyObject *resultobj;
1828 wxPen *arg1 = (wxPen *) 0 ;
1829 int result;
1830 PyObject * obj0 = 0 ;
1831 char *kwnames[] = {
1832 (char *) "self", NULL
1833 };
1834
1835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1838 {
1839 PyThreadState* __tstate = wxPyBeginAllowThreads();
1840 result = (int)(arg1)->GetJoin();
1841
1842 wxPyEndAllowThreads(__tstate);
1843 if (PyErr_Occurred()) SWIG_fail;
1844 }
1845 resultobj = SWIG_FromInt((int)result);
1846 return resultobj;
1847 fail:
1848 return NULL;
1849 }
1850
1851
1852 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1853 PyObject *resultobj;
1854 wxPen *arg1 = (wxPen *) 0 ;
1855 int result;
1856 PyObject * obj0 = 0 ;
1857 char *kwnames[] = {
1858 (char *) "self", NULL
1859 };
1860
1861 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1862 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1864 {
1865 PyThreadState* __tstate = wxPyBeginAllowThreads();
1866 result = (int)(arg1)->GetStyle();
1867
1868 wxPyEndAllowThreads(__tstate);
1869 if (PyErr_Occurred()) SWIG_fail;
1870 }
1871 resultobj = SWIG_FromInt((int)result);
1872 return resultobj;
1873 fail:
1874 return NULL;
1875 }
1876
1877
1878 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1879 PyObject *resultobj;
1880 wxPen *arg1 = (wxPen *) 0 ;
1881 int result;
1882 PyObject * obj0 = 0 ;
1883 char *kwnames[] = {
1884 (char *) "self", NULL
1885 };
1886
1887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1890 {
1891 PyThreadState* __tstate = wxPyBeginAllowThreads();
1892 result = (int)(arg1)->GetWidth();
1893
1894 wxPyEndAllowThreads(__tstate);
1895 if (PyErr_Occurred()) SWIG_fail;
1896 }
1897 resultobj = SWIG_FromInt((int)result);
1898 return resultobj;
1899 fail:
1900 return NULL;
1901 }
1902
1903
1904 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1905 PyObject *resultobj;
1906 wxPen *arg1 = (wxPen *) 0 ;
1907 bool result;
1908 PyObject * obj0 = 0 ;
1909 char *kwnames[] = {
1910 (char *) "self", NULL
1911 };
1912
1913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1916 {
1917 PyThreadState* __tstate = wxPyBeginAllowThreads();
1918 result = (bool)(arg1)->Ok();
1919
1920 wxPyEndAllowThreads(__tstate);
1921 if (PyErr_Occurred()) SWIG_fail;
1922 }
1923 {
1924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1925 }
1926 return resultobj;
1927 fail:
1928 return NULL;
1929 }
1930
1931
1932 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1933 PyObject *resultobj;
1934 wxPen *arg1 = (wxPen *) 0 ;
1935 int arg2 ;
1936 PyObject * obj0 = 0 ;
1937 PyObject * obj1 = 0 ;
1938 char *kwnames[] = {
1939 (char *) "self",(char *) "cap_style", NULL
1940 };
1941
1942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1945 arg2 = (int) SWIG_AsInt(obj1);
1946 if (PyErr_Occurred()) SWIG_fail;
1947 {
1948 PyThreadState* __tstate = wxPyBeginAllowThreads();
1949 (arg1)->SetCap(arg2);
1950
1951 wxPyEndAllowThreads(__tstate);
1952 if (PyErr_Occurred()) SWIG_fail;
1953 }
1954 Py_INCREF(Py_None); resultobj = Py_None;
1955 return resultobj;
1956 fail:
1957 return NULL;
1958 }
1959
1960
1961 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1962 PyObject *resultobj;
1963 wxPen *arg1 = (wxPen *) 0 ;
1964 wxColour *arg2 = 0 ;
1965 wxColour temp2 ;
1966 PyObject * obj0 = 0 ;
1967 PyObject * obj1 = 0 ;
1968 char *kwnames[] = {
1969 (char *) "self",(char *) "colour", NULL
1970 };
1971
1972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1975 {
1976 arg2 = &temp2;
1977 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1978 }
1979 {
1980 PyThreadState* __tstate = wxPyBeginAllowThreads();
1981 (arg1)->SetColour(*arg2);
1982
1983 wxPyEndAllowThreads(__tstate);
1984 if (PyErr_Occurred()) SWIG_fail;
1985 }
1986 Py_INCREF(Py_None); resultobj = Py_None;
1987 return resultobj;
1988 fail:
1989 return NULL;
1990 }
1991
1992
1993 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1994 PyObject *resultobj;
1995 wxPen *arg1 = (wxPen *) 0 ;
1996 int arg2 ;
1997 PyObject * obj0 = 0 ;
1998 PyObject * obj1 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "self",(char *) "join_style", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2006 arg2 = (int) SWIG_AsInt(obj1);
2007 if (PyErr_Occurred()) SWIG_fail;
2008 {
2009 PyThreadState* __tstate = wxPyBeginAllowThreads();
2010 (arg1)->SetJoin(arg2);
2011
2012 wxPyEndAllowThreads(__tstate);
2013 if (PyErr_Occurred()) SWIG_fail;
2014 }
2015 Py_INCREF(Py_None); resultobj = Py_None;
2016 return resultobj;
2017 fail:
2018 return NULL;
2019 }
2020
2021
2022 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2023 PyObject *resultobj;
2024 wxPen *arg1 = (wxPen *) 0 ;
2025 int arg2 ;
2026 PyObject * obj0 = 0 ;
2027 PyObject * obj1 = 0 ;
2028 char *kwnames[] = {
2029 (char *) "self",(char *) "style", NULL
2030 };
2031
2032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2035 arg2 = (int) SWIG_AsInt(obj1);
2036 if (PyErr_Occurred()) SWIG_fail;
2037 {
2038 PyThreadState* __tstate = wxPyBeginAllowThreads();
2039 (arg1)->SetStyle(arg2);
2040
2041 wxPyEndAllowThreads(__tstate);
2042 if (PyErr_Occurred()) SWIG_fail;
2043 }
2044 Py_INCREF(Py_None); resultobj = Py_None;
2045 return resultobj;
2046 fail:
2047 return NULL;
2048 }
2049
2050
2051 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2052 PyObject *resultobj;
2053 wxPen *arg1 = (wxPen *) 0 ;
2054 int arg2 ;
2055 PyObject * obj0 = 0 ;
2056 PyObject * obj1 = 0 ;
2057 char *kwnames[] = {
2058 (char *) "self",(char *) "width", NULL
2059 };
2060
2061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2064 arg2 = (int) SWIG_AsInt(obj1);
2065 if (PyErr_Occurred()) SWIG_fail;
2066 {
2067 PyThreadState* __tstate = wxPyBeginAllowThreads();
2068 (arg1)->SetWidth(arg2);
2069
2070 wxPyEndAllowThreads(__tstate);
2071 if (PyErr_Occurred()) SWIG_fail;
2072 }
2073 Py_INCREF(Py_None); resultobj = Py_None;
2074 return resultobj;
2075 fail:
2076 return NULL;
2077 }
2078
2079
2080 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2081 PyObject *resultobj;
2082 wxPen *arg1 = (wxPen *) 0 ;
2083 int arg2 ;
2084 wxDash *arg3 = (wxDash *) 0 ;
2085 PyObject * obj0 = 0 ;
2086 PyObject * obj1 = 0 ;
2087 char *kwnames[] = {
2088 (char *) "self",(char *) "dashes", NULL
2089 };
2090
2091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2094 {
2095 arg2 = PyList_Size(obj1);
2096 arg3 = (wxDash*)byte_LIST_helper(obj1);
2097 if (arg3 == NULL) SWIG_fail;
2098 }
2099 {
2100 PyThreadState* __tstate = wxPyBeginAllowThreads();
2101 (arg1)->SetDashes(arg2,arg3);
2102
2103 wxPyEndAllowThreads(__tstate);
2104 if (PyErr_Occurred()) SWIG_fail;
2105 }
2106 Py_INCREF(Py_None); resultobj = Py_None;
2107 {
2108 if (arg3) delete [] arg3;
2109 }
2110 return resultobj;
2111 fail:
2112 {
2113 if (arg3) delete [] arg3;
2114 }
2115 return NULL;
2116 }
2117
2118
2119 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2120 PyObject *resultobj;
2121 wxPen *arg1 = (wxPen *) 0 ;
2122 PyObject *result;
2123 PyObject * obj0 = 0 ;
2124 char *kwnames[] = {
2125 (char *) "self", NULL
2126 };
2127
2128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2131 {
2132 PyThreadState* __tstate = wxPyBeginAllowThreads();
2133 result = (PyObject *)wxPen_GetDashes(arg1);
2134
2135 wxPyEndAllowThreads(__tstate);
2136 if (PyErr_Occurred()) SWIG_fail;
2137 }
2138 resultobj = result;
2139 return resultobj;
2140 fail:
2141 return NULL;
2142 }
2143
2144
2145 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2146 PyObject *resultobj;
2147 wxPen *arg1 = (wxPen *) 0 ;
2148 PyObject *arg2 = (PyObject *) 0 ;
2149 PyObject *arg3 = (PyObject *) 0 ;
2150 PyObject * obj0 = 0 ;
2151 PyObject * obj1 = 0 ;
2152 PyObject * obj2 = 0 ;
2153 char *kwnames[] = {
2154 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2155 };
2156
2157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2160 arg2 = obj1;
2161 arg3 = obj2;
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 wxPen__SetDashes(arg1,arg2,arg3);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 Py_INCREF(Py_None); resultobj = Py_None;
2170 return resultobj;
2171 fail:
2172 return NULL;
2173 }
2174
2175
2176 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2177 PyObject *resultobj;
2178 wxPen *arg1 = (wxPen *) 0 ;
2179 int result;
2180 PyObject * obj0 = 0 ;
2181 char *kwnames[] = {
2182 (char *) "self", NULL
2183 };
2184
2185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2188 {
2189 PyThreadState* __tstate = wxPyBeginAllowThreads();
2190 result = (int)((wxPen const *)arg1)->GetDashCount();
2191
2192 wxPyEndAllowThreads(__tstate);
2193 if (PyErr_Occurred()) SWIG_fail;
2194 }
2195 resultobj = SWIG_FromInt((int)result);
2196 return resultobj;
2197 fail:
2198 return NULL;
2199 }
2200
2201
2202 static PyObject *_wrap_Pen_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2203 PyObject *resultobj;
2204 wxPen *arg1 = (wxPen *) 0 ;
2205 wxBitmap *result;
2206 PyObject * obj0 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self", NULL
2209 };
2210
2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStipple",kwnames,&obj0)) goto fail;
2212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2214 {
2215 PyThreadState* __tstate = wxPyBeginAllowThreads();
2216 result = (wxBitmap *)(arg1)->GetStipple();
2217
2218 wxPyEndAllowThreads(__tstate);
2219 if (PyErr_Occurred()) SWIG_fail;
2220 }
2221 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2222 return resultobj;
2223 fail:
2224 return NULL;
2225 }
2226
2227
2228 static PyObject *_wrap_Pen_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2229 PyObject *resultobj;
2230 wxPen *arg1 = (wxPen *) 0 ;
2231 wxBitmap *arg2 = 0 ;
2232 PyObject * obj0 = 0 ;
2233 PyObject * obj1 = 0 ;
2234 char *kwnames[] = {
2235 (char *) "self",(char *) "stipple", NULL
2236 };
2237
2238 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2239 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2240 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2241 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2242 SWIG_POINTER_EXCEPTION | 0)) == -1)
2243 SWIG_fail;
2244 if (arg2 == NULL) {
2245 PyErr_SetString(PyExc_TypeError,"null reference");
2246 SWIG_fail;
2247 }
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
2250 (arg1)->SetStipple(*arg2);
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
2255 Py_INCREF(Py_None); resultobj = Py_None;
2256 return resultobj;
2257 fail:
2258 return NULL;
2259 }
2260
2261
2262 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2263 PyObject *resultobj;
2264 wxPen *arg1 = (wxPen *) 0 ;
2265 wxPen *arg2 = (wxPen *) 0 ;
2266 bool result;
2267 PyObject * obj0 = 0 ;
2268 PyObject * obj1 = 0 ;
2269 char *kwnames[] = {
2270 (char *) "self",(char *) "other", NULL
2271 };
2272
2273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2276 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2278 {
2279 PyThreadState* __tstate = wxPyBeginAllowThreads();
2280 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2281
2282 wxPyEndAllowThreads(__tstate);
2283 if (PyErr_Occurred()) SWIG_fail;
2284 }
2285 {
2286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2287 }
2288 return resultobj;
2289 fail:
2290 return NULL;
2291 }
2292
2293
2294 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2295 PyObject *resultobj;
2296 wxPen *arg1 = (wxPen *) 0 ;
2297 wxPen *arg2 = (wxPen *) 0 ;
2298 bool result;
2299 PyObject * obj0 = 0 ;
2300 PyObject * obj1 = 0 ;
2301 char *kwnames[] = {
2302 (char *) "self",(char *) "other", NULL
2303 };
2304
2305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2308 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2310 {
2311 PyThreadState* __tstate = wxPyBeginAllowThreads();
2312 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2313
2314 wxPyEndAllowThreads(__tstate);
2315 if (PyErr_Occurred()) SWIG_fail;
2316 }
2317 {
2318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2319 }
2320 return resultobj;
2321 fail:
2322 return NULL;
2323 }
2324
2325
2326 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2327 PyObject *obj;
2328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2329 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2330 Py_INCREF(obj);
2331 return Py_BuildValue((char *)"");
2332 }
2333 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2334 PyObject *resultobj;
2335 wxColour *arg1 = 0 ;
2336 int arg2 = (int) wxSOLID ;
2337 wxBrush *result;
2338 wxColour temp1 ;
2339 PyObject * obj0 = 0 ;
2340 PyObject * obj1 = 0 ;
2341 char *kwnames[] = {
2342 (char *) "colour",(char *) "style", NULL
2343 };
2344
2345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2346 {
2347 arg1 = &temp1;
2348 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2349 }
2350 if (obj1) {
2351 arg2 = (int) SWIG_AsInt(obj1);
2352 if (PyErr_Occurred()) SWIG_fail;
2353 }
2354 {
2355 if (!wxPyCheckForApp()) SWIG_fail;
2356 PyThreadState* __tstate = wxPyBeginAllowThreads();
2357 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2358
2359 wxPyEndAllowThreads(__tstate);
2360 if (PyErr_Occurred()) SWIG_fail;
2361 }
2362 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2363 return resultobj;
2364 fail:
2365 return NULL;
2366 }
2367
2368
2369 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2370 PyObject *resultobj;
2371 wxBrush *arg1 = (wxBrush *) 0 ;
2372 PyObject * obj0 = 0 ;
2373 char *kwnames[] = {
2374 (char *) "self", NULL
2375 };
2376
2377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2380 {
2381 PyThreadState* __tstate = wxPyBeginAllowThreads();
2382 delete arg1;
2383
2384 wxPyEndAllowThreads(__tstate);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 }
2387 Py_INCREF(Py_None); resultobj = Py_None;
2388 return resultobj;
2389 fail:
2390 return NULL;
2391 }
2392
2393
2394 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2395 PyObject *resultobj;
2396 wxBrush *arg1 = (wxBrush *) 0 ;
2397 wxColour *arg2 = 0 ;
2398 wxColour temp2 ;
2399 PyObject * obj0 = 0 ;
2400 PyObject * obj1 = 0 ;
2401 char *kwnames[] = {
2402 (char *) "self",(char *) "col", NULL
2403 };
2404
2405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2408 {
2409 arg2 = &temp2;
2410 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2411 }
2412 {
2413 PyThreadState* __tstate = wxPyBeginAllowThreads();
2414 (arg1)->SetColour((wxColour const &)*arg2);
2415
2416 wxPyEndAllowThreads(__tstate);
2417 if (PyErr_Occurred()) SWIG_fail;
2418 }
2419 Py_INCREF(Py_None); resultobj = Py_None;
2420 return resultobj;
2421 fail:
2422 return NULL;
2423 }
2424
2425
2426 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2427 PyObject *resultobj;
2428 wxBrush *arg1 = (wxBrush *) 0 ;
2429 int arg2 ;
2430 PyObject * obj0 = 0 ;
2431 PyObject * obj1 = 0 ;
2432 char *kwnames[] = {
2433 (char *) "self",(char *) "style", NULL
2434 };
2435
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2439 arg2 = (int) SWIG_AsInt(obj1);
2440 if (PyErr_Occurred()) SWIG_fail;
2441 {
2442 PyThreadState* __tstate = wxPyBeginAllowThreads();
2443 (arg1)->SetStyle(arg2);
2444
2445 wxPyEndAllowThreads(__tstate);
2446 if (PyErr_Occurred()) SWIG_fail;
2447 }
2448 Py_INCREF(Py_None); resultobj = Py_None;
2449 return resultobj;
2450 fail:
2451 return NULL;
2452 }
2453
2454
2455 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2456 PyObject *resultobj;
2457 wxBrush *arg1 = (wxBrush *) 0 ;
2458 wxBitmap *arg2 = 0 ;
2459 PyObject * obj0 = 0 ;
2460 PyObject * obj1 = 0 ;
2461 char *kwnames[] = {
2462 (char *) "self",(char *) "stipple", NULL
2463 };
2464
2465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2468 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2469 SWIG_POINTER_EXCEPTION | 0)) == -1)
2470 SWIG_fail;
2471 if (arg2 == NULL) {
2472 PyErr_SetString(PyExc_TypeError,"null reference");
2473 SWIG_fail;
2474 }
2475 {
2476 PyThreadState* __tstate = wxPyBeginAllowThreads();
2477 (arg1)->SetStipple((wxBitmap const &)*arg2);
2478
2479 wxPyEndAllowThreads(__tstate);
2480 if (PyErr_Occurred()) SWIG_fail;
2481 }
2482 Py_INCREF(Py_None); resultobj = Py_None;
2483 return resultobj;
2484 fail:
2485 return NULL;
2486 }
2487
2488
2489 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2490 PyObject *resultobj;
2491 wxBrush *arg1 = (wxBrush *) 0 ;
2492 wxColour result;
2493 PyObject * obj0 = 0 ;
2494 char *kwnames[] = {
2495 (char *) "self", NULL
2496 };
2497
2498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2501 {
2502 PyThreadState* __tstate = wxPyBeginAllowThreads();
2503 result = ((wxBrush const *)arg1)->GetColour();
2504
2505 wxPyEndAllowThreads(__tstate);
2506 if (PyErr_Occurred()) SWIG_fail;
2507 }
2508 {
2509 wxColour * resultptr;
2510 resultptr = new wxColour((wxColour &) result);
2511 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2512 }
2513 return resultobj;
2514 fail:
2515 return NULL;
2516 }
2517
2518
2519 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2520 PyObject *resultobj;
2521 wxBrush *arg1 = (wxBrush *) 0 ;
2522 int result;
2523 PyObject * obj0 = 0 ;
2524 char *kwnames[] = {
2525 (char *) "self", NULL
2526 };
2527
2528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2531 {
2532 PyThreadState* __tstate = wxPyBeginAllowThreads();
2533 result = (int)((wxBrush const *)arg1)->GetStyle();
2534
2535 wxPyEndAllowThreads(__tstate);
2536 if (PyErr_Occurred()) SWIG_fail;
2537 }
2538 resultobj = SWIG_FromInt((int)result);
2539 return resultobj;
2540 fail:
2541 return NULL;
2542 }
2543
2544
2545 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2546 PyObject *resultobj;
2547 wxBrush *arg1 = (wxBrush *) 0 ;
2548 wxBitmap *result;
2549 PyObject * obj0 = 0 ;
2550 char *kwnames[] = {
2551 (char *) "self", NULL
2552 };
2553
2554 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2555 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2557 {
2558 PyThreadState* __tstate = wxPyBeginAllowThreads();
2559 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2560
2561 wxPyEndAllowThreads(__tstate);
2562 if (PyErr_Occurred()) SWIG_fail;
2563 }
2564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2565 return resultobj;
2566 fail:
2567 return NULL;
2568 }
2569
2570
2571 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2572 PyObject *resultobj;
2573 wxBrush *arg1 = (wxBrush *) 0 ;
2574 bool result;
2575 PyObject * obj0 = 0 ;
2576 char *kwnames[] = {
2577 (char *) "self", NULL
2578 };
2579
2580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2583 {
2584 PyThreadState* __tstate = wxPyBeginAllowThreads();
2585 result = (bool)(arg1)->Ok();
2586
2587 wxPyEndAllowThreads(__tstate);
2588 if (PyErr_Occurred()) SWIG_fail;
2589 }
2590 {
2591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2592 }
2593 return resultobj;
2594 fail:
2595 return NULL;
2596 }
2597
2598
2599 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2600 PyObject *obj;
2601 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2602 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2603 Py_INCREF(obj);
2604 return Py_BuildValue((char *)"");
2605 }
2606 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2607 PyObject *resultobj;
2608 wxString *arg1 = 0 ;
2609 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2610 wxBitmap *result;
2611 bool temp1 = False ;
2612 PyObject * obj0 = 0 ;
2613 PyObject * obj1 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "name",(char *) "type", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2619 {
2620 arg1 = wxString_in_helper(obj0);
2621 if (arg1 == NULL) SWIG_fail;
2622 temp1 = True;
2623 }
2624 if (obj1) {
2625 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 {
2629 if (!wxPyCheckForApp()) SWIG_fail;
2630 PyThreadState* __tstate = wxPyBeginAllowThreads();
2631 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2632
2633 wxPyEndAllowThreads(__tstate);
2634 if (PyErr_Occurred()) SWIG_fail;
2635 }
2636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2637 {
2638 if (temp1)
2639 delete arg1;
2640 }
2641 return resultobj;
2642 fail:
2643 {
2644 if (temp1)
2645 delete arg1;
2646 }
2647 return NULL;
2648 }
2649
2650
2651 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2652 PyObject *resultobj;
2653 wxBitmap *arg1 = (wxBitmap *) 0 ;
2654 PyObject * obj0 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 delete arg1;
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 Py_INCREF(Py_None); resultobj = Py_None;
2670 return resultobj;
2671 fail:
2672 return NULL;
2673 }
2674
2675
2676 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 int arg1 ;
2679 int arg2 ;
2680 int arg3 = (int) -1 ;
2681 wxBitmap *result;
2682 PyObject * obj0 = 0 ;
2683 PyObject * obj1 = 0 ;
2684 PyObject * obj2 = 0 ;
2685 char *kwnames[] = {
2686 (char *) "width",(char *) "height",(char *) "depth", NULL
2687 };
2688
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2690 arg1 = (int) SWIG_AsInt(obj0);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 arg2 = (int) SWIG_AsInt(obj1);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 if (obj2) {
2695 arg3 = (int) SWIG_AsInt(obj2);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 {
2699 if (!wxPyCheckForApp()) SWIG_fail;
2700 PyThreadState* __tstate = wxPyBeginAllowThreads();
2701 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2702
2703 wxPyEndAllowThreads(__tstate);
2704 if (PyErr_Occurred()) SWIG_fail;
2705 }
2706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2707 return resultobj;
2708 fail:
2709 return NULL;
2710 }
2711
2712
2713 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2714 PyObject *resultobj;
2715 wxIcon *arg1 = 0 ;
2716 wxBitmap *result;
2717 PyObject * obj0 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "icon", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1)
2725 SWIG_fail;
2726 if (arg1 == NULL) {
2727 PyErr_SetString(PyExc_TypeError,"null reference");
2728 SWIG_fail;
2729 }
2730 {
2731 if (!wxPyCheckForApp()) SWIG_fail;
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2734
2735 wxPyEndAllowThreads(__tstate);
2736 if (PyErr_Occurred()) SWIG_fail;
2737 }
2738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2739 return resultobj;
2740 fail:
2741 return NULL;
2742 }
2743
2744
2745 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj;
2747 wxImage *arg1 = 0 ;
2748 int arg2 = (int) -1 ;
2749 wxBitmap *result;
2750 PyObject * obj0 = 0 ;
2751 PyObject * obj1 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "image",(char *) "depth", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2758 SWIG_POINTER_EXCEPTION | 0)) == -1)
2759 SWIG_fail;
2760 if (arg1 == NULL) {
2761 PyErr_SetString(PyExc_TypeError,"null reference");
2762 SWIG_fail;
2763 }
2764 if (obj1) {
2765 arg2 = (int) SWIG_AsInt(obj1);
2766 if (PyErr_Occurred()) SWIG_fail;
2767 }
2768 {
2769 if (!wxPyCheckForApp()) SWIG_fail;
2770 PyThreadState* __tstate = wxPyBeginAllowThreads();
2771 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2772
2773 wxPyEndAllowThreads(__tstate);
2774 if (PyErr_Occurred()) SWIG_fail;
2775 }
2776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2777 return resultobj;
2778 fail:
2779 return NULL;
2780 }
2781
2782
2783 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 PyObject *arg1 = (PyObject *) 0 ;
2786 wxBitmap *result;
2787 PyObject * obj0 = 0 ;
2788 char *kwnames[] = {
2789 (char *) "listOfStrings", NULL
2790 };
2791
2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2793 arg1 = obj0;
2794 {
2795 if (!wxPyCheckForApp()) SWIG_fail;
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 result = (wxBitmap *)new_wxBitmap(arg1);
2798
2799 wxPyEndAllowThreads(__tstate);
2800 if (PyErr_Occurred()) SWIG_fail;
2801 }
2802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2803 return resultobj;
2804 fail:
2805 return NULL;
2806 }
2807
2808
2809 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2810 PyObject *resultobj;
2811 PyObject *arg1 = (PyObject *) 0 ;
2812 int arg2 ;
2813 int arg3 ;
2814 int arg4 = (int) 1 ;
2815 wxBitmap *result;
2816 PyObject * obj0 = 0 ;
2817 PyObject * obj1 = 0 ;
2818 PyObject * obj2 = 0 ;
2819 PyObject * obj3 = 0 ;
2820 char *kwnames[] = {
2821 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2822 };
2823
2824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2825 arg1 = obj0;
2826 arg2 = (int) SWIG_AsInt(obj1);
2827 if (PyErr_Occurred()) SWIG_fail;
2828 arg3 = (int) SWIG_AsInt(obj2);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 if (obj3) {
2831 arg4 = (int) SWIG_AsInt(obj3);
2832 if (PyErr_Occurred()) SWIG_fail;
2833 }
2834 {
2835 if (!wxPyCheckForApp()) SWIG_fail;
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2838
2839 wxPyEndAllowThreads(__tstate);
2840 if (PyErr_Occurred()) SWIG_fail;
2841 }
2842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2843 return resultobj;
2844 fail:
2845 return NULL;
2846 }
2847
2848
2849 static PyObject *_wrap_Bitmap_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject *resultobj;
2851 wxBitmap *arg1 = (wxBitmap *) 0 ;
2852 wxPalette *arg2 = 0 ;
2853 PyObject * obj0 = 0 ;
2854 PyObject * obj1 = 0 ;
2855 char *kwnames[] = {
2856 (char *) "self",(char *) "palette", NULL
2857 };
2858
2859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) goto fail;
2860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
2863 SWIG_POINTER_EXCEPTION | 0)) == -1)
2864 SWIG_fail;
2865 if (arg2 == NULL) {
2866 PyErr_SetString(PyExc_TypeError,"null reference");
2867 SWIG_fail;
2868 }
2869 {
2870 PyThreadState* __tstate = wxPyBeginAllowThreads();
2871 (arg1)->SetPalette(*arg2);
2872
2873 wxPyEndAllowThreads(__tstate);
2874 if (PyErr_Occurred()) SWIG_fail;
2875 }
2876 Py_INCREF(Py_None); resultobj = Py_None;
2877 return resultobj;
2878 fail:
2879 return NULL;
2880 }
2881
2882
2883 static PyObject *_wrap_Bitmap_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2884 PyObject *resultobj;
2885 wxBitmap *arg1 = (wxBitmap *) 0 ;
2886 long result;
2887 PyObject * obj0 = 0 ;
2888 char *kwnames[] = {
2889 (char *) "self", NULL
2890 };
2891
2892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHandle",kwnames,&obj0)) goto fail;
2893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2895 {
2896 PyThreadState* __tstate = wxPyBeginAllowThreads();
2897 result = (long)(arg1)->GetHandle();
2898
2899 wxPyEndAllowThreads(__tstate);
2900 if (PyErr_Occurred()) SWIG_fail;
2901 }
2902 resultobj = SWIG_FromLong((long)result);
2903 return resultobj;
2904 fail:
2905 return NULL;
2906 }
2907
2908
2909 static PyObject *_wrap_Bitmap_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
2910 PyObject *resultobj;
2911 wxBitmap *arg1 = (wxBitmap *) 0 ;
2912 long arg2 ;
2913 PyObject * obj0 = 0 ;
2914 PyObject * obj1 = 0 ;
2915 char *kwnames[] = {
2916 (char *) "self",(char *) "handle", NULL
2917 };
2918
2919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) goto fail;
2920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2922 arg2 = (long) SWIG_AsLong(obj1);
2923 if (PyErr_Occurred()) SWIG_fail;
2924 {
2925 PyThreadState* __tstate = wxPyBeginAllowThreads();
2926 wxBitmap_SetHandle(arg1,arg2);
2927
2928 wxPyEndAllowThreads(__tstate);
2929 if (PyErr_Occurred()) SWIG_fail;
2930 }
2931 Py_INCREF(Py_None); resultobj = Py_None;
2932 return resultobj;
2933 fail:
2934 return NULL;
2935 }
2936
2937
2938 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2939 PyObject *resultobj;
2940 wxBitmap *arg1 = (wxBitmap *) 0 ;
2941 bool result;
2942 PyObject * obj0 = 0 ;
2943 char *kwnames[] = {
2944 (char *) "self", NULL
2945 };
2946
2947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",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 = (bool)(arg1)->Ok();
2953
2954 wxPyEndAllowThreads(__tstate);
2955 if (PyErr_Occurred()) SWIG_fail;
2956 }
2957 {
2958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2959 }
2960 return resultobj;
2961 fail:
2962 return NULL;
2963 }
2964
2965
2966 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2967 PyObject *resultobj;
2968 wxBitmap *arg1 = (wxBitmap *) 0 ;
2969 int result;
2970 PyObject * obj0 = 0 ;
2971 char *kwnames[] = {
2972 (char *) "self", NULL
2973 };
2974
2975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2978 {
2979 PyThreadState* __tstate = wxPyBeginAllowThreads();
2980 result = (int)(arg1)->GetWidth();
2981
2982 wxPyEndAllowThreads(__tstate);
2983 if (PyErr_Occurred()) SWIG_fail;
2984 }
2985 resultobj = SWIG_FromInt((int)result);
2986 return resultobj;
2987 fail:
2988 return NULL;
2989 }
2990
2991
2992 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2993 PyObject *resultobj;
2994 wxBitmap *arg1 = (wxBitmap *) 0 ;
2995 int result;
2996 PyObject * obj0 = 0 ;
2997 char *kwnames[] = {
2998 (char *) "self", NULL
2999 };
3000
3001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
3002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3004 {
3005 PyThreadState* __tstate = wxPyBeginAllowThreads();
3006 result = (int)(arg1)->GetHeight();
3007
3008 wxPyEndAllowThreads(__tstate);
3009 if (PyErr_Occurred()) SWIG_fail;
3010 }
3011 resultobj = SWIG_FromInt((int)result);
3012 return resultobj;
3013 fail:
3014 return NULL;
3015 }
3016
3017
3018 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3019 PyObject *resultobj;
3020 wxBitmap *arg1 = (wxBitmap *) 0 ;
3021 int result;
3022 PyObject * obj0 = 0 ;
3023 char *kwnames[] = {
3024 (char *) "self", NULL
3025 };
3026
3027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
3028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3030 {
3031 PyThreadState* __tstate = wxPyBeginAllowThreads();
3032 result = (int)(arg1)->GetDepth();
3033
3034 wxPyEndAllowThreads(__tstate);
3035 if (PyErr_Occurred()) SWIG_fail;
3036 }
3037 resultobj = SWIG_FromInt((int)result);
3038 return resultobj;
3039 fail:
3040 return NULL;
3041 }
3042
3043
3044 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3045 PyObject *resultobj;
3046 wxBitmap *arg1 = (wxBitmap *) 0 ;
3047 wxSize result;
3048 PyObject * obj0 = 0 ;
3049 char *kwnames[] = {
3050 (char *) "self", NULL
3051 };
3052
3053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
3054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3056 {
3057 PyThreadState* __tstate = wxPyBeginAllowThreads();
3058 result = wxBitmap_GetSize(arg1);
3059
3060 wxPyEndAllowThreads(__tstate);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
3063 {
3064 wxSize * resultptr;
3065 resultptr = new wxSize((wxSize &) result);
3066 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
3067 }
3068 return resultobj;
3069 fail:
3070 return NULL;
3071 }
3072
3073
3074 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
3075 PyObject *resultobj;
3076 wxBitmap *arg1 = (wxBitmap *) 0 ;
3077 SwigValueWrapper< wxImage > result;
3078 PyObject * obj0 = 0 ;
3079 char *kwnames[] = {
3080 (char *) "self", NULL
3081 };
3082
3083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
3084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3086 {
3087 PyThreadState* __tstate = wxPyBeginAllowThreads();
3088 result = ((wxBitmap const *)arg1)->ConvertToImage();
3089
3090 wxPyEndAllowThreads(__tstate);
3091 if (PyErr_Occurred()) SWIG_fail;
3092 }
3093 {
3094 wxImage * resultptr;
3095 resultptr = new wxImage((wxImage &) result);
3096 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3097 }
3098 return resultobj;
3099 fail:
3100 return NULL;
3101 }
3102
3103
3104 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3105 PyObject *resultobj;
3106 wxBitmap *arg1 = (wxBitmap *) 0 ;
3107 wxMask *result;
3108 PyObject * obj0 = 0 ;
3109 char *kwnames[] = {
3110 (char *) "self", NULL
3111 };
3112
3113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3116 {
3117 PyThreadState* __tstate = wxPyBeginAllowThreads();
3118 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3119
3120 wxPyEndAllowThreads(__tstate);
3121 if (PyErr_Occurred()) SWIG_fail;
3122 }
3123 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3124 return resultobj;
3125 fail:
3126 return NULL;
3127 }
3128
3129
3130 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3131 PyObject *resultobj;
3132 wxBitmap *arg1 = (wxBitmap *) 0 ;
3133 wxMask *arg2 = (wxMask *) 0 ;
3134 PyObject * obj0 = 0 ;
3135 PyObject * obj1 = 0 ;
3136 char *kwnames[] = {
3137 (char *) "self",(char *) "mask", NULL
3138 };
3139
3140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3143 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3145 {
3146 PyThreadState* __tstate = wxPyBeginAllowThreads();
3147 (arg1)->SetMask(arg2);
3148
3149 wxPyEndAllowThreads(__tstate);
3150 if (PyErr_Occurred()) SWIG_fail;
3151 }
3152 Py_INCREF(Py_None); resultobj = Py_None;
3153 return resultobj;
3154 fail:
3155 return NULL;
3156 }
3157
3158
3159 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3160 PyObject *resultobj;
3161 wxBitmap *arg1 = (wxBitmap *) 0 ;
3162 wxColour *arg2 = 0 ;
3163 wxColour temp2 ;
3164 PyObject * obj0 = 0 ;
3165 PyObject * obj1 = 0 ;
3166 char *kwnames[] = {
3167 (char *) "self",(char *) "colour", NULL
3168 };
3169
3170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3173 {
3174 arg2 = &temp2;
3175 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3176 }
3177 {
3178 PyThreadState* __tstate = wxPyBeginAllowThreads();
3179 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3180
3181 wxPyEndAllowThreads(__tstate);
3182 if (PyErr_Occurred()) SWIG_fail;
3183 }
3184 Py_INCREF(Py_None); resultobj = Py_None;
3185 return resultobj;
3186 fail:
3187 return NULL;
3188 }
3189
3190
3191 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3192 PyObject *resultobj;
3193 wxBitmap *arg1 = (wxBitmap *) 0 ;
3194 wxRect *arg2 = 0 ;
3195 SwigValueWrapper< wxBitmap > result;
3196 wxRect temp2 ;
3197 PyObject * obj0 = 0 ;
3198 PyObject * obj1 = 0 ;
3199 char *kwnames[] = {
3200 (char *) "self",(char *) "rect", NULL
3201 };
3202
3203 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3204 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3205 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3206 {
3207 arg2 = &temp2;
3208 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3209 }
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 {
3218 wxBitmap * resultptr;
3219 resultptr = new wxBitmap((wxBitmap &) result);
3220 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3221 }
3222 return resultobj;
3223 fail:
3224 return NULL;
3225 }
3226
3227
3228 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3229 PyObject *resultobj;
3230 wxBitmap *arg1 = (wxBitmap *) 0 ;
3231 wxString *arg2 = 0 ;
3232 int arg3 ;
3233 wxPalette *arg4 = (wxPalette *) NULL ;
3234 bool result;
3235 bool temp2 = False ;
3236 PyObject * obj0 = 0 ;
3237 PyObject * obj1 = 0 ;
3238 PyObject * obj2 = 0 ;
3239 PyObject * obj3 = 0 ;
3240 char *kwnames[] = {
3241 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3242 };
3243
3244 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3245 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3246 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3247 {
3248 arg2 = wxString_in_helper(obj1);
3249 if (arg2 == NULL) SWIG_fail;
3250 temp2 = True;
3251 }
3252 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3253 if (PyErr_Occurred()) SWIG_fail;
3254 if (obj3) {
3255 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3257 }
3258 {
3259 PyThreadState* __tstate = wxPyBeginAllowThreads();
3260 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3261
3262 wxPyEndAllowThreads(__tstate);
3263 if (PyErr_Occurred()) SWIG_fail;
3264 }
3265 {
3266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3267 }
3268 {
3269 if (temp2)
3270 delete arg2;
3271 }
3272 return resultobj;
3273 fail:
3274 {
3275 if (temp2)
3276 delete arg2;
3277 }
3278 return NULL;
3279 }
3280
3281
3282 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3283 PyObject *resultobj;
3284 wxBitmap *arg1 = (wxBitmap *) 0 ;
3285 wxString *arg2 = 0 ;
3286 int arg3 ;
3287 bool result;
3288 bool temp2 = False ;
3289 PyObject * obj0 = 0 ;
3290 PyObject * obj1 = 0 ;
3291 PyObject * obj2 = 0 ;
3292 char *kwnames[] = {
3293 (char *) "self",(char *) "name",(char *) "type", NULL
3294 };
3295
3296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3299 {
3300 arg2 = wxString_in_helper(obj1);
3301 if (arg2 == NULL) SWIG_fail;
3302 temp2 = True;
3303 }
3304 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3305 if (PyErr_Occurred()) SWIG_fail;
3306 {
3307 PyThreadState* __tstate = wxPyBeginAllowThreads();
3308 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3309
3310 wxPyEndAllowThreads(__tstate);
3311 if (PyErr_Occurred()) SWIG_fail;
3312 }
3313 {
3314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3315 }
3316 {
3317 if (temp2)
3318 delete arg2;
3319 }
3320 return resultobj;
3321 fail:
3322 {
3323 if (temp2)
3324 delete arg2;
3325 }
3326 return NULL;
3327 }
3328
3329
3330 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3331 PyObject *resultobj;
3332 wxBitmap *arg1 = (wxBitmap *) 0 ;
3333 wxIcon *arg2 = 0 ;
3334 bool result;
3335 PyObject * obj0 = 0 ;
3336 PyObject * obj1 = 0 ;
3337 char *kwnames[] = {
3338 (char *) "self",(char *) "icon", NULL
3339 };
3340
3341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3344 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3345 SWIG_POINTER_EXCEPTION | 0)) == -1)
3346 SWIG_fail;
3347 if (arg2 == NULL) {
3348 PyErr_SetString(PyExc_TypeError,"null reference");
3349 SWIG_fail;
3350 }
3351 {
3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
3353 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3354
3355 wxPyEndAllowThreads(__tstate);
3356 if (PyErr_Occurred()) SWIG_fail;
3357 }
3358 {
3359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3360 }
3361 return resultobj;
3362 fail:
3363 return NULL;
3364 }
3365
3366
3367 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3368 PyObject *resultobj;
3369 wxBitmap *arg1 = (wxBitmap *) 0 ;
3370 int arg2 ;
3371 PyObject * obj0 = 0 ;
3372 PyObject * obj1 = 0 ;
3373 char *kwnames[] = {
3374 (char *) "self",(char *) "height", NULL
3375 };
3376
3377 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3378 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3379 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3380 arg2 = (int) SWIG_AsInt(obj1);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 {
3383 PyThreadState* __tstate = wxPyBeginAllowThreads();
3384 (arg1)->SetHeight(arg2);
3385
3386 wxPyEndAllowThreads(__tstate);
3387 if (PyErr_Occurred()) SWIG_fail;
3388 }
3389 Py_INCREF(Py_None); resultobj = Py_None;
3390 return resultobj;
3391 fail:
3392 return NULL;
3393 }
3394
3395
3396 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3397 PyObject *resultobj;
3398 wxBitmap *arg1 = (wxBitmap *) 0 ;
3399 int arg2 ;
3400 PyObject * obj0 = 0 ;
3401 PyObject * obj1 = 0 ;
3402 char *kwnames[] = {
3403 (char *) "self",(char *) "width", NULL
3404 };
3405
3406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3409 arg2 = (int) SWIG_AsInt(obj1);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 {
3412 PyThreadState* __tstate = wxPyBeginAllowThreads();
3413 (arg1)->SetWidth(arg2);
3414
3415 wxPyEndAllowThreads(__tstate);
3416 if (PyErr_Occurred()) SWIG_fail;
3417 }
3418 Py_INCREF(Py_None); resultobj = Py_None;
3419 return resultobj;
3420 fail:
3421 return NULL;
3422 }
3423
3424
3425 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3426 PyObject *resultobj;
3427 wxBitmap *arg1 = (wxBitmap *) 0 ;
3428 int arg2 ;
3429 PyObject * obj0 = 0 ;
3430 PyObject * obj1 = 0 ;
3431 char *kwnames[] = {
3432 (char *) "self",(char *) "depth", NULL
3433 };
3434
3435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3438 arg2 = (int) SWIG_AsInt(obj1);
3439 if (PyErr_Occurred()) SWIG_fail;
3440 {
3441 PyThreadState* __tstate = wxPyBeginAllowThreads();
3442 (arg1)->SetDepth(arg2);
3443
3444 wxPyEndAllowThreads(__tstate);
3445 if (PyErr_Occurred()) SWIG_fail;
3446 }
3447 Py_INCREF(Py_None); resultobj = Py_None;
3448 return resultobj;
3449 fail:
3450 return NULL;
3451 }
3452
3453
3454 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3455 PyObject *resultobj;
3456 wxBitmap *arg1 = (wxBitmap *) 0 ;
3457 wxSize *arg2 = 0 ;
3458 wxSize temp2 ;
3459 PyObject * obj0 = 0 ;
3460 PyObject * obj1 = 0 ;
3461 char *kwnames[] = {
3462 (char *) "self",(char *) "size", NULL
3463 };
3464
3465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3468 {
3469 arg2 = &temp2;
3470 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3471 }
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 Py_INCREF(Py_None); resultobj = Py_None;
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 static PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
3487 PyObject *resultobj;
3488 wxBitmap *arg1 = (wxBitmap *) 0 ;
3489 wxCursor *arg2 = 0 ;
3490 bool result;
3491 PyObject * obj0 = 0 ;
3492 PyObject * obj1 = 0 ;
3493 char *kwnames[] = {
3494 (char *) "self",(char *) "cursor", NULL
3495 };
3496
3497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) goto fail;
3498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor,
3501 SWIG_POINTER_EXCEPTION | 0)) == -1)
3502 SWIG_fail;
3503 if (arg2 == NULL) {
3504 PyErr_SetString(PyExc_TypeError,"null reference");
3505 SWIG_fail;
3506 }
3507 {
3508 PyThreadState* __tstate = wxPyBeginAllowThreads();
3509 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
3510
3511 wxPyEndAllowThreads(__tstate);
3512 if (PyErr_Occurred()) SWIG_fail;
3513 }
3514 {
3515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3516 }
3517 return resultobj;
3518 fail:
3519 return NULL;
3520 }
3521
3522
3523 static PyObject *_wrap_Bitmap_GetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3524 PyObject *resultobj;
3525 wxBitmap *arg1 = (wxBitmap *) 0 ;
3526 int result;
3527 PyObject * obj0 = 0 ;
3528 char *kwnames[] = {
3529 (char *) "self", NULL
3530 };
3531
3532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetQuality",kwnames,&obj0)) goto fail;
3533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3535 {
3536 PyThreadState* __tstate = wxPyBeginAllowThreads();
3537 result = (int)(arg1)->GetQuality();
3538
3539 wxPyEndAllowThreads(__tstate);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 resultobj = SWIG_FromInt((int)result);
3543 return resultobj;
3544 fail:
3545 return NULL;
3546 }
3547
3548
3549 static PyObject *_wrap_Bitmap_SetQuality(PyObject *self, PyObject *args, PyObject *kwargs) {
3550 PyObject *resultobj;
3551 wxBitmap *arg1 = (wxBitmap *) 0 ;
3552 int arg2 ;
3553 PyObject * obj0 = 0 ;
3554 PyObject * obj1 = 0 ;
3555 char *kwnames[] = {
3556 (char *) "self",(char *) "q", NULL
3557 };
3558
3559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetQuality",kwnames,&obj0,&obj1)) goto fail;
3560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3562 arg2 = (int) SWIG_AsInt(obj1);
3563 if (PyErr_Occurred()) SWIG_fail;
3564 {
3565 PyThreadState* __tstate = wxPyBeginAllowThreads();
3566 (arg1)->SetQuality(arg2);
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_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3579 PyObject *resultobj;
3580 wxBitmap *arg1 = (wxBitmap *) 0 ;
3581 wxBitmap *arg2 = (wxBitmap *) 0 ;
3582 bool result;
3583 PyObject * obj0 = 0 ;
3584 PyObject * obj1 = 0 ;
3585 char *kwnames[] = {
3586 (char *) "self",(char *) "other", NULL
3587 };
3588
3589 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3590 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3591 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3592 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3594 {
3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
3596 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3597
3598 wxPyEndAllowThreads(__tstate);
3599 if (PyErr_Occurred()) SWIG_fail;
3600 }
3601 {
3602 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3603 }
3604 return resultobj;
3605 fail:
3606 return NULL;
3607 }
3608
3609
3610 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3611 PyObject *resultobj;
3612 wxBitmap *arg1 = (wxBitmap *) 0 ;
3613 wxBitmap *arg2 = (wxBitmap *) 0 ;
3614 bool result;
3615 PyObject * obj0 = 0 ;
3616 PyObject * obj1 = 0 ;
3617 char *kwnames[] = {
3618 (char *) "self",(char *) "other", NULL
3619 };
3620
3621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3626 {
3627 PyThreadState* __tstate = wxPyBeginAllowThreads();
3628 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3629
3630 wxPyEndAllowThreads(__tstate);
3631 if (PyErr_Occurred()) SWIG_fail;
3632 }
3633 {
3634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3635 }
3636 return resultobj;
3637 fail:
3638 return NULL;
3639 }
3640
3641
3642 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3643 PyObject *obj;
3644 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3645 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3646 Py_INCREF(obj);
3647 return Py_BuildValue((char *)"");
3648 }
3649 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3650 PyObject *resultobj;
3651 wxBitmap *arg1 = 0 ;
3652 wxColour const &arg2_defvalue = wxNullColour ;
3653 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3654 wxMask *result;
3655 wxColour temp2 ;
3656 PyObject * obj0 = 0 ;
3657 PyObject * obj1 = 0 ;
3658 char *kwnames[] = {
3659 (char *) "bitmap",(char *) "colour", NULL
3660 };
3661
3662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3664 SWIG_POINTER_EXCEPTION | 0)) == -1)
3665 SWIG_fail;
3666 if (arg1 == NULL) {
3667 PyErr_SetString(PyExc_TypeError,"null reference");
3668 SWIG_fail;
3669 }
3670 if (obj1) {
3671 {
3672 arg2 = &temp2;
3673 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3674 }
3675 }
3676 {
3677 if (!wxPyCheckForApp()) SWIG_fail;
3678 PyThreadState* __tstate = wxPyBeginAllowThreads();
3679 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3680
3681 wxPyEndAllowThreads(__tstate);
3682 if (PyErr_Occurred()) SWIG_fail;
3683 }
3684 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3685 return resultobj;
3686 fail:
3687 return NULL;
3688 }
3689
3690
3691 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3692 PyObject *obj;
3693 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3694 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3695 Py_INCREF(obj);
3696 return Py_BuildValue((char *)"");
3697 }
3698 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3699 PyObject *resultobj;
3700 wxString *arg1 = 0 ;
3701 int arg2 ;
3702 int arg3 = (int) -1 ;
3703 int arg4 = (int) -1 ;
3704 wxIcon *result;
3705 bool temp1 = False ;
3706 PyObject * obj0 = 0 ;
3707 PyObject * obj1 = 0 ;
3708 PyObject * obj2 = 0 ;
3709 PyObject * obj3 = 0 ;
3710 char *kwnames[] = {
3711 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3712 };
3713
3714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3715 {
3716 arg1 = wxString_in_helper(obj0);
3717 if (arg1 == NULL) SWIG_fail;
3718 temp1 = True;
3719 }
3720 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 if (obj2) {
3723 arg3 = (int) SWIG_AsInt(obj2);
3724 if (PyErr_Occurred()) SWIG_fail;
3725 }
3726 if (obj3) {
3727 arg4 = (int) SWIG_AsInt(obj3);
3728 if (PyErr_Occurred()) SWIG_fail;
3729 }
3730 {
3731 if (!wxPyCheckForApp()) SWIG_fail;
3732 PyThreadState* __tstate = wxPyBeginAllowThreads();
3733 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3734
3735 wxPyEndAllowThreads(__tstate);
3736 if (PyErr_Occurred()) SWIG_fail;
3737 }
3738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3739 {
3740 if (temp1)
3741 delete arg1;
3742 }
3743 return resultobj;
3744 fail:
3745 {
3746 if (temp1)
3747 delete arg1;
3748 }
3749 return NULL;
3750 }
3751
3752
3753 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3754 PyObject *resultobj;
3755 wxIcon *arg1 = (wxIcon *) 0 ;
3756 PyObject * obj0 = 0 ;
3757 char *kwnames[] = {
3758 (char *) "self", NULL
3759 };
3760
3761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3762 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3763 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3764 {
3765 PyThreadState* __tstate = wxPyBeginAllowThreads();
3766 delete arg1;
3767
3768 wxPyEndAllowThreads(__tstate);
3769 if (PyErr_Occurred()) SWIG_fail;
3770 }
3771 Py_INCREF(Py_None); resultobj = Py_None;
3772 return resultobj;
3773 fail:
3774 return NULL;
3775 }
3776
3777
3778 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3779 PyObject *resultobj;
3780 wxIcon *result;
3781 char *kwnames[] = {
3782 NULL
3783 };
3784
3785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3786 {
3787 if (!wxPyCheckForApp()) SWIG_fail;
3788 PyThreadState* __tstate = wxPyBeginAllowThreads();
3789 result = (wxIcon *)new wxIcon();
3790
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3795 return resultobj;
3796 fail:
3797 return NULL;
3798 }
3799
3800
3801 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3802 PyObject *resultobj;
3803 wxIconLocation *arg1 = 0 ;
3804 wxIcon *result;
3805 PyObject * obj0 = 0 ;
3806 char *kwnames[] = {
3807 (char *) "loc", NULL
3808 };
3809
3810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3812 SWIG_POINTER_EXCEPTION | 0)) == -1)
3813 SWIG_fail;
3814 if (arg1 == NULL) {
3815 PyErr_SetString(PyExc_TypeError,"null reference");
3816 SWIG_fail;
3817 }
3818 {
3819 if (!wxPyCheckForApp()) SWIG_fail;
3820 PyThreadState* __tstate = wxPyBeginAllowThreads();
3821 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3822
3823 wxPyEndAllowThreads(__tstate);
3824 if (PyErr_Occurred()) SWIG_fail;
3825 }
3826 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3827 return resultobj;
3828 fail:
3829 return NULL;
3830 }
3831
3832
3833 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3834 PyObject *resultobj;
3835 wxBitmap *arg1 = 0 ;
3836 wxIcon *result;
3837 PyObject * obj0 = 0 ;
3838 char *kwnames[] = {
3839 (char *) "bmp", NULL
3840 };
3841
3842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3844 SWIG_POINTER_EXCEPTION | 0)) == -1)
3845 SWIG_fail;
3846 if (arg1 == NULL) {
3847 PyErr_SetString(PyExc_TypeError,"null reference");
3848 SWIG_fail;
3849 }
3850 {
3851 if (!wxPyCheckForApp()) SWIG_fail;
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3854
3855 wxPyEndAllowThreads(__tstate);
3856 if (PyErr_Occurred()) SWIG_fail;
3857 }
3858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3859 return resultobj;
3860 fail:
3861 return NULL;
3862 }
3863
3864
3865 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3866 PyObject *resultobj;
3867 PyObject *arg1 = (PyObject *) 0 ;
3868 wxIcon *result;
3869 PyObject * obj0 = 0 ;
3870 char *kwnames[] = {
3871 (char *) "listOfStrings", NULL
3872 };
3873
3874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3875 arg1 = obj0;
3876 {
3877 if (!wxPyCheckForApp()) SWIG_fail;
3878 PyThreadState* __tstate = wxPyBeginAllowThreads();
3879 result = (wxIcon *)new_wxIcon(arg1);
3880
3881 wxPyEndAllowThreads(__tstate);
3882 if (PyErr_Occurred()) SWIG_fail;
3883 }
3884 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3885 return resultobj;
3886 fail:
3887 return NULL;
3888 }
3889
3890
3891 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3892 PyObject *resultobj;
3893 wxIcon *arg1 = (wxIcon *) 0 ;
3894 wxString *arg2 = 0 ;
3895 int arg3 ;
3896 bool result;
3897 bool temp2 = False ;
3898 PyObject * obj0 = 0 ;
3899 PyObject * obj1 = 0 ;
3900 PyObject * obj2 = 0 ;
3901 char *kwnames[] = {
3902 (char *) "self",(char *) "name",(char *) "type", NULL
3903 };
3904
3905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3908 {
3909 arg2 = wxString_in_helper(obj1);
3910 if (arg2 == NULL) SWIG_fail;
3911 temp2 = True;
3912 }
3913 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3914 if (PyErr_Occurred()) SWIG_fail;
3915 {
3916 PyThreadState* __tstate = wxPyBeginAllowThreads();
3917 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3918
3919 wxPyEndAllowThreads(__tstate);
3920 if (PyErr_Occurred()) SWIG_fail;
3921 }
3922 {
3923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3924 }
3925 {
3926 if (temp2)
3927 delete arg2;
3928 }
3929 return resultobj;
3930 fail:
3931 {
3932 if (temp2)
3933 delete arg2;
3934 }
3935 return NULL;
3936 }
3937
3938
3939 static PyObject *_wrap_Icon_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3940 PyObject *resultobj;
3941 wxIcon *arg1 = (wxIcon *) 0 ;
3942 long result;
3943 PyObject * obj0 = 0 ;
3944 char *kwnames[] = {
3945 (char *) "self", NULL
3946 };
3947
3948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHandle",kwnames,&obj0)) goto fail;
3949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3951 {
3952 PyThreadState* __tstate = wxPyBeginAllowThreads();
3953 result = (long)(arg1)->GetHandle();
3954
3955 wxPyEndAllowThreads(__tstate);
3956 if (PyErr_Occurred()) SWIG_fail;
3957 }
3958 resultobj = SWIG_FromLong((long)result);
3959 return resultobj;
3960 fail:
3961 return NULL;
3962 }
3963
3964
3965 static PyObject *_wrap_Icon_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
3966 PyObject *resultobj;
3967 wxIcon *arg1 = (wxIcon *) 0 ;
3968 long arg2 ;
3969 PyObject * obj0 = 0 ;
3970 PyObject * obj1 = 0 ;
3971 char *kwnames[] = {
3972 (char *) "self",(char *) "handle", NULL
3973 };
3974
3975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) goto fail;
3976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3978 arg2 = (long) SWIG_AsLong(obj1);
3979 if (PyErr_Occurred()) SWIG_fail;
3980 {
3981 PyThreadState* __tstate = wxPyBeginAllowThreads();
3982 wxIcon_SetHandle(arg1,arg2);
3983
3984 wxPyEndAllowThreads(__tstate);
3985 if (PyErr_Occurred()) SWIG_fail;
3986 }
3987 Py_INCREF(Py_None); resultobj = Py_None;
3988 return resultobj;
3989 fail:
3990 return NULL;
3991 }
3992
3993
3994 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3995 PyObject *resultobj;
3996 wxIcon *arg1 = (wxIcon *) 0 ;
3997 bool result;
3998 PyObject * obj0 = 0 ;
3999 char *kwnames[] = {
4000 (char *) "self", NULL
4001 };
4002
4003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
4004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4006 {
4007 PyThreadState* __tstate = wxPyBeginAllowThreads();
4008 result = (bool)(arg1)->Ok();
4009
4010 wxPyEndAllowThreads(__tstate);
4011 if (PyErr_Occurred()) SWIG_fail;
4012 }
4013 {
4014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4015 }
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxIcon *arg1 = (wxIcon *) 0 ;
4025 int result;
4026 PyObject * obj0 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (int)(arg1)->GetWidth();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 resultobj = SWIG_FromInt((int)result);
4042 return resultobj;
4043 fail:
4044 return NULL;
4045 }
4046
4047
4048 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4049 PyObject *resultobj;
4050 wxIcon *arg1 = (wxIcon *) 0 ;
4051 int result;
4052 PyObject * obj0 = 0 ;
4053 char *kwnames[] = {
4054 (char *) "self", NULL
4055 };
4056
4057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
4058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4060 {
4061 PyThreadState* __tstate = wxPyBeginAllowThreads();
4062 result = (int)(arg1)->GetHeight();
4063
4064 wxPyEndAllowThreads(__tstate);
4065 if (PyErr_Occurred()) SWIG_fail;
4066 }
4067 resultobj = SWIG_FromInt((int)result);
4068 return resultobj;
4069 fail:
4070 return NULL;
4071 }
4072
4073
4074 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4075 PyObject *resultobj;
4076 wxIcon *arg1 = (wxIcon *) 0 ;
4077 int result;
4078 PyObject * obj0 = 0 ;
4079 char *kwnames[] = {
4080 (char *) "self", NULL
4081 };
4082
4083 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
4084 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4085 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (int)(arg1)->GetDepth();
4089
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 resultobj = SWIG_FromInt((int)result);
4094 return resultobj;
4095 fail:
4096 return NULL;
4097 }
4098
4099
4100 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4101 PyObject *resultobj;
4102 wxIcon *arg1 = (wxIcon *) 0 ;
4103 int arg2 ;
4104 PyObject * obj0 = 0 ;
4105 PyObject * obj1 = 0 ;
4106 char *kwnames[] = {
4107 (char *) "self",(char *) "w", NULL
4108 };
4109
4110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
4111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4113 arg2 = (int) SWIG_AsInt(obj1);
4114 if (PyErr_Occurred()) SWIG_fail;
4115 {
4116 PyThreadState* __tstate = wxPyBeginAllowThreads();
4117 (arg1)->SetWidth(arg2);
4118
4119 wxPyEndAllowThreads(__tstate);
4120 if (PyErr_Occurred()) SWIG_fail;
4121 }
4122 Py_INCREF(Py_None); resultobj = Py_None;
4123 return resultobj;
4124 fail:
4125 return NULL;
4126 }
4127
4128
4129 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4130 PyObject *resultobj;
4131 wxIcon *arg1 = (wxIcon *) 0 ;
4132 int arg2 ;
4133 PyObject * obj0 = 0 ;
4134 PyObject * obj1 = 0 ;
4135 char *kwnames[] = {
4136 (char *) "self",(char *) "h", NULL
4137 };
4138
4139 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
4140 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4141 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4142 arg2 = (int) SWIG_AsInt(obj1);
4143 if (PyErr_Occurred()) SWIG_fail;
4144 {
4145 PyThreadState* __tstate = wxPyBeginAllowThreads();
4146 (arg1)->SetHeight(arg2);
4147
4148 wxPyEndAllowThreads(__tstate);
4149 if (PyErr_Occurred()) SWIG_fail;
4150 }
4151 Py_INCREF(Py_None); resultobj = Py_None;
4152 return resultobj;
4153 fail:
4154 return NULL;
4155 }
4156
4157
4158 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
4159 PyObject *resultobj;
4160 wxIcon *arg1 = (wxIcon *) 0 ;
4161 int arg2 ;
4162 PyObject * obj0 = 0 ;
4163 PyObject * obj1 = 0 ;
4164 char *kwnames[] = {
4165 (char *) "self",(char *) "d", NULL
4166 };
4167
4168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
4169 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4170 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4171 arg2 = (int) SWIG_AsInt(obj1);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 {
4174 PyThreadState* __tstate = wxPyBeginAllowThreads();
4175 (arg1)->SetDepth(arg2);
4176
4177 wxPyEndAllowThreads(__tstate);
4178 if (PyErr_Occurred()) SWIG_fail;
4179 }
4180 Py_INCREF(Py_None); resultobj = Py_None;
4181 return resultobj;
4182 fail:
4183 return NULL;
4184 }
4185
4186
4187 static PyObject *_wrap_Icon_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
4188 PyObject *resultobj;
4189 wxIcon *arg1 = (wxIcon *) 0 ;
4190 wxSize *arg2 = 0 ;
4191 wxSize temp2 ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char *kwnames[] = {
4195 (char *) "self",(char *) "size", NULL
4196 };
4197
4198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) goto fail;
4199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4201 {
4202 arg2 = &temp2;
4203 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4204 }
4205 {
4206 PyThreadState* __tstate = wxPyBeginAllowThreads();
4207 (arg1)->SetSize((wxSize const &)*arg2);
4208
4209 wxPyEndAllowThreads(__tstate);
4210 if (PyErr_Occurred()) SWIG_fail;
4211 }
4212 Py_INCREF(Py_None); resultobj = Py_None;
4213 return resultobj;
4214 fail:
4215 return NULL;
4216 }
4217
4218
4219 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4220 PyObject *resultobj;
4221 wxIcon *arg1 = (wxIcon *) 0 ;
4222 wxBitmap *arg2 = 0 ;
4223 PyObject * obj0 = 0 ;
4224 PyObject * obj1 = 0 ;
4225 char *kwnames[] = {
4226 (char *) "self",(char *) "bmp", NULL
4227 };
4228
4229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
4230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
4233 SWIG_POINTER_EXCEPTION | 0)) == -1)
4234 SWIG_fail;
4235 if (arg2 == NULL) {
4236 PyErr_SetString(PyExc_TypeError,"null reference");
4237 SWIG_fail;
4238 }
4239 {
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
4242
4243 wxPyEndAllowThreads(__tstate);
4244 if (PyErr_Occurred()) SWIG_fail;
4245 }
4246 Py_INCREF(Py_None); resultobj = Py_None;
4247 return resultobj;
4248 fail:
4249 return NULL;
4250 }
4251
4252
4253 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
4254 PyObject *obj;
4255 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4256 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
4257 Py_INCREF(obj);
4258 return Py_BuildValue((char *)"");
4259 }
4260 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4261 PyObject *resultobj;
4262 wxString *arg1 = (wxString *) &wxPyEmptyString ;
4263 int arg2 = (int) 0 ;
4264 wxIconLocation *result;
4265 bool temp1 = False ;
4266 PyObject * obj0 = 0 ;
4267 PyObject * obj1 = 0 ;
4268 char *kwnames[] = {
4269 (char *) "filename",(char *) "num", NULL
4270 };
4271
4272 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
4273 if (obj0) {
4274 {
4275 arg1 = wxString_in_helper(obj0);
4276 if (arg1 == NULL) SWIG_fail;
4277 temp1 = True;
4278 }
4279 }
4280 if (obj1) {
4281 arg2 = (int) SWIG_AsInt(obj1);
4282 if (PyErr_Occurred()) SWIG_fail;
4283 }
4284 {
4285 PyThreadState* __tstate = wxPyBeginAllowThreads();
4286 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
4287
4288 wxPyEndAllowThreads(__tstate);
4289 if (PyErr_Occurred()) SWIG_fail;
4290 }
4291 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
4292 {
4293 if (temp1)
4294 delete arg1;
4295 }
4296 return resultobj;
4297 fail:
4298 {
4299 if (temp1)
4300 delete arg1;
4301 }
4302 return NULL;
4303 }
4304
4305
4306 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj;
4308 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4309 PyObject * obj0 = 0 ;
4310 char *kwnames[] = {
4311 (char *) "self", NULL
4312 };
4313
4314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4317 {
4318 PyThreadState* __tstate = wxPyBeginAllowThreads();
4319 delete arg1;
4320
4321 wxPyEndAllowThreads(__tstate);
4322 if (PyErr_Occurred()) SWIG_fail;
4323 }
4324 Py_INCREF(Py_None); resultobj = Py_None;
4325 return resultobj;
4326 fail:
4327 return NULL;
4328 }
4329
4330
4331 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4332 PyObject *resultobj;
4333 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4334 bool result;
4335 PyObject * obj0 = 0 ;
4336 char *kwnames[] = {
4337 (char *) "self", NULL
4338 };
4339
4340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4343 {
4344 PyThreadState* __tstate = wxPyBeginAllowThreads();
4345 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4346
4347 wxPyEndAllowThreads(__tstate);
4348 if (PyErr_Occurred()) SWIG_fail;
4349 }
4350 {
4351 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4352 }
4353 return resultobj;
4354 fail:
4355 return NULL;
4356 }
4357
4358
4359 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4360 PyObject *resultobj;
4361 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4362 wxString *arg2 = 0 ;
4363 bool temp2 = False ;
4364 PyObject * obj0 = 0 ;
4365 PyObject * obj1 = 0 ;
4366 char *kwnames[] = {
4367 (char *) "self",(char *) "filename", NULL
4368 };
4369
4370 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4371 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4372 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4373 {
4374 arg2 = wxString_in_helper(obj1);
4375 if (arg2 == NULL) SWIG_fail;
4376 temp2 = True;
4377 }
4378 {
4379 PyThreadState* __tstate = wxPyBeginAllowThreads();
4380 (arg1)->SetFileName((wxString const &)*arg2);
4381
4382 wxPyEndAllowThreads(__tstate);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 Py_INCREF(Py_None); resultobj = Py_None;
4386 {
4387 if (temp2)
4388 delete arg2;
4389 }
4390 return resultobj;
4391 fail:
4392 {
4393 if (temp2)
4394 delete arg2;
4395 }
4396 return NULL;
4397 }
4398
4399
4400 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4401 PyObject *resultobj;
4402 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4403 wxString *result;
4404 PyObject * obj0 = 0 ;
4405 char *kwnames[] = {
4406 (char *) "self", NULL
4407 };
4408
4409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 {
4415 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4416 result = (wxString *) &_result_ref;
4417 }
4418
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 {
4423 #if wxUSE_UNICODE
4424 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4425 #else
4426 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4427 #endif
4428 }
4429 return resultobj;
4430 fail:
4431 return NULL;
4432 }
4433
4434
4435 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4436 PyObject *resultobj;
4437 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4438 int arg2 ;
4439 PyObject * obj0 = 0 ;
4440 PyObject * obj1 = 0 ;
4441 char *kwnames[] = {
4442 (char *) "self",(char *) "num", NULL
4443 };
4444
4445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4448 arg2 = (int) SWIG_AsInt(obj1);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 {
4451 PyThreadState* __tstate = wxPyBeginAllowThreads();
4452 wxIconLocation_SetIndex(arg1,arg2);
4453
4454 wxPyEndAllowThreads(__tstate);
4455 if (PyErr_Occurred()) SWIG_fail;
4456 }
4457 Py_INCREF(Py_None); resultobj = Py_None;
4458 return resultobj;
4459 fail:
4460 return NULL;
4461 }
4462
4463
4464 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj;
4466 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4467 int result;
4468 PyObject * obj0 = 0 ;
4469 char *kwnames[] = {
4470 (char *) "self", NULL
4471 };
4472
4473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4476 {
4477 PyThreadState* __tstate = wxPyBeginAllowThreads();
4478 result = (int)wxIconLocation_GetIndex(arg1);
4479
4480 wxPyEndAllowThreads(__tstate);
4481 if (PyErr_Occurred()) SWIG_fail;
4482 }
4483 resultobj = SWIG_FromInt((int)result);
4484 return resultobj;
4485 fail:
4486 return NULL;
4487 }
4488
4489
4490 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4491 PyObject *obj;
4492 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4493 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4494 Py_INCREF(obj);
4495 return Py_BuildValue((char *)"");
4496 }
4497 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4498 PyObject *resultobj;
4499 wxIconBundle *result;
4500 char *kwnames[] = {
4501 NULL
4502 };
4503
4504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4505 {
4506 PyThreadState* __tstate = wxPyBeginAllowThreads();
4507 result = (wxIconBundle *)new wxIconBundle();
4508
4509 wxPyEndAllowThreads(__tstate);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 }
4512 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4513 return resultobj;
4514 fail:
4515 return NULL;
4516 }
4517
4518
4519 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4520 PyObject *resultobj;
4521 wxString *arg1 = 0 ;
4522 long arg2 ;
4523 wxIconBundle *result;
4524 bool temp1 = False ;
4525 PyObject * obj0 = 0 ;
4526 PyObject * obj1 = 0 ;
4527 char *kwnames[] = {
4528 (char *) "file",(char *) "type", NULL
4529 };
4530
4531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4532 {
4533 arg1 = wxString_in_helper(obj0);
4534 if (arg1 == NULL) SWIG_fail;
4535 temp1 = True;
4536 }
4537 arg2 = (long) SWIG_AsLong(obj1);
4538 if (PyErr_Occurred()) SWIG_fail;
4539 {
4540 PyThreadState* __tstate = wxPyBeginAllowThreads();
4541 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4542
4543 wxPyEndAllowThreads(__tstate);
4544 if (PyErr_Occurred()) SWIG_fail;
4545 }
4546 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4547 {
4548 if (temp1)
4549 delete arg1;
4550 }
4551 return resultobj;
4552 fail:
4553 {
4554 if (temp1)
4555 delete arg1;
4556 }
4557 return NULL;
4558 }
4559
4560
4561 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj;
4563 wxIcon *arg1 = 0 ;
4564 wxIconBundle *result;
4565 PyObject * obj0 = 0 ;
4566 char *kwnames[] = {
4567 (char *) "icon", NULL
4568 };
4569
4570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4572 SWIG_POINTER_EXCEPTION | 0)) == -1)
4573 SWIG_fail;
4574 if (arg1 == NULL) {
4575 PyErr_SetString(PyExc_TypeError,"null reference");
4576 SWIG_fail;
4577 }
4578 {
4579 PyThreadState* __tstate = wxPyBeginAllowThreads();
4580 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4581
4582 wxPyEndAllowThreads(__tstate);
4583 if (PyErr_Occurred()) SWIG_fail;
4584 }
4585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4586 return resultobj;
4587 fail:
4588 return NULL;
4589 }
4590
4591
4592 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4593 PyObject *resultobj;
4594 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4595 PyObject * obj0 = 0 ;
4596 char *kwnames[] = {
4597 (char *) "self", NULL
4598 };
4599
4600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4603 {
4604 PyThreadState* __tstate = wxPyBeginAllowThreads();
4605 delete arg1;
4606
4607 wxPyEndAllowThreads(__tstate);
4608 if (PyErr_Occurred()) SWIG_fail;
4609 }
4610 Py_INCREF(Py_None); resultobj = Py_None;
4611 return resultobj;
4612 fail:
4613 return NULL;
4614 }
4615
4616
4617 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4618 PyObject *resultobj;
4619 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4620 wxIcon *arg2 = 0 ;
4621 PyObject * obj0 = 0 ;
4622 PyObject * obj1 = 0 ;
4623 char *kwnames[] = {
4624 (char *) "self",(char *) "icon", NULL
4625 };
4626
4627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4631 SWIG_POINTER_EXCEPTION | 0)) == -1)
4632 SWIG_fail;
4633 if (arg2 == NULL) {
4634 PyErr_SetString(PyExc_TypeError,"null reference");
4635 SWIG_fail;
4636 }
4637 {
4638 PyThreadState* __tstate = wxPyBeginAllowThreads();
4639 (arg1)->AddIcon((wxIcon const &)*arg2);
4640
4641 wxPyEndAllowThreads(__tstate);
4642 if (PyErr_Occurred()) SWIG_fail;
4643 }
4644 Py_INCREF(Py_None); resultobj = Py_None;
4645 return resultobj;
4646 fail:
4647 return NULL;
4648 }
4649
4650
4651 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4652 PyObject *resultobj;
4653 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4654 wxString *arg2 = 0 ;
4655 long arg3 ;
4656 bool temp2 = False ;
4657 PyObject * obj0 = 0 ;
4658 PyObject * obj1 = 0 ;
4659 PyObject * obj2 = 0 ;
4660 char *kwnames[] = {
4661 (char *) "self",(char *) "file",(char *) "type", NULL
4662 };
4663
4664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4667 {
4668 arg2 = wxString_in_helper(obj1);
4669 if (arg2 == NULL) SWIG_fail;
4670 temp2 = True;
4671 }
4672 arg3 = (long) SWIG_AsLong(obj2);
4673 if (PyErr_Occurred()) SWIG_fail;
4674 {
4675 PyThreadState* __tstate = wxPyBeginAllowThreads();
4676 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4677
4678 wxPyEndAllowThreads(__tstate);
4679 if (PyErr_Occurred()) SWIG_fail;
4680 }
4681 Py_INCREF(Py_None); resultobj = Py_None;
4682 {
4683 if (temp2)
4684 delete arg2;
4685 }
4686 return resultobj;
4687 fail:
4688 {
4689 if (temp2)
4690 delete arg2;
4691 }
4692 return NULL;
4693 }
4694
4695
4696 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4697 PyObject *resultobj;
4698 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4699 wxSize *arg2 = 0 ;
4700 wxIcon *result;
4701 wxSize temp2 ;
4702 PyObject * obj0 = 0 ;
4703 PyObject * obj1 = 0 ;
4704 char *kwnames[] = {
4705 (char *) "self",(char *) "size", NULL
4706 };
4707
4708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4711 {
4712 arg2 = &temp2;
4713 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4714 }
4715 {
4716 PyThreadState* __tstate = wxPyBeginAllowThreads();
4717 {
4718 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4719 result = (wxIcon *) &_result_ref;
4720 }
4721
4722 wxPyEndAllowThreads(__tstate);
4723 if (PyErr_Occurred()) SWIG_fail;
4724 }
4725 {
4726 wxIcon* resultptr = new wxIcon(*result);
4727 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4728 }
4729 return resultobj;
4730 fail:
4731 return NULL;
4732 }
4733
4734
4735 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4736 PyObject *obj;
4737 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4738 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4739 Py_INCREF(obj);
4740 return Py_BuildValue((char *)"");
4741 }
4742 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4743 PyObject *resultobj;
4744 wxString *arg1 = (wxString *) 0 ;
4745 long arg2 ;
4746 int arg3 = (int) 0 ;
4747 int arg4 = (int) 0 ;
4748 wxCursor *result;
4749 bool temp1 = False ;
4750 PyObject * obj0 = 0 ;
4751 PyObject * obj1 = 0 ;
4752 PyObject * obj2 = 0 ;
4753 PyObject * obj3 = 0 ;
4754 char *kwnames[] = {
4755 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4756 };
4757
4758 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4759 {
4760 arg1 = wxString_in_helper(obj0);
4761 if (arg1 == NULL) SWIG_fail;
4762 temp1 = True;
4763 }
4764 arg2 = (long) SWIG_AsLong(obj1);
4765 if (PyErr_Occurred()) SWIG_fail;
4766 if (obj2) {
4767 arg3 = (int) SWIG_AsInt(obj2);
4768 if (PyErr_Occurred()) SWIG_fail;
4769 }
4770 if (obj3) {
4771 arg4 = (int) SWIG_AsInt(obj3);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 {
4775 if (!wxPyCheckForApp()) SWIG_fail;
4776 PyThreadState* __tstate = wxPyBeginAllowThreads();
4777 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4778
4779 wxPyEndAllowThreads(__tstate);
4780 if (PyErr_Occurred()) SWIG_fail;
4781 }
4782 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4783 {
4784 if (temp1)
4785 delete arg1;
4786 }
4787 return resultobj;
4788 fail:
4789 {
4790 if (temp1)
4791 delete arg1;
4792 }
4793 return NULL;
4794 }
4795
4796
4797 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4798 PyObject *resultobj;
4799 wxCursor *arg1 = (wxCursor *) 0 ;
4800 PyObject * obj0 = 0 ;
4801 char *kwnames[] = {
4802 (char *) "self", NULL
4803 };
4804
4805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4808 {
4809 PyThreadState* __tstate = wxPyBeginAllowThreads();
4810 delete arg1;
4811
4812 wxPyEndAllowThreads(__tstate);
4813 if (PyErr_Occurred()) SWIG_fail;
4814 }
4815 Py_INCREF(Py_None); resultobj = Py_None;
4816 return resultobj;
4817 fail:
4818 return NULL;
4819 }
4820
4821
4822 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4823 PyObject *resultobj;
4824 int arg1 ;
4825 wxCursor *result;
4826 PyObject * obj0 = 0 ;
4827 char *kwnames[] = {
4828 (char *) "id", NULL
4829 };
4830
4831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4832 arg1 = (int) SWIG_AsInt(obj0);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 {
4835 if (!wxPyCheckForApp()) SWIG_fail;
4836 PyThreadState* __tstate = wxPyBeginAllowThreads();
4837 result = (wxCursor *)new wxCursor(arg1);
4838
4839 wxPyEndAllowThreads(__tstate);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 }
4842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4843 return resultobj;
4844 fail:
4845 return NULL;
4846 }
4847
4848
4849 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4850 PyObject *resultobj;
4851 wxImage *arg1 = 0 ;
4852 wxCursor *result;
4853 PyObject * obj0 = 0 ;
4854 char *kwnames[] = {
4855 (char *) "image", NULL
4856 };
4857
4858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4860 SWIG_POINTER_EXCEPTION | 0)) == -1)
4861 SWIG_fail;
4862 if (arg1 == NULL) {
4863 PyErr_SetString(PyExc_TypeError,"null reference");
4864 SWIG_fail;
4865 }
4866 {
4867 if (!wxPyCheckForApp()) SWIG_fail;
4868 PyThreadState* __tstate = wxPyBeginAllowThreads();
4869 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4870
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 static PyObject *_wrap_Cursor_GetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4882 PyObject *resultobj;
4883 wxCursor *arg1 = (wxCursor *) 0 ;
4884 long result;
4885 PyObject * obj0 = 0 ;
4886 char *kwnames[] = {
4887 (char *) "self", NULL
4888 };
4889
4890 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHandle",kwnames,&obj0)) goto fail;
4891 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4892 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4893 {
4894 PyThreadState* __tstate = wxPyBeginAllowThreads();
4895 result = (long)(arg1)->GetHandle();
4896
4897 wxPyEndAllowThreads(__tstate);
4898 if (PyErr_Occurred()) SWIG_fail;
4899 }
4900 resultobj = SWIG_FromLong((long)result);
4901 return resultobj;
4902 fail:
4903 return NULL;
4904 }
4905
4906
4907 static PyObject *_wrap_Cursor_SetHandle(PyObject *self, PyObject *args, PyObject *kwargs) {
4908 PyObject *resultobj;
4909 wxCursor *arg1 = (wxCursor *) 0 ;
4910 long arg2 ;
4911 PyObject * obj0 = 0 ;
4912 PyObject * obj1 = 0 ;
4913 char *kwnames[] = {
4914 (char *) "self",(char *) "handle", NULL
4915 };
4916
4917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) goto fail;
4918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4920 arg2 = (long) SWIG_AsLong(obj1);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 {
4923 PyThreadState* __tstate = wxPyBeginAllowThreads();
4924 wxCursor_SetHandle(arg1,arg2);
4925
4926 wxPyEndAllowThreads(__tstate);
4927 if (PyErr_Occurred()) SWIG_fail;
4928 }
4929 Py_INCREF(Py_None); resultobj = Py_None;
4930 return resultobj;
4931 fail:
4932 return NULL;
4933 }
4934
4935
4936 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4937 PyObject *resultobj;
4938 wxCursor *arg1 = (wxCursor *) 0 ;
4939 bool result;
4940 PyObject * obj0 = 0 ;
4941 char *kwnames[] = {
4942 (char *) "self", NULL
4943 };
4944
4945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4948 {
4949 PyThreadState* __tstate = wxPyBeginAllowThreads();
4950 result = (bool)(arg1)->Ok();
4951
4952 wxPyEndAllowThreads(__tstate);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 }
4955 {
4956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4957 }
4958 return resultobj;
4959 fail:
4960 return NULL;
4961 }
4962
4963
4964 static PyObject *_wrap_Cursor_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
4965 PyObject *resultobj;
4966 wxCursor *arg1 = (wxCursor *) 0 ;
4967 int result;
4968 PyObject * obj0 = 0 ;
4969 char *kwnames[] = {
4970 (char *) "self", NULL
4971 };
4972
4973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetWidth",kwnames,&obj0)) goto fail;
4974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4976 {
4977 PyThreadState* __tstate = wxPyBeginAllowThreads();
4978 result = (int)(arg1)->GetWidth();
4979
4980 wxPyEndAllowThreads(__tstate);
4981 if (PyErr_Occurred()) SWIG_fail;
4982 }
4983 resultobj = SWIG_FromInt((int)result);
4984 return resultobj;
4985 fail:
4986 return NULL;
4987 }
4988
4989
4990 static PyObject *_wrap_Cursor_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
4991 PyObject *resultobj;
4992 wxCursor *arg1 = (wxCursor *) 0 ;
4993 int result;
4994 PyObject * obj0 = 0 ;
4995 char *kwnames[] = {
4996 (char *) "self", NULL
4997 };
4998
4999 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetHeight",kwnames,&obj0)) goto fail;
5000 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5001 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5002 {
5003 PyThreadState* __tstate = wxPyBeginAllowThreads();
5004 result = (int)(arg1)->GetHeight();
5005
5006 wxPyEndAllowThreads(__tstate);
5007 if (PyErr_Occurred()) SWIG_fail;
5008 }
5009 resultobj = SWIG_FromInt((int)result);
5010 return resultobj;
5011 fail:
5012 return NULL;
5013 }
5014
5015
5016 static PyObject *_wrap_Cursor_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5017 PyObject *resultobj;
5018 wxCursor *arg1 = (wxCursor *) 0 ;
5019 int result;
5020 PyObject * obj0 = 0 ;
5021 char *kwnames[] = {
5022 (char *) "self", NULL
5023 };
5024
5025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_GetDepth",kwnames,&obj0)) goto fail;
5026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5028 {
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
5030 result = (int)(arg1)->GetDepth();
5031
5032 wxPyEndAllowThreads(__tstate);
5033 if (PyErr_Occurred()) SWIG_fail;
5034 }
5035 resultobj = SWIG_FromInt((int)result);
5036 return resultobj;
5037 fail:
5038 return NULL;
5039 }
5040
5041
5042 static PyObject *_wrap_Cursor_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5043 PyObject *resultobj;
5044 wxCursor *arg1 = (wxCursor *) 0 ;
5045 int arg2 ;
5046 PyObject * obj0 = 0 ;
5047 PyObject * obj1 = 0 ;
5048 char *kwnames[] = {
5049 (char *) "self",(char *) "w", NULL
5050 };
5051
5052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) goto fail;
5053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5055 arg2 = (int) SWIG_AsInt(obj1);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 (arg1)->SetWidth(arg2);
5060
5061 wxPyEndAllowThreads(__tstate);
5062 if (PyErr_Occurred()) SWIG_fail;
5063 }
5064 Py_INCREF(Py_None); resultobj = Py_None;
5065 return resultobj;
5066 fail:
5067 return NULL;
5068 }
5069
5070
5071 static PyObject *_wrap_Cursor_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5072 PyObject *resultobj;
5073 wxCursor *arg1 = (wxCursor *) 0 ;
5074 int arg2 ;
5075 PyObject * obj0 = 0 ;
5076 PyObject * obj1 = 0 ;
5077 char *kwnames[] = {
5078 (char *) "self",(char *) "h", NULL
5079 };
5080
5081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) goto fail;
5082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5084 arg2 = (int) SWIG_AsInt(obj1);
5085 if (PyErr_Occurred()) SWIG_fail;
5086 {
5087 PyThreadState* __tstate = wxPyBeginAllowThreads();
5088 (arg1)->SetHeight(arg2);
5089
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 Py_INCREF(Py_None); resultobj = Py_None;
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 static PyObject *_wrap_Cursor_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj;
5102 wxCursor *arg1 = (wxCursor *) 0 ;
5103 int arg2 ;
5104 PyObject * obj0 = 0 ;
5105 PyObject * obj1 = 0 ;
5106 char *kwnames[] = {
5107 (char *) "self",(char *) "d", NULL
5108 };
5109
5110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) goto fail;
5111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5113 arg2 = (int) SWIG_AsInt(obj1);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 (arg1)->SetDepth(arg2);
5118
5119 wxPyEndAllowThreads(__tstate);
5120 if (PyErr_Occurred()) SWIG_fail;
5121 }
5122 Py_INCREF(Py_None); resultobj = Py_None;
5123 return resultobj;
5124 fail:
5125 return NULL;
5126 }
5127
5128
5129 static PyObject *_wrap_Cursor_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
5130 PyObject *resultobj;
5131 wxCursor *arg1 = (wxCursor *) 0 ;
5132 wxSize *arg2 = 0 ;
5133 wxSize temp2 ;
5134 PyObject * obj0 = 0 ;
5135 PyObject * obj1 = 0 ;
5136 char *kwnames[] = {
5137 (char *) "self",(char *) "size", NULL
5138 };
5139
5140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) goto fail;
5141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
5142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5143 {
5144 arg2 = &temp2;
5145 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
5146 }
5147 {
5148 PyThreadState* __tstate = wxPyBeginAllowThreads();
5149 (arg1)->SetSize((wxSize const &)*arg2);
5150
5151 wxPyEndAllowThreads(__tstate);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 }
5154 Py_INCREF(Py_None); resultobj = Py_None;
5155 return resultobj;
5156 fail:
5157 return NULL;
5158 }
5159
5160
5161 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
5162 PyObject *obj;
5163 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5164 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
5165 Py_INCREF(obj);
5166 return Py_BuildValue((char *)"");
5167 }
5168 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5169 PyObject *resultobj;
5170 int arg1 = (int) 0 ;
5171 int arg2 = (int) 0 ;
5172 int arg3 = (int) 0 ;
5173 int arg4 = (int) 0 ;
5174 wxRegion *result;
5175 PyObject * obj0 = 0 ;
5176 PyObject * obj1 = 0 ;
5177 PyObject * obj2 = 0 ;
5178 PyObject * obj3 = 0 ;
5179 char *kwnames[] = {
5180 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5181 };
5182
5183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5184 if (obj0) {
5185 arg1 = (int) SWIG_AsInt(obj0);
5186 if (PyErr_Occurred()) SWIG_fail;
5187 }
5188 if (obj1) {
5189 arg2 = (int) SWIG_AsInt(obj1);
5190 if (PyErr_Occurred()) SWIG_fail;
5191 }
5192 if (obj2) {
5193 arg3 = (int) SWIG_AsInt(obj2);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 if (obj3) {
5197 arg4 = (int) SWIG_AsInt(obj3);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 {
5201 if (!wxPyCheckForApp()) SWIG_fail;
5202 PyThreadState* __tstate = wxPyBeginAllowThreads();
5203 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
5204
5205 wxPyEndAllowThreads(__tstate);
5206 if (PyErr_Occurred()) SWIG_fail;
5207 }
5208 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5209 return resultobj;
5210 fail:
5211 return NULL;
5212 }
5213
5214
5215 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5216 PyObject *resultobj;
5217 wxBitmap *arg1 = 0 ;
5218 wxRegion *result;
5219 PyObject * obj0 = 0 ;
5220 char *kwnames[] = {
5221 (char *) "bmp", NULL
5222 };
5223
5224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
5225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5226 SWIG_POINTER_EXCEPTION | 0)) == -1)
5227 SWIG_fail;
5228 if (arg1 == NULL) {
5229 PyErr_SetString(PyExc_TypeError,"null reference");
5230 SWIG_fail;
5231 }
5232 {
5233 if (!wxPyCheckForApp()) SWIG_fail;
5234 PyThreadState* __tstate = wxPyBeginAllowThreads();
5235 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
5236
5237 wxPyEndAllowThreads(__tstate);
5238 if (PyErr_Occurred()) SWIG_fail;
5239 }
5240 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5241 return resultobj;
5242 fail:
5243 return NULL;
5244 }
5245
5246
5247 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5248 PyObject *resultobj;
5249 wxBitmap *arg1 = 0 ;
5250 wxColour *arg2 = 0 ;
5251 int arg3 = (int) 0 ;
5252 wxRegion *result;
5253 wxColour temp2 ;
5254 PyObject * obj0 = 0 ;
5255 PyObject * obj1 = 0 ;
5256 PyObject * obj2 = 0 ;
5257 char *kwnames[] = {
5258 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5259 };
5260
5261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
5262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
5263 SWIG_POINTER_EXCEPTION | 0)) == -1)
5264 SWIG_fail;
5265 if (arg1 == NULL) {
5266 PyErr_SetString(PyExc_TypeError,"null reference");
5267 SWIG_fail;
5268 }
5269 {
5270 arg2 = &temp2;
5271 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5272 }
5273 if (obj2) {
5274 arg3 = (int) SWIG_AsInt(obj2);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 }
5277 {
5278 if (!wxPyCheckForApp()) SWIG_fail;
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
5281
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5286 return resultobj;
5287 fail:
5288 return NULL;
5289 }
5290
5291
5292 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 int arg1 ;
5295 wxPoint *arg2 = (wxPoint *) 0 ;
5296 int arg3 = (int) wxWINDING_RULE ;
5297 wxRegion *result;
5298 PyObject * obj0 = 0 ;
5299 PyObject * obj1 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "points",(char *) "fillStyle", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
5305 {
5306 arg2 = wxPoint_LIST_helper(obj0, &arg1);
5307 if (arg2 == NULL) SWIG_fail;
5308 }
5309 if (obj1) {
5310 arg3 = (int) SWIG_AsInt(obj1);
5311 if (PyErr_Occurred()) SWIG_fail;
5312 }
5313 {
5314 if (!wxPyCheckForApp()) SWIG_fail;
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
5317
5318 wxPyEndAllowThreads(__tstate);
5319 if (PyErr_Occurred()) SWIG_fail;
5320 }
5321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
5322 {
5323 if (arg2) delete [] arg2;
5324 }
5325 return resultobj;
5326 fail:
5327 {
5328 if (arg2) delete [] arg2;
5329 }
5330 return NULL;
5331 }
5332
5333
5334 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj;
5336 wxRegion *arg1 = (wxRegion *) 0 ;
5337 PyObject * obj0 = 0 ;
5338 char *kwnames[] = {
5339 (char *) "self", NULL
5340 };
5341
5342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
5343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5345 {
5346 PyThreadState* __tstate = wxPyBeginAllowThreads();
5347 delete arg1;
5348
5349 wxPyEndAllowThreads(__tstate);
5350 if (PyErr_Occurred()) SWIG_fail;
5351 }
5352 Py_INCREF(Py_None); resultobj = Py_None;
5353 return resultobj;
5354 fail:
5355 return NULL;
5356 }
5357
5358
5359 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
5360 PyObject *resultobj;
5361 wxRegion *arg1 = (wxRegion *) 0 ;
5362 PyObject * obj0 = 0 ;
5363 char *kwnames[] = {
5364 (char *) "self", NULL
5365 };
5366
5367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
5368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5370 {
5371 PyThreadState* __tstate = wxPyBeginAllowThreads();
5372 (arg1)->Clear();
5373
5374 wxPyEndAllowThreads(__tstate);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 Py_INCREF(Py_None); resultobj = Py_None;
5378 return resultobj;
5379 fail:
5380 return NULL;
5381 }
5382
5383
5384 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
5385 PyObject *resultobj;
5386 wxRegion *arg1 = (wxRegion *) 0 ;
5387 int arg2 ;
5388 int arg3 ;
5389 bool result;
5390 PyObject * obj0 = 0 ;
5391 PyObject * obj1 = 0 ;
5392 PyObject * obj2 = 0 ;
5393 char *kwnames[] = {
5394 (char *) "self",(char *) "x",(char *) "y", NULL
5395 };
5396
5397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
5398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5400 arg2 = (int) SWIG_AsInt(obj1);
5401 if (PyErr_Occurred()) SWIG_fail;
5402 arg3 = (int) SWIG_AsInt(obj2);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 {
5405 PyThreadState* __tstate = wxPyBeginAllowThreads();
5406 result = (bool)(arg1)->Offset(arg2,arg3);
5407
5408 wxPyEndAllowThreads(__tstate);
5409 if (PyErr_Occurred()) SWIG_fail;
5410 }
5411 {
5412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5413 }
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj;
5422 wxRegion *arg1 = (wxRegion *) 0 ;
5423 int arg2 ;
5424 int arg3 ;
5425 int result;
5426 PyObject * obj0 = 0 ;
5427 PyObject * obj1 = 0 ;
5428 PyObject * obj2 = 0 ;
5429 char *kwnames[] = {
5430 (char *) "self",(char *) "x",(char *) "y", NULL
5431 };
5432
5433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
5434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5436 arg2 = (int) SWIG_AsInt(obj1);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 arg3 = (int) SWIG_AsInt(obj2);
5439 if (PyErr_Occurred()) SWIG_fail;
5440 {
5441 PyThreadState* __tstate = wxPyBeginAllowThreads();
5442 result = (int)(arg1)->Contains(arg2,arg3);
5443
5444 wxPyEndAllowThreads(__tstate);
5445 if (PyErr_Occurred()) SWIG_fail;
5446 }
5447 resultobj = SWIG_FromInt((int)result);
5448 return resultobj;
5449 fail:
5450 return NULL;
5451 }
5452
5453
5454 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
5455 PyObject *resultobj;
5456 wxRegion *arg1 = (wxRegion *) 0 ;
5457 wxPoint *arg2 = 0 ;
5458 int result;
5459 wxPoint temp2 ;
5460 PyObject * obj0 = 0 ;
5461 PyObject * obj1 = 0 ;
5462 char *kwnames[] = {
5463 (char *) "self",(char *) "pt", NULL
5464 };
5465
5466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
5467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5469 {
5470 arg2 = &temp2;
5471 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
5472 }
5473 {
5474 PyThreadState* __tstate = wxPyBeginAllowThreads();
5475 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
5476
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 resultobj = SWIG_FromInt((int)result);
5481 return resultobj;
5482 fail:
5483 return NULL;
5484 }
5485
5486
5487 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5488 PyObject *resultobj;
5489 wxRegion *arg1 = (wxRegion *) 0 ;
5490 wxRect *arg2 = 0 ;
5491 int result;
5492 wxRect temp2 ;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 char *kwnames[] = {
5496 (char *) "self",(char *) "rect", NULL
5497 };
5498
5499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
5500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5502 {
5503 arg2 = &temp2;
5504 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5505 }
5506 {
5507 PyThreadState* __tstate = wxPyBeginAllowThreads();
5508 result = (int)(arg1)->Contains((wxRect const &)*arg2);
5509
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 resultobj = SWIG_FromInt((int)result);
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj;
5522 wxRegion *arg1 = (wxRegion *) 0 ;
5523 int arg2 ;
5524 int arg3 ;
5525 int arg4 ;
5526 int arg5 ;
5527 int result;
5528 PyObject * obj0 = 0 ;
5529 PyObject * obj1 = 0 ;
5530 PyObject * obj2 = 0 ;
5531 PyObject * obj3 = 0 ;
5532 PyObject * obj4 = 0 ;
5533 char *kwnames[] = {
5534 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
5535 };
5536
5537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5540 arg2 = (int) SWIG_AsInt(obj1);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 arg3 = (int) SWIG_AsInt(obj2);
5543 if (PyErr_Occurred()) SWIG_fail;
5544 arg4 = (int) SWIG_AsInt(obj3);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 arg5 = (int) SWIG_AsInt(obj4);
5547 if (PyErr_Occurred()) SWIG_fail;
5548 {
5549 PyThreadState* __tstate = wxPyBeginAllowThreads();
5550 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
5551
5552 wxPyEndAllowThreads(__tstate);
5553 if (PyErr_Occurred()) SWIG_fail;
5554 }
5555 resultobj = SWIG_FromInt((int)result);
5556 return resultobj;
5557 fail:
5558 return NULL;
5559 }
5560
5561
5562 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5563 PyObject *resultobj;
5564 wxRegion *arg1 = (wxRegion *) 0 ;
5565 wxRect result;
5566 PyObject * obj0 = 0 ;
5567 char *kwnames[] = {
5568 (char *) "self", NULL
5569 };
5570
5571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 result = (arg1)->GetBox();
5577
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 {
5582 wxRect * resultptr;
5583 resultptr = new wxRect((wxRect &) result);
5584 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5585 }
5586 return resultobj;
5587 fail:
5588 return NULL;
5589 }
5590
5591
5592 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5593 PyObject *resultobj;
5594 wxRegion *arg1 = (wxRegion *) 0 ;
5595 int arg2 ;
5596 int arg3 ;
5597 int arg4 ;
5598 int arg5 ;
5599 bool result;
5600 PyObject * obj0 = 0 ;
5601 PyObject * obj1 = 0 ;
5602 PyObject * obj2 = 0 ;
5603 PyObject * obj3 = 0 ;
5604 PyObject * obj4 = 0 ;
5605 char *kwnames[] = {
5606 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5607 };
5608
5609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5612 arg2 = (int) SWIG_AsInt(obj1);
5613 if (PyErr_Occurred()) SWIG_fail;
5614 arg3 = (int) SWIG_AsInt(obj2);
5615 if (PyErr_Occurred()) SWIG_fail;
5616 arg4 = (int) SWIG_AsInt(obj3);
5617 if (PyErr_Occurred()) SWIG_fail;
5618 arg5 = (int) SWIG_AsInt(obj4);
5619 if (PyErr_Occurred()) SWIG_fail;
5620 {
5621 PyThreadState* __tstate = wxPyBeginAllowThreads();
5622 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5623
5624 wxPyEndAllowThreads(__tstate);
5625 if (PyErr_Occurred()) SWIG_fail;
5626 }
5627 {
5628 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5629 }
5630 return resultobj;
5631 fail:
5632 return NULL;
5633 }
5634
5635
5636 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj;
5638 wxRegion *arg1 = (wxRegion *) 0 ;
5639 wxRect *arg2 = 0 ;
5640 bool result;
5641 wxRect temp2 ;
5642 PyObject * obj0 = 0 ;
5643 PyObject * obj1 = 0 ;
5644 char *kwnames[] = {
5645 (char *) "self",(char *) "rect", NULL
5646 };
5647
5648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5651 {
5652 arg2 = &temp2;
5653 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5654 }
5655 {
5656 PyThreadState* __tstate = wxPyBeginAllowThreads();
5657 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5658
5659 wxPyEndAllowThreads(__tstate);
5660 if (PyErr_Occurred()) SWIG_fail;
5661 }
5662 {
5663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5664 }
5665 return resultobj;
5666 fail:
5667 return NULL;
5668 }
5669
5670
5671 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5672 PyObject *resultobj;
5673 wxRegion *arg1 = (wxRegion *) 0 ;
5674 wxRegion *arg2 = 0 ;
5675 bool result;
5676 PyObject * obj0 = 0 ;
5677 PyObject * obj1 = 0 ;
5678 char *kwnames[] = {
5679 (char *) "self",(char *) "region", NULL
5680 };
5681
5682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5685 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5686 SWIG_POINTER_EXCEPTION | 0)) == -1)
5687 SWIG_fail;
5688 if (arg2 == NULL) {
5689 PyErr_SetString(PyExc_TypeError,"null reference");
5690 SWIG_fail;
5691 }
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5695
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 {
5700 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5701 }
5702 return resultobj;
5703 fail:
5704 return NULL;
5705 }
5706
5707
5708 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5709 PyObject *resultobj;
5710 wxRegion *arg1 = (wxRegion *) 0 ;
5711 bool result;
5712 PyObject * obj0 = 0 ;
5713 char *kwnames[] = {
5714 (char *) "self", NULL
5715 };
5716
5717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5720 {
5721 PyThreadState* __tstate = wxPyBeginAllowThreads();
5722 result = (bool)(arg1)->IsEmpty();
5723
5724 wxPyEndAllowThreads(__tstate);
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 {
5728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5729 }
5730 return resultobj;
5731 fail:
5732 return NULL;
5733 }
5734
5735
5736 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5737 PyObject *resultobj;
5738 wxRegion *arg1 = (wxRegion *) 0 ;
5739 int arg2 ;
5740 int arg3 ;
5741 int arg4 ;
5742 int arg5 ;
5743 bool result;
5744 PyObject * obj0 = 0 ;
5745 PyObject * obj1 = 0 ;
5746 PyObject * obj2 = 0 ;
5747 PyObject * obj3 = 0 ;
5748 PyObject * obj4 = 0 ;
5749 char *kwnames[] = {
5750 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5751 };
5752
5753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5756 arg2 = (int) SWIG_AsInt(obj1);
5757 if (PyErr_Occurred()) SWIG_fail;
5758 arg3 = (int) SWIG_AsInt(obj2);
5759 if (PyErr_Occurred()) SWIG_fail;
5760 arg4 = (int) SWIG_AsInt(obj3);
5761 if (PyErr_Occurred()) SWIG_fail;
5762 arg5 = (int) SWIG_AsInt(obj4);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 {
5765 PyThreadState* __tstate = wxPyBeginAllowThreads();
5766 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5767
5768 wxPyEndAllowThreads(__tstate);
5769 if (PyErr_Occurred()) SWIG_fail;
5770 }
5771 {
5772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5773 }
5774 return resultobj;
5775 fail:
5776 return NULL;
5777 }
5778
5779
5780 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5781 PyObject *resultobj;
5782 wxRegion *arg1 = (wxRegion *) 0 ;
5783 wxRect *arg2 = 0 ;
5784 bool result;
5785 wxRect temp2 ;
5786 PyObject * obj0 = 0 ;
5787 PyObject * obj1 = 0 ;
5788 char *kwnames[] = {
5789 (char *) "self",(char *) "rect", NULL
5790 };
5791
5792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5795 {
5796 arg2 = &temp2;
5797 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5798 }
5799 {
5800 PyThreadState* __tstate = wxPyBeginAllowThreads();
5801 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5802
5803 wxPyEndAllowThreads(__tstate);
5804 if (PyErr_Occurred()) SWIG_fail;
5805 }
5806 {
5807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5808 }
5809 return resultobj;
5810 fail:
5811 return NULL;
5812 }
5813
5814
5815 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5816 PyObject *resultobj;
5817 wxRegion *arg1 = (wxRegion *) 0 ;
5818 wxRegion *arg2 = 0 ;
5819 bool result;
5820 PyObject * obj0 = 0 ;
5821 PyObject * obj1 = 0 ;
5822 char *kwnames[] = {
5823 (char *) "self",(char *) "region", NULL
5824 };
5825
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5829 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5830 SWIG_POINTER_EXCEPTION | 0)) == -1)
5831 SWIG_fail;
5832 if (arg2 == NULL) {
5833 PyErr_SetString(PyExc_TypeError,"null reference");
5834 SWIG_fail;
5835 }
5836 {
5837 PyThreadState* __tstate = wxPyBeginAllowThreads();
5838 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5839
5840 wxPyEndAllowThreads(__tstate);
5841 if (PyErr_Occurred()) SWIG_fail;
5842 }
5843 {
5844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5845 }
5846 return resultobj;
5847 fail:
5848 return NULL;
5849 }
5850
5851
5852 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5853 PyObject *resultobj;
5854 wxRegion *arg1 = (wxRegion *) 0 ;
5855 int arg2 ;
5856 int arg3 ;
5857 int arg4 ;
5858 int arg5 ;
5859 bool result;
5860 PyObject * obj0 = 0 ;
5861 PyObject * obj1 = 0 ;
5862 PyObject * obj2 = 0 ;
5863 PyObject * obj3 = 0 ;
5864 PyObject * obj4 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 arg2 = (int) SWIG_AsInt(obj1);
5873 if (PyErr_Occurred()) SWIG_fail;
5874 arg3 = (int) SWIG_AsInt(obj2);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 arg4 = (int) SWIG_AsInt(obj3);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 arg5 = (int) SWIG_AsInt(obj4);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5883
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 {
5888 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5889 }
5890 return resultobj;
5891 fail:
5892 return NULL;
5893 }
5894
5895
5896 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5897 PyObject *resultobj;
5898 wxRegion *arg1 = (wxRegion *) 0 ;
5899 wxRect *arg2 = 0 ;
5900 bool result;
5901 wxRect temp2 ;
5902 PyObject * obj0 = 0 ;
5903 PyObject * obj1 = 0 ;
5904 char *kwnames[] = {
5905 (char *) "self",(char *) "rect", NULL
5906 };
5907
5908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5911 {
5912 arg2 = &temp2;
5913 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5914 }
5915 {
5916 PyThreadState* __tstate = wxPyBeginAllowThreads();
5917 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5918
5919 wxPyEndAllowThreads(__tstate);
5920 if (PyErr_Occurred()) SWIG_fail;
5921 }
5922 {
5923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5924 }
5925 return resultobj;
5926 fail:
5927 return NULL;
5928 }
5929
5930
5931 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5932 PyObject *resultobj;
5933 wxRegion *arg1 = (wxRegion *) 0 ;
5934 wxRegion *arg2 = 0 ;
5935 bool result;
5936 PyObject * obj0 = 0 ;
5937 PyObject * obj1 = 0 ;
5938 char *kwnames[] = {
5939 (char *) "self",(char *) "region", NULL
5940 };
5941
5942 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5943 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5944 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5945 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5946 SWIG_POINTER_EXCEPTION | 0)) == -1)
5947 SWIG_fail;
5948 if (arg2 == NULL) {
5949 PyErr_SetString(PyExc_TypeError,"null reference");
5950 SWIG_fail;
5951 }
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5955
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 {
5960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5961 }
5962 return resultobj;
5963 fail:
5964 return NULL;
5965 }
5966
5967
5968 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5969 PyObject *resultobj;
5970 wxRegion *arg1 = (wxRegion *) 0 ;
5971 int arg2 ;
5972 int arg3 ;
5973 int arg4 ;
5974 int arg5 ;
5975 bool result;
5976 PyObject * obj0 = 0 ;
5977 PyObject * obj1 = 0 ;
5978 PyObject * obj2 = 0 ;
5979 PyObject * obj3 = 0 ;
5980 PyObject * obj4 = 0 ;
5981 char *kwnames[] = {
5982 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5983 };
5984
5985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5988 arg2 = (int) SWIG_AsInt(obj1);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 arg3 = (int) SWIG_AsInt(obj2);
5991 if (PyErr_Occurred()) SWIG_fail;
5992 arg4 = (int) SWIG_AsInt(obj3);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 arg5 = (int) SWIG_AsInt(obj4);
5995 if (PyErr_Occurred()) SWIG_fail;
5996 {
5997 PyThreadState* __tstate = wxPyBeginAllowThreads();
5998 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5999
6000 wxPyEndAllowThreads(__tstate);
6001 if (PyErr_Occurred()) SWIG_fail;
6002 }
6003 {
6004 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6005 }
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj;
6014 wxRegion *arg1 = (wxRegion *) 0 ;
6015 wxRect *arg2 = 0 ;
6016 bool result;
6017 wxRect temp2 ;
6018 PyObject * obj0 = 0 ;
6019 PyObject * obj1 = 0 ;
6020 char *kwnames[] = {
6021 (char *) "self",(char *) "rect", NULL
6022 };
6023
6024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
6025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6027 {
6028 arg2 = &temp2;
6029 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6030 }
6031 {
6032 PyThreadState* __tstate = wxPyBeginAllowThreads();
6033 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
6034
6035 wxPyEndAllowThreads(__tstate);
6036 if (PyErr_Occurred()) SWIG_fail;
6037 }
6038 {
6039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6040 }
6041 return resultobj;
6042 fail:
6043 return NULL;
6044 }
6045
6046
6047 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
6048 PyObject *resultobj;
6049 wxRegion *arg1 = (wxRegion *) 0 ;
6050 wxRegion *arg2 = 0 ;
6051 bool result;
6052 PyObject * obj0 = 0 ;
6053 PyObject * obj1 = 0 ;
6054 char *kwnames[] = {
6055 (char *) "self",(char *) "region", NULL
6056 };
6057
6058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
6059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6061 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
6062 SWIG_POINTER_EXCEPTION | 0)) == -1)
6063 SWIG_fail;
6064 if (arg2 == NULL) {
6065 PyErr_SetString(PyExc_TypeError,"null reference");
6066 SWIG_fail;
6067 }
6068 {
6069 PyThreadState* __tstate = wxPyBeginAllowThreads();
6070 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
6071
6072 wxPyEndAllowThreads(__tstate);
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 {
6076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6077 }
6078 return resultobj;
6079 fail:
6080 return NULL;
6081 }
6082
6083
6084 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6085 PyObject *resultobj;
6086 wxRegion *arg1 = (wxRegion *) 0 ;
6087 SwigValueWrapper< wxBitmap > result;
6088 PyObject * obj0 = 0 ;
6089 char *kwnames[] = {
6090 (char *) "self", NULL
6091 };
6092
6093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
6094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 result = (arg1)->ConvertToBitmap();
6099
6100 wxPyEndAllowThreads(__tstate);
6101 if (PyErr_Occurred()) SWIG_fail;
6102 }
6103 {
6104 wxBitmap * resultptr;
6105 resultptr = new wxBitmap((wxBitmap &) result);
6106 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
6107 }
6108 return resultobj;
6109 fail:
6110 return NULL;
6111 }
6112
6113
6114 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
6115 PyObject *resultobj;
6116 wxRegion *arg1 = (wxRegion *) 0 ;
6117 wxBitmap *arg2 = 0 ;
6118 bool result;
6119 PyObject * obj0 = 0 ;
6120 PyObject * obj1 = 0 ;
6121 char *kwnames[] = {
6122 (char *) "self",(char *) "bmp", NULL
6123 };
6124
6125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
6126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6128 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6129 SWIG_POINTER_EXCEPTION | 0)) == -1)
6130 SWIG_fail;
6131 if (arg2 == NULL) {
6132 PyErr_SetString(PyExc_TypeError,"null reference");
6133 SWIG_fail;
6134 }
6135 {
6136 PyThreadState* __tstate = wxPyBeginAllowThreads();
6137 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
6138
6139 wxPyEndAllowThreads(__tstate);
6140 if (PyErr_Occurred()) SWIG_fail;
6141 }
6142 {
6143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6144 }
6145 return resultobj;
6146 fail:
6147 return NULL;
6148 }
6149
6150
6151 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
6152 PyObject *resultobj;
6153 wxRegion *arg1 = (wxRegion *) 0 ;
6154 wxBitmap *arg2 = 0 ;
6155 wxColour *arg3 = 0 ;
6156 int arg4 = (int) 0 ;
6157 bool result;
6158 wxColour temp3 ;
6159 PyObject * obj0 = 0 ;
6160 PyObject * obj1 = 0 ;
6161 PyObject * obj2 = 0 ;
6162 PyObject * obj3 = 0 ;
6163 char *kwnames[] = {
6164 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
6165 };
6166
6167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
6168 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6169 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6170 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
6171 SWIG_POINTER_EXCEPTION | 0)) == -1)
6172 SWIG_fail;
6173 if (arg2 == NULL) {
6174 PyErr_SetString(PyExc_TypeError,"null reference");
6175 SWIG_fail;
6176 }
6177 {
6178 arg3 = &temp3;
6179 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
6180 }
6181 if (obj3) {
6182 arg4 = (int) SWIG_AsInt(obj3);
6183 if (PyErr_Occurred()) SWIG_fail;
6184 }
6185 {
6186 PyThreadState* __tstate = wxPyBeginAllowThreads();
6187 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
6188
6189 wxPyEndAllowThreads(__tstate);
6190 if (PyErr_Occurred()) SWIG_fail;
6191 }
6192 {
6193 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6194 }
6195 return resultobj;
6196 fail:
6197 return NULL;
6198 }
6199
6200
6201 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
6202 PyObject *obj;
6203 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6204 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
6205 Py_INCREF(obj);
6206 return Py_BuildValue((char *)"");
6207 }
6208 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6209 PyObject *resultobj;
6210 wxRegion *arg1 = 0 ;
6211 wxRegionIterator *result;
6212 PyObject * obj0 = 0 ;
6213 char *kwnames[] = {
6214 (char *) "region", NULL
6215 };
6216
6217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
6218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
6219 SWIG_POINTER_EXCEPTION | 0)) == -1)
6220 SWIG_fail;
6221 if (arg1 == NULL) {
6222 PyErr_SetString(PyExc_TypeError,"null reference");
6223 SWIG_fail;
6224 }
6225 {
6226 if (!wxPyCheckForApp()) SWIG_fail;
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
6229
6230 wxPyEndAllowThreads(__tstate);
6231 if (PyErr_Occurred()) SWIG_fail;
6232 }
6233 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj;
6242 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6243 PyObject * obj0 = 0 ;
6244 char *kwnames[] = {
6245 (char *) "self", NULL
6246 };
6247
6248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
6249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 delete arg1;
6254
6255 wxPyEndAllowThreads(__tstate);
6256 if (PyErr_Occurred()) SWIG_fail;
6257 }
6258 Py_INCREF(Py_None); resultobj = Py_None;
6259 return resultobj;
6260 fail:
6261 return NULL;
6262 }
6263
6264
6265 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj;
6267 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6268 int result;
6269 PyObject * obj0 = 0 ;
6270 char *kwnames[] = {
6271 (char *) "self", NULL
6272 };
6273
6274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
6275 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6276 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6277 {
6278 PyThreadState* __tstate = wxPyBeginAllowThreads();
6279 result = (int)(arg1)->GetX();
6280
6281 wxPyEndAllowThreads(__tstate);
6282 if (PyErr_Occurred()) SWIG_fail;
6283 }
6284 resultobj = SWIG_FromInt((int)result);
6285 return resultobj;
6286 fail:
6287 return NULL;
6288 }
6289
6290
6291 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
6292 PyObject *resultobj;
6293 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6294 int result;
6295 PyObject * obj0 = 0 ;
6296 char *kwnames[] = {
6297 (char *) "self", NULL
6298 };
6299
6300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
6301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 result = (int)(arg1)->GetY();
6306
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 resultobj = SWIG_FromInt((int)result);
6311 return resultobj;
6312 fail:
6313 return NULL;
6314 }
6315
6316
6317 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj;
6319 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6320 int result;
6321 PyObject * obj0 = 0 ;
6322 char *kwnames[] = {
6323 (char *) "self", NULL
6324 };
6325
6326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
6327 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6328 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 result = (int)(arg1)->GetW();
6332
6333 wxPyEndAllowThreads(__tstate);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 resultobj = SWIG_FromInt((int)result);
6337 return resultobj;
6338 fail:
6339 return NULL;
6340 }
6341
6342
6343 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
6344 PyObject *resultobj;
6345 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6346 int result;
6347 PyObject * obj0 = 0 ;
6348 char *kwnames[] = {
6349 (char *) "self", NULL
6350 };
6351
6352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
6353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6355 {
6356 PyThreadState* __tstate = wxPyBeginAllowThreads();
6357 result = (int)(arg1)->GetWidth();
6358
6359 wxPyEndAllowThreads(__tstate);
6360 if (PyErr_Occurred()) SWIG_fail;
6361 }
6362 resultobj = SWIG_FromInt((int)result);
6363 return resultobj;
6364 fail:
6365 return NULL;
6366 }
6367
6368
6369 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
6370 PyObject *resultobj;
6371 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6372 int result;
6373 PyObject * obj0 = 0 ;
6374 char *kwnames[] = {
6375 (char *) "self", NULL
6376 };
6377
6378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
6379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6381 {
6382 PyThreadState* __tstate = wxPyBeginAllowThreads();
6383 result = (int)(arg1)->GetH();
6384
6385 wxPyEndAllowThreads(__tstate);
6386 if (PyErr_Occurred()) SWIG_fail;
6387 }
6388 resultobj = SWIG_FromInt((int)result);
6389 return resultobj;
6390 fail:
6391 return NULL;
6392 }
6393
6394
6395 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6396 PyObject *resultobj;
6397 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6398 int result;
6399 PyObject * obj0 = 0 ;
6400 char *kwnames[] = {
6401 (char *) "self", NULL
6402 };
6403
6404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
6405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6407 {
6408 PyThreadState* __tstate = wxPyBeginAllowThreads();
6409 result = (int)(arg1)->GetHeight();
6410
6411 wxPyEndAllowThreads(__tstate);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 resultobj = SWIG_FromInt((int)result);
6415 return resultobj;
6416 fail:
6417 return NULL;
6418 }
6419
6420
6421 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj;
6423 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6424 wxRect result;
6425 PyObject * obj0 = 0 ;
6426 char *kwnames[] = {
6427 (char *) "self", NULL
6428 };
6429
6430 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
6431 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6433 {
6434 PyThreadState* __tstate = wxPyBeginAllowThreads();
6435 result = (arg1)->GetRect();
6436
6437 wxPyEndAllowThreads(__tstate);
6438 if (PyErr_Occurred()) SWIG_fail;
6439 }
6440 {
6441 wxRect * resultptr;
6442 resultptr = new wxRect((wxRect &) result);
6443 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
6444 }
6445 return resultobj;
6446 fail:
6447 return NULL;
6448 }
6449
6450
6451 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
6452 PyObject *resultobj;
6453 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6454 bool result;
6455 PyObject * obj0 = 0 ;
6456 char *kwnames[] = {
6457 (char *) "self", NULL
6458 };
6459
6460 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
6461 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (bool)(arg1)->HaveRects();
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 {
6471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6472 }
6473 return resultobj;
6474 fail:
6475 return NULL;
6476 }
6477
6478
6479 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
6480 PyObject *resultobj;
6481 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6482 PyObject * obj0 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "self", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
6488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6490 {
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 (arg1)->Reset();
6493
6494 wxPyEndAllowThreads(__tstate);
6495 if (PyErr_Occurred()) SWIG_fail;
6496 }
6497 Py_INCREF(Py_None); resultobj = Py_None;
6498 return resultobj;
6499 fail:
6500 return NULL;
6501 }
6502
6503
6504 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
6505 PyObject *resultobj;
6506 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6507 PyObject * obj0 = 0 ;
6508 char *kwnames[] = {
6509 (char *) "self", NULL
6510 };
6511
6512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
6513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6515 {
6516 PyThreadState* __tstate = wxPyBeginAllowThreads();
6517 wxRegionIterator_Next(arg1);
6518
6519 wxPyEndAllowThreads(__tstate);
6520 if (PyErr_Occurred()) SWIG_fail;
6521 }
6522 Py_INCREF(Py_None); resultobj = Py_None;
6523 return resultobj;
6524 fail:
6525 return NULL;
6526 }
6527
6528
6529 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
6530 PyObject *resultobj;
6531 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
6532 bool result;
6533 PyObject * obj0 = 0 ;
6534 char *kwnames[] = {
6535 (char *) "self", NULL
6536 };
6537
6538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
6539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
6540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6541 {
6542 PyThreadState* __tstate = wxPyBeginAllowThreads();
6543 result = (bool)wxRegionIterator___nonzero__(arg1);
6544
6545 wxPyEndAllowThreads(__tstate);
6546 if (PyErr_Occurred()) SWIG_fail;
6547 }
6548 {
6549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6550 }
6551 return resultobj;
6552 fail:
6553 return NULL;
6554 }
6555
6556
6557 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
6558 PyObject *obj;
6559 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6560 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6561 Py_INCREF(obj);
6562 return Py_BuildValue((char *)"");
6563 }
6564 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxNativeFontInfo *result;
6567 char *kwnames[] = {
6568 NULL
6569 };
6570
6571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6572 {
6573 PyThreadState* __tstate = wxPyBeginAllowThreads();
6574 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6575
6576 wxPyEndAllowThreads(__tstate);
6577 if (PyErr_Occurred()) SWIG_fail;
6578 }
6579 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6580 return resultobj;
6581 fail:
6582 return NULL;
6583 }
6584
6585
6586 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6587 PyObject *resultobj;
6588 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6589 PyObject * obj0 = 0 ;
6590 char *kwnames[] = {
6591 (char *) "self", NULL
6592 };
6593
6594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6597 {
6598 PyThreadState* __tstate = wxPyBeginAllowThreads();
6599 delete arg1;
6600
6601 wxPyEndAllowThreads(__tstate);
6602 if (PyErr_Occurred()) SWIG_fail;
6603 }
6604 Py_INCREF(Py_None); resultobj = Py_None;
6605 return resultobj;
6606 fail:
6607 return NULL;
6608 }
6609
6610
6611 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj;
6613 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6614 PyObject * obj0 = 0 ;
6615 char *kwnames[] = {
6616 (char *) "self", NULL
6617 };
6618
6619 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6620 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6621 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6622 {
6623 PyThreadState* __tstate = wxPyBeginAllowThreads();
6624 (arg1)->Init();
6625
6626 wxPyEndAllowThreads(__tstate);
6627 if (PyErr_Occurred()) SWIG_fail;
6628 }
6629 Py_INCREF(Py_None); resultobj = Py_None;
6630 return resultobj;
6631 fail:
6632 return NULL;
6633 }
6634
6635
6636 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6637 PyObject *resultobj;
6638 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6639 wxFont *arg2 = 0 ;
6640 PyObject * obj0 = 0 ;
6641 PyObject * obj1 = 0 ;
6642 char *kwnames[] = {
6643 (char *) "self",(char *) "font", NULL
6644 };
6645
6646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6649 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6650 SWIG_POINTER_EXCEPTION | 0)) == -1)
6651 SWIG_fail;
6652 if (arg2 == NULL) {
6653 PyErr_SetString(PyExc_TypeError,"null reference");
6654 SWIG_fail;
6655 }
6656 {
6657 PyThreadState* __tstate = wxPyBeginAllowThreads();
6658 (arg1)->InitFromFont((wxFont const &)*arg2);
6659
6660 wxPyEndAllowThreads(__tstate);
6661 if (PyErr_Occurred()) SWIG_fail;
6662 }
6663 Py_INCREF(Py_None); resultobj = Py_None;
6664 return resultobj;
6665 fail:
6666 return NULL;
6667 }
6668
6669
6670 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj;
6672 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6673 int result;
6674 PyObject * obj0 = 0 ;
6675 char *kwnames[] = {
6676 (char *) "self", NULL
6677 };
6678
6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6682 {
6683 PyThreadState* __tstate = wxPyBeginAllowThreads();
6684 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6685
6686 wxPyEndAllowThreads(__tstate);
6687 if (PyErr_Occurred()) SWIG_fail;
6688 }
6689 resultobj = SWIG_FromInt((int)result);
6690 return resultobj;
6691 fail:
6692 return NULL;
6693 }
6694
6695
6696 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6697 PyObject *resultobj;
6698 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6699 int result;
6700 PyObject * obj0 = 0 ;
6701 char *kwnames[] = {
6702 (char *) "self", NULL
6703 };
6704
6705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6708 {
6709 PyThreadState* __tstate = wxPyBeginAllowThreads();
6710 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6711
6712 wxPyEndAllowThreads(__tstate);
6713 if (PyErr_Occurred()) SWIG_fail;
6714 }
6715 resultobj = SWIG_FromInt((int)result);
6716 return resultobj;
6717 fail:
6718 return NULL;
6719 }
6720
6721
6722 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6723 PyObject *resultobj;
6724 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6725 int result;
6726 PyObject * obj0 = 0 ;
6727 char *kwnames[] = {
6728 (char *) "self", NULL
6729 };
6730
6731 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6732 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6733 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6734 {
6735 PyThreadState* __tstate = wxPyBeginAllowThreads();
6736 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6737
6738 wxPyEndAllowThreads(__tstate);
6739 if (PyErr_Occurred()) SWIG_fail;
6740 }
6741 resultobj = SWIG_FromInt((int)result);
6742 return resultobj;
6743 fail:
6744 return NULL;
6745 }
6746
6747
6748 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6749 PyObject *resultobj;
6750 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6751 bool result;
6752 PyObject * obj0 = 0 ;
6753 char *kwnames[] = {
6754 (char *) "self", NULL
6755 };
6756
6757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6760 {
6761 PyThreadState* __tstate = wxPyBeginAllowThreads();
6762 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6763
6764 wxPyEndAllowThreads(__tstate);
6765 if (PyErr_Occurred()) SWIG_fail;
6766 }
6767 {
6768 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6769 }
6770 return resultobj;
6771 fail:
6772 return NULL;
6773 }
6774
6775
6776 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6777 PyObject *resultobj;
6778 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6779 wxString result;
6780 PyObject * obj0 = 0 ;
6781 char *kwnames[] = {
6782 (char *) "self", NULL
6783 };
6784
6785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 {
6796 #if wxUSE_UNICODE
6797 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6798 #else
6799 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6800 #endif
6801 }
6802 return resultobj;
6803 fail:
6804 return NULL;
6805 }
6806
6807
6808 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6809 PyObject *resultobj;
6810 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6811 int result;
6812 PyObject * obj0 = 0 ;
6813 char *kwnames[] = {
6814 (char *) "self", NULL
6815 };
6816
6817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6820 {
6821 PyThreadState* __tstate = wxPyBeginAllowThreads();
6822 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6823
6824 wxPyEndAllowThreads(__tstate);
6825 if (PyErr_Occurred()) SWIG_fail;
6826 }
6827 resultobj = SWIG_FromInt((int)result);
6828 return resultobj;
6829 fail:
6830 return NULL;
6831 }
6832
6833
6834 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6835 PyObject *resultobj;
6836 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6837 int result;
6838 PyObject * obj0 = 0 ;
6839 char *kwnames[] = {
6840 (char *) "self", NULL
6841 };
6842
6843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6846 {
6847 PyThreadState* __tstate = wxPyBeginAllowThreads();
6848 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6849
6850 wxPyEndAllowThreads(__tstate);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_FromInt((int)result);
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj;
6862 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6863 int arg2 ;
6864 PyObject * obj0 = 0 ;
6865 PyObject * obj1 = 0 ;
6866 char *kwnames[] = {
6867 (char *) "self",(char *) "pointsize", NULL
6868 };
6869
6870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6873 arg2 = (int) SWIG_AsInt(obj1);
6874 if (PyErr_Occurred()) SWIG_fail;
6875 {
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 (arg1)->SetPointSize(arg2);
6878
6879 wxPyEndAllowThreads(__tstate);
6880 if (PyErr_Occurred()) SWIG_fail;
6881 }
6882 Py_INCREF(Py_None); resultobj = Py_None;
6883 return resultobj;
6884 fail:
6885 return NULL;
6886 }
6887
6888
6889 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6890 PyObject *resultobj;
6891 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6892 int arg2 ;
6893 PyObject * obj0 = 0 ;
6894 PyObject * obj1 = 0 ;
6895 char *kwnames[] = {
6896 (char *) "self",(char *) "style", NULL
6897 };
6898
6899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6902 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 (arg1)->SetStyle((wxFontStyle )arg2);
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 Py_INCREF(Py_None); resultobj = Py_None;
6912 return resultobj;
6913 fail:
6914 return NULL;
6915 }
6916
6917
6918 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6921 int arg2 ;
6922 PyObject * obj0 = 0 ;
6923 PyObject * obj1 = 0 ;
6924 char *kwnames[] = {
6925 (char *) "self",(char *) "weight", NULL
6926 };
6927
6928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6929 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6930 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6931 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 {
6934 PyThreadState* __tstate = wxPyBeginAllowThreads();
6935 (arg1)->SetWeight((wxFontWeight )arg2);
6936
6937 wxPyEndAllowThreads(__tstate);
6938 if (PyErr_Occurred()) SWIG_fail;
6939 }
6940 Py_INCREF(Py_None); resultobj = Py_None;
6941 return resultobj;
6942 fail:
6943 return NULL;
6944 }
6945
6946
6947 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6948 PyObject *resultobj;
6949 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6950 bool arg2 ;
6951 PyObject * obj0 = 0 ;
6952 PyObject * obj1 = 0 ;
6953 char *kwnames[] = {
6954 (char *) "self",(char *) "underlined", NULL
6955 };
6956
6957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6960 arg2 = (bool) SWIG_AsBool(obj1);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 {
6963 PyThreadState* __tstate = wxPyBeginAllowThreads();
6964 (arg1)->SetUnderlined(arg2);
6965
6966 wxPyEndAllowThreads(__tstate);
6967 if (PyErr_Occurred()) SWIG_fail;
6968 }
6969 Py_INCREF(Py_None); resultobj = Py_None;
6970 return resultobj;
6971 fail:
6972 return NULL;
6973 }
6974
6975
6976 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6977 PyObject *resultobj;
6978 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6979 wxString arg2 ;
6980 PyObject * obj0 = 0 ;
6981 PyObject * obj1 = 0 ;
6982 char *kwnames[] = {
6983 (char *) "self",(char *) "facename", NULL
6984 };
6985
6986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6989 {
6990 wxString* sptr = wxString_in_helper(obj1);
6991 if (sptr == NULL) SWIG_fail;
6992 arg2 = *sptr;
6993 delete sptr;
6994 }
6995 {
6996 PyThreadState* __tstate = wxPyBeginAllowThreads();
6997 (arg1)->SetFaceName(arg2);
6998
6999 wxPyEndAllowThreads(__tstate);
7000 if (PyErr_Occurred()) SWIG_fail;
7001 }
7002 Py_INCREF(Py_None); resultobj = Py_None;
7003 return resultobj;
7004 fail:
7005 return NULL;
7006 }
7007
7008
7009 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7010 PyObject *resultobj;
7011 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7012 int arg2 ;
7013 PyObject * obj0 = 0 ;
7014 PyObject * obj1 = 0 ;
7015 char *kwnames[] = {
7016 (char *) "self",(char *) "family", NULL
7017 };
7018
7019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
7020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7022 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7023 if (PyErr_Occurred()) SWIG_fail;
7024 {
7025 PyThreadState* __tstate = wxPyBeginAllowThreads();
7026 (arg1)->SetFamily((wxFontFamily )arg2);
7027
7028 wxPyEndAllowThreads(__tstate);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 Py_INCREF(Py_None); resultobj = Py_None;
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj;
7040 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7041 int arg2 ;
7042 PyObject * obj0 = 0 ;
7043 PyObject * obj1 = 0 ;
7044 char *kwnames[] = {
7045 (char *) "self",(char *) "encoding", NULL
7046 };
7047
7048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
7049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7051 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 {
7054 PyThreadState* __tstate = wxPyBeginAllowThreads();
7055 (arg1)->SetEncoding((wxFontEncoding )arg2);
7056
7057 wxPyEndAllowThreads(__tstate);
7058 if (PyErr_Occurred()) SWIG_fail;
7059 }
7060 Py_INCREF(Py_None); resultobj = Py_None;
7061 return resultobj;
7062 fail:
7063 return NULL;
7064 }
7065
7066
7067 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7068 PyObject *resultobj;
7069 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7070 wxString *arg2 = 0 ;
7071 bool result;
7072 bool temp2 = False ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 char *kwnames[] = {
7076 (char *) "self",(char *) "s", NULL
7077 };
7078
7079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7082 {
7083 arg2 = wxString_in_helper(obj1);
7084 if (arg2 == NULL) SWIG_fail;
7085 temp2 = True;
7086 }
7087 {
7088 PyThreadState* __tstate = wxPyBeginAllowThreads();
7089 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7090
7091 wxPyEndAllowThreads(__tstate);
7092 if (PyErr_Occurred()) SWIG_fail;
7093 }
7094 {
7095 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7096 }
7097 {
7098 if (temp2)
7099 delete arg2;
7100 }
7101 return resultobj;
7102 fail:
7103 {
7104 if (temp2)
7105 delete arg2;
7106 }
7107 return NULL;
7108 }
7109
7110
7111 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7112 PyObject *resultobj;
7113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7114 wxString result;
7115 PyObject * obj0 = 0 ;
7116 char *kwnames[] = {
7117 (char *) "self", NULL
7118 };
7119
7120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
7121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7123 {
7124 PyThreadState* __tstate = wxPyBeginAllowThreads();
7125 result = ((wxNativeFontInfo const *)arg1)->ToString();
7126
7127 wxPyEndAllowThreads(__tstate);
7128 if (PyErr_Occurred()) SWIG_fail;
7129 }
7130 {
7131 #if wxUSE_UNICODE
7132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7133 #else
7134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7135 #endif
7136 }
7137 return resultobj;
7138 fail:
7139 return NULL;
7140 }
7141
7142
7143 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
7144 PyObject *resultobj;
7145 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7146 wxString result;
7147 PyObject * obj0 = 0 ;
7148 char *kwnames[] = {
7149 (char *) "self", NULL
7150 };
7151
7152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
7153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7155 {
7156 PyThreadState* __tstate = wxPyBeginAllowThreads();
7157 result = wxNativeFontInfo___str__(arg1);
7158
7159 wxPyEndAllowThreads(__tstate);
7160 if (PyErr_Occurred()) SWIG_fail;
7161 }
7162 {
7163 #if wxUSE_UNICODE
7164 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7165 #else
7166 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7167 #endif
7168 }
7169 return resultobj;
7170 fail:
7171 return NULL;
7172 }
7173
7174
7175 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7176 PyObject *resultobj;
7177 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7178 wxString *arg2 = 0 ;
7179 bool result;
7180 bool temp2 = False ;
7181 PyObject * obj0 = 0 ;
7182 PyObject * obj1 = 0 ;
7183 char *kwnames[] = {
7184 (char *) "self",(char *) "s", NULL
7185 };
7186
7187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
7188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7190 {
7191 arg2 = wxString_in_helper(obj1);
7192 if (arg2 == NULL) SWIG_fail;
7193 temp2 = True;
7194 }
7195 {
7196 PyThreadState* __tstate = wxPyBeginAllowThreads();
7197 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
7198
7199 wxPyEndAllowThreads(__tstate);
7200 if (PyErr_Occurred()) SWIG_fail;
7201 }
7202 {
7203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7204 }
7205 {
7206 if (temp2)
7207 delete arg2;
7208 }
7209 return resultobj;
7210 fail:
7211 {
7212 if (temp2)
7213 delete arg2;
7214 }
7215 return NULL;
7216 }
7217
7218
7219 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
7220 PyObject *resultobj;
7221 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
7222 wxString result;
7223 PyObject * obj0 = 0 ;
7224 char *kwnames[] = {
7225 (char *) "self", NULL
7226 };
7227
7228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
7229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7231 {
7232 PyThreadState* __tstate = wxPyBeginAllowThreads();
7233 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
7234
7235 wxPyEndAllowThreads(__tstate);
7236 if (PyErr_Occurred()) SWIG_fail;
7237 }
7238 {
7239 #if wxUSE_UNICODE
7240 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7241 #else
7242 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7243 #endif
7244 }
7245 return resultobj;
7246 fail:
7247 return NULL;
7248 }
7249
7250
7251 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
7252 PyObject *obj;
7253 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7254 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
7255 Py_INCREF(obj);
7256 return Py_BuildValue((char *)"");
7257 }
7258 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj;
7260 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7261 wxString *arg2 = (wxString *) 0 ;
7262 bool temp2 = False ;
7263 PyObject * obj0 = 0 ;
7264 PyObject * obj1 = 0 ;
7265 char *kwnames[] = {
7266 (char *) "self",(char *) "facename", NULL
7267 };
7268
7269 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
7270 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7271 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7272 {
7273 arg2 = wxString_in_helper(obj1);
7274 if (arg2 == NULL) SWIG_fail;
7275 temp2 = True;
7276 }
7277 if (arg1) (arg1)->facename = *arg2;
7278
7279 Py_INCREF(Py_None); resultobj = Py_None;
7280 {
7281 if (temp2)
7282 delete arg2;
7283 }
7284 return resultobj;
7285 fail:
7286 {
7287 if (temp2)
7288 delete arg2;
7289 }
7290 return NULL;
7291 }
7292
7293
7294 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7295 PyObject *resultobj;
7296 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7297 wxString *result;
7298 PyObject * obj0 = 0 ;
7299 char *kwnames[] = {
7300 (char *) "self", NULL
7301 };
7302
7303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
7304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7306 result = (wxString *)& ((arg1)->facename);
7307
7308 {
7309 #if wxUSE_UNICODE
7310 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7311 #else
7312 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7313 #endif
7314 }
7315 return resultobj;
7316 fail:
7317 return NULL;
7318 }
7319
7320
7321 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
7322 PyObject *resultobj;
7323 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7324 int arg2 ;
7325 PyObject * obj0 = 0 ;
7326 PyObject * obj1 = 0 ;
7327 char *kwnames[] = {
7328 (char *) "self",(char *) "encoding", NULL
7329 };
7330
7331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
7332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7334 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7335 if (PyErr_Occurred()) SWIG_fail;
7336 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
7337
7338 Py_INCREF(Py_None); resultobj = Py_None;
7339 return resultobj;
7340 fail:
7341 return NULL;
7342 }
7343
7344
7345 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
7346 PyObject *resultobj;
7347 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7348 int result;
7349 PyObject * obj0 = 0 ;
7350 char *kwnames[] = {
7351 (char *) "self", NULL
7352 };
7353
7354 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
7355 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7356 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7357 result = (int) ((arg1)->encoding);
7358
7359 resultobj = SWIG_FromInt((int)result);
7360 return resultobj;
7361 fail:
7362 return NULL;
7363 }
7364
7365
7366 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7367 PyObject *resultobj;
7368 wxNativeEncodingInfo *result;
7369 char *kwnames[] = {
7370 NULL
7371 };
7372
7373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
7374 {
7375 PyThreadState* __tstate = wxPyBeginAllowThreads();
7376 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
7377
7378 wxPyEndAllowThreads(__tstate);
7379 if (PyErr_Occurred()) SWIG_fail;
7380 }
7381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
7382 return resultobj;
7383 fail:
7384 return NULL;
7385 }
7386
7387
7388 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7389 PyObject *resultobj;
7390 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7391 PyObject * obj0 = 0 ;
7392 char *kwnames[] = {
7393 (char *) "self", NULL
7394 };
7395
7396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
7397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7399 {
7400 PyThreadState* __tstate = wxPyBeginAllowThreads();
7401 delete arg1;
7402
7403 wxPyEndAllowThreads(__tstate);
7404 if (PyErr_Occurred()) SWIG_fail;
7405 }
7406 Py_INCREF(Py_None); resultobj = Py_None;
7407 return resultobj;
7408 fail:
7409 return NULL;
7410 }
7411
7412
7413 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
7414 PyObject *resultobj;
7415 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7416 wxString *arg2 = 0 ;
7417 bool result;
7418 bool temp2 = False ;
7419 PyObject * obj0 = 0 ;
7420 PyObject * obj1 = 0 ;
7421 char *kwnames[] = {
7422 (char *) "self",(char *) "s", NULL
7423 };
7424
7425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
7426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7428 {
7429 arg2 = wxString_in_helper(obj1);
7430 if (arg2 == NULL) SWIG_fail;
7431 temp2 = True;
7432 }
7433 {
7434 PyThreadState* __tstate = wxPyBeginAllowThreads();
7435 result = (bool)(arg1)->FromString((wxString const &)*arg2);
7436
7437 wxPyEndAllowThreads(__tstate);
7438 if (PyErr_Occurred()) SWIG_fail;
7439 }
7440 {
7441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7442 }
7443 {
7444 if (temp2)
7445 delete arg2;
7446 }
7447 return resultobj;
7448 fail:
7449 {
7450 if (temp2)
7451 delete arg2;
7452 }
7453 return NULL;
7454 }
7455
7456
7457 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj;
7459 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
7460 wxString result;
7461 PyObject * obj0 = 0 ;
7462 char *kwnames[] = {
7463 (char *) "self", NULL
7464 };
7465
7466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
7467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7469 {
7470 PyThreadState* __tstate = wxPyBeginAllowThreads();
7471 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
7472
7473 wxPyEndAllowThreads(__tstate);
7474 if (PyErr_Occurred()) SWIG_fail;
7475 }
7476 {
7477 #if wxUSE_UNICODE
7478 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7479 #else
7480 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7481 #endif
7482 }
7483 return resultobj;
7484 fail:
7485 return NULL;
7486 }
7487
7488
7489 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
7490 PyObject *obj;
7491 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7492 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
7493 Py_INCREF(obj);
7494 return Py_BuildValue((char *)"");
7495 }
7496 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7497 PyObject *resultobj;
7498 int arg1 ;
7499 wxNativeEncodingInfo *result;
7500 PyObject * obj0 = 0 ;
7501 char *kwnames[] = {
7502 (char *) "encoding", NULL
7503 };
7504
7505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
7506 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7507 if (PyErr_Occurred()) SWIG_fail;
7508 {
7509 PyThreadState* __tstate = wxPyBeginAllowThreads();
7510 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
7511
7512 wxPyEndAllowThreads(__tstate);
7513 if (PyErr_Occurred()) SWIG_fail;
7514 }
7515 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
7516 return resultobj;
7517 fail:
7518 return NULL;
7519 }
7520
7521
7522 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7523 PyObject *resultobj;
7524 wxNativeEncodingInfo *arg1 = 0 ;
7525 bool result;
7526 PyObject * obj0 = 0 ;
7527 char *kwnames[] = {
7528 (char *) "info", NULL
7529 };
7530
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
7532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
7533 SWIG_POINTER_EXCEPTION | 0)) == -1)
7534 SWIG_fail;
7535 if (arg1 == NULL) {
7536 PyErr_SetString(PyExc_TypeError,"null reference");
7537 SWIG_fail;
7538 }
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
7542
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 {
7547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7548 }
7549 return resultobj;
7550 fail:
7551 return NULL;
7552 }
7553
7554
7555 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7556 PyObject *resultobj;
7557 wxFontMapper *result;
7558 char *kwnames[] = {
7559 NULL
7560 };
7561
7562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7563 {
7564 PyThreadState* __tstate = wxPyBeginAllowThreads();
7565 result = (wxFontMapper *)new wxFontMapper();
7566
7567 wxPyEndAllowThreads(__tstate);
7568 if (PyErr_Occurred()) SWIG_fail;
7569 }
7570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7571 return resultobj;
7572 fail:
7573 return NULL;
7574 }
7575
7576
7577 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7578 PyObject *resultobj;
7579 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7580 PyObject * obj0 = 0 ;
7581 char *kwnames[] = {
7582 (char *) "self", NULL
7583 };
7584
7585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7588 {
7589 PyThreadState* __tstate = wxPyBeginAllowThreads();
7590 delete arg1;
7591
7592 wxPyEndAllowThreads(__tstate);
7593 if (PyErr_Occurred()) SWIG_fail;
7594 }
7595 Py_INCREF(Py_None); resultobj = Py_None;
7596 return resultobj;
7597 fail:
7598 return NULL;
7599 }
7600
7601
7602 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7603 PyObject *resultobj;
7604 wxFontMapper *result;
7605 char *kwnames[] = {
7606 NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7610 {
7611 PyThreadState* __tstate = wxPyBeginAllowThreads();
7612 result = (wxFontMapper *)wxFontMapper::Get();
7613
7614 wxPyEndAllowThreads(__tstate);
7615 if (PyErr_Occurred()) SWIG_fail;
7616 }
7617 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7618 return resultobj;
7619 fail:
7620 return NULL;
7621 }
7622
7623
7624 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7625 PyObject *resultobj;
7626 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7627 wxFontMapper *result;
7628 PyObject * obj0 = 0 ;
7629 char *kwnames[] = {
7630 (char *) "mapper", NULL
7631 };
7632
7633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7651 PyObject *resultobj;
7652 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7653 wxString *arg2 = 0 ;
7654 bool arg3 = (bool) True ;
7655 int result;
7656 bool temp2 = False ;
7657 PyObject * obj0 = 0 ;
7658 PyObject * obj1 = 0 ;
7659 PyObject * obj2 = 0 ;
7660 char *kwnames[] = {
7661 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7662 };
7663
7664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7667 {
7668 arg2 = wxString_in_helper(obj1);
7669 if (arg2 == NULL) SWIG_fail;
7670 temp2 = True;
7671 }
7672 if (obj2) {
7673 arg3 = (bool) SWIG_AsBool(obj2);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 {
7677 PyThreadState* __tstate = wxPyBeginAllowThreads();
7678 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7679
7680 wxPyEndAllowThreads(__tstate);
7681 if (PyErr_Occurred()) SWIG_fail;
7682 }
7683 resultobj = SWIG_FromInt((int)result);
7684 {
7685 if (temp2)
7686 delete arg2;
7687 }
7688 return resultobj;
7689 fail:
7690 {
7691 if (temp2)
7692 delete arg2;
7693 }
7694 return NULL;
7695 }
7696
7697
7698 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7699 PyObject *resultobj;
7700 size_t result;
7701 char *kwnames[] = {
7702 NULL
7703 };
7704
7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7706 {
7707 PyThreadState* __tstate = wxPyBeginAllowThreads();
7708 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7709
7710 wxPyEndAllowThreads(__tstate);
7711 if (PyErr_Occurred()) SWIG_fail;
7712 }
7713 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7714 return resultobj;
7715 fail:
7716 return NULL;
7717 }
7718
7719
7720 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7721 PyObject *resultobj;
7722 size_t arg1 ;
7723 int result;
7724 PyObject * obj0 = 0 ;
7725 char *kwnames[] = {
7726 (char *) "n", NULL
7727 };
7728
7729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7730 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7731 if (PyErr_Occurred()) SWIG_fail;
7732 {
7733 PyThreadState* __tstate = wxPyBeginAllowThreads();
7734 result = (int)wxFontMapper::GetEncoding(arg1);
7735
7736 wxPyEndAllowThreads(__tstate);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 resultobj = SWIG_FromInt((int)result);
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj;
7748 int arg1 ;
7749 wxString result;
7750 PyObject * obj0 = 0 ;
7751 char *kwnames[] = {
7752 (char *) "encoding", NULL
7753 };
7754
7755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7756 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 {
7759 PyThreadState* __tstate = wxPyBeginAllowThreads();
7760 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7761
7762 wxPyEndAllowThreads(__tstate);
7763 if (PyErr_Occurred()) SWIG_fail;
7764 }
7765 {
7766 #if wxUSE_UNICODE
7767 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7768 #else
7769 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7770 #endif
7771 }
7772 return resultobj;
7773 fail:
7774 return NULL;
7775 }
7776
7777
7778 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7779 PyObject *resultobj;
7780 int arg1 ;
7781 wxString result;
7782 PyObject * obj0 = 0 ;
7783 char *kwnames[] = {
7784 (char *) "encoding", NULL
7785 };
7786
7787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7788 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7789 if (PyErr_Occurred()) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 {
7798 #if wxUSE_UNICODE
7799 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7800 #else
7801 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7802 #endif
7803 }
7804 return resultobj;
7805 fail:
7806 return NULL;
7807 }
7808
7809
7810 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7811 PyObject *resultobj;
7812 wxString *arg1 = 0 ;
7813 int result;
7814 bool temp1 = False ;
7815 PyObject * obj0 = 0 ;
7816 char *kwnames[] = {
7817 (char *) "name", NULL
7818 };
7819
7820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7821 {
7822 arg1 = wxString_in_helper(obj0);
7823 if (arg1 == NULL) SWIG_fail;
7824 temp1 = True;
7825 }
7826 {
7827 PyThreadState* __tstate = wxPyBeginAllowThreads();
7828 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7829
7830 wxPyEndAllowThreads(__tstate);
7831 if (PyErr_Occurred()) SWIG_fail;
7832 }
7833 resultobj = SWIG_FromInt((int)result);
7834 {
7835 if (temp1)
7836 delete arg1;
7837 }
7838 return resultobj;
7839 fail:
7840 {
7841 if (temp1)
7842 delete arg1;
7843 }
7844 return NULL;
7845 }
7846
7847
7848 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7849 PyObject *resultobj;
7850 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7851 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7852 PyObject * obj0 = 0 ;
7853 PyObject * obj1 = 0 ;
7854 char *kwnames[] = {
7855 (char *) "self",(char *) "config", NULL
7856 };
7857
7858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7861 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7863 {
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 (arg1)->SetConfig(arg2);
7866
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 Py_INCREF(Py_None); resultobj = Py_None;
7871 return resultobj;
7872 fail:
7873 return NULL;
7874 }
7875
7876
7877 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7878 PyObject *resultobj;
7879 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7880 wxString *arg2 = 0 ;
7881 bool temp2 = False ;
7882 PyObject * obj0 = 0 ;
7883 PyObject * obj1 = 0 ;
7884 char *kwnames[] = {
7885 (char *) "self",(char *) "prefix", NULL
7886 };
7887
7888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7891 {
7892 arg2 = wxString_in_helper(obj1);
7893 if (arg2 == NULL) SWIG_fail;
7894 temp2 = True;
7895 }
7896 {
7897 PyThreadState* __tstate = wxPyBeginAllowThreads();
7898 (arg1)->SetConfigPath((wxString const &)*arg2);
7899
7900 wxPyEndAllowThreads(__tstate);
7901 if (PyErr_Occurred()) SWIG_fail;
7902 }
7903 Py_INCREF(Py_None); resultobj = Py_None;
7904 {
7905 if (temp2)
7906 delete arg2;
7907 }
7908 return resultobj;
7909 fail:
7910 {
7911 if (temp2)
7912 delete arg2;
7913 }
7914 return NULL;
7915 }
7916
7917
7918 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj;
7920 wxString result;
7921 char *kwnames[] = {
7922 NULL
7923 };
7924
7925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 result = wxFontMapper::GetDefaultConfigPath();
7929
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 {
7934 #if wxUSE_UNICODE
7935 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7936 #else
7937 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7938 #endif
7939 }
7940 return resultobj;
7941 fail:
7942 return NULL;
7943 }
7944
7945
7946 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj;
7948 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7949 int arg2 ;
7950 wxString const &arg3_defvalue = wxPyEmptyString ;
7951 wxString *arg3 = (wxString *) &arg3_defvalue ;
7952 bool arg4 = (bool) True ;
7953 PyObject *result;
7954 bool temp3 = False ;
7955 PyObject * obj0 = 0 ;
7956 PyObject * obj1 = 0 ;
7957 PyObject * obj2 = 0 ;
7958 PyObject * obj3 = 0 ;
7959 char *kwnames[] = {
7960 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7961 };
7962
7963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7966 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7967 if (PyErr_Occurred()) SWIG_fail;
7968 if (obj2) {
7969 {
7970 arg3 = wxString_in_helper(obj2);
7971 if (arg3 == NULL) SWIG_fail;
7972 temp3 = True;
7973 }
7974 }
7975 if (obj3) {
7976 arg4 = (bool) SWIG_AsBool(obj3);
7977 if (PyErr_Occurred()) SWIG_fail;
7978 }
7979 {
7980 PyThreadState* __tstate = wxPyBeginAllowThreads();
7981 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7982
7983 wxPyEndAllowThreads(__tstate);
7984 if (PyErr_Occurred()) SWIG_fail;
7985 }
7986 resultobj = result;
7987 {
7988 if (temp3)
7989 delete arg3;
7990 }
7991 return resultobj;
7992 fail:
7993 {
7994 if (temp3)
7995 delete arg3;
7996 }
7997 return NULL;
7998 }
7999
8000
8001 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
8002 PyObject *resultobj;
8003 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8004 int arg2 ;
8005 wxString const &arg3_defvalue = wxPyEmptyString ;
8006 wxString *arg3 = (wxString *) &arg3_defvalue ;
8007 bool result;
8008 bool temp3 = False ;
8009 PyObject * obj0 = 0 ;
8010 PyObject * obj1 = 0 ;
8011 PyObject * obj2 = 0 ;
8012 char *kwnames[] = {
8013 (char *) "self",(char *) "encoding",(char *) "facename", NULL
8014 };
8015
8016 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
8017 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8018 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8019 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8020 if (PyErr_Occurred()) SWIG_fail;
8021 if (obj2) {
8022 {
8023 arg3 = wxString_in_helper(obj2);
8024 if (arg3 == NULL) SWIG_fail;
8025 temp3 = True;
8026 }
8027 }
8028 {
8029 PyThreadState* __tstate = wxPyBeginAllowThreads();
8030 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
8031
8032 wxPyEndAllowThreads(__tstate);
8033 if (PyErr_Occurred()) SWIG_fail;
8034 }
8035 {
8036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8037 }
8038 {
8039 if (temp3)
8040 delete arg3;
8041 }
8042 return resultobj;
8043 fail:
8044 {
8045 if (temp3)
8046 delete arg3;
8047 }
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8055 wxWindow *arg2 = (wxWindow *) 0 ;
8056 PyObject * obj0 = 0 ;
8057 PyObject * obj1 = 0 ;
8058 char *kwnames[] = {
8059 (char *) "self",(char *) "parent", NULL
8060 };
8061
8062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
8063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
8066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8067 {
8068 PyThreadState* __tstate = wxPyBeginAllowThreads();
8069 (arg1)->SetDialogParent(arg2);
8070
8071 wxPyEndAllowThreads(__tstate);
8072 if (PyErr_Occurred()) SWIG_fail;
8073 }
8074 Py_INCREF(Py_None); resultobj = Py_None;
8075 return resultobj;
8076 fail:
8077 return NULL;
8078 }
8079
8080
8081 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
8082 PyObject *resultobj;
8083 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
8084 wxString *arg2 = 0 ;
8085 bool temp2 = False ;
8086 PyObject * obj0 = 0 ;
8087 PyObject * obj1 = 0 ;
8088 char *kwnames[] = {
8089 (char *) "self",(char *) "title", NULL
8090 };
8091
8092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
8093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
8094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8095 {
8096 arg2 = wxString_in_helper(obj1);
8097 if (arg2 == NULL) SWIG_fail;
8098 temp2 = True;
8099 }
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 (arg1)->SetDialogTitle((wxString const &)*arg2);
8103
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 Py_INCREF(Py_None); resultobj = Py_None;
8108 {
8109 if (temp2)
8110 delete arg2;
8111 }
8112 return resultobj;
8113 fail:
8114 {
8115 if (temp2)
8116 delete arg2;
8117 }
8118 return NULL;
8119 }
8120
8121
8122 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
8123 PyObject *obj;
8124 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8125 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
8126 Py_INCREF(obj);
8127 return Py_BuildValue((char *)"");
8128 }
8129 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8130 PyObject *resultobj;
8131 int arg1 ;
8132 int arg2 ;
8133 int arg3 ;
8134 int arg4 ;
8135 bool arg5 = (bool) False ;
8136 wxString const &arg6_defvalue = wxPyEmptyString ;
8137 wxString *arg6 = (wxString *) &arg6_defvalue ;
8138 int arg7 = (int) wxFONTENCODING_DEFAULT ;
8139 wxFont *result;
8140 bool temp6 = False ;
8141 PyObject * obj0 = 0 ;
8142 PyObject * obj1 = 0 ;
8143 PyObject * obj2 = 0 ;
8144 PyObject * obj3 = 0 ;
8145 PyObject * obj4 = 0 ;
8146 PyObject * obj5 = 0 ;
8147 PyObject * obj6 = 0 ;
8148 char *kwnames[] = {
8149 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
8150 };
8151
8152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
8153 arg1 = (int) SWIG_AsInt(obj0);
8154 if (PyErr_Occurred()) SWIG_fail;
8155 arg2 = (int) SWIG_AsInt(obj1);
8156 if (PyErr_Occurred()) SWIG_fail;
8157 arg3 = (int) SWIG_AsInt(obj2);
8158 if (PyErr_Occurred()) SWIG_fail;
8159 arg4 = (int) SWIG_AsInt(obj3);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 if (obj4) {
8162 arg5 = (bool) SWIG_AsBool(obj4);
8163 if (PyErr_Occurred()) SWIG_fail;
8164 }
8165 if (obj5) {
8166 {
8167 arg6 = wxString_in_helper(obj5);
8168 if (arg6 == NULL) SWIG_fail;
8169 temp6 = True;
8170 }
8171 }
8172 if (obj6) {
8173 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
8174 if (PyErr_Occurred()) SWIG_fail;
8175 }
8176 {
8177 if (!wxPyCheckForApp()) SWIG_fail;
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8185 {
8186 if (temp6)
8187 delete arg6;
8188 }
8189 return resultobj;
8190 fail:
8191 {
8192 if (temp6)
8193 delete arg6;
8194 }
8195 return NULL;
8196 }
8197
8198
8199 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
8200 PyObject *resultobj;
8201 wxFont *arg1 = (wxFont *) 0 ;
8202 PyObject * obj0 = 0 ;
8203 char *kwnames[] = {
8204 (char *) "self", NULL
8205 };
8206
8207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
8208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8210 {
8211 PyThreadState* __tstate = wxPyBeginAllowThreads();
8212 delete arg1;
8213
8214 wxPyEndAllowThreads(__tstate);
8215 if (PyErr_Occurred()) SWIG_fail;
8216 }
8217 Py_INCREF(Py_None); resultobj = Py_None;
8218 return resultobj;
8219 fail:
8220 return NULL;
8221 }
8222
8223
8224 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8225 PyObject *resultobj;
8226 wxNativeFontInfo *arg1 = 0 ;
8227 wxFont *result;
8228 PyObject * obj0 = 0 ;
8229 char *kwnames[] = {
8230 (char *) "info", NULL
8231 };
8232
8233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
8234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
8235 SWIG_POINTER_EXCEPTION | 0)) == -1)
8236 SWIG_fail;
8237 if (arg1 == NULL) {
8238 PyErr_SetString(PyExc_TypeError,"null reference");
8239 SWIG_fail;
8240 }
8241 {
8242 if (!wxPyCheckForApp()) SWIG_fail;
8243 PyThreadState* __tstate = wxPyBeginAllowThreads();
8244 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
8245
8246 wxPyEndAllowThreads(__tstate);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
8257 PyObject *resultobj;
8258 wxString *arg1 = 0 ;
8259 wxFont *result;
8260 bool temp1 = False ;
8261 PyObject * obj0 = 0 ;
8262 char *kwnames[] = {
8263 (char *) "info", NULL
8264 };
8265
8266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
8267 {
8268 arg1 = wxString_in_helper(obj0);
8269 if (arg1 == NULL) SWIG_fail;
8270 temp1 = True;
8271 }
8272 {
8273 if (!wxPyCheckForApp()) SWIG_fail;
8274 PyThreadState* __tstate = wxPyBeginAllowThreads();
8275 result = (wxFont *)new_wxFont((wxString const &)*arg1);
8276
8277 wxPyEndAllowThreads(__tstate);
8278 if (PyErr_Occurred()) SWIG_fail;
8279 }
8280 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8281 {
8282 if (temp1)
8283 delete arg1;
8284 }
8285 return resultobj;
8286 fail:
8287 {
8288 if (temp1)
8289 delete arg1;
8290 }
8291 return NULL;
8292 }
8293
8294
8295 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
8296 PyObject *resultobj;
8297 int arg1 ;
8298 int arg2 ;
8299 int arg3 = (int) wxFONTFLAG_DEFAULT ;
8300 wxString const &arg4_defvalue = wxPyEmptyString ;
8301 wxString *arg4 = (wxString *) &arg4_defvalue ;
8302 int arg5 = (int) wxFONTENCODING_DEFAULT ;
8303 wxFont *result;
8304 bool temp4 = False ;
8305 PyObject * obj0 = 0 ;
8306 PyObject * obj1 = 0 ;
8307 PyObject * obj2 = 0 ;
8308 PyObject * obj3 = 0 ;
8309 PyObject * obj4 = 0 ;
8310 char *kwnames[] = {
8311 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
8312 };
8313
8314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
8315 arg1 = (int) SWIG_AsInt(obj0);
8316 if (PyErr_Occurred()) SWIG_fail;
8317 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
8318 if (PyErr_Occurred()) SWIG_fail;
8319 if (obj2) {
8320 arg3 = (int) SWIG_AsInt(obj2);
8321 if (PyErr_Occurred()) SWIG_fail;
8322 }
8323 if (obj3) {
8324 {
8325 arg4 = wxString_in_helper(obj3);
8326 if (arg4 == NULL) SWIG_fail;
8327 temp4 = True;
8328 }
8329 }
8330 if (obj4) {
8331 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 {
8335 if (!wxPyCheckForApp()) SWIG_fail;
8336 PyThreadState* __tstate = wxPyBeginAllowThreads();
8337 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
8338
8339 wxPyEndAllowThreads(__tstate);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
8343 {
8344 if (temp4)
8345 delete arg4;
8346 }
8347 return resultobj;
8348 fail:
8349 {
8350 if (temp4)
8351 delete arg4;
8352 }
8353 return NULL;
8354 }
8355
8356
8357 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
8358 PyObject *resultobj;
8359 wxFont *arg1 = (wxFont *) 0 ;
8360 bool result;
8361 PyObject * obj0 = 0 ;
8362 char *kwnames[] = {
8363 (char *) "self", NULL
8364 };
8365
8366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
8367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8369 {
8370 PyThreadState* __tstate = wxPyBeginAllowThreads();
8371 result = (bool)((wxFont const *)arg1)->Ok();
8372
8373 wxPyEndAllowThreads(__tstate);
8374 if (PyErr_Occurred()) SWIG_fail;
8375 }
8376 {
8377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8378 }
8379 return resultobj;
8380 fail:
8381 return NULL;
8382 }
8383
8384
8385 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
8386 PyObject *resultobj;
8387 wxFont *arg1 = (wxFont *) 0 ;
8388 wxFont *arg2 = (wxFont *) 0 ;
8389 bool result;
8390 PyObject * obj0 = 0 ;
8391 PyObject * obj1 = 0 ;
8392 char *kwnames[] = {
8393 (char *) "self",(char *) "other", NULL
8394 };
8395
8396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
8397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8399 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8401 {
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
8404
8405 wxPyEndAllowThreads(__tstate);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 {
8409 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8410 }
8411 return resultobj;
8412 fail:
8413 return NULL;
8414 }
8415
8416
8417 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
8418 PyObject *resultobj;
8419 wxFont *arg1 = (wxFont *) 0 ;
8420 wxFont *arg2 = (wxFont *) 0 ;
8421 bool result;
8422 PyObject * obj0 = 0 ;
8423 PyObject * obj1 = 0 ;
8424 char *kwnames[] = {
8425 (char *) "self",(char *) "other", NULL
8426 };
8427
8428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
8429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8431 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
8432 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8433 {
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
8436
8437 wxPyEndAllowThreads(__tstate);
8438 if (PyErr_Occurred()) SWIG_fail;
8439 }
8440 {
8441 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8442 }
8443 return resultobj;
8444 fail:
8445 return NULL;
8446 }
8447
8448
8449 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8450 PyObject *resultobj;
8451 wxFont *arg1 = (wxFont *) 0 ;
8452 int result;
8453 PyObject * obj0 = 0 ;
8454 char *kwnames[] = {
8455 (char *) "self", NULL
8456 };
8457
8458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
8459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8461 {
8462 PyThreadState* __tstate = wxPyBeginAllowThreads();
8463 result = (int)((wxFont const *)arg1)->GetPointSize();
8464
8465 wxPyEndAllowThreads(__tstate);
8466 if (PyErr_Occurred()) SWIG_fail;
8467 }
8468 resultobj = SWIG_FromInt((int)result);
8469 return resultobj;
8470 fail:
8471 return NULL;
8472 }
8473
8474
8475 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8476 PyObject *resultobj;
8477 wxFont *arg1 = (wxFont *) 0 ;
8478 int result;
8479 PyObject * obj0 = 0 ;
8480 char *kwnames[] = {
8481 (char *) "self", NULL
8482 };
8483
8484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
8485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8487 {
8488 PyThreadState* __tstate = wxPyBeginAllowThreads();
8489 result = (int)((wxFont const *)arg1)->GetFamily();
8490
8491 wxPyEndAllowThreads(__tstate);
8492 if (PyErr_Occurred()) SWIG_fail;
8493 }
8494 resultobj = SWIG_FromInt((int)result);
8495 return resultobj;
8496 fail:
8497 return NULL;
8498 }
8499
8500
8501 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8502 PyObject *resultobj;
8503 wxFont *arg1 = (wxFont *) 0 ;
8504 int result;
8505 PyObject * obj0 = 0 ;
8506 char *kwnames[] = {
8507 (char *) "self", NULL
8508 };
8509
8510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
8511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8513 {
8514 PyThreadState* __tstate = wxPyBeginAllowThreads();
8515 result = (int)((wxFont const *)arg1)->GetStyle();
8516
8517 wxPyEndAllowThreads(__tstate);
8518 if (PyErr_Occurred()) SWIG_fail;
8519 }
8520 resultobj = SWIG_FromInt((int)result);
8521 return resultobj;
8522 fail:
8523 return NULL;
8524 }
8525
8526
8527 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj;
8529 wxFont *arg1 = (wxFont *) 0 ;
8530 int result;
8531 PyObject * obj0 = 0 ;
8532 char *kwnames[] = {
8533 (char *) "self", NULL
8534 };
8535
8536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
8537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8539 {
8540 PyThreadState* __tstate = wxPyBeginAllowThreads();
8541 result = (int)((wxFont const *)arg1)->GetWeight();
8542
8543 wxPyEndAllowThreads(__tstate);
8544 if (PyErr_Occurred()) SWIG_fail;
8545 }
8546 resultobj = SWIG_FromInt((int)result);
8547 return resultobj;
8548 fail:
8549 return NULL;
8550 }
8551
8552
8553 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8554 PyObject *resultobj;
8555 wxFont *arg1 = (wxFont *) 0 ;
8556 bool result;
8557 PyObject * obj0 = 0 ;
8558 char *kwnames[] = {
8559 (char *) "self", NULL
8560 };
8561
8562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8565 {
8566 PyThreadState* __tstate = wxPyBeginAllowThreads();
8567 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8568
8569 wxPyEndAllowThreads(__tstate);
8570 if (PyErr_Occurred()) SWIG_fail;
8571 }
8572 {
8573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8574 }
8575 return resultobj;
8576 fail:
8577 return NULL;
8578 }
8579
8580
8581 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8582 PyObject *resultobj;
8583 wxFont *arg1 = (wxFont *) 0 ;
8584 wxString result;
8585 PyObject * obj0 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "self", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8593 {
8594 PyThreadState* __tstate = wxPyBeginAllowThreads();
8595 result = ((wxFont const *)arg1)->GetFaceName();
8596
8597 wxPyEndAllowThreads(__tstate);
8598 if (PyErr_Occurred()) SWIG_fail;
8599 }
8600 {
8601 #if wxUSE_UNICODE
8602 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8603 #else
8604 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8605 #endif
8606 }
8607 return resultobj;
8608 fail:
8609 return NULL;
8610 }
8611
8612
8613 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8614 PyObject *resultobj;
8615 wxFont *arg1 = (wxFont *) 0 ;
8616 int result;
8617 PyObject * obj0 = 0 ;
8618 char *kwnames[] = {
8619 (char *) "self", NULL
8620 };
8621
8622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8625 {
8626 PyThreadState* __tstate = wxPyBeginAllowThreads();
8627 result = (int)((wxFont const *)arg1)->GetEncoding();
8628
8629 wxPyEndAllowThreads(__tstate);
8630 if (PyErr_Occurred()) SWIG_fail;
8631 }
8632 resultobj = SWIG_FromInt((int)result);
8633 return resultobj;
8634 fail:
8635 return NULL;
8636 }
8637
8638
8639 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj;
8641 wxFont *arg1 = (wxFont *) 0 ;
8642 wxNativeFontInfo *result;
8643 PyObject * obj0 = 0 ;
8644 char *kwnames[] = {
8645 (char *) "self", NULL
8646 };
8647
8648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8649 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8650 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8651 {
8652 PyThreadState* __tstate = wxPyBeginAllowThreads();
8653 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8654
8655 wxPyEndAllowThreads(__tstate);
8656 if (PyErr_Occurred()) SWIG_fail;
8657 }
8658 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8659 return resultobj;
8660 fail:
8661 return NULL;
8662 }
8663
8664
8665 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8666 PyObject *resultobj;
8667 wxFont *arg1 = (wxFont *) 0 ;
8668 bool result;
8669 PyObject * obj0 = 0 ;
8670 char *kwnames[] = {
8671 (char *) "self", NULL
8672 };
8673
8674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8677 {
8678 PyThreadState* __tstate = wxPyBeginAllowThreads();
8679 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8680
8681 wxPyEndAllowThreads(__tstate);
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 {
8685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8686 }
8687 return resultobj;
8688 fail:
8689 return NULL;
8690 }
8691
8692
8693 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8694 PyObject *resultobj;
8695 wxFont *arg1 = (wxFont *) 0 ;
8696 wxString result;
8697 PyObject * obj0 = 0 ;
8698 char *kwnames[] = {
8699 (char *) "self", NULL
8700 };
8701
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8705 {
8706 PyThreadState* __tstate = wxPyBeginAllowThreads();
8707 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8708
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 {
8713 #if wxUSE_UNICODE
8714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8715 #else
8716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8717 #endif
8718 }
8719 return resultobj;
8720 fail:
8721 return NULL;
8722 }
8723
8724
8725 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8726 PyObject *resultobj;
8727 wxFont *arg1 = (wxFont *) 0 ;
8728 wxString result;
8729 PyObject * obj0 = 0 ;
8730 char *kwnames[] = {
8731 (char *) "self", NULL
8732 };
8733
8734 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8735 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8736 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8740
8741 wxPyEndAllowThreads(__tstate);
8742 if (PyErr_Occurred()) SWIG_fail;
8743 }
8744 {
8745 #if wxUSE_UNICODE
8746 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8747 #else
8748 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8749 #endif
8750 }
8751 return resultobj;
8752 fail:
8753 return NULL;
8754 }
8755
8756
8757 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8758 PyObject *resultobj;
8759 wxFont *arg1 = (wxFont *) 0 ;
8760 int arg2 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 char *kwnames[] = {
8764 (char *) "self",(char *) "pointSize", NULL
8765 };
8766
8767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8770 arg2 = (int) SWIG_AsInt(obj1);
8771 if (PyErr_Occurred()) SWIG_fail;
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 (arg1)->SetPointSize(arg2);
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 Py_INCREF(Py_None); resultobj = Py_None;
8780 return resultobj;
8781 fail:
8782 return NULL;
8783 }
8784
8785
8786 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8787 PyObject *resultobj;
8788 wxFont *arg1 = (wxFont *) 0 ;
8789 int arg2 ;
8790 PyObject * obj0 = 0 ;
8791 PyObject * obj1 = 0 ;
8792 char *kwnames[] = {
8793 (char *) "self",(char *) "family", NULL
8794 };
8795
8796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8799 arg2 = (int) SWIG_AsInt(obj1);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 {
8802 PyThreadState* __tstate = wxPyBeginAllowThreads();
8803 (arg1)->SetFamily(arg2);
8804
8805 wxPyEndAllowThreads(__tstate);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 }
8808 Py_INCREF(Py_None); resultobj = Py_None;
8809 return resultobj;
8810 fail:
8811 return NULL;
8812 }
8813
8814
8815 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj;
8817 wxFont *arg1 = (wxFont *) 0 ;
8818 int arg2 ;
8819 PyObject * obj0 = 0 ;
8820 PyObject * obj1 = 0 ;
8821 char *kwnames[] = {
8822 (char *) "self",(char *) "style", NULL
8823 };
8824
8825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8828 arg2 = (int) SWIG_AsInt(obj1);
8829 if (PyErr_Occurred()) SWIG_fail;
8830 {
8831 PyThreadState* __tstate = wxPyBeginAllowThreads();
8832 (arg1)->SetStyle(arg2);
8833
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 Py_INCREF(Py_None); resultobj = Py_None;
8838 return resultobj;
8839 fail:
8840 return NULL;
8841 }
8842
8843
8844 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8845 PyObject *resultobj;
8846 wxFont *arg1 = (wxFont *) 0 ;
8847 int arg2 ;
8848 PyObject * obj0 = 0 ;
8849 PyObject * obj1 = 0 ;
8850 char *kwnames[] = {
8851 (char *) "self",(char *) "weight", NULL
8852 };
8853
8854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8857 arg2 = (int) SWIG_AsInt(obj1);
8858 if (PyErr_Occurred()) SWIG_fail;
8859 {
8860 PyThreadState* __tstate = wxPyBeginAllowThreads();
8861 (arg1)->SetWeight(arg2);
8862
8863 wxPyEndAllowThreads(__tstate);
8864 if (PyErr_Occurred()) SWIG_fail;
8865 }
8866 Py_INCREF(Py_None); resultobj = Py_None;
8867 return resultobj;
8868 fail:
8869 return NULL;
8870 }
8871
8872
8873 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj;
8875 wxFont *arg1 = (wxFont *) 0 ;
8876 wxString *arg2 = 0 ;
8877 bool temp2 = False ;
8878 PyObject * obj0 = 0 ;
8879 PyObject * obj1 = 0 ;
8880 char *kwnames[] = {
8881 (char *) "self",(char *) "faceName", NULL
8882 };
8883
8884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8887 {
8888 arg2 = wxString_in_helper(obj1);
8889 if (arg2 == NULL) SWIG_fail;
8890 temp2 = True;
8891 }
8892 {
8893 PyThreadState* __tstate = wxPyBeginAllowThreads();
8894 (arg1)->SetFaceName((wxString const &)*arg2);
8895
8896 wxPyEndAllowThreads(__tstate);
8897 if (PyErr_Occurred()) SWIG_fail;
8898 }
8899 Py_INCREF(Py_None); resultobj = Py_None;
8900 {
8901 if (temp2)
8902 delete arg2;
8903 }
8904 return resultobj;
8905 fail:
8906 {
8907 if (temp2)
8908 delete arg2;
8909 }
8910 return NULL;
8911 }
8912
8913
8914 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8915 PyObject *resultobj;
8916 wxFont *arg1 = (wxFont *) 0 ;
8917 bool arg2 ;
8918 PyObject * obj0 = 0 ;
8919 PyObject * obj1 = 0 ;
8920 char *kwnames[] = {
8921 (char *) "self",(char *) "underlined", NULL
8922 };
8923
8924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8927 arg2 = (bool) SWIG_AsBool(obj1);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 {
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 (arg1)->SetUnderlined(arg2);
8932
8933 wxPyEndAllowThreads(__tstate);
8934 if (PyErr_Occurred()) SWIG_fail;
8935 }
8936 Py_INCREF(Py_None); resultobj = Py_None;
8937 return resultobj;
8938 fail:
8939 return NULL;
8940 }
8941
8942
8943 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8944 PyObject *resultobj;
8945 wxFont *arg1 = (wxFont *) 0 ;
8946 int arg2 ;
8947 PyObject * obj0 = 0 ;
8948 PyObject * obj1 = 0 ;
8949 char *kwnames[] = {
8950 (char *) "self",(char *) "encoding", NULL
8951 };
8952
8953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8956 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 (arg1)->SetEncoding((wxFontEncoding )arg2);
8961
8962 wxPyEndAllowThreads(__tstate);
8963 if (PyErr_Occurred()) SWIG_fail;
8964 }
8965 Py_INCREF(Py_None); resultobj = Py_None;
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8973 PyObject *resultobj;
8974 wxFont *arg1 = (wxFont *) 0 ;
8975 wxNativeFontInfo *arg2 = 0 ;
8976 PyObject * obj0 = 0 ;
8977 PyObject * obj1 = 0 ;
8978 char *kwnames[] = {
8979 (char *) "self",(char *) "info", NULL
8980 };
8981
8982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8985 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8986 SWIG_POINTER_EXCEPTION | 0)) == -1)
8987 SWIG_fail;
8988 if (arg2 == NULL) {
8989 PyErr_SetString(PyExc_TypeError,"null reference");
8990 SWIG_fail;
8991 }
8992 {
8993 PyThreadState* __tstate = wxPyBeginAllowThreads();
8994 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8995
8996 wxPyEndAllowThreads(__tstate);
8997 if (PyErr_Occurred()) SWIG_fail;
8998 }
8999 Py_INCREF(Py_None); resultobj = Py_None;
9000 return resultobj;
9001 fail:
9002 return NULL;
9003 }
9004
9005
9006 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
9007 PyObject *resultobj;
9008 wxFont *arg1 = (wxFont *) 0 ;
9009 wxString *arg2 = 0 ;
9010 bool temp2 = False ;
9011 PyObject * obj0 = 0 ;
9012 PyObject * obj1 = 0 ;
9013 char *kwnames[] = {
9014 (char *) "self",(char *) "info", NULL
9015 };
9016
9017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
9018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9020 {
9021 arg2 = wxString_in_helper(obj1);
9022 if (arg2 == NULL) SWIG_fail;
9023 temp2 = True;
9024 }
9025 {
9026 PyThreadState* __tstate = wxPyBeginAllowThreads();
9027 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
9028
9029 wxPyEndAllowThreads(__tstate);
9030 if (PyErr_Occurred()) SWIG_fail;
9031 }
9032 Py_INCREF(Py_None); resultobj = Py_None;
9033 {
9034 if (temp2)
9035 delete arg2;
9036 }
9037 return resultobj;
9038 fail:
9039 {
9040 if (temp2)
9041 delete arg2;
9042 }
9043 return NULL;
9044 }
9045
9046
9047 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
9048 PyObject *resultobj;
9049 wxFont *arg1 = (wxFont *) 0 ;
9050 wxString *arg2 = 0 ;
9051 bool temp2 = False ;
9052 PyObject * obj0 = 0 ;
9053 PyObject * obj1 = 0 ;
9054 char *kwnames[] = {
9055 (char *) "self",(char *) "info", NULL
9056 };
9057
9058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
9059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9061 {
9062 arg2 = wxString_in_helper(obj1);
9063 if (arg2 == NULL) SWIG_fail;
9064 temp2 = True;
9065 }
9066 {
9067 PyThreadState* __tstate = wxPyBeginAllowThreads();
9068 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
9069
9070 wxPyEndAllowThreads(__tstate);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 Py_INCREF(Py_None); resultobj = Py_None;
9074 {
9075 if (temp2)
9076 delete arg2;
9077 }
9078 return resultobj;
9079 fail:
9080 {
9081 if (temp2)
9082 delete arg2;
9083 }
9084 return NULL;
9085 }
9086
9087
9088 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
9089 PyObject *resultobj;
9090 wxFont *arg1 = (wxFont *) 0 ;
9091 wxString result;
9092 PyObject * obj0 = 0 ;
9093 char *kwnames[] = {
9094 (char *) "self", NULL
9095 };
9096
9097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
9098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9100 {
9101 PyThreadState* __tstate = wxPyBeginAllowThreads();
9102 result = ((wxFont const *)arg1)->GetFamilyString();
9103
9104 wxPyEndAllowThreads(__tstate);
9105 if (PyErr_Occurred()) SWIG_fail;
9106 }
9107 {
9108 #if wxUSE_UNICODE
9109 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9110 #else
9111 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9112 #endif
9113 }
9114 return resultobj;
9115 fail:
9116 return NULL;
9117 }
9118
9119
9120 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
9121 PyObject *resultobj;
9122 wxFont *arg1 = (wxFont *) 0 ;
9123 wxString result;
9124 PyObject * obj0 = 0 ;
9125 char *kwnames[] = {
9126 (char *) "self", NULL
9127 };
9128
9129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
9130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9132 {
9133 PyThreadState* __tstate = wxPyBeginAllowThreads();
9134 result = ((wxFont const *)arg1)->GetStyleString();
9135
9136 wxPyEndAllowThreads(__tstate);
9137 if (PyErr_Occurred()) SWIG_fail;
9138 }
9139 {
9140 #if wxUSE_UNICODE
9141 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9142 #else
9143 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9144 #endif
9145 }
9146 return resultobj;
9147 fail:
9148 return NULL;
9149 }
9150
9151
9152 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
9153 PyObject *resultobj;
9154 wxFont *arg1 = (wxFont *) 0 ;
9155 wxString result;
9156 PyObject * obj0 = 0 ;
9157 char *kwnames[] = {
9158 (char *) "self", NULL
9159 };
9160
9161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
9162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9164 {
9165 PyThreadState* __tstate = wxPyBeginAllowThreads();
9166 result = ((wxFont const *)arg1)->GetWeightString();
9167
9168 wxPyEndAllowThreads(__tstate);
9169 if (PyErr_Occurred()) SWIG_fail;
9170 }
9171 {
9172 #if wxUSE_UNICODE
9173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9174 #else
9175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9176 #endif
9177 }
9178 return resultobj;
9179 fail:
9180 return NULL;
9181 }
9182
9183
9184 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9185 PyObject *resultobj;
9186 wxFont *arg1 = (wxFont *) 0 ;
9187 bool arg2 = (bool) True ;
9188 PyObject * obj0 = 0 ;
9189 PyObject * obj1 = 0 ;
9190 char *kwnames[] = {
9191 (char *) "self",(char *) "no", NULL
9192 };
9193
9194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
9195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9197 if (obj1) {
9198 arg2 = (bool) SWIG_AsBool(obj1);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 {
9202 PyThreadState* __tstate = wxPyBeginAllowThreads();
9203 (arg1)->SetNoAntiAliasing(arg2);
9204
9205 wxPyEndAllowThreads(__tstate);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 Py_INCREF(Py_None); resultobj = Py_None;
9209 return resultobj;
9210 fail:
9211 return NULL;
9212 }
9213
9214
9215 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
9216 PyObject *resultobj;
9217 wxFont *arg1 = (wxFont *) 0 ;
9218 bool result;
9219 PyObject * obj0 = 0 ;
9220 char *kwnames[] = {
9221 (char *) "self", NULL
9222 };
9223
9224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
9225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
9226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9227 {
9228 PyThreadState* __tstate = wxPyBeginAllowThreads();
9229 result = (bool)(arg1)->GetNoAntiAliasing();
9230
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9236 }
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9244 PyObject *resultobj;
9245 int result;
9246 char *kwnames[] = {
9247 NULL
9248 };
9249
9250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
9251 {
9252 if (!wxPyCheckForApp()) SWIG_fail;
9253 PyThreadState* __tstate = wxPyBeginAllowThreads();
9254 result = (int)wxFont::GetDefaultEncoding();
9255
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 resultobj = SWIG_FromInt((int)result);
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9267 PyObject *resultobj;
9268 int arg1 ;
9269 PyObject * obj0 = 0 ;
9270 char *kwnames[] = {
9271 (char *) "encoding", NULL
9272 };
9273
9274 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
9275 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
9276 if (PyErr_Occurred()) SWIG_fail;
9277 {
9278 if (!wxPyCheckForApp()) SWIG_fail;
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
9281
9282 wxPyEndAllowThreads(__tstate);
9283 if (PyErr_Occurred()) SWIG_fail;
9284 }
9285 Py_INCREF(Py_None); resultobj = Py_None;
9286 return resultobj;
9287 fail:
9288 return NULL;
9289 }
9290
9291
9292 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
9293 PyObject *obj;
9294 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9295 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
9296 Py_INCREF(obj);
9297 return Py_BuildValue((char *)"");
9298 }
9299 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9300 PyObject *resultobj;
9301 wxPyFontEnumerator *result;
9302 char *kwnames[] = {
9303 NULL
9304 };
9305
9306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
9307 {
9308 if (!wxPyCheckForApp()) SWIG_fail;
9309 PyThreadState* __tstate = wxPyBeginAllowThreads();
9310 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
9311
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj;
9324 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9325 PyObject * obj0 = 0 ;
9326 char *kwnames[] = {
9327 (char *) "self", NULL
9328 };
9329
9330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
9331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9333 {
9334 PyThreadState* __tstate = wxPyBeginAllowThreads();
9335 delete arg1;
9336
9337 wxPyEndAllowThreads(__tstate);
9338 if (PyErr_Occurred()) SWIG_fail;
9339 }
9340 Py_INCREF(Py_None); resultobj = Py_None;
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj;
9349 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9350 PyObject *arg2 = (PyObject *) 0 ;
9351 PyObject *arg3 = (PyObject *) 0 ;
9352 bool arg4 ;
9353 PyObject * obj0 = 0 ;
9354 PyObject * obj1 = 0 ;
9355 PyObject * obj2 = 0 ;
9356 PyObject * obj3 = 0 ;
9357 char *kwnames[] = {
9358 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
9359 };
9360
9361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
9362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9364 arg2 = obj1;
9365 arg3 = obj2;
9366 arg4 = (bool) SWIG_AsBool(obj3);
9367 if (PyErr_Occurred()) SWIG_fail;
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
9371
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 Py_INCREF(Py_None); resultobj = Py_None;
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj;
9384 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9385 int arg2 = (int) wxFONTENCODING_SYSTEM ;
9386 bool arg3 = (bool) False ;
9387 bool result;
9388 PyObject * obj0 = 0 ;
9389 PyObject * obj1 = 0 ;
9390 PyObject * obj2 = 0 ;
9391 char *kwnames[] = {
9392 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
9393 };
9394
9395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
9396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9398 if (obj1) {
9399 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 if (obj2) {
9403 arg3 = (bool) SWIG_AsBool(obj2);
9404 if (PyErr_Occurred()) SWIG_fail;
9405 }
9406 {
9407 PyThreadState* __tstate = wxPyBeginAllowThreads();
9408 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
9409
9410 wxPyEndAllowThreads(__tstate);
9411 if (PyErr_Occurred()) SWIG_fail;
9412 }
9413 {
9414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9415 }
9416 return resultobj;
9417 fail:
9418 return NULL;
9419 }
9420
9421
9422 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9423 PyObject *resultobj;
9424 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9425 wxString const &arg2_defvalue = wxPyEmptyString ;
9426 wxString *arg2 = (wxString *) &arg2_defvalue ;
9427 bool result;
9428 bool temp2 = False ;
9429 PyObject * obj0 = 0 ;
9430 PyObject * obj1 = 0 ;
9431 char *kwnames[] = {
9432 (char *) "self",(char *) "facename", NULL
9433 };
9434
9435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
9436 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9438 if (obj1) {
9439 {
9440 arg2 = wxString_in_helper(obj1);
9441 if (arg2 == NULL) SWIG_fail;
9442 temp2 = True;
9443 }
9444 }
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 {
9453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9454 }
9455 {
9456 if (temp2)
9457 delete arg2;
9458 }
9459 return resultobj;
9460 fail:
9461 {
9462 if (temp2)
9463 delete arg2;
9464 }
9465 return NULL;
9466 }
9467
9468
9469 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
9470 PyObject *resultobj;
9471 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9472 PyObject *result;
9473 PyObject * obj0 = 0 ;
9474 char *kwnames[] = {
9475 (char *) "self", NULL
9476 };
9477
9478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
9479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9481 {
9482 PyThreadState* __tstate = wxPyBeginAllowThreads();
9483 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
9484
9485 wxPyEndAllowThreads(__tstate);
9486 if (PyErr_Occurred()) SWIG_fail;
9487 }
9488 resultobj = result;
9489 return resultobj;
9490 fail:
9491 return NULL;
9492 }
9493
9494
9495 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
9496 PyObject *resultobj;
9497 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
9498 PyObject *result;
9499 PyObject * obj0 = 0 ;
9500 char *kwnames[] = {
9501 (char *) "self", NULL
9502 };
9503
9504 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
9505 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
9506 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9507 {
9508 PyThreadState* __tstate = wxPyBeginAllowThreads();
9509 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
9510
9511 wxPyEndAllowThreads(__tstate);
9512 if (PyErr_Occurred()) SWIG_fail;
9513 }
9514 resultobj = result;
9515 return resultobj;
9516 fail:
9517 return NULL;
9518 }
9519
9520
9521 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
9522 PyObject *obj;
9523 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9524 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
9525 Py_INCREF(obj);
9526 return Py_BuildValue((char *)"");
9527 }
9528 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj;
9530 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9531 int arg2 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 char *kwnames[] = {
9535 (char *) "self",(char *) "Language", NULL
9536 };
9537
9538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
9539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9541 arg2 = (int) SWIG_AsInt(obj1);
9542 if (PyErr_Occurred()) SWIG_fail;
9543 if (arg1) (arg1)->Language = arg2;
9544
9545 Py_INCREF(Py_None); resultobj = Py_None;
9546 return resultobj;
9547 fail:
9548 return NULL;
9549 }
9550
9551
9552 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9553 PyObject *resultobj;
9554 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9555 int result;
9556 PyObject * obj0 = 0 ;
9557 char *kwnames[] = {
9558 (char *) "self", NULL
9559 };
9560
9561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9564 result = (int) ((arg1)->Language);
9565
9566 resultobj = SWIG_FromInt((int)result);
9567 return resultobj;
9568 fail:
9569 return NULL;
9570 }
9571
9572
9573 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9574 PyObject *resultobj;
9575 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9576 wxString *arg2 = (wxString *) 0 ;
9577 bool temp2 = False ;
9578 PyObject * obj0 = 0 ;
9579 PyObject * obj1 = 0 ;
9580 char *kwnames[] = {
9581 (char *) "self",(char *) "CanonicalName", NULL
9582 };
9583
9584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
9585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9587 {
9588 arg2 = wxString_in_helper(obj1);
9589 if (arg2 == NULL) SWIG_fail;
9590 temp2 = True;
9591 }
9592 if (arg1) (arg1)->CanonicalName = *arg2;
9593
9594 Py_INCREF(Py_None); resultobj = Py_None;
9595 {
9596 if (temp2)
9597 delete arg2;
9598 }
9599 return resultobj;
9600 fail:
9601 {
9602 if (temp2)
9603 delete arg2;
9604 }
9605 return NULL;
9606 }
9607
9608
9609 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9610 PyObject *resultobj;
9611 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9612 wxString *result;
9613 PyObject * obj0 = 0 ;
9614 char *kwnames[] = {
9615 (char *) "self", NULL
9616 };
9617
9618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9621 result = (wxString *)& ((arg1)->CanonicalName);
9622
9623 {
9624 #if wxUSE_UNICODE
9625 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9626 #else
9627 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9628 #endif
9629 }
9630 return resultobj;
9631 fail:
9632 return NULL;
9633 }
9634
9635
9636 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9637 PyObject *resultobj;
9638 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9639 wxString *arg2 = (wxString *) 0 ;
9640 bool temp2 = False ;
9641 PyObject * obj0 = 0 ;
9642 PyObject * obj1 = 0 ;
9643 char *kwnames[] = {
9644 (char *) "self",(char *) "Description", NULL
9645 };
9646
9647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9650 {
9651 arg2 = wxString_in_helper(obj1);
9652 if (arg2 == NULL) SWIG_fail;
9653 temp2 = True;
9654 }
9655 if (arg1) (arg1)->Description = *arg2;
9656
9657 Py_INCREF(Py_None); resultobj = Py_None;
9658 {
9659 if (temp2)
9660 delete arg2;
9661 }
9662 return resultobj;
9663 fail:
9664 {
9665 if (temp2)
9666 delete arg2;
9667 }
9668 return NULL;
9669 }
9670
9671
9672 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9673 PyObject *resultobj;
9674 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9675 wxString *result;
9676 PyObject * obj0 = 0 ;
9677 char *kwnames[] = {
9678 (char *) "self", NULL
9679 };
9680
9681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9684 result = (wxString *)& ((arg1)->Description);
9685
9686 {
9687 #if wxUSE_UNICODE
9688 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9689 #else
9690 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9691 #endif
9692 }
9693 return resultobj;
9694 fail:
9695 return NULL;
9696 }
9697
9698
9699 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9700 PyObject *obj;
9701 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9702 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9703 Py_INCREF(obj);
9704 return Py_BuildValue((char *)"");
9705 }
9706 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9707 PyObject *resultobj;
9708 int arg1 = (int) -1 ;
9709 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9710 wxLocale *result;
9711 PyObject * obj0 = 0 ;
9712 PyObject * obj1 = 0 ;
9713 char *kwnames[] = {
9714 (char *) "language",(char *) "flags", NULL
9715 };
9716
9717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9718 if (obj0) {
9719 arg1 = (int) SWIG_AsInt(obj0);
9720 if (PyErr_Occurred()) SWIG_fail;
9721 }
9722 if (obj1) {
9723 arg2 = (int) SWIG_AsInt(obj1);
9724 if (PyErr_Occurred()) SWIG_fail;
9725 }
9726 {
9727 PyThreadState* __tstate = wxPyBeginAllowThreads();
9728 result = (wxLocale *)new_wxLocale(arg1,arg2);
9729
9730 wxPyEndAllowThreads(__tstate);
9731 if (PyErr_Occurred()) SWIG_fail;
9732 }
9733 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9734 return resultobj;
9735 fail:
9736 return NULL;
9737 }
9738
9739
9740 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9741 PyObject *resultobj;
9742 wxLocale *arg1 = (wxLocale *) 0 ;
9743 PyObject * obj0 = 0 ;
9744 char *kwnames[] = {
9745 (char *) "self", NULL
9746 };
9747
9748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9751 {
9752 PyThreadState* __tstate = wxPyBeginAllowThreads();
9753 delete arg1;
9754
9755 wxPyEndAllowThreads(__tstate);
9756 if (PyErr_Occurred()) SWIG_fail;
9757 }
9758 Py_INCREF(Py_None); resultobj = Py_None;
9759 return resultobj;
9760 fail:
9761 return NULL;
9762 }
9763
9764
9765 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9766 PyObject *resultobj;
9767 wxLocale *arg1 = (wxLocale *) 0 ;
9768 wxString *arg2 = 0 ;
9769 wxString const &arg3_defvalue = wxPyEmptyString ;
9770 wxString *arg3 = (wxString *) &arg3_defvalue ;
9771 wxString const &arg4_defvalue = wxPyEmptyString ;
9772 wxString *arg4 = (wxString *) &arg4_defvalue ;
9773 bool arg5 = (bool) True ;
9774 bool arg6 = (bool) False ;
9775 bool result;
9776 bool temp2 = False ;
9777 bool temp3 = False ;
9778 bool temp4 = False ;
9779 PyObject * obj0 = 0 ;
9780 PyObject * obj1 = 0 ;
9781 PyObject * obj2 = 0 ;
9782 PyObject * obj3 = 0 ;
9783 PyObject * obj4 = 0 ;
9784 PyObject * obj5 = 0 ;
9785 char *kwnames[] = {
9786 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9787 };
9788
9789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9791 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9792 {
9793 arg2 = wxString_in_helper(obj1);
9794 if (arg2 == NULL) SWIG_fail;
9795 temp2 = True;
9796 }
9797 if (obj2) {
9798 {
9799 arg3 = wxString_in_helper(obj2);
9800 if (arg3 == NULL) SWIG_fail;
9801 temp3 = True;
9802 }
9803 }
9804 if (obj3) {
9805 {
9806 arg4 = wxString_in_helper(obj3);
9807 if (arg4 == NULL) SWIG_fail;
9808 temp4 = True;
9809 }
9810 }
9811 if (obj4) {
9812 arg5 = (bool) SWIG_AsBool(obj4);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 if (obj5) {
9816 arg6 = (bool) SWIG_AsBool(obj5);
9817 if (PyErr_Occurred()) SWIG_fail;
9818 }
9819 {
9820 PyThreadState* __tstate = wxPyBeginAllowThreads();
9821 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9822
9823 wxPyEndAllowThreads(__tstate);
9824 if (PyErr_Occurred()) SWIG_fail;
9825 }
9826 {
9827 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9828 }
9829 {
9830 if (temp2)
9831 delete arg2;
9832 }
9833 {
9834 if (temp3)
9835 delete arg3;
9836 }
9837 {
9838 if (temp4)
9839 delete arg4;
9840 }
9841 return resultobj;
9842 fail:
9843 {
9844 if (temp2)
9845 delete arg2;
9846 }
9847 {
9848 if (temp3)
9849 delete arg3;
9850 }
9851 {
9852 if (temp4)
9853 delete arg4;
9854 }
9855 return NULL;
9856 }
9857
9858
9859 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9860 PyObject *resultobj;
9861 wxLocale *arg1 = (wxLocale *) 0 ;
9862 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9863 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9864 bool result;
9865 PyObject * obj0 = 0 ;
9866 PyObject * obj1 = 0 ;
9867 PyObject * obj2 = 0 ;
9868 char *kwnames[] = {
9869 (char *) "self",(char *) "language",(char *) "flags", NULL
9870 };
9871
9872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9875 if (obj1) {
9876 arg2 = (int) SWIG_AsInt(obj1);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 if (obj2) {
9880 arg3 = (int) SWIG_AsInt(obj2);
9881 if (PyErr_Occurred()) SWIG_fail;
9882 }
9883 {
9884 PyThreadState* __tstate = wxPyBeginAllowThreads();
9885 result = (bool)(arg1)->Init(arg2,arg3);
9886
9887 wxPyEndAllowThreads(__tstate);
9888 if (PyErr_Occurred()) SWIG_fail;
9889 }
9890 {
9891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9892 }
9893 return resultobj;
9894 fail:
9895 return NULL;
9896 }
9897
9898
9899 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9900 PyObject *resultobj;
9901 int result;
9902 char *kwnames[] = {
9903 NULL
9904 };
9905
9906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9907 {
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 result = (int)wxLocale::GetSystemLanguage();
9910
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 resultobj = SWIG_FromInt((int)result);
9915 return resultobj;
9916 fail:
9917 return NULL;
9918 }
9919
9920
9921 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj;
9923 int result;
9924 char *kwnames[] = {
9925 NULL
9926 };
9927
9928 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 result = (int)wxLocale::GetSystemEncoding();
9932
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_FromInt((int)result);
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9944 PyObject *resultobj;
9945 wxString result;
9946 char *kwnames[] = {
9947 NULL
9948 };
9949
9950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9951 {
9952 PyThreadState* __tstate = wxPyBeginAllowThreads();
9953 result = wxLocale::GetSystemEncodingName();
9954
9955 wxPyEndAllowThreads(__tstate);
9956 if (PyErr_Occurred()) SWIG_fail;
9957 }
9958 {
9959 #if wxUSE_UNICODE
9960 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9961 #else
9962 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9963 #endif
9964 }
9965 return resultobj;
9966 fail:
9967 return NULL;
9968 }
9969
9970
9971 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9972 PyObject *resultobj;
9973 wxLocale *arg1 = (wxLocale *) 0 ;
9974 bool result;
9975 PyObject * obj0 = 0 ;
9976 char *kwnames[] = {
9977 (char *) "self", NULL
9978 };
9979
9980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9983 {
9984 PyThreadState* __tstate = wxPyBeginAllowThreads();
9985 result = (bool)((wxLocale const *)arg1)->IsOk();
9986
9987 wxPyEndAllowThreads(__tstate);
9988 if (PyErr_Occurred()) SWIG_fail;
9989 }
9990 {
9991 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9992 }
9993 return resultobj;
9994 fail:
9995 return NULL;
9996 }
9997
9998
9999 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10000 PyObject *resultobj;
10001 wxLocale *arg1 = (wxLocale *) 0 ;
10002 wxString result;
10003 PyObject * obj0 = 0 ;
10004 char *kwnames[] = {
10005 (char *) "self", NULL
10006 };
10007
10008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
10009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10011 {
10012 PyThreadState* __tstate = wxPyBeginAllowThreads();
10013 result = ((wxLocale const *)arg1)->GetLocale();
10014
10015 wxPyEndAllowThreads(__tstate);
10016 if (PyErr_Occurred()) SWIG_fail;
10017 }
10018 {
10019 #if wxUSE_UNICODE
10020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10021 #else
10022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10023 #endif
10024 }
10025 return resultobj;
10026 fail:
10027 return NULL;
10028 }
10029
10030
10031 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj;
10033 wxLocale *arg1 = (wxLocale *) 0 ;
10034 int result;
10035 PyObject * obj0 = 0 ;
10036 char *kwnames[] = {
10037 (char *) "self", NULL
10038 };
10039
10040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
10041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 result = (int)((wxLocale const *)arg1)->GetLanguage();
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_FromInt((int)result);
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxLocale *arg1 = (wxLocale *) 0 ;
10060 wxString result;
10061 PyObject * obj0 = 0 ;
10062 char *kwnames[] = {
10063 (char *) "self", NULL
10064 };
10065
10066 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
10067 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10068 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10069 {
10070 PyThreadState* __tstate = wxPyBeginAllowThreads();
10071 result = ((wxLocale const *)arg1)->GetSysName();
10072
10073 wxPyEndAllowThreads(__tstate);
10074 if (PyErr_Occurred()) SWIG_fail;
10075 }
10076 {
10077 #if wxUSE_UNICODE
10078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10079 #else
10080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10081 #endif
10082 }
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj;
10091 wxLocale *arg1 = (wxLocale *) 0 ;
10092 wxString result;
10093 PyObject * obj0 = 0 ;
10094 char *kwnames[] = {
10095 (char *) "self", NULL
10096 };
10097
10098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
10099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10101 {
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = ((wxLocale const *)arg1)->GetCanonicalName();
10104
10105 wxPyEndAllowThreads(__tstate);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 {
10109 #if wxUSE_UNICODE
10110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10111 #else
10112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10113 #endif
10114 }
10115 return resultobj;
10116 fail:
10117 return NULL;
10118 }
10119
10120
10121 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
10122 PyObject *resultobj;
10123 wxString *arg1 = 0 ;
10124 bool temp1 = False ;
10125 PyObject * obj0 = 0 ;
10126 char *kwnames[] = {
10127 (char *) "prefix", NULL
10128 };
10129
10130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
10131 {
10132 arg1 = wxString_in_helper(obj0);
10133 if (arg1 == NULL) SWIG_fail;
10134 temp1 = True;
10135 }
10136 {
10137 PyThreadState* __tstate = wxPyBeginAllowThreads();
10138 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
10139
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 Py_INCREF(Py_None); resultobj = Py_None;
10144 {
10145 if (temp1)
10146 delete arg1;
10147 }
10148 return resultobj;
10149 fail:
10150 {
10151 if (temp1)
10152 delete arg1;
10153 }
10154 return NULL;
10155 }
10156
10157
10158 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
10159 PyObject *resultobj;
10160 wxLocale *arg1 = (wxLocale *) 0 ;
10161 wxString *arg2 = 0 ;
10162 bool result;
10163 bool temp2 = False ;
10164 PyObject * obj0 = 0 ;
10165 PyObject * obj1 = 0 ;
10166 char *kwnames[] = {
10167 (char *) "self",(char *) "szDomain", NULL
10168 };
10169
10170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
10171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10173 {
10174 arg2 = wxString_in_helper(obj1);
10175 if (arg2 == NULL) SWIG_fail;
10176 temp2 = True;
10177 }
10178 {
10179 PyThreadState* __tstate = wxPyBeginAllowThreads();
10180 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
10181
10182 wxPyEndAllowThreads(__tstate);
10183 if (PyErr_Occurred()) SWIG_fail;
10184 }
10185 {
10186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10187 }
10188 {
10189 if (temp2)
10190 delete arg2;
10191 }
10192 return resultobj;
10193 fail:
10194 {
10195 if (temp2)
10196 delete arg2;
10197 }
10198 return NULL;
10199 }
10200
10201
10202 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
10203 PyObject *resultobj;
10204 wxLocale *arg1 = (wxLocale *) 0 ;
10205 wxString *arg2 = 0 ;
10206 bool result;
10207 bool temp2 = False ;
10208 PyObject * obj0 = 0 ;
10209 PyObject * obj1 = 0 ;
10210 char *kwnames[] = {
10211 (char *) "self",(char *) "szDomain", NULL
10212 };
10213
10214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
10215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10217 {
10218 arg2 = wxString_in_helper(obj1);
10219 if (arg2 == NULL) SWIG_fail;
10220 temp2 = True;
10221 }
10222 {
10223 PyThreadState* __tstate = wxPyBeginAllowThreads();
10224 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
10225
10226 wxPyEndAllowThreads(__tstate);
10227 if (PyErr_Occurred()) SWIG_fail;
10228 }
10229 {
10230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10231 }
10232 {
10233 if (temp2)
10234 delete arg2;
10235 }
10236 return resultobj;
10237 fail:
10238 {
10239 if (temp2)
10240 delete arg2;
10241 }
10242 return NULL;
10243 }
10244
10245
10246 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10247 PyObject *resultobj;
10248 int arg1 ;
10249 wxLanguageInfo *result;
10250 PyObject * obj0 = 0 ;
10251 char *kwnames[] = {
10252 (char *) "lang", NULL
10253 };
10254
10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
10256 arg1 = (int) SWIG_AsInt(obj0);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 {
10259 PyThreadState* __tstate = wxPyBeginAllowThreads();
10260 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
10261
10262 wxPyEndAllowThreads(__tstate);
10263 if (PyErr_Occurred()) SWIG_fail;
10264 }
10265 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10266 return resultobj;
10267 fail:
10268 return NULL;
10269 }
10270
10271
10272 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
10273 PyObject *resultobj;
10274 int arg1 ;
10275 wxString result;
10276 PyObject * obj0 = 0 ;
10277 char *kwnames[] = {
10278 (char *) "lang", NULL
10279 };
10280
10281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
10282 arg1 = (int) SWIG_AsInt(obj0);
10283 if (PyErr_Occurred()) SWIG_fail;
10284 {
10285 PyThreadState* __tstate = wxPyBeginAllowThreads();
10286 result = wxLocale::GetLanguageName(arg1);
10287
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 {
10292 #if wxUSE_UNICODE
10293 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10294 #else
10295 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10296 #endif
10297 }
10298 return resultobj;
10299 fail:
10300 return NULL;
10301 }
10302
10303
10304 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
10305 PyObject *resultobj;
10306 wxString *arg1 = 0 ;
10307 wxLanguageInfo *result;
10308 bool temp1 = False ;
10309 PyObject * obj0 = 0 ;
10310 char *kwnames[] = {
10311 (char *) "locale", NULL
10312 };
10313
10314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
10315 {
10316 arg1 = wxString_in_helper(obj0);
10317 if (arg1 == NULL) SWIG_fail;
10318 temp1 = True;
10319 }
10320 {
10321 PyThreadState* __tstate = wxPyBeginAllowThreads();
10322 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
10323
10324 wxPyEndAllowThreads(__tstate);
10325 if (PyErr_Occurred()) SWIG_fail;
10326 }
10327 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
10328 {
10329 if (temp1)
10330 delete arg1;
10331 }
10332 return resultobj;
10333 fail:
10334 {
10335 if (temp1)
10336 delete arg1;
10337 }
10338 return NULL;
10339 }
10340
10341
10342 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
10343 PyObject *resultobj;
10344 wxLanguageInfo *arg1 = 0 ;
10345 PyObject * obj0 = 0 ;
10346 char *kwnames[] = {
10347 (char *) "info", NULL
10348 };
10349
10350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
10351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
10352 SWIG_POINTER_EXCEPTION | 0)) == -1)
10353 SWIG_fail;
10354 if (arg1 == NULL) {
10355 PyErr_SetString(PyExc_TypeError,"null reference");
10356 SWIG_fail;
10357 }
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
10361
10362 wxPyEndAllowThreads(__tstate);
10363 if (PyErr_Occurred()) SWIG_fail;
10364 }
10365 Py_INCREF(Py_None); resultobj = Py_None;
10366 return resultobj;
10367 fail:
10368 return NULL;
10369 }
10370
10371
10372 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
10373 PyObject *resultobj;
10374 wxLocale *arg1 = (wxLocale *) 0 ;
10375 wxString *arg2 = 0 ;
10376 wxString const &arg3_defvalue = wxPyEmptyString ;
10377 wxString *arg3 = (wxString *) &arg3_defvalue ;
10378 wxString result;
10379 bool temp2 = False ;
10380 bool temp3 = False ;
10381 PyObject * obj0 = 0 ;
10382 PyObject * obj1 = 0 ;
10383 PyObject * obj2 = 0 ;
10384 char *kwnames[] = {
10385 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
10386 };
10387
10388 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
10389 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10390 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10391 {
10392 arg2 = wxString_in_helper(obj1);
10393 if (arg2 == NULL) SWIG_fail;
10394 temp2 = True;
10395 }
10396 if (obj2) {
10397 {
10398 arg3 = wxString_in_helper(obj2);
10399 if (arg3 == NULL) SWIG_fail;
10400 temp3 = True;
10401 }
10402 }
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
10406
10407 wxPyEndAllowThreads(__tstate);
10408 if (PyErr_Occurred()) SWIG_fail;
10409 }
10410 {
10411 #if wxUSE_UNICODE
10412 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10413 #else
10414 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10415 #endif
10416 }
10417 {
10418 if (temp2)
10419 delete arg2;
10420 }
10421 {
10422 if (temp3)
10423 delete arg3;
10424 }
10425 return resultobj;
10426 fail:
10427 {
10428 if (temp2)
10429 delete arg2;
10430 }
10431 {
10432 if (temp3)
10433 delete arg3;
10434 }
10435 return NULL;
10436 }
10437
10438
10439 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
10440 PyObject *resultobj;
10441 wxLocale *arg1 = (wxLocale *) 0 ;
10442 wxString *result;
10443 PyObject * obj0 = 0 ;
10444 char *kwnames[] = {
10445 (char *) "self", NULL
10446 };
10447
10448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
10449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
10450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10451 {
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 {
10454 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
10455 result = (wxString *) &_result_ref;
10456 }
10457
10458 wxPyEndAllowThreads(__tstate);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 }
10461 {
10462 #if wxUSE_UNICODE
10463 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10464 #else
10465 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10466 #endif
10467 }
10468 return resultobj;
10469 fail:
10470 return NULL;
10471 }
10472
10473
10474 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
10475 PyObject *obj;
10476 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10477 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
10478 Py_INCREF(obj);
10479 return Py_BuildValue((char *)"");
10480 }
10481 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
10482 PyObject *resultobj;
10483 wxLocale *result;
10484 char *kwnames[] = {
10485 NULL
10486 };
10487
10488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (wxLocale *)wxGetLocale();
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
10504 PyObject *resultobj;
10505 wxString *arg1 = 0 ;
10506 wxString result;
10507 bool temp1 = False ;
10508 PyObject * obj0 = 0 ;
10509
10510 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
10511 {
10512 arg1 = wxString_in_helper(obj0);
10513 if (arg1 == NULL) SWIG_fail;
10514 temp1 = True;
10515 }
10516 {
10517 PyThreadState* __tstate = wxPyBeginAllowThreads();
10518 result = wxGetTranslation((wxString const &)*arg1);
10519
10520 wxPyEndAllowThreads(__tstate);
10521 if (PyErr_Occurred()) SWIG_fail;
10522 }
10523 {
10524 #if wxUSE_UNICODE
10525 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10526 #else
10527 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10528 #endif
10529 }
10530 {
10531 if (temp1)
10532 delete arg1;
10533 }
10534 return resultobj;
10535 fail:
10536 {
10537 if (temp1)
10538 delete arg1;
10539 }
10540 return NULL;
10541 }
10542
10543
10544 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
10545 PyObject *resultobj;
10546 wxString *arg1 = 0 ;
10547 wxString *arg2 = 0 ;
10548 size_t arg3 ;
10549 wxString result;
10550 bool temp1 = False ;
10551 bool temp2 = False ;
10552 PyObject * obj0 = 0 ;
10553 PyObject * obj1 = 0 ;
10554 PyObject * obj2 = 0 ;
10555
10556 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
10557 {
10558 arg1 = wxString_in_helper(obj0);
10559 if (arg1 == NULL) SWIG_fail;
10560 temp1 = True;
10561 }
10562 {
10563 arg2 = wxString_in_helper(obj1);
10564 if (arg2 == NULL) SWIG_fail;
10565 temp2 = True;
10566 }
10567 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10572
10573 wxPyEndAllowThreads(__tstate);
10574 if (PyErr_Occurred()) SWIG_fail;
10575 }
10576 {
10577 #if wxUSE_UNICODE
10578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10579 #else
10580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10581 #endif
10582 }
10583 {
10584 if (temp1)
10585 delete arg1;
10586 }
10587 {
10588 if (temp2)
10589 delete arg2;
10590 }
10591 return resultobj;
10592 fail:
10593 {
10594 if (temp1)
10595 delete arg1;
10596 }
10597 {
10598 if (temp2)
10599 delete arg2;
10600 }
10601 return NULL;
10602 }
10603
10604
10605 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10606 int argc;
10607 PyObject *argv[4];
10608 int ii;
10609
10610 argc = PyObject_Length(args);
10611 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10612 argv[ii] = PyTuple_GetItem(args,ii);
10613 }
10614 if (argc == 1) {
10615 int _v;
10616 {
10617 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10618 }
10619 if (_v) {
10620 return _wrap_GetTranslation__SWIG_0(self,args);
10621 }
10622 }
10623 if (argc == 3) {
10624 int _v;
10625 {
10626 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10627 }
10628 if (_v) {
10629 {
10630 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10631 }
10632 if (_v) {
10633 _v = SWIG_CheckUnsignedLong(argv[2]);
10634 if (_v) {
10635 return _wrap_GetTranslation__SWIG_1(self,args);
10636 }
10637 }
10638 }
10639 }
10640
10641 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10642 return NULL;
10643 }
10644
10645
10646 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10647 PyObject *resultobj;
10648 wxEncodingConverter *result;
10649 char *kwnames[] = {
10650 NULL
10651 };
10652
10653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10654 {
10655 PyThreadState* __tstate = wxPyBeginAllowThreads();
10656 result = (wxEncodingConverter *)new wxEncodingConverter();
10657
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10662 return resultobj;
10663 fail:
10664 return NULL;
10665 }
10666
10667
10668 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj;
10670 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10671 PyObject * obj0 = 0 ;
10672 char *kwnames[] = {
10673 (char *) "self", NULL
10674 };
10675
10676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10679 {
10680 PyThreadState* __tstate = wxPyBeginAllowThreads();
10681 delete arg1;
10682
10683 wxPyEndAllowThreads(__tstate);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 Py_INCREF(Py_None); resultobj = Py_None;
10687 return resultobj;
10688 fail:
10689 return NULL;
10690 }
10691
10692
10693 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10694 PyObject *resultobj;
10695 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10696 int arg2 ;
10697 int arg3 ;
10698 int arg4 = (int) wxCONVERT_STRICT ;
10699 bool result;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 PyObject * obj2 = 0 ;
10703 PyObject * obj3 = 0 ;
10704 char *kwnames[] = {
10705 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10706 };
10707
10708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10711 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 if (obj3) {
10716 arg4 = (int) SWIG_AsInt(obj3);
10717 if (PyErr_Occurred()) SWIG_fail;
10718 }
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10722
10723 wxPyEndAllowThreads(__tstate);
10724 if (PyErr_Occurred()) SWIG_fail;
10725 }
10726 {
10727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10728 }
10729 return resultobj;
10730 fail:
10731 return NULL;
10732 }
10733
10734
10735 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10736 PyObject *resultobj;
10737 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10738 wxString *arg2 = 0 ;
10739 wxString result;
10740 bool temp2 = False ;
10741 PyObject * obj0 = 0 ;
10742 PyObject * obj1 = 0 ;
10743 char *kwnames[] = {
10744 (char *) "self",(char *) "input", NULL
10745 };
10746
10747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10750 {
10751 arg2 = wxString_in_helper(obj1);
10752 if (arg2 == NULL) SWIG_fail;
10753 temp2 = True;
10754 }
10755 {
10756 PyThreadState* __tstate = wxPyBeginAllowThreads();
10757 result = (arg1)->Convert((wxString const &)*arg2);
10758
10759 wxPyEndAllowThreads(__tstate);
10760 if (PyErr_Occurred()) SWIG_fail;
10761 }
10762 {
10763 #if wxUSE_UNICODE
10764 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10765 #else
10766 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10767 #endif
10768 }
10769 {
10770 if (temp2)
10771 delete arg2;
10772 }
10773 return resultobj;
10774 fail:
10775 {
10776 if (temp2)
10777 delete arg2;
10778 }
10779 return NULL;
10780 }
10781
10782
10783 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10784 PyObject *resultobj;
10785 int arg1 ;
10786 int arg2 = (int) wxPLATFORM_CURRENT ;
10787 wxFontEncodingArray result;
10788 PyObject * obj0 = 0 ;
10789 PyObject * obj1 = 0 ;
10790 char *kwnames[] = {
10791 (char *) "enc",(char *) "platform", NULL
10792 };
10793
10794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10795 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 if (obj1) {
10798 arg2 = (int) SWIG_AsInt(obj1);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 }
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10804
10805 wxPyEndAllowThreads(__tstate);
10806 if (PyErr_Occurred()) SWIG_fail;
10807 }
10808 {
10809 resultobj = PyList_New(0);
10810 for (size_t i=0; i < (&result)->GetCount(); i++) {
10811 PyObject* number = PyInt_FromLong((&result)->Item(i));
10812 PyList_Append(resultobj, number);
10813 Py_DECREF(number);
10814 }
10815 }
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10823 PyObject *resultobj;
10824 int arg1 ;
10825 wxFontEncodingArray result;
10826 PyObject * obj0 = 0 ;
10827 char *kwnames[] = {
10828 (char *) "enc", NULL
10829 };
10830
10831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10832 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10833 if (PyErr_Occurred()) SWIG_fail;
10834 {
10835 PyThreadState* __tstate = wxPyBeginAllowThreads();
10836 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10837
10838 wxPyEndAllowThreads(__tstate);
10839 if (PyErr_Occurred()) SWIG_fail;
10840 }
10841 {
10842 resultobj = PyList_New(0);
10843 for (size_t i=0; i < (&result)->GetCount(); i++) {
10844 PyObject* number = PyInt_FromLong((&result)->Item(i));
10845 PyList_Append(resultobj, number);
10846 Py_DECREF(number);
10847 }
10848 }
10849 return resultobj;
10850 fail:
10851 return NULL;
10852 }
10853
10854
10855 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10856 PyObject *resultobj;
10857 int arg1 ;
10858 int arg2 ;
10859 bool result;
10860 PyObject * obj0 = 0 ;
10861 PyObject * obj1 = 0 ;
10862 char *kwnames[] = {
10863 (char *) "encIn",(char *) "encOut", NULL
10864 };
10865
10866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10867 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10868 if (PyErr_Occurred()) SWIG_fail;
10869 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 {
10872 PyThreadState* __tstate = wxPyBeginAllowThreads();
10873 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10874
10875 wxPyEndAllowThreads(__tstate);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 }
10878 {
10879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10880 }
10881 return resultobj;
10882 fail:
10883 return NULL;
10884 }
10885
10886
10887 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10888 PyObject *obj;
10889 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10890 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10891 Py_INCREF(obj);
10892 return Py_BuildValue((char *)"");
10893 }
10894 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10895 PyObject *resultobj;
10896 wxDC *arg1 = (wxDC *) 0 ;
10897 PyObject * obj0 = 0 ;
10898 char *kwnames[] = {
10899 (char *) "self", NULL
10900 };
10901
10902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10903 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10904 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10905 {
10906 PyThreadState* __tstate = wxPyBeginAllowThreads();
10907 delete arg1;
10908
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 Py_INCREF(Py_None); resultobj = Py_None;
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj;
10921 wxDC *arg1 = (wxDC *) 0 ;
10922 PyObject * obj0 = 0 ;
10923 char *kwnames[] = {
10924 (char *) "self", NULL
10925 };
10926
10927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10930 {
10931 PyThreadState* __tstate = wxPyBeginAllowThreads();
10932 (arg1)->BeginDrawing();
10933
10934 wxPyEndAllowThreads(__tstate);
10935 if (PyErr_Occurred()) SWIG_fail;
10936 }
10937 Py_INCREF(Py_None); resultobj = Py_None;
10938 return resultobj;
10939 fail:
10940 return NULL;
10941 }
10942
10943
10944 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10945 PyObject *resultobj;
10946 wxDC *arg1 = (wxDC *) 0 ;
10947 PyObject * obj0 = 0 ;
10948 char *kwnames[] = {
10949 (char *) "self", NULL
10950 };
10951
10952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 (arg1)->EndDrawing();
10958
10959 wxPyEndAllowThreads(__tstate);
10960 if (PyErr_Occurred()) SWIG_fail;
10961 }
10962 Py_INCREF(Py_None); resultobj = Py_None;
10963 return resultobj;
10964 fail:
10965 return NULL;
10966 }
10967
10968
10969 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10970 PyObject *resultobj;
10971 wxDC *arg1 = (wxDC *) 0 ;
10972 int arg2 ;
10973 int arg3 ;
10974 wxColour *arg4 = 0 ;
10975 int arg5 = (int) wxFLOOD_SURFACE ;
10976 bool result;
10977 wxColour temp4 ;
10978 PyObject * obj0 = 0 ;
10979 PyObject * obj1 = 0 ;
10980 PyObject * obj2 = 0 ;
10981 PyObject * obj3 = 0 ;
10982 PyObject * obj4 = 0 ;
10983 char *kwnames[] = {
10984 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10985 };
10986
10987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10990 arg2 = (int) SWIG_AsInt(obj1);
10991 if (PyErr_Occurred()) SWIG_fail;
10992 arg3 = (int) SWIG_AsInt(obj2);
10993 if (PyErr_Occurred()) SWIG_fail;
10994 {
10995 arg4 = &temp4;
10996 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10997 }
10998 if (obj4) {
10999 arg5 = (int) SWIG_AsInt(obj4);
11000 if (PyErr_Occurred()) SWIG_fail;
11001 }
11002 {
11003 PyThreadState* __tstate = wxPyBeginAllowThreads();
11004 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
11005
11006 wxPyEndAllowThreads(__tstate);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 }
11009 {
11010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11011 }
11012 return resultobj;
11013 fail:
11014 return NULL;
11015 }
11016
11017
11018 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11019 PyObject *resultobj;
11020 wxDC *arg1 = (wxDC *) 0 ;
11021 wxPoint *arg2 = 0 ;
11022 wxColour *arg3 = 0 ;
11023 int arg4 = (int) wxFLOOD_SURFACE ;
11024 bool result;
11025 wxPoint temp2 ;
11026 wxColour temp3 ;
11027 PyObject * obj0 = 0 ;
11028 PyObject * obj1 = 0 ;
11029 PyObject * obj2 = 0 ;
11030 PyObject * obj3 = 0 ;
11031 char *kwnames[] = {
11032 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
11033 };
11034
11035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11038 {
11039 arg2 = &temp2;
11040 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11041 }
11042 {
11043 arg3 = &temp3;
11044 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11045 }
11046 if (obj3) {
11047 arg4 = (int) SWIG_AsInt(obj3);
11048 if (PyErr_Occurred()) SWIG_fail;
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 {
11058 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11059 }
11060 return resultobj;
11061 fail:
11062 return NULL;
11063 }
11064
11065
11066 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
11067 PyObject *resultobj;
11068 wxDC *arg1 = (wxDC *) 0 ;
11069 int arg2 ;
11070 int arg3 ;
11071 wxColour result;
11072 PyObject * obj0 = 0 ;
11073 PyObject * obj1 = 0 ;
11074 PyObject * obj2 = 0 ;
11075 char *kwnames[] = {
11076 (char *) "self",(char *) "x",(char *) "y", NULL
11077 };
11078
11079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
11080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11082 arg2 = (int) SWIG_AsInt(obj1);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 arg3 = (int) SWIG_AsInt(obj2);
11085 if (PyErr_Occurred()) SWIG_fail;
11086 {
11087 PyThreadState* __tstate = wxPyBeginAllowThreads();
11088 result = wxDC_GetPixel(arg1,arg2,arg3);
11089
11090 wxPyEndAllowThreads(__tstate);
11091 if (PyErr_Occurred()) SWIG_fail;
11092 }
11093 {
11094 wxColour * resultptr;
11095 resultptr = new wxColour((wxColour &) result);
11096 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11097 }
11098 return resultobj;
11099 fail:
11100 return NULL;
11101 }
11102
11103
11104 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11105 PyObject *resultobj;
11106 wxDC *arg1 = (wxDC *) 0 ;
11107 wxPoint *arg2 = 0 ;
11108 wxColour result;
11109 wxPoint temp2 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 char *kwnames[] = {
11113 (char *) "self",(char *) "pt", NULL
11114 };
11115
11116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
11117 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11118 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11119 {
11120 arg2 = &temp2;
11121 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11122 }
11123 {
11124 PyThreadState* __tstate = wxPyBeginAllowThreads();
11125 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
11126
11127 wxPyEndAllowThreads(__tstate);
11128 if (PyErr_Occurred()) SWIG_fail;
11129 }
11130 {
11131 wxColour * resultptr;
11132 resultptr = new wxColour((wxColour &) result);
11133 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
11134 }
11135 return resultobj;
11136 fail:
11137 return NULL;
11138 }
11139
11140
11141 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
11142 PyObject *resultobj;
11143 wxDC *arg1 = (wxDC *) 0 ;
11144 int arg2 ;
11145 int arg3 ;
11146 int arg4 ;
11147 int arg5 ;
11148 PyObject * obj0 = 0 ;
11149 PyObject * obj1 = 0 ;
11150 PyObject * obj2 = 0 ;
11151 PyObject * obj3 = 0 ;
11152 PyObject * obj4 = 0 ;
11153 char *kwnames[] = {
11154 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
11155 };
11156
11157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11160 arg2 = (int) SWIG_AsInt(obj1);
11161 if (PyErr_Occurred()) SWIG_fail;
11162 arg3 = (int) SWIG_AsInt(obj2);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 arg4 = (int) SWIG_AsInt(obj3);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 arg5 = (int) SWIG_AsInt(obj4);
11167 if (PyErr_Occurred()) SWIG_fail;
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
11171
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 Py_INCREF(Py_None); resultobj = Py_None;
11176 return resultobj;
11177 fail:
11178 return NULL;
11179 }
11180
11181
11182 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11183 PyObject *resultobj;
11184 wxDC *arg1 = (wxDC *) 0 ;
11185 wxPoint *arg2 = 0 ;
11186 wxPoint *arg3 = 0 ;
11187 wxPoint temp2 ;
11188 wxPoint temp3 ;
11189 PyObject * obj0 = 0 ;
11190 PyObject * obj1 = 0 ;
11191 PyObject * obj2 = 0 ;
11192 char *kwnames[] = {
11193 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
11194 };
11195
11196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11199 {
11200 arg2 = &temp2;
11201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11202 }
11203 {
11204 arg3 = &temp3;
11205 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11206 }
11207 {
11208 PyThreadState* __tstate = wxPyBeginAllowThreads();
11209 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
11210
11211 wxPyEndAllowThreads(__tstate);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 }
11214 Py_INCREF(Py_None); resultobj = Py_None;
11215 return resultobj;
11216 fail:
11217 return NULL;
11218 }
11219
11220
11221 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
11222 PyObject *resultobj;
11223 wxDC *arg1 = (wxDC *) 0 ;
11224 int arg2 ;
11225 int arg3 ;
11226 PyObject * obj0 = 0 ;
11227 PyObject * obj1 = 0 ;
11228 PyObject * obj2 = 0 ;
11229 char *kwnames[] = {
11230 (char *) "self",(char *) "x",(char *) "y", NULL
11231 };
11232
11233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
11234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11236 arg2 = (int) SWIG_AsInt(obj1);
11237 if (PyErr_Occurred()) SWIG_fail;
11238 arg3 = (int) SWIG_AsInt(obj2);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 {
11241 PyThreadState* __tstate = wxPyBeginAllowThreads();
11242 (arg1)->CrossHair(arg2,arg3);
11243
11244 wxPyEndAllowThreads(__tstate);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 }
11247 Py_INCREF(Py_None); resultobj = Py_None;
11248 return resultobj;
11249 fail:
11250 return NULL;
11251 }
11252
11253
11254 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11255 PyObject *resultobj;
11256 wxDC *arg1 = (wxDC *) 0 ;
11257 wxPoint *arg2 = 0 ;
11258 wxPoint temp2 ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 char *kwnames[] = {
11262 (char *) "self",(char *) "pt", NULL
11263 };
11264
11265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
11266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11268 {
11269 arg2 = &temp2;
11270 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11271 }
11272 {
11273 PyThreadState* __tstate = wxPyBeginAllowThreads();
11274 (arg1)->CrossHair((wxPoint const &)*arg2);
11275
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 Py_INCREF(Py_None); resultobj = Py_None;
11280 return resultobj;
11281 fail:
11282 return NULL;
11283 }
11284
11285
11286 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11287 PyObject *resultobj;
11288 wxDC *arg1 = (wxDC *) 0 ;
11289 int arg2 ;
11290 int arg3 ;
11291 int arg4 ;
11292 int arg5 ;
11293 int arg6 ;
11294 int arg7 ;
11295 PyObject * obj0 = 0 ;
11296 PyObject * obj1 = 0 ;
11297 PyObject * obj2 = 0 ;
11298 PyObject * obj3 = 0 ;
11299 PyObject * obj4 = 0 ;
11300 PyObject * obj5 = 0 ;
11301 PyObject * obj6 = 0 ;
11302 char *kwnames[] = {
11303 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
11304 };
11305
11306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11309 arg2 = (int) SWIG_AsInt(obj1);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 arg3 = (int) SWIG_AsInt(obj2);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 arg4 = (int) SWIG_AsInt(obj3);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 arg5 = (int) SWIG_AsInt(obj4);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 arg6 = (int) SWIG_AsInt(obj5);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 arg7 = (int) SWIG_AsInt(obj6);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
11324
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 Py_INCREF(Py_None); resultobj = Py_None;
11329 return resultobj;
11330 fail:
11331 return NULL;
11332 }
11333
11334
11335 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11336 PyObject *resultobj;
11337 wxDC *arg1 = (wxDC *) 0 ;
11338 wxPoint *arg2 = 0 ;
11339 wxPoint *arg3 = 0 ;
11340 wxPoint *arg4 = 0 ;
11341 wxPoint temp2 ;
11342 wxPoint temp3 ;
11343 wxPoint temp4 ;
11344 PyObject * obj0 = 0 ;
11345 PyObject * obj1 = 0 ;
11346 PyObject * obj2 = 0 ;
11347 PyObject * obj3 = 0 ;
11348 char *kwnames[] = {
11349 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
11350 };
11351
11352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11355 {
11356 arg2 = &temp2;
11357 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11358 }
11359 {
11360 arg3 = &temp3;
11361 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11362 }
11363 {
11364 arg4 = &temp4;
11365 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
11366 }
11367 {
11368 PyThreadState* __tstate = wxPyBeginAllowThreads();
11369 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
11370
11371 wxPyEndAllowThreads(__tstate);
11372 if (PyErr_Occurred()) SWIG_fail;
11373 }
11374 Py_INCREF(Py_None); resultobj = Py_None;
11375 return resultobj;
11376 fail:
11377 return NULL;
11378 }
11379
11380
11381 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
11382 PyObject *resultobj;
11383 wxDC *arg1 = (wxDC *) 0 ;
11384 int arg2 ;
11385 int arg3 ;
11386 int arg4 ;
11387 int arg5 ;
11388 PyObject * obj0 = 0 ;
11389 PyObject * obj1 = 0 ;
11390 PyObject * obj2 = 0 ;
11391 PyObject * obj3 = 0 ;
11392 PyObject * obj4 = 0 ;
11393 char *kwnames[] = {
11394 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11395 };
11396
11397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11400 arg2 = (int) SWIG_AsInt(obj1);
11401 if (PyErr_Occurred()) SWIG_fail;
11402 arg3 = (int) SWIG_AsInt(obj2);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 arg4 = (int) SWIG_AsInt(obj3);
11405 if (PyErr_Occurred()) SWIG_fail;
11406 arg5 = (int) SWIG_AsInt(obj4);
11407 if (PyErr_Occurred()) SWIG_fail;
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
11411
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 Py_INCREF(Py_None); resultobj = Py_None;
11416 return resultobj;
11417 fail:
11418 return NULL;
11419 }
11420
11421
11422 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11423 PyObject *resultobj;
11424 wxDC *arg1 = (wxDC *) 0 ;
11425 wxRect *arg2 = 0 ;
11426 wxRect temp2 ;
11427 PyObject * obj0 = 0 ;
11428 PyObject * obj1 = 0 ;
11429 char *kwnames[] = {
11430 (char *) "self",(char *) "rect", NULL
11431 };
11432
11433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
11434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11436 {
11437 arg2 = &temp2;
11438 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11439 }
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 (arg1)->DrawCheckMark((wxRect const &)*arg2);
11443
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 Py_INCREF(Py_None); resultobj = Py_None;
11448 return resultobj;
11449 fail:
11450 return NULL;
11451 }
11452
11453
11454 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxDC *arg1 = (wxDC *) 0 ;
11457 int arg2 ;
11458 int arg3 ;
11459 int arg4 ;
11460 int arg5 ;
11461 double arg6 ;
11462 double arg7 ;
11463 PyObject * obj0 = 0 ;
11464 PyObject * obj1 = 0 ;
11465 PyObject * obj2 = 0 ;
11466 PyObject * obj3 = 0 ;
11467 PyObject * obj4 = 0 ;
11468 PyObject * obj5 = 0 ;
11469 PyObject * obj6 = 0 ;
11470 char *kwnames[] = {
11471 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
11472 };
11473
11474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
11475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11477 arg2 = (int) SWIG_AsInt(obj1);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 arg3 = (int) SWIG_AsInt(obj2);
11480 if (PyErr_Occurred()) SWIG_fail;
11481 arg4 = (int) SWIG_AsInt(obj3);
11482 if (PyErr_Occurred()) SWIG_fail;
11483 arg5 = (int) SWIG_AsInt(obj4);
11484 if (PyErr_Occurred()) SWIG_fail;
11485 arg6 = (double) SWIG_AsDouble(obj5);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 arg7 = (double) SWIG_AsDouble(obj6);
11488 if (PyErr_Occurred()) SWIG_fail;
11489 {
11490 PyThreadState* __tstate = wxPyBeginAllowThreads();
11491 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
11492
11493 wxPyEndAllowThreads(__tstate);
11494 if (PyErr_Occurred()) SWIG_fail;
11495 }
11496 Py_INCREF(Py_None); resultobj = Py_None;
11497 return resultobj;
11498 fail:
11499 return NULL;
11500 }
11501
11502
11503 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11504 PyObject *resultobj;
11505 wxDC *arg1 = (wxDC *) 0 ;
11506 wxPoint *arg2 = 0 ;
11507 wxSize *arg3 = 0 ;
11508 double arg4 ;
11509 double arg5 ;
11510 wxPoint temp2 ;
11511 wxSize temp3 ;
11512 PyObject * obj0 = 0 ;
11513 PyObject * obj1 = 0 ;
11514 PyObject * obj2 = 0 ;
11515 PyObject * obj3 = 0 ;
11516 PyObject * obj4 = 0 ;
11517 char *kwnames[] = {
11518 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
11519 };
11520
11521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11524 {
11525 arg2 = &temp2;
11526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11527 }
11528 {
11529 arg3 = &temp3;
11530 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11531 }
11532 arg4 = (double) SWIG_AsDouble(obj3);
11533 if (PyErr_Occurred()) SWIG_fail;
11534 arg5 = (double) SWIG_AsDouble(obj4);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
11539
11540 wxPyEndAllowThreads(__tstate);
11541 if (PyErr_Occurred()) SWIG_fail;
11542 }
11543 Py_INCREF(Py_None); resultobj = Py_None;
11544 return resultobj;
11545 fail:
11546 return NULL;
11547 }
11548
11549
11550 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11551 PyObject *resultobj;
11552 wxDC *arg1 = (wxDC *) 0 ;
11553 int arg2 ;
11554 int arg3 ;
11555 PyObject * obj0 = 0 ;
11556 PyObject * obj1 = 0 ;
11557 PyObject * obj2 = 0 ;
11558 char *kwnames[] = {
11559 (char *) "self",(char *) "x",(char *) "y", NULL
11560 };
11561
11562 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11563 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11564 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11565 arg2 = (int) SWIG_AsInt(obj1);
11566 if (PyErr_Occurred()) SWIG_fail;
11567 arg3 = (int) SWIG_AsInt(obj2);
11568 if (PyErr_Occurred()) SWIG_fail;
11569 {
11570 PyThreadState* __tstate = wxPyBeginAllowThreads();
11571 (arg1)->DrawPoint(arg2,arg3);
11572
11573 wxPyEndAllowThreads(__tstate);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 Py_INCREF(Py_None); resultobj = Py_None;
11577 return resultobj;
11578 fail:
11579 return NULL;
11580 }
11581
11582
11583 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11584 PyObject *resultobj;
11585 wxDC *arg1 = (wxDC *) 0 ;
11586 wxPoint *arg2 = 0 ;
11587 wxPoint temp2 ;
11588 PyObject * obj0 = 0 ;
11589 PyObject * obj1 = 0 ;
11590 char *kwnames[] = {
11591 (char *) "self",(char *) "pt", NULL
11592 };
11593
11594 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11595 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11596 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11597 {
11598 arg2 = &temp2;
11599 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11600 }
11601 {
11602 PyThreadState* __tstate = wxPyBeginAllowThreads();
11603 (arg1)->DrawPoint((wxPoint const &)*arg2);
11604
11605 wxPyEndAllowThreads(__tstate);
11606 if (PyErr_Occurred()) SWIG_fail;
11607 }
11608 Py_INCREF(Py_None); resultobj = Py_None;
11609 return resultobj;
11610 fail:
11611 return NULL;
11612 }
11613
11614
11615 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11616 PyObject *resultobj;
11617 wxDC *arg1 = (wxDC *) 0 ;
11618 int arg2 ;
11619 int arg3 ;
11620 int arg4 ;
11621 int arg5 ;
11622 PyObject * obj0 = 0 ;
11623 PyObject * obj1 = 0 ;
11624 PyObject * obj2 = 0 ;
11625 PyObject * obj3 = 0 ;
11626 PyObject * obj4 = 0 ;
11627 char *kwnames[] = {
11628 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11629 };
11630
11631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11634 arg2 = (int) SWIG_AsInt(obj1);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 arg3 = (int) SWIG_AsInt(obj2);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 arg4 = (int) SWIG_AsInt(obj3);
11639 if (PyErr_Occurred()) SWIG_fail;
11640 arg5 = (int) SWIG_AsInt(obj4);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 {
11643 PyThreadState* __tstate = wxPyBeginAllowThreads();
11644 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11645
11646 wxPyEndAllowThreads(__tstate);
11647 if (PyErr_Occurred()) SWIG_fail;
11648 }
11649 Py_INCREF(Py_None); resultobj = Py_None;
11650 return resultobj;
11651 fail:
11652 return NULL;
11653 }
11654
11655
11656 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11657 PyObject *resultobj;
11658 wxDC *arg1 = (wxDC *) 0 ;
11659 wxRect *arg2 = 0 ;
11660 wxRect temp2 ;
11661 PyObject * obj0 = 0 ;
11662 PyObject * obj1 = 0 ;
11663 char *kwnames[] = {
11664 (char *) "self",(char *) "rect", NULL
11665 };
11666
11667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11670 {
11671 arg2 = &temp2;
11672 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11673 }
11674 {
11675 PyThreadState* __tstate = wxPyBeginAllowThreads();
11676 (arg1)->DrawRectangle((wxRect const &)*arg2);
11677
11678 wxPyEndAllowThreads(__tstate);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 }
11681 Py_INCREF(Py_None); resultobj = Py_None;
11682 return resultobj;
11683 fail:
11684 return NULL;
11685 }
11686
11687
11688 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11689 PyObject *resultobj;
11690 wxDC *arg1 = (wxDC *) 0 ;
11691 wxPoint *arg2 = 0 ;
11692 wxSize *arg3 = 0 ;
11693 wxPoint temp2 ;
11694 wxSize temp3 ;
11695 PyObject * obj0 = 0 ;
11696 PyObject * obj1 = 0 ;
11697 PyObject * obj2 = 0 ;
11698 char *kwnames[] = {
11699 (char *) "self",(char *) "pt",(char *) "sz", NULL
11700 };
11701
11702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11705 {
11706 arg2 = &temp2;
11707 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11708 }
11709 {
11710 arg3 = &temp3;
11711 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11712 }
11713 {
11714 PyThreadState* __tstate = wxPyBeginAllowThreads();
11715 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11716
11717 wxPyEndAllowThreads(__tstate);
11718 if (PyErr_Occurred()) SWIG_fail;
11719 }
11720 Py_INCREF(Py_None); resultobj = Py_None;
11721 return resultobj;
11722 fail:
11723 return NULL;
11724 }
11725
11726
11727 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11728 PyObject *resultobj;
11729 wxDC *arg1 = (wxDC *) 0 ;
11730 int arg2 ;
11731 int arg3 ;
11732 int arg4 ;
11733 int arg5 ;
11734 double arg6 ;
11735 PyObject * obj0 = 0 ;
11736 PyObject * obj1 = 0 ;
11737 PyObject * obj2 = 0 ;
11738 PyObject * obj3 = 0 ;
11739 PyObject * obj4 = 0 ;
11740 PyObject * obj5 = 0 ;
11741 char *kwnames[] = {
11742 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11743 };
11744
11745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11748 arg2 = (int) SWIG_AsInt(obj1);
11749 if (PyErr_Occurred()) SWIG_fail;
11750 arg3 = (int) SWIG_AsInt(obj2);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 arg4 = (int) SWIG_AsInt(obj3);
11753 if (PyErr_Occurred()) SWIG_fail;
11754 arg5 = (int) SWIG_AsInt(obj4);
11755 if (PyErr_Occurred()) SWIG_fail;
11756 arg6 = (double) SWIG_AsDouble(obj5);
11757 if (PyErr_Occurred()) SWIG_fail;
11758 {
11759 PyThreadState* __tstate = wxPyBeginAllowThreads();
11760 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11761
11762 wxPyEndAllowThreads(__tstate);
11763 if (PyErr_Occurred()) SWIG_fail;
11764 }
11765 Py_INCREF(Py_None); resultobj = Py_None;
11766 return resultobj;
11767 fail:
11768 return NULL;
11769 }
11770
11771
11772 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11773 PyObject *resultobj;
11774 wxDC *arg1 = (wxDC *) 0 ;
11775 wxRect *arg2 = 0 ;
11776 double arg3 ;
11777 wxRect temp2 ;
11778 PyObject * obj0 = 0 ;
11779 PyObject * obj1 = 0 ;
11780 PyObject * obj2 = 0 ;
11781 char *kwnames[] = {
11782 (char *) "self",(char *) "r",(char *) "radius", NULL
11783 };
11784
11785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11788 {
11789 arg2 = &temp2;
11790 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11791 }
11792 arg3 = (double) SWIG_AsDouble(obj2);
11793 if (PyErr_Occurred()) SWIG_fail;
11794 {
11795 PyThreadState* __tstate = wxPyBeginAllowThreads();
11796 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11797
11798 wxPyEndAllowThreads(__tstate);
11799 if (PyErr_Occurred()) SWIG_fail;
11800 }
11801 Py_INCREF(Py_None); resultobj = Py_None;
11802 return resultobj;
11803 fail:
11804 return NULL;
11805 }
11806
11807
11808 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11809 PyObject *resultobj;
11810 wxDC *arg1 = (wxDC *) 0 ;
11811 wxPoint *arg2 = 0 ;
11812 wxSize *arg3 = 0 ;
11813 double arg4 ;
11814 wxPoint temp2 ;
11815 wxSize temp3 ;
11816 PyObject * obj0 = 0 ;
11817 PyObject * obj1 = 0 ;
11818 PyObject * obj2 = 0 ;
11819 PyObject * obj3 = 0 ;
11820 char *kwnames[] = {
11821 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11822 };
11823
11824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11827 {
11828 arg2 = &temp2;
11829 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11830 }
11831 {
11832 arg3 = &temp3;
11833 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11834 }
11835 arg4 = (double) SWIG_AsDouble(obj3);
11836 if (PyErr_Occurred()) SWIG_fail;
11837 {
11838 PyThreadState* __tstate = wxPyBeginAllowThreads();
11839 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11840
11841 wxPyEndAllowThreads(__tstate);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 Py_INCREF(Py_None); resultobj = Py_None;
11845 return resultobj;
11846 fail:
11847 return NULL;
11848 }
11849
11850
11851 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11852 PyObject *resultobj;
11853 wxDC *arg1 = (wxDC *) 0 ;
11854 int arg2 ;
11855 int arg3 ;
11856 int arg4 ;
11857 PyObject * obj0 = 0 ;
11858 PyObject * obj1 = 0 ;
11859 PyObject * obj2 = 0 ;
11860 PyObject * obj3 = 0 ;
11861 char *kwnames[] = {
11862 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11863 };
11864
11865 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11866 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11867 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11868 arg2 = (int) SWIG_AsInt(obj1);
11869 if (PyErr_Occurred()) SWIG_fail;
11870 arg3 = (int) SWIG_AsInt(obj2);
11871 if (PyErr_Occurred()) SWIG_fail;
11872 arg4 = (int) SWIG_AsInt(obj3);
11873 if (PyErr_Occurred()) SWIG_fail;
11874 {
11875 PyThreadState* __tstate = wxPyBeginAllowThreads();
11876 (arg1)->DrawCircle(arg2,arg3,arg4);
11877
11878 wxPyEndAllowThreads(__tstate);
11879 if (PyErr_Occurred()) SWIG_fail;
11880 }
11881 Py_INCREF(Py_None); resultobj = Py_None;
11882 return resultobj;
11883 fail:
11884 return NULL;
11885 }
11886
11887
11888 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11889 PyObject *resultobj;
11890 wxDC *arg1 = (wxDC *) 0 ;
11891 wxPoint *arg2 = 0 ;
11892 int arg3 ;
11893 wxPoint temp2 ;
11894 PyObject * obj0 = 0 ;
11895 PyObject * obj1 = 0 ;
11896 PyObject * obj2 = 0 ;
11897 char *kwnames[] = {
11898 (char *) "self",(char *) "pt",(char *) "radius", NULL
11899 };
11900
11901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11904 {
11905 arg2 = &temp2;
11906 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11907 }
11908 arg3 = (int) SWIG_AsInt(obj2);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 {
11911 PyThreadState* __tstate = wxPyBeginAllowThreads();
11912 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11913
11914 wxPyEndAllowThreads(__tstate);
11915 if (PyErr_Occurred()) SWIG_fail;
11916 }
11917 Py_INCREF(Py_None); resultobj = Py_None;
11918 return resultobj;
11919 fail:
11920 return NULL;
11921 }
11922
11923
11924 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11925 PyObject *resultobj;
11926 wxDC *arg1 = (wxDC *) 0 ;
11927 int arg2 ;
11928 int arg3 ;
11929 int arg4 ;
11930 int arg5 ;
11931 PyObject * obj0 = 0 ;
11932 PyObject * obj1 = 0 ;
11933 PyObject * obj2 = 0 ;
11934 PyObject * obj3 = 0 ;
11935 PyObject * obj4 = 0 ;
11936 char *kwnames[] = {
11937 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11938 };
11939
11940 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11941 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11942 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11943 arg2 = (int) SWIG_AsInt(obj1);
11944 if (PyErr_Occurred()) SWIG_fail;
11945 arg3 = (int) SWIG_AsInt(obj2);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 arg4 = (int) SWIG_AsInt(obj3);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 arg5 = (int) SWIG_AsInt(obj4);
11950 if (PyErr_Occurred()) SWIG_fail;
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11954
11955 wxPyEndAllowThreads(__tstate);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 }
11958 Py_INCREF(Py_None); resultobj = Py_None;
11959 return resultobj;
11960 fail:
11961 return NULL;
11962 }
11963
11964
11965 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11966 PyObject *resultobj;
11967 wxDC *arg1 = (wxDC *) 0 ;
11968 wxRect *arg2 = 0 ;
11969 wxRect temp2 ;
11970 PyObject * obj0 = 0 ;
11971 PyObject * obj1 = 0 ;
11972 char *kwnames[] = {
11973 (char *) "self",(char *) "rect", NULL
11974 };
11975
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11979 {
11980 arg2 = &temp2;
11981 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11982 }
11983 {
11984 PyThreadState* __tstate = wxPyBeginAllowThreads();
11985 (arg1)->DrawEllipse((wxRect const &)*arg2);
11986
11987 wxPyEndAllowThreads(__tstate);
11988 if (PyErr_Occurred()) SWIG_fail;
11989 }
11990 Py_INCREF(Py_None); resultobj = Py_None;
11991 return resultobj;
11992 fail:
11993 return NULL;
11994 }
11995
11996
11997 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11998 PyObject *resultobj;
11999 wxDC *arg1 = (wxDC *) 0 ;
12000 wxPoint *arg2 = 0 ;
12001 wxSize *arg3 = 0 ;
12002 wxPoint temp2 ;
12003 wxSize temp3 ;
12004 PyObject * obj0 = 0 ;
12005 PyObject * obj1 = 0 ;
12006 PyObject * obj2 = 0 ;
12007 char *kwnames[] = {
12008 (char *) "self",(char *) "pt",(char *) "sz", NULL
12009 };
12010
12011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12014 {
12015 arg2 = &temp2;
12016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12017 }
12018 {
12019 arg3 = &temp3;
12020 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12021 }
12022 {
12023 PyThreadState* __tstate = wxPyBeginAllowThreads();
12024 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
12025
12026 wxPyEndAllowThreads(__tstate);
12027 if (PyErr_Occurred()) SWIG_fail;
12028 }
12029 Py_INCREF(Py_None); resultobj = Py_None;
12030 return resultobj;
12031 fail:
12032 return NULL;
12033 }
12034
12035
12036 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj;
12038 wxDC *arg1 = (wxDC *) 0 ;
12039 wxIcon *arg2 = 0 ;
12040 int arg3 ;
12041 int arg4 ;
12042 PyObject * obj0 = 0 ;
12043 PyObject * obj1 = 0 ;
12044 PyObject * obj2 = 0 ;
12045 PyObject * obj3 = 0 ;
12046 char *kwnames[] = {
12047 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
12048 };
12049
12050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12054 SWIG_POINTER_EXCEPTION | 0)) == -1)
12055 SWIG_fail;
12056 if (arg2 == NULL) {
12057 PyErr_SetString(PyExc_TypeError,"null reference");
12058 SWIG_fail;
12059 }
12060 arg3 = (int) SWIG_AsInt(obj2);
12061 if (PyErr_Occurred()) SWIG_fail;
12062 arg4 = (int) SWIG_AsInt(obj3);
12063 if (PyErr_Occurred()) SWIG_fail;
12064 {
12065 PyThreadState* __tstate = wxPyBeginAllowThreads();
12066 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
12067
12068 wxPyEndAllowThreads(__tstate);
12069 if (PyErr_Occurred()) SWIG_fail;
12070 }
12071 Py_INCREF(Py_None); resultobj = Py_None;
12072 return resultobj;
12073 fail:
12074 return NULL;
12075 }
12076
12077
12078 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12079 PyObject *resultobj;
12080 wxDC *arg1 = (wxDC *) 0 ;
12081 wxIcon *arg2 = 0 ;
12082 wxPoint *arg3 = 0 ;
12083 wxPoint temp3 ;
12084 PyObject * obj0 = 0 ;
12085 PyObject * obj1 = 0 ;
12086 PyObject * obj2 = 0 ;
12087 char *kwnames[] = {
12088 (char *) "self",(char *) "icon",(char *) "pt", NULL
12089 };
12090
12091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12094 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
12095 SWIG_POINTER_EXCEPTION | 0)) == -1)
12096 SWIG_fail;
12097 if (arg2 == NULL) {
12098 PyErr_SetString(PyExc_TypeError,"null reference");
12099 SWIG_fail;
12100 }
12101 {
12102 arg3 = &temp3;
12103 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12104 }
12105 {
12106 PyThreadState* __tstate = wxPyBeginAllowThreads();
12107 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
12108
12109 wxPyEndAllowThreads(__tstate);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 Py_INCREF(Py_None); resultobj = Py_None;
12113 return resultobj;
12114 fail:
12115 return NULL;
12116 }
12117
12118
12119 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
12120 PyObject *resultobj;
12121 wxDC *arg1 = (wxDC *) 0 ;
12122 wxBitmap *arg2 = 0 ;
12123 int arg3 ;
12124 int arg4 ;
12125 bool arg5 = (bool) False ;
12126 PyObject * obj0 = 0 ;
12127 PyObject * obj1 = 0 ;
12128 PyObject * obj2 = 0 ;
12129 PyObject * obj3 = 0 ;
12130 PyObject * obj4 = 0 ;
12131 char *kwnames[] = {
12132 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
12133 };
12134
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12138 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12139 SWIG_POINTER_EXCEPTION | 0)) == -1)
12140 SWIG_fail;
12141 if (arg2 == NULL) {
12142 PyErr_SetString(PyExc_TypeError,"null reference");
12143 SWIG_fail;
12144 }
12145 arg3 = (int) SWIG_AsInt(obj2);
12146 if (PyErr_Occurred()) SWIG_fail;
12147 arg4 = (int) SWIG_AsInt(obj3);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 if (obj4) {
12150 arg5 = (bool) SWIG_AsBool(obj4);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 {
12154 PyThreadState* __tstate = wxPyBeginAllowThreads();
12155 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
12156
12157 wxPyEndAllowThreads(__tstate);
12158 if (PyErr_Occurred()) SWIG_fail;
12159 }
12160 Py_INCREF(Py_None); resultobj = Py_None;
12161 return resultobj;
12162 fail:
12163 return NULL;
12164 }
12165
12166
12167 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12168 PyObject *resultobj;
12169 wxDC *arg1 = (wxDC *) 0 ;
12170 wxBitmap *arg2 = 0 ;
12171 wxPoint *arg3 = 0 ;
12172 bool arg4 = (bool) False ;
12173 wxPoint temp3 ;
12174 PyObject * obj0 = 0 ;
12175 PyObject * obj1 = 0 ;
12176 PyObject * obj2 = 0 ;
12177 PyObject * obj3 = 0 ;
12178 char *kwnames[] = {
12179 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
12180 };
12181
12182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
12186 SWIG_POINTER_EXCEPTION | 0)) == -1)
12187 SWIG_fail;
12188 if (arg2 == NULL) {
12189 PyErr_SetString(PyExc_TypeError,"null reference");
12190 SWIG_fail;
12191 }
12192 {
12193 arg3 = &temp3;
12194 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12195 }
12196 if (obj3) {
12197 arg4 = (bool) SWIG_AsBool(obj3);
12198 if (PyErr_Occurred()) SWIG_fail;
12199 }
12200 {
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
12203
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 Py_INCREF(Py_None); resultobj = Py_None;
12208 return resultobj;
12209 fail:
12210 return NULL;
12211 }
12212
12213
12214 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
12215 PyObject *resultobj;
12216 wxDC *arg1 = (wxDC *) 0 ;
12217 wxString *arg2 = 0 ;
12218 int arg3 ;
12219 int arg4 ;
12220 bool temp2 = False ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 PyObject * obj2 = 0 ;
12224 PyObject * obj3 = 0 ;
12225 char *kwnames[] = {
12226 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
12227 };
12228
12229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12232 {
12233 arg2 = wxString_in_helper(obj1);
12234 if (arg2 == NULL) SWIG_fail;
12235 temp2 = True;
12236 }
12237 arg3 = (int) SWIG_AsInt(obj2);
12238 if (PyErr_Occurred()) SWIG_fail;
12239 arg4 = (int) SWIG_AsInt(obj3);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 {
12242 PyThreadState* __tstate = wxPyBeginAllowThreads();
12243 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
12244
12245 wxPyEndAllowThreads(__tstate);
12246 if (PyErr_Occurred()) SWIG_fail;
12247 }
12248 Py_INCREF(Py_None); resultobj = Py_None;
12249 {
12250 if (temp2)
12251 delete arg2;
12252 }
12253 return resultobj;
12254 fail:
12255 {
12256 if (temp2)
12257 delete arg2;
12258 }
12259 return NULL;
12260 }
12261
12262
12263 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12264 PyObject *resultobj;
12265 wxDC *arg1 = (wxDC *) 0 ;
12266 wxString *arg2 = 0 ;
12267 wxPoint *arg3 = 0 ;
12268 bool temp2 = False ;
12269 wxPoint temp3 ;
12270 PyObject * obj0 = 0 ;
12271 PyObject * obj1 = 0 ;
12272 PyObject * obj2 = 0 ;
12273 char *kwnames[] = {
12274 (char *) "self",(char *) "text",(char *) "pt", NULL
12275 };
12276
12277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
12278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12280 {
12281 arg2 = wxString_in_helper(obj1);
12282 if (arg2 == NULL) SWIG_fail;
12283 temp2 = True;
12284 }
12285 {
12286 arg3 = &temp3;
12287 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12288 }
12289 {
12290 PyThreadState* __tstate = wxPyBeginAllowThreads();
12291 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
12292
12293 wxPyEndAllowThreads(__tstate);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 Py_INCREF(Py_None); resultobj = Py_None;
12297 {
12298 if (temp2)
12299 delete arg2;
12300 }
12301 return resultobj;
12302 fail:
12303 {
12304 if (temp2)
12305 delete arg2;
12306 }
12307 return NULL;
12308 }
12309
12310
12311 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
12312 PyObject *resultobj;
12313 wxDC *arg1 = (wxDC *) 0 ;
12314 wxString *arg2 = 0 ;
12315 int arg3 ;
12316 int arg4 ;
12317 double arg5 ;
12318 bool temp2 = False ;
12319 PyObject * obj0 = 0 ;
12320 PyObject * obj1 = 0 ;
12321 PyObject * obj2 = 0 ;
12322 PyObject * obj3 = 0 ;
12323 PyObject * obj4 = 0 ;
12324 char *kwnames[] = {
12325 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
12326 };
12327
12328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 arg3 = (int) SWIG_AsInt(obj2);
12337 if (PyErr_Occurred()) SWIG_fail;
12338 arg4 = (int) SWIG_AsInt(obj3);
12339 if (PyErr_Occurred()) SWIG_fail;
12340 arg5 = (double) SWIG_AsDouble(obj4);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 {
12343 PyThreadState* __tstate = wxPyBeginAllowThreads();
12344 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
12345
12346 wxPyEndAllowThreads(__tstate);
12347 if (PyErr_Occurred()) SWIG_fail;
12348 }
12349 Py_INCREF(Py_None); resultobj = Py_None;
12350 {
12351 if (temp2)
12352 delete arg2;
12353 }
12354 return resultobj;
12355 fail:
12356 {
12357 if (temp2)
12358 delete arg2;
12359 }
12360 return NULL;
12361 }
12362
12363
12364 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
12365 PyObject *resultobj;
12366 wxDC *arg1 = (wxDC *) 0 ;
12367 wxString *arg2 = 0 ;
12368 wxPoint *arg3 = 0 ;
12369 double arg4 ;
12370 bool temp2 = False ;
12371 wxPoint temp3 ;
12372 PyObject * obj0 = 0 ;
12373 PyObject * obj1 = 0 ;
12374 PyObject * obj2 = 0 ;
12375 PyObject * obj3 = 0 ;
12376 char *kwnames[] = {
12377 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
12378 };
12379
12380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12383 {
12384 arg2 = wxString_in_helper(obj1);
12385 if (arg2 == NULL) SWIG_fail;
12386 temp2 = True;
12387 }
12388 {
12389 arg3 = &temp3;
12390 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
12391 }
12392 arg4 = (double) SWIG_AsDouble(obj3);
12393 if (PyErr_Occurred()) SWIG_fail;
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
12397
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 Py_INCREF(Py_None); resultobj = Py_None;
12402 {
12403 if (temp2)
12404 delete arg2;
12405 }
12406 return resultobj;
12407 fail:
12408 {
12409 if (temp2)
12410 delete arg2;
12411 }
12412 return NULL;
12413 }
12414
12415
12416 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj;
12418 wxDC *arg1 = (wxDC *) 0 ;
12419 int arg2 ;
12420 int arg3 ;
12421 int arg4 ;
12422 int arg5 ;
12423 wxDC *arg6 = (wxDC *) 0 ;
12424 int arg7 ;
12425 int arg8 ;
12426 int arg9 = (int) wxCOPY ;
12427 bool arg10 = (bool) False ;
12428 int arg11 = (int) -1 ;
12429 int arg12 = (int) -1 ;
12430 bool result;
12431 PyObject * obj0 = 0 ;
12432 PyObject * obj1 = 0 ;
12433 PyObject * obj2 = 0 ;
12434 PyObject * obj3 = 0 ;
12435 PyObject * obj4 = 0 ;
12436 PyObject * obj5 = 0 ;
12437 PyObject * obj6 = 0 ;
12438 PyObject * obj7 = 0 ;
12439 PyObject * obj8 = 0 ;
12440 PyObject * obj9 = 0 ;
12441 PyObject * obj10 = 0 ;
12442 PyObject * obj11 = 0 ;
12443 char *kwnames[] = {
12444 (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
12445 };
12446
12447 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;
12448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12450 arg2 = (int) SWIG_AsInt(obj1);
12451 if (PyErr_Occurred()) SWIG_fail;
12452 arg3 = (int) SWIG_AsInt(obj2);
12453 if (PyErr_Occurred()) SWIG_fail;
12454 arg4 = (int) SWIG_AsInt(obj3);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 arg5 = (int) SWIG_AsInt(obj4);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
12459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12460 arg7 = (int) SWIG_AsInt(obj6);
12461 if (PyErr_Occurred()) SWIG_fail;
12462 arg8 = (int) SWIG_AsInt(obj7);
12463 if (PyErr_Occurred()) SWIG_fail;
12464 if (obj8) {
12465 arg9 = (int) SWIG_AsInt(obj8);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 if (obj9) {
12469 arg10 = (bool) SWIG_AsBool(obj9);
12470 if (PyErr_Occurred()) SWIG_fail;
12471 }
12472 if (obj10) {
12473 arg11 = (int) SWIG_AsInt(obj10);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 if (obj11) {
12477 arg12 = (int) SWIG_AsInt(obj11);
12478 if (PyErr_Occurred()) SWIG_fail;
12479 }
12480 {
12481 PyThreadState* __tstate = wxPyBeginAllowThreads();
12482 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
12483
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 {
12488 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12489 }
12490 return resultobj;
12491 fail:
12492 return NULL;
12493 }
12494
12495
12496 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12497 PyObject *resultobj;
12498 wxDC *arg1 = (wxDC *) 0 ;
12499 wxPoint *arg2 = 0 ;
12500 wxSize *arg3 = 0 ;
12501 wxDC *arg4 = (wxDC *) 0 ;
12502 wxPoint *arg5 = 0 ;
12503 int arg6 = (int) wxCOPY ;
12504 bool arg7 = (bool) False ;
12505 wxPoint const &arg8_defvalue = wxDefaultPosition ;
12506 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
12507 bool result;
12508 wxPoint temp2 ;
12509 wxSize temp3 ;
12510 wxPoint temp5 ;
12511 wxPoint temp8 ;
12512 PyObject * obj0 = 0 ;
12513 PyObject * obj1 = 0 ;
12514 PyObject * obj2 = 0 ;
12515 PyObject * obj3 = 0 ;
12516 PyObject * obj4 = 0 ;
12517 PyObject * obj5 = 0 ;
12518 PyObject * obj6 = 0 ;
12519 PyObject * obj7 = 0 ;
12520 char *kwnames[] = {
12521 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
12522 };
12523
12524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
12525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12527 {
12528 arg2 = &temp2;
12529 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12530 }
12531 {
12532 arg3 = &temp3;
12533 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12534 }
12535 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
12536 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12537 {
12538 arg5 = &temp5;
12539 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
12540 }
12541 if (obj5) {
12542 arg6 = (int) SWIG_AsInt(obj5);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 if (obj6) {
12546 arg7 = (bool) SWIG_AsBool(obj6);
12547 if (PyErr_Occurred()) SWIG_fail;
12548 }
12549 if (obj7) {
12550 {
12551 arg8 = &temp8;
12552 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
12553 }
12554 }
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 {
12563 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12564 }
12565 return resultobj;
12566 fail:
12567 return NULL;
12568 }
12569
12570
12571 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12572 PyObject *resultobj;
12573 wxDC *arg1 = (wxDC *) 0 ;
12574 int arg2 ;
12575 int arg3 ;
12576 int arg4 ;
12577 int arg5 ;
12578 PyObject * obj0 = 0 ;
12579 PyObject * obj1 = 0 ;
12580 PyObject * obj2 = 0 ;
12581 PyObject * obj3 = 0 ;
12582 PyObject * obj4 = 0 ;
12583 char *kwnames[] = {
12584 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12585 };
12586
12587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12590 arg2 = (int) SWIG_AsInt(obj1);
12591 if (PyErr_Occurred()) SWIG_fail;
12592 arg3 = (int) SWIG_AsInt(obj2);
12593 if (PyErr_Occurred()) SWIG_fail;
12594 arg4 = (int) SWIG_AsInt(obj3);
12595 if (PyErr_Occurred()) SWIG_fail;
12596 arg5 = (int) SWIG_AsInt(obj4);
12597 if (PyErr_Occurred()) SWIG_fail;
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 Py_INCREF(Py_None); resultobj = Py_None;
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12613 PyObject *resultobj;
12614 wxDC *arg1 = (wxDC *) 0 ;
12615 wxPoint *arg2 = 0 ;
12616 wxSize *arg3 = 0 ;
12617 wxPoint temp2 ;
12618 wxSize temp3 ;
12619 PyObject * obj0 = 0 ;
12620 PyObject * obj1 = 0 ;
12621 PyObject * obj2 = 0 ;
12622 char *kwnames[] = {
12623 (char *) "self",(char *) "pt",(char *) "sz", NULL
12624 };
12625
12626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12629 {
12630 arg2 = &temp2;
12631 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12632 }
12633 {
12634 arg3 = &temp3;
12635 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12636 }
12637 {
12638 PyThreadState* __tstate = wxPyBeginAllowThreads();
12639 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12640
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 Py_INCREF(Py_None); resultobj = Py_None;
12645 return resultobj;
12646 fail:
12647 return NULL;
12648 }
12649
12650
12651 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12652 PyObject *resultobj;
12653 wxDC *arg1 = (wxDC *) 0 ;
12654 wxRegion *arg2 = 0 ;
12655 PyObject * obj0 = 0 ;
12656 PyObject * obj1 = 0 ;
12657 char *kwnames[] = {
12658 (char *) "self",(char *) "region", NULL
12659 };
12660
12661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12664 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12665 SWIG_POINTER_EXCEPTION | 0)) == -1)
12666 SWIG_fail;
12667 if (arg2 == NULL) {
12668 PyErr_SetString(PyExc_TypeError,"null reference");
12669 SWIG_fail;
12670 }
12671 {
12672 PyThreadState* __tstate = wxPyBeginAllowThreads();
12673 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12674
12675 wxPyEndAllowThreads(__tstate);
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 Py_INCREF(Py_None); resultobj = Py_None;
12679 return resultobj;
12680 fail:
12681 return NULL;
12682 }
12683
12684
12685 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12686 PyObject *resultobj;
12687 wxDC *arg1 = (wxDC *) 0 ;
12688 wxRect *arg2 = 0 ;
12689 wxRect temp2 ;
12690 PyObject * obj0 = 0 ;
12691 PyObject * obj1 = 0 ;
12692 char *kwnames[] = {
12693 (char *) "self",(char *) "rect", NULL
12694 };
12695
12696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12699 {
12700 arg2 = &temp2;
12701 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12702 }
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12706
12707 wxPyEndAllowThreads(__tstate);
12708 if (PyErr_Occurred()) SWIG_fail;
12709 }
12710 Py_INCREF(Py_None); resultobj = Py_None;
12711 return resultobj;
12712 fail:
12713 return NULL;
12714 }
12715
12716
12717 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12718 PyObject *resultobj;
12719 wxDC *arg1 = (wxDC *) 0 ;
12720 int arg2 ;
12721 wxPoint *arg3 = (wxPoint *) 0 ;
12722 int arg4 = (int) 0 ;
12723 int arg5 = (int) 0 ;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 PyObject * obj2 = 0 ;
12727 PyObject * obj3 = 0 ;
12728 char *kwnames[] = {
12729 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12730 };
12731
12732 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12733 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12734 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12735 {
12736 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12737 if (arg3 == NULL) SWIG_fail;
12738 }
12739 if (obj2) {
12740 arg4 = (int) SWIG_AsInt(obj2);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 if (obj3) {
12744 arg5 = (int) SWIG_AsInt(obj3);
12745 if (PyErr_Occurred()) SWIG_fail;
12746 }
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12750
12751 wxPyEndAllowThreads(__tstate);
12752 if (PyErr_Occurred()) SWIG_fail;
12753 }
12754 Py_INCREF(Py_None); resultobj = Py_None;
12755 {
12756 if (arg3) delete [] arg3;
12757 }
12758 return resultobj;
12759 fail:
12760 {
12761 if (arg3) delete [] arg3;
12762 }
12763 return NULL;
12764 }
12765
12766
12767 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12768 PyObject *resultobj;
12769 wxDC *arg1 = (wxDC *) 0 ;
12770 int arg2 ;
12771 wxPoint *arg3 = (wxPoint *) 0 ;
12772 int arg4 = (int) 0 ;
12773 int arg5 = (int) 0 ;
12774 int arg6 = (int) wxODDEVEN_RULE ;
12775 PyObject * obj0 = 0 ;
12776 PyObject * obj1 = 0 ;
12777 PyObject * obj2 = 0 ;
12778 PyObject * obj3 = 0 ;
12779 PyObject * obj4 = 0 ;
12780 char *kwnames[] = {
12781 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12782 };
12783
12784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12787 {
12788 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12789 if (arg3 == NULL) SWIG_fail;
12790 }
12791 if (obj2) {
12792 arg4 = (int) SWIG_AsInt(obj2);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 if (obj3) {
12796 arg5 = (int) SWIG_AsInt(obj3);
12797 if (PyErr_Occurred()) SWIG_fail;
12798 }
12799 if (obj4) {
12800 arg6 = (int) SWIG_AsInt(obj4);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 {
12804 PyThreadState* __tstate = wxPyBeginAllowThreads();
12805 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12806
12807 wxPyEndAllowThreads(__tstate);
12808 if (PyErr_Occurred()) SWIG_fail;
12809 }
12810 Py_INCREF(Py_None); resultobj = Py_None;
12811 {
12812 if (arg3) delete [] arg3;
12813 }
12814 return resultobj;
12815 fail:
12816 {
12817 if (arg3) delete [] arg3;
12818 }
12819 return NULL;
12820 }
12821
12822
12823 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12824 PyObject *resultobj;
12825 wxDC *arg1 = (wxDC *) 0 ;
12826 wxString *arg2 = 0 ;
12827 wxRect *arg3 = 0 ;
12828 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12829 int arg5 = (int) -1 ;
12830 bool temp2 = False ;
12831 wxRect temp3 ;
12832 PyObject * obj0 = 0 ;
12833 PyObject * obj1 = 0 ;
12834 PyObject * obj2 = 0 ;
12835 PyObject * obj3 = 0 ;
12836 PyObject * obj4 = 0 ;
12837 char *kwnames[] = {
12838 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12839 };
12840
12841 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12842 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12843 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12844 {
12845 arg2 = wxString_in_helper(obj1);
12846 if (arg2 == NULL) SWIG_fail;
12847 temp2 = True;
12848 }
12849 {
12850 arg3 = &temp3;
12851 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12852 }
12853 if (obj3) {
12854 arg4 = (int) SWIG_AsInt(obj3);
12855 if (PyErr_Occurred()) SWIG_fail;
12856 }
12857 if (obj4) {
12858 arg5 = (int) SWIG_AsInt(obj4);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 {
12862 PyThreadState* __tstate = wxPyBeginAllowThreads();
12863 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12864
12865 wxPyEndAllowThreads(__tstate);
12866 if (PyErr_Occurred()) SWIG_fail;
12867 }
12868 Py_INCREF(Py_None); resultobj = Py_None;
12869 {
12870 if (temp2)
12871 delete arg2;
12872 }
12873 return resultobj;
12874 fail:
12875 {
12876 if (temp2)
12877 delete arg2;
12878 }
12879 return NULL;
12880 }
12881
12882
12883 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12884 PyObject *resultobj;
12885 wxDC *arg1 = (wxDC *) 0 ;
12886 wxString *arg2 = 0 ;
12887 wxBitmap *arg3 = 0 ;
12888 wxRect *arg4 = 0 ;
12889 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12890 int arg6 = (int) -1 ;
12891 wxRect result;
12892 bool temp2 = False ;
12893 wxRect temp4 ;
12894 PyObject * obj0 = 0 ;
12895 PyObject * obj1 = 0 ;
12896 PyObject * obj2 = 0 ;
12897 PyObject * obj3 = 0 ;
12898 PyObject * obj4 = 0 ;
12899 PyObject * obj5 = 0 ;
12900 char *kwnames[] = {
12901 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12902 };
12903
12904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12907 {
12908 arg2 = wxString_in_helper(obj1);
12909 if (arg2 == NULL) SWIG_fail;
12910 temp2 = True;
12911 }
12912 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12913 SWIG_POINTER_EXCEPTION | 0)) == -1)
12914 SWIG_fail;
12915 if (arg3 == NULL) {
12916 PyErr_SetString(PyExc_TypeError,"null reference");
12917 SWIG_fail;
12918 }
12919 {
12920 arg4 = &temp4;
12921 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12922 }
12923 if (obj4) {
12924 arg5 = (int) SWIG_AsInt(obj4);
12925 if (PyErr_Occurred()) SWIG_fail;
12926 }
12927 if (obj5) {
12928 arg6 = (int) SWIG_AsInt(obj5);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
12932 PyThreadState* __tstate = wxPyBeginAllowThreads();
12933 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12934
12935 wxPyEndAllowThreads(__tstate);
12936 if (PyErr_Occurred()) SWIG_fail;
12937 }
12938 {
12939 wxRect * resultptr;
12940 resultptr = new wxRect((wxRect &) result);
12941 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12942 }
12943 {
12944 if (temp2)
12945 delete arg2;
12946 }
12947 return resultobj;
12948 fail:
12949 {
12950 if (temp2)
12951 delete arg2;
12952 }
12953 return NULL;
12954 }
12955
12956
12957 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj;
12959 wxDC *arg1 = (wxDC *) 0 ;
12960 int arg2 ;
12961 wxPoint *arg3 = (wxPoint *) 0 ;
12962 PyObject * obj0 = 0 ;
12963 PyObject * obj1 = 0 ;
12964 char *kwnames[] = {
12965 (char *) "self",(char *) "points", NULL
12966 };
12967
12968 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12969 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12970 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12971 {
12972 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12973 if (arg3 == NULL) SWIG_fail;
12974 }
12975 {
12976 PyThreadState* __tstate = wxPyBeginAllowThreads();
12977 (arg1)->DrawSpline(arg2,arg3);
12978
12979 wxPyEndAllowThreads(__tstate);
12980 if (PyErr_Occurred()) SWIG_fail;
12981 }
12982 Py_INCREF(Py_None); resultobj = Py_None;
12983 {
12984 if (arg3) delete [] arg3;
12985 }
12986 return resultobj;
12987 fail:
12988 {
12989 if (arg3) delete [] arg3;
12990 }
12991 return NULL;
12992 }
12993
12994
12995 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj;
12997 wxDC *arg1 = (wxDC *) 0 ;
12998 PyObject * obj0 = 0 ;
12999 char *kwnames[] = {
13000 (char *) "self", NULL
13001 };
13002
13003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
13004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 (arg1)->Clear();
13009
13010 wxPyEndAllowThreads(__tstate);
13011 if (PyErr_Occurred()) SWIG_fail;
13012 }
13013 Py_INCREF(Py_None); resultobj = Py_None;
13014 return resultobj;
13015 fail:
13016 return NULL;
13017 }
13018
13019
13020 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
13021 PyObject *resultobj;
13022 wxDC *arg1 = (wxDC *) 0 ;
13023 wxString *arg2 = 0 ;
13024 bool result;
13025 bool temp2 = False ;
13026 PyObject * obj0 = 0 ;
13027 PyObject * obj1 = 0 ;
13028 char *kwnames[] = {
13029 (char *) "self",(char *) "message", NULL
13030 };
13031
13032 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
13033 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13034 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13035 {
13036 arg2 = wxString_in_helper(obj1);
13037 if (arg2 == NULL) SWIG_fail;
13038 temp2 = True;
13039 }
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
13043
13044 wxPyEndAllowThreads(__tstate);
13045 if (PyErr_Occurred()) SWIG_fail;
13046 }
13047 {
13048 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13049 }
13050 {
13051 if (temp2)
13052 delete arg2;
13053 }
13054 return resultobj;
13055 fail:
13056 {
13057 if (temp2)
13058 delete arg2;
13059 }
13060 return NULL;
13061 }
13062
13063
13064 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj;
13066 wxDC *arg1 = (wxDC *) 0 ;
13067 PyObject * obj0 = 0 ;
13068 char *kwnames[] = {
13069 (char *) "self", NULL
13070 };
13071
13072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
13073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13075 {
13076 PyThreadState* __tstate = wxPyBeginAllowThreads();
13077 (arg1)->EndDoc();
13078
13079 wxPyEndAllowThreads(__tstate);
13080 if (PyErr_Occurred()) SWIG_fail;
13081 }
13082 Py_INCREF(Py_None); resultobj = Py_None;
13083 return resultobj;
13084 fail:
13085 return NULL;
13086 }
13087
13088
13089 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13090 PyObject *resultobj;
13091 wxDC *arg1 = (wxDC *) 0 ;
13092 PyObject * obj0 = 0 ;
13093 char *kwnames[] = {
13094 (char *) "self", NULL
13095 };
13096
13097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
13098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13100 {
13101 PyThreadState* __tstate = wxPyBeginAllowThreads();
13102 (arg1)->StartPage();
13103
13104 wxPyEndAllowThreads(__tstate);
13105 if (PyErr_Occurred()) SWIG_fail;
13106 }
13107 Py_INCREF(Py_None); resultobj = Py_None;
13108 return resultobj;
13109 fail:
13110 return NULL;
13111 }
13112
13113
13114 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
13115 PyObject *resultobj;
13116 wxDC *arg1 = (wxDC *) 0 ;
13117 PyObject * obj0 = 0 ;
13118 char *kwnames[] = {
13119 (char *) "self", NULL
13120 };
13121
13122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
13123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13125 {
13126 PyThreadState* __tstate = wxPyBeginAllowThreads();
13127 (arg1)->EndPage();
13128
13129 wxPyEndAllowThreads(__tstate);
13130 if (PyErr_Occurred()) SWIG_fail;
13131 }
13132 Py_INCREF(Py_None); resultobj = Py_None;
13133 return resultobj;
13134 fail:
13135 return NULL;
13136 }
13137
13138
13139 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13140 PyObject *resultobj;
13141 wxDC *arg1 = (wxDC *) 0 ;
13142 wxFont *arg2 = 0 ;
13143 PyObject * obj0 = 0 ;
13144 PyObject * obj1 = 0 ;
13145 char *kwnames[] = {
13146 (char *) "self",(char *) "font", NULL
13147 };
13148
13149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
13150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13152 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
13153 SWIG_POINTER_EXCEPTION | 0)) == -1)
13154 SWIG_fail;
13155 if (arg2 == NULL) {
13156 PyErr_SetString(PyExc_TypeError,"null reference");
13157 SWIG_fail;
13158 }
13159 {
13160 PyThreadState* __tstate = wxPyBeginAllowThreads();
13161 (arg1)->SetFont((wxFont const &)*arg2);
13162
13163 wxPyEndAllowThreads(__tstate);
13164 if (PyErr_Occurred()) SWIG_fail;
13165 }
13166 Py_INCREF(Py_None); resultobj = Py_None;
13167 return resultobj;
13168 fail:
13169 return NULL;
13170 }
13171
13172
13173 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13174 PyObject *resultobj;
13175 wxDC *arg1 = (wxDC *) 0 ;
13176 wxPen *arg2 = 0 ;
13177 PyObject * obj0 = 0 ;
13178 PyObject * obj1 = 0 ;
13179 char *kwnames[] = {
13180 (char *) "self",(char *) "pen", NULL
13181 };
13182
13183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
13184 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13185 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13186 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
13187 SWIG_POINTER_EXCEPTION | 0)) == -1)
13188 SWIG_fail;
13189 if (arg2 == NULL) {
13190 PyErr_SetString(PyExc_TypeError,"null reference");
13191 SWIG_fail;
13192 }
13193 {
13194 PyThreadState* __tstate = wxPyBeginAllowThreads();
13195 (arg1)->SetPen((wxPen const &)*arg2);
13196
13197 wxPyEndAllowThreads(__tstate);
13198 if (PyErr_Occurred()) SWIG_fail;
13199 }
13200 Py_INCREF(Py_None); resultobj = Py_None;
13201 return resultobj;
13202 fail:
13203 return NULL;
13204 }
13205
13206
13207 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13208 PyObject *resultobj;
13209 wxDC *arg1 = (wxDC *) 0 ;
13210 wxBrush *arg2 = 0 ;
13211 PyObject * obj0 = 0 ;
13212 PyObject * obj1 = 0 ;
13213 char *kwnames[] = {
13214 (char *) "self",(char *) "brush", NULL
13215 };
13216
13217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
13218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13220 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13221 SWIG_POINTER_EXCEPTION | 0)) == -1)
13222 SWIG_fail;
13223 if (arg2 == NULL) {
13224 PyErr_SetString(PyExc_TypeError,"null reference");
13225 SWIG_fail;
13226 }
13227 {
13228 PyThreadState* __tstate = wxPyBeginAllowThreads();
13229 (arg1)->SetBrush((wxBrush const &)*arg2);
13230
13231 wxPyEndAllowThreads(__tstate);
13232 if (PyErr_Occurred()) SWIG_fail;
13233 }
13234 Py_INCREF(Py_None); resultobj = Py_None;
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxDC *arg1 = (wxDC *) 0 ;
13244 wxBrush *arg2 = 0 ;
13245 PyObject * obj0 = 0 ;
13246 PyObject * obj1 = 0 ;
13247 char *kwnames[] = {
13248 (char *) "self",(char *) "brush", NULL
13249 };
13250
13251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
13252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13254 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
13255 SWIG_POINTER_EXCEPTION | 0)) == -1)
13256 SWIG_fail;
13257 if (arg2 == NULL) {
13258 PyErr_SetString(PyExc_TypeError,"null reference");
13259 SWIG_fail;
13260 }
13261 {
13262 PyThreadState* __tstate = wxPyBeginAllowThreads();
13263 (arg1)->SetBackground((wxBrush const &)*arg2);
13264
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 Py_INCREF(Py_None); resultobj = Py_None;
13269 return resultobj;
13270 fail:
13271 return NULL;
13272 }
13273
13274
13275 static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13276 PyObject *resultobj;
13277 wxDC *arg1 = (wxDC *) 0 ;
13278 int arg2 ;
13279 PyObject * obj0 = 0 ;
13280 PyObject * obj1 = 0 ;
13281 char *kwnames[] = {
13282 (char *) "self",(char *) "mode", NULL
13283 };
13284
13285 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
13286 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13287 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13288 arg2 = (int) SWIG_AsInt(obj1);
13289 if (PyErr_Occurred()) SWIG_fail;
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 (arg1)->SetBackgroundMode(arg2);
13293
13294 wxPyEndAllowThreads(__tstate);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 }
13297 Py_INCREF(Py_None); resultobj = Py_None;
13298 return resultobj;
13299 fail:
13300 return NULL;
13301 }
13302
13303
13304 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
13305 PyObject *resultobj;
13306 wxDC *arg1 = (wxDC *) 0 ;
13307 wxPalette *arg2 = 0 ;
13308 PyObject * obj0 = 0 ;
13309 PyObject * obj1 = 0 ;
13310 char *kwnames[] = {
13311 (char *) "self",(char *) "palette", NULL
13312 };
13313
13314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
13315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
13318 SWIG_POINTER_EXCEPTION | 0)) == -1)
13319 SWIG_fail;
13320 if (arg2 == NULL) {
13321 PyErr_SetString(PyExc_TypeError,"null reference");
13322 SWIG_fail;
13323 }
13324 {
13325 PyThreadState* __tstate = wxPyBeginAllowThreads();
13326 (arg1)->SetPalette((wxPalette const &)*arg2);
13327
13328 wxPyEndAllowThreads(__tstate);
13329 if (PyErr_Occurred()) SWIG_fail;
13330 }
13331 Py_INCREF(Py_None); resultobj = Py_None;
13332 return resultobj;
13333 fail:
13334 return NULL;
13335 }
13336
13337
13338 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
13339 PyObject *resultobj;
13340 wxDC *arg1 = (wxDC *) 0 ;
13341 PyObject * obj0 = 0 ;
13342 char *kwnames[] = {
13343 (char *) "self", NULL
13344 };
13345
13346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
13347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 (arg1)->DestroyClippingRegion();
13352
13353 wxPyEndAllowThreads(__tstate);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 }
13356 Py_INCREF(Py_None); resultobj = Py_None;
13357 return resultobj;
13358 fail:
13359 return NULL;
13360 }
13361
13362
13363 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxDC *arg1 = (wxDC *) 0 ;
13366 int *arg2 = (int *) 0 ;
13367 int *arg3 = (int *) 0 ;
13368 int *arg4 = (int *) 0 ;
13369 int *arg5 = (int *) 0 ;
13370 int temp2 ;
13371 int temp3 ;
13372 int temp4 ;
13373 int temp5 ;
13374 PyObject * obj0 = 0 ;
13375 char *kwnames[] = {
13376 (char *) "self", NULL
13377 };
13378
13379 arg2 = &temp2;
13380 arg3 = &temp3;
13381 arg4 = &temp4;
13382 arg5 = &temp5;
13383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
13384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
13389
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 Py_INCREF(Py_None); resultobj = Py_None;
13394 {
13395 PyObject *o = PyInt_FromLong((long) (*arg2));
13396 resultobj = t_output_helper(resultobj,o);
13397 }
13398 {
13399 PyObject *o = PyInt_FromLong((long) (*arg3));
13400 resultobj = t_output_helper(resultobj,o);
13401 }
13402 {
13403 PyObject *o = PyInt_FromLong((long) (*arg4));
13404 resultobj = t_output_helper(resultobj,o);
13405 }
13406 {
13407 PyObject *o = PyInt_FromLong((long) (*arg5));
13408 resultobj = t_output_helper(resultobj,o);
13409 }
13410 return resultobj;
13411 fail:
13412 return NULL;
13413 }
13414
13415
13416 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
13417 PyObject *resultobj;
13418 wxDC *arg1 = (wxDC *) 0 ;
13419 wxRect result;
13420 PyObject * obj0 = 0 ;
13421 char *kwnames[] = {
13422 (char *) "self", NULL
13423 };
13424
13425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
13426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13428 {
13429 PyThreadState* __tstate = wxPyBeginAllowThreads();
13430 result = wxDC_GetClippingRect(arg1);
13431
13432 wxPyEndAllowThreads(__tstate);
13433 if (PyErr_Occurred()) SWIG_fail;
13434 }
13435 {
13436 wxRect * resultptr;
13437 resultptr = new wxRect((wxRect &) result);
13438 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
13439 }
13440 return resultobj;
13441 fail:
13442 return NULL;
13443 }
13444
13445
13446 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
13447 PyObject *resultobj;
13448 wxDC *arg1 = (wxDC *) 0 ;
13449 int result;
13450 PyObject * obj0 = 0 ;
13451 char *kwnames[] = {
13452 (char *) "self", NULL
13453 };
13454
13455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
13456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13458 {
13459 PyThreadState* __tstate = wxPyBeginAllowThreads();
13460 result = (int)((wxDC const *)arg1)->GetCharHeight();
13461
13462 wxPyEndAllowThreads(__tstate);
13463 if (PyErr_Occurred()) SWIG_fail;
13464 }
13465 resultobj = SWIG_FromInt((int)result);
13466 return resultobj;
13467 fail:
13468 return NULL;
13469 }
13470
13471
13472 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
13473 PyObject *resultobj;
13474 wxDC *arg1 = (wxDC *) 0 ;
13475 int result;
13476 PyObject * obj0 = 0 ;
13477 char *kwnames[] = {
13478 (char *) "self", NULL
13479 };
13480
13481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
13482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13484 {
13485 PyThreadState* __tstate = wxPyBeginAllowThreads();
13486 result = (int)((wxDC const *)arg1)->GetCharWidth();
13487
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 resultobj = SWIG_FromInt((int)result);
13492 return resultobj;
13493 fail:
13494 return NULL;
13495 }
13496
13497
13498 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13499 PyObject *resultobj;
13500 wxDC *arg1 = (wxDC *) 0 ;
13501 wxString *arg2 = 0 ;
13502 int *arg3 = (int *) 0 ;
13503 int *arg4 = (int *) 0 ;
13504 bool temp2 = False ;
13505 int temp3 ;
13506 int temp4 ;
13507 PyObject * obj0 = 0 ;
13508 PyObject * obj1 = 0 ;
13509 char *kwnames[] = {
13510 (char *) "self",(char *) "string", NULL
13511 };
13512
13513 arg3 = &temp3;
13514 arg4 = &temp4;
13515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
13516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13518 {
13519 arg2 = wxString_in_helper(obj1);
13520 if (arg2 == NULL) SWIG_fail;
13521 temp2 = True;
13522 }
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
13526
13527 wxPyEndAllowThreads(__tstate);
13528 if (PyErr_Occurred()) SWIG_fail;
13529 }
13530 Py_INCREF(Py_None); resultobj = Py_None;
13531 {
13532 PyObject *o = PyInt_FromLong((long) (*arg3));
13533 resultobj = t_output_helper(resultobj,o);
13534 }
13535 {
13536 PyObject *o = PyInt_FromLong((long) (*arg4));
13537 resultobj = t_output_helper(resultobj,o);
13538 }
13539 {
13540 if (temp2)
13541 delete arg2;
13542 }
13543 return resultobj;
13544 fail:
13545 {
13546 if (temp2)
13547 delete arg2;
13548 }
13549 return NULL;
13550 }
13551
13552
13553 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13554 PyObject *resultobj;
13555 wxDC *arg1 = (wxDC *) 0 ;
13556 wxString *arg2 = 0 ;
13557 int *arg3 = (int *) 0 ;
13558 int *arg4 = (int *) 0 ;
13559 int *arg5 = (int *) 0 ;
13560 int *arg6 = (int *) 0 ;
13561 wxFont *arg7 = (wxFont *) NULL ;
13562 bool temp2 = False ;
13563 int temp3 ;
13564 int temp4 ;
13565 int temp5 ;
13566 int temp6 ;
13567 PyObject * obj0 = 0 ;
13568 PyObject * obj1 = 0 ;
13569 PyObject * obj2 = 0 ;
13570 char *kwnames[] = {
13571 (char *) "self",(char *) "string",(char *) "font", NULL
13572 };
13573
13574 arg3 = &temp3;
13575 arg4 = &temp4;
13576 arg5 = &temp5;
13577 arg6 = &temp6;
13578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13581 {
13582 arg2 = wxString_in_helper(obj1);
13583 if (arg2 == NULL) SWIG_fail;
13584 temp2 = True;
13585 }
13586 if (obj2) {
13587 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13588 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13589 }
13590 {
13591 PyThreadState* __tstate = wxPyBeginAllowThreads();
13592 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13593
13594 wxPyEndAllowThreads(__tstate);
13595 if (PyErr_Occurred()) SWIG_fail;
13596 }
13597 Py_INCREF(Py_None); resultobj = Py_None;
13598 {
13599 PyObject *o = PyInt_FromLong((long) (*arg3));
13600 resultobj = t_output_helper(resultobj,o);
13601 }
13602 {
13603 PyObject *o = PyInt_FromLong((long) (*arg4));
13604 resultobj = t_output_helper(resultobj,o);
13605 }
13606 {
13607 PyObject *o = PyInt_FromLong((long) (*arg5));
13608 resultobj = t_output_helper(resultobj,o);
13609 }
13610 {
13611 PyObject *o = PyInt_FromLong((long) (*arg6));
13612 resultobj = t_output_helper(resultobj,o);
13613 }
13614 {
13615 if (temp2)
13616 delete arg2;
13617 }
13618 return resultobj;
13619 fail:
13620 {
13621 if (temp2)
13622 delete arg2;
13623 }
13624 return NULL;
13625 }
13626
13627
13628 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13629 PyObject *resultobj;
13630 wxDC *arg1 = (wxDC *) 0 ;
13631 wxString *arg2 = 0 ;
13632 int *arg3 = (int *) 0 ;
13633 int *arg4 = (int *) 0 ;
13634 int *arg5 = (int *) 0 ;
13635 wxFont *arg6 = (wxFont *) NULL ;
13636 bool temp2 = False ;
13637 int temp3 ;
13638 int temp4 ;
13639 int temp5 ;
13640 PyObject * obj0 = 0 ;
13641 PyObject * obj1 = 0 ;
13642 PyObject * obj2 = 0 ;
13643 char *kwnames[] = {
13644 (char *) "self",(char *) "text",(char *) "font", NULL
13645 };
13646
13647 arg3 = &temp3;
13648 arg4 = &temp4;
13649 arg5 = &temp5;
13650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13653 {
13654 arg2 = wxString_in_helper(obj1);
13655 if (arg2 == NULL) SWIG_fail;
13656 temp2 = True;
13657 }
13658 if (obj2) {
13659 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13661 }
13662 {
13663 PyThreadState* __tstate = wxPyBeginAllowThreads();
13664 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13665
13666 wxPyEndAllowThreads(__tstate);
13667 if (PyErr_Occurred()) SWIG_fail;
13668 }
13669 Py_INCREF(Py_None); resultobj = Py_None;
13670 {
13671 PyObject *o = PyInt_FromLong((long) (*arg3));
13672 resultobj = t_output_helper(resultobj,o);
13673 }
13674 {
13675 PyObject *o = PyInt_FromLong((long) (*arg4));
13676 resultobj = t_output_helper(resultobj,o);
13677 }
13678 {
13679 PyObject *o = PyInt_FromLong((long) (*arg5));
13680 resultobj = t_output_helper(resultobj,o);
13681 }
13682 {
13683 if (temp2)
13684 delete arg2;
13685 }
13686 return resultobj;
13687 fail:
13688 {
13689 if (temp2)
13690 delete arg2;
13691 }
13692 return NULL;
13693 }
13694
13695
13696 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13697 PyObject *resultobj;
13698 wxDC *arg1 = (wxDC *) 0 ;
13699 wxString *arg2 = 0 ;
13700 wxArrayInt result;
13701 bool temp2 = False ;
13702 PyObject * obj0 = 0 ;
13703 PyObject * obj1 = 0 ;
13704 char *kwnames[] = {
13705 (char *) "self",(char *) "text", NULL
13706 };
13707
13708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13711 {
13712 arg2 = wxString_in_helper(obj1);
13713 if (arg2 == NULL) SWIG_fail;
13714 temp2 = True;
13715 }
13716 {
13717 PyThreadState* __tstate = wxPyBeginAllowThreads();
13718 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13719
13720 wxPyEndAllowThreads(__tstate);
13721 if (PyErr_Occurred()) SWIG_fail;
13722 }
13723 {
13724 resultobj = PyList_New(0);
13725 size_t idx;
13726 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13727 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13728 PyList_Append(resultobj, val);
13729 Py_DECREF(val);
13730 }
13731 }
13732 {
13733 if (temp2)
13734 delete arg2;
13735 }
13736 return resultobj;
13737 fail:
13738 {
13739 if (temp2)
13740 delete arg2;
13741 }
13742 return NULL;
13743 }
13744
13745
13746 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj;
13748 wxDC *arg1 = (wxDC *) 0 ;
13749 wxSize result;
13750 PyObject * obj0 = 0 ;
13751 char *kwnames[] = {
13752 (char *) "self", NULL
13753 };
13754
13755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13758 {
13759 PyThreadState* __tstate = wxPyBeginAllowThreads();
13760 result = (arg1)->GetSize();
13761
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 {
13766 wxSize * resultptr;
13767 resultptr = new wxSize((wxSize &) result);
13768 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13769 }
13770 return resultobj;
13771 fail:
13772 return NULL;
13773 }
13774
13775
13776 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13777 PyObject *resultobj;
13778 wxDC *arg1 = (wxDC *) 0 ;
13779 int *arg2 = (int *) 0 ;
13780 int *arg3 = (int *) 0 ;
13781 int temp2 ;
13782 int temp3 ;
13783 PyObject * obj0 = 0 ;
13784 char *kwnames[] = {
13785 (char *) "self", NULL
13786 };
13787
13788 arg2 = &temp2;
13789 arg3 = &temp3;
13790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13793 {
13794 PyThreadState* __tstate = wxPyBeginAllowThreads();
13795 (arg1)->GetSize(arg2,arg3);
13796
13797 wxPyEndAllowThreads(__tstate);
13798 if (PyErr_Occurred()) SWIG_fail;
13799 }
13800 Py_INCREF(Py_None); resultobj = Py_None;
13801 {
13802 PyObject *o = PyInt_FromLong((long) (*arg2));
13803 resultobj = t_output_helper(resultobj,o);
13804 }
13805 {
13806 PyObject *o = PyInt_FromLong((long) (*arg3));
13807 resultobj = t_output_helper(resultobj,o);
13808 }
13809 return resultobj;
13810 fail:
13811 return NULL;
13812 }
13813
13814
13815 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13816 PyObject *resultobj;
13817 wxDC *arg1 = (wxDC *) 0 ;
13818 wxSize result;
13819 PyObject * obj0 = 0 ;
13820 char *kwnames[] = {
13821 (char *) "self", NULL
13822 };
13823
13824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 result = ((wxDC const *)arg1)->GetSizeMM();
13830
13831 wxPyEndAllowThreads(__tstate);
13832 if (PyErr_Occurred()) SWIG_fail;
13833 }
13834 {
13835 wxSize * resultptr;
13836 resultptr = new wxSize((wxSize &) result);
13837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13838 }
13839 return resultobj;
13840 fail:
13841 return NULL;
13842 }
13843
13844
13845 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13846 PyObject *resultobj;
13847 wxDC *arg1 = (wxDC *) 0 ;
13848 int *arg2 = (int *) 0 ;
13849 int *arg3 = (int *) 0 ;
13850 int temp2 ;
13851 int temp3 ;
13852 PyObject * obj0 = 0 ;
13853 char *kwnames[] = {
13854 (char *) "self", NULL
13855 };
13856
13857 arg2 = &temp2;
13858 arg3 = &temp3;
13859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13862 {
13863 PyThreadState* __tstate = wxPyBeginAllowThreads();
13864 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13865
13866 wxPyEndAllowThreads(__tstate);
13867 if (PyErr_Occurred()) SWIG_fail;
13868 }
13869 Py_INCREF(Py_None); resultobj = Py_None;
13870 {
13871 PyObject *o = PyInt_FromLong((long) (*arg2));
13872 resultobj = t_output_helper(resultobj,o);
13873 }
13874 {
13875 PyObject *o = PyInt_FromLong((long) (*arg3));
13876 resultobj = t_output_helper(resultobj,o);
13877 }
13878 return resultobj;
13879 fail:
13880 return NULL;
13881 }
13882
13883
13884 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13885 PyObject *resultobj;
13886 wxDC *arg1 = (wxDC *) 0 ;
13887 int arg2 ;
13888 int result;
13889 PyObject * obj0 = 0 ;
13890 PyObject * obj1 = 0 ;
13891 char *kwnames[] = {
13892 (char *) "self",(char *) "x", NULL
13893 };
13894
13895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13898 arg2 = (int) SWIG_AsInt(obj1);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13903
13904 wxPyEndAllowThreads(__tstate);
13905 if (PyErr_Occurred()) SWIG_fail;
13906 }
13907 resultobj = SWIG_FromInt((int)result);
13908 return resultobj;
13909 fail:
13910 return NULL;
13911 }
13912
13913
13914 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13915 PyObject *resultobj;
13916 wxDC *arg1 = (wxDC *) 0 ;
13917 int arg2 ;
13918 int result;
13919 PyObject * obj0 = 0 ;
13920 PyObject * obj1 = 0 ;
13921 char *kwnames[] = {
13922 (char *) "self",(char *) "y", NULL
13923 };
13924
13925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13928 arg2 = (int) SWIG_AsInt(obj1);
13929 if (PyErr_Occurred()) SWIG_fail;
13930 {
13931 PyThreadState* __tstate = wxPyBeginAllowThreads();
13932 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13933
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 resultobj = SWIG_FromInt((int)result);
13938 return resultobj;
13939 fail:
13940 return NULL;
13941 }
13942
13943
13944 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13945 PyObject *resultobj;
13946 wxDC *arg1 = (wxDC *) 0 ;
13947 int arg2 ;
13948 int result;
13949 PyObject * obj0 = 0 ;
13950 PyObject * obj1 = 0 ;
13951 char *kwnames[] = {
13952 (char *) "self",(char *) "x", NULL
13953 };
13954
13955 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13956 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13957 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13958 arg2 = (int) SWIG_AsInt(obj1);
13959 if (PyErr_Occurred()) SWIG_fail;
13960 {
13961 PyThreadState* __tstate = wxPyBeginAllowThreads();
13962 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13963
13964 wxPyEndAllowThreads(__tstate);
13965 if (PyErr_Occurred()) SWIG_fail;
13966 }
13967 resultobj = SWIG_FromInt((int)result);
13968 return resultobj;
13969 fail:
13970 return NULL;
13971 }
13972
13973
13974 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13975 PyObject *resultobj;
13976 wxDC *arg1 = (wxDC *) 0 ;
13977 int arg2 ;
13978 int result;
13979 PyObject * obj0 = 0 ;
13980 PyObject * obj1 = 0 ;
13981 char *kwnames[] = {
13982 (char *) "self",(char *) "y", NULL
13983 };
13984
13985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13988 arg2 = (int) SWIG_AsInt(obj1);
13989 if (PyErr_Occurred()) SWIG_fail;
13990 {
13991 PyThreadState* __tstate = wxPyBeginAllowThreads();
13992 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13993
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 resultobj = SWIG_FromInt((int)result);
13998 return resultobj;
13999 fail:
14000 return NULL;
14001 }
14002
14003
14004 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
14005 PyObject *resultobj;
14006 wxDC *arg1 = (wxDC *) 0 ;
14007 int arg2 ;
14008 int result;
14009 PyObject * obj0 = 0 ;
14010 PyObject * obj1 = 0 ;
14011 char *kwnames[] = {
14012 (char *) "self",(char *) "x", NULL
14013 };
14014
14015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
14016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14018 arg2 = (int) SWIG_AsInt(obj1);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 resultobj = SWIG_FromInt((int)result);
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxDC *arg1 = (wxDC *) 0 ;
14037 int arg2 ;
14038 int result;
14039 PyObject * obj0 = 0 ;
14040 PyObject * obj1 = 0 ;
14041 char *kwnames[] = {
14042 (char *) "self",(char *) "y", NULL
14043 };
14044
14045 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
14046 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14047 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14048 arg2 = (int) SWIG_AsInt(obj1);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 {
14051 PyThreadState* __tstate = wxPyBeginAllowThreads();
14052 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
14053
14054 wxPyEndAllowThreads(__tstate);
14055 if (PyErr_Occurred()) SWIG_fail;
14056 }
14057 resultobj = SWIG_FromInt((int)result);
14058 return resultobj;
14059 fail:
14060 return NULL;
14061 }
14062
14063
14064 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14065 PyObject *resultobj;
14066 wxDC *arg1 = (wxDC *) 0 ;
14067 int arg2 ;
14068 int result;
14069 PyObject * obj0 = 0 ;
14070 PyObject * obj1 = 0 ;
14071 char *kwnames[] = {
14072 (char *) "self",(char *) "x", NULL
14073 };
14074
14075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
14076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14078 arg2 = (int) SWIG_AsInt(obj1);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 {
14081 PyThreadState* __tstate = wxPyBeginAllowThreads();
14082 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
14083
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 resultobj = SWIG_FromInt((int)result);
14088 return resultobj;
14089 fail:
14090 return NULL;
14091 }
14092
14093
14094 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
14095 PyObject *resultobj;
14096 wxDC *arg1 = (wxDC *) 0 ;
14097 int arg2 ;
14098 int result;
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 char *kwnames[] = {
14102 (char *) "self",(char *) "y", NULL
14103 };
14104
14105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
14106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14108 arg2 = (int) SWIG_AsInt(obj1);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 {
14111 PyThreadState* __tstate = wxPyBeginAllowThreads();
14112 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
14113
14114 wxPyEndAllowThreads(__tstate);
14115 if (PyErr_Occurred()) SWIG_fail;
14116 }
14117 resultobj = SWIG_FromInt((int)result);
14118 return resultobj;
14119 fail:
14120 return NULL;
14121 }
14122
14123
14124 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
14125 PyObject *resultobj;
14126 wxDC *arg1 = (wxDC *) 0 ;
14127 bool result;
14128 PyObject * obj0 = 0 ;
14129 char *kwnames[] = {
14130 (char *) "self", NULL
14131 };
14132
14133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
14134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14136 {
14137 PyThreadState* __tstate = wxPyBeginAllowThreads();
14138 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
14139
14140 wxPyEndAllowThreads(__tstate);
14141 if (PyErr_Occurred()) SWIG_fail;
14142 }
14143 {
14144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14145 }
14146 return resultobj;
14147 fail:
14148 return NULL;
14149 }
14150
14151
14152 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
14153 PyObject *resultobj;
14154 wxDC *arg1 = (wxDC *) 0 ;
14155 bool result;
14156 PyObject * obj0 = 0 ;
14157 char *kwnames[] = {
14158 (char *) "self", NULL
14159 };
14160
14161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
14162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 {
14172 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14173 }
14174 return resultobj;
14175 fail:
14176 return NULL;
14177 }
14178
14179
14180 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
14181 PyObject *resultobj;
14182 wxDC *arg1 = (wxDC *) 0 ;
14183 int result;
14184 PyObject * obj0 = 0 ;
14185 char *kwnames[] = {
14186 (char *) "self", NULL
14187 };
14188
14189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
14190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14192 {
14193 PyThreadState* __tstate = wxPyBeginAllowThreads();
14194 result = (int)((wxDC const *)arg1)->GetDepth();
14195
14196 wxPyEndAllowThreads(__tstate);
14197 if (PyErr_Occurred()) SWIG_fail;
14198 }
14199 resultobj = SWIG_FromInt((int)result);
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj;
14208 wxDC *arg1 = (wxDC *) 0 ;
14209 wxSize result;
14210 PyObject * obj0 = 0 ;
14211 char *kwnames[] = {
14212 (char *) "self", NULL
14213 };
14214
14215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
14216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14218 {
14219 PyThreadState* __tstate = wxPyBeginAllowThreads();
14220 result = ((wxDC const *)arg1)->GetPPI();
14221
14222 wxPyEndAllowThreads(__tstate);
14223 if (PyErr_Occurred()) SWIG_fail;
14224 }
14225 {
14226 wxSize * resultptr;
14227 resultptr = new wxSize((wxSize &) result);
14228 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
14229 }
14230 return resultobj;
14231 fail:
14232 return NULL;
14233 }
14234
14235
14236 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj;
14238 wxDC *arg1 = (wxDC *) 0 ;
14239 bool result;
14240 PyObject * obj0 = 0 ;
14241 char *kwnames[] = {
14242 (char *) "self", NULL
14243 };
14244
14245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
14246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14248 {
14249 PyThreadState* __tstate = wxPyBeginAllowThreads();
14250 result = (bool)((wxDC const *)arg1)->Ok();
14251
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 {
14256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14257 }
14258 return resultobj;
14259 fail:
14260 return NULL;
14261 }
14262
14263
14264 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14265 PyObject *resultobj;
14266 wxDC *arg1 = (wxDC *) 0 ;
14267 int result;
14268 PyObject * obj0 = 0 ;
14269 char *kwnames[] = {
14270 (char *) "self", NULL
14271 };
14272
14273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
14274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
14279
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 resultobj = SWIG_FromInt((int)result);
14284 return resultobj;
14285 fail:
14286 return NULL;
14287 }
14288
14289
14290 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14291 PyObject *resultobj;
14292 wxDC *arg1 = (wxDC *) 0 ;
14293 wxBrush *result;
14294 PyObject * obj0 = 0 ;
14295 char *kwnames[] = {
14296 (char *) "self", NULL
14297 };
14298
14299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
14300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14302 {
14303 PyThreadState* __tstate = wxPyBeginAllowThreads();
14304 {
14305 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
14306 result = (wxBrush *) &_result_ref;
14307 }
14308
14309 wxPyEndAllowThreads(__tstate);
14310 if (PyErr_Occurred()) SWIG_fail;
14311 }
14312 {
14313 wxBrush* resultptr = new wxBrush(*result);
14314 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14315 }
14316 return resultobj;
14317 fail:
14318 return NULL;
14319 }
14320
14321
14322 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
14323 PyObject *resultobj;
14324 wxDC *arg1 = (wxDC *) 0 ;
14325 wxBrush *result;
14326 PyObject * obj0 = 0 ;
14327 char *kwnames[] = {
14328 (char *) "self", NULL
14329 };
14330
14331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
14332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14334 {
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 {
14337 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
14338 result = (wxBrush *) &_result_ref;
14339 }
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 {
14345 wxBrush* resultptr = new wxBrush(*result);
14346 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
14347 }
14348 return resultobj;
14349 fail:
14350 return NULL;
14351 }
14352
14353
14354 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
14355 PyObject *resultobj;
14356 wxDC *arg1 = (wxDC *) 0 ;
14357 wxFont *result;
14358 PyObject * obj0 = 0 ;
14359 char *kwnames[] = {
14360 (char *) "self", NULL
14361 };
14362
14363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
14364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14366 {
14367 PyThreadState* __tstate = wxPyBeginAllowThreads();
14368 {
14369 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
14370 result = (wxFont *) &_result_ref;
14371 }
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 {
14377 wxFont* resultptr = new wxFont(*result);
14378 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
14379 }
14380 return resultobj;
14381 fail:
14382 return NULL;
14383 }
14384
14385
14386 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
14387 PyObject *resultobj;
14388 wxDC *arg1 = (wxDC *) 0 ;
14389 wxPen *result;
14390 PyObject * obj0 = 0 ;
14391 char *kwnames[] = {
14392 (char *) "self", NULL
14393 };
14394
14395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
14396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14398 {
14399 PyThreadState* __tstate = wxPyBeginAllowThreads();
14400 {
14401 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
14402 result = (wxPen *) &_result_ref;
14403 }
14404
14405 wxPyEndAllowThreads(__tstate);
14406 if (PyErr_Occurred()) SWIG_fail;
14407 }
14408 {
14409 wxPen* resultptr = new wxPen(*result);
14410 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
14411 }
14412 return resultobj;
14413 fail:
14414 return NULL;
14415 }
14416
14417
14418 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14419 PyObject *resultobj;
14420 wxDC *arg1 = (wxDC *) 0 ;
14421 wxColour *result;
14422 PyObject * obj0 = 0 ;
14423 char *kwnames[] = {
14424 (char *) "self", NULL
14425 };
14426
14427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
14428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14430 {
14431 PyThreadState* __tstate = wxPyBeginAllowThreads();
14432 {
14433 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
14434 result = (wxColour *) &_result_ref;
14435 }
14436
14437 wxPyEndAllowThreads(__tstate);
14438 if (PyErr_Occurred()) SWIG_fail;
14439 }
14440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14441 return resultobj;
14442 fail:
14443 return NULL;
14444 }
14445
14446
14447 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14448 PyObject *resultobj;
14449 wxDC *arg1 = (wxDC *) 0 ;
14450 wxColour *result;
14451 PyObject * obj0 = 0 ;
14452 char *kwnames[] = {
14453 (char *) "self", NULL
14454 };
14455
14456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
14457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14459 {
14460 PyThreadState* __tstate = wxPyBeginAllowThreads();
14461 {
14462 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
14463 result = (wxColour *) &_result_ref;
14464 }
14465
14466 wxPyEndAllowThreads(__tstate);
14467 if (PyErr_Occurred()) SWIG_fail;
14468 }
14469 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
14470 return resultobj;
14471 fail:
14472 return NULL;
14473 }
14474
14475
14476 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
14477 PyObject *resultobj;
14478 wxDC *arg1 = (wxDC *) 0 ;
14479 wxColour *arg2 = 0 ;
14480 wxColour temp2 ;
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 char *kwnames[] = {
14484 (char *) "self",(char *) "colour", NULL
14485 };
14486
14487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
14488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14490 {
14491 arg2 = &temp2;
14492 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14493 }
14494 {
14495 PyThreadState* __tstate = wxPyBeginAllowThreads();
14496 (arg1)->SetTextForeground((wxColour const &)*arg2);
14497
14498 wxPyEndAllowThreads(__tstate);
14499 if (PyErr_Occurred()) SWIG_fail;
14500 }
14501 Py_INCREF(Py_None); resultobj = Py_None;
14502 return resultobj;
14503 fail:
14504 return NULL;
14505 }
14506
14507
14508 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
14509 PyObject *resultobj;
14510 wxDC *arg1 = (wxDC *) 0 ;
14511 wxColour *arg2 = 0 ;
14512 wxColour temp2 ;
14513 PyObject * obj0 = 0 ;
14514 PyObject * obj1 = 0 ;
14515 char *kwnames[] = {
14516 (char *) "self",(char *) "colour", NULL
14517 };
14518
14519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
14520 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14521 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14522 {
14523 arg2 = &temp2;
14524 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
14525 }
14526 {
14527 PyThreadState* __tstate = wxPyBeginAllowThreads();
14528 (arg1)->SetTextBackground((wxColour const &)*arg2);
14529
14530 wxPyEndAllowThreads(__tstate);
14531 if (PyErr_Occurred()) SWIG_fail;
14532 }
14533 Py_INCREF(Py_None); resultobj = Py_None;
14534 return resultobj;
14535 fail:
14536 return NULL;
14537 }
14538
14539
14540 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14541 PyObject *resultobj;
14542 wxDC *arg1 = (wxDC *) 0 ;
14543 int result;
14544 PyObject * obj0 = 0 ;
14545 char *kwnames[] = {
14546 (char *) "self", NULL
14547 };
14548
14549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
14550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14552 {
14553 PyThreadState* __tstate = wxPyBeginAllowThreads();
14554 result = (int)((wxDC const *)arg1)->GetMapMode();
14555
14556 wxPyEndAllowThreads(__tstate);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 }
14559 resultobj = SWIG_FromInt((int)result);
14560 return resultobj;
14561 fail:
14562 return NULL;
14563 }
14564
14565
14566 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14567 PyObject *resultobj;
14568 wxDC *arg1 = (wxDC *) 0 ;
14569 int arg2 ;
14570 PyObject * obj0 = 0 ;
14571 PyObject * obj1 = 0 ;
14572 char *kwnames[] = {
14573 (char *) "self",(char *) "mode", NULL
14574 };
14575
14576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14579 arg2 = (int) SWIG_AsInt(obj1);
14580 if (PyErr_Occurred()) SWIG_fail;
14581 {
14582 PyThreadState* __tstate = wxPyBeginAllowThreads();
14583 (arg1)->SetMapMode(arg2);
14584
14585 wxPyEndAllowThreads(__tstate);
14586 if (PyErr_Occurred()) SWIG_fail;
14587 }
14588 Py_INCREF(Py_None); resultobj = Py_None;
14589 return resultobj;
14590 fail:
14591 return NULL;
14592 }
14593
14594
14595 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14596 PyObject *resultobj;
14597 wxDC *arg1 = (wxDC *) 0 ;
14598 double *arg2 = (double *) 0 ;
14599 double *arg3 = (double *) 0 ;
14600 double temp2 ;
14601 double temp3 ;
14602 PyObject * obj0 = 0 ;
14603 char *kwnames[] = {
14604 (char *) "self", NULL
14605 };
14606
14607 arg2 = &temp2;
14608 arg3 = &temp3;
14609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14612 {
14613 PyThreadState* __tstate = wxPyBeginAllowThreads();
14614 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14615
14616 wxPyEndAllowThreads(__tstate);
14617 if (PyErr_Occurred()) SWIG_fail;
14618 }
14619 Py_INCREF(Py_None); resultobj = Py_None;
14620 {
14621 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14622 resultobj = t_output_helper(resultobj,o);
14623 }
14624 {
14625 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14626 resultobj = t_output_helper(resultobj,o);
14627 }
14628 return resultobj;
14629 fail:
14630 return NULL;
14631 }
14632
14633
14634 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14635 PyObject *resultobj;
14636 wxDC *arg1 = (wxDC *) 0 ;
14637 double arg2 ;
14638 double arg3 ;
14639 PyObject * obj0 = 0 ;
14640 PyObject * obj1 = 0 ;
14641 PyObject * obj2 = 0 ;
14642 char *kwnames[] = {
14643 (char *) "self",(char *) "x",(char *) "y", NULL
14644 };
14645
14646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14649 arg2 = (double) SWIG_AsDouble(obj1);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 arg3 = (double) SWIG_AsDouble(obj2);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 {
14654 PyThreadState* __tstate = wxPyBeginAllowThreads();
14655 (arg1)->SetUserScale(arg2,arg3);
14656
14657 wxPyEndAllowThreads(__tstate);
14658 if (PyErr_Occurred()) SWIG_fail;
14659 }
14660 Py_INCREF(Py_None); resultobj = Py_None;
14661 return resultobj;
14662 fail:
14663 return NULL;
14664 }
14665
14666
14667 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14668 PyObject *resultobj;
14669 wxDC *arg1 = (wxDC *) 0 ;
14670 double *arg2 = (double *) 0 ;
14671 double *arg3 = (double *) 0 ;
14672 double temp2 ;
14673 double temp3 ;
14674 PyObject * obj0 = 0 ;
14675 char *kwnames[] = {
14676 (char *) "self", NULL
14677 };
14678
14679 arg2 = &temp2;
14680 arg3 = &temp3;
14681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14684 {
14685 PyThreadState* __tstate = wxPyBeginAllowThreads();
14686 (arg1)->GetLogicalScale(arg2,arg3);
14687
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 Py_INCREF(Py_None); resultobj = Py_None;
14692 {
14693 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14694 resultobj = t_output_helper(resultobj,o);
14695 }
14696 {
14697 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14698 resultobj = t_output_helper(resultobj,o);
14699 }
14700 return resultobj;
14701 fail:
14702 return NULL;
14703 }
14704
14705
14706 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14707 PyObject *resultobj;
14708 wxDC *arg1 = (wxDC *) 0 ;
14709 double arg2 ;
14710 double arg3 ;
14711 PyObject * obj0 = 0 ;
14712 PyObject * obj1 = 0 ;
14713 PyObject * obj2 = 0 ;
14714 char *kwnames[] = {
14715 (char *) "self",(char *) "x",(char *) "y", NULL
14716 };
14717
14718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14721 arg2 = (double) SWIG_AsDouble(obj1);
14722 if (PyErr_Occurred()) SWIG_fail;
14723 arg3 = (double) SWIG_AsDouble(obj2);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 {
14726 PyThreadState* __tstate = wxPyBeginAllowThreads();
14727 (arg1)->SetLogicalScale(arg2,arg3);
14728
14729 wxPyEndAllowThreads(__tstate);
14730 if (PyErr_Occurred()) SWIG_fail;
14731 }
14732 Py_INCREF(Py_None); resultobj = Py_None;
14733 return resultobj;
14734 fail:
14735 return NULL;
14736 }
14737
14738
14739 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14740 PyObject *resultobj;
14741 wxDC *arg1 = (wxDC *) 0 ;
14742 wxPoint result;
14743 PyObject * obj0 = 0 ;
14744 char *kwnames[] = {
14745 (char *) "self", NULL
14746 };
14747
14748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14751 {
14752 PyThreadState* __tstate = wxPyBeginAllowThreads();
14753 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14754
14755 wxPyEndAllowThreads(__tstate);
14756 if (PyErr_Occurred()) SWIG_fail;
14757 }
14758 {
14759 wxPoint * resultptr;
14760 resultptr = new wxPoint((wxPoint &) result);
14761 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14762 }
14763 return resultobj;
14764 fail:
14765 return NULL;
14766 }
14767
14768
14769 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14770 PyObject *resultobj;
14771 wxDC *arg1 = (wxDC *) 0 ;
14772 int *arg2 = (int *) 0 ;
14773 int *arg3 = (int *) 0 ;
14774 int temp2 ;
14775 int temp3 ;
14776 PyObject * obj0 = 0 ;
14777 char *kwnames[] = {
14778 (char *) "self", NULL
14779 };
14780
14781 arg2 = &temp2;
14782 arg3 = &temp3;
14783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14784 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14785 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14786 {
14787 PyThreadState* __tstate = wxPyBeginAllowThreads();
14788 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14789
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 Py_INCREF(Py_None); resultobj = Py_None;
14794 {
14795 PyObject *o = PyInt_FromLong((long) (*arg2));
14796 resultobj = t_output_helper(resultobj,o);
14797 }
14798 {
14799 PyObject *o = PyInt_FromLong((long) (*arg3));
14800 resultobj = t_output_helper(resultobj,o);
14801 }
14802 return resultobj;
14803 fail:
14804 return NULL;
14805 }
14806
14807
14808 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14809 PyObject *resultobj;
14810 wxDC *arg1 = (wxDC *) 0 ;
14811 int arg2 ;
14812 int arg3 ;
14813 PyObject * obj0 = 0 ;
14814 PyObject * obj1 = 0 ;
14815 PyObject * obj2 = 0 ;
14816 char *kwnames[] = {
14817 (char *) "self",(char *) "x",(char *) "y", NULL
14818 };
14819
14820 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14821 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14822 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14823 arg2 = (int) SWIG_AsInt(obj1);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 arg3 = (int) SWIG_AsInt(obj2);
14826 if (PyErr_Occurred()) SWIG_fail;
14827 {
14828 PyThreadState* __tstate = wxPyBeginAllowThreads();
14829 (arg1)->SetLogicalOrigin(arg2,arg3);
14830
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 Py_INCREF(Py_None); resultobj = Py_None;
14835 return resultobj;
14836 fail:
14837 return NULL;
14838 }
14839
14840
14841 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14842 PyObject *resultobj;
14843 wxDC *arg1 = (wxDC *) 0 ;
14844 wxPoint *arg2 = 0 ;
14845 wxPoint temp2 ;
14846 PyObject * obj0 = 0 ;
14847 PyObject * obj1 = 0 ;
14848 char *kwnames[] = {
14849 (char *) "self",(char *) "point", NULL
14850 };
14851
14852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14855 {
14856 arg2 = &temp2;
14857 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14858 }
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14862
14863 wxPyEndAllowThreads(__tstate);
14864 if (PyErr_Occurred()) SWIG_fail;
14865 }
14866 Py_INCREF(Py_None); resultobj = Py_None;
14867 return resultobj;
14868 fail:
14869 return NULL;
14870 }
14871
14872
14873 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14874 PyObject *resultobj;
14875 wxDC *arg1 = (wxDC *) 0 ;
14876 wxPoint result;
14877 PyObject * obj0 = 0 ;
14878 char *kwnames[] = {
14879 (char *) "self", NULL
14880 };
14881
14882 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14883 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14884 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 {
14893 wxPoint * resultptr;
14894 resultptr = new wxPoint((wxPoint &) result);
14895 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14896 }
14897 return resultobj;
14898 fail:
14899 return NULL;
14900 }
14901
14902
14903 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14904 PyObject *resultobj;
14905 wxDC *arg1 = (wxDC *) 0 ;
14906 int *arg2 = (int *) 0 ;
14907 int *arg3 = (int *) 0 ;
14908 int temp2 ;
14909 int temp3 ;
14910 PyObject * obj0 = 0 ;
14911 char *kwnames[] = {
14912 (char *) "self", NULL
14913 };
14914
14915 arg2 = &temp2;
14916 arg3 = &temp3;
14917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14923
14924 wxPyEndAllowThreads(__tstate);
14925 if (PyErr_Occurred()) SWIG_fail;
14926 }
14927 Py_INCREF(Py_None); resultobj = Py_None;
14928 {
14929 PyObject *o = PyInt_FromLong((long) (*arg2));
14930 resultobj = t_output_helper(resultobj,o);
14931 }
14932 {
14933 PyObject *o = PyInt_FromLong((long) (*arg3));
14934 resultobj = t_output_helper(resultobj,o);
14935 }
14936 return resultobj;
14937 fail:
14938 return NULL;
14939 }
14940
14941
14942 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj;
14944 wxDC *arg1 = (wxDC *) 0 ;
14945 int arg2 ;
14946 int arg3 ;
14947 PyObject * obj0 = 0 ;
14948 PyObject * obj1 = 0 ;
14949 PyObject * obj2 = 0 ;
14950 char *kwnames[] = {
14951 (char *) "self",(char *) "x",(char *) "y", NULL
14952 };
14953
14954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14957 arg2 = (int) SWIG_AsInt(obj1);
14958 if (PyErr_Occurred()) SWIG_fail;
14959 arg3 = (int) SWIG_AsInt(obj2);
14960 if (PyErr_Occurred()) SWIG_fail;
14961 {
14962 PyThreadState* __tstate = wxPyBeginAllowThreads();
14963 (arg1)->SetDeviceOrigin(arg2,arg3);
14964
14965 wxPyEndAllowThreads(__tstate);
14966 if (PyErr_Occurred()) SWIG_fail;
14967 }
14968 Py_INCREF(Py_None); resultobj = Py_None;
14969 return resultobj;
14970 fail:
14971 return NULL;
14972 }
14973
14974
14975 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14976 PyObject *resultobj;
14977 wxDC *arg1 = (wxDC *) 0 ;
14978 wxPoint *arg2 = 0 ;
14979 wxPoint temp2 ;
14980 PyObject * obj0 = 0 ;
14981 PyObject * obj1 = 0 ;
14982 char *kwnames[] = {
14983 (char *) "self",(char *) "point", NULL
14984 };
14985
14986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14989 {
14990 arg2 = &temp2;
14991 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14992 }
14993 {
14994 PyThreadState* __tstate = wxPyBeginAllowThreads();
14995 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14996
14997 wxPyEndAllowThreads(__tstate);
14998 if (PyErr_Occurred()) SWIG_fail;
14999 }
15000 Py_INCREF(Py_None); resultobj = Py_None;
15001 return resultobj;
15002 fail:
15003 return NULL;
15004 }
15005
15006
15007 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
15008 PyObject *resultobj;
15009 wxDC *arg1 = (wxDC *) 0 ;
15010 bool arg2 ;
15011 bool arg3 ;
15012 PyObject * obj0 = 0 ;
15013 PyObject * obj1 = 0 ;
15014 PyObject * obj2 = 0 ;
15015 char *kwnames[] = {
15016 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
15017 };
15018
15019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
15020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15022 arg2 = (bool) SWIG_AsBool(obj1);
15023 if (PyErr_Occurred()) SWIG_fail;
15024 arg3 = (bool) SWIG_AsBool(obj2);
15025 if (PyErr_Occurred()) SWIG_fail;
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 (arg1)->SetAxisOrientation(arg2,arg3);
15029
15030 wxPyEndAllowThreads(__tstate);
15031 if (PyErr_Occurred()) SWIG_fail;
15032 }
15033 Py_INCREF(Py_None); resultobj = Py_None;
15034 return resultobj;
15035 fail:
15036 return NULL;
15037 }
15038
15039
15040 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15041 PyObject *resultobj;
15042 wxDC *arg1 = (wxDC *) 0 ;
15043 int result;
15044 PyObject * obj0 = 0 ;
15045 char *kwnames[] = {
15046 (char *) "self", NULL
15047 };
15048
15049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
15050 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15051 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15052 {
15053 PyThreadState* __tstate = wxPyBeginAllowThreads();
15054 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
15055
15056 wxPyEndAllowThreads(__tstate);
15057 if (PyErr_Occurred()) SWIG_fail;
15058 }
15059 resultobj = SWIG_FromInt((int)result);
15060 return resultobj;
15061 fail:
15062 return NULL;
15063 }
15064
15065
15066 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
15067 PyObject *resultobj;
15068 wxDC *arg1 = (wxDC *) 0 ;
15069 int arg2 ;
15070 PyObject * obj0 = 0 ;
15071 PyObject * obj1 = 0 ;
15072 char *kwnames[] = {
15073 (char *) "self",(char *) "function", NULL
15074 };
15075
15076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
15077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15079 arg2 = (int) SWIG_AsInt(obj1);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 {
15082 PyThreadState* __tstate = wxPyBeginAllowThreads();
15083 (arg1)->SetLogicalFunction(arg2);
15084
15085 wxPyEndAllowThreads(__tstate);
15086 if (PyErr_Occurred()) SWIG_fail;
15087 }
15088 Py_INCREF(Py_None); resultobj = Py_None;
15089 return resultobj;
15090 fail:
15091 return NULL;
15092 }
15093
15094
15095 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15096 PyObject *resultobj;
15097 wxDC *arg1 = (wxDC *) 0 ;
15098 bool arg2 ;
15099 PyObject * obj0 = 0 ;
15100 PyObject * obj1 = 0 ;
15101 char *kwnames[] = {
15102 (char *) "self",(char *) "opt", NULL
15103 };
15104
15105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
15106 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15107 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15108 arg2 = (bool) SWIG_AsBool(obj1);
15109 if (PyErr_Occurred()) SWIG_fail;
15110 {
15111 PyThreadState* __tstate = wxPyBeginAllowThreads();
15112 (arg1)->SetOptimization(arg2);
15113
15114 wxPyEndAllowThreads(__tstate);
15115 if (PyErr_Occurred()) SWIG_fail;
15116 }
15117 Py_INCREF(Py_None); resultobj = Py_None;
15118 return resultobj;
15119 fail:
15120 return NULL;
15121 }
15122
15123
15124 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
15125 PyObject *resultobj;
15126 wxDC *arg1 = (wxDC *) 0 ;
15127 bool result;
15128 PyObject * obj0 = 0 ;
15129 char *kwnames[] = {
15130 (char *) "self", NULL
15131 };
15132
15133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
15134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15136 {
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 result = (bool)(arg1)->GetOptimization();
15139
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 {
15144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15145 }
15146 return resultobj;
15147 fail:
15148 return NULL;
15149 }
15150
15151
15152 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15153 PyObject *resultobj;
15154 wxDC *arg1 = (wxDC *) 0 ;
15155 int arg2 ;
15156 int arg3 ;
15157 PyObject * obj0 = 0 ;
15158 PyObject * obj1 = 0 ;
15159 PyObject * obj2 = 0 ;
15160 char *kwnames[] = {
15161 (char *) "self",(char *) "x",(char *) "y", NULL
15162 };
15163
15164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
15165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15167 arg2 = (int) SWIG_AsInt(obj1);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 arg3 = (int) SWIG_AsInt(obj2);
15170 if (PyErr_Occurred()) SWIG_fail;
15171 {
15172 PyThreadState* __tstate = wxPyBeginAllowThreads();
15173 (arg1)->CalcBoundingBox(arg2,arg3);
15174
15175 wxPyEndAllowThreads(__tstate);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 }
15178 Py_INCREF(Py_None); resultobj = Py_None;
15179 return resultobj;
15180 fail:
15181 return NULL;
15182 }
15183
15184
15185 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
15186 PyObject *resultobj;
15187 wxDC *arg1 = (wxDC *) 0 ;
15188 wxPoint *arg2 = 0 ;
15189 wxPoint temp2 ;
15190 PyObject * obj0 = 0 ;
15191 PyObject * obj1 = 0 ;
15192 char *kwnames[] = {
15193 (char *) "self",(char *) "point", NULL
15194 };
15195
15196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
15197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15199 {
15200 arg2 = &temp2;
15201 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15202 }
15203 {
15204 PyThreadState* __tstate = wxPyBeginAllowThreads();
15205 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
15206
15207 wxPyEndAllowThreads(__tstate);
15208 if (PyErr_Occurred()) SWIG_fail;
15209 }
15210 Py_INCREF(Py_None); resultobj = Py_None;
15211 return resultobj;
15212 fail:
15213 return NULL;
15214 }
15215
15216
15217 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15218 PyObject *resultobj;
15219 wxDC *arg1 = (wxDC *) 0 ;
15220 PyObject * obj0 = 0 ;
15221 char *kwnames[] = {
15222 (char *) "self", NULL
15223 };
15224
15225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
15226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15228 {
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 (arg1)->ResetBoundingBox();
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 Py_INCREF(Py_None); resultobj = Py_None;
15236 return resultobj;
15237 fail:
15238 return NULL;
15239 }
15240
15241
15242 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
15243 PyObject *resultobj;
15244 wxDC *arg1 = (wxDC *) 0 ;
15245 int result;
15246 PyObject * obj0 = 0 ;
15247 char *kwnames[] = {
15248 (char *) "self", NULL
15249 };
15250
15251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
15252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15254 {
15255 PyThreadState* __tstate = wxPyBeginAllowThreads();
15256 result = (int)((wxDC const *)arg1)->MinX();
15257
15258 wxPyEndAllowThreads(__tstate);
15259 if (PyErr_Occurred()) SWIG_fail;
15260 }
15261 resultobj = SWIG_FromInt((int)result);
15262 return resultobj;
15263 fail:
15264 return NULL;
15265 }
15266
15267
15268 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
15269 PyObject *resultobj;
15270 wxDC *arg1 = (wxDC *) 0 ;
15271 int result;
15272 PyObject * obj0 = 0 ;
15273 char *kwnames[] = {
15274 (char *) "self", NULL
15275 };
15276
15277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
15278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15280 {
15281 PyThreadState* __tstate = wxPyBeginAllowThreads();
15282 result = (int)((wxDC const *)arg1)->MaxX();
15283
15284 wxPyEndAllowThreads(__tstate);
15285 if (PyErr_Occurred()) SWIG_fail;
15286 }
15287 resultobj = SWIG_FromInt((int)result);
15288 return resultobj;
15289 fail:
15290 return NULL;
15291 }
15292
15293
15294 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
15295 PyObject *resultobj;
15296 wxDC *arg1 = (wxDC *) 0 ;
15297 int result;
15298 PyObject * obj0 = 0 ;
15299 char *kwnames[] = {
15300 (char *) "self", NULL
15301 };
15302
15303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
15304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15306 {
15307 PyThreadState* __tstate = wxPyBeginAllowThreads();
15308 result = (int)((wxDC const *)arg1)->MinY();
15309
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_FromInt((int)result);
15314 return resultobj;
15315 fail:
15316 return NULL;
15317 }
15318
15319
15320 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj;
15322 wxDC *arg1 = (wxDC *) 0 ;
15323 int result;
15324 PyObject * obj0 = 0 ;
15325 char *kwnames[] = {
15326 (char *) "self", NULL
15327 };
15328
15329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
15330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15332 {
15333 PyThreadState* __tstate = wxPyBeginAllowThreads();
15334 result = (int)((wxDC const *)arg1)->MaxY();
15335
15336 wxPyEndAllowThreads(__tstate);
15337 if (PyErr_Occurred()) SWIG_fail;
15338 }
15339 resultobj = SWIG_FromInt((int)result);
15340 return resultobj;
15341 fail:
15342 return NULL;
15343 }
15344
15345
15346 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
15347 PyObject *resultobj;
15348 wxDC *arg1 = (wxDC *) 0 ;
15349 int *arg2 = (int *) 0 ;
15350 int *arg3 = (int *) 0 ;
15351 int *arg4 = (int *) 0 ;
15352 int *arg5 = (int *) 0 ;
15353 int temp2 ;
15354 int temp3 ;
15355 int temp4 ;
15356 int temp5 ;
15357 PyObject * obj0 = 0 ;
15358 char *kwnames[] = {
15359 (char *) "self", NULL
15360 };
15361
15362 arg2 = &temp2;
15363 arg3 = &temp3;
15364 arg4 = &temp4;
15365 arg5 = &temp5;
15366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
15367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15369 {
15370 PyThreadState* __tstate = wxPyBeginAllowThreads();
15371 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
15372
15373 wxPyEndAllowThreads(__tstate);
15374 if (PyErr_Occurred()) SWIG_fail;
15375 }
15376 Py_INCREF(Py_None); resultobj = Py_None;
15377 {
15378 PyObject *o = PyInt_FromLong((long) (*arg2));
15379 resultobj = t_output_helper(resultobj,o);
15380 }
15381 {
15382 PyObject *o = PyInt_FromLong((long) (*arg3));
15383 resultobj = t_output_helper(resultobj,o);
15384 }
15385 {
15386 PyObject *o = PyInt_FromLong((long) (*arg4));
15387 resultobj = t_output_helper(resultobj,o);
15388 }
15389 {
15390 PyObject *o = PyInt_FromLong((long) (*arg5));
15391 resultobj = t_output_helper(resultobj,o);
15392 }
15393 return resultobj;
15394 fail:
15395 return NULL;
15396 }
15397
15398
15399 static PyObject *_wrap_DC_GetHDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15400 PyObject *resultobj;
15401 wxDC *arg1 = (wxDC *) 0 ;
15402 long result;
15403 PyObject * obj0 = 0 ;
15404 char *kwnames[] = {
15405 (char *) "self", NULL
15406 };
15407
15408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetHDC",kwnames,&obj0)) goto fail;
15409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15411 {
15412 PyThreadState* __tstate = wxPyBeginAllowThreads();
15413 result = (long)(arg1)->GetHDC();
15414
15415 wxPyEndAllowThreads(__tstate);
15416 if (PyErr_Occurred()) SWIG_fail;
15417 }
15418 resultobj = SWIG_FromLong((long)result);
15419 return resultobj;
15420 fail:
15421 return NULL;
15422 }
15423
15424
15425 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
15426 PyObject *resultobj;
15427 wxDC *arg1 = (wxDC *) 0 ;
15428 PyObject *arg2 = (PyObject *) 0 ;
15429 PyObject *arg3 = (PyObject *) 0 ;
15430 PyObject *arg4 = (PyObject *) 0 ;
15431 PyObject *result;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 PyObject * obj2 = 0 ;
15435 PyObject * obj3 = 0 ;
15436 char *kwnames[] = {
15437 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15438 };
15439
15440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15443 arg2 = obj1;
15444 arg3 = obj2;
15445 arg4 = obj3;
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
15449
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 resultobj = result;
15454 return resultobj;
15455 fail:
15456 return NULL;
15457 }
15458
15459
15460 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
15461 PyObject *resultobj;
15462 wxDC *arg1 = (wxDC *) 0 ;
15463 PyObject *arg2 = (PyObject *) 0 ;
15464 PyObject *arg3 = (PyObject *) 0 ;
15465 PyObject *arg4 = (PyObject *) 0 ;
15466 PyObject *result;
15467 PyObject * obj0 = 0 ;
15468 PyObject * obj1 = 0 ;
15469 PyObject * obj2 = 0 ;
15470 PyObject * obj3 = 0 ;
15471 char *kwnames[] = {
15472 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15473 };
15474
15475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15478 arg2 = obj1;
15479 arg3 = obj2;
15480 arg4 = obj3;
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 resultobj = result;
15489 return resultobj;
15490 fail:
15491 return NULL;
15492 }
15493
15494
15495 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
15496 PyObject *resultobj;
15497 wxDC *arg1 = (wxDC *) 0 ;
15498 PyObject *arg2 = (PyObject *) 0 ;
15499 PyObject *arg3 = (PyObject *) 0 ;
15500 PyObject *arg4 = (PyObject *) 0 ;
15501 PyObject *result;
15502 PyObject * obj0 = 0 ;
15503 PyObject * obj1 = 0 ;
15504 PyObject * obj2 = 0 ;
15505 PyObject * obj3 = 0 ;
15506 char *kwnames[] = {
15507 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15508 };
15509
15510 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15511 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15512 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15513 arg2 = obj1;
15514 arg3 = obj2;
15515 arg4 = obj3;
15516 {
15517 PyThreadState* __tstate = wxPyBeginAllowThreads();
15518 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
15519
15520 wxPyEndAllowThreads(__tstate);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 resultobj = result;
15524 return resultobj;
15525 fail:
15526 return NULL;
15527 }
15528
15529
15530 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
15531 PyObject *resultobj;
15532 wxDC *arg1 = (wxDC *) 0 ;
15533 PyObject *arg2 = (PyObject *) 0 ;
15534 PyObject *arg3 = (PyObject *) 0 ;
15535 PyObject *arg4 = (PyObject *) 0 ;
15536 PyObject *result;
15537 PyObject * obj0 = 0 ;
15538 PyObject * obj1 = 0 ;
15539 PyObject * obj2 = 0 ;
15540 PyObject * obj3 = 0 ;
15541 char *kwnames[] = {
15542 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15543 };
15544
15545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15548 arg2 = obj1;
15549 arg3 = obj2;
15550 arg4 = obj3;
15551 {
15552 PyThreadState* __tstate = wxPyBeginAllowThreads();
15553 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
15554
15555 wxPyEndAllowThreads(__tstate);
15556 if (PyErr_Occurred()) SWIG_fail;
15557 }
15558 resultobj = result;
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
15566 PyObject *resultobj;
15567 wxDC *arg1 = (wxDC *) 0 ;
15568 PyObject *arg2 = (PyObject *) 0 ;
15569 PyObject *arg3 = (PyObject *) 0 ;
15570 PyObject *arg4 = (PyObject *) 0 ;
15571 PyObject *result;
15572 PyObject * obj0 = 0 ;
15573 PyObject * obj1 = 0 ;
15574 PyObject * obj2 = 0 ;
15575 PyObject * obj3 = 0 ;
15576 char *kwnames[] = {
15577 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
15578 };
15579
15580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15583 arg2 = obj1;
15584 arg3 = obj2;
15585 arg4 = obj3;
15586 {
15587 PyThreadState* __tstate = wxPyBeginAllowThreads();
15588 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15589
15590 wxPyEndAllowThreads(__tstate);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 }
15593 resultobj = result;
15594 return resultobj;
15595 fail:
15596 return NULL;
15597 }
15598
15599
15600 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj;
15602 wxDC *arg1 = (wxDC *) 0 ;
15603 PyObject *arg2 = (PyObject *) 0 ;
15604 PyObject *arg3 = (PyObject *) 0 ;
15605 PyObject *arg4 = (PyObject *) 0 ;
15606 PyObject *arg5 = (PyObject *) 0 ;
15607 PyObject *result;
15608 PyObject * obj0 = 0 ;
15609 PyObject * obj1 = 0 ;
15610 PyObject * obj2 = 0 ;
15611 PyObject * obj3 = 0 ;
15612 PyObject * obj4 = 0 ;
15613 char *kwnames[] = {
15614 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15615 };
15616
15617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15620 arg2 = obj1;
15621 arg3 = obj2;
15622 arg4 = obj3;
15623 arg5 = obj4;
15624 {
15625 PyThreadState* __tstate = wxPyBeginAllowThreads();
15626 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15627
15628 wxPyEndAllowThreads(__tstate);
15629 if (PyErr_Occurred()) SWIG_fail;
15630 }
15631 resultobj = result;
15632 return resultobj;
15633 fail:
15634 return NULL;
15635 }
15636
15637
15638 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15639 PyObject *obj;
15640 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15641 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15642 Py_INCREF(obj);
15643 return Py_BuildValue((char *)"");
15644 }
15645 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15646 PyObject *resultobj;
15647 wxMemoryDC *result;
15648 char *kwnames[] = {
15649 NULL
15650 };
15651
15652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15653 {
15654 if (!wxPyCheckForApp()) SWIG_fail;
15655 PyThreadState* __tstate = wxPyBeginAllowThreads();
15656 result = (wxMemoryDC *)new wxMemoryDC();
15657
15658 wxPyEndAllowThreads(__tstate);
15659 if (PyErr_Occurred()) SWIG_fail;
15660 }
15661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15662 return resultobj;
15663 fail:
15664 return NULL;
15665 }
15666
15667
15668 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15669 PyObject *resultobj;
15670 wxDC *arg1 = (wxDC *) 0 ;
15671 wxMemoryDC *result;
15672 PyObject * obj0 = 0 ;
15673 char *kwnames[] = {
15674 (char *) "oldDC", NULL
15675 };
15676
15677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15678 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15679 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15680 {
15681 if (!wxPyCheckForApp()) SWIG_fail;
15682 PyThreadState* __tstate = wxPyBeginAllowThreads();
15683 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15684
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15689 return resultobj;
15690 fail:
15691 return NULL;
15692 }
15693
15694
15695 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15696 PyObject *resultobj;
15697 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15698 wxBitmap *arg2 = 0 ;
15699 PyObject * obj0 = 0 ;
15700 PyObject * obj1 = 0 ;
15701 char *kwnames[] = {
15702 (char *) "self",(char *) "bitmap", NULL
15703 };
15704
15705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15709 SWIG_POINTER_EXCEPTION | 0)) == -1)
15710 SWIG_fail;
15711 if (arg2 == NULL) {
15712 PyErr_SetString(PyExc_TypeError,"null reference");
15713 SWIG_fail;
15714 }
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 (arg1)->SelectObject((wxBitmap const &)*arg2);
15718
15719 wxPyEndAllowThreads(__tstate);
15720 if (PyErr_Occurred()) SWIG_fail;
15721 }
15722 Py_INCREF(Py_None); resultobj = Py_None;
15723 return resultobj;
15724 fail:
15725 return NULL;
15726 }
15727
15728
15729 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15730 PyObject *obj;
15731 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15732 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15733 Py_INCREF(obj);
15734 return Py_BuildValue((char *)"");
15735 }
15736 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15737 PyObject *resultobj;
15738 wxDC *arg1 = (wxDC *) 0 ;
15739 wxBitmap *arg2 = 0 ;
15740 wxBufferedDC *result;
15741 PyObject * obj0 = 0 ;
15742 PyObject * obj1 = 0 ;
15743
15744 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15745 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15746 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15747 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15748 SWIG_POINTER_EXCEPTION | 0)) == -1)
15749 SWIG_fail;
15750 if (arg2 == NULL) {
15751 PyErr_SetString(PyExc_TypeError,"null reference");
15752 SWIG_fail;
15753 }
15754 {
15755 if (!wxPyCheckForApp()) SWIG_fail;
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15758
15759 wxPyEndAllowThreads(__tstate);
15760 if (PyErr_Occurred()) SWIG_fail;
15761 }
15762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15763 return resultobj;
15764 fail:
15765 return NULL;
15766 }
15767
15768
15769 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15770 PyObject *resultobj;
15771 wxDC *arg1 = (wxDC *) 0 ;
15772 wxSize *arg2 = 0 ;
15773 wxBufferedDC *result;
15774 wxSize temp2 ;
15775 PyObject * obj0 = 0 ;
15776 PyObject * obj1 = 0 ;
15777
15778 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15781 {
15782 arg2 = &temp2;
15783 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15784 }
15785 {
15786 if (!wxPyCheckForApp()) SWIG_fail;
15787 PyThreadState* __tstate = wxPyBeginAllowThreads();
15788 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15789
15790 wxPyEndAllowThreads(__tstate);
15791 if (PyErr_Occurred()) SWIG_fail;
15792 }
15793 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15794 return resultobj;
15795 fail:
15796 return NULL;
15797 }
15798
15799
15800 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15801 int argc;
15802 PyObject *argv[3];
15803 int ii;
15804
15805 argc = PyObject_Length(args);
15806 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15807 argv[ii] = PyTuple_GetItem(args,ii);
15808 }
15809 if (argc == 2) {
15810 int _v;
15811 {
15812 void *ptr;
15813 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15814 _v = 0;
15815 PyErr_Clear();
15816 } else {
15817 _v = 1;
15818 }
15819 }
15820 if (_v) {
15821 {
15822 void *ptr;
15823 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15824 _v = 0;
15825 PyErr_Clear();
15826 } else {
15827 _v = 1;
15828 }
15829 }
15830 if (_v) {
15831 return _wrap_new_BufferedDC__SWIG_0(self,args);
15832 }
15833 }
15834 }
15835 if (argc == 2) {
15836 int _v;
15837 {
15838 void *ptr;
15839 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15840 _v = 0;
15841 PyErr_Clear();
15842 } else {
15843 _v = 1;
15844 }
15845 }
15846 if (_v) {
15847 {
15848 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15849 }
15850 if (_v) {
15851 return _wrap_new_BufferedDC__SWIG_1(self,args);
15852 }
15853 }
15854 }
15855
15856 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15857 return NULL;
15858 }
15859
15860
15861 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15862 PyObject *resultobj;
15863 wxDC *arg1 = (wxDC *) 0 ;
15864 wxSize *arg2 = 0 ;
15865 wxBufferedDC *result;
15866 wxSize temp2 ;
15867 PyObject * obj0 = 0 ;
15868 PyObject * obj1 = 0 ;
15869
15870 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15873 {
15874 arg2 = &temp2;
15875 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15876 }
15877 {
15878 if (!wxPyCheckForApp()) SWIG_fail;
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15881
15882 wxPyEndAllowThreads(__tstate);
15883 if (PyErr_Occurred()) SWIG_fail;
15884 }
15885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15886 return resultobj;
15887 fail:
15888 return NULL;
15889 }
15890
15891
15892 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj;
15894 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15895 PyObject * obj0 = 0 ;
15896 char *kwnames[] = {
15897 (char *) "self", NULL
15898 };
15899
15900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15903 {
15904 PyThreadState* __tstate = wxPyBeginAllowThreads();
15905 delete arg1;
15906
15907 wxPyEndAllowThreads(__tstate);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 Py_INCREF(Py_None); resultobj = Py_None;
15911 return resultobj;
15912 fail:
15913 return NULL;
15914 }
15915
15916
15917 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15918 PyObject *resultobj;
15919 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15920 PyObject * obj0 = 0 ;
15921 char *kwnames[] = {
15922 (char *) "self", NULL
15923 };
15924
15925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15928 {
15929 PyThreadState* __tstate = wxPyBeginAllowThreads();
15930 (arg1)->UnMask();
15931
15932 wxPyEndAllowThreads(__tstate);
15933 if (PyErr_Occurred()) SWIG_fail;
15934 }
15935 Py_INCREF(Py_None); resultobj = Py_None;
15936 return resultobj;
15937 fail:
15938 return NULL;
15939 }
15940
15941
15942 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15943 PyObject *obj;
15944 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15945 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15946 Py_INCREF(obj);
15947 return Py_BuildValue((char *)"");
15948 }
15949 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15950 PyObject *resultobj;
15951 wxWindow *arg1 = (wxWindow *) 0 ;
15952 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15953 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15954 wxBufferedPaintDC *result;
15955 PyObject * obj0 = 0 ;
15956 PyObject * obj1 = 0 ;
15957 char *kwnames[] = {
15958 (char *) "window",(char *) "buffer", NULL
15959 };
15960
15961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15964 if (obj1) {
15965 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15966 SWIG_POINTER_EXCEPTION | 0)) == -1)
15967 SWIG_fail;
15968 if (arg2 == NULL) {
15969 PyErr_SetString(PyExc_TypeError,"null reference");
15970 SWIG_fail;
15971 }
15972 }
15973 {
15974 if (!wxPyCheckForApp()) SWIG_fail;
15975 PyThreadState* __tstate = wxPyBeginAllowThreads();
15976 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15977
15978 wxPyEndAllowThreads(__tstate);
15979 if (PyErr_Occurred()) SWIG_fail;
15980 }
15981 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15982 return resultobj;
15983 fail:
15984 return NULL;
15985 }
15986
15987
15988 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15989 PyObject *obj;
15990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15991 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15992 Py_INCREF(obj);
15993 return Py_BuildValue((char *)"");
15994 }
15995 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15996 PyObject *resultobj;
15997 wxScreenDC *result;
15998 char *kwnames[] = {
15999 NULL
16000 };
16001
16002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
16003 {
16004 if (!wxPyCheckForApp()) SWIG_fail;
16005 PyThreadState* __tstate = wxPyBeginAllowThreads();
16006 result = (wxScreenDC *)new wxScreenDC();
16007
16008 wxPyEndAllowThreads(__tstate);
16009 if (PyErr_Occurred()) SWIG_fail;
16010 }
16011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
16012 return resultobj;
16013 fail:
16014 return NULL;
16015 }
16016
16017
16018 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
16019 PyObject *resultobj;
16020 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16021 wxWindow *arg2 = (wxWindow *) 0 ;
16022 bool result;
16023 PyObject * obj0 = 0 ;
16024 PyObject * obj1 = 0 ;
16025 char *kwnames[] = {
16026 (char *) "self",(char *) "window", NULL
16027 };
16028
16029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
16030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16032 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
16033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 {
16042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16043 }
16044 return resultobj;
16045 fail:
16046 return NULL;
16047 }
16048
16049
16050 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
16051 PyObject *resultobj;
16052 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16053 wxRect *arg2 = (wxRect *) NULL ;
16054 bool result;
16055 PyObject * obj0 = 0 ;
16056 PyObject * obj1 = 0 ;
16057 char *kwnames[] = {
16058 (char *) "self",(char *) "rect", NULL
16059 };
16060
16061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
16062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16064 if (obj1) {
16065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16067 }
16068 {
16069 PyThreadState* __tstate = wxPyBeginAllowThreads();
16070 result = (bool)(arg1)->StartDrawingOnTop(arg2);
16071
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 {
16076 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16077 }
16078 return resultobj;
16079 fail:
16080 return NULL;
16081 }
16082
16083
16084 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
16085 PyObject *resultobj;
16086 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
16087 bool result;
16088 PyObject * obj0 = 0 ;
16089 char *kwnames[] = {
16090 (char *) "self", NULL
16091 };
16092
16093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
16094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
16095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16096 {
16097 PyThreadState* __tstate = wxPyBeginAllowThreads();
16098 result = (bool)(arg1)->EndDrawingOnTop();
16099
16100 wxPyEndAllowThreads(__tstate);
16101 if (PyErr_Occurred()) SWIG_fail;
16102 }
16103 {
16104 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16105 }
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
16113 PyObject *obj;
16114 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16115 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
16116 Py_INCREF(obj);
16117 return Py_BuildValue((char *)"");
16118 }
16119 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16120 PyObject *resultobj;
16121 wxWindow *arg1 = (wxWindow *) 0 ;
16122 wxClientDC *result;
16123 PyObject * obj0 = 0 ;
16124 char *kwnames[] = {
16125 (char *) "win", NULL
16126 };
16127
16128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
16129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16131 {
16132 if (!wxPyCheckForApp()) SWIG_fail;
16133 PyThreadState* __tstate = wxPyBeginAllowThreads();
16134 result = (wxClientDC *)new wxClientDC(arg1);
16135
16136 wxPyEndAllowThreads(__tstate);
16137 if (PyErr_Occurred()) SWIG_fail;
16138 }
16139 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
16140 return resultobj;
16141 fail:
16142 return NULL;
16143 }
16144
16145
16146 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
16147 PyObject *obj;
16148 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16149 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
16150 Py_INCREF(obj);
16151 return Py_BuildValue((char *)"");
16152 }
16153 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16154 PyObject *resultobj;
16155 wxWindow *arg1 = (wxWindow *) 0 ;
16156 wxPaintDC *result;
16157 PyObject * obj0 = 0 ;
16158 char *kwnames[] = {
16159 (char *) "win", NULL
16160 };
16161
16162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
16163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16165 {
16166 if (!wxPyCheckForApp()) SWIG_fail;
16167 PyThreadState* __tstate = wxPyBeginAllowThreads();
16168 result = (wxPaintDC *)new wxPaintDC(arg1);
16169
16170 wxPyEndAllowThreads(__tstate);
16171 if (PyErr_Occurred()) SWIG_fail;
16172 }
16173 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
16174 return resultobj;
16175 fail:
16176 return NULL;
16177 }
16178
16179
16180 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
16181 PyObject *obj;
16182 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16183 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
16184 Py_INCREF(obj);
16185 return Py_BuildValue((char *)"");
16186 }
16187 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16188 PyObject *resultobj;
16189 wxWindow *arg1 = (wxWindow *) 0 ;
16190 wxWindowDC *result;
16191 PyObject * obj0 = 0 ;
16192 char *kwnames[] = {
16193 (char *) "win", NULL
16194 };
16195
16196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
16197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
16198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16199 {
16200 if (!wxPyCheckForApp()) SWIG_fail;
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 result = (wxWindowDC *)new wxWindowDC(arg1);
16203
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
16208 return resultobj;
16209 fail:
16210 return NULL;
16211 }
16212
16213
16214 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
16215 PyObject *obj;
16216 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16217 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
16218 Py_INCREF(obj);
16219 return Py_BuildValue((char *)"");
16220 }
16221 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16222 PyObject *resultobj;
16223 wxDC *arg1 = 0 ;
16224 bool arg2 ;
16225 wxMirrorDC *result;
16226 PyObject * obj0 = 0 ;
16227 PyObject * obj1 = 0 ;
16228 char *kwnames[] = {
16229 (char *) "dc",(char *) "mirror", NULL
16230 };
16231
16232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
16233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
16234 SWIG_POINTER_EXCEPTION | 0)) == -1)
16235 SWIG_fail;
16236 if (arg1 == NULL) {
16237 PyErr_SetString(PyExc_TypeError,"null reference");
16238 SWIG_fail;
16239 }
16240 arg2 = (bool) SWIG_AsBool(obj1);
16241 if (PyErr_Occurred()) SWIG_fail;
16242 {
16243 if (!wxPyCheckForApp()) SWIG_fail;
16244 PyThreadState* __tstate = wxPyBeginAllowThreads();
16245 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
16246
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
16251 return resultobj;
16252 fail:
16253 return NULL;
16254 }
16255
16256
16257 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
16258 PyObject *obj;
16259 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16260 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
16261 Py_INCREF(obj);
16262 return Py_BuildValue((char *)"");
16263 }
16264 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16265 PyObject *resultobj;
16266 wxPrintData *arg1 = 0 ;
16267 wxPostScriptDC *result;
16268 PyObject * obj0 = 0 ;
16269 char *kwnames[] = {
16270 (char *) "printData", NULL
16271 };
16272
16273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
16274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16275 SWIG_POINTER_EXCEPTION | 0)) == -1)
16276 SWIG_fail;
16277 if (arg1 == NULL) {
16278 PyErr_SetString(PyExc_TypeError,"null reference");
16279 SWIG_fail;
16280 }
16281 {
16282 if (!wxPyCheckForApp()) SWIG_fail;
16283 PyThreadState* __tstate = wxPyBeginAllowThreads();
16284 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
16285
16286 wxPyEndAllowThreads(__tstate);
16287 if (PyErr_Occurred()) SWIG_fail;
16288 }
16289 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
16290 return resultobj;
16291 fail:
16292 return NULL;
16293 }
16294
16295
16296 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16297 PyObject *resultobj;
16298 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16299 wxPrintData *result;
16300 PyObject * obj0 = 0 ;
16301 char *kwnames[] = {
16302 (char *) "self", NULL
16303 };
16304
16305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
16306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16308 {
16309 PyThreadState* __tstate = wxPyBeginAllowThreads();
16310 {
16311 wxPrintData &_result_ref = (arg1)->GetPrintData();
16312 result = (wxPrintData *) &_result_ref;
16313 }
16314
16315 wxPyEndAllowThreads(__tstate);
16316 if (PyErr_Occurred()) SWIG_fail;
16317 }
16318 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
16319 return resultobj;
16320 fail:
16321 return NULL;
16322 }
16323
16324
16325 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
16326 PyObject *resultobj;
16327 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
16328 wxPrintData *arg2 = 0 ;
16329 PyObject * obj0 = 0 ;
16330 PyObject * obj1 = 0 ;
16331 char *kwnames[] = {
16332 (char *) "self",(char *) "data", NULL
16333 };
16334
16335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
16336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
16337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16338 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
16339 SWIG_POINTER_EXCEPTION | 0)) == -1)
16340 SWIG_fail;
16341 if (arg2 == NULL) {
16342 PyErr_SetString(PyExc_TypeError,"null reference");
16343 SWIG_fail;
16344 }
16345 {
16346 PyThreadState* __tstate = wxPyBeginAllowThreads();
16347 (arg1)->SetPrintData((wxPrintData const &)*arg2);
16348
16349 wxPyEndAllowThreads(__tstate);
16350 if (PyErr_Occurred()) SWIG_fail;
16351 }
16352 Py_INCREF(Py_None); resultobj = Py_None;
16353 return resultobj;
16354 fail:
16355 return NULL;
16356 }
16357
16358
16359 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16360 PyObject *resultobj;
16361 int arg1 ;
16362 PyObject * obj0 = 0 ;
16363 char *kwnames[] = {
16364 (char *) "ppi", NULL
16365 };
16366
16367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
16368 arg1 = (int) SWIG_AsInt(obj0);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 {
16371 PyThreadState* __tstate = wxPyBeginAllowThreads();
16372 wxPostScriptDC::SetResolution(arg1);
16373
16374 wxPyEndAllowThreads(__tstate);
16375 if (PyErr_Occurred()) SWIG_fail;
16376 }
16377 Py_INCREF(Py_None); resultobj = Py_None;
16378 return resultobj;
16379 fail:
16380 return NULL;
16381 }
16382
16383
16384 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
16385 PyObject *resultobj;
16386 int result;
16387 char *kwnames[] = {
16388 NULL
16389 };
16390
16391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
16392 {
16393 PyThreadState* __tstate = wxPyBeginAllowThreads();
16394 result = (int)wxPostScriptDC::GetResolution();
16395
16396 wxPyEndAllowThreads(__tstate);
16397 if (PyErr_Occurred()) SWIG_fail;
16398 }
16399 resultobj = SWIG_FromInt((int)result);
16400 return resultobj;
16401 fail:
16402 return NULL;
16403 }
16404
16405
16406 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
16407 PyObject *obj;
16408 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16409 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
16410 Py_INCREF(obj);
16411 return Py_BuildValue((char *)"");
16412 }
16413 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16414 PyObject *resultobj;
16415 wxString const &arg1_defvalue = wxPyEmptyString ;
16416 wxString *arg1 = (wxString *) &arg1_defvalue ;
16417 wxMetaFile *result;
16418 bool temp1 = False ;
16419 PyObject * obj0 = 0 ;
16420 char *kwnames[] = {
16421 (char *) "filename", NULL
16422 };
16423
16424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
16425 if (obj0) {
16426 {
16427 arg1 = wxString_in_helper(obj0);
16428 if (arg1 == NULL) SWIG_fail;
16429 temp1 = True;
16430 }
16431 }
16432 {
16433 if (!wxPyCheckForApp()) SWIG_fail;
16434 PyThreadState* __tstate = wxPyBeginAllowThreads();
16435 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
16436
16437 wxPyEndAllowThreads(__tstate);
16438 if (PyErr_Occurred()) SWIG_fail;
16439 }
16440 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
16441 {
16442 if (temp1)
16443 delete arg1;
16444 }
16445 return resultobj;
16446 fail:
16447 {
16448 if (temp1)
16449 delete arg1;
16450 }
16451 return NULL;
16452 }
16453
16454
16455 static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
16456 PyObject *resultobj;
16457 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16458 PyObject * obj0 = 0 ;
16459 char *kwnames[] = {
16460 (char *) "self", NULL
16461 };
16462
16463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
16464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16466 {
16467 PyThreadState* __tstate = wxPyBeginAllowThreads();
16468 delete arg1;
16469
16470 wxPyEndAllowThreads(__tstate);
16471 if (PyErr_Occurred()) SWIG_fail;
16472 }
16473 Py_INCREF(Py_None); resultobj = Py_None;
16474 return resultobj;
16475 fail:
16476 return NULL;
16477 }
16478
16479
16480 static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
16481 PyObject *resultobj;
16482 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16483 bool result;
16484 PyObject * obj0 = 0 ;
16485 char *kwnames[] = {
16486 (char *) "self", NULL
16487 };
16488
16489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
16490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16492 {
16493 PyThreadState* __tstate = wxPyBeginAllowThreads();
16494 result = (bool)(arg1)->Ok();
16495
16496 wxPyEndAllowThreads(__tstate);
16497 if (PyErr_Occurred()) SWIG_fail;
16498 }
16499 {
16500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16501 }
16502 return resultobj;
16503 fail:
16504 return NULL;
16505 }
16506
16507
16508 static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
16509 PyObject *resultobj;
16510 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16511 int arg2 = (int) 0 ;
16512 int arg3 = (int) 0 ;
16513 bool result;
16514 PyObject * obj0 = 0 ;
16515 PyObject * obj1 = 0 ;
16516 PyObject * obj2 = 0 ;
16517 char *kwnames[] = {
16518 (char *) "self",(char *) "width",(char *) "height", NULL
16519 };
16520
16521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
16522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16524 if (obj1) {
16525 arg2 = (int) SWIG_AsInt(obj1);
16526 if (PyErr_Occurred()) SWIG_fail;
16527 }
16528 if (obj2) {
16529 arg3 = (int) SWIG_AsInt(obj2);
16530 if (PyErr_Occurred()) SWIG_fail;
16531 }
16532 {
16533 PyThreadState* __tstate = wxPyBeginAllowThreads();
16534 result = (bool)(arg1)->SetClipboard(arg2,arg3);
16535
16536 wxPyEndAllowThreads(__tstate);
16537 if (PyErr_Occurred()) SWIG_fail;
16538 }
16539 {
16540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16541 }
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16549 PyObject *resultobj;
16550 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16551 wxSize result;
16552 PyObject * obj0 = 0 ;
16553 char *kwnames[] = {
16554 (char *) "self", NULL
16555 };
16556
16557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
16558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
16562 result = (arg1)->GetSize();
16563
16564 wxPyEndAllowThreads(__tstate);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 {
16568 wxSize * resultptr;
16569 resultptr = new wxSize((wxSize &) result);
16570 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
16571 }
16572 return resultobj;
16573 fail:
16574 return NULL;
16575 }
16576
16577
16578 static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
16579 PyObject *resultobj;
16580 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16581 int result;
16582 PyObject * obj0 = 0 ;
16583 char *kwnames[] = {
16584 (char *) "self", NULL
16585 };
16586
16587 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
16588 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16589 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16590 {
16591 PyThreadState* __tstate = wxPyBeginAllowThreads();
16592 result = (int)(arg1)->GetWidth();
16593
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 resultobj = SWIG_FromInt((int)result);
16598 return resultobj;
16599 fail:
16600 return NULL;
16601 }
16602
16603
16604 static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
16605 PyObject *resultobj;
16606 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16607 int result;
16608 PyObject * obj0 = 0 ;
16609 char *kwnames[] = {
16610 (char *) "self", NULL
16611 };
16612
16613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
16614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 result = (int)(arg1)->GetHeight();
16619
16620 wxPyEndAllowThreads(__tstate);
16621 if (PyErr_Occurred()) SWIG_fail;
16622 }
16623 resultobj = SWIG_FromInt((int)result);
16624 return resultobj;
16625 fail:
16626 return NULL;
16627 }
16628
16629
16630 static PyObject *_wrap_MetaFile_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
16631 PyObject *resultobj;
16632 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
16633 wxString *result;
16634 PyObject * obj0 = 0 ;
16635 char *kwnames[] = {
16636 (char *) "self", NULL
16637 };
16638
16639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetFileName",kwnames,&obj0)) goto fail;
16640 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
16641 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16642 {
16643 PyThreadState* __tstate = wxPyBeginAllowThreads();
16644 {
16645 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
16646 result = (wxString *) &_result_ref;
16647 }
16648
16649 wxPyEndAllowThreads(__tstate);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 {
16653 #if wxUSE_UNICODE
16654 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16655 #else
16656 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16657 #endif
16658 }
16659 return resultobj;
16660 fail:
16661 return NULL;
16662 }
16663
16664
16665 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16666 PyObject *obj;
16667 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16668 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16669 Py_INCREF(obj);
16670 return Py_BuildValue((char *)"");
16671 }
16672 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16673 PyObject *resultobj;
16674 wxString const &arg1_defvalue = wxPyEmptyString ;
16675 wxString *arg1 = (wxString *) &arg1_defvalue ;
16676 int arg2 = (int) 0 ;
16677 int arg3 = (int) 0 ;
16678 wxString const &arg4_defvalue = wxPyEmptyString ;
16679 wxString *arg4 = (wxString *) &arg4_defvalue ;
16680 wxMetaFileDC *result;
16681 bool temp1 = False ;
16682 bool temp4 = False ;
16683 PyObject * obj0 = 0 ;
16684 PyObject * obj1 = 0 ;
16685 PyObject * obj2 = 0 ;
16686 PyObject * obj3 = 0 ;
16687 char *kwnames[] = {
16688 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16689 };
16690
16691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16692 if (obj0) {
16693 {
16694 arg1 = wxString_in_helper(obj0);
16695 if (arg1 == NULL) SWIG_fail;
16696 temp1 = True;
16697 }
16698 }
16699 if (obj1) {
16700 arg2 = (int) SWIG_AsInt(obj1);
16701 if (PyErr_Occurred()) SWIG_fail;
16702 }
16703 if (obj2) {
16704 arg3 = (int) SWIG_AsInt(obj2);
16705 if (PyErr_Occurred()) SWIG_fail;
16706 }
16707 if (obj3) {
16708 {
16709 arg4 = wxString_in_helper(obj3);
16710 if (arg4 == NULL) SWIG_fail;
16711 temp4 = True;
16712 }
16713 }
16714 {
16715 if (!wxPyCheckForApp()) SWIG_fail;
16716 PyThreadState* __tstate = wxPyBeginAllowThreads();
16717 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16718
16719 wxPyEndAllowThreads(__tstate);
16720 if (PyErr_Occurred()) SWIG_fail;
16721 }
16722 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16723 {
16724 if (temp1)
16725 delete arg1;
16726 }
16727 {
16728 if (temp4)
16729 delete arg4;
16730 }
16731 return resultobj;
16732 fail:
16733 {
16734 if (temp1)
16735 delete arg1;
16736 }
16737 {
16738 if (temp4)
16739 delete arg4;
16740 }
16741 return NULL;
16742 }
16743
16744
16745 static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16746 PyObject *resultobj;
16747 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16748 wxMetaFile *result;
16749 PyObject * obj0 = 0 ;
16750 char *kwnames[] = {
16751 (char *) "self", NULL
16752 };
16753
16754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16757 {
16758 PyThreadState* __tstate = wxPyBeginAllowThreads();
16759 result = (wxMetaFile *)(arg1)->Close();
16760
16761 wxPyEndAllowThreads(__tstate);
16762 if (PyErr_Occurred()) SWIG_fail;
16763 }
16764 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16765 return resultobj;
16766 fail:
16767 return NULL;
16768 }
16769
16770
16771 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16772 PyObject *obj;
16773 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16774 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16775 Py_INCREF(obj);
16776 return Py_BuildValue((char *)"");
16777 }
16778 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16779 PyObject *resultobj;
16780 wxPrintData *arg1 = 0 ;
16781 wxPrinterDC *result;
16782 PyObject * obj0 = 0 ;
16783 char *kwnames[] = {
16784 (char *) "printData", NULL
16785 };
16786
16787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16788 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16789 SWIG_POINTER_EXCEPTION | 0)) == -1)
16790 SWIG_fail;
16791 if (arg1 == NULL) {
16792 PyErr_SetString(PyExc_TypeError,"null reference");
16793 SWIG_fail;
16794 }
16795 {
16796 if (!wxPyCheckForApp()) SWIG_fail;
16797 PyThreadState* __tstate = wxPyBeginAllowThreads();
16798 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16799
16800 wxPyEndAllowThreads(__tstate);
16801 if (PyErr_Occurred()) SWIG_fail;
16802 }
16803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16804 return resultobj;
16805 fail:
16806 return NULL;
16807 }
16808
16809
16810 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16811 PyObject *obj;
16812 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16813 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16814 Py_INCREF(obj);
16815 return Py_BuildValue((char *)"");
16816 }
16817 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16818 PyObject *resultobj;
16819 int arg1 ;
16820 int arg2 ;
16821 int arg3 = (int) True ;
16822 int arg4 = (int) 1 ;
16823 wxImageList *result;
16824 PyObject * obj0 = 0 ;
16825 PyObject * obj1 = 0 ;
16826 PyObject * obj2 = 0 ;
16827 PyObject * obj3 = 0 ;
16828 char *kwnames[] = {
16829 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16830 };
16831
16832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16833 arg1 = (int) SWIG_AsInt(obj0);
16834 if (PyErr_Occurred()) SWIG_fail;
16835 arg2 = (int) SWIG_AsInt(obj1);
16836 if (PyErr_Occurred()) SWIG_fail;
16837 if (obj2) {
16838 arg3 = (int) SWIG_AsInt(obj2);
16839 if (PyErr_Occurred()) SWIG_fail;
16840 }
16841 if (obj3) {
16842 arg4 = (int) SWIG_AsInt(obj3);
16843 if (PyErr_Occurred()) SWIG_fail;
16844 }
16845 {
16846 if (!wxPyCheckForApp()) SWIG_fail;
16847 PyThreadState* __tstate = wxPyBeginAllowThreads();
16848 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16849
16850 wxPyEndAllowThreads(__tstate);
16851 if (PyErr_Occurred()) SWIG_fail;
16852 }
16853 {
16854 resultobj = wxPyMake_wxObject(result, 1);
16855 }
16856 return resultobj;
16857 fail:
16858 return NULL;
16859 }
16860
16861
16862 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16863 PyObject *resultobj;
16864 wxImageList *arg1 = (wxImageList *) 0 ;
16865 PyObject * obj0 = 0 ;
16866 char *kwnames[] = {
16867 (char *) "self", NULL
16868 };
16869
16870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16873 {
16874 PyThreadState* __tstate = wxPyBeginAllowThreads();
16875 delete arg1;
16876
16877 wxPyEndAllowThreads(__tstate);
16878 if (PyErr_Occurred()) SWIG_fail;
16879 }
16880 Py_INCREF(Py_None); resultobj = Py_None;
16881 return resultobj;
16882 fail:
16883 return NULL;
16884 }
16885
16886
16887 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16888 PyObject *resultobj;
16889 wxImageList *arg1 = (wxImageList *) 0 ;
16890 wxBitmap *arg2 = 0 ;
16891 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16892 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16893 int result;
16894 PyObject * obj0 = 0 ;
16895 PyObject * obj1 = 0 ;
16896 PyObject * obj2 = 0 ;
16897 char *kwnames[] = {
16898 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16899 };
16900
16901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16904 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16905 SWIG_POINTER_EXCEPTION | 0)) == -1)
16906 SWIG_fail;
16907 if (arg2 == NULL) {
16908 PyErr_SetString(PyExc_TypeError,"null reference");
16909 SWIG_fail;
16910 }
16911 if (obj2) {
16912 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16913 SWIG_POINTER_EXCEPTION | 0)) == -1)
16914 SWIG_fail;
16915 if (arg3 == NULL) {
16916 PyErr_SetString(PyExc_TypeError,"null reference");
16917 SWIG_fail;
16918 }
16919 }
16920 {
16921 PyThreadState* __tstate = wxPyBeginAllowThreads();
16922 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16923
16924 wxPyEndAllowThreads(__tstate);
16925 if (PyErr_Occurred()) SWIG_fail;
16926 }
16927 resultobj = SWIG_FromInt((int)result);
16928 return resultobj;
16929 fail:
16930 return NULL;
16931 }
16932
16933
16934 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16935 PyObject *resultobj;
16936 wxImageList *arg1 = (wxImageList *) 0 ;
16937 wxBitmap *arg2 = 0 ;
16938 wxColour *arg3 = 0 ;
16939 int result;
16940 wxColour temp3 ;
16941 PyObject * obj0 = 0 ;
16942 PyObject * obj1 = 0 ;
16943 PyObject * obj2 = 0 ;
16944 char *kwnames[] = {
16945 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16946 };
16947
16948 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16949 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16950 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16951 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16952 SWIG_POINTER_EXCEPTION | 0)) == -1)
16953 SWIG_fail;
16954 if (arg2 == NULL) {
16955 PyErr_SetString(PyExc_TypeError,"null reference");
16956 SWIG_fail;
16957 }
16958 {
16959 arg3 = &temp3;
16960 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16961 }
16962 {
16963 PyThreadState* __tstate = wxPyBeginAllowThreads();
16964 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16965
16966 wxPyEndAllowThreads(__tstate);
16967 if (PyErr_Occurred()) SWIG_fail;
16968 }
16969 resultobj = SWIG_FromInt((int)result);
16970 return resultobj;
16971 fail:
16972 return NULL;
16973 }
16974
16975
16976 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16977 PyObject *resultobj;
16978 wxImageList *arg1 = (wxImageList *) 0 ;
16979 wxIcon *arg2 = 0 ;
16980 int result;
16981 PyObject * obj0 = 0 ;
16982 PyObject * obj1 = 0 ;
16983 char *kwnames[] = {
16984 (char *) "self",(char *) "icon", NULL
16985 };
16986
16987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16990 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16991 SWIG_POINTER_EXCEPTION | 0)) == -1)
16992 SWIG_fail;
16993 if (arg2 == NULL) {
16994 PyErr_SetString(PyExc_TypeError,"null reference");
16995 SWIG_fail;
16996 }
16997 {
16998 PyThreadState* __tstate = wxPyBeginAllowThreads();
16999 result = (int)(arg1)->Add((wxIcon const &)*arg2);
17000
17001 wxPyEndAllowThreads(__tstate);
17002 if (PyErr_Occurred()) SWIG_fail;
17003 }
17004 resultobj = SWIG_FromInt((int)result);
17005 return resultobj;
17006 fail:
17007 return NULL;
17008 }
17009
17010
17011 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
17012 PyObject *resultobj;
17013 wxImageList *arg1 = (wxImageList *) 0 ;
17014 int arg2 ;
17015 wxBitmap *arg3 = 0 ;
17016 wxBitmap const &arg4_defvalue = wxNullBitmap ;
17017 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
17018 bool result;
17019 PyObject * obj0 = 0 ;
17020 PyObject * obj1 = 0 ;
17021 PyObject * obj2 = 0 ;
17022 PyObject * obj3 = 0 ;
17023 char *kwnames[] = {
17024 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
17025 };
17026
17027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17030 arg2 = (int) SWIG_AsInt(obj1);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
17033 SWIG_POINTER_EXCEPTION | 0)) == -1)
17034 SWIG_fail;
17035 if (arg3 == NULL) {
17036 PyErr_SetString(PyExc_TypeError,"null reference");
17037 SWIG_fail;
17038 }
17039 if (obj3) {
17040 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
17041 SWIG_POINTER_EXCEPTION | 0)) == -1)
17042 SWIG_fail;
17043 if (arg4 == NULL) {
17044 PyErr_SetString(PyExc_TypeError,"null reference");
17045 SWIG_fail;
17046 }
17047 }
17048 {
17049 PyThreadState* __tstate = wxPyBeginAllowThreads();
17050 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
17051
17052 wxPyEndAllowThreads(__tstate);
17053 if (PyErr_Occurred()) SWIG_fail;
17054 }
17055 {
17056 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17057 }
17058 return resultobj;
17059 fail:
17060 return NULL;
17061 }
17062
17063
17064 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
17065 PyObject *resultobj;
17066 wxImageList *arg1 = (wxImageList *) 0 ;
17067 int arg2 ;
17068 wxDC *arg3 = 0 ;
17069 int arg4 ;
17070 int arg5 ;
17071 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
17072 bool arg7 = (bool) (bool)False ;
17073 bool result;
17074 PyObject * obj0 = 0 ;
17075 PyObject * obj1 = 0 ;
17076 PyObject * obj2 = 0 ;
17077 PyObject * obj3 = 0 ;
17078 PyObject * obj4 = 0 ;
17079 PyObject * obj5 = 0 ;
17080 PyObject * obj6 = 0 ;
17081 char *kwnames[] = {
17082 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
17083 };
17084
17085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
17086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17088 arg2 = (int) SWIG_AsInt(obj1);
17089 if (PyErr_Occurred()) SWIG_fail;
17090 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
17091 SWIG_POINTER_EXCEPTION | 0)) == -1)
17092 SWIG_fail;
17093 if (arg3 == NULL) {
17094 PyErr_SetString(PyExc_TypeError,"null reference");
17095 SWIG_fail;
17096 }
17097 arg4 = (int) SWIG_AsInt(obj3);
17098 if (PyErr_Occurred()) SWIG_fail;
17099 arg5 = (int) SWIG_AsInt(obj4);
17100 if (PyErr_Occurred()) SWIG_fail;
17101 if (obj5) {
17102 arg6 = (int) SWIG_AsInt(obj5);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 if (obj6) {
17106 arg7 = (bool const) SWIG_AsBool(obj6);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 {
17110 PyThreadState* __tstate = wxPyBeginAllowThreads();
17111 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
17112
17113 wxPyEndAllowThreads(__tstate);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 }
17116 {
17117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17118 }
17119 return resultobj;
17120 fail:
17121 return NULL;
17122 }
17123
17124
17125 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17126 PyObject *resultobj;
17127 wxImageList *arg1 = (wxImageList *) 0 ;
17128 int result;
17129 PyObject * obj0 = 0 ;
17130 char *kwnames[] = {
17131 (char *) "self", NULL
17132 };
17133
17134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
17135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17137 {
17138 PyThreadState* __tstate = wxPyBeginAllowThreads();
17139 result = (int)(arg1)->GetImageCount();
17140
17141 wxPyEndAllowThreads(__tstate);
17142 if (PyErr_Occurred()) SWIG_fail;
17143 }
17144 resultobj = SWIG_FromInt((int)result);
17145 return resultobj;
17146 fail:
17147 return NULL;
17148 }
17149
17150
17151 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
17152 PyObject *resultobj;
17153 wxImageList *arg1 = (wxImageList *) 0 ;
17154 int arg2 ;
17155 bool result;
17156 PyObject * obj0 = 0 ;
17157 PyObject * obj1 = 0 ;
17158 char *kwnames[] = {
17159 (char *) "self",(char *) "index", NULL
17160 };
17161
17162 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
17163 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17164 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17165 arg2 = (int) SWIG_AsInt(obj1);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 {
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 result = (bool)(arg1)->Remove(arg2);
17170
17171 wxPyEndAllowThreads(__tstate);
17172 if (PyErr_Occurred()) SWIG_fail;
17173 }
17174 {
17175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17176 }
17177 return resultobj;
17178 fail:
17179 return NULL;
17180 }
17181
17182
17183 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
17184 PyObject *resultobj;
17185 wxImageList *arg1 = (wxImageList *) 0 ;
17186 bool result;
17187 PyObject * obj0 = 0 ;
17188 char *kwnames[] = {
17189 (char *) "self", NULL
17190 };
17191
17192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
17193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17195 {
17196 PyThreadState* __tstate = wxPyBeginAllowThreads();
17197 result = (bool)(arg1)->RemoveAll();
17198
17199 wxPyEndAllowThreads(__tstate);
17200 if (PyErr_Occurred()) SWIG_fail;
17201 }
17202 {
17203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17204 }
17205 return resultobj;
17206 fail:
17207 return NULL;
17208 }
17209
17210
17211 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj;
17213 wxImageList *arg1 = (wxImageList *) 0 ;
17214 int arg2 ;
17215 int *arg3 = 0 ;
17216 int *arg4 = 0 ;
17217 int temp3 ;
17218 int temp4 ;
17219 PyObject * obj0 = 0 ;
17220 PyObject * obj1 = 0 ;
17221 char *kwnames[] = {
17222 (char *) "self",(char *) "index", NULL
17223 };
17224
17225 arg3 = &temp3;
17226 arg4 = &temp4;
17227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
17228 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
17229 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17230 arg2 = (int) SWIG_AsInt(obj1);
17231 if (PyErr_Occurred()) SWIG_fail;
17232 {
17233 PyThreadState* __tstate = wxPyBeginAllowThreads();
17234 (arg1)->GetSize(arg2,*arg3,*arg4);
17235
17236 wxPyEndAllowThreads(__tstate);
17237 if (PyErr_Occurred()) SWIG_fail;
17238 }
17239 Py_INCREF(Py_None); resultobj = Py_None;
17240 {
17241 PyObject *o = PyInt_FromLong((long) (*arg3));
17242 resultobj = t_output_helper(resultobj,o);
17243 }
17244 {
17245 PyObject *o = PyInt_FromLong((long) (*arg4));
17246 resultobj = t_output_helper(resultobj,o);
17247 }
17248 return resultobj;
17249 fail:
17250 return NULL;
17251 }
17252
17253
17254 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
17255 PyObject *obj;
17256 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17257 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
17258 Py_INCREF(obj);
17259 return Py_BuildValue((char *)"");
17260 }
17261 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
17262 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
17263 return 1;
17264 }
17265
17266
17267 static PyObject *_wrap_NORMAL_FONT_get() {
17268 PyObject *pyobj;
17269
17270 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
17271 return pyobj;
17272 }
17273
17274
17275 static int _wrap_SMALL_FONT_set(PyObject *_val) {
17276 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
17277 return 1;
17278 }
17279
17280
17281 static PyObject *_wrap_SMALL_FONT_get() {
17282 PyObject *pyobj;
17283
17284 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
17285 return pyobj;
17286 }
17287
17288
17289 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
17290 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
17291 return 1;
17292 }
17293
17294
17295 static PyObject *_wrap_ITALIC_FONT_get() {
17296 PyObject *pyobj;
17297
17298 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
17299 return pyobj;
17300 }
17301
17302
17303 static int _wrap_SWISS_FONT_set(PyObject *_val) {
17304 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
17305 return 1;
17306 }
17307
17308
17309 static PyObject *_wrap_SWISS_FONT_get() {
17310 PyObject *pyobj;
17311
17312 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
17313 return pyobj;
17314 }
17315
17316
17317 static int _wrap_RED_PEN_set(PyObject *_val) {
17318 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
17319 return 1;
17320 }
17321
17322
17323 static PyObject *_wrap_RED_PEN_get() {
17324 PyObject *pyobj;
17325
17326 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
17327 return pyobj;
17328 }
17329
17330
17331 static int _wrap_CYAN_PEN_set(PyObject *_val) {
17332 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
17333 return 1;
17334 }
17335
17336
17337 static PyObject *_wrap_CYAN_PEN_get() {
17338 PyObject *pyobj;
17339
17340 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
17341 return pyobj;
17342 }
17343
17344
17345 static int _wrap_GREEN_PEN_set(PyObject *_val) {
17346 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
17347 return 1;
17348 }
17349
17350
17351 static PyObject *_wrap_GREEN_PEN_get() {
17352 PyObject *pyobj;
17353
17354 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
17355 return pyobj;
17356 }
17357
17358
17359 static int _wrap_BLACK_PEN_set(PyObject *_val) {
17360 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
17361 return 1;
17362 }
17363
17364
17365 static PyObject *_wrap_BLACK_PEN_get() {
17366 PyObject *pyobj;
17367
17368 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
17369 return pyobj;
17370 }
17371
17372
17373 static int _wrap_WHITE_PEN_set(PyObject *_val) {
17374 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
17375 return 1;
17376 }
17377
17378
17379 static PyObject *_wrap_WHITE_PEN_get() {
17380 PyObject *pyobj;
17381
17382 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
17383 return pyobj;
17384 }
17385
17386
17387 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
17388 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
17389 return 1;
17390 }
17391
17392
17393 static PyObject *_wrap_TRANSPARENT_PEN_get() {
17394 PyObject *pyobj;
17395
17396 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
17397 return pyobj;
17398 }
17399
17400
17401 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
17402 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
17403 return 1;
17404 }
17405
17406
17407 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
17408 PyObject *pyobj;
17409
17410 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
17411 return pyobj;
17412 }
17413
17414
17415 static int _wrap_GREY_PEN_set(PyObject *_val) {
17416 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
17417 return 1;
17418 }
17419
17420
17421 static PyObject *_wrap_GREY_PEN_get() {
17422 PyObject *pyobj;
17423
17424 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
17425 return pyobj;
17426 }
17427
17428
17429 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
17430 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
17431 return 1;
17432 }
17433
17434
17435 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
17436 PyObject *pyobj;
17437
17438 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17439 return pyobj;
17440 }
17441
17442
17443 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
17444 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
17445 return 1;
17446 }
17447
17448
17449 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
17450 PyObject *pyobj;
17451
17452 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
17453 return pyobj;
17454 }
17455
17456
17457 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
17458 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
17459 return 1;
17460 }
17461
17462
17463 static PyObject *_wrap_BLUE_BRUSH_get() {
17464 PyObject *pyobj;
17465
17466 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17467 return pyobj;
17468 }
17469
17470
17471 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
17472 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
17473 return 1;
17474 }
17475
17476
17477 static PyObject *_wrap_GREEN_BRUSH_get() {
17478 PyObject *pyobj;
17479
17480 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17481 return pyobj;
17482 }
17483
17484
17485 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
17486 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
17487 return 1;
17488 }
17489
17490
17491 static PyObject *_wrap_WHITE_BRUSH_get() {
17492 PyObject *pyobj;
17493
17494 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
17495 return pyobj;
17496 }
17497
17498
17499 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
17500 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
17501 return 1;
17502 }
17503
17504
17505 static PyObject *_wrap_BLACK_BRUSH_get() {
17506 PyObject *pyobj;
17507
17508 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
17509 return pyobj;
17510 }
17511
17512
17513 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
17514 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
17515 return 1;
17516 }
17517
17518
17519 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
17520 PyObject *pyobj;
17521
17522 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
17523 return pyobj;
17524 }
17525
17526
17527 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
17528 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
17529 return 1;
17530 }
17531
17532
17533 static PyObject *_wrap_CYAN_BRUSH_get() {
17534 PyObject *pyobj;
17535
17536 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
17537 return pyobj;
17538 }
17539
17540
17541 static int _wrap_RED_BRUSH_set(PyObject *_val) {
17542 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
17543 return 1;
17544 }
17545
17546
17547 static PyObject *_wrap_RED_BRUSH_get() {
17548 PyObject *pyobj;
17549
17550 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
17551 return pyobj;
17552 }
17553
17554
17555 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
17556 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
17557 return 1;
17558 }
17559
17560
17561 static PyObject *_wrap_GREY_BRUSH_get() {
17562 PyObject *pyobj;
17563
17564 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17565 return pyobj;
17566 }
17567
17568
17569 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
17570 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
17571 return 1;
17572 }
17573
17574
17575 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
17576 PyObject *pyobj;
17577
17578 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17579 return pyobj;
17580 }
17581
17582
17583 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
17584 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
17585 return 1;
17586 }
17587
17588
17589 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
17590 PyObject *pyobj;
17591
17592 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
17593 return pyobj;
17594 }
17595
17596
17597 static int _wrap_BLACK_set(PyObject *_val) {
17598 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
17599 return 1;
17600 }
17601
17602
17603 static PyObject *_wrap_BLACK_get() {
17604 PyObject *pyobj;
17605
17606 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
17607 return pyobj;
17608 }
17609
17610
17611 static int _wrap_WHITE_set(PyObject *_val) {
17612 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
17613 return 1;
17614 }
17615
17616
17617 static PyObject *_wrap_WHITE_get() {
17618 PyObject *pyobj;
17619
17620 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
17621 return pyobj;
17622 }
17623
17624
17625 static int _wrap_RED_set(PyObject *_val) {
17626 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
17627 return 1;
17628 }
17629
17630
17631 static PyObject *_wrap_RED_get() {
17632 PyObject *pyobj;
17633
17634 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
17635 return pyobj;
17636 }
17637
17638
17639 static int _wrap_BLUE_set(PyObject *_val) {
17640 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
17641 return 1;
17642 }
17643
17644
17645 static PyObject *_wrap_BLUE_get() {
17646 PyObject *pyobj;
17647
17648 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
17649 return pyobj;
17650 }
17651
17652
17653 static int _wrap_GREEN_set(PyObject *_val) {
17654 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
17655 return 1;
17656 }
17657
17658
17659 static PyObject *_wrap_GREEN_get() {
17660 PyObject *pyobj;
17661
17662 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
17663 return pyobj;
17664 }
17665
17666
17667 static int _wrap_CYAN_set(PyObject *_val) {
17668 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
17669 return 1;
17670 }
17671
17672
17673 static PyObject *_wrap_CYAN_get() {
17674 PyObject *pyobj;
17675
17676 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17677 return pyobj;
17678 }
17679
17680
17681 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17682 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17683 return 1;
17684 }
17685
17686
17687 static PyObject *_wrap_LIGHT_GREY_get() {
17688 PyObject *pyobj;
17689
17690 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17691 return pyobj;
17692 }
17693
17694
17695 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17696 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17697 return 1;
17698 }
17699
17700
17701 static PyObject *_wrap_STANDARD_CURSOR_get() {
17702 PyObject *pyobj;
17703
17704 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17705 return pyobj;
17706 }
17707
17708
17709 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17710 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17711 return 1;
17712 }
17713
17714
17715 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17716 PyObject *pyobj;
17717
17718 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17719 return pyobj;
17720 }
17721
17722
17723 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17724 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17725 return 1;
17726 }
17727
17728
17729 static PyObject *_wrap_CROSS_CURSOR_get() {
17730 PyObject *pyobj;
17731
17732 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17733 return pyobj;
17734 }
17735
17736
17737 static int _wrap_NullBitmap_set(PyObject *_val) {
17738 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17739 return 1;
17740 }
17741
17742
17743 static PyObject *_wrap_NullBitmap_get() {
17744 PyObject *pyobj;
17745
17746 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17747 return pyobj;
17748 }
17749
17750
17751 static int _wrap_NullIcon_set(PyObject *_val) {
17752 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17753 return 1;
17754 }
17755
17756
17757 static PyObject *_wrap_NullIcon_get() {
17758 PyObject *pyobj;
17759
17760 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17761 return pyobj;
17762 }
17763
17764
17765 static int _wrap_NullCursor_set(PyObject *_val) {
17766 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17767 return 1;
17768 }
17769
17770
17771 static PyObject *_wrap_NullCursor_get() {
17772 PyObject *pyobj;
17773
17774 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17775 return pyobj;
17776 }
17777
17778
17779 static int _wrap_NullPen_set(PyObject *_val) {
17780 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17781 return 1;
17782 }
17783
17784
17785 static PyObject *_wrap_NullPen_get() {
17786 PyObject *pyobj;
17787
17788 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17789 return pyobj;
17790 }
17791
17792
17793 static int _wrap_NullBrush_set(PyObject *_val) {
17794 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17795 return 1;
17796 }
17797
17798
17799 static PyObject *_wrap_NullBrush_get() {
17800 PyObject *pyobj;
17801
17802 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17803 return pyobj;
17804 }
17805
17806
17807 static int _wrap_NullPalette_set(PyObject *_val) {
17808 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17809 return 1;
17810 }
17811
17812
17813 static PyObject *_wrap_NullPalette_get() {
17814 PyObject *pyobj;
17815
17816 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17817 return pyobj;
17818 }
17819
17820
17821 static int _wrap_NullFont_set(PyObject *_val) {
17822 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17823 return 1;
17824 }
17825
17826
17827 static PyObject *_wrap_NullFont_get() {
17828 PyObject *pyobj;
17829
17830 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17831 return pyobj;
17832 }
17833
17834
17835 static int _wrap_NullColour_set(PyObject *_val) {
17836 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17837 return 1;
17838 }
17839
17840
17841 static PyObject *_wrap_NullColour_get() {
17842 PyObject *pyobj;
17843
17844 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17845 return pyobj;
17846 }
17847
17848
17849 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj;
17851 wxPenList *arg1 = (wxPenList *) 0 ;
17852 wxPen *arg2 = (wxPen *) 0 ;
17853 PyObject * obj0 = 0 ;
17854 PyObject * obj1 = 0 ;
17855 char *kwnames[] = {
17856 (char *) "self",(char *) "pen", NULL
17857 };
17858
17859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17862 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17863 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17864 {
17865 PyThreadState* __tstate = wxPyBeginAllowThreads();
17866 (arg1)->AddPen(arg2);
17867
17868 wxPyEndAllowThreads(__tstate);
17869 if (PyErr_Occurred()) SWIG_fail;
17870 }
17871 Py_INCREF(Py_None); resultobj = Py_None;
17872 return resultobj;
17873 fail:
17874 return NULL;
17875 }
17876
17877
17878 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17879 PyObject *resultobj;
17880 wxPenList *arg1 = (wxPenList *) 0 ;
17881 wxColour *arg2 = 0 ;
17882 int arg3 ;
17883 int arg4 ;
17884 wxPen *result;
17885 wxColour temp2 ;
17886 PyObject * obj0 = 0 ;
17887 PyObject * obj1 = 0 ;
17888 PyObject * obj2 = 0 ;
17889 PyObject * obj3 = 0 ;
17890 char *kwnames[] = {
17891 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17892 };
17893
17894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17897 {
17898 arg2 = &temp2;
17899 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17900 }
17901 arg3 = (int) SWIG_AsInt(obj2);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 arg4 = (int) SWIG_AsInt(obj3);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 {
17906 PyThreadState* __tstate = wxPyBeginAllowThreads();
17907 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17908
17909 wxPyEndAllowThreads(__tstate);
17910 if (PyErr_Occurred()) SWIG_fail;
17911 }
17912 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17913 return resultobj;
17914 fail:
17915 return NULL;
17916 }
17917
17918
17919 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj;
17921 wxPenList *arg1 = (wxPenList *) 0 ;
17922 wxPen *arg2 = (wxPen *) 0 ;
17923 PyObject * obj0 = 0 ;
17924 PyObject * obj1 = 0 ;
17925 char *kwnames[] = {
17926 (char *) "self",(char *) "pen", NULL
17927 };
17928
17929 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17930 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17931 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17932 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17934 {
17935 PyThreadState* __tstate = wxPyBeginAllowThreads();
17936 (arg1)->RemovePen(arg2);
17937
17938 wxPyEndAllowThreads(__tstate);
17939 if (PyErr_Occurred()) SWIG_fail;
17940 }
17941 Py_INCREF(Py_None); resultobj = Py_None;
17942 return resultobj;
17943 fail:
17944 return NULL;
17945 }
17946
17947
17948 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17949 PyObject *resultobj;
17950 wxPenList *arg1 = (wxPenList *) 0 ;
17951 int result;
17952 PyObject * obj0 = 0 ;
17953 char *kwnames[] = {
17954 (char *) "self", NULL
17955 };
17956
17957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17960 {
17961 PyThreadState* __tstate = wxPyBeginAllowThreads();
17962 result = (int)(arg1)->GetCount();
17963
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 resultobj = SWIG_FromInt((int)result);
17968 return resultobj;
17969 fail:
17970 return NULL;
17971 }
17972
17973
17974 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17975 PyObject *obj;
17976 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17977 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17978 Py_INCREF(obj);
17979 return Py_BuildValue((char *)"");
17980 }
17981 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17982 PyObject *resultobj;
17983 wxBrushList *arg1 = (wxBrushList *) 0 ;
17984 wxBrush *arg2 = (wxBrush *) 0 ;
17985 PyObject * obj0 = 0 ;
17986 PyObject * obj1 = 0 ;
17987 char *kwnames[] = {
17988 (char *) "self",(char *) "brush", NULL
17989 };
17990
17991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17994 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17996 {
17997 PyThreadState* __tstate = wxPyBeginAllowThreads();
17998 (arg1)->AddBrush(arg2);
17999
18000 wxPyEndAllowThreads(__tstate);
18001 if (PyErr_Occurred()) SWIG_fail;
18002 }
18003 Py_INCREF(Py_None); resultobj = Py_None;
18004 return resultobj;
18005 fail:
18006 return NULL;
18007 }
18008
18009
18010 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
18011 PyObject *resultobj;
18012 wxBrushList *arg1 = (wxBrushList *) 0 ;
18013 wxColour *arg2 = 0 ;
18014 int arg3 ;
18015 wxBrush *result;
18016 wxColour temp2 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 PyObject * obj2 = 0 ;
18020 char *kwnames[] = {
18021 (char *) "self",(char *) "colour",(char *) "style", NULL
18022 };
18023
18024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
18025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18027 {
18028 arg2 = &temp2;
18029 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18030 }
18031 arg3 = (int) SWIG_AsInt(obj2);
18032 if (PyErr_Occurred()) SWIG_fail;
18033 {
18034 PyThreadState* __tstate = wxPyBeginAllowThreads();
18035 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
18036
18037 wxPyEndAllowThreads(__tstate);
18038 if (PyErr_Occurred()) SWIG_fail;
18039 }
18040 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
18041 return resultobj;
18042 fail:
18043 return NULL;
18044 }
18045
18046
18047 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
18048 PyObject *resultobj;
18049 wxBrushList *arg1 = (wxBrushList *) 0 ;
18050 wxBrush *arg2 = (wxBrush *) 0 ;
18051 PyObject * obj0 = 0 ;
18052 PyObject * obj1 = 0 ;
18053 char *kwnames[] = {
18054 (char *) "self",(char *) "brush", NULL
18055 };
18056
18057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
18058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
18061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18062 {
18063 PyThreadState* __tstate = wxPyBeginAllowThreads();
18064 (arg1)->RemoveBrush(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_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18077 PyObject *resultobj;
18078 wxBrushList *arg1 = (wxBrushList *) 0 ;
18079 int result;
18080 PyObject * obj0 = 0 ;
18081 char *kwnames[] = {
18082 (char *) "self", NULL
18083 };
18084
18085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
18086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
18087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18088 {
18089 PyThreadState* __tstate = wxPyBeginAllowThreads();
18090 result = (int)(arg1)->GetCount();
18091
18092 wxPyEndAllowThreads(__tstate);
18093 if (PyErr_Occurred()) SWIG_fail;
18094 }
18095 resultobj = SWIG_FromInt((int)result);
18096 return resultobj;
18097 fail:
18098 return NULL;
18099 }
18100
18101
18102 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
18103 PyObject *obj;
18104 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18105 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
18106 Py_INCREF(obj);
18107 return Py_BuildValue((char *)"");
18108 }
18109 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18110 PyObject *resultobj;
18111 wxColourDatabase *result;
18112 char *kwnames[] = {
18113 NULL
18114 };
18115
18116 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
18117 {
18118 if (!wxPyCheckForApp()) SWIG_fail;
18119 PyThreadState* __tstate = wxPyBeginAllowThreads();
18120 result = (wxColourDatabase *)new wxColourDatabase();
18121
18122 wxPyEndAllowThreads(__tstate);
18123 if (PyErr_Occurred()) SWIG_fail;
18124 }
18125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
18126 return resultobj;
18127 fail:
18128 return NULL;
18129 }
18130
18131
18132 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
18133 PyObject *resultobj;
18134 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18135 PyObject * obj0 = 0 ;
18136 char *kwnames[] = {
18137 (char *) "self", NULL
18138 };
18139
18140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
18141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18143 {
18144 PyThreadState* __tstate = wxPyBeginAllowThreads();
18145 delete arg1;
18146
18147 wxPyEndAllowThreads(__tstate);
18148 if (PyErr_Occurred()) SWIG_fail;
18149 }
18150 Py_INCREF(Py_None); resultobj = Py_None;
18151 return resultobj;
18152 fail:
18153 return NULL;
18154 }
18155
18156
18157 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
18158 PyObject *resultobj;
18159 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18160 wxString *arg2 = 0 ;
18161 wxColour result;
18162 bool temp2 = False ;
18163 PyObject * obj0 = 0 ;
18164 PyObject * obj1 = 0 ;
18165 char *kwnames[] = {
18166 (char *) "self",(char *) "name", NULL
18167 };
18168
18169 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
18170 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18171 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18172 {
18173 arg2 = wxString_in_helper(obj1);
18174 if (arg2 == NULL) SWIG_fail;
18175 temp2 = True;
18176 }
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
18180
18181 wxPyEndAllowThreads(__tstate);
18182 if (PyErr_Occurred()) SWIG_fail;
18183 }
18184 {
18185 wxColour * resultptr;
18186 resultptr = new wxColour((wxColour &) result);
18187 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18188 }
18189 {
18190 if (temp2)
18191 delete arg2;
18192 }
18193 return resultobj;
18194 fail:
18195 {
18196 if (temp2)
18197 delete arg2;
18198 }
18199 return NULL;
18200 }
18201
18202
18203 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
18204 PyObject *resultobj;
18205 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18206 wxColour *arg2 = 0 ;
18207 wxString result;
18208 wxColour temp2 ;
18209 PyObject * obj0 = 0 ;
18210 PyObject * obj1 = 0 ;
18211 char *kwnames[] = {
18212 (char *) "self",(char *) "colour", NULL
18213 };
18214
18215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
18216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18218 {
18219 arg2 = &temp2;
18220 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18221 }
18222 {
18223 PyThreadState* __tstate = wxPyBeginAllowThreads();
18224 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
18225
18226 wxPyEndAllowThreads(__tstate);
18227 if (PyErr_Occurred()) SWIG_fail;
18228 }
18229 {
18230 #if wxUSE_UNICODE
18231 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
18232 #else
18233 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
18234 #endif
18235 }
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj;
18244 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18245 wxString *arg2 = 0 ;
18246 wxColour *arg3 = 0 ;
18247 bool temp2 = False ;
18248 wxColour temp3 ;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 PyObject * obj2 = 0 ;
18252 char *kwnames[] = {
18253 (char *) "self",(char *) "name",(char *) "colour", NULL
18254 };
18255
18256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
18257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18259 {
18260 arg2 = wxString_in_helper(obj1);
18261 if (arg2 == NULL) SWIG_fail;
18262 temp2 = True;
18263 }
18264 {
18265 arg3 = &temp3;
18266 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18267 }
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
18271
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 Py_INCREF(Py_None); resultobj = Py_None;
18276 {
18277 if (temp2)
18278 delete arg2;
18279 }
18280 return resultobj;
18281 fail:
18282 {
18283 if (temp2)
18284 delete arg2;
18285 }
18286 return NULL;
18287 }
18288
18289
18290 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
18291 PyObject *resultobj;
18292 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
18293 wxString *arg2 = 0 ;
18294 int arg3 ;
18295 int arg4 ;
18296 int arg5 ;
18297 bool temp2 = False ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 PyObject * obj2 = 0 ;
18301 PyObject * obj3 = 0 ;
18302 PyObject * obj4 = 0 ;
18303 char *kwnames[] = {
18304 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
18305 };
18306
18307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
18308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
18309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18310 {
18311 arg2 = wxString_in_helper(obj1);
18312 if (arg2 == NULL) SWIG_fail;
18313 temp2 = True;
18314 }
18315 arg3 = (int) SWIG_AsInt(obj2);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 arg4 = (int) SWIG_AsInt(obj3);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 arg5 = (int) SWIG_AsInt(obj4);
18320 if (PyErr_Occurred()) SWIG_fail;
18321 {
18322 PyThreadState* __tstate = wxPyBeginAllowThreads();
18323 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
18324
18325 wxPyEndAllowThreads(__tstate);
18326 if (PyErr_Occurred()) SWIG_fail;
18327 }
18328 Py_INCREF(Py_None); resultobj = Py_None;
18329 {
18330 if (temp2)
18331 delete arg2;
18332 }
18333 return resultobj;
18334 fail:
18335 {
18336 if (temp2)
18337 delete arg2;
18338 }
18339 return NULL;
18340 }
18341
18342
18343 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
18344 PyObject *obj;
18345 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18346 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
18347 Py_INCREF(obj);
18348 return Py_BuildValue((char *)"");
18349 }
18350 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18351 PyObject *resultobj;
18352 wxFontList *arg1 = (wxFontList *) 0 ;
18353 wxFont *arg2 = (wxFont *) 0 ;
18354 PyObject * obj0 = 0 ;
18355 PyObject * obj1 = 0 ;
18356 char *kwnames[] = {
18357 (char *) "self",(char *) "font", NULL
18358 };
18359
18360 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
18361 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18362 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18363 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18365 {
18366 PyThreadState* __tstate = wxPyBeginAllowThreads();
18367 (arg1)->AddFont(arg2);
18368
18369 wxPyEndAllowThreads(__tstate);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 Py_INCREF(Py_None); resultobj = Py_None;
18373 return resultobj;
18374 fail:
18375 return NULL;
18376 }
18377
18378
18379 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj;
18381 wxFontList *arg1 = (wxFontList *) 0 ;
18382 int arg2 ;
18383 int arg3 ;
18384 int arg4 ;
18385 int arg5 ;
18386 bool arg6 = (bool) False ;
18387 wxString const &arg7_defvalue = wxPyEmptyString ;
18388 wxString *arg7 = (wxString *) &arg7_defvalue ;
18389 int arg8 = (int) wxFONTENCODING_DEFAULT ;
18390 wxFont *result;
18391 bool temp7 = False ;
18392 PyObject * obj0 = 0 ;
18393 PyObject * obj1 = 0 ;
18394 PyObject * obj2 = 0 ;
18395 PyObject * obj3 = 0 ;
18396 PyObject * obj4 = 0 ;
18397 PyObject * obj5 = 0 ;
18398 PyObject * obj6 = 0 ;
18399 PyObject * obj7 = 0 ;
18400 char *kwnames[] = {
18401 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
18402 };
18403
18404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
18405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18407 arg2 = (int) SWIG_AsInt(obj1);
18408 if (PyErr_Occurred()) SWIG_fail;
18409 arg3 = (int) SWIG_AsInt(obj2);
18410 if (PyErr_Occurred()) SWIG_fail;
18411 arg4 = (int) SWIG_AsInt(obj3);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 arg5 = (int) SWIG_AsInt(obj4);
18414 if (PyErr_Occurred()) SWIG_fail;
18415 if (obj5) {
18416 arg6 = (bool) SWIG_AsBool(obj5);
18417 if (PyErr_Occurred()) SWIG_fail;
18418 }
18419 if (obj6) {
18420 {
18421 arg7 = wxString_in_helper(obj6);
18422 if (arg7 == NULL) SWIG_fail;
18423 temp7 = True;
18424 }
18425 }
18426 if (obj7) {
18427 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
18428 if (PyErr_Occurred()) SWIG_fail;
18429 }
18430 {
18431 PyThreadState* __tstate = wxPyBeginAllowThreads();
18432 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
18433
18434 wxPyEndAllowThreads(__tstate);
18435 if (PyErr_Occurred()) SWIG_fail;
18436 }
18437 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
18438 {
18439 if (temp7)
18440 delete arg7;
18441 }
18442 return resultobj;
18443 fail:
18444 {
18445 if (temp7)
18446 delete arg7;
18447 }
18448 return NULL;
18449 }
18450
18451
18452 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
18453 PyObject *resultobj;
18454 wxFontList *arg1 = (wxFontList *) 0 ;
18455 wxFont *arg2 = (wxFont *) 0 ;
18456 PyObject * obj0 = 0 ;
18457 PyObject * obj1 = 0 ;
18458 char *kwnames[] = {
18459 (char *) "self",(char *) "font", NULL
18460 };
18461
18462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
18463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
18466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18467 {
18468 PyThreadState* __tstate = wxPyBeginAllowThreads();
18469 (arg1)->RemoveFont(arg2);
18470
18471 wxPyEndAllowThreads(__tstate);
18472 if (PyErr_Occurred()) SWIG_fail;
18473 }
18474 Py_INCREF(Py_None); resultobj = Py_None;
18475 return resultobj;
18476 fail:
18477 return NULL;
18478 }
18479
18480
18481 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
18482 PyObject *resultobj;
18483 wxFontList *arg1 = (wxFontList *) 0 ;
18484 int result;
18485 PyObject * obj0 = 0 ;
18486 char *kwnames[] = {
18487 (char *) "self", NULL
18488 };
18489
18490 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
18491 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
18492 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18493 {
18494 PyThreadState* __tstate = wxPyBeginAllowThreads();
18495 result = (int)(arg1)->GetCount();
18496
18497 wxPyEndAllowThreads(__tstate);
18498 if (PyErr_Occurred()) SWIG_fail;
18499 }
18500 resultobj = SWIG_FromInt((int)result);
18501 return resultobj;
18502 fail:
18503 return NULL;
18504 }
18505
18506
18507 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
18508 PyObject *obj;
18509 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18510 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
18511 Py_INCREF(obj);
18512 return Py_BuildValue((char *)"");
18513 }
18514 static int _wrap_TheFontList_set(PyObject *_val) {
18515 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
18516 return 1;
18517 }
18518
18519
18520 static PyObject *_wrap_TheFontList_get() {
18521 PyObject *pyobj;
18522
18523 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
18524 return pyobj;
18525 }
18526
18527
18528 static int _wrap_ThePenList_set(PyObject *_val) {
18529 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
18530 return 1;
18531 }
18532
18533
18534 static PyObject *_wrap_ThePenList_get() {
18535 PyObject *pyobj;
18536
18537 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
18538 return pyobj;
18539 }
18540
18541
18542 static int _wrap_TheBrushList_set(PyObject *_val) {
18543 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
18544 return 1;
18545 }
18546
18547
18548 static PyObject *_wrap_TheBrushList_get() {
18549 PyObject *pyobj;
18550
18551 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
18552 return pyobj;
18553 }
18554
18555
18556 static int _wrap_TheColourDatabase_set(PyObject *_val) {
18557 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
18558 return 1;
18559 }
18560
18561
18562 static PyObject *_wrap_TheColourDatabase_get() {
18563 PyObject *pyobj;
18564
18565 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
18566 return pyobj;
18567 }
18568
18569
18570 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
18571 PyObject *resultobj;
18572 wxEffects *result;
18573 char *kwnames[] = {
18574 NULL
18575 };
18576
18577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
18578 {
18579 PyThreadState* __tstate = wxPyBeginAllowThreads();
18580 result = (wxEffects *)new wxEffects();
18581
18582 wxPyEndAllowThreads(__tstate);
18583 if (PyErr_Occurred()) SWIG_fail;
18584 }
18585 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
18586 return resultobj;
18587 fail:
18588 return NULL;
18589 }
18590
18591
18592 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18593 PyObject *resultobj;
18594 wxEffects *arg1 = (wxEffects *) 0 ;
18595 wxColour result;
18596 PyObject * obj0 = 0 ;
18597 char *kwnames[] = {
18598 (char *) "self", NULL
18599 };
18600
18601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
18602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18604 {
18605 PyThreadState* __tstate = wxPyBeginAllowThreads();
18606 result = ((wxEffects const *)arg1)->GetHighlightColour();
18607
18608 wxPyEndAllowThreads(__tstate);
18609 if (PyErr_Occurred()) SWIG_fail;
18610 }
18611 {
18612 wxColour * resultptr;
18613 resultptr = new wxColour((wxColour &) result);
18614 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18615 }
18616 return resultobj;
18617 fail:
18618 return NULL;
18619 }
18620
18621
18622 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18623 PyObject *resultobj;
18624 wxEffects *arg1 = (wxEffects *) 0 ;
18625 wxColour result;
18626 PyObject * obj0 = 0 ;
18627 char *kwnames[] = {
18628 (char *) "self", NULL
18629 };
18630
18631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
18632 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18633 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18634 {
18635 PyThreadState* __tstate = wxPyBeginAllowThreads();
18636 result = ((wxEffects const *)arg1)->GetLightShadow();
18637
18638 wxPyEndAllowThreads(__tstate);
18639 if (PyErr_Occurred()) SWIG_fail;
18640 }
18641 {
18642 wxColour * resultptr;
18643 resultptr = new wxColour((wxColour &) result);
18644 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18645 }
18646 return resultobj;
18647 fail:
18648 return NULL;
18649 }
18650
18651
18652 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18653 PyObject *resultobj;
18654 wxEffects *arg1 = (wxEffects *) 0 ;
18655 wxColour result;
18656 PyObject * obj0 = 0 ;
18657 char *kwnames[] = {
18658 (char *) "self", NULL
18659 };
18660
18661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
18662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18664 {
18665 PyThreadState* __tstate = wxPyBeginAllowThreads();
18666 result = ((wxEffects const *)arg1)->GetFaceColour();
18667
18668 wxPyEndAllowThreads(__tstate);
18669 if (PyErr_Occurred()) SWIG_fail;
18670 }
18671 {
18672 wxColour * resultptr;
18673 resultptr = new wxColour((wxColour &) result);
18674 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18675 }
18676 return resultobj;
18677 fail:
18678 return NULL;
18679 }
18680
18681
18682 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18683 PyObject *resultobj;
18684 wxEffects *arg1 = (wxEffects *) 0 ;
18685 wxColour result;
18686 PyObject * obj0 = 0 ;
18687 char *kwnames[] = {
18688 (char *) "self", NULL
18689 };
18690
18691 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18692 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18693 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18694 {
18695 PyThreadState* __tstate = wxPyBeginAllowThreads();
18696 result = ((wxEffects const *)arg1)->GetMediumShadow();
18697
18698 wxPyEndAllowThreads(__tstate);
18699 if (PyErr_Occurred()) SWIG_fail;
18700 }
18701 {
18702 wxColour * resultptr;
18703 resultptr = new wxColour((wxColour &) result);
18704 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18705 }
18706 return resultobj;
18707 fail:
18708 return NULL;
18709 }
18710
18711
18712 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18713 PyObject *resultobj;
18714 wxEffects *arg1 = (wxEffects *) 0 ;
18715 wxColour result;
18716 PyObject * obj0 = 0 ;
18717 char *kwnames[] = {
18718 (char *) "self", NULL
18719 };
18720
18721 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18722 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18723 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18724 {
18725 PyThreadState* __tstate = wxPyBeginAllowThreads();
18726 result = ((wxEffects const *)arg1)->GetDarkShadow();
18727
18728 wxPyEndAllowThreads(__tstate);
18729 if (PyErr_Occurred()) SWIG_fail;
18730 }
18731 {
18732 wxColour * resultptr;
18733 resultptr = new wxColour((wxColour &) result);
18734 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18735 }
18736 return resultobj;
18737 fail:
18738 return NULL;
18739 }
18740
18741
18742 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18743 PyObject *resultobj;
18744 wxEffects *arg1 = (wxEffects *) 0 ;
18745 wxColour *arg2 = 0 ;
18746 wxColour temp2 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 char *kwnames[] = {
18750 (char *) "self",(char *) "c", NULL
18751 };
18752
18753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18756 {
18757 arg2 = &temp2;
18758 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18759 }
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18763
18764 wxPyEndAllowThreads(__tstate);
18765 if (PyErr_Occurred()) SWIG_fail;
18766 }
18767 Py_INCREF(Py_None); resultobj = Py_None;
18768 return resultobj;
18769 fail:
18770 return NULL;
18771 }
18772
18773
18774 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18775 PyObject *resultobj;
18776 wxEffects *arg1 = (wxEffects *) 0 ;
18777 wxColour *arg2 = 0 ;
18778 wxColour temp2 ;
18779 PyObject * obj0 = 0 ;
18780 PyObject * obj1 = 0 ;
18781 char *kwnames[] = {
18782 (char *) "self",(char *) "c", NULL
18783 };
18784
18785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18788 {
18789 arg2 = &temp2;
18790 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18791 }
18792 {
18793 PyThreadState* __tstate = wxPyBeginAllowThreads();
18794 (arg1)->SetLightShadow((wxColour const &)*arg2);
18795
18796 wxPyEndAllowThreads(__tstate);
18797 if (PyErr_Occurred()) SWIG_fail;
18798 }
18799 Py_INCREF(Py_None); resultobj = Py_None;
18800 return resultobj;
18801 fail:
18802 return NULL;
18803 }
18804
18805
18806 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18807 PyObject *resultobj;
18808 wxEffects *arg1 = (wxEffects *) 0 ;
18809 wxColour *arg2 = 0 ;
18810 wxColour temp2 ;
18811 PyObject * obj0 = 0 ;
18812 PyObject * obj1 = 0 ;
18813 char *kwnames[] = {
18814 (char *) "self",(char *) "c", NULL
18815 };
18816
18817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18820 {
18821 arg2 = &temp2;
18822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18823 }
18824 {
18825 PyThreadState* __tstate = wxPyBeginAllowThreads();
18826 (arg1)->SetFaceColour((wxColour const &)*arg2);
18827
18828 wxPyEndAllowThreads(__tstate);
18829 if (PyErr_Occurred()) SWIG_fail;
18830 }
18831 Py_INCREF(Py_None); resultobj = Py_None;
18832 return resultobj;
18833 fail:
18834 return NULL;
18835 }
18836
18837
18838 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18839 PyObject *resultobj;
18840 wxEffects *arg1 = (wxEffects *) 0 ;
18841 wxColour *arg2 = 0 ;
18842 wxColour temp2 ;
18843 PyObject * obj0 = 0 ;
18844 PyObject * obj1 = 0 ;
18845 char *kwnames[] = {
18846 (char *) "self",(char *) "c", NULL
18847 };
18848
18849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18852 {
18853 arg2 = &temp2;
18854 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18855 }
18856 {
18857 PyThreadState* __tstate = wxPyBeginAllowThreads();
18858 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18859
18860 wxPyEndAllowThreads(__tstate);
18861 if (PyErr_Occurred()) SWIG_fail;
18862 }
18863 Py_INCREF(Py_None); resultobj = Py_None;
18864 return resultobj;
18865 fail:
18866 return NULL;
18867 }
18868
18869
18870 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18871 PyObject *resultobj;
18872 wxEffects *arg1 = (wxEffects *) 0 ;
18873 wxColour *arg2 = 0 ;
18874 wxColour temp2 ;
18875 PyObject * obj0 = 0 ;
18876 PyObject * obj1 = 0 ;
18877 char *kwnames[] = {
18878 (char *) "self",(char *) "c", NULL
18879 };
18880
18881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18882 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18883 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18884 {
18885 arg2 = &temp2;
18886 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18887 }
18888 {
18889 PyThreadState* __tstate = wxPyBeginAllowThreads();
18890 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18891
18892 wxPyEndAllowThreads(__tstate);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 Py_INCREF(Py_None); resultobj = Py_None;
18896 return resultobj;
18897 fail:
18898 return NULL;
18899 }
18900
18901
18902 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18903 PyObject *resultobj;
18904 wxEffects *arg1 = (wxEffects *) 0 ;
18905 wxColour *arg2 = 0 ;
18906 wxColour *arg3 = 0 ;
18907 wxColour *arg4 = 0 ;
18908 wxColour *arg5 = 0 ;
18909 wxColour *arg6 = 0 ;
18910 wxColour temp2 ;
18911 wxColour temp3 ;
18912 wxColour temp4 ;
18913 wxColour temp5 ;
18914 wxColour temp6 ;
18915 PyObject * obj0 = 0 ;
18916 PyObject * obj1 = 0 ;
18917 PyObject * obj2 = 0 ;
18918 PyObject * obj3 = 0 ;
18919 PyObject * obj4 = 0 ;
18920 PyObject * obj5 = 0 ;
18921 char *kwnames[] = {
18922 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18923 };
18924
18925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18928 {
18929 arg2 = &temp2;
18930 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18931 }
18932 {
18933 arg3 = &temp3;
18934 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18935 }
18936 {
18937 arg4 = &temp4;
18938 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18939 }
18940 {
18941 arg5 = &temp5;
18942 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18943 }
18944 {
18945 arg6 = &temp6;
18946 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18947 }
18948 {
18949 PyThreadState* __tstate = wxPyBeginAllowThreads();
18950 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18951
18952 wxPyEndAllowThreads(__tstate);
18953 if (PyErr_Occurred()) SWIG_fail;
18954 }
18955 Py_INCREF(Py_None); resultobj = Py_None;
18956 return resultobj;
18957 fail:
18958 return NULL;
18959 }
18960
18961
18962 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18963 PyObject *resultobj;
18964 wxEffects *arg1 = (wxEffects *) 0 ;
18965 wxDC *arg2 = 0 ;
18966 wxRect *arg3 = 0 ;
18967 int arg4 = (int) 1 ;
18968 wxRect temp3 ;
18969 PyObject * obj0 = 0 ;
18970 PyObject * obj1 = 0 ;
18971 PyObject * obj2 = 0 ;
18972 PyObject * obj3 = 0 ;
18973 char *kwnames[] = {
18974 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18975 };
18976
18977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18980 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18981 SWIG_POINTER_EXCEPTION | 0)) == -1)
18982 SWIG_fail;
18983 if (arg2 == NULL) {
18984 PyErr_SetString(PyExc_TypeError,"null reference");
18985 SWIG_fail;
18986 }
18987 {
18988 arg3 = &temp3;
18989 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18990 }
18991 if (obj3) {
18992 arg4 = (int) SWIG_AsInt(obj3);
18993 if (PyErr_Occurred()) SWIG_fail;
18994 }
18995 {
18996 PyThreadState* __tstate = wxPyBeginAllowThreads();
18997 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18998
18999 wxPyEndAllowThreads(__tstate);
19000 if (PyErr_Occurred()) SWIG_fail;
19001 }
19002 Py_INCREF(Py_None); resultobj = Py_None;
19003 return resultobj;
19004 fail:
19005 return NULL;
19006 }
19007
19008
19009 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
19010 PyObject *resultobj;
19011 wxEffects *arg1 = (wxEffects *) 0 ;
19012 wxRect *arg2 = 0 ;
19013 wxDC *arg3 = 0 ;
19014 wxBitmap *arg4 = 0 ;
19015 bool result;
19016 wxRect temp2 ;
19017 PyObject * obj0 = 0 ;
19018 PyObject * obj1 = 0 ;
19019 PyObject * obj2 = 0 ;
19020 PyObject * obj3 = 0 ;
19021 char *kwnames[] = {
19022 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
19023 };
19024
19025 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
19026 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
19027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
19028 {
19029 arg2 = &temp2;
19030 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19031 }
19032 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
19033 SWIG_POINTER_EXCEPTION | 0)) == -1)
19034 SWIG_fail;
19035 if (arg3 == NULL) {
19036 PyErr_SetString(PyExc_TypeError,"null reference");
19037 SWIG_fail;
19038 }
19039 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
19040 SWIG_POINTER_EXCEPTION | 0)) == -1)
19041 SWIG_fail;
19042 if (arg4 == NULL) {
19043 PyErr_SetString(PyExc_TypeError,"null reference");
19044 SWIG_fail;
19045 }
19046 {
19047 PyThreadState* __tstate = wxPyBeginAllowThreads();
19048 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
19049
19050 wxPyEndAllowThreads(__tstate);
19051 if (PyErr_Occurred()) SWIG_fail;
19052 }
19053 {
19054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19055 }
19056 return resultobj;
19057 fail:
19058 return NULL;
19059 }
19060
19061
19062 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
19063 PyObject *obj;
19064 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
19065 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
19066 Py_INCREF(obj);
19067 return Py_BuildValue((char *)"");
19068 }
19069 static PyMethodDef SwigMethods[] = {
19070 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
19071 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
19072 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
19073 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
19074 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
19075 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
19076 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
19077 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
19078 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
19079 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
19080 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
19081 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
19082 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
19083 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
19084 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
19085 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
19086 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
19087 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
19088 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
19089 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
19090 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
19091 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
19092 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
19093 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
19094 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
19095 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
19096 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
19097 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
19098 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
19099 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
19100 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
19101 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
19102 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
19103 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
19104 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
19105 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
19106 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
19107 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
19108 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
19109 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
19110 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
19111 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
19112 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
19113 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
19114 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
19115 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
19116 { (char *)"Pen_GetStipple", (PyCFunction) _wrap_Pen_GetStipple, METH_VARARGS | METH_KEYWORDS },
19117 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS },
19118 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
19119 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
19120 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
19121 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
19122 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
19123 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
19124 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
19125 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
19126 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
19127 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
19128 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
19129 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
19130 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
19131 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
19132 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
19133 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
19134 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
19135 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
19136 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
19137 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
19138 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS },
19139 { (char *)"Bitmap_GetHandle", (PyCFunction) _wrap_Bitmap_GetHandle, METH_VARARGS | METH_KEYWORDS },
19140 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS },
19141 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
19142 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
19143 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
19144 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
19145 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
19146 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
19147 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
19148 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
19149 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
19150 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
19151 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
19152 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
19153 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
19154 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
19155 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
19156 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
19157 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
19158 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS },
19159 { (char *)"Bitmap_GetQuality", (PyCFunction) _wrap_Bitmap_GetQuality, METH_VARARGS | METH_KEYWORDS },
19160 { (char *)"Bitmap_SetQuality", (PyCFunction) _wrap_Bitmap_SetQuality, METH_VARARGS | METH_KEYWORDS },
19161 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
19162 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
19163 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
19164 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
19165 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
19166 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
19167 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
19168 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
19169 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
19170 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
19171 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
19172 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
19173 { (char *)"Icon_GetHandle", (PyCFunction) _wrap_Icon_GetHandle, METH_VARARGS | METH_KEYWORDS },
19174 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS },
19175 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
19176 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
19177 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
19178 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
19179 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
19180 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
19181 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
19182 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS },
19183 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
19184 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
19185 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
19186 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
19187 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
19188 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
19189 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
19190 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
19191 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
19192 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
19193 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
19194 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
19195 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
19196 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
19197 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
19198 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
19199 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
19200 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
19201 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
19202 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
19203 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
19204 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
19205 { (char *)"Cursor_GetHandle", (PyCFunction) _wrap_Cursor_GetHandle, METH_VARARGS | METH_KEYWORDS },
19206 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS },
19207 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
19208 { (char *)"Cursor_GetWidth", (PyCFunction) _wrap_Cursor_GetWidth, METH_VARARGS | METH_KEYWORDS },
19209 { (char *)"Cursor_GetHeight", (PyCFunction) _wrap_Cursor_GetHeight, METH_VARARGS | METH_KEYWORDS },
19210 { (char *)"Cursor_GetDepth", (PyCFunction) _wrap_Cursor_GetDepth, METH_VARARGS | METH_KEYWORDS },
19211 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS },
19212 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS },
19213 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS },
19214 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS },
19215 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
19216 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
19217 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
19218 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
19219 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
19220 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
19221 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
19222 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
19223 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
19224 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
19225 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
19226 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
19227 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
19228 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
19229 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
19230 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
19231 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
19232 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
19233 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
19234 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
19235 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
19236 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
19237 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
19238 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
19239 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
19240 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
19241 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
19242 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
19243 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
19244 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
19245 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19246 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
19247 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
19248 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
19249 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
19250 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
19251 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
19252 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
19253 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
19254 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
19255 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
19256 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
19257 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
19258 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
19259 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19260 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19261 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
19262 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
19263 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19264 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
19265 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
19266 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19267 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19268 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
19269 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19270 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19271 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
19272 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
19273 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19274 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19275 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
19276 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19277 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19278 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19279 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
19280 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
19281 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
19282 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
19283 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
19284 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
19285 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
19286 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
19287 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19288 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
19289 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
19290 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
19291 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
19292 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
19293 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
19294 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
19295 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
19296 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
19297 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
19298 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
19299 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
19300 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19301 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
19302 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
19303 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
19304 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
19305 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
19306 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
19307 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
19308 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
19309 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
19310 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
19311 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
19312 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
19313 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
19314 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
19315 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
19316 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
19317 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
19318 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
19319 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
19320 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
19321 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
19322 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
19323 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
19324 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
19325 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
19326 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
19327 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19328 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
19329 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
19330 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19331 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
19332 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
19333 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
19334 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
19335 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
19336 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
19337 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
19338 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
19339 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
19340 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
19341 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
19342 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
19343 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
19344 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19345 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
19346 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19347 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
19348 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
19349 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19350 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
19351 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
19352 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
19353 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
19354 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
19355 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
19356 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
19357 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
19358 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
19359 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
19360 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
19361 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
19362 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
19363 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
19364 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
19365 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
19366 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
19367 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
19368 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
19369 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
19370 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
19371 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
19372 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
19373 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
19374 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
19375 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
19376 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
19377 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
19378 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
19379 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19380 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
19381 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
19382 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
19383 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
19384 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
19385 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
19386 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
19387 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
19388 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19389 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
19390 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
19391 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
19392 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
19393 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
19394 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
19395 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
19396 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
19397 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
19398 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
19399 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
19400 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
19401 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
19402 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
19403 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
19404 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
19405 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
19406 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
19407 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
19408 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
19409 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
19410 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
19411 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
19412 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
19413 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
19414 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
19415 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
19416 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
19417 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19418 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
19419 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
19420 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
19421 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
19422 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
19423 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
19424 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
19425 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
19426 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
19427 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
19428 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
19429 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
19430 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
19431 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
19432 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
19433 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
19434 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
19435 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
19436 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
19437 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
19438 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
19439 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
19440 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
19441 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
19442 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
19443 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
19444 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
19445 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
19446 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
19447 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
19448 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
19449 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
19450 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
19451 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
19452 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
19453 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
19454 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19455 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
19456 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
19457 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
19458 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
19459 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
19460 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
19461 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
19462 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
19463 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
19464 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
19465 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
19466 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
19467 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
19468 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
19469 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
19470 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
19471 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
19472 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
19473 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
19474 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
19475 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
19476 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
19477 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
19478 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
19479 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
19480 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
19481 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
19482 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
19483 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
19484 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
19485 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
19486 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
19487 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
19488 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
19489 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
19490 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
19491 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
19492 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
19493 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
19494 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
19495 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19496 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
19497 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19498 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
19499 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
19500 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
19501 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19502 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
19503 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
19504 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
19505 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
19506 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19507 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
19508 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
19509 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
19510 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
19511 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
19512 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19513 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
19514 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
19515 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
19516 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
19517 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
19518 { (char *)"DC_GetHDC", (PyCFunction) _wrap_DC_GetHDC, METH_VARARGS | METH_KEYWORDS },
19519 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
19520 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
19521 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
19522 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
19523 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
19524 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
19525 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
19526 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
19527 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
19528 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
19529 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
19530 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
19531 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
19532 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
19533 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
19534 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
19535 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
19536 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
19537 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
19538 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
19539 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19540 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
19541 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
19542 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
19543 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
19544 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
19545 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
19546 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
19547 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
19548 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
19549 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
19550 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
19551 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
19552 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
19553 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
19554 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
19555 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
19556 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
19557 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
19558 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
19559 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
19560 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
19561 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
19562 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
19563 { (char *)"MetaFile_GetFileName", (PyCFunction) _wrap_MetaFile_GetFileName, METH_VARARGS | METH_KEYWORDS },
19564 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
19565 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
19566 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
19567 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
19568 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
19569 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
19570 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
19571 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
19572 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
19573 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
19574 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
19575 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
19576 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
19577 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
19578 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
19579 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
19580 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
19581 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
19582 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
19583 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
19584 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
19585 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
19586 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
19587 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
19588 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
19589 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
19590 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
19591 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
19592 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19593 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
19594 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
19595 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
19596 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
19597 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
19598 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
19599 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
19600 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
19601 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
19602 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
19603 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
19604 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
19605 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19606 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
19607 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
19608 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19609 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19610 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
19611 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
19612 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
19613 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
19614 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
19615 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
19616 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
19617 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
19618 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
19619 { NULL, NULL }
19620 };
19621
19622
19623 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
19624
19625 static void *_p_wxControlTo_p_wxWindow(void *x) {
19626 return (void *)((wxWindow *) ((wxControl *) x));
19627 }
19628 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
19629 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
19630 }
19631 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
19632 return (void *)((wxWindow *) ((wxMenuBar *) x));
19633 }
19634 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
19635 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
19636 }
19637 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
19638 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
19639 }
19640 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
19641 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
19642 }
19643 static void *_p_wxPenTo_p_wxObject(void *x) {
19644 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
19645 }
19646 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
19647 return (void *)((wxObject *) ((wxRegionIterator *) x));
19648 }
19649 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
19650 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
19651 }
19652 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
19653 return (void *)((wxObject *) ((wxSizerItem *) x));
19654 }
19655 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
19656 return (void *)((wxObject *) ((wxColourDatabase *) x));
19657 }
19658 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
19659 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
19660 }
19661 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
19662 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
19663 }
19664 static void *_p_wxIconTo_p_wxObject(void *x) {
19665 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
19666 }
19667 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
19668 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
19669 }
19670 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
19671 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
19672 }
19673 static void *_p_wxSizerTo_p_wxObject(void *x) {
19674 return (void *)((wxObject *) ((wxSizer *) x));
19675 }
19676 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
19677 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
19678 }
19679 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
19680 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
19681 }
19682 static void *_p_wxPenListTo_p_wxObject(void *x) {
19683 return (void *)((wxObject *) ((wxPenList *) x));
19684 }
19685 static void *_p_wxEventTo_p_wxObject(void *x) {
19686 return (void *)((wxObject *) ((wxEvent *) x));
19687 }
19688 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
19689 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
19690 }
19691 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
19692 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
19693 }
19694 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
19695 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
19696 }
19697 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
19698 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
19699 }
19700 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19701 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19702 }
19703 static void *_p_wxDCTo_p_wxObject(void *x) {
19704 return (void *)((wxObject *) ((wxDC *) x));
19705 }
19706 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19707 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19708 }
19709 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19710 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19711 }
19712 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19713 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19714 }
19715 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19716 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19717 }
19718 static void *_p_wxControlTo_p_wxObject(void *x) {
19719 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19720 }
19721 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19722 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19723 }
19724 static void *_p_wxClientDCTo_p_wxObject(void *x) {
19725 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19726 }
19727 static void *_p_wxFSFileTo_p_wxObject(void *x) {
19728 return (void *)((wxObject *) ((wxFSFile *) x));
19729 }
19730 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19731 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19732 }
19733 static void *_p_wxRegionTo_p_wxObject(void *x) {
19734 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19735 }
19736 static void *_p_wxPySizerTo_p_wxObject(void *x) {
19737 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19738 }
19739 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19740 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19741 }
19742 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19743 return (void *)((wxObject *) ((wxGDIObject *) x));
19744 }
19745 static void *_p_wxEffectsTo_p_wxObject(void *x) {
19746 return (void *)((wxObject *) ((wxEffects *) x));
19747 }
19748 static void *_p_wxPyEventTo_p_wxObject(void *x) {
19749 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19750 }
19751 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19752 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19753 }
19754 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19755 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19756 }
19757 static void *_p_wxShowEventTo_p_wxObject(void *x) {
19758 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19759 }
19760 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19761 return (void *)((wxObject *) ((wxMenuItem *) x));
19762 }
19763 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19764 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19765 }
19766 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19767 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19768 }
19769 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19770 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19771 }
19772 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19773 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19774 }
19775 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19776 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19777 }
19778 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19779 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19780 }
19781 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19782 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19783 }
19784 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19785 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19786 }
19787 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19788 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19789 }
19790 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19791 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19792 }
19793 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19794 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19795 }
19796 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19797 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19798 }
19799 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19800 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19801 }
19802 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19803 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19804 }
19805 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19806 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19807 }
19808 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19809 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19810 }
19811 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19812 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19813 }
19814 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19815 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19816 }
19817 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19818 return (void *)((wxObject *) ((wxImageHandler *) x));
19819 }
19820 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19821 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19822 }
19823 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19824 return (void *)((wxObject *) ((wxEvtHandler *) x));
19825 }
19826 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19827 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19828 }
19829 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19830 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19831 }
19832 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19833 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19834 }
19835 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19836 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19837 }
19838 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19839 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19840 }
19841 static void *_p_wxImageTo_p_wxObject(void *x) {
19842 return (void *)((wxObject *) ((wxImage *) x));
19843 }
19844 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19845 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19846 }
19847 static void *_p_wxPaletteTo_p_wxObject(void *x) {
19848 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19849 }
19850 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19851 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19852 }
19853 static void *_p_wxImageListTo_p_wxObject(void *x) {
19854 return (void *)((wxObject *) ((wxImageList *) x));
19855 }
19856 static void *_p_wxCursorTo_p_wxObject(void *x) {
19857 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19858 }
19859 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19860 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19861 }
19862 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19863 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19864 }
19865 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19866 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19867 }
19868 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19869 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19870 }
19871 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19872 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19873 }
19874 static void *_p_wxWindowTo_p_wxObject(void *x) {
19875 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19876 }
19877 static void *_p_wxMenuTo_p_wxObject(void *x) {
19878 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19879 }
19880 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19881 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19882 }
19883 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19884 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19885 }
19886 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19887 return (void *)((wxObject *) ((wxBrushList *) x));
19888 }
19889 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19890 return (void *)((wxObject *) ((wxFileSystem *) x));
19891 }
19892 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19893 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19894 }
19895 static void *_p_wxMaskTo_p_wxObject(void *x) {
19896 return (void *)((wxObject *) ((wxMask *) x));
19897 }
19898 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19899 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19900 }
19901 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19902 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19903 }
19904 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19905 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19906 }
19907 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19908 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19909 }
19910 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19911 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19912 }
19913 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19914 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19915 }
19916 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19917 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19918 }
19919 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19920 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19921 }
19922 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19923 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19924 }
19925 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19926 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19927 }
19928 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19929 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19930 }
19931 static void *_p_wxFontTo_p_wxObject(void *x) {
19932 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19933 }
19934 static void *_p_wxBrushTo_p_wxObject(void *x) {
19935 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19936 }
19937 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19938 return (void *)((wxObject *) ((wxMetaFile *) x));
19939 }
19940 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19941 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19942 }
19943 static void *_p_wxColourTo_p_wxObject(void *x) {
19944 return (void *)((wxObject *) ((wxColour *) x));
19945 }
19946 static void *_p_wxFontListTo_p_wxObject(void *x) {
19947 return (void *)((wxObject *) ((wxFontList *) x));
19948 }
19949 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19950 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19951 }
19952 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19953 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19954 }
19955 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19956 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19957 }
19958 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19959 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19960 }
19961 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19962 return (void *)((wxDC *) ((wxScreenDC *) x));
19963 }
19964 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19965 return (void *)((wxDC *) ((wxMirrorDC *) x));
19966 }
19967 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19968 return (void *)((wxDC *) ((wxMemoryDC *) x));
19969 }
19970 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19971 return (void *)((wxDC *) ((wxWindowDC *) x));
19972 }
19973 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19974 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19975 }
19976 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19977 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19978 }
19979 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19980 return (void *)((wxDC *) ((wxClientDC *) x));
19981 }
19982 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19983 return (void *)((wxDC *) ((wxPaintDC *) x));
19984 }
19985 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19986 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19987 }
19988 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19989 return (void *)((wxDC *) ((wxPrinterDC *) x));
19990 }
19991 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19992 return (void *)((wxGDIObject *) ((wxIcon *) x));
19993 }
19994 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19995 return (void *)((wxGDIObject *) ((wxPalette *) x));
19996 }
19997 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19998 return (void *)((wxGDIObject *) ((wxPen *) x));
19999 }
20000 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
20001 return (void *)((wxGDIObject *) ((wxFont *) x));
20002 }
20003 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
20004 return (void *)((wxGDIObject *) ((wxCursor *) x));
20005 }
20006 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
20007 return (void *)((wxGDIObject *) ((wxBitmap *) x));
20008 }
20009 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
20010 return (void *)((wxGDIObject *) ((wxRegion *) x));
20011 }
20012 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
20013 return (void *)((wxGDIObject *) ((wxBrush *) x));
20014 }
20015 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}};
20016 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}};
20017 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}};
20018 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}};
20019 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}};
20020 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}};
20021 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}};
20022 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}};
20023 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}};
20024 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}};
20025 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}};
20026 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}};
20027 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}};
20028 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}};
20029 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}};
20030 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}};
20031 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}};
20032 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}};
20033 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}};
20034 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}};
20035 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}};
20036 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}};
20037 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}};
20038 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}};
20039 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}};
20040 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}};
20041 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}};
20042 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}};
20043 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}};
20044 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}};
20045 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}};
20046 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}};
20047 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}};
20048 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}};
20049 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}};
20050 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}};
20051 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}};
20052 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}};
20053 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}};
20054 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}};
20055 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}};
20056 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}};
20057 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}};
20058 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}};
20059 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}};
20060 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}};
20061 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}};
20062 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}};
20063 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}};
20064 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}};
20065 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}};
20066 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}};
20067 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}};
20068 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}};
20069 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}};
20070
20071 static swig_type_info *swig_types_initial[] = {
20072 _swigt__p_wxPostScriptDC,
20073 _swigt__p_wxBrush,
20074 _swigt__p_wxColour,
20075 _swigt__p_wxDC,
20076 _swigt__p_wxMirrorDC,
20077 _swigt__p_byte,
20078 _swigt__p_wxPyFontEnumerator,
20079 _swigt__p_char,
20080 _swigt__p_wxIconLocation,
20081 _swigt__p_wxImage,
20082 _swigt__p_wxMetaFileDC,
20083 _swigt__p_wxMask,
20084 _swigt__p_wxSize,
20085 _swigt__p_wxFont,
20086 _swigt__p_wxWindow,
20087 _swigt__p_double,
20088 _swigt__p_wxMemoryDC,
20089 _swigt__p_wxFontMapper,
20090 _swigt__p_wxEffects,
20091 _swigt__p_wxNativeEncodingInfo,
20092 _swigt__p_wxPalette,
20093 _swigt__p_wxBitmap,
20094 _swigt__p_wxObject,
20095 _swigt__p_wxRegionIterator,
20096 _swigt__p_wxRect,
20097 _swigt__p_wxString,
20098 _swigt__p_wxPrinterDC,
20099 _swigt__p_wxIconBundle,
20100 _swigt__p_wxPoint,
20101 _swigt__p_wxDash,
20102 _swigt__p_wxScreenDC,
20103 _swigt__p_wxCursor,
20104 _swigt__p_wxClientDC,
20105 _swigt__p_wxBufferedDC,
20106 _swigt__p_wxImageList,
20107 _swigt__p_unsigned_char,
20108 _swigt__p_wxGDIObject,
20109 _swigt__p_wxIcon,
20110 _swigt__p_wxLocale,
20111 _swigt__p_wxRegion,
20112 _swigt__p_wxLanguageInfo,
20113 _swigt__p_wxConfigBase,
20114 _swigt__p_wxWindowDC,
20115 _swigt__p_wxPrintData,
20116 _swigt__p_wxBrushList,
20117 _swigt__p_wxFontList,
20118 _swigt__p_wxPen,
20119 _swigt__p_wxBufferedPaintDC,
20120 _swigt__p_wxPaintDC,
20121 _swigt__p_wxPenList,
20122 _swigt__p_int,
20123 _swigt__p_wxMetaFile,
20124 _swigt__p_wxNativeFontInfo,
20125 _swigt__p_wxEncodingConverter,
20126 _swigt__p_wxColourDatabase,
20127 0
20128 };
20129
20130
20131 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
20132
20133 static swig_const_info swig_const_table[] = {
20134 {0}};
20135
20136 #ifdef __cplusplus
20137 }
20138 #endif
20139
20140 #ifdef __cplusplus
20141 extern "C"
20142 #endif
20143 SWIGEXPORT(void) SWIG_init(void) {
20144 static PyObject *SWIG_globals = 0;
20145 static int typeinit = 0;
20146 PyObject *m, *d;
20147 int i;
20148 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
20149 m = Py_InitModule((char *) SWIG_name, SwigMethods);
20150 d = PyModule_GetDict(m);
20151
20152 if (!typeinit) {
20153 for (i = 0; swig_types_initial[i]; i++) {
20154 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
20155 }
20156 typeinit = 1;
20157 }
20158 SWIG_InstallConstants(d,swig_const_table);
20159
20160 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
20161 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
20162 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
20163 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
20164 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
20165 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
20166 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
20167 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
20168 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
20169 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
20170 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
20171 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
20172 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
20173 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
20174 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
20175 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
20176 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
20177 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
20178 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
20179 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
20180 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
20181 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
20182 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
20183 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
20184 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
20185 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
20186 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
20187 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
20188 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
20189 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
20190 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
20191 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
20192 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
20193 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
20194 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
20195 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
20196 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
20197 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
20198 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
20199 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
20200 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
20201 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
20202 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
20203 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
20204 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
20205 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
20206 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
20207 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
20208 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
20209 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
20210 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
20211 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
20212 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
20213 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
20214 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
20215 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
20216 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
20217 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
20218 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
20219 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
20220 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
20221 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
20222 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
20223 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
20224 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
20225 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
20226 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
20227 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
20228 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
20229 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
20230 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
20231 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
20232 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
20233 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
20234 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
20235 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
20236 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
20237 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
20238 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
20239 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
20240 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
20241 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
20242 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
20243 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
20244 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
20245 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
20246 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
20247 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
20248 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
20249 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
20250 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
20251 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
20252 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
20253 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
20254 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
20255 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
20256 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
20257 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
20258 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
20259 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
20260 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
20261 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
20262 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
20263 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
20264 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
20265 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
20266 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
20267 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
20268 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
20269 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
20270 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
20271 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
20272 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
20273 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
20274 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
20275 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
20276 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
20277 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
20278 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
20279 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
20280 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
20281 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
20282 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
20283 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
20284 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
20285 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
20286 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
20287
20288 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
20289
20290 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
20291 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
20292 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
20293 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
20294 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
20295 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
20296 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
20297 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
20298 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
20299 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
20300 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
20301 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
20302 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
20303 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
20304 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
20305 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
20306 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
20307 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
20308 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
20309 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
20310 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
20311 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
20312 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
20313 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
20314 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
20315 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
20316 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
20317 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
20318 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
20319 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
20320 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
20321 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
20322 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
20323 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
20324 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
20325 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
20326 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
20327 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
20328 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
20329 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
20330 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
20331 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
20332 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
20333 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
20334 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
20335 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
20336 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
20337 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
20338 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
20339 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
20340 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
20341 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
20342 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
20343 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
20344 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
20345 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
20346 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
20347 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
20348 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
20349 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
20350 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
20351 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
20352 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
20353 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
20354 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
20355 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
20356 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
20357 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
20358 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
20359 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
20360 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
20361 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
20362 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
20363 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
20364 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
20365 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
20366 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
20367 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
20368 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
20369 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
20370 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
20371 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
20372 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
20373 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
20374 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
20375 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
20376 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
20377 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
20378 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
20379 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
20380 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
20381 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
20382 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
20383 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
20384 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
20385 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
20386 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
20387 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
20388 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
20389 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
20390 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
20391 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
20392 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
20393 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
20394 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
20395 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
20396 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
20397 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
20398 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
20399 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
20400 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
20401 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
20402 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
20403 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
20404 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
20405 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
20406 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
20407 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
20408 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
20409 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
20410 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
20411 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
20412 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
20413 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
20414 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
20415 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
20416 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
20417 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
20418 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
20419 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
20420 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
20421 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
20422 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
20423 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
20424 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
20425 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
20426 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
20427 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
20428 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
20429 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
20430 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
20431 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
20432 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
20433 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
20434 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
20435 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
20436 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
20437 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
20438 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
20439 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
20440 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
20441 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
20442 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
20443 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
20444 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
20445 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
20446 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
20447 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
20448 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
20449 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
20450 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
20451 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
20452 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
20453 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
20454 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
20455 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
20456 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
20457 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
20458 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
20459 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
20460 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
20461 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
20462 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
20463 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
20464 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
20465 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
20466 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
20467 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
20468 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
20469 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
20470 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
20471 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
20472 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
20473 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
20474 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
20475 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
20476 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
20477 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
20478 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
20479 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
20480 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
20481 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
20482 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
20483 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
20484 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
20485 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
20486 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
20487 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
20488 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
20489 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
20490 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
20491 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
20492 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
20493 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
20494 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
20495 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
20496 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
20497 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
20498 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
20499 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
20500 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
20501 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
20502 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
20503 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
20504 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
20505 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
20506 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
20507 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
20508 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
20509 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
20510 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
20511 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
20512 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
20513 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
20514 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
20515 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
20516 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
20517 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
20518 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
20519 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
20520 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
20521 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
20522 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
20523 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
20524 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
20525 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
20526 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
20527 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
20528 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
20529 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
20530 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
20531 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
20532 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
20533 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
20534 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
20535 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
20536 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
20537 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
20538 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
20539 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
20540 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
20541 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
20542 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
20543 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
20544 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
20545 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
20546 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
20547 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
20548 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
20549 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
20550 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
20551 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
20552 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
20553 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
20554 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
20555 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
20556 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
20557 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
20558 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
20559 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
20560 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
20561 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
20562 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
20563 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
20564 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
20565 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
20566 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
20567 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
20568 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
20569 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
20570 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
20571 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
20572 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
20573 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
20574 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
20575 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
20576 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
20577 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
20578 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
20579 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
20580 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
20581 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
20582 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
20583 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
20584 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
20585 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
20586 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
20587 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
20588 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
20589 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
20590
20591 // Work around a chicken/egg problem in drawlist.cpp
20592 wxPyDrawList_SetAPIPtr();
20593
20594 }
20595