]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
test wxString's char<->wchar_t ctors
[wxWidgets.git] / wxPython / src / gtk / _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 wxSize wxBitmap_GetSize(wxBitmap *self){
607 wxSize size(self->GetWidth(), self->GetHeight());
608 return size;
609 }
610 void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
611 wxMask *mask = new wxMask(*self, colour);
612 self->SetMask(mask);
613 }
614 void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
615 self->SetWidth(size.x);
616 self->SetHeight(size.y);
617 }
618 bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
619 bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
620 wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
621 if ( !colour.Ok() )
622 return new wxMask(bitmap, *wxBLACK);
623 else
624 return new wxMask(bitmap, colour);
625 }
626
627 #include <wx/iconbndl.h>
628
629 wxIcon *new_wxIcon(wxBitmap const &bmp){
630 wxIcon* icon = new wxIcon();
631 icon->CopyFromBitmap(bmp);
632 return icon;
633 }
634 wxIcon *new_wxIcon(PyObject *listOfStrings){
635 char** cArray = NULL;
636 wxIcon* icon;
637
638 cArray = ConvertListOfStrings(listOfStrings);
639 if (! cArray)
640 return NULL;
641 icon = new wxIcon(cArray);
642 delete [] cArray;
643 return icon;
644 }
645 wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
646
647
648
649 return new wxIconLocation(*filename);
650
651 }
652 void wxIconLocation_SetIndex(wxIconLocation *self,int num){
653
654
655
656 // do nothing
657
658 }
659 int wxIconLocation_GetIndex(wxIconLocation *self){
660
661
662
663 return -1;
664
665 }
666
667 SWIGSTATICINLINE(int)
668 SWIG_CheckLong(PyObject* obj)
669 {
670 SWIG_AsLong(obj);
671 if (PyErr_Occurred()) {
672 PyErr_Clear();
673 return 0;
674 } else {
675 return 1;
676 }
677 }
678
679 wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
680 #ifdef __WXGTK__
681 wxCHECK_MSG(False, NULL,
682 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
683 #else
684 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
685 #endif
686 }
687
688
689 void wxRegionIterator_Next(wxRegionIterator *self){
690 (*self) ++;
691 }
692 bool wxRegionIterator___nonzero__(wxRegionIterator *self){
693 return self->operator bool();
694 }
695
696 #include <wx/fontutil.h>
697 #include <wx/fontmap.h>
698 #include <wx/fontenum.h>
699
700 wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
701 return self->ToString();
702 }
703
704 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
705 static wxNativeEncodingInfo info;
706 if ( wxGetNativeFontEncoding(encoding, &info) )
707 return &info;
708 else
709 return NULL;
710 }
711
712 PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
713 wxFontEncoding alt_enc;
714 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
715 return PyInt_FromLong(alt_enc);
716 else {
717 Py_INCREF(Py_None);
718 return Py_None;
719 }
720 }
721 wxFont *new_wxFont(wxString const &info){
722 wxNativeFontInfo nfi;
723 nfi.FromString(info);
724 return new wxFont(nfi);
725 }
726 wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
727 return wxFont::New(pointSize, family, flags, face, encoding);
728 }
729 bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
730 bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
731
732 class wxPyFontEnumerator : public wxFontEnumerator {
733 public:
734 wxPyFontEnumerator() {}
735 ~wxPyFontEnumerator() {}
736
737 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
738 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
739
740 PYPRIVATE;
741 };
742
743 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
744 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
745
746
747 PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
748 wxArrayString* arr = self->GetEncodings();
749 return wxArrayString2PyList_helper(*arr);
750 }
751 PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
752 wxArrayString* arr = self->GetFacenames();
753 return wxArrayString2PyList_helper(*arr);
754 }
755
756
757 wxLocale *new_wxLocale(int language,int flags){
758 if (language == -1)
759 return new wxLocale();
760 else
761 return new wxLocale(language, flags);
762 }
763
764 #include "wx/wxPython/pydrawxxx.h"
765
766 wxColour wxDC_GetPixel(wxDC *self,int x,int y){
767 wxColour col;
768 self->GetPixel(x, y, &col);
769 return col;
770 }
771 wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
772 wxColour col;
773 self->GetPixel(pt, &col);
774 return col;
775 }
776
777 SWIGSTATICINLINE(double)
778 SWIG_AsDouble(PyObject *obj)
779 {
780 if (PyNumber_Check(obj))
781 return PyFloat_AsDouble(obj);
782 else {
783 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
784 obj->ob_type->tp_name);
785 PyErr_SetObject(PyExc_TypeError, errmsg);
786 Py_DECREF(errmsg);
787 return 0;
788 }
789 }
790
791
792 SWIGSTATICINLINE(int)
793 SWIG_CheckDouble(PyObject* obj)
794 {
795 SWIG_AsDouble(obj);
796 if (PyErr_Occurred()) {
797 PyErr_Clear();
798 return 0;
799 } else {
800 return 1;
801 }
802 }
803
804 wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
805 wxRect rv;
806 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
807 return rv;
808 }
809 wxRect wxDC_GetClippingRect(wxDC *self){
810 wxRect rect;
811 self->GetClippingBox(rect);
812 return rect;
813 }
814 wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
815 wxArrayInt widths;
816 self->GetPartialTextExtents(text, widths);
817 return widths;
818 }
819 void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
820 self->SetLogicalOrigin(point.x, point.y);
821 }
822 void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
823 self->SetDeviceOrigin(point.x, point.y);
824 }
825 void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
826 self->CalcBoundingBox(point.x, point.y);
827 }
828 PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
829 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
830 }
831 PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
832 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
833 }
834 PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
835 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
836 }
837 PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
838 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
839 }
840 PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
841 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
842 }
843 PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
844 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
845 }
846
847 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
848 *x1 = dc->MinX();
849 *y1 = dc->MinY();
850 *x2 = dc->MaxX();
851 *y2 = dc->MaxY();
852 }
853
854
855 #include <wx/dcbuffer.h>
856
857
858 #include <wx/dcps.h>
859
860
861 class wxMetaFile : public wxObject {
862 public:
863 wxMetaFile(const wxString&)
864 { wxPyRaiseNotImplemented(); }
865 };
866
867 class wxMetaFileDC : public wxClientDC {
868 public:
869 wxMetaFileDC(const wxString&, int, int, const wxString&)
870 { wxPyRaiseNotImplemented(); }
871 };
872
873
874
875 class wxPrinterDC : public wxClientDC {
876 public:
877 wxPrinterDC(const wxPrintData&)
878 { wxPyRaiseNotImplemented(); }
879
880 // wxPrinterDC(const wxString&, const wxString&, const wxString&, bool, int)
881 // { wxPyRaiseNotImplemented(); }
882 };
883
884
885
886 void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
887 self->AddColour(name, wxColour(red, green, blue));
888 }
889
890 #include <wx/effects.h>
891
892 #ifdef __cplusplus
893 extern "C" {
894 #endif
895 static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
896 PyObject *resultobj;
897 wxGDIObject *result;
898 char *kwnames[] = {
899 NULL
900 };
901
902 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
903 {
904 if (!wxPyCheckForApp()) SWIG_fail;
905 PyThreadState* __tstate = wxPyBeginAllowThreads();
906 result = (wxGDIObject *)new wxGDIObject();
907
908 wxPyEndAllowThreads(__tstate);
909 if (PyErr_Occurred()) SWIG_fail;
910 }
911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
912 return resultobj;
913 fail:
914 return NULL;
915 }
916
917
918 static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
919 PyObject *resultobj;
920 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
921 PyObject * obj0 = 0 ;
922 char *kwnames[] = {
923 (char *) "self", NULL
924 };
925
926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
929 {
930 PyThreadState* __tstate = wxPyBeginAllowThreads();
931 delete arg1;
932
933 wxPyEndAllowThreads(__tstate);
934 if (PyErr_Occurred()) SWIG_fail;
935 }
936 Py_INCREF(Py_None); resultobj = Py_None;
937 return resultobj;
938 fail:
939 return NULL;
940 }
941
942
943 static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
944 PyObject *resultobj;
945 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
946 bool result;
947 PyObject * obj0 = 0 ;
948 char *kwnames[] = {
949 (char *) "self", NULL
950 };
951
952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
955 {
956 PyThreadState* __tstate = wxPyBeginAllowThreads();
957 result = (bool)(arg1)->GetVisible();
958
959 wxPyEndAllowThreads(__tstate);
960 if (PyErr_Occurred()) SWIG_fail;
961 }
962 {
963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
964 }
965 return resultobj;
966 fail:
967 return NULL;
968 }
969
970
971 static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
972 PyObject *resultobj;
973 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
974 bool arg2 ;
975 PyObject * obj0 = 0 ;
976 PyObject * obj1 = 0 ;
977 char *kwnames[] = {
978 (char *) "self",(char *) "visible", NULL
979 };
980
981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
984 arg2 = (bool) SWIG_AsBool(obj1);
985 if (PyErr_Occurred()) SWIG_fail;
986 {
987 PyThreadState* __tstate = wxPyBeginAllowThreads();
988 (arg1)->SetVisible(arg2);
989
990 wxPyEndAllowThreads(__tstate);
991 if (PyErr_Occurred()) SWIG_fail;
992 }
993 Py_INCREF(Py_None); resultobj = Py_None;
994 return resultobj;
995 fail:
996 return NULL;
997 }
998
999
1000 static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1001 PyObject *resultobj;
1002 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1003 bool result;
1004 PyObject * obj0 = 0 ;
1005 char *kwnames[] = {
1006 (char *) "self", NULL
1007 };
1008
1009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1012 {
1013 PyThreadState* __tstate = wxPyBeginAllowThreads();
1014 result = (bool)(arg1)->IsNull();
1015
1016 wxPyEndAllowThreads(__tstate);
1017 if (PyErr_Occurred()) SWIG_fail;
1018 }
1019 {
1020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1021 }
1022 return resultobj;
1023 fail:
1024 return NULL;
1025 }
1026
1027
1028 static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1029 PyObject *obj;
1030 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1031 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1032 Py_INCREF(obj);
1033 return Py_BuildValue((char *)"");
1034 }
1035 static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1036 PyObject *resultobj;
1037 byte arg1 = (byte) 0 ;
1038 byte arg2 = (byte) 0 ;
1039 byte arg3 = (byte) 0 ;
1040 wxColour *result;
1041 PyObject * obj0 = 0 ;
1042 PyObject * obj1 = 0 ;
1043 PyObject * obj2 = 0 ;
1044 char *kwnames[] = {
1045 (char *) "red",(char *) "green",(char *) "blue", NULL
1046 };
1047
1048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1049 if (obj0) {
1050 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
1051 if (PyErr_Occurred()) SWIG_fail;
1052 }
1053 if (obj1) {
1054 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1055 if (PyErr_Occurred()) SWIG_fail;
1056 }
1057 if (obj2) {
1058 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1059 if (PyErr_Occurred()) SWIG_fail;
1060 }
1061 {
1062 PyThreadState* __tstate = wxPyBeginAllowThreads();
1063 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1064
1065 wxPyEndAllowThreads(__tstate);
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
1068 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1069 return resultobj;
1070 fail:
1071 return NULL;
1072 }
1073
1074
1075 static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1076 PyObject *resultobj;
1077 wxString *arg1 = 0 ;
1078 wxColour *result;
1079 bool temp1 = False ;
1080 PyObject * obj0 = 0 ;
1081 char *kwnames[] = {
1082 (char *) "colorName", NULL
1083 };
1084
1085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1086 {
1087 arg1 = wxString_in_helper(obj0);
1088 if (arg1 == NULL) SWIG_fail;
1089 temp1 = True;
1090 }
1091 {
1092 PyThreadState* __tstate = wxPyBeginAllowThreads();
1093 result = (wxColour *)new wxColour((wxString const &)*arg1);
1094
1095 wxPyEndAllowThreads(__tstate);
1096 if (PyErr_Occurred()) SWIG_fail;
1097 }
1098 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1099 {
1100 if (temp1)
1101 delete arg1;
1102 }
1103 return resultobj;
1104 fail:
1105 {
1106 if (temp1)
1107 delete arg1;
1108 }
1109 return NULL;
1110 }
1111
1112
1113 static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1114 PyObject *resultobj;
1115 unsigned long arg1 ;
1116 wxColour *result;
1117 PyObject * obj0 = 0 ;
1118 char *kwnames[] = {
1119 (char *) "colRGB", NULL
1120 };
1121
1122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1123 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1124 if (PyErr_Occurred()) SWIG_fail;
1125 {
1126 PyThreadState* __tstate = wxPyBeginAllowThreads();
1127 result = (wxColour *)new wxColour(arg1);
1128
1129 wxPyEndAllowThreads(__tstate);
1130 if (PyErr_Occurred()) SWIG_fail;
1131 }
1132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1133 return resultobj;
1134 fail:
1135 return NULL;
1136 }
1137
1138
1139 static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1140 PyObject *resultobj;
1141 wxColour *arg1 = (wxColour *) 0 ;
1142 PyObject * obj0 = 0 ;
1143 char *kwnames[] = {
1144 (char *) "self", NULL
1145 };
1146
1147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1150 {
1151 PyThreadState* __tstate = wxPyBeginAllowThreads();
1152 delete arg1;
1153
1154 wxPyEndAllowThreads(__tstate);
1155 if (PyErr_Occurred()) SWIG_fail;
1156 }
1157 Py_INCREF(Py_None); resultobj = Py_None;
1158 return resultobj;
1159 fail:
1160 return NULL;
1161 }
1162
1163
1164 static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1165 PyObject *resultobj;
1166 wxColour *arg1 = (wxColour *) 0 ;
1167 byte result;
1168 PyObject * obj0 = 0 ;
1169 char *kwnames[] = {
1170 (char *) "self", NULL
1171 };
1172
1173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1176 {
1177 PyThreadState* __tstate = wxPyBeginAllowThreads();
1178 result = (byte)(arg1)->Red();
1179
1180 wxPyEndAllowThreads(__tstate);
1181 if (PyErr_Occurred()) SWIG_fail;
1182 }
1183 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1184 return resultobj;
1185 fail:
1186 return NULL;
1187 }
1188
1189
1190 static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1191 PyObject *resultobj;
1192 wxColour *arg1 = (wxColour *) 0 ;
1193 byte result;
1194 PyObject * obj0 = 0 ;
1195 char *kwnames[] = {
1196 (char *) "self", NULL
1197 };
1198
1199 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1200 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1201 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1202 {
1203 PyThreadState* __tstate = wxPyBeginAllowThreads();
1204 result = (byte)(arg1)->Green();
1205
1206 wxPyEndAllowThreads(__tstate);
1207 if (PyErr_Occurred()) SWIG_fail;
1208 }
1209 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1210 return resultobj;
1211 fail:
1212 return NULL;
1213 }
1214
1215
1216 static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1217 PyObject *resultobj;
1218 wxColour *arg1 = (wxColour *) 0 ;
1219 byte result;
1220 PyObject * obj0 = 0 ;
1221 char *kwnames[] = {
1222 (char *) "self", NULL
1223 };
1224
1225 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1226 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1227 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1228 {
1229 PyThreadState* __tstate = wxPyBeginAllowThreads();
1230 result = (byte)(arg1)->Blue();
1231
1232 wxPyEndAllowThreads(__tstate);
1233 if (PyErr_Occurred()) SWIG_fail;
1234 }
1235 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1236 return resultobj;
1237 fail:
1238 return NULL;
1239 }
1240
1241
1242 static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1243 PyObject *resultobj;
1244 wxColour *arg1 = (wxColour *) 0 ;
1245 bool result;
1246 PyObject * obj0 = 0 ;
1247 char *kwnames[] = {
1248 (char *) "self", NULL
1249 };
1250
1251 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1252 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1253 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1254 {
1255 PyThreadState* __tstate = wxPyBeginAllowThreads();
1256 result = (bool)(arg1)->Ok();
1257
1258 wxPyEndAllowThreads(__tstate);
1259 if (PyErr_Occurred()) SWIG_fail;
1260 }
1261 {
1262 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1263 }
1264 return resultobj;
1265 fail:
1266 return NULL;
1267 }
1268
1269
1270 static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1271 PyObject *resultobj;
1272 wxColour *arg1 = (wxColour *) 0 ;
1273 byte arg2 ;
1274 byte arg3 ;
1275 byte arg4 ;
1276 PyObject * obj0 = 0 ;
1277 PyObject * obj1 = 0 ;
1278 PyObject * obj2 = 0 ;
1279 PyObject * obj3 = 0 ;
1280 char *kwnames[] = {
1281 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1282 };
1283
1284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1287 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1288 if (PyErr_Occurred()) SWIG_fail;
1289 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1290 if (PyErr_Occurred()) SWIG_fail;
1291 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1292 if (PyErr_Occurred()) SWIG_fail;
1293 {
1294 PyThreadState* __tstate = wxPyBeginAllowThreads();
1295 (arg1)->Set(arg2,arg3,arg4);
1296
1297 wxPyEndAllowThreads(__tstate);
1298 if (PyErr_Occurred()) SWIG_fail;
1299 }
1300 Py_INCREF(Py_None); resultobj = Py_None;
1301 return resultobj;
1302 fail:
1303 return NULL;
1304 }
1305
1306
1307 static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1308 PyObject *resultobj;
1309 wxColour *arg1 = (wxColour *) 0 ;
1310 unsigned long arg2 ;
1311 PyObject * obj0 = 0 ;
1312 PyObject * obj1 = 0 ;
1313 char *kwnames[] = {
1314 (char *) "self",(char *) "colRGB", NULL
1315 };
1316
1317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1320 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1321 if (PyErr_Occurred()) SWIG_fail;
1322 {
1323 PyThreadState* __tstate = wxPyBeginAllowThreads();
1324 (arg1)->Set(arg2);
1325
1326 wxPyEndAllowThreads(__tstate);
1327 if (PyErr_Occurred()) SWIG_fail;
1328 }
1329 Py_INCREF(Py_None); resultobj = Py_None;
1330 return resultobj;
1331 fail:
1332 return NULL;
1333 }
1334
1335
1336 static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1337 PyObject *resultobj;
1338 wxColour *arg1 = (wxColour *) 0 ;
1339 wxString *arg2 = 0 ;
1340 bool temp2 = False ;
1341 PyObject * obj0 = 0 ;
1342 PyObject * obj1 = 0 ;
1343 char *kwnames[] = {
1344 (char *) "self",(char *) "colourName", NULL
1345 };
1346
1347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1350 {
1351 arg2 = wxString_in_helper(obj1);
1352 if (arg2 == NULL) SWIG_fail;
1353 temp2 = True;
1354 }
1355 {
1356 PyThreadState* __tstate = wxPyBeginAllowThreads();
1357 (arg1)->InitFromName((wxString const &)*arg2);
1358
1359 wxPyEndAllowThreads(__tstate);
1360 if (PyErr_Occurred()) SWIG_fail;
1361 }
1362 Py_INCREF(Py_None); resultobj = Py_None;
1363 {
1364 if (temp2)
1365 delete arg2;
1366 }
1367 return resultobj;
1368 fail:
1369 {
1370 if (temp2)
1371 delete arg2;
1372 }
1373 return NULL;
1374 }
1375
1376
1377 static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1378 PyObject *resultobj;
1379 wxColour *arg1 = (wxColour *) 0 ;
1380 long result;
1381 PyObject * obj0 = 0 ;
1382 char *kwnames[] = {
1383 (char *) "self", NULL
1384 };
1385
1386 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1387 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1388 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1389 {
1390 PyThreadState* __tstate = wxPyBeginAllowThreads();
1391 result = (long)((wxColour const *)arg1)->GetPixel();
1392
1393 wxPyEndAllowThreads(__tstate);
1394 if (PyErr_Occurred()) SWIG_fail;
1395 }
1396 resultobj = SWIG_FromLong((long)result);
1397 return resultobj;
1398 fail:
1399 return NULL;
1400 }
1401
1402
1403 static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1404 PyObject *resultobj;
1405 wxColour *arg1 = (wxColour *) 0 ;
1406 wxColour *arg2 = 0 ;
1407 bool result;
1408 wxColour temp2 ;
1409 PyObject * obj0 = 0 ;
1410 PyObject * obj1 = 0 ;
1411 char *kwnames[] = {
1412 (char *) "self",(char *) "colour", NULL
1413 };
1414
1415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1418 {
1419 arg2 = &temp2;
1420 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1421 }
1422 {
1423 PyThreadState* __tstate = wxPyBeginAllowThreads();
1424 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1425
1426 wxPyEndAllowThreads(__tstate);
1427 if (PyErr_Occurred()) SWIG_fail;
1428 }
1429 {
1430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1431 }
1432 return resultobj;
1433 fail:
1434 return NULL;
1435 }
1436
1437
1438 static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1439 PyObject *resultobj;
1440 wxColour *arg1 = (wxColour *) 0 ;
1441 wxColour *arg2 = 0 ;
1442 bool result;
1443 wxColour temp2 ;
1444 PyObject * obj0 = 0 ;
1445 PyObject * obj1 = 0 ;
1446 char *kwnames[] = {
1447 (char *) "self",(char *) "colour", NULL
1448 };
1449
1450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1453 {
1454 arg2 = &temp2;
1455 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1456 }
1457 {
1458 PyThreadState* __tstate = wxPyBeginAllowThreads();
1459 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1460
1461 wxPyEndAllowThreads(__tstate);
1462 if (PyErr_Occurred()) SWIG_fail;
1463 }
1464 {
1465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1466 }
1467 return resultobj;
1468 fail:
1469 return NULL;
1470 }
1471
1472
1473 static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1474 PyObject *resultobj;
1475 wxColour *arg1 = (wxColour *) 0 ;
1476 PyObject *result;
1477 PyObject * obj0 = 0 ;
1478 char *kwnames[] = {
1479 (char *) "self", NULL
1480 };
1481
1482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1485 {
1486 PyThreadState* __tstate = wxPyBeginAllowThreads();
1487 result = (PyObject *)wxColour_Get(arg1);
1488
1489 wxPyEndAllowThreads(__tstate);
1490 if (PyErr_Occurred()) SWIG_fail;
1491 }
1492 resultobj = result;
1493 return resultobj;
1494 fail:
1495 return NULL;
1496 }
1497
1498
1499 static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1500 PyObject *resultobj;
1501 wxColour *arg1 = (wxColour *) 0 ;
1502 unsigned long result;
1503 PyObject * obj0 = 0 ;
1504 char *kwnames[] = {
1505 (char *) "self", NULL
1506 };
1507
1508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1511 {
1512 PyThreadState* __tstate = wxPyBeginAllowThreads();
1513 result = (unsigned long)wxColour_GetRGB(arg1);
1514
1515 wxPyEndAllowThreads(__tstate);
1516 if (PyErr_Occurred()) SWIG_fail;
1517 }
1518 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1519 return resultobj;
1520 fail:
1521 return NULL;
1522 }
1523
1524
1525 static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1526 PyObject *obj;
1527 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1528 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1529 Py_INCREF(obj);
1530 return Py_BuildValue((char *)"");
1531 }
1532 static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1533 PyObject *resultobj;
1534 int arg1 ;
1535 unsigned char *arg2 = (unsigned char *) 0 ;
1536 unsigned char *arg3 = (unsigned char *) 0 ;
1537 unsigned char *arg4 = (unsigned char *) 0 ;
1538 wxPalette *result;
1539 PyObject * obj0 = 0 ;
1540 PyObject * obj1 = 0 ;
1541 PyObject * obj2 = 0 ;
1542 PyObject * obj3 = 0 ;
1543 char *kwnames[] = {
1544 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1545 };
1546
1547 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1548 arg1 = (int) SWIG_AsInt(obj0);
1549 if (PyErr_Occurred()) SWIG_fail;
1550 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1551 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1552 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1553 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1554 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1556 {
1557 if (!wxPyCheckForApp()) SWIG_fail;
1558 PyThreadState* __tstate = wxPyBeginAllowThreads();
1559 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1560
1561 wxPyEndAllowThreads(__tstate);
1562 if (PyErr_Occurred()) SWIG_fail;
1563 }
1564 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1565 return resultobj;
1566 fail:
1567 return NULL;
1568 }
1569
1570
1571 static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1572 PyObject *resultobj;
1573 wxPalette *arg1 = (wxPalette *) 0 ;
1574 PyObject * obj0 = 0 ;
1575 char *kwnames[] = {
1576 (char *) "self", NULL
1577 };
1578
1579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1582 {
1583 PyThreadState* __tstate = wxPyBeginAllowThreads();
1584 delete arg1;
1585
1586 wxPyEndAllowThreads(__tstate);
1587 if (PyErr_Occurred()) SWIG_fail;
1588 }
1589 Py_INCREF(Py_None); resultobj = Py_None;
1590 return resultobj;
1591 fail:
1592 return NULL;
1593 }
1594
1595
1596 static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1597 PyObject *resultobj;
1598 wxPalette *arg1 = (wxPalette *) 0 ;
1599 byte arg2 ;
1600 byte arg3 ;
1601 byte arg4 ;
1602 int result;
1603 PyObject * obj0 = 0 ;
1604 PyObject * obj1 = 0 ;
1605 PyObject * obj2 = 0 ;
1606 PyObject * obj3 = 0 ;
1607 char *kwnames[] = {
1608 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1609 };
1610
1611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1614 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1615 if (PyErr_Occurred()) SWIG_fail;
1616 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1617 if (PyErr_Occurred()) SWIG_fail;
1618 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1619 if (PyErr_Occurred()) SWIG_fail;
1620 {
1621 PyThreadState* __tstate = wxPyBeginAllowThreads();
1622 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1623
1624 wxPyEndAllowThreads(__tstate);
1625 if (PyErr_Occurred()) SWIG_fail;
1626 }
1627 resultobj = SWIG_FromInt((int)result);
1628 return resultobj;
1629 fail:
1630 return NULL;
1631 }
1632
1633
1634 static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1635 PyObject *resultobj;
1636 wxPalette *arg1 = (wxPalette *) 0 ;
1637 int arg2 ;
1638 byte *arg3 = (byte *) 0 ;
1639 byte *arg4 = (byte *) 0 ;
1640 byte *arg5 = (byte *) 0 ;
1641 bool result;
1642 byte temp3 ;
1643 byte temp4 ;
1644 byte temp5 ;
1645 PyObject * obj0 = 0 ;
1646 PyObject * obj1 = 0 ;
1647 char *kwnames[] = {
1648 (char *) "self",(char *) "pixel", NULL
1649 };
1650
1651 arg3 = &temp3;
1652 arg4 = &temp4;
1653 arg5 = &temp5;
1654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1657 arg2 = (int) SWIG_AsInt(obj1);
1658 if (PyErr_Occurred()) SWIG_fail;
1659 {
1660 PyThreadState* __tstate = wxPyBeginAllowThreads();
1661 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1662
1663 wxPyEndAllowThreads(__tstate);
1664 if (PyErr_Occurred()) SWIG_fail;
1665 }
1666 {
1667 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1668 }
1669 {
1670 PyObject *o = PyInt_FromLong((long) (*arg3));
1671 resultobj = t_output_helper(resultobj,o);
1672 }
1673 {
1674 PyObject *o = PyInt_FromLong((long) (*arg4));
1675 resultobj = t_output_helper(resultobj,o);
1676 }
1677 {
1678 PyObject *o = PyInt_FromLong((long) (*arg5));
1679 resultobj = t_output_helper(resultobj,o);
1680 }
1681 return resultobj;
1682 fail:
1683 return NULL;
1684 }
1685
1686
1687 static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1688 PyObject *resultobj;
1689 wxPalette *arg1 = (wxPalette *) 0 ;
1690 bool result;
1691 PyObject * obj0 = 0 ;
1692 char *kwnames[] = {
1693 (char *) "self", NULL
1694 };
1695
1696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1699 {
1700 PyThreadState* __tstate = wxPyBeginAllowThreads();
1701 result = (bool)(arg1)->Ok();
1702
1703 wxPyEndAllowThreads(__tstate);
1704 if (PyErr_Occurred()) SWIG_fail;
1705 }
1706 {
1707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1708 }
1709 return resultobj;
1710 fail:
1711 return NULL;
1712 }
1713
1714
1715 static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1716 PyObject *obj;
1717 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1718 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1719 Py_INCREF(obj);
1720 return Py_BuildValue((char *)"");
1721 }
1722 static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1723 PyObject *resultobj;
1724 wxColour *arg1 = 0 ;
1725 int arg2 = (int) 1 ;
1726 int arg3 = (int) wxSOLID ;
1727 wxPen *result;
1728 wxColour temp1 ;
1729 PyObject * obj0 = 0 ;
1730 PyObject * obj1 = 0 ;
1731 PyObject * obj2 = 0 ;
1732 char *kwnames[] = {
1733 (char *) "colour",(char *) "width",(char *) "style", NULL
1734 };
1735
1736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1737 {
1738 arg1 = &temp1;
1739 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1740 }
1741 if (obj1) {
1742 arg2 = (int) SWIG_AsInt(obj1);
1743 if (PyErr_Occurred()) SWIG_fail;
1744 }
1745 if (obj2) {
1746 arg3 = (int) SWIG_AsInt(obj2);
1747 if (PyErr_Occurred()) SWIG_fail;
1748 }
1749 {
1750 if (!wxPyCheckForApp()) SWIG_fail;
1751 PyThreadState* __tstate = wxPyBeginAllowThreads();
1752 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1753
1754 wxPyEndAllowThreads(__tstate);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1758 return resultobj;
1759 fail:
1760 return NULL;
1761 }
1762
1763
1764 static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1765 PyObject *resultobj;
1766 wxPen *arg1 = (wxPen *) 0 ;
1767 PyObject * obj0 = 0 ;
1768 char *kwnames[] = {
1769 (char *) "self", NULL
1770 };
1771
1772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1775 {
1776 PyThreadState* __tstate = wxPyBeginAllowThreads();
1777 delete arg1;
1778
1779 wxPyEndAllowThreads(__tstate);
1780 if (PyErr_Occurred()) SWIG_fail;
1781 }
1782 Py_INCREF(Py_None); resultobj = Py_None;
1783 return resultobj;
1784 fail:
1785 return NULL;
1786 }
1787
1788
1789 static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1790 PyObject *resultobj;
1791 wxPen *arg1 = (wxPen *) 0 ;
1792 int result;
1793 PyObject * obj0 = 0 ;
1794 char *kwnames[] = {
1795 (char *) "self", NULL
1796 };
1797
1798 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1799 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1800 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1801 {
1802 PyThreadState* __tstate = wxPyBeginAllowThreads();
1803 result = (int)(arg1)->GetCap();
1804
1805 wxPyEndAllowThreads(__tstate);
1806 if (PyErr_Occurred()) SWIG_fail;
1807 }
1808 resultobj = SWIG_FromInt((int)result);
1809 return resultobj;
1810 fail:
1811 return NULL;
1812 }
1813
1814
1815 static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1816 PyObject *resultobj;
1817 wxPen *arg1 = (wxPen *) 0 ;
1818 wxColour result;
1819 PyObject * obj0 = 0 ;
1820 char *kwnames[] = {
1821 (char *) "self", NULL
1822 };
1823
1824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1827 {
1828 PyThreadState* __tstate = wxPyBeginAllowThreads();
1829 result = (arg1)->GetColour();
1830
1831 wxPyEndAllowThreads(__tstate);
1832 if (PyErr_Occurred()) SWIG_fail;
1833 }
1834 {
1835 wxColour * resultptr;
1836 resultptr = new wxColour((wxColour &) result);
1837 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1838 }
1839 return resultobj;
1840 fail:
1841 return NULL;
1842 }
1843
1844
1845 static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1846 PyObject *resultobj;
1847 wxPen *arg1 = (wxPen *) 0 ;
1848 int result;
1849 PyObject * obj0 = 0 ;
1850 char *kwnames[] = {
1851 (char *) "self", NULL
1852 };
1853
1854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1857 {
1858 PyThreadState* __tstate = wxPyBeginAllowThreads();
1859 result = (int)(arg1)->GetJoin();
1860
1861 wxPyEndAllowThreads(__tstate);
1862 if (PyErr_Occurred()) SWIG_fail;
1863 }
1864 resultobj = SWIG_FromInt((int)result);
1865 return resultobj;
1866 fail:
1867 return NULL;
1868 }
1869
1870
1871 static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1872 PyObject *resultobj;
1873 wxPen *arg1 = (wxPen *) 0 ;
1874 int result;
1875 PyObject * obj0 = 0 ;
1876 char *kwnames[] = {
1877 (char *) "self", NULL
1878 };
1879
1880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1883 {
1884 PyThreadState* __tstate = wxPyBeginAllowThreads();
1885 result = (int)(arg1)->GetStyle();
1886
1887 wxPyEndAllowThreads(__tstate);
1888 if (PyErr_Occurred()) SWIG_fail;
1889 }
1890 resultobj = SWIG_FromInt((int)result);
1891 return resultobj;
1892 fail:
1893 return NULL;
1894 }
1895
1896
1897 static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1898 PyObject *resultobj;
1899 wxPen *arg1 = (wxPen *) 0 ;
1900 int result;
1901 PyObject * obj0 = 0 ;
1902 char *kwnames[] = {
1903 (char *) "self", NULL
1904 };
1905
1906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1909 {
1910 PyThreadState* __tstate = wxPyBeginAllowThreads();
1911 result = (int)(arg1)->GetWidth();
1912
1913 wxPyEndAllowThreads(__tstate);
1914 if (PyErr_Occurred()) SWIG_fail;
1915 }
1916 resultobj = SWIG_FromInt((int)result);
1917 return resultobj;
1918 fail:
1919 return NULL;
1920 }
1921
1922
1923 static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1924 PyObject *resultobj;
1925 wxPen *arg1 = (wxPen *) 0 ;
1926 bool result;
1927 PyObject * obj0 = 0 ;
1928 char *kwnames[] = {
1929 (char *) "self", NULL
1930 };
1931
1932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1935 {
1936 PyThreadState* __tstate = wxPyBeginAllowThreads();
1937 result = (bool)(arg1)->Ok();
1938
1939 wxPyEndAllowThreads(__tstate);
1940 if (PyErr_Occurred()) SWIG_fail;
1941 }
1942 {
1943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1944 }
1945 return resultobj;
1946 fail:
1947 return NULL;
1948 }
1949
1950
1951 static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1952 PyObject *resultobj;
1953 wxPen *arg1 = (wxPen *) 0 ;
1954 int arg2 ;
1955 PyObject * obj0 = 0 ;
1956 PyObject * obj1 = 0 ;
1957 char *kwnames[] = {
1958 (char *) "self",(char *) "cap_style", NULL
1959 };
1960
1961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1964 arg2 = (int) SWIG_AsInt(obj1);
1965 if (PyErr_Occurred()) SWIG_fail;
1966 {
1967 PyThreadState* __tstate = wxPyBeginAllowThreads();
1968 (arg1)->SetCap(arg2);
1969
1970 wxPyEndAllowThreads(__tstate);
1971 if (PyErr_Occurred()) SWIG_fail;
1972 }
1973 Py_INCREF(Py_None); resultobj = Py_None;
1974 return resultobj;
1975 fail:
1976 return NULL;
1977 }
1978
1979
1980 static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1981 PyObject *resultobj;
1982 wxPen *arg1 = (wxPen *) 0 ;
1983 wxColour *arg2 = 0 ;
1984 wxColour temp2 ;
1985 PyObject * obj0 = 0 ;
1986 PyObject * obj1 = 0 ;
1987 char *kwnames[] = {
1988 (char *) "self",(char *) "colour", NULL
1989 };
1990
1991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1994 {
1995 arg2 = &temp2;
1996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1997 }
1998 {
1999 PyThreadState* __tstate = wxPyBeginAllowThreads();
2000 (arg1)->SetColour(*arg2);
2001
2002 wxPyEndAllowThreads(__tstate);
2003 if (PyErr_Occurred()) SWIG_fail;
2004 }
2005 Py_INCREF(Py_None); resultobj = Py_None;
2006 return resultobj;
2007 fail:
2008 return NULL;
2009 }
2010
2011
2012 static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2013 PyObject *resultobj;
2014 wxPen *arg1 = (wxPen *) 0 ;
2015 int arg2 ;
2016 PyObject * obj0 = 0 ;
2017 PyObject * obj1 = 0 ;
2018 char *kwnames[] = {
2019 (char *) "self",(char *) "join_style", NULL
2020 };
2021
2022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2025 arg2 = (int) SWIG_AsInt(obj1);
2026 if (PyErr_Occurred()) SWIG_fail;
2027 {
2028 PyThreadState* __tstate = wxPyBeginAllowThreads();
2029 (arg1)->SetJoin(arg2);
2030
2031 wxPyEndAllowThreads(__tstate);
2032 if (PyErr_Occurred()) SWIG_fail;
2033 }
2034 Py_INCREF(Py_None); resultobj = Py_None;
2035 return resultobj;
2036 fail:
2037 return NULL;
2038 }
2039
2040
2041 static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2042 PyObject *resultobj;
2043 wxPen *arg1 = (wxPen *) 0 ;
2044 int arg2 ;
2045 PyObject * obj0 = 0 ;
2046 PyObject * obj1 = 0 ;
2047 char *kwnames[] = {
2048 (char *) "self",(char *) "style", NULL
2049 };
2050
2051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2054 arg2 = (int) SWIG_AsInt(obj1);
2055 if (PyErr_Occurred()) SWIG_fail;
2056 {
2057 PyThreadState* __tstate = wxPyBeginAllowThreads();
2058 (arg1)->SetStyle(arg2);
2059
2060 wxPyEndAllowThreads(__tstate);
2061 if (PyErr_Occurred()) SWIG_fail;
2062 }
2063 Py_INCREF(Py_None); resultobj = Py_None;
2064 return resultobj;
2065 fail:
2066 return NULL;
2067 }
2068
2069
2070 static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2071 PyObject *resultobj;
2072 wxPen *arg1 = (wxPen *) 0 ;
2073 int arg2 ;
2074 PyObject * obj0 = 0 ;
2075 PyObject * obj1 = 0 ;
2076 char *kwnames[] = {
2077 (char *) "self",(char *) "width", NULL
2078 };
2079
2080 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2081 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2082 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2083 arg2 = (int) SWIG_AsInt(obj1);
2084 if (PyErr_Occurred()) SWIG_fail;
2085 {
2086 PyThreadState* __tstate = wxPyBeginAllowThreads();
2087 (arg1)->SetWidth(arg2);
2088
2089 wxPyEndAllowThreads(__tstate);
2090 if (PyErr_Occurred()) SWIG_fail;
2091 }
2092 Py_INCREF(Py_None); resultobj = Py_None;
2093 return resultobj;
2094 fail:
2095 return NULL;
2096 }
2097
2098
2099 static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2100 PyObject *resultobj;
2101 wxPen *arg1 = (wxPen *) 0 ;
2102 int arg2 ;
2103 wxDash *arg3 = (wxDash *) 0 ;
2104 PyObject * obj0 = 0 ;
2105 PyObject * obj1 = 0 ;
2106 char *kwnames[] = {
2107 (char *) "self",(char *) "dashes", NULL
2108 };
2109
2110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2113 {
2114 arg2 = PyList_Size(obj1);
2115 arg3 = (wxDash*)byte_LIST_helper(obj1);
2116 if (arg3 == NULL) SWIG_fail;
2117 }
2118 {
2119 PyThreadState* __tstate = wxPyBeginAllowThreads();
2120 (arg1)->SetDashes(arg2,arg3);
2121
2122 wxPyEndAllowThreads(__tstate);
2123 if (PyErr_Occurred()) SWIG_fail;
2124 }
2125 Py_INCREF(Py_None); resultobj = Py_None;
2126 {
2127 if (arg3) delete [] arg3;
2128 }
2129 return resultobj;
2130 fail:
2131 {
2132 if (arg3) delete [] arg3;
2133 }
2134 return NULL;
2135 }
2136
2137
2138 static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2139 PyObject *resultobj;
2140 wxPen *arg1 = (wxPen *) 0 ;
2141 PyObject *result;
2142 PyObject * obj0 = 0 ;
2143 char *kwnames[] = {
2144 (char *) "self", NULL
2145 };
2146
2147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2150 {
2151 PyThreadState* __tstate = wxPyBeginAllowThreads();
2152 result = (PyObject *)wxPen_GetDashes(arg1);
2153
2154 wxPyEndAllowThreads(__tstate);
2155 if (PyErr_Occurred()) SWIG_fail;
2156 }
2157 resultobj = result;
2158 return resultobj;
2159 fail:
2160 return NULL;
2161 }
2162
2163
2164 static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2165 PyObject *resultobj;
2166 wxPen *arg1 = (wxPen *) 0 ;
2167 PyObject *arg2 = (PyObject *) 0 ;
2168 PyObject *arg3 = (PyObject *) 0 ;
2169 PyObject * obj0 = 0 ;
2170 PyObject * obj1 = 0 ;
2171 PyObject * obj2 = 0 ;
2172 char *kwnames[] = {
2173 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
2174 };
2175
2176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
2177 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2178 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2179 arg2 = obj1;
2180 arg3 = obj2;
2181 {
2182 PyThreadState* __tstate = wxPyBeginAllowThreads();
2183 wxPen__SetDashes(arg1,arg2,arg3);
2184
2185 wxPyEndAllowThreads(__tstate);
2186 if (PyErr_Occurred()) SWIG_fail;
2187 }
2188 Py_INCREF(Py_None); resultobj = Py_None;
2189 return resultobj;
2190 fail:
2191 return NULL;
2192 }
2193
2194
2195 static PyObject *_wrap_Pen_GetDashCount(PyObject *self, PyObject *args, PyObject *kwargs) {
2196 PyObject *resultobj;
2197 wxPen *arg1 = (wxPen *) 0 ;
2198 int result;
2199 PyObject * obj0 = 0 ;
2200 char *kwnames[] = {
2201 (char *) "self", NULL
2202 };
2203
2204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashCount",kwnames,&obj0)) goto fail;
2205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2207 {
2208 PyThreadState* __tstate = wxPyBeginAllowThreads();
2209 result = (int)((wxPen const *)arg1)->GetDashCount();
2210
2211 wxPyEndAllowThreads(__tstate);
2212 if (PyErr_Occurred()) SWIG_fail;
2213 }
2214 resultobj = SWIG_FromInt((int)result);
2215 return resultobj;
2216 fail:
2217 return NULL;
2218 }
2219
2220
2221 static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
2222 PyObject *resultobj;
2223 wxPen *arg1 = (wxPen *) 0 ;
2224 wxPen *arg2 = (wxPen *) 0 ;
2225 bool result;
2226 PyObject * obj0 = 0 ;
2227 PyObject * obj1 = 0 ;
2228 char *kwnames[] = {
2229 (char *) "self",(char *) "other", NULL
2230 };
2231
2232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
2233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2235 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2237 {
2238 PyThreadState* __tstate = wxPyBeginAllowThreads();
2239 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
2240
2241 wxPyEndAllowThreads(__tstate);
2242 if (PyErr_Occurred()) SWIG_fail;
2243 }
2244 {
2245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2246 }
2247 return resultobj;
2248 fail:
2249 return NULL;
2250 }
2251
2252
2253 static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
2254 PyObject *resultobj;
2255 wxPen *arg1 = (wxPen *) 0 ;
2256 wxPen *arg2 = (wxPen *) 0 ;
2257 bool result;
2258 PyObject * obj0 = 0 ;
2259 PyObject * obj1 = 0 ;
2260 char *kwnames[] = {
2261 (char *) "self",(char *) "other", NULL
2262 };
2263
2264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2267 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2269 {
2270 PyThreadState* __tstate = wxPyBeginAllowThreads();
2271 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
2272
2273 wxPyEndAllowThreads(__tstate);
2274 if (PyErr_Occurred()) SWIG_fail;
2275 }
2276 {
2277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2278 }
2279 return resultobj;
2280 fail:
2281 return NULL;
2282 }
2283
2284
2285 static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
2286 PyObject *obj;
2287 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2288 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
2289 Py_INCREF(obj);
2290 return Py_BuildValue((char *)"");
2291 }
2292 static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2293 PyObject *resultobj;
2294 wxColour *arg1 = 0 ;
2295 int arg2 = (int) wxSOLID ;
2296 wxBrush *result;
2297 wxColour temp1 ;
2298 PyObject * obj0 = 0 ;
2299 PyObject * obj1 = 0 ;
2300 char *kwnames[] = {
2301 (char *) "colour",(char *) "style", NULL
2302 };
2303
2304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2305 {
2306 arg1 = &temp1;
2307 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2308 }
2309 if (obj1) {
2310 arg2 = (int) SWIG_AsInt(obj1);
2311 if (PyErr_Occurred()) SWIG_fail;
2312 }
2313 {
2314 if (!wxPyCheckForApp()) SWIG_fail;
2315 PyThreadState* __tstate = wxPyBeginAllowThreads();
2316 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2317
2318 wxPyEndAllowThreads(__tstate);
2319 if (PyErr_Occurred()) SWIG_fail;
2320 }
2321 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2322 return resultobj;
2323 fail:
2324 return NULL;
2325 }
2326
2327
2328 static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2329 PyObject *resultobj;
2330 wxBrush *arg1 = (wxBrush *) 0 ;
2331 PyObject * obj0 = 0 ;
2332 char *kwnames[] = {
2333 (char *) "self", NULL
2334 };
2335
2336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2339 {
2340 PyThreadState* __tstate = wxPyBeginAllowThreads();
2341 delete arg1;
2342
2343 wxPyEndAllowThreads(__tstate);
2344 if (PyErr_Occurred()) SWIG_fail;
2345 }
2346 Py_INCREF(Py_None); resultobj = Py_None;
2347 return resultobj;
2348 fail:
2349 return NULL;
2350 }
2351
2352
2353 static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2354 PyObject *resultobj;
2355 wxBrush *arg1 = (wxBrush *) 0 ;
2356 wxColour *arg2 = 0 ;
2357 wxColour temp2 ;
2358 PyObject * obj0 = 0 ;
2359 PyObject * obj1 = 0 ;
2360 char *kwnames[] = {
2361 (char *) "self",(char *) "col", NULL
2362 };
2363
2364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2367 {
2368 arg2 = &temp2;
2369 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2370 }
2371 {
2372 PyThreadState* __tstate = wxPyBeginAllowThreads();
2373 (arg1)->SetColour((wxColour const &)*arg2);
2374
2375 wxPyEndAllowThreads(__tstate);
2376 if (PyErr_Occurred()) SWIG_fail;
2377 }
2378 Py_INCREF(Py_None); resultobj = Py_None;
2379 return resultobj;
2380 fail:
2381 return NULL;
2382 }
2383
2384
2385 static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2386 PyObject *resultobj;
2387 wxBrush *arg1 = (wxBrush *) 0 ;
2388 int arg2 ;
2389 PyObject * obj0 = 0 ;
2390 PyObject * obj1 = 0 ;
2391 char *kwnames[] = {
2392 (char *) "self",(char *) "style", NULL
2393 };
2394
2395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2398 arg2 = (int) SWIG_AsInt(obj1);
2399 if (PyErr_Occurred()) SWIG_fail;
2400 {
2401 PyThreadState* __tstate = wxPyBeginAllowThreads();
2402 (arg1)->SetStyle(arg2);
2403
2404 wxPyEndAllowThreads(__tstate);
2405 if (PyErr_Occurred()) SWIG_fail;
2406 }
2407 Py_INCREF(Py_None); resultobj = Py_None;
2408 return resultobj;
2409 fail:
2410 return NULL;
2411 }
2412
2413
2414 static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2415 PyObject *resultobj;
2416 wxBrush *arg1 = (wxBrush *) 0 ;
2417 wxBitmap *arg2 = 0 ;
2418 PyObject * obj0 = 0 ;
2419 PyObject * obj1 = 0 ;
2420 char *kwnames[] = {
2421 (char *) "self",(char *) "stipple", NULL
2422 };
2423
2424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2427 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2428 SWIG_POINTER_EXCEPTION | 0)) == -1)
2429 SWIG_fail;
2430 if (arg2 == NULL) {
2431 PyErr_SetString(PyExc_TypeError,"null reference");
2432 SWIG_fail;
2433 }
2434 {
2435 PyThreadState* __tstate = wxPyBeginAllowThreads();
2436 (arg1)->SetStipple((wxBitmap const &)*arg2);
2437
2438 wxPyEndAllowThreads(__tstate);
2439 if (PyErr_Occurred()) SWIG_fail;
2440 }
2441 Py_INCREF(Py_None); resultobj = Py_None;
2442 return resultobj;
2443 fail:
2444 return NULL;
2445 }
2446
2447
2448 static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2449 PyObject *resultobj;
2450 wxBrush *arg1 = (wxBrush *) 0 ;
2451 wxColour result;
2452 PyObject * obj0 = 0 ;
2453 char *kwnames[] = {
2454 (char *) "self", NULL
2455 };
2456
2457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2460 {
2461 PyThreadState* __tstate = wxPyBeginAllowThreads();
2462 result = ((wxBrush const *)arg1)->GetColour();
2463
2464 wxPyEndAllowThreads(__tstate);
2465 if (PyErr_Occurred()) SWIG_fail;
2466 }
2467 {
2468 wxColour * resultptr;
2469 resultptr = new wxColour((wxColour &) result);
2470 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2471 }
2472 return resultobj;
2473 fail:
2474 return NULL;
2475 }
2476
2477
2478 static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2479 PyObject *resultobj;
2480 wxBrush *arg1 = (wxBrush *) 0 ;
2481 int result;
2482 PyObject * obj0 = 0 ;
2483 char *kwnames[] = {
2484 (char *) "self", NULL
2485 };
2486
2487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2490 {
2491 PyThreadState* __tstate = wxPyBeginAllowThreads();
2492 result = (int)((wxBrush const *)arg1)->GetStyle();
2493
2494 wxPyEndAllowThreads(__tstate);
2495 if (PyErr_Occurred()) SWIG_fail;
2496 }
2497 resultobj = SWIG_FromInt((int)result);
2498 return resultobj;
2499 fail:
2500 return NULL;
2501 }
2502
2503
2504 static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2505 PyObject *resultobj;
2506 wxBrush *arg1 = (wxBrush *) 0 ;
2507 wxBitmap *result;
2508 PyObject * obj0 = 0 ;
2509 char *kwnames[] = {
2510 (char *) "self", NULL
2511 };
2512
2513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2516 {
2517 PyThreadState* __tstate = wxPyBeginAllowThreads();
2518 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2519
2520 wxPyEndAllowThreads(__tstate);
2521 if (PyErr_Occurred()) SWIG_fail;
2522 }
2523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2524 return resultobj;
2525 fail:
2526 return NULL;
2527 }
2528
2529
2530 static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2531 PyObject *resultobj;
2532 wxBrush *arg1 = (wxBrush *) 0 ;
2533 bool result;
2534 PyObject * obj0 = 0 ;
2535 char *kwnames[] = {
2536 (char *) "self", NULL
2537 };
2538
2539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2542 {
2543 PyThreadState* __tstate = wxPyBeginAllowThreads();
2544 result = (bool)(arg1)->Ok();
2545
2546 wxPyEndAllowThreads(__tstate);
2547 if (PyErr_Occurred()) SWIG_fail;
2548 }
2549 {
2550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2551 }
2552 return resultobj;
2553 fail:
2554 return NULL;
2555 }
2556
2557
2558 static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2559 PyObject *obj;
2560 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2561 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2562 Py_INCREF(obj);
2563 return Py_BuildValue((char *)"");
2564 }
2565 static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2566 PyObject *resultobj;
2567 wxString *arg1 = 0 ;
2568 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2569 wxBitmap *result;
2570 bool temp1 = False ;
2571 PyObject * obj0 = 0 ;
2572 PyObject * obj1 = 0 ;
2573 char *kwnames[] = {
2574 (char *) "name",(char *) "type", NULL
2575 };
2576
2577 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2578 {
2579 arg1 = wxString_in_helper(obj0);
2580 if (arg1 == NULL) SWIG_fail;
2581 temp1 = True;
2582 }
2583 if (obj1) {
2584 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2585 if (PyErr_Occurred()) SWIG_fail;
2586 }
2587 {
2588 if (!wxPyCheckForApp()) SWIG_fail;
2589 PyThreadState* __tstate = wxPyBeginAllowThreads();
2590 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2591
2592 wxPyEndAllowThreads(__tstate);
2593 if (PyErr_Occurred()) SWIG_fail;
2594 }
2595 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2596 {
2597 if (temp1)
2598 delete arg1;
2599 }
2600 return resultobj;
2601 fail:
2602 {
2603 if (temp1)
2604 delete arg1;
2605 }
2606 return NULL;
2607 }
2608
2609
2610 static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2611 PyObject *resultobj;
2612 wxBitmap *arg1 = (wxBitmap *) 0 ;
2613 PyObject * obj0 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "self", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2621 {
2622 PyThreadState* __tstate = wxPyBeginAllowThreads();
2623 delete arg1;
2624
2625 wxPyEndAllowThreads(__tstate);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 Py_INCREF(Py_None); resultobj = Py_None;
2629 return resultobj;
2630 fail:
2631 return NULL;
2632 }
2633
2634
2635 static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2636 PyObject *resultobj;
2637 int arg1 ;
2638 int arg2 ;
2639 int arg3 = (int) -1 ;
2640 wxBitmap *result;
2641 PyObject * obj0 = 0 ;
2642 PyObject * obj1 = 0 ;
2643 PyObject * obj2 = 0 ;
2644 char *kwnames[] = {
2645 (char *) "width",(char *) "height",(char *) "depth", NULL
2646 };
2647
2648 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2649 arg1 = (int) SWIG_AsInt(obj0);
2650 if (PyErr_Occurred()) SWIG_fail;
2651 arg2 = (int) SWIG_AsInt(obj1);
2652 if (PyErr_Occurred()) SWIG_fail;
2653 if (obj2) {
2654 arg3 = (int) SWIG_AsInt(obj2);
2655 if (PyErr_Occurred()) SWIG_fail;
2656 }
2657 {
2658 if (!wxPyCheckForApp()) SWIG_fail;
2659 PyThreadState* __tstate = wxPyBeginAllowThreads();
2660 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2661
2662 wxPyEndAllowThreads(__tstate);
2663 if (PyErr_Occurred()) SWIG_fail;
2664 }
2665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2666 return resultobj;
2667 fail:
2668 return NULL;
2669 }
2670
2671
2672 static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2673 PyObject *resultobj;
2674 wxIcon *arg1 = 0 ;
2675 wxBitmap *result;
2676 PyObject * obj0 = 0 ;
2677 char *kwnames[] = {
2678 (char *) "icon", NULL
2679 };
2680
2681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2683 SWIG_POINTER_EXCEPTION | 0)) == -1)
2684 SWIG_fail;
2685 if (arg1 == NULL) {
2686 PyErr_SetString(PyExc_TypeError,"null reference");
2687 SWIG_fail;
2688 }
2689 {
2690 if (!wxPyCheckForApp()) SWIG_fail;
2691 PyThreadState* __tstate = wxPyBeginAllowThreads();
2692 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2693
2694 wxPyEndAllowThreads(__tstate);
2695 if (PyErr_Occurred()) SWIG_fail;
2696 }
2697 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2698 return resultobj;
2699 fail:
2700 return NULL;
2701 }
2702
2703
2704 static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2705 PyObject *resultobj;
2706 wxImage *arg1 = 0 ;
2707 int arg2 = (int) -1 ;
2708 wxBitmap *result;
2709 PyObject * obj0 = 0 ;
2710 PyObject * obj1 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "image",(char *) "depth", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2717 SWIG_POINTER_EXCEPTION | 0)) == -1)
2718 SWIG_fail;
2719 if (arg1 == NULL) {
2720 PyErr_SetString(PyExc_TypeError,"null reference");
2721 SWIG_fail;
2722 }
2723 if (obj1) {
2724 arg2 = (int) SWIG_AsInt(obj1);
2725 if (PyErr_Occurred()) SWIG_fail;
2726 }
2727 {
2728 if (!wxPyCheckForApp()) SWIG_fail;
2729 PyThreadState* __tstate = wxPyBeginAllowThreads();
2730 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2731
2732 wxPyEndAllowThreads(__tstate);
2733 if (PyErr_Occurred()) SWIG_fail;
2734 }
2735 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2736 return resultobj;
2737 fail:
2738 return NULL;
2739 }
2740
2741
2742 static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2743 PyObject *resultobj;
2744 PyObject *arg1 = (PyObject *) 0 ;
2745 wxBitmap *result;
2746 PyObject * obj0 = 0 ;
2747 char *kwnames[] = {
2748 (char *) "listOfStrings", NULL
2749 };
2750
2751 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2752 arg1 = obj0;
2753 {
2754 if (!wxPyCheckForApp()) SWIG_fail;
2755 PyThreadState* __tstate = wxPyBeginAllowThreads();
2756 result = (wxBitmap *)new_wxBitmap(arg1);
2757
2758 wxPyEndAllowThreads(__tstate);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 }
2761 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2762 return resultobj;
2763 fail:
2764 return NULL;
2765 }
2766
2767
2768 static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2769 PyObject *resultobj;
2770 PyObject *arg1 = (PyObject *) 0 ;
2771 int arg2 ;
2772 int arg3 ;
2773 int arg4 = (int) 1 ;
2774 wxBitmap *result;
2775 PyObject * obj0 = 0 ;
2776 PyObject * obj1 = 0 ;
2777 PyObject * obj2 = 0 ;
2778 PyObject * obj3 = 0 ;
2779 char *kwnames[] = {
2780 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2781 };
2782
2783 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2784 arg1 = obj0;
2785 arg2 = (int) SWIG_AsInt(obj1);
2786 if (PyErr_Occurred()) SWIG_fail;
2787 arg3 = (int) SWIG_AsInt(obj2);
2788 if (PyErr_Occurred()) SWIG_fail;
2789 if (obj3) {
2790 arg4 = (int) SWIG_AsInt(obj3);
2791 if (PyErr_Occurred()) SWIG_fail;
2792 }
2793 {
2794 if (!wxPyCheckForApp()) SWIG_fail;
2795 PyThreadState* __tstate = wxPyBeginAllowThreads();
2796 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2797
2798 wxPyEndAllowThreads(__tstate);
2799 if (PyErr_Occurred()) SWIG_fail;
2800 }
2801 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2802 return resultobj;
2803 fail:
2804 return NULL;
2805 }
2806
2807
2808 static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2809 PyObject *resultobj;
2810 wxBitmap *arg1 = (wxBitmap *) 0 ;
2811 bool result;
2812 PyObject * obj0 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "self", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2820 {
2821 PyThreadState* __tstate = wxPyBeginAllowThreads();
2822 result = (bool)(arg1)->Ok();
2823
2824 wxPyEndAllowThreads(__tstate);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 {
2828 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2829 }
2830 return resultobj;
2831 fail:
2832 return NULL;
2833 }
2834
2835
2836 static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2837 PyObject *resultobj;
2838 wxBitmap *arg1 = (wxBitmap *) 0 ;
2839 int result;
2840 PyObject * obj0 = 0 ;
2841 char *kwnames[] = {
2842 (char *) "self", NULL
2843 };
2844
2845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2848 {
2849 PyThreadState* __tstate = wxPyBeginAllowThreads();
2850 result = (int)(arg1)->GetWidth();
2851
2852 wxPyEndAllowThreads(__tstate);
2853 if (PyErr_Occurred()) SWIG_fail;
2854 }
2855 resultobj = SWIG_FromInt((int)result);
2856 return resultobj;
2857 fail:
2858 return NULL;
2859 }
2860
2861
2862 static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2863 PyObject *resultobj;
2864 wxBitmap *arg1 = (wxBitmap *) 0 ;
2865 int result;
2866 PyObject * obj0 = 0 ;
2867 char *kwnames[] = {
2868 (char *) "self", NULL
2869 };
2870
2871 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2872 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2873 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2874 {
2875 PyThreadState* __tstate = wxPyBeginAllowThreads();
2876 result = (int)(arg1)->GetHeight();
2877
2878 wxPyEndAllowThreads(__tstate);
2879 if (PyErr_Occurred()) SWIG_fail;
2880 }
2881 resultobj = SWIG_FromInt((int)result);
2882 return resultobj;
2883 fail:
2884 return NULL;
2885 }
2886
2887
2888 static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2889 PyObject *resultobj;
2890 wxBitmap *arg1 = (wxBitmap *) 0 ;
2891 int result;
2892 PyObject * obj0 = 0 ;
2893 char *kwnames[] = {
2894 (char *) "self", NULL
2895 };
2896
2897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2900 {
2901 PyThreadState* __tstate = wxPyBeginAllowThreads();
2902 result = (int)(arg1)->GetDepth();
2903
2904 wxPyEndAllowThreads(__tstate);
2905 if (PyErr_Occurred()) SWIG_fail;
2906 }
2907 resultobj = SWIG_FromInt((int)result);
2908 return resultobj;
2909 fail:
2910 return NULL;
2911 }
2912
2913
2914 static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2915 PyObject *resultobj;
2916 wxBitmap *arg1 = (wxBitmap *) 0 ;
2917 wxSize result;
2918 PyObject * obj0 = 0 ;
2919 char *kwnames[] = {
2920 (char *) "self", NULL
2921 };
2922
2923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2926 {
2927 PyThreadState* __tstate = wxPyBeginAllowThreads();
2928 result = wxBitmap_GetSize(arg1);
2929
2930 wxPyEndAllowThreads(__tstate);
2931 if (PyErr_Occurred()) SWIG_fail;
2932 }
2933 {
2934 wxSize * resultptr;
2935 resultptr = new wxSize((wxSize &) result);
2936 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2937 }
2938 return resultobj;
2939 fail:
2940 return NULL;
2941 }
2942
2943
2944 static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2945 PyObject *resultobj;
2946 wxBitmap *arg1 = (wxBitmap *) 0 ;
2947 SwigValueWrapper< wxImage > result;
2948 PyObject * obj0 = 0 ;
2949 char *kwnames[] = {
2950 (char *) "self", NULL
2951 };
2952
2953 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2954 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2955 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2956 {
2957 PyThreadState* __tstate = wxPyBeginAllowThreads();
2958 result = ((wxBitmap const *)arg1)->ConvertToImage();
2959
2960 wxPyEndAllowThreads(__tstate);
2961 if (PyErr_Occurred()) SWIG_fail;
2962 }
2963 {
2964 wxImage * resultptr;
2965 resultptr = new wxImage((wxImage &) result);
2966 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
2967 }
2968 return resultobj;
2969 fail:
2970 return NULL;
2971 }
2972
2973
2974 static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
2975 PyObject *resultobj;
2976 wxBitmap *arg1 = (wxBitmap *) 0 ;
2977 wxMask *result;
2978 PyObject * obj0 = 0 ;
2979 char *kwnames[] = {
2980 (char *) "self", NULL
2981 };
2982
2983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
2984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2986 {
2987 PyThreadState* __tstate = wxPyBeginAllowThreads();
2988 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
2989
2990 wxPyEndAllowThreads(__tstate);
2991 if (PyErr_Occurred()) SWIG_fail;
2992 }
2993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
2994 return resultobj;
2995 fail:
2996 return NULL;
2997 }
2998
2999
3000 static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3001 PyObject *resultobj;
3002 wxBitmap *arg1 = (wxBitmap *) 0 ;
3003 wxMask *arg2 = (wxMask *) 0 ;
3004 PyObject * obj0 = 0 ;
3005 PyObject * obj1 = 0 ;
3006 char *kwnames[] = {
3007 (char *) "self",(char *) "mask", NULL
3008 };
3009
3010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3013 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3014 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3015 {
3016 PyThreadState* __tstate = wxPyBeginAllowThreads();
3017 (arg1)->SetMask(arg2);
3018
3019 wxPyEndAllowThreads(__tstate);
3020 if (PyErr_Occurred()) SWIG_fail;
3021 }
3022 Py_INCREF(Py_None); resultobj = Py_None;
3023 return resultobj;
3024 fail:
3025 return NULL;
3026 }
3027
3028
3029 static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3030 PyObject *resultobj;
3031 wxBitmap *arg1 = (wxBitmap *) 0 ;
3032 wxColour *arg2 = 0 ;
3033 wxColour temp2 ;
3034 PyObject * obj0 = 0 ;
3035 PyObject * obj1 = 0 ;
3036 char *kwnames[] = {
3037 (char *) "self",(char *) "colour", NULL
3038 };
3039
3040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3043 {
3044 arg2 = &temp2;
3045 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3046 }
3047 {
3048 PyThreadState* __tstate = wxPyBeginAllowThreads();
3049 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3050
3051 wxPyEndAllowThreads(__tstate);
3052 if (PyErr_Occurred()) SWIG_fail;
3053 }
3054 Py_INCREF(Py_None); resultobj = Py_None;
3055 return resultobj;
3056 fail:
3057 return NULL;
3058 }
3059
3060
3061 static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3062 PyObject *resultobj;
3063 wxBitmap *arg1 = (wxBitmap *) 0 ;
3064 wxRect *arg2 = 0 ;
3065 SwigValueWrapper< wxBitmap > result;
3066 wxRect temp2 ;
3067 PyObject * obj0 = 0 ;
3068 PyObject * obj1 = 0 ;
3069 char *kwnames[] = {
3070 (char *) "self",(char *) "rect", NULL
3071 };
3072
3073 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3074 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3075 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3076 {
3077 arg2 = &temp2;
3078 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3079 }
3080 {
3081 PyThreadState* __tstate = wxPyBeginAllowThreads();
3082 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3083
3084 wxPyEndAllowThreads(__tstate);
3085 if (PyErr_Occurred()) SWIG_fail;
3086 }
3087 {
3088 wxBitmap * resultptr;
3089 resultptr = new wxBitmap((wxBitmap &) result);
3090 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3091 }
3092 return resultobj;
3093 fail:
3094 return NULL;
3095 }
3096
3097
3098 static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3099 PyObject *resultobj;
3100 wxBitmap *arg1 = (wxBitmap *) 0 ;
3101 wxString *arg2 = 0 ;
3102 int arg3 ;
3103 wxPalette *arg4 = (wxPalette *) NULL ;
3104 bool result;
3105 bool temp2 = False ;
3106 PyObject * obj0 = 0 ;
3107 PyObject * obj1 = 0 ;
3108 PyObject * obj2 = 0 ;
3109 PyObject * obj3 = 0 ;
3110 char *kwnames[] = {
3111 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3112 };
3113
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3117 {
3118 arg2 = wxString_in_helper(obj1);
3119 if (arg2 == NULL) SWIG_fail;
3120 temp2 = True;
3121 }
3122 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3123 if (PyErr_Occurred()) SWIG_fail;
3124 if (obj3) {
3125 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3127 }
3128 {
3129 PyThreadState* __tstate = wxPyBeginAllowThreads();
3130 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3131
3132 wxPyEndAllowThreads(__tstate);
3133 if (PyErr_Occurred()) SWIG_fail;
3134 }
3135 {
3136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3137 }
3138 {
3139 if (temp2)
3140 delete arg2;
3141 }
3142 return resultobj;
3143 fail:
3144 {
3145 if (temp2)
3146 delete arg2;
3147 }
3148 return NULL;
3149 }
3150
3151
3152 static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3153 PyObject *resultobj;
3154 wxBitmap *arg1 = (wxBitmap *) 0 ;
3155 wxString *arg2 = 0 ;
3156 int arg3 ;
3157 bool result;
3158 bool temp2 = False ;
3159 PyObject * obj0 = 0 ;
3160 PyObject * obj1 = 0 ;
3161 PyObject * obj2 = 0 ;
3162 char *kwnames[] = {
3163 (char *) "self",(char *) "name",(char *) "type", NULL
3164 };
3165
3166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3169 {
3170 arg2 = wxString_in_helper(obj1);
3171 if (arg2 == NULL) SWIG_fail;
3172 temp2 = True;
3173 }
3174 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3175 if (PyErr_Occurred()) SWIG_fail;
3176 {
3177 PyThreadState* __tstate = wxPyBeginAllowThreads();
3178 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3179
3180 wxPyEndAllowThreads(__tstate);
3181 if (PyErr_Occurred()) SWIG_fail;
3182 }
3183 {
3184 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3185 }
3186 {
3187 if (temp2)
3188 delete arg2;
3189 }
3190 return resultobj;
3191 fail:
3192 {
3193 if (temp2)
3194 delete arg2;
3195 }
3196 return NULL;
3197 }
3198
3199
3200 static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3201 PyObject *resultobj;
3202 wxBitmap *arg1 = (wxBitmap *) 0 ;
3203 wxIcon *arg2 = 0 ;
3204 bool result;
3205 PyObject * obj0 = 0 ;
3206 PyObject * obj1 = 0 ;
3207 char *kwnames[] = {
3208 (char *) "self",(char *) "icon", NULL
3209 };
3210
3211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3215 SWIG_POINTER_EXCEPTION | 0)) == -1)
3216 SWIG_fail;
3217 if (arg2 == NULL) {
3218 PyErr_SetString(PyExc_TypeError,"null reference");
3219 SWIG_fail;
3220 }
3221 {
3222 PyThreadState* __tstate = wxPyBeginAllowThreads();
3223 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3224
3225 wxPyEndAllowThreads(__tstate);
3226 if (PyErr_Occurred()) SWIG_fail;
3227 }
3228 {
3229 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3230 }
3231 return resultobj;
3232 fail:
3233 return NULL;
3234 }
3235
3236
3237 static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3238 PyObject *resultobj;
3239 wxBitmap *arg1 = (wxBitmap *) 0 ;
3240 int arg2 ;
3241 PyObject * obj0 = 0 ;
3242 PyObject * obj1 = 0 ;
3243 char *kwnames[] = {
3244 (char *) "self",(char *) "height", NULL
3245 };
3246
3247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3250 arg2 = (int) SWIG_AsInt(obj1);
3251 if (PyErr_Occurred()) SWIG_fail;
3252 {
3253 PyThreadState* __tstate = wxPyBeginAllowThreads();
3254 (arg1)->SetHeight(arg2);
3255
3256 wxPyEndAllowThreads(__tstate);
3257 if (PyErr_Occurred()) SWIG_fail;
3258 }
3259 Py_INCREF(Py_None); resultobj = Py_None;
3260 return resultobj;
3261 fail:
3262 return NULL;
3263 }
3264
3265
3266 static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3267 PyObject *resultobj;
3268 wxBitmap *arg1 = (wxBitmap *) 0 ;
3269 int arg2 ;
3270 PyObject * obj0 = 0 ;
3271 PyObject * obj1 = 0 ;
3272 char *kwnames[] = {
3273 (char *) "self",(char *) "width", NULL
3274 };
3275
3276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3279 arg2 = (int) SWIG_AsInt(obj1);
3280 if (PyErr_Occurred()) SWIG_fail;
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 (arg1)->SetWidth(arg2);
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 Py_INCREF(Py_None); resultobj = Py_None;
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3296 PyObject *resultobj;
3297 wxBitmap *arg1 = (wxBitmap *) 0 ;
3298 int arg2 ;
3299 PyObject * obj0 = 0 ;
3300 PyObject * obj1 = 0 ;
3301 char *kwnames[] = {
3302 (char *) "self",(char *) "depth", NULL
3303 };
3304
3305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3308 arg2 = (int) SWIG_AsInt(obj1);
3309 if (PyErr_Occurred()) SWIG_fail;
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 (arg1)->SetDepth(arg2);
3313
3314 wxPyEndAllowThreads(__tstate);
3315 if (PyErr_Occurred()) SWIG_fail;
3316 }
3317 Py_INCREF(Py_None); resultobj = Py_None;
3318 return resultobj;
3319 fail:
3320 return NULL;
3321 }
3322
3323
3324 static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3325 PyObject *resultobj;
3326 wxBitmap *arg1 = (wxBitmap *) 0 ;
3327 wxSize *arg2 = 0 ;
3328 wxSize temp2 ;
3329 PyObject * obj0 = 0 ;
3330 PyObject * obj1 = 0 ;
3331 char *kwnames[] = {
3332 (char *) "self",(char *) "size", NULL
3333 };
3334
3335 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3336 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3337 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3338 {
3339 arg2 = &temp2;
3340 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3341 }
3342 {
3343 PyThreadState* __tstate = wxPyBeginAllowThreads();
3344 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3345
3346 wxPyEndAllowThreads(__tstate);
3347 if (PyErr_Occurred()) SWIG_fail;
3348 }
3349 Py_INCREF(Py_None); resultobj = Py_None;
3350 return resultobj;
3351 fail:
3352 return NULL;
3353 }
3354
3355
3356 static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3357 PyObject *resultobj;
3358 wxBitmap *arg1 = (wxBitmap *) 0 ;
3359 wxBitmap *arg2 = (wxBitmap *) 0 ;
3360 bool result;
3361 PyObject * obj0 = 0 ;
3362 PyObject * obj1 = 0 ;
3363 char *kwnames[] = {
3364 (char *) "self",(char *) "other", NULL
3365 };
3366
3367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3370 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3372 {
3373 PyThreadState* __tstate = wxPyBeginAllowThreads();
3374 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3375
3376 wxPyEndAllowThreads(__tstate);
3377 if (PyErr_Occurred()) SWIG_fail;
3378 }
3379 {
3380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3381 }
3382 return resultobj;
3383 fail:
3384 return NULL;
3385 }
3386
3387
3388 static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3389 PyObject *resultobj;
3390 wxBitmap *arg1 = (wxBitmap *) 0 ;
3391 wxBitmap *arg2 = (wxBitmap *) 0 ;
3392 bool result;
3393 PyObject * obj0 = 0 ;
3394 PyObject * obj1 = 0 ;
3395 char *kwnames[] = {
3396 (char *) "self",(char *) "other", NULL
3397 };
3398
3399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3404 {
3405 PyThreadState* __tstate = wxPyBeginAllowThreads();
3406 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3407
3408 wxPyEndAllowThreads(__tstate);
3409 if (PyErr_Occurred()) SWIG_fail;
3410 }
3411 {
3412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3413 }
3414 return resultobj;
3415 fail:
3416 return NULL;
3417 }
3418
3419
3420 static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3421 PyObject *obj;
3422 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3423 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3424 Py_INCREF(obj);
3425 return Py_BuildValue((char *)"");
3426 }
3427 static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3428 PyObject *resultobj;
3429 wxBitmap *arg1 = 0 ;
3430 wxColour const &arg2_defvalue = wxNullColour ;
3431 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3432 wxMask *result;
3433 wxColour temp2 ;
3434 PyObject * obj0 = 0 ;
3435 PyObject * obj1 = 0 ;
3436 char *kwnames[] = {
3437 (char *) "bitmap",(char *) "colour", NULL
3438 };
3439
3440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3442 SWIG_POINTER_EXCEPTION | 0)) == -1)
3443 SWIG_fail;
3444 if (arg1 == NULL) {
3445 PyErr_SetString(PyExc_TypeError,"null reference");
3446 SWIG_fail;
3447 }
3448 if (obj1) {
3449 {
3450 arg2 = &temp2;
3451 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3452 }
3453 }
3454 {
3455 if (!wxPyCheckForApp()) SWIG_fail;
3456 PyThreadState* __tstate = wxPyBeginAllowThreads();
3457 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3458
3459 wxPyEndAllowThreads(__tstate);
3460 if (PyErr_Occurred()) SWIG_fail;
3461 }
3462 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3463 return resultobj;
3464 fail:
3465 return NULL;
3466 }
3467
3468
3469 static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3470 PyObject *obj;
3471 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3472 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3473 Py_INCREF(obj);
3474 return Py_BuildValue((char *)"");
3475 }
3476 static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3477 PyObject *resultobj;
3478 wxString *arg1 = 0 ;
3479 int arg2 ;
3480 int arg3 = (int) -1 ;
3481 int arg4 = (int) -1 ;
3482 wxIcon *result;
3483 bool temp1 = False ;
3484 PyObject * obj0 = 0 ;
3485 PyObject * obj1 = 0 ;
3486 PyObject * obj2 = 0 ;
3487 PyObject * obj3 = 0 ;
3488 char *kwnames[] = {
3489 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3490 };
3491
3492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3493 {
3494 arg1 = wxString_in_helper(obj0);
3495 if (arg1 == NULL) SWIG_fail;
3496 temp1 = True;
3497 }
3498 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3499 if (PyErr_Occurred()) SWIG_fail;
3500 if (obj2) {
3501 arg3 = (int) SWIG_AsInt(obj2);
3502 if (PyErr_Occurred()) SWIG_fail;
3503 }
3504 if (obj3) {
3505 arg4 = (int) SWIG_AsInt(obj3);
3506 if (PyErr_Occurred()) SWIG_fail;
3507 }
3508 {
3509 if (!wxPyCheckForApp()) SWIG_fail;
3510 PyThreadState* __tstate = wxPyBeginAllowThreads();
3511 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3512
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) SWIG_fail;
3515 }
3516 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3517 {
3518 if (temp1)
3519 delete arg1;
3520 }
3521 return resultobj;
3522 fail:
3523 {
3524 if (temp1)
3525 delete arg1;
3526 }
3527 return NULL;
3528 }
3529
3530
3531 static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3532 PyObject *resultobj;
3533 wxIcon *arg1 = (wxIcon *) 0 ;
3534 PyObject * obj0 = 0 ;
3535 char *kwnames[] = {
3536 (char *) "self", NULL
3537 };
3538
3539 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3540 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3541 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3542 {
3543 PyThreadState* __tstate = wxPyBeginAllowThreads();
3544 delete arg1;
3545
3546 wxPyEndAllowThreads(__tstate);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 Py_INCREF(Py_None); resultobj = Py_None;
3550 return resultobj;
3551 fail:
3552 return NULL;
3553 }
3554
3555
3556 static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3557 PyObject *resultobj;
3558 wxIcon *result;
3559 char *kwnames[] = {
3560 NULL
3561 };
3562
3563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3564 {
3565 if (!wxPyCheckForApp()) SWIG_fail;
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (wxIcon *)new wxIcon();
3568
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3573 return resultobj;
3574 fail:
3575 return NULL;
3576 }
3577
3578
3579 static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3580 PyObject *resultobj;
3581 wxIconLocation *arg1 = 0 ;
3582 wxIcon *result;
3583 PyObject * obj0 = 0 ;
3584 char *kwnames[] = {
3585 (char *) "loc", NULL
3586 };
3587
3588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3590 SWIG_POINTER_EXCEPTION | 0)) == -1)
3591 SWIG_fail;
3592 if (arg1 == NULL) {
3593 PyErr_SetString(PyExc_TypeError,"null reference");
3594 SWIG_fail;
3595 }
3596 {
3597 if (!wxPyCheckForApp()) SWIG_fail;
3598 PyThreadState* __tstate = wxPyBeginAllowThreads();
3599 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3600
3601 wxPyEndAllowThreads(__tstate);
3602 if (PyErr_Occurred()) SWIG_fail;
3603 }
3604 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3605 return resultobj;
3606 fail:
3607 return NULL;
3608 }
3609
3610
3611 static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3612 PyObject *resultobj;
3613 wxBitmap *arg1 = 0 ;
3614 wxIcon *result;
3615 PyObject * obj0 = 0 ;
3616 char *kwnames[] = {
3617 (char *) "bmp", NULL
3618 };
3619
3620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3622 SWIG_POINTER_EXCEPTION | 0)) == -1)
3623 SWIG_fail;
3624 if (arg1 == NULL) {
3625 PyErr_SetString(PyExc_TypeError,"null reference");
3626 SWIG_fail;
3627 }
3628 {
3629 if (!wxPyCheckForApp()) SWIG_fail;
3630 PyThreadState* __tstate = wxPyBeginAllowThreads();
3631 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3632
3633 wxPyEndAllowThreads(__tstate);
3634 if (PyErr_Occurred()) SWIG_fail;
3635 }
3636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3637 return resultobj;
3638 fail:
3639 return NULL;
3640 }
3641
3642
3643 static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3644 PyObject *resultobj;
3645 PyObject *arg1 = (PyObject *) 0 ;
3646 wxIcon *result;
3647 PyObject * obj0 = 0 ;
3648 char *kwnames[] = {
3649 (char *) "listOfStrings", NULL
3650 };
3651
3652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3653 arg1 = obj0;
3654 {
3655 if (!wxPyCheckForApp()) SWIG_fail;
3656 PyThreadState* __tstate = wxPyBeginAllowThreads();
3657 result = (wxIcon *)new_wxIcon(arg1);
3658
3659 wxPyEndAllowThreads(__tstate);
3660 if (PyErr_Occurred()) SWIG_fail;
3661 }
3662 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3663 return resultobj;
3664 fail:
3665 return NULL;
3666 }
3667
3668
3669 static PyObject *_wrap_Icon_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3670 PyObject *resultobj;
3671 wxIcon *arg1 = (wxIcon *) 0 ;
3672 wxString *arg2 = 0 ;
3673 int arg3 ;
3674 bool result;
3675 bool temp2 = False ;
3676 PyObject * obj0 = 0 ;
3677 PyObject * obj1 = 0 ;
3678 PyObject * obj2 = 0 ;
3679 char *kwnames[] = {
3680 (char *) "self",(char *) "name",(char *) "type", NULL
3681 };
3682
3683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3686 {
3687 arg2 = wxString_in_helper(obj1);
3688 if (arg2 == NULL) SWIG_fail;
3689 temp2 = True;
3690 }
3691 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3692 if (PyErr_Occurred()) SWIG_fail;
3693 {
3694 PyThreadState* __tstate = wxPyBeginAllowThreads();
3695 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3696
3697 wxPyEndAllowThreads(__tstate);
3698 if (PyErr_Occurred()) SWIG_fail;
3699 }
3700 {
3701 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3702 }
3703 {
3704 if (temp2)
3705 delete arg2;
3706 }
3707 return resultobj;
3708 fail:
3709 {
3710 if (temp2)
3711 delete arg2;
3712 }
3713 return NULL;
3714 }
3715
3716
3717 static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3718 PyObject *resultobj;
3719 wxIcon *arg1 = (wxIcon *) 0 ;
3720 bool result;
3721 PyObject * obj0 = 0 ;
3722 char *kwnames[] = {
3723 (char *) "self", NULL
3724 };
3725
3726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3729 {
3730 PyThreadState* __tstate = wxPyBeginAllowThreads();
3731 result = (bool)(arg1)->Ok();
3732
3733 wxPyEndAllowThreads(__tstate);
3734 if (PyErr_Occurred()) SWIG_fail;
3735 }
3736 {
3737 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3738 }
3739 return resultobj;
3740 fail:
3741 return NULL;
3742 }
3743
3744
3745 static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3746 PyObject *resultobj;
3747 wxIcon *arg1 = (wxIcon *) 0 ;
3748 int result;
3749 PyObject * obj0 = 0 ;
3750 char *kwnames[] = {
3751 (char *) "self", NULL
3752 };
3753
3754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3757 {
3758 PyThreadState* __tstate = wxPyBeginAllowThreads();
3759 result = (int)(arg1)->GetWidth();
3760
3761 wxPyEndAllowThreads(__tstate);
3762 if (PyErr_Occurred()) SWIG_fail;
3763 }
3764 resultobj = SWIG_FromInt((int)result);
3765 return resultobj;
3766 fail:
3767 return NULL;
3768 }
3769
3770
3771 static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3772 PyObject *resultobj;
3773 wxIcon *arg1 = (wxIcon *) 0 ;
3774 int result;
3775 PyObject * obj0 = 0 ;
3776 char *kwnames[] = {
3777 (char *) "self", NULL
3778 };
3779
3780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3783 {
3784 PyThreadState* __tstate = wxPyBeginAllowThreads();
3785 result = (int)(arg1)->GetHeight();
3786
3787 wxPyEndAllowThreads(__tstate);
3788 if (PyErr_Occurred()) SWIG_fail;
3789 }
3790 resultobj = SWIG_FromInt((int)result);
3791 return resultobj;
3792 fail:
3793 return NULL;
3794 }
3795
3796
3797 static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3798 PyObject *resultobj;
3799 wxIcon *arg1 = (wxIcon *) 0 ;
3800 int result;
3801 PyObject * obj0 = 0 ;
3802 char *kwnames[] = {
3803 (char *) "self", NULL
3804 };
3805
3806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3809 {
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 result = (int)(arg1)->GetDepth();
3812
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 resultobj = SWIG_FromInt((int)result);
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3824 PyObject *resultobj;
3825 wxIcon *arg1 = (wxIcon *) 0 ;
3826 int arg2 ;
3827 PyObject * obj0 = 0 ;
3828 PyObject * obj1 = 0 ;
3829 char *kwnames[] = {
3830 (char *) "self",(char *) "w", NULL
3831 };
3832
3833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3836 arg2 = (int) SWIG_AsInt(obj1);
3837 if (PyErr_Occurred()) SWIG_fail;
3838 {
3839 PyThreadState* __tstate = wxPyBeginAllowThreads();
3840 (arg1)->SetWidth(arg2);
3841
3842 wxPyEndAllowThreads(__tstate);
3843 if (PyErr_Occurred()) SWIG_fail;
3844 }
3845 Py_INCREF(Py_None); resultobj = Py_None;
3846 return resultobj;
3847 fail:
3848 return NULL;
3849 }
3850
3851
3852 static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3853 PyObject *resultobj;
3854 wxIcon *arg1 = (wxIcon *) 0 ;
3855 int arg2 ;
3856 PyObject * obj0 = 0 ;
3857 PyObject * obj1 = 0 ;
3858 char *kwnames[] = {
3859 (char *) "self",(char *) "h", NULL
3860 };
3861
3862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3865 arg2 = (int) SWIG_AsInt(obj1);
3866 if (PyErr_Occurred()) SWIG_fail;
3867 {
3868 PyThreadState* __tstate = wxPyBeginAllowThreads();
3869 (arg1)->SetHeight(arg2);
3870
3871 wxPyEndAllowThreads(__tstate);
3872 if (PyErr_Occurred()) SWIG_fail;
3873 }
3874 Py_INCREF(Py_None); resultobj = Py_None;
3875 return resultobj;
3876 fail:
3877 return NULL;
3878 }
3879
3880
3881 static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3882 PyObject *resultobj;
3883 wxIcon *arg1 = (wxIcon *) 0 ;
3884 int arg2 ;
3885 PyObject * obj0 = 0 ;
3886 PyObject * obj1 = 0 ;
3887 char *kwnames[] = {
3888 (char *) "self",(char *) "d", NULL
3889 };
3890
3891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3894 arg2 = (int) SWIG_AsInt(obj1);
3895 if (PyErr_Occurred()) SWIG_fail;
3896 {
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 (arg1)->SetDepth(arg2);
3899
3900 wxPyEndAllowThreads(__tstate);
3901 if (PyErr_Occurred()) SWIG_fail;
3902 }
3903 Py_INCREF(Py_None); resultobj = Py_None;
3904 return resultobj;
3905 fail:
3906 return NULL;
3907 }
3908
3909
3910 static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3911 PyObject *resultobj;
3912 wxIcon *arg1 = (wxIcon *) 0 ;
3913 wxBitmap *arg2 = 0 ;
3914 PyObject * obj0 = 0 ;
3915 PyObject * obj1 = 0 ;
3916 char *kwnames[] = {
3917 (char *) "self",(char *) "bmp", NULL
3918 };
3919
3920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3923 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3924 SWIG_POINTER_EXCEPTION | 0)) == -1)
3925 SWIG_fail;
3926 if (arg2 == NULL) {
3927 PyErr_SetString(PyExc_TypeError,"null reference");
3928 SWIG_fail;
3929 }
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3933
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 Py_INCREF(Py_None); resultobj = Py_None;
3938 return resultobj;
3939 fail:
3940 return NULL;
3941 }
3942
3943
3944 static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3945 PyObject *obj;
3946 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3947 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3948 Py_INCREF(obj);
3949 return Py_BuildValue((char *)"");
3950 }
3951 static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3952 PyObject *resultobj;
3953 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3954 int arg2 = (int) 0 ;
3955 wxIconLocation *result;
3956 bool temp1 = False ;
3957 PyObject * obj0 = 0 ;
3958 PyObject * obj1 = 0 ;
3959 char *kwnames[] = {
3960 (char *) "filename",(char *) "num", NULL
3961 };
3962
3963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3964 if (obj0) {
3965 {
3966 arg1 = wxString_in_helper(obj0);
3967 if (arg1 == NULL) SWIG_fail;
3968 temp1 = True;
3969 }
3970 }
3971 if (obj1) {
3972 arg2 = (int) SWIG_AsInt(obj1);
3973 if (PyErr_Occurred()) SWIG_fail;
3974 }
3975 {
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3978
3979 wxPyEndAllowThreads(__tstate);
3980 if (PyErr_Occurred()) SWIG_fail;
3981 }
3982 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3983 {
3984 if (temp1)
3985 delete arg1;
3986 }
3987 return resultobj;
3988 fail:
3989 {
3990 if (temp1)
3991 delete arg1;
3992 }
3993 return NULL;
3994 }
3995
3996
3997 static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3998 PyObject *resultobj;
3999 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4000 PyObject * obj0 = 0 ;
4001 char *kwnames[] = {
4002 (char *) "self", NULL
4003 };
4004
4005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
4006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4008 {
4009 PyThreadState* __tstate = wxPyBeginAllowThreads();
4010 delete arg1;
4011
4012 wxPyEndAllowThreads(__tstate);
4013 if (PyErr_Occurred()) SWIG_fail;
4014 }
4015 Py_INCREF(Py_None); resultobj = Py_None;
4016 return resultobj;
4017 fail:
4018 return NULL;
4019 }
4020
4021
4022 static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4023 PyObject *resultobj;
4024 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4025 bool result;
4026 PyObject * obj0 = 0 ;
4027 char *kwnames[] = {
4028 (char *) "self", NULL
4029 };
4030
4031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4034 {
4035 PyThreadState* __tstate = wxPyBeginAllowThreads();
4036 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4037
4038 wxPyEndAllowThreads(__tstate);
4039 if (PyErr_Occurred()) SWIG_fail;
4040 }
4041 {
4042 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4043 }
4044 return resultobj;
4045 fail:
4046 return NULL;
4047 }
4048
4049
4050 static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4051 PyObject *resultobj;
4052 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4053 wxString *arg2 = 0 ;
4054 bool temp2 = False ;
4055 PyObject * obj0 = 0 ;
4056 PyObject * obj1 = 0 ;
4057 char *kwnames[] = {
4058 (char *) "self",(char *) "filename", NULL
4059 };
4060
4061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4064 {
4065 arg2 = wxString_in_helper(obj1);
4066 if (arg2 == NULL) SWIG_fail;
4067 temp2 = True;
4068 }
4069 {
4070 PyThreadState* __tstate = wxPyBeginAllowThreads();
4071 (arg1)->SetFileName((wxString const &)*arg2);
4072
4073 wxPyEndAllowThreads(__tstate);
4074 if (PyErr_Occurred()) SWIG_fail;
4075 }
4076 Py_INCREF(Py_None); resultobj = Py_None;
4077 {
4078 if (temp2)
4079 delete arg2;
4080 }
4081 return resultobj;
4082 fail:
4083 {
4084 if (temp2)
4085 delete arg2;
4086 }
4087 return NULL;
4088 }
4089
4090
4091 static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4092 PyObject *resultobj;
4093 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4094 wxString *result;
4095 PyObject * obj0 = 0 ;
4096 char *kwnames[] = {
4097 (char *) "self", NULL
4098 };
4099
4100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4103 {
4104 PyThreadState* __tstate = wxPyBeginAllowThreads();
4105 {
4106 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4107 result = (wxString *) &_result_ref;
4108 }
4109
4110 wxPyEndAllowThreads(__tstate);
4111 if (PyErr_Occurred()) SWIG_fail;
4112 }
4113 {
4114 #if wxUSE_UNICODE
4115 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4116 #else
4117 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4118 #endif
4119 }
4120 return resultobj;
4121 fail:
4122 return NULL;
4123 }
4124
4125
4126 static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4127 PyObject *resultobj;
4128 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4129 int arg2 ;
4130 PyObject * obj0 = 0 ;
4131 PyObject * obj1 = 0 ;
4132 char *kwnames[] = {
4133 (char *) "self",(char *) "num", NULL
4134 };
4135
4136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4139 arg2 = (int) SWIG_AsInt(obj1);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 {
4142 PyThreadState* __tstate = wxPyBeginAllowThreads();
4143 wxIconLocation_SetIndex(arg1,arg2);
4144
4145 wxPyEndAllowThreads(__tstate);
4146 if (PyErr_Occurred()) SWIG_fail;
4147 }
4148 Py_INCREF(Py_None); resultobj = Py_None;
4149 return resultobj;
4150 fail:
4151 return NULL;
4152 }
4153
4154
4155 static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4156 PyObject *resultobj;
4157 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4158 int result;
4159 PyObject * obj0 = 0 ;
4160 char *kwnames[] = {
4161 (char *) "self", NULL
4162 };
4163
4164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4167 {
4168 PyThreadState* __tstate = wxPyBeginAllowThreads();
4169 result = (int)wxIconLocation_GetIndex(arg1);
4170
4171 wxPyEndAllowThreads(__tstate);
4172 if (PyErr_Occurred()) SWIG_fail;
4173 }
4174 resultobj = SWIG_FromInt((int)result);
4175 return resultobj;
4176 fail:
4177 return NULL;
4178 }
4179
4180
4181 static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4182 PyObject *obj;
4183 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4184 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4185 Py_INCREF(obj);
4186 return Py_BuildValue((char *)"");
4187 }
4188 static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4189 PyObject *resultobj;
4190 wxIconBundle *result;
4191 char *kwnames[] = {
4192 NULL
4193 };
4194
4195 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4196 {
4197 PyThreadState* __tstate = wxPyBeginAllowThreads();
4198 result = (wxIconBundle *)new wxIconBundle();
4199
4200 wxPyEndAllowThreads(__tstate);
4201 if (PyErr_Occurred()) SWIG_fail;
4202 }
4203 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4204 return resultobj;
4205 fail:
4206 return NULL;
4207 }
4208
4209
4210 static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4211 PyObject *resultobj;
4212 wxString *arg1 = 0 ;
4213 long arg2 ;
4214 wxIconBundle *result;
4215 bool temp1 = False ;
4216 PyObject * obj0 = 0 ;
4217 PyObject * obj1 = 0 ;
4218 char *kwnames[] = {
4219 (char *) "file",(char *) "type", NULL
4220 };
4221
4222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4223 {
4224 arg1 = wxString_in_helper(obj0);
4225 if (arg1 == NULL) SWIG_fail;
4226 temp1 = True;
4227 }
4228 arg2 = (long) SWIG_AsLong(obj1);
4229 if (PyErr_Occurred()) SWIG_fail;
4230 {
4231 PyThreadState* __tstate = wxPyBeginAllowThreads();
4232 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4233
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4238 {
4239 if (temp1)
4240 delete arg1;
4241 }
4242 return resultobj;
4243 fail:
4244 {
4245 if (temp1)
4246 delete arg1;
4247 }
4248 return NULL;
4249 }
4250
4251
4252 static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4253 PyObject *resultobj;
4254 wxIcon *arg1 = 0 ;
4255 wxIconBundle *result;
4256 PyObject * obj0 = 0 ;
4257 char *kwnames[] = {
4258 (char *) "icon", NULL
4259 };
4260
4261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4263 SWIG_POINTER_EXCEPTION | 0)) == -1)
4264 SWIG_fail;
4265 if (arg1 == NULL) {
4266 PyErr_SetString(PyExc_TypeError,"null reference");
4267 SWIG_fail;
4268 }
4269 {
4270 PyThreadState* __tstate = wxPyBeginAllowThreads();
4271 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4272
4273 wxPyEndAllowThreads(__tstate);
4274 if (PyErr_Occurred()) SWIG_fail;
4275 }
4276 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4277 return resultobj;
4278 fail:
4279 return NULL;
4280 }
4281
4282
4283 static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4284 PyObject *resultobj;
4285 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4286 PyObject * obj0 = 0 ;
4287 char *kwnames[] = {
4288 (char *) "self", NULL
4289 };
4290
4291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 delete arg1;
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 Py_INCREF(Py_None); resultobj = Py_None;
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4309 PyObject *resultobj;
4310 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4311 wxIcon *arg2 = 0 ;
4312 PyObject * obj0 = 0 ;
4313 PyObject * obj1 = 0 ;
4314 char *kwnames[] = {
4315 (char *) "self",(char *) "icon", NULL
4316 };
4317
4318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4321 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4322 SWIG_POINTER_EXCEPTION | 0)) == -1)
4323 SWIG_fail;
4324 if (arg2 == NULL) {
4325 PyErr_SetString(PyExc_TypeError,"null reference");
4326 SWIG_fail;
4327 }
4328 {
4329 PyThreadState* __tstate = wxPyBeginAllowThreads();
4330 (arg1)->AddIcon((wxIcon const &)*arg2);
4331
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 Py_INCREF(Py_None); resultobj = Py_None;
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj;
4344 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4345 wxString *arg2 = 0 ;
4346 long arg3 ;
4347 bool temp2 = False ;
4348 PyObject * obj0 = 0 ;
4349 PyObject * obj1 = 0 ;
4350 PyObject * obj2 = 0 ;
4351 char *kwnames[] = {
4352 (char *) "self",(char *) "file",(char *) "type", NULL
4353 };
4354
4355 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4356 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4357 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4358 {
4359 arg2 = wxString_in_helper(obj1);
4360 if (arg2 == NULL) SWIG_fail;
4361 temp2 = True;
4362 }
4363 arg3 = (long) SWIG_AsLong(obj2);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 {
4366 PyThreadState* __tstate = wxPyBeginAllowThreads();
4367 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4368
4369 wxPyEndAllowThreads(__tstate);
4370 if (PyErr_Occurred()) SWIG_fail;
4371 }
4372 Py_INCREF(Py_None); resultobj = Py_None;
4373 {
4374 if (temp2)
4375 delete arg2;
4376 }
4377 return resultobj;
4378 fail:
4379 {
4380 if (temp2)
4381 delete arg2;
4382 }
4383 return NULL;
4384 }
4385
4386
4387 static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4388 PyObject *resultobj;
4389 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4390 wxSize *arg2 = 0 ;
4391 wxIcon *result;
4392 wxSize temp2 ;
4393 PyObject * obj0 = 0 ;
4394 PyObject * obj1 = 0 ;
4395 char *kwnames[] = {
4396 (char *) "self",(char *) "size", NULL
4397 };
4398
4399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4402 {
4403 arg2 = &temp2;
4404 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4405 }
4406 {
4407 PyThreadState* __tstate = wxPyBeginAllowThreads();
4408 {
4409 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4410 result = (wxIcon *) &_result_ref;
4411 }
4412
4413 wxPyEndAllowThreads(__tstate);
4414 if (PyErr_Occurred()) SWIG_fail;
4415 }
4416 {
4417 wxIcon* resultptr = new wxIcon(*result);
4418 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4419 }
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4427 PyObject *obj;
4428 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4429 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4430 Py_INCREF(obj);
4431 return Py_BuildValue((char *)"");
4432 }
4433 static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4434 PyObject *resultobj;
4435 wxString *arg1 = (wxString *) 0 ;
4436 long arg2 ;
4437 int arg3 = (int) 0 ;
4438 int arg4 = (int) 0 ;
4439 wxCursor *result;
4440 bool temp1 = False ;
4441 PyObject * obj0 = 0 ;
4442 PyObject * obj1 = 0 ;
4443 PyObject * obj2 = 0 ;
4444 PyObject * obj3 = 0 ;
4445 char *kwnames[] = {
4446 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4447 };
4448
4449 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4450 {
4451 arg1 = wxString_in_helper(obj0);
4452 if (arg1 == NULL) SWIG_fail;
4453 temp1 = True;
4454 }
4455 arg2 = (long) SWIG_AsLong(obj1);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 if (obj2) {
4458 arg3 = (int) SWIG_AsInt(obj2);
4459 if (PyErr_Occurred()) SWIG_fail;
4460 }
4461 if (obj3) {
4462 arg4 = (int) SWIG_AsInt(obj3);
4463 if (PyErr_Occurred()) SWIG_fail;
4464 }
4465 {
4466 if (!wxPyCheckForApp()) SWIG_fail;
4467 PyThreadState* __tstate = wxPyBeginAllowThreads();
4468 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4469
4470 wxPyEndAllowThreads(__tstate);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4474 {
4475 if (temp1)
4476 delete arg1;
4477 }
4478 return resultobj;
4479 fail:
4480 {
4481 if (temp1)
4482 delete arg1;
4483 }
4484 return NULL;
4485 }
4486
4487
4488 static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj;
4490 wxCursor *arg1 = (wxCursor *) 0 ;
4491 PyObject * obj0 = 0 ;
4492 char *kwnames[] = {
4493 (char *) "self", NULL
4494 };
4495
4496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4499 {
4500 PyThreadState* __tstate = wxPyBeginAllowThreads();
4501 delete arg1;
4502
4503 wxPyEndAllowThreads(__tstate);
4504 if (PyErr_Occurred()) SWIG_fail;
4505 }
4506 Py_INCREF(Py_None); resultobj = Py_None;
4507 return resultobj;
4508 fail:
4509 return NULL;
4510 }
4511
4512
4513 static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4514 PyObject *resultobj;
4515 int arg1 ;
4516 wxCursor *result;
4517 PyObject * obj0 = 0 ;
4518 char *kwnames[] = {
4519 (char *) "id", NULL
4520 };
4521
4522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4523 arg1 = (int) SWIG_AsInt(obj0);
4524 if (PyErr_Occurred()) SWIG_fail;
4525 {
4526 if (!wxPyCheckForApp()) SWIG_fail;
4527 PyThreadState* __tstate = wxPyBeginAllowThreads();
4528 result = (wxCursor *)new wxCursor(arg1);
4529
4530 wxPyEndAllowThreads(__tstate);
4531 if (PyErr_Occurred()) SWIG_fail;
4532 }
4533 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4534 return resultobj;
4535 fail:
4536 return NULL;
4537 }
4538
4539
4540 static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4541 PyObject *resultobj;
4542 wxImage *arg1 = 0 ;
4543 wxCursor *result;
4544 PyObject * obj0 = 0 ;
4545 char *kwnames[] = {
4546 (char *) "image", NULL
4547 };
4548
4549 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4550 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4551 SWIG_POINTER_EXCEPTION | 0)) == -1)
4552 SWIG_fail;
4553 if (arg1 == NULL) {
4554 PyErr_SetString(PyExc_TypeError,"null reference");
4555 SWIG_fail;
4556 }
4557 {
4558 if (!wxPyCheckForApp()) SWIG_fail;
4559 PyThreadState* __tstate = wxPyBeginAllowThreads();
4560 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4561
4562 wxPyEndAllowThreads(__tstate);
4563 if (PyErr_Occurred()) SWIG_fail;
4564 }
4565 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4566 return resultobj;
4567 fail:
4568 return NULL;
4569 }
4570
4571
4572 static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4573 PyObject *resultobj;
4574 wxCursor *arg1 = (wxCursor *) 0 ;
4575 bool result;
4576 PyObject * obj0 = 0 ;
4577 char *kwnames[] = {
4578 (char *) "self", NULL
4579 };
4580
4581 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4582 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4583 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4584 {
4585 PyThreadState* __tstate = wxPyBeginAllowThreads();
4586 result = (bool)(arg1)->Ok();
4587
4588 wxPyEndAllowThreads(__tstate);
4589 if (PyErr_Occurred()) SWIG_fail;
4590 }
4591 {
4592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4593 }
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4601 PyObject *obj;
4602 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4603 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4604 Py_INCREF(obj);
4605 return Py_BuildValue((char *)"");
4606 }
4607 static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4608 PyObject *resultobj;
4609 int arg1 = (int) 0 ;
4610 int arg2 = (int) 0 ;
4611 int arg3 = (int) 0 ;
4612 int arg4 = (int) 0 ;
4613 wxRegion *result;
4614 PyObject * obj0 = 0 ;
4615 PyObject * obj1 = 0 ;
4616 PyObject * obj2 = 0 ;
4617 PyObject * obj3 = 0 ;
4618 char *kwnames[] = {
4619 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4620 };
4621
4622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4623 if (obj0) {
4624 arg1 = (int) SWIG_AsInt(obj0);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 if (obj1) {
4628 arg2 = (int) SWIG_AsInt(obj1);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 if (obj2) {
4632 arg3 = (int) SWIG_AsInt(obj2);
4633 if (PyErr_Occurred()) SWIG_fail;
4634 }
4635 if (obj3) {
4636 arg4 = (int) SWIG_AsInt(obj3);
4637 if (PyErr_Occurred()) SWIG_fail;
4638 }
4639 {
4640 if (!wxPyCheckForApp()) SWIG_fail;
4641 PyThreadState* __tstate = wxPyBeginAllowThreads();
4642 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4643
4644 wxPyEndAllowThreads(__tstate);
4645 if (PyErr_Occurred()) SWIG_fail;
4646 }
4647 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4648 return resultobj;
4649 fail:
4650 return NULL;
4651 }
4652
4653
4654 static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4655 PyObject *resultobj;
4656 wxBitmap *arg1 = 0 ;
4657 wxColour const &arg2_defvalue = wxNullColour ;
4658 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
4659 int arg3 = (int) 0 ;
4660 wxRegion *result;
4661 wxColour temp2 ;
4662 PyObject * obj0 = 0 ;
4663 PyObject * obj1 = 0 ;
4664 PyObject * obj2 = 0 ;
4665 char *kwnames[] = {
4666 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4667 };
4668
4669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_RegionFromBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
4670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4671 SWIG_POINTER_EXCEPTION | 0)) == -1)
4672 SWIG_fail;
4673 if (arg1 == NULL) {
4674 PyErr_SetString(PyExc_TypeError,"null reference");
4675 SWIG_fail;
4676 }
4677 if (obj1) {
4678 {
4679 arg2 = &temp2;
4680 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4681 }
4682 }
4683 if (obj2) {
4684 arg3 = (int) SWIG_AsInt(obj2);
4685 if (PyErr_Occurred()) SWIG_fail;
4686 }
4687 {
4688 if (!wxPyCheckForApp()) SWIG_fail;
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4691
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4696 return resultobj;
4697 fail:
4698 return NULL;
4699 }
4700
4701
4702 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4703 PyObject *resultobj;
4704 int arg1 ;
4705 wxPoint *arg2 = (wxPoint *) 0 ;
4706 int arg3 = (int) wxWINDING_RULE ;
4707 wxRegion *result;
4708 PyObject * obj0 = 0 ;
4709 PyObject * obj1 = 0 ;
4710 char *kwnames[] = {
4711 (char *) "points",(char *) "fillStyle", NULL
4712 };
4713
4714 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4715 {
4716 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4717 if (arg2 == NULL) SWIG_fail;
4718 }
4719 if (obj1) {
4720 arg3 = (int) SWIG_AsInt(obj1);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 {
4724 if (!wxPyCheckForApp()) SWIG_fail;
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4727
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4732 {
4733 if (arg2) delete [] arg2;
4734 }
4735 return resultobj;
4736 fail:
4737 {
4738 if (arg2) delete [] arg2;
4739 }
4740 return NULL;
4741 }
4742
4743
4744 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4745 PyObject *resultobj;
4746 wxRegion *arg1 = (wxRegion *) 0 ;
4747 PyObject * obj0 = 0 ;
4748 char *kwnames[] = {
4749 (char *) "self", NULL
4750 };
4751
4752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4755 {
4756 PyThreadState* __tstate = wxPyBeginAllowThreads();
4757 delete arg1;
4758
4759 wxPyEndAllowThreads(__tstate);
4760 if (PyErr_Occurred()) SWIG_fail;
4761 }
4762 Py_INCREF(Py_None); resultobj = Py_None;
4763 return resultobj;
4764 fail:
4765 return NULL;
4766 }
4767
4768
4769 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4770 PyObject *resultobj;
4771 wxRegion *arg1 = (wxRegion *) 0 ;
4772 PyObject * obj0 = 0 ;
4773 char *kwnames[] = {
4774 (char *) "self", NULL
4775 };
4776
4777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4780 {
4781 PyThreadState* __tstate = wxPyBeginAllowThreads();
4782 (arg1)->Clear();
4783
4784 wxPyEndAllowThreads(__tstate);
4785 if (PyErr_Occurred()) SWIG_fail;
4786 }
4787 Py_INCREF(Py_None); resultobj = Py_None;
4788 return resultobj;
4789 fail:
4790 return NULL;
4791 }
4792
4793
4794 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4795 PyObject *resultobj;
4796 wxRegion *arg1 = (wxRegion *) 0 ;
4797 int arg2 ;
4798 int arg3 ;
4799 bool result;
4800 PyObject * obj0 = 0 ;
4801 PyObject * obj1 = 0 ;
4802 PyObject * obj2 = 0 ;
4803 char *kwnames[] = {
4804 (char *) "self",(char *) "x",(char *) "y", NULL
4805 };
4806
4807 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4808 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4809 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4810 arg2 = (int) SWIG_AsInt(obj1);
4811 if (PyErr_Occurred()) SWIG_fail;
4812 arg3 = (int) SWIG_AsInt(obj2);
4813 if (PyErr_Occurred()) SWIG_fail;
4814 {
4815 PyThreadState* __tstate = wxPyBeginAllowThreads();
4816 result = (bool)(arg1)->Offset(arg2,arg3);
4817
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 {
4822 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4823 }
4824 return resultobj;
4825 fail:
4826 return NULL;
4827 }
4828
4829
4830 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4831 PyObject *resultobj;
4832 wxRegion *arg1 = (wxRegion *) 0 ;
4833 int arg2 ;
4834 int arg3 ;
4835 int result;
4836 PyObject * obj0 = 0 ;
4837 PyObject * obj1 = 0 ;
4838 PyObject * obj2 = 0 ;
4839 char *kwnames[] = {
4840 (char *) "self",(char *) "x",(char *) "y", NULL
4841 };
4842
4843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4846 arg2 = (int) SWIG_AsInt(obj1);
4847 if (PyErr_Occurred()) SWIG_fail;
4848 arg3 = (int) SWIG_AsInt(obj2);
4849 if (PyErr_Occurred()) SWIG_fail;
4850 {
4851 PyThreadState* __tstate = wxPyBeginAllowThreads();
4852 result = (int)(arg1)->Contains(arg2,arg3);
4853
4854 wxPyEndAllowThreads(__tstate);
4855 if (PyErr_Occurred()) SWIG_fail;
4856 }
4857 resultobj = SWIG_FromInt((int)result);
4858 return resultobj;
4859 fail:
4860 return NULL;
4861 }
4862
4863
4864 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4865 PyObject *resultobj;
4866 wxRegion *arg1 = (wxRegion *) 0 ;
4867 wxPoint *arg2 = 0 ;
4868 int result;
4869 wxPoint temp2 ;
4870 PyObject * obj0 = 0 ;
4871 PyObject * obj1 = 0 ;
4872 char *kwnames[] = {
4873 (char *) "self",(char *) "pt", NULL
4874 };
4875
4876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4879 {
4880 arg2 = &temp2;
4881 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4882 }
4883 {
4884 PyThreadState* __tstate = wxPyBeginAllowThreads();
4885 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4886
4887 wxPyEndAllowThreads(__tstate);
4888 if (PyErr_Occurred()) SWIG_fail;
4889 }
4890 resultobj = SWIG_FromInt((int)result);
4891 return resultobj;
4892 fail:
4893 return NULL;
4894 }
4895
4896
4897 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4898 PyObject *resultobj;
4899 wxRegion *arg1 = (wxRegion *) 0 ;
4900 wxRect *arg2 = 0 ;
4901 int result;
4902 wxRect temp2 ;
4903 PyObject * obj0 = 0 ;
4904 PyObject * obj1 = 0 ;
4905 char *kwnames[] = {
4906 (char *) "self",(char *) "rect", NULL
4907 };
4908
4909 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4910 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4911 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4912 {
4913 arg2 = &temp2;
4914 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4915 }
4916 {
4917 PyThreadState* __tstate = wxPyBeginAllowThreads();
4918 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4919
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 resultobj = SWIG_FromInt((int)result);
4924 return resultobj;
4925 fail:
4926 return NULL;
4927 }
4928
4929
4930 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4931 PyObject *resultobj;
4932 wxRegion *arg1 = (wxRegion *) 0 ;
4933 int arg2 ;
4934 int arg3 ;
4935 int arg4 ;
4936 int arg5 ;
4937 int result;
4938 PyObject * obj0 = 0 ;
4939 PyObject * obj1 = 0 ;
4940 PyObject * obj2 = 0 ;
4941 PyObject * obj3 = 0 ;
4942 PyObject * obj4 = 0 ;
4943 char *kwnames[] = {
4944 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4945 };
4946
4947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4950 arg2 = (int) SWIG_AsInt(obj1);
4951 if (PyErr_Occurred()) SWIG_fail;
4952 arg3 = (int) SWIG_AsInt(obj2);
4953 if (PyErr_Occurred()) SWIG_fail;
4954 arg4 = (int) SWIG_AsInt(obj3);
4955 if (PyErr_Occurred()) SWIG_fail;
4956 arg5 = (int) SWIG_AsInt(obj4);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4961
4962 wxPyEndAllowThreads(__tstate);
4963 if (PyErr_Occurred()) SWIG_fail;
4964 }
4965 resultobj = SWIG_FromInt((int)result);
4966 return resultobj;
4967 fail:
4968 return NULL;
4969 }
4970
4971
4972 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4973 PyObject *resultobj;
4974 wxRegion *arg1 = (wxRegion *) 0 ;
4975 wxRect result;
4976 PyObject * obj0 = 0 ;
4977 char *kwnames[] = {
4978 (char *) "self", NULL
4979 };
4980
4981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4984 {
4985 PyThreadState* __tstate = wxPyBeginAllowThreads();
4986 result = (arg1)->GetBox();
4987
4988 wxPyEndAllowThreads(__tstate);
4989 if (PyErr_Occurred()) SWIG_fail;
4990 }
4991 {
4992 wxRect * resultptr;
4993 resultptr = new wxRect((wxRect &) result);
4994 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4995 }
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj;
5004 wxRegion *arg1 = (wxRegion *) 0 ;
5005 int arg2 ;
5006 int arg3 ;
5007 int arg4 ;
5008 int arg5 ;
5009 bool result;
5010 PyObject * obj0 = 0 ;
5011 PyObject * obj1 = 0 ;
5012 PyObject * obj2 = 0 ;
5013 PyObject * obj3 = 0 ;
5014 PyObject * obj4 = 0 ;
5015 char *kwnames[] = {
5016 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5017 };
5018
5019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5020 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5021 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5022 arg2 = (int) SWIG_AsInt(obj1);
5023 if (PyErr_Occurred()) SWIG_fail;
5024 arg3 = (int) SWIG_AsInt(obj2);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 arg4 = (int) SWIG_AsInt(obj3);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 arg5 = (int) SWIG_AsInt(obj4);
5029 if (PyErr_Occurred()) SWIG_fail;
5030 {
5031 PyThreadState* __tstate = wxPyBeginAllowThreads();
5032 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5033
5034 wxPyEndAllowThreads(__tstate);
5035 if (PyErr_Occurred()) SWIG_fail;
5036 }
5037 {
5038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5039 }
5040 return resultobj;
5041 fail:
5042 return NULL;
5043 }
5044
5045
5046 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5047 PyObject *resultobj;
5048 wxRegion *arg1 = (wxRegion *) 0 ;
5049 wxRect *arg2 = 0 ;
5050 bool result;
5051 wxRect temp2 ;
5052 PyObject * obj0 = 0 ;
5053 PyObject * obj1 = 0 ;
5054 char *kwnames[] = {
5055 (char *) "self",(char *) "rect", NULL
5056 };
5057
5058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5061 {
5062 arg2 = &temp2;
5063 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5064 }
5065 {
5066 PyThreadState* __tstate = wxPyBeginAllowThreads();
5067 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5068
5069 wxPyEndAllowThreads(__tstate);
5070 if (PyErr_Occurred()) SWIG_fail;
5071 }
5072 {
5073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5074 }
5075 return resultobj;
5076 fail:
5077 return NULL;
5078 }
5079
5080
5081 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5082 PyObject *resultobj;
5083 wxRegion *arg1 = (wxRegion *) 0 ;
5084 wxRegion *arg2 = 0 ;
5085 bool result;
5086 PyObject * obj0 = 0 ;
5087 PyObject * obj1 = 0 ;
5088 char *kwnames[] = {
5089 (char *) "self",(char *) "region", NULL
5090 };
5091
5092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5095 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5096 SWIG_POINTER_EXCEPTION | 0)) == -1)
5097 SWIG_fail;
5098 if (arg2 == NULL) {
5099 PyErr_SetString(PyExc_TypeError,"null reference");
5100 SWIG_fail;
5101 }
5102 {
5103 PyThreadState* __tstate = wxPyBeginAllowThreads();
5104 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5105
5106 wxPyEndAllowThreads(__tstate);
5107 if (PyErr_Occurred()) SWIG_fail;
5108 }
5109 {
5110 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5111 }
5112 return resultobj;
5113 fail:
5114 return NULL;
5115 }
5116
5117
5118 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5119 PyObject *resultobj;
5120 wxRegion *arg1 = (wxRegion *) 0 ;
5121 bool result;
5122 PyObject * obj0 = 0 ;
5123 char *kwnames[] = {
5124 (char *) "self", NULL
5125 };
5126
5127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5130 {
5131 PyThreadState* __tstate = wxPyBeginAllowThreads();
5132 result = (bool)(arg1)->IsEmpty();
5133
5134 wxPyEndAllowThreads(__tstate);
5135 if (PyErr_Occurred()) SWIG_fail;
5136 }
5137 {
5138 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5139 }
5140 return resultobj;
5141 fail:
5142 return NULL;
5143 }
5144
5145
5146 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5147 PyObject *resultobj;
5148 wxRegion *arg1 = (wxRegion *) 0 ;
5149 int arg2 ;
5150 int arg3 ;
5151 int arg4 ;
5152 int arg5 ;
5153 bool result;
5154 PyObject * obj0 = 0 ;
5155 PyObject * obj1 = 0 ;
5156 PyObject * obj2 = 0 ;
5157 PyObject * obj3 = 0 ;
5158 PyObject * obj4 = 0 ;
5159 char *kwnames[] = {
5160 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5161 };
5162
5163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5166 arg2 = (int) SWIG_AsInt(obj1);
5167 if (PyErr_Occurred()) SWIG_fail;
5168 arg3 = (int) SWIG_AsInt(obj2);
5169 if (PyErr_Occurred()) SWIG_fail;
5170 arg4 = (int) SWIG_AsInt(obj3);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 arg5 = (int) SWIG_AsInt(obj4);
5173 if (PyErr_Occurred()) SWIG_fail;
5174 {
5175 PyThreadState* __tstate = wxPyBeginAllowThreads();
5176 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5177
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 {
5182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5183 }
5184 return resultobj;
5185 fail:
5186 return NULL;
5187 }
5188
5189
5190 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5191 PyObject *resultobj;
5192 wxRegion *arg1 = (wxRegion *) 0 ;
5193 wxRect *arg2 = 0 ;
5194 bool result;
5195 wxRect temp2 ;
5196 PyObject * obj0 = 0 ;
5197 PyObject * obj1 = 0 ;
5198 char *kwnames[] = {
5199 (char *) "self",(char *) "rect", NULL
5200 };
5201
5202 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5203 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5204 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5205 {
5206 arg2 = &temp2;
5207 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5208 }
5209 {
5210 PyThreadState* __tstate = wxPyBeginAllowThreads();
5211 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5212
5213 wxPyEndAllowThreads(__tstate);
5214 if (PyErr_Occurred()) SWIG_fail;
5215 }
5216 {
5217 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5218 }
5219 return resultobj;
5220 fail:
5221 return NULL;
5222 }
5223
5224
5225 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5226 PyObject *resultobj;
5227 wxRegion *arg1 = (wxRegion *) 0 ;
5228 wxRegion *arg2 = 0 ;
5229 bool result;
5230 PyObject * obj0 = 0 ;
5231 PyObject * obj1 = 0 ;
5232 char *kwnames[] = {
5233 (char *) "self",(char *) "region", NULL
5234 };
5235
5236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5240 SWIG_POINTER_EXCEPTION | 0)) == -1)
5241 SWIG_fail;
5242 if (arg2 == NULL) {
5243 PyErr_SetString(PyExc_TypeError,"null reference");
5244 SWIG_fail;
5245 }
5246 {
5247 PyThreadState* __tstate = wxPyBeginAllowThreads();
5248 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5249
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 {
5254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5255 }
5256 return resultobj;
5257 fail:
5258 return NULL;
5259 }
5260
5261
5262 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5263 PyObject *resultobj;
5264 wxRegion *arg1 = (wxRegion *) 0 ;
5265 int arg2 ;
5266 int arg3 ;
5267 int arg4 ;
5268 int arg5 ;
5269 bool result;
5270 PyObject * obj0 = 0 ;
5271 PyObject * obj1 = 0 ;
5272 PyObject * obj2 = 0 ;
5273 PyObject * obj3 = 0 ;
5274 PyObject * obj4 = 0 ;
5275 char *kwnames[] = {
5276 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5277 };
5278
5279 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5280 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5281 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5282 arg2 = (int) SWIG_AsInt(obj1);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 arg3 = (int) SWIG_AsInt(obj2);
5285 if (PyErr_Occurred()) SWIG_fail;
5286 arg4 = (int) SWIG_AsInt(obj3);
5287 if (PyErr_Occurred()) SWIG_fail;
5288 arg5 = (int) SWIG_AsInt(obj4);
5289 if (PyErr_Occurred()) SWIG_fail;
5290 {
5291 PyThreadState* __tstate = wxPyBeginAllowThreads();
5292 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5293
5294 wxPyEndAllowThreads(__tstate);
5295 if (PyErr_Occurred()) SWIG_fail;
5296 }
5297 {
5298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5299 }
5300 return resultobj;
5301 fail:
5302 return NULL;
5303 }
5304
5305
5306 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5307 PyObject *resultobj;
5308 wxRegion *arg1 = (wxRegion *) 0 ;
5309 wxRect *arg2 = 0 ;
5310 bool result;
5311 wxRect temp2 ;
5312 PyObject * obj0 = 0 ;
5313 PyObject * obj1 = 0 ;
5314 char *kwnames[] = {
5315 (char *) "self",(char *) "rect", NULL
5316 };
5317
5318 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5319 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5320 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5321 {
5322 arg2 = &temp2;
5323 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5324 }
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5328
5329 wxPyEndAllowThreads(__tstate);
5330 if (PyErr_Occurred()) SWIG_fail;
5331 }
5332 {
5333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5334 }
5335 return resultobj;
5336 fail:
5337 return NULL;
5338 }
5339
5340
5341 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5342 PyObject *resultobj;
5343 wxRegion *arg1 = (wxRegion *) 0 ;
5344 wxRegion *arg2 = 0 ;
5345 bool result;
5346 PyObject * obj0 = 0 ;
5347 PyObject * obj1 = 0 ;
5348 char *kwnames[] = {
5349 (char *) "self",(char *) "region", NULL
5350 };
5351
5352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5355 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5356 SWIG_POINTER_EXCEPTION | 0)) == -1)
5357 SWIG_fail;
5358 if (arg2 == NULL) {
5359 PyErr_SetString(PyExc_TypeError,"null reference");
5360 SWIG_fail;
5361 }
5362 {
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5365
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 {
5370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5371 }
5372 return resultobj;
5373 fail:
5374 return NULL;
5375 }
5376
5377
5378 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5379 PyObject *resultobj;
5380 wxRegion *arg1 = (wxRegion *) 0 ;
5381 int arg2 ;
5382 int arg3 ;
5383 int arg4 ;
5384 int arg5 ;
5385 bool result;
5386 PyObject * obj0 = 0 ;
5387 PyObject * obj1 = 0 ;
5388 PyObject * obj2 = 0 ;
5389 PyObject * obj3 = 0 ;
5390 PyObject * obj4 = 0 ;
5391 char *kwnames[] = {
5392 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5393 };
5394
5395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5398 arg2 = (int) SWIG_AsInt(obj1);
5399 if (PyErr_Occurred()) SWIG_fail;
5400 arg3 = (int) SWIG_AsInt(obj2);
5401 if (PyErr_Occurred()) SWIG_fail;
5402 arg4 = (int) SWIG_AsInt(obj3);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 arg5 = (int) SWIG_AsInt(obj4);
5405 if (PyErr_Occurred()) SWIG_fail;
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 {
5414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5415 }
5416 return resultobj;
5417 fail:
5418 return NULL;
5419 }
5420
5421
5422 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5423 PyObject *resultobj;
5424 wxRegion *arg1 = (wxRegion *) 0 ;
5425 wxRect *arg2 = 0 ;
5426 bool result;
5427 wxRect temp2 ;
5428 PyObject * obj0 = 0 ;
5429 PyObject * obj1 = 0 ;
5430 char *kwnames[] = {
5431 (char *) "self",(char *) "rect", NULL
5432 };
5433
5434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5437 {
5438 arg2 = &temp2;
5439 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5440 }
5441 {
5442 PyThreadState* __tstate = wxPyBeginAllowThreads();
5443 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5444
5445 wxPyEndAllowThreads(__tstate);
5446 if (PyErr_Occurred()) SWIG_fail;
5447 }
5448 {
5449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5450 }
5451 return resultobj;
5452 fail:
5453 return NULL;
5454 }
5455
5456
5457 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5458 PyObject *resultobj;
5459 wxRegion *arg1 = (wxRegion *) 0 ;
5460 wxRegion *arg2 = 0 ;
5461 bool result;
5462 PyObject * obj0 = 0 ;
5463 PyObject * obj1 = 0 ;
5464 char *kwnames[] = {
5465 (char *) "self",(char *) "region", NULL
5466 };
5467
5468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5471 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5472 SWIG_POINTER_EXCEPTION | 0)) == -1)
5473 SWIG_fail;
5474 if (arg2 == NULL) {
5475 PyErr_SetString(PyExc_TypeError,"null reference");
5476 SWIG_fail;
5477 }
5478 {
5479 PyThreadState* __tstate = wxPyBeginAllowThreads();
5480 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5481
5482 wxPyEndAllowThreads(__tstate);
5483 if (PyErr_Occurred()) SWIG_fail;
5484 }
5485 {
5486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5487 }
5488 return resultobj;
5489 fail:
5490 return NULL;
5491 }
5492
5493
5494 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5495 PyObject *resultobj;
5496 wxRegion *arg1 = (wxRegion *) 0 ;
5497 SwigValueWrapper< wxBitmap > result;
5498 PyObject * obj0 = 0 ;
5499 char *kwnames[] = {
5500 (char *) "self", NULL
5501 };
5502
5503 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5504 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5506 {
5507 PyThreadState* __tstate = wxPyBeginAllowThreads();
5508 result = (arg1)->ConvertToBitmap();
5509
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 {
5514 wxBitmap * resultptr;
5515 resultptr = new wxBitmap((wxBitmap &) result);
5516 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5517 }
5518 return resultobj;
5519 fail:
5520 return NULL;
5521 }
5522
5523
5524 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5525 PyObject *resultobj;
5526 wxRegion *arg1 = (wxRegion *) 0 ;
5527 wxBitmap *arg2 = 0 ;
5528 wxColour const &arg3_defvalue = wxNullColour ;
5529 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
5530 int arg4 = (int) 0 ;
5531 bool result;
5532 wxColour temp3 ;
5533 PyObject * obj0 = 0 ;
5534 PyObject * obj1 = 0 ;
5535 PyObject * obj2 = 0 ;
5536 PyObject * obj3 = 0 ;
5537 char *kwnames[] = {
5538 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5539 };
5540
5541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:Region_UnionBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5544 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5545 SWIG_POINTER_EXCEPTION | 0)) == -1)
5546 SWIG_fail;
5547 if (arg2 == NULL) {
5548 PyErr_SetString(PyExc_TypeError,"null reference");
5549 SWIG_fail;
5550 }
5551 if (obj2) {
5552 {
5553 arg3 = &temp3;
5554 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5555 }
5556 }
5557 if (obj3) {
5558 arg4 = (int) SWIG_AsInt(obj3);
5559 if (PyErr_Occurred()) SWIG_fail;
5560 }
5561 {
5562 PyThreadState* __tstate = wxPyBeginAllowThreads();
5563 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5564
5565 wxPyEndAllowThreads(__tstate);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 }
5568 {
5569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5570 }
5571 return resultobj;
5572 fail:
5573 return NULL;
5574 }
5575
5576
5577 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5578 PyObject *obj;
5579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5580 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5581 Py_INCREF(obj);
5582 return Py_BuildValue((char *)"");
5583 }
5584 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5585 PyObject *resultobj;
5586 wxRegion *arg1 = 0 ;
5587 wxRegionIterator *result;
5588 PyObject * obj0 = 0 ;
5589 char *kwnames[] = {
5590 (char *) "region", NULL
5591 };
5592
5593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5595 SWIG_POINTER_EXCEPTION | 0)) == -1)
5596 SWIG_fail;
5597 if (arg1 == NULL) {
5598 PyErr_SetString(PyExc_TypeError,"null reference");
5599 SWIG_fail;
5600 }
5601 {
5602 if (!wxPyCheckForApp()) SWIG_fail;
5603 PyThreadState* __tstate = wxPyBeginAllowThreads();
5604 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5605
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5610 return resultobj;
5611 fail:
5612 return NULL;
5613 }
5614
5615
5616 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5617 PyObject *resultobj;
5618 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5619 PyObject * obj0 = 0 ;
5620 char *kwnames[] = {
5621 (char *) "self", NULL
5622 };
5623
5624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5627 {
5628 PyThreadState* __tstate = wxPyBeginAllowThreads();
5629 delete arg1;
5630
5631 wxPyEndAllowThreads(__tstate);
5632 if (PyErr_Occurred()) SWIG_fail;
5633 }
5634 Py_INCREF(Py_None); resultobj = Py_None;
5635 return resultobj;
5636 fail:
5637 return NULL;
5638 }
5639
5640
5641 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5642 PyObject *resultobj;
5643 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5644 int result;
5645 PyObject * obj0 = 0 ;
5646 char *kwnames[] = {
5647 (char *) "self", NULL
5648 };
5649
5650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5651 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5652 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5653 {
5654 PyThreadState* __tstate = wxPyBeginAllowThreads();
5655 result = (int)(arg1)->GetX();
5656
5657 wxPyEndAllowThreads(__tstate);
5658 if (PyErr_Occurred()) SWIG_fail;
5659 }
5660 resultobj = SWIG_FromInt((int)result);
5661 return resultobj;
5662 fail:
5663 return NULL;
5664 }
5665
5666
5667 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5668 PyObject *resultobj;
5669 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5670 int result;
5671 PyObject * obj0 = 0 ;
5672 char *kwnames[] = {
5673 (char *) "self", NULL
5674 };
5675
5676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5679 {
5680 PyThreadState* __tstate = wxPyBeginAllowThreads();
5681 result = (int)(arg1)->GetY();
5682
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 resultobj = SWIG_FromInt((int)result);
5687 return resultobj;
5688 fail:
5689 return NULL;
5690 }
5691
5692
5693 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5694 PyObject *resultobj;
5695 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5696 int result;
5697 PyObject * obj0 = 0 ;
5698 char *kwnames[] = {
5699 (char *) "self", NULL
5700 };
5701
5702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5705 {
5706 PyThreadState* __tstate = wxPyBeginAllowThreads();
5707 result = (int)(arg1)->GetW();
5708
5709 wxPyEndAllowThreads(__tstate);
5710 if (PyErr_Occurred()) SWIG_fail;
5711 }
5712 resultobj = SWIG_FromInt((int)result);
5713 return resultobj;
5714 fail:
5715 return NULL;
5716 }
5717
5718
5719 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5720 PyObject *resultobj;
5721 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5722 int result;
5723 PyObject * obj0 = 0 ;
5724 char *kwnames[] = {
5725 (char *) "self", NULL
5726 };
5727
5728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 result = (int)(arg1)->GetWidth();
5734
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 resultobj = SWIG_FromInt((int)result);
5739 return resultobj;
5740 fail:
5741 return NULL;
5742 }
5743
5744
5745 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5746 PyObject *resultobj;
5747 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5748 int result;
5749 PyObject * obj0 = 0 ;
5750 char *kwnames[] = {
5751 (char *) "self", NULL
5752 };
5753
5754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5755 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5756 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5757 {
5758 PyThreadState* __tstate = wxPyBeginAllowThreads();
5759 result = (int)(arg1)->GetH();
5760
5761 wxPyEndAllowThreads(__tstate);
5762 if (PyErr_Occurred()) SWIG_fail;
5763 }
5764 resultobj = SWIG_FromInt((int)result);
5765 return resultobj;
5766 fail:
5767 return NULL;
5768 }
5769
5770
5771 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5772 PyObject *resultobj;
5773 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5774 int result;
5775 PyObject * obj0 = 0 ;
5776 char *kwnames[] = {
5777 (char *) "self", NULL
5778 };
5779
5780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5781 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 result = (int)(arg1)->GetHeight();
5786
5787 wxPyEndAllowThreads(__tstate);
5788 if (PyErr_Occurred()) SWIG_fail;
5789 }
5790 resultobj = SWIG_FromInt((int)result);
5791 return resultobj;
5792 fail:
5793 return NULL;
5794 }
5795
5796
5797 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5798 PyObject *resultobj;
5799 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5800 wxRect result;
5801 PyObject * obj0 = 0 ;
5802 char *kwnames[] = {
5803 (char *) "self", NULL
5804 };
5805
5806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5809 {
5810 PyThreadState* __tstate = wxPyBeginAllowThreads();
5811 result = (arg1)->GetRect();
5812
5813 wxPyEndAllowThreads(__tstate);
5814 if (PyErr_Occurred()) SWIG_fail;
5815 }
5816 {
5817 wxRect * resultptr;
5818 resultptr = new wxRect((wxRect &) result);
5819 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5820 }
5821 return resultobj;
5822 fail:
5823 return NULL;
5824 }
5825
5826
5827 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5828 PyObject *resultobj;
5829 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5830 bool result;
5831 PyObject * obj0 = 0 ;
5832 char *kwnames[] = {
5833 (char *) "self", NULL
5834 };
5835
5836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5839 {
5840 PyThreadState* __tstate = wxPyBeginAllowThreads();
5841 result = (bool)(arg1)->HaveRects();
5842
5843 wxPyEndAllowThreads(__tstate);
5844 if (PyErr_Occurred()) SWIG_fail;
5845 }
5846 {
5847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5848 }
5849 return resultobj;
5850 fail:
5851 return NULL;
5852 }
5853
5854
5855 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5856 PyObject *resultobj;
5857 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5858 PyObject * obj0 = 0 ;
5859 char *kwnames[] = {
5860 (char *) "self", NULL
5861 };
5862
5863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5866 {
5867 PyThreadState* __tstate = wxPyBeginAllowThreads();
5868 (arg1)->Reset();
5869
5870 wxPyEndAllowThreads(__tstate);
5871 if (PyErr_Occurred()) SWIG_fail;
5872 }
5873 Py_INCREF(Py_None); resultobj = Py_None;
5874 return resultobj;
5875 fail:
5876 return NULL;
5877 }
5878
5879
5880 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5881 PyObject *resultobj;
5882 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5883 PyObject * obj0 = 0 ;
5884 char *kwnames[] = {
5885 (char *) "self", NULL
5886 };
5887
5888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5891 {
5892 PyThreadState* __tstate = wxPyBeginAllowThreads();
5893 wxRegionIterator_Next(arg1);
5894
5895 wxPyEndAllowThreads(__tstate);
5896 if (PyErr_Occurred()) SWIG_fail;
5897 }
5898 Py_INCREF(Py_None); resultobj = Py_None;
5899 return resultobj;
5900 fail:
5901 return NULL;
5902 }
5903
5904
5905 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5906 PyObject *resultobj;
5907 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5908 bool result;
5909 PyObject * obj0 = 0 ;
5910 char *kwnames[] = {
5911 (char *) "self", NULL
5912 };
5913
5914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 result = (bool)wxRegionIterator___nonzero__(arg1);
5920
5921 wxPyEndAllowThreads(__tstate);
5922 if (PyErr_Occurred()) SWIG_fail;
5923 }
5924 {
5925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5926 }
5927 return resultobj;
5928 fail:
5929 return NULL;
5930 }
5931
5932
5933 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5934 PyObject *obj;
5935 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5936 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5937 Py_INCREF(obj);
5938 return Py_BuildValue((char *)"");
5939 }
5940 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5941 PyObject *resultobj;
5942 wxNativeFontInfo *result;
5943 char *kwnames[] = {
5944 NULL
5945 };
5946
5947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5948 {
5949 PyThreadState* __tstate = wxPyBeginAllowThreads();
5950 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5951
5952 wxPyEndAllowThreads(__tstate);
5953 if (PyErr_Occurred()) SWIG_fail;
5954 }
5955 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5956 return resultobj;
5957 fail:
5958 return NULL;
5959 }
5960
5961
5962 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5963 PyObject *resultobj;
5964 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5965 PyObject * obj0 = 0 ;
5966 char *kwnames[] = {
5967 (char *) "self", NULL
5968 };
5969
5970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5973 {
5974 PyThreadState* __tstate = wxPyBeginAllowThreads();
5975 delete arg1;
5976
5977 wxPyEndAllowThreads(__tstate);
5978 if (PyErr_Occurred()) SWIG_fail;
5979 }
5980 Py_INCREF(Py_None); resultobj = Py_None;
5981 return resultobj;
5982 fail:
5983 return NULL;
5984 }
5985
5986
5987 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
5988 PyObject *resultobj;
5989 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5990 PyObject * obj0 = 0 ;
5991 char *kwnames[] = {
5992 (char *) "self", NULL
5993 };
5994
5995 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
5996 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5997 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5998 {
5999 PyThreadState* __tstate = wxPyBeginAllowThreads();
6000 (arg1)->Init();
6001
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 Py_INCREF(Py_None); resultobj = Py_None;
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj;
6014 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6015 wxFont *arg2 = 0 ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 char *kwnames[] = {
6019 (char *) "self",(char *) "font", NULL
6020 };
6021
6022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6025 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6026 SWIG_POINTER_EXCEPTION | 0)) == -1)
6027 SWIG_fail;
6028 if (arg2 == NULL) {
6029 PyErr_SetString(PyExc_TypeError,"null reference");
6030 SWIG_fail;
6031 }
6032 {
6033 PyThreadState* __tstate = wxPyBeginAllowThreads();
6034 (arg1)->InitFromFont((wxFont const &)*arg2);
6035
6036 wxPyEndAllowThreads(__tstate);
6037 if (PyErr_Occurred()) SWIG_fail;
6038 }
6039 Py_INCREF(Py_None); resultobj = Py_None;
6040 return resultobj;
6041 fail:
6042 return NULL;
6043 }
6044
6045
6046 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6047 PyObject *resultobj;
6048 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6049 int result;
6050 PyObject * obj0 = 0 ;
6051 char *kwnames[] = {
6052 (char *) "self", NULL
6053 };
6054
6055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6058 {
6059 PyThreadState* __tstate = wxPyBeginAllowThreads();
6060 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6061
6062 wxPyEndAllowThreads(__tstate);
6063 if (PyErr_Occurred()) SWIG_fail;
6064 }
6065 resultobj = SWIG_FromInt((int)result);
6066 return resultobj;
6067 fail:
6068 return NULL;
6069 }
6070
6071
6072 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6073 PyObject *resultobj;
6074 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6075 int result;
6076 PyObject * obj0 = 0 ;
6077 char *kwnames[] = {
6078 (char *) "self", NULL
6079 };
6080
6081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6084 {
6085 PyThreadState* __tstate = wxPyBeginAllowThreads();
6086 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6087
6088 wxPyEndAllowThreads(__tstate);
6089 if (PyErr_Occurred()) SWIG_fail;
6090 }
6091 resultobj = SWIG_FromInt((int)result);
6092 return resultobj;
6093 fail:
6094 return NULL;
6095 }
6096
6097
6098 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6099 PyObject *resultobj;
6100 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6101 int result;
6102 PyObject * obj0 = 0 ;
6103 char *kwnames[] = {
6104 (char *) "self", NULL
6105 };
6106
6107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6110 {
6111 PyThreadState* __tstate = wxPyBeginAllowThreads();
6112 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6113
6114 wxPyEndAllowThreads(__tstate);
6115 if (PyErr_Occurred()) SWIG_fail;
6116 }
6117 resultobj = SWIG_FromInt((int)result);
6118 return resultobj;
6119 fail:
6120 return NULL;
6121 }
6122
6123
6124 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6125 PyObject *resultobj;
6126 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6127 bool result;
6128 PyObject * obj0 = 0 ;
6129 char *kwnames[] = {
6130 (char *) "self", NULL
6131 };
6132
6133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6136 {
6137 PyThreadState* __tstate = wxPyBeginAllowThreads();
6138 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6139
6140 wxPyEndAllowThreads(__tstate);
6141 if (PyErr_Occurred()) SWIG_fail;
6142 }
6143 {
6144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6145 }
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj;
6154 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6155 wxString result;
6156 PyObject * obj0 = 0 ;
6157 char *kwnames[] = {
6158 (char *) "self", NULL
6159 };
6160
6161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6164 {
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6167
6168 wxPyEndAllowThreads(__tstate);
6169 if (PyErr_Occurred()) SWIG_fail;
6170 }
6171 {
6172 #if wxUSE_UNICODE
6173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6174 #else
6175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6176 #endif
6177 }
6178 return resultobj;
6179 fail:
6180 return NULL;
6181 }
6182
6183
6184 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6185 PyObject *resultobj;
6186 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6187 int result;
6188 PyObject * obj0 = 0 ;
6189 char *kwnames[] = {
6190 (char *) "self", NULL
6191 };
6192
6193 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6194 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6195 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6196 {
6197 PyThreadState* __tstate = wxPyBeginAllowThreads();
6198 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6199
6200 wxPyEndAllowThreads(__tstate);
6201 if (PyErr_Occurred()) SWIG_fail;
6202 }
6203 resultobj = SWIG_FromInt((int)result);
6204 return resultobj;
6205 fail:
6206 return NULL;
6207 }
6208
6209
6210 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6211 PyObject *resultobj;
6212 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6213 int result;
6214 PyObject * obj0 = 0 ;
6215 char *kwnames[] = {
6216 (char *) "self", NULL
6217 };
6218
6219 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6220 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6221 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6222 {
6223 PyThreadState* __tstate = wxPyBeginAllowThreads();
6224 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6225
6226 wxPyEndAllowThreads(__tstate);
6227 if (PyErr_Occurred()) SWIG_fail;
6228 }
6229 resultobj = SWIG_FromInt((int)result);
6230 return resultobj;
6231 fail:
6232 return NULL;
6233 }
6234
6235
6236 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6237 PyObject *resultobj;
6238 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6239 int arg2 ;
6240 PyObject * obj0 = 0 ;
6241 PyObject * obj1 = 0 ;
6242 char *kwnames[] = {
6243 (char *) "self",(char *) "pointsize", NULL
6244 };
6245
6246 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6247 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6248 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6249 arg2 = (int) SWIG_AsInt(obj1);
6250 if (PyErr_Occurred()) SWIG_fail;
6251 {
6252 PyThreadState* __tstate = wxPyBeginAllowThreads();
6253 (arg1)->SetPointSize(arg2);
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_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6266 PyObject *resultobj;
6267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6268 int arg2 ;
6269 PyObject * obj0 = 0 ;
6270 PyObject * obj1 = 0 ;
6271 char *kwnames[] = {
6272 (char *) "self",(char *) "style", NULL
6273 };
6274
6275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6278 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6279 if (PyErr_Occurred()) SWIG_fail;
6280 {
6281 PyThreadState* __tstate = wxPyBeginAllowThreads();
6282 (arg1)->SetStyle((wxFontStyle )arg2);
6283
6284 wxPyEndAllowThreads(__tstate);
6285 if (PyErr_Occurred()) SWIG_fail;
6286 }
6287 Py_INCREF(Py_None); resultobj = Py_None;
6288 return resultobj;
6289 fail:
6290 return NULL;
6291 }
6292
6293
6294 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6295 PyObject *resultobj;
6296 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6297 int arg2 ;
6298 PyObject * obj0 = 0 ;
6299 PyObject * obj1 = 0 ;
6300 char *kwnames[] = {
6301 (char *) "self",(char *) "weight", NULL
6302 };
6303
6304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6307 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 {
6310 PyThreadState* __tstate = wxPyBeginAllowThreads();
6311 (arg1)->SetWeight((wxFontWeight )arg2);
6312
6313 wxPyEndAllowThreads(__tstate);
6314 if (PyErr_Occurred()) SWIG_fail;
6315 }
6316 Py_INCREF(Py_None); resultobj = Py_None;
6317 return resultobj;
6318 fail:
6319 return NULL;
6320 }
6321
6322
6323 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6324 PyObject *resultobj;
6325 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6326 bool arg2 ;
6327 PyObject * obj0 = 0 ;
6328 PyObject * obj1 = 0 ;
6329 char *kwnames[] = {
6330 (char *) "self",(char *) "underlined", NULL
6331 };
6332
6333 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6334 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6335 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6336 arg2 = (bool) SWIG_AsBool(obj1);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 {
6339 PyThreadState* __tstate = wxPyBeginAllowThreads();
6340 (arg1)->SetUnderlined(arg2);
6341
6342 wxPyEndAllowThreads(__tstate);
6343 if (PyErr_Occurred()) SWIG_fail;
6344 }
6345 Py_INCREF(Py_None); resultobj = Py_None;
6346 return resultobj;
6347 fail:
6348 return NULL;
6349 }
6350
6351
6352 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6353 PyObject *resultobj;
6354 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6355 wxString arg2 ;
6356 PyObject * obj0 = 0 ;
6357 PyObject * obj1 = 0 ;
6358 char *kwnames[] = {
6359 (char *) "self",(char *) "facename", NULL
6360 };
6361
6362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6365 {
6366 wxString* sptr = wxString_in_helper(obj1);
6367 if (sptr == NULL) SWIG_fail;
6368 arg2 = *sptr;
6369 delete sptr;
6370 }
6371 {
6372 PyThreadState* __tstate = wxPyBeginAllowThreads();
6373 (arg1)->SetFaceName(arg2);
6374
6375 wxPyEndAllowThreads(__tstate);
6376 if (PyErr_Occurred()) SWIG_fail;
6377 }
6378 Py_INCREF(Py_None); resultobj = Py_None;
6379 return resultobj;
6380 fail:
6381 return NULL;
6382 }
6383
6384
6385 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6386 PyObject *resultobj;
6387 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6388 int arg2 ;
6389 PyObject * obj0 = 0 ;
6390 PyObject * obj1 = 0 ;
6391 char *kwnames[] = {
6392 (char *) "self",(char *) "family", NULL
6393 };
6394
6395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6398 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 {
6401 PyThreadState* __tstate = wxPyBeginAllowThreads();
6402 (arg1)->SetFamily((wxFontFamily )arg2);
6403
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 Py_INCREF(Py_None); resultobj = Py_None;
6408 return resultobj;
6409 fail:
6410 return NULL;
6411 }
6412
6413
6414 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6415 PyObject *resultobj;
6416 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6417 int arg2 ;
6418 PyObject * obj0 = 0 ;
6419 PyObject * obj1 = 0 ;
6420 char *kwnames[] = {
6421 (char *) "self",(char *) "encoding", NULL
6422 };
6423
6424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6427 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6428 if (PyErr_Occurred()) SWIG_fail;
6429 {
6430 PyThreadState* __tstate = wxPyBeginAllowThreads();
6431 (arg1)->SetEncoding((wxFontEncoding )arg2);
6432
6433 wxPyEndAllowThreads(__tstate);
6434 if (PyErr_Occurred()) SWIG_fail;
6435 }
6436 Py_INCREF(Py_None); resultobj = Py_None;
6437 return resultobj;
6438 fail:
6439 return NULL;
6440 }
6441
6442
6443 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6444 PyObject *resultobj;
6445 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6446 wxString *arg2 = 0 ;
6447 bool result;
6448 bool temp2 = False ;
6449 PyObject * obj0 = 0 ;
6450 PyObject * obj1 = 0 ;
6451 char *kwnames[] = {
6452 (char *) "self",(char *) "s", NULL
6453 };
6454
6455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6458 {
6459 arg2 = wxString_in_helper(obj1);
6460 if (arg2 == NULL) SWIG_fail;
6461 temp2 = True;
6462 }
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 {
6471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6472 }
6473 {
6474 if (temp2)
6475 delete arg2;
6476 }
6477 return resultobj;
6478 fail:
6479 {
6480 if (temp2)
6481 delete arg2;
6482 }
6483 return NULL;
6484 }
6485
6486
6487 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6488 PyObject *resultobj;
6489 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6490 wxString result;
6491 PyObject * obj0 = 0 ;
6492 char *kwnames[] = {
6493 (char *) "self", NULL
6494 };
6495
6496 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6497 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6498 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6499 {
6500 PyThreadState* __tstate = wxPyBeginAllowThreads();
6501 result = ((wxNativeFontInfo const *)arg1)->ToString();
6502
6503 wxPyEndAllowThreads(__tstate);
6504 if (PyErr_Occurred()) SWIG_fail;
6505 }
6506 {
6507 #if wxUSE_UNICODE
6508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6509 #else
6510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6511 #endif
6512 }
6513 return resultobj;
6514 fail:
6515 return NULL;
6516 }
6517
6518
6519 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6520 PyObject *resultobj;
6521 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6522 wxString result;
6523 PyObject * obj0 = 0 ;
6524 char *kwnames[] = {
6525 (char *) "self", NULL
6526 };
6527
6528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6529 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6530 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6531 {
6532 PyThreadState* __tstate = wxPyBeginAllowThreads();
6533 result = wxNativeFontInfo___str__(arg1);
6534
6535 wxPyEndAllowThreads(__tstate);
6536 if (PyErr_Occurred()) SWIG_fail;
6537 }
6538 {
6539 #if wxUSE_UNICODE
6540 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6541 #else
6542 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6543 #endif
6544 }
6545 return resultobj;
6546 fail:
6547 return NULL;
6548 }
6549
6550
6551 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj;
6553 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6554 wxString *arg2 = 0 ;
6555 bool result;
6556 bool temp2 = False ;
6557 PyObject * obj0 = 0 ;
6558 PyObject * obj1 = 0 ;
6559 char *kwnames[] = {
6560 (char *) "self",(char *) "s", NULL
6561 };
6562
6563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6566 {
6567 arg2 = wxString_in_helper(obj1);
6568 if (arg2 == NULL) SWIG_fail;
6569 temp2 = True;
6570 }
6571 {
6572 PyThreadState* __tstate = wxPyBeginAllowThreads();
6573 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6574
6575 wxPyEndAllowThreads(__tstate);
6576 if (PyErr_Occurred()) SWIG_fail;
6577 }
6578 {
6579 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6580 }
6581 {
6582 if (temp2)
6583 delete arg2;
6584 }
6585 return resultobj;
6586 fail:
6587 {
6588 if (temp2)
6589 delete arg2;
6590 }
6591 return NULL;
6592 }
6593
6594
6595 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6596 PyObject *resultobj;
6597 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6598 wxString result;
6599 PyObject * obj0 = 0 ;
6600 char *kwnames[] = {
6601 (char *) "self", NULL
6602 };
6603
6604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6607 {
6608 PyThreadState* __tstate = wxPyBeginAllowThreads();
6609 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6610
6611 wxPyEndAllowThreads(__tstate);
6612 if (PyErr_Occurred()) SWIG_fail;
6613 }
6614 {
6615 #if wxUSE_UNICODE
6616 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6617 #else
6618 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6619 #endif
6620 }
6621 return resultobj;
6622 fail:
6623 return NULL;
6624 }
6625
6626
6627 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6628 PyObject *obj;
6629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6630 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6631 Py_INCREF(obj);
6632 return Py_BuildValue((char *)"");
6633 }
6634 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6635 PyObject *resultobj;
6636 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6637 wxString *arg2 = (wxString *) 0 ;
6638 bool temp2 = False ;
6639 PyObject * obj0 = 0 ;
6640 PyObject * obj1 = 0 ;
6641 char *kwnames[] = {
6642 (char *) "self",(char *) "facename", NULL
6643 };
6644
6645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6647 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6648 {
6649 arg2 = wxString_in_helper(obj1);
6650 if (arg2 == NULL) SWIG_fail;
6651 temp2 = True;
6652 }
6653 if (arg1) (arg1)->facename = *arg2;
6654
6655 Py_INCREF(Py_None); resultobj = Py_None;
6656 {
6657 if (temp2)
6658 delete arg2;
6659 }
6660 return resultobj;
6661 fail:
6662 {
6663 if (temp2)
6664 delete arg2;
6665 }
6666 return NULL;
6667 }
6668
6669
6670 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6671 PyObject *resultobj;
6672 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6673 wxString *result;
6674 PyObject * obj0 = 0 ;
6675 char *kwnames[] = {
6676 (char *) "self", NULL
6677 };
6678
6679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6682 result = (wxString *)& ((arg1)->facename);
6683
6684 {
6685 #if wxUSE_UNICODE
6686 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6687 #else
6688 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6689 #endif
6690 }
6691 return resultobj;
6692 fail:
6693 return NULL;
6694 }
6695
6696
6697 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject *resultobj;
6699 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6700 int arg2 ;
6701 PyObject * obj0 = 0 ;
6702 PyObject * obj1 = 0 ;
6703 char *kwnames[] = {
6704 (char *) "self",(char *) "encoding", NULL
6705 };
6706
6707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6710 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6711 if (PyErr_Occurred()) SWIG_fail;
6712 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6713
6714 Py_INCREF(Py_None); resultobj = Py_None;
6715 return resultobj;
6716 fail:
6717 return NULL;
6718 }
6719
6720
6721 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6722 PyObject *resultobj;
6723 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6724 int result;
6725 PyObject * obj0 = 0 ;
6726 char *kwnames[] = {
6727 (char *) "self", NULL
6728 };
6729
6730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6731 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6732 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6733 result = (int) ((arg1)->encoding);
6734
6735 resultobj = SWIG_FromInt((int)result);
6736 return resultobj;
6737 fail:
6738 return NULL;
6739 }
6740
6741
6742 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6743 PyObject *resultobj;
6744 wxNativeEncodingInfo *result;
6745 char *kwnames[] = {
6746 NULL
6747 };
6748
6749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6750 {
6751 PyThreadState* __tstate = wxPyBeginAllowThreads();
6752 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6753
6754 wxPyEndAllowThreads(__tstate);
6755 if (PyErr_Occurred()) SWIG_fail;
6756 }
6757 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6758 return resultobj;
6759 fail:
6760 return NULL;
6761 }
6762
6763
6764 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6765 PyObject *resultobj;
6766 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6767 PyObject * obj0 = 0 ;
6768 char *kwnames[] = {
6769 (char *) "self", NULL
6770 };
6771
6772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6775 {
6776 PyThreadState* __tstate = wxPyBeginAllowThreads();
6777 delete arg1;
6778
6779 wxPyEndAllowThreads(__tstate);
6780 if (PyErr_Occurred()) SWIG_fail;
6781 }
6782 Py_INCREF(Py_None); resultobj = Py_None;
6783 return resultobj;
6784 fail:
6785 return NULL;
6786 }
6787
6788
6789 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6790 PyObject *resultobj;
6791 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6792 wxString *arg2 = 0 ;
6793 bool result;
6794 bool temp2 = False ;
6795 PyObject * obj0 = 0 ;
6796 PyObject * obj1 = 0 ;
6797 char *kwnames[] = {
6798 (char *) "self",(char *) "s", NULL
6799 };
6800
6801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6804 {
6805 arg2 = wxString_in_helper(obj1);
6806 if (arg2 == NULL) SWIG_fail;
6807 temp2 = True;
6808 }
6809 {
6810 PyThreadState* __tstate = wxPyBeginAllowThreads();
6811 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6812
6813 wxPyEndAllowThreads(__tstate);
6814 if (PyErr_Occurred()) SWIG_fail;
6815 }
6816 {
6817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6818 }
6819 {
6820 if (temp2)
6821 delete arg2;
6822 }
6823 return resultobj;
6824 fail:
6825 {
6826 if (temp2)
6827 delete arg2;
6828 }
6829 return NULL;
6830 }
6831
6832
6833 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6834 PyObject *resultobj;
6835 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6836 wxString result;
6837 PyObject * obj0 = 0 ;
6838 char *kwnames[] = {
6839 (char *) "self", NULL
6840 };
6841
6842 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6843 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6844 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6848
6849 wxPyEndAllowThreads(__tstate);
6850 if (PyErr_Occurred()) SWIG_fail;
6851 }
6852 {
6853 #if wxUSE_UNICODE
6854 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6855 #else
6856 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6857 #endif
6858 }
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6866 PyObject *obj;
6867 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6868 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6869 Py_INCREF(obj);
6870 return Py_BuildValue((char *)"");
6871 }
6872 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6873 PyObject *resultobj;
6874 int arg1 ;
6875 wxNativeEncodingInfo *result;
6876 PyObject * obj0 = 0 ;
6877 char *kwnames[] = {
6878 (char *) "encoding", NULL
6879 };
6880
6881 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6882 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6883 if (PyErr_Occurred()) SWIG_fail;
6884 {
6885 PyThreadState* __tstate = wxPyBeginAllowThreads();
6886 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6887
6888 wxPyEndAllowThreads(__tstate);
6889 if (PyErr_Occurred()) SWIG_fail;
6890 }
6891 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6892 return resultobj;
6893 fail:
6894 return NULL;
6895 }
6896
6897
6898 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6899 PyObject *resultobj;
6900 wxNativeEncodingInfo *arg1 = 0 ;
6901 bool result;
6902 PyObject * obj0 = 0 ;
6903 char *kwnames[] = {
6904 (char *) "info", NULL
6905 };
6906
6907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6908 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6909 SWIG_POINTER_EXCEPTION | 0)) == -1)
6910 SWIG_fail;
6911 if (arg1 == NULL) {
6912 PyErr_SetString(PyExc_TypeError,"null reference");
6913 SWIG_fail;
6914 }
6915 {
6916 PyThreadState* __tstate = wxPyBeginAllowThreads();
6917 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6918
6919 wxPyEndAllowThreads(__tstate);
6920 if (PyErr_Occurred()) SWIG_fail;
6921 }
6922 {
6923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6924 }
6925 return resultobj;
6926 fail:
6927 return NULL;
6928 }
6929
6930
6931 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6932 PyObject *resultobj;
6933 wxFontMapper *result;
6934 char *kwnames[] = {
6935 NULL
6936 };
6937
6938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6939 {
6940 PyThreadState* __tstate = wxPyBeginAllowThreads();
6941 result = (wxFontMapper *)new wxFontMapper();
6942
6943 wxPyEndAllowThreads(__tstate);
6944 if (PyErr_Occurred()) SWIG_fail;
6945 }
6946 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6947 return resultobj;
6948 fail:
6949 return NULL;
6950 }
6951
6952
6953 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6954 PyObject *resultobj;
6955 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6956 PyObject * obj0 = 0 ;
6957 char *kwnames[] = {
6958 (char *) "self", NULL
6959 };
6960
6961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6964 {
6965 PyThreadState* __tstate = wxPyBeginAllowThreads();
6966 delete arg1;
6967
6968 wxPyEndAllowThreads(__tstate);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 Py_INCREF(Py_None); resultobj = Py_None;
6972 return resultobj;
6973 fail:
6974 return NULL;
6975 }
6976
6977
6978 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6979 PyObject *resultobj;
6980 wxFontMapper *result;
6981 char *kwnames[] = {
6982 NULL
6983 };
6984
6985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6986 {
6987 PyThreadState* __tstate = wxPyBeginAllowThreads();
6988 result = (wxFontMapper *)wxFontMapper::Get();
6989
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
6994 return resultobj;
6995 fail:
6996 return NULL;
6997 }
6998
6999
7000 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7001 PyObject *resultobj;
7002 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7003 wxFontMapper *result;
7004 PyObject * obj0 = 0 ;
7005 char *kwnames[] = {
7006 (char *) "mapper", NULL
7007 };
7008
7009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7010 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7011 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7012 {
7013 PyThreadState* __tstate = wxPyBeginAllowThreads();
7014 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7015
7016 wxPyEndAllowThreads(__tstate);
7017 if (PyErr_Occurred()) SWIG_fail;
7018 }
7019 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7020 return resultobj;
7021 fail:
7022 return NULL;
7023 }
7024
7025
7026 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7027 PyObject *resultobj;
7028 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7029 wxString *arg2 = 0 ;
7030 bool arg3 = (bool) True ;
7031 int result;
7032 bool temp2 = False ;
7033 PyObject * obj0 = 0 ;
7034 PyObject * obj1 = 0 ;
7035 PyObject * obj2 = 0 ;
7036 char *kwnames[] = {
7037 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7038 };
7039
7040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7043 {
7044 arg2 = wxString_in_helper(obj1);
7045 if (arg2 == NULL) SWIG_fail;
7046 temp2 = True;
7047 }
7048 if (obj2) {
7049 arg3 = (bool) SWIG_AsBool(obj2);
7050 if (PyErr_Occurred()) SWIG_fail;
7051 }
7052 {
7053 PyThreadState* __tstate = wxPyBeginAllowThreads();
7054 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7055
7056 wxPyEndAllowThreads(__tstate);
7057 if (PyErr_Occurred()) SWIG_fail;
7058 }
7059 resultobj = SWIG_FromInt((int)result);
7060 {
7061 if (temp2)
7062 delete arg2;
7063 }
7064 return resultobj;
7065 fail:
7066 {
7067 if (temp2)
7068 delete arg2;
7069 }
7070 return NULL;
7071 }
7072
7073
7074 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7075 PyObject *resultobj;
7076 size_t result;
7077 char *kwnames[] = {
7078 NULL
7079 };
7080
7081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7085
7086 wxPyEndAllowThreads(__tstate);
7087 if (PyErr_Occurred()) SWIG_fail;
7088 }
7089 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7090 return resultobj;
7091 fail:
7092 return NULL;
7093 }
7094
7095
7096 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7097 PyObject *resultobj;
7098 size_t arg1 ;
7099 int result;
7100 PyObject * obj0 = 0 ;
7101 char *kwnames[] = {
7102 (char *) "n", NULL
7103 };
7104
7105 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7106 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7107 if (PyErr_Occurred()) SWIG_fail;
7108 {
7109 PyThreadState* __tstate = wxPyBeginAllowThreads();
7110 result = (int)wxFontMapper::GetEncoding(arg1);
7111
7112 wxPyEndAllowThreads(__tstate);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_FromInt((int)result);
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7123 PyObject *resultobj;
7124 int arg1 ;
7125 wxString result;
7126 PyObject * obj0 = 0 ;
7127 char *kwnames[] = {
7128 (char *) "encoding", NULL
7129 };
7130
7131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7132 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 {
7135 PyThreadState* __tstate = wxPyBeginAllowThreads();
7136 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7137
7138 wxPyEndAllowThreads(__tstate);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 {
7142 #if wxUSE_UNICODE
7143 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7144 #else
7145 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7146 #endif
7147 }
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7155 PyObject *resultobj;
7156 int arg1 ;
7157 wxString result;
7158 PyObject * obj0 = 0 ;
7159 char *kwnames[] = {
7160 (char *) "encoding", NULL
7161 };
7162
7163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7164 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7165 if (PyErr_Occurred()) SWIG_fail;
7166 {
7167 PyThreadState* __tstate = wxPyBeginAllowThreads();
7168 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7169
7170 wxPyEndAllowThreads(__tstate);
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 {
7174 #if wxUSE_UNICODE
7175 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7176 #else
7177 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7178 #endif
7179 }
7180 return resultobj;
7181 fail:
7182 return NULL;
7183 }
7184
7185
7186 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7187 PyObject *resultobj;
7188 wxString *arg1 = 0 ;
7189 int result;
7190 bool temp1 = False ;
7191 PyObject * obj0 = 0 ;
7192 char *kwnames[] = {
7193 (char *) "name", NULL
7194 };
7195
7196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7197 {
7198 arg1 = wxString_in_helper(obj0);
7199 if (arg1 == NULL) SWIG_fail;
7200 temp1 = True;
7201 }
7202 {
7203 PyThreadState* __tstate = wxPyBeginAllowThreads();
7204 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7205
7206 wxPyEndAllowThreads(__tstate);
7207 if (PyErr_Occurred()) SWIG_fail;
7208 }
7209 resultobj = SWIG_FromInt((int)result);
7210 {
7211 if (temp1)
7212 delete arg1;
7213 }
7214 return resultobj;
7215 fail:
7216 {
7217 if (temp1)
7218 delete arg1;
7219 }
7220 return NULL;
7221 }
7222
7223
7224 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7225 PyObject *resultobj;
7226 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7227 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7228 PyObject * obj0 = 0 ;
7229 PyObject * obj1 = 0 ;
7230 char *kwnames[] = {
7231 (char *) "self",(char *) "config", NULL
7232 };
7233
7234 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7235 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7236 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7237 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7239 {
7240 PyThreadState* __tstate = wxPyBeginAllowThreads();
7241 (arg1)->SetConfig(arg2);
7242
7243 wxPyEndAllowThreads(__tstate);
7244 if (PyErr_Occurred()) SWIG_fail;
7245 }
7246 Py_INCREF(Py_None); resultobj = Py_None;
7247 return resultobj;
7248 fail:
7249 return NULL;
7250 }
7251
7252
7253 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7254 PyObject *resultobj;
7255 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7256 wxString *arg2 = 0 ;
7257 bool temp2 = False ;
7258 PyObject * obj0 = 0 ;
7259 PyObject * obj1 = 0 ;
7260 char *kwnames[] = {
7261 (char *) "self",(char *) "prefix", NULL
7262 };
7263
7264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7267 {
7268 arg2 = wxString_in_helper(obj1);
7269 if (arg2 == NULL) SWIG_fail;
7270 temp2 = True;
7271 }
7272 {
7273 PyThreadState* __tstate = wxPyBeginAllowThreads();
7274 (arg1)->SetConfigPath((wxString const &)*arg2);
7275
7276 wxPyEndAllowThreads(__tstate);
7277 if (PyErr_Occurred()) SWIG_fail;
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_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7295 PyObject *resultobj;
7296 wxString result;
7297 char *kwnames[] = {
7298 NULL
7299 };
7300
7301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 result = wxFontMapper::GetDefaultConfigPath();
7305
7306 wxPyEndAllowThreads(__tstate);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 {
7310 #if wxUSE_UNICODE
7311 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7312 #else
7313 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7314 #endif
7315 }
7316 return resultobj;
7317 fail:
7318 return NULL;
7319 }
7320
7321
7322 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7323 PyObject *resultobj;
7324 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7325 int arg2 ;
7326 wxString const &arg3_defvalue = wxPyEmptyString ;
7327 wxString *arg3 = (wxString *) &arg3_defvalue ;
7328 bool arg4 = (bool) True ;
7329 PyObject *result;
7330 bool temp3 = False ;
7331 PyObject * obj0 = 0 ;
7332 PyObject * obj1 = 0 ;
7333 PyObject * obj2 = 0 ;
7334 PyObject * obj3 = 0 ;
7335 char *kwnames[] = {
7336 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7337 };
7338
7339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7342 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7343 if (PyErr_Occurred()) SWIG_fail;
7344 if (obj2) {
7345 {
7346 arg3 = wxString_in_helper(obj2);
7347 if (arg3 == NULL) SWIG_fail;
7348 temp3 = True;
7349 }
7350 }
7351 if (obj3) {
7352 arg4 = (bool) SWIG_AsBool(obj3);
7353 if (PyErr_Occurred()) SWIG_fail;
7354 }
7355 {
7356 PyThreadState* __tstate = wxPyBeginAllowThreads();
7357 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7358
7359 wxPyEndAllowThreads(__tstate);
7360 if (PyErr_Occurred()) SWIG_fail;
7361 }
7362 resultobj = result;
7363 {
7364 if (temp3)
7365 delete arg3;
7366 }
7367 return resultobj;
7368 fail:
7369 {
7370 if (temp3)
7371 delete arg3;
7372 }
7373 return NULL;
7374 }
7375
7376
7377 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7378 PyObject *resultobj;
7379 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7380 int arg2 ;
7381 wxString const &arg3_defvalue = wxPyEmptyString ;
7382 wxString *arg3 = (wxString *) &arg3_defvalue ;
7383 bool result;
7384 bool temp3 = False ;
7385 PyObject * obj0 = 0 ;
7386 PyObject * obj1 = 0 ;
7387 PyObject * obj2 = 0 ;
7388 char *kwnames[] = {
7389 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7390 };
7391
7392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7395 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7396 if (PyErr_Occurred()) SWIG_fail;
7397 if (obj2) {
7398 {
7399 arg3 = wxString_in_helper(obj2);
7400 if (arg3 == NULL) SWIG_fail;
7401 temp3 = True;
7402 }
7403 }
7404 {
7405 PyThreadState* __tstate = wxPyBeginAllowThreads();
7406 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7407
7408 wxPyEndAllowThreads(__tstate);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 }
7411 {
7412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7413 }
7414 {
7415 if (temp3)
7416 delete arg3;
7417 }
7418 return resultobj;
7419 fail:
7420 {
7421 if (temp3)
7422 delete arg3;
7423 }
7424 return NULL;
7425 }
7426
7427
7428 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7429 PyObject *resultobj;
7430 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7431 wxWindow *arg2 = (wxWindow *) 0 ;
7432 PyObject * obj0 = 0 ;
7433 PyObject * obj1 = 0 ;
7434 char *kwnames[] = {
7435 (char *) "self",(char *) "parent", NULL
7436 };
7437
7438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7441 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7443 {
7444 PyThreadState* __tstate = wxPyBeginAllowThreads();
7445 (arg1)->SetDialogParent(arg2);
7446
7447 wxPyEndAllowThreads(__tstate);
7448 if (PyErr_Occurred()) SWIG_fail;
7449 }
7450 Py_INCREF(Py_None); resultobj = Py_None;
7451 return resultobj;
7452 fail:
7453 return NULL;
7454 }
7455
7456
7457 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7458 PyObject *resultobj;
7459 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7460 wxString *arg2 = 0 ;
7461 bool temp2 = False ;
7462 PyObject * obj0 = 0 ;
7463 PyObject * obj1 = 0 ;
7464 char *kwnames[] = {
7465 (char *) "self",(char *) "title", NULL
7466 };
7467
7468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7471 {
7472 arg2 = wxString_in_helper(obj1);
7473 if (arg2 == NULL) SWIG_fail;
7474 temp2 = True;
7475 }
7476 {
7477 PyThreadState* __tstate = wxPyBeginAllowThreads();
7478 (arg1)->SetDialogTitle((wxString const &)*arg2);
7479
7480 wxPyEndAllowThreads(__tstate);
7481 if (PyErr_Occurred()) SWIG_fail;
7482 }
7483 Py_INCREF(Py_None); resultobj = Py_None;
7484 {
7485 if (temp2)
7486 delete arg2;
7487 }
7488 return resultobj;
7489 fail:
7490 {
7491 if (temp2)
7492 delete arg2;
7493 }
7494 return NULL;
7495 }
7496
7497
7498 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7499 PyObject *obj;
7500 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7501 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7502 Py_INCREF(obj);
7503 return Py_BuildValue((char *)"");
7504 }
7505 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7506 PyObject *resultobj;
7507 int arg1 ;
7508 int arg2 ;
7509 int arg3 ;
7510 int arg4 ;
7511 bool arg5 = (bool) False ;
7512 wxString const &arg6_defvalue = wxPyEmptyString ;
7513 wxString *arg6 = (wxString *) &arg6_defvalue ;
7514 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7515 wxFont *result;
7516 bool temp6 = False ;
7517 PyObject * obj0 = 0 ;
7518 PyObject * obj1 = 0 ;
7519 PyObject * obj2 = 0 ;
7520 PyObject * obj3 = 0 ;
7521 PyObject * obj4 = 0 ;
7522 PyObject * obj5 = 0 ;
7523 PyObject * obj6 = 0 ;
7524 char *kwnames[] = {
7525 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7526 };
7527
7528 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7529 arg1 = (int) SWIG_AsInt(obj0);
7530 if (PyErr_Occurred()) SWIG_fail;
7531 arg2 = (int) SWIG_AsInt(obj1);
7532 if (PyErr_Occurred()) SWIG_fail;
7533 arg3 = (int) SWIG_AsInt(obj2);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 arg4 = (int) SWIG_AsInt(obj3);
7536 if (PyErr_Occurred()) SWIG_fail;
7537 if (obj4) {
7538 arg5 = (bool) SWIG_AsBool(obj4);
7539 if (PyErr_Occurred()) SWIG_fail;
7540 }
7541 if (obj5) {
7542 {
7543 arg6 = wxString_in_helper(obj5);
7544 if (arg6 == NULL) SWIG_fail;
7545 temp6 = True;
7546 }
7547 }
7548 if (obj6) {
7549 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 }
7552 {
7553 if (!wxPyCheckForApp()) SWIG_fail;
7554 PyThreadState* __tstate = wxPyBeginAllowThreads();
7555 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7556
7557 wxPyEndAllowThreads(__tstate);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7561 {
7562 if (temp6)
7563 delete arg6;
7564 }
7565 return resultobj;
7566 fail:
7567 {
7568 if (temp6)
7569 delete arg6;
7570 }
7571 return NULL;
7572 }
7573
7574
7575 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7576 PyObject *resultobj;
7577 wxFont *arg1 = (wxFont *) 0 ;
7578 PyObject * obj0 = 0 ;
7579 char *kwnames[] = {
7580 (char *) "self", NULL
7581 };
7582
7583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7586 {
7587 PyThreadState* __tstate = wxPyBeginAllowThreads();
7588 delete arg1;
7589
7590 wxPyEndAllowThreads(__tstate);
7591 if (PyErr_Occurred()) SWIG_fail;
7592 }
7593 Py_INCREF(Py_None); resultobj = Py_None;
7594 return resultobj;
7595 fail:
7596 return NULL;
7597 }
7598
7599
7600 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7601 PyObject *resultobj;
7602 wxNativeFontInfo *arg1 = 0 ;
7603 wxFont *result;
7604 PyObject * obj0 = 0 ;
7605 char *kwnames[] = {
7606 (char *) "info", NULL
7607 };
7608
7609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7611 SWIG_POINTER_EXCEPTION | 0)) == -1)
7612 SWIG_fail;
7613 if (arg1 == NULL) {
7614 PyErr_SetString(PyExc_TypeError,"null reference");
7615 SWIG_fail;
7616 }
7617 {
7618 if (!wxPyCheckForApp()) SWIG_fail;
7619 PyThreadState* __tstate = wxPyBeginAllowThreads();
7620 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7621
7622 wxPyEndAllowThreads(__tstate);
7623 if (PyErr_Occurred()) SWIG_fail;
7624 }
7625 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7633 PyObject *resultobj;
7634 wxString *arg1 = 0 ;
7635 wxFont *result;
7636 bool temp1 = False ;
7637 PyObject * obj0 = 0 ;
7638 char *kwnames[] = {
7639 (char *) "info", NULL
7640 };
7641
7642 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7643 {
7644 arg1 = wxString_in_helper(obj0);
7645 if (arg1 == NULL) SWIG_fail;
7646 temp1 = True;
7647 }
7648 {
7649 if (!wxPyCheckForApp()) SWIG_fail;
7650 PyThreadState* __tstate = wxPyBeginAllowThreads();
7651 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7652
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7657 {
7658 if (temp1)
7659 delete arg1;
7660 }
7661 return resultobj;
7662 fail:
7663 {
7664 if (temp1)
7665 delete arg1;
7666 }
7667 return NULL;
7668 }
7669
7670
7671 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7672 PyObject *resultobj;
7673 int arg1 ;
7674 int arg2 ;
7675 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7676 wxString const &arg4_defvalue = wxPyEmptyString ;
7677 wxString *arg4 = (wxString *) &arg4_defvalue ;
7678 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7679 wxFont *result;
7680 bool temp4 = False ;
7681 PyObject * obj0 = 0 ;
7682 PyObject * obj1 = 0 ;
7683 PyObject * obj2 = 0 ;
7684 PyObject * obj3 = 0 ;
7685 PyObject * obj4 = 0 ;
7686 char *kwnames[] = {
7687 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7688 };
7689
7690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7691 arg1 = (int) SWIG_AsInt(obj0);
7692 if (PyErr_Occurred()) SWIG_fail;
7693 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7694 if (PyErr_Occurred()) SWIG_fail;
7695 if (obj2) {
7696 arg3 = (int) SWIG_AsInt(obj2);
7697 if (PyErr_Occurred()) SWIG_fail;
7698 }
7699 if (obj3) {
7700 {
7701 arg4 = wxString_in_helper(obj3);
7702 if (arg4 == NULL) SWIG_fail;
7703 temp4 = True;
7704 }
7705 }
7706 if (obj4) {
7707 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7708 if (PyErr_Occurred()) SWIG_fail;
7709 }
7710 {
7711 if (!wxPyCheckForApp()) SWIG_fail;
7712 PyThreadState* __tstate = wxPyBeginAllowThreads();
7713 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7714
7715 wxPyEndAllowThreads(__tstate);
7716 if (PyErr_Occurred()) SWIG_fail;
7717 }
7718 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7719 {
7720 if (temp4)
7721 delete arg4;
7722 }
7723 return resultobj;
7724 fail:
7725 {
7726 if (temp4)
7727 delete arg4;
7728 }
7729 return NULL;
7730 }
7731
7732
7733 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7734 PyObject *resultobj;
7735 wxFont *arg1 = (wxFont *) 0 ;
7736 bool result;
7737 PyObject * obj0 = 0 ;
7738 char *kwnames[] = {
7739 (char *) "self", NULL
7740 };
7741
7742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7745 {
7746 PyThreadState* __tstate = wxPyBeginAllowThreads();
7747 result = (bool)((wxFont const *)arg1)->Ok();
7748
7749 wxPyEndAllowThreads(__tstate);
7750 if (PyErr_Occurred()) SWIG_fail;
7751 }
7752 {
7753 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7754 }
7755 return resultobj;
7756 fail:
7757 return NULL;
7758 }
7759
7760
7761 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7762 PyObject *resultobj;
7763 wxFont *arg1 = (wxFont *) 0 ;
7764 wxFont *arg2 = (wxFont *) 0 ;
7765 bool result;
7766 PyObject * obj0 = 0 ;
7767 PyObject * obj1 = 0 ;
7768 char *kwnames[] = {
7769 (char *) "self",(char *) "other", NULL
7770 };
7771
7772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7775 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7777 {
7778 PyThreadState* __tstate = wxPyBeginAllowThreads();
7779 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7780
7781 wxPyEndAllowThreads(__tstate);
7782 if (PyErr_Occurred()) SWIG_fail;
7783 }
7784 {
7785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7786 }
7787 return resultobj;
7788 fail:
7789 return NULL;
7790 }
7791
7792
7793 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7794 PyObject *resultobj;
7795 wxFont *arg1 = (wxFont *) 0 ;
7796 wxFont *arg2 = (wxFont *) 0 ;
7797 bool result;
7798 PyObject * obj0 = 0 ;
7799 PyObject * obj1 = 0 ;
7800 char *kwnames[] = {
7801 (char *) "self",(char *) "other", NULL
7802 };
7803
7804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7805 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7806 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7807 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7809 {
7810 PyThreadState* __tstate = wxPyBeginAllowThreads();
7811 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7812
7813 wxPyEndAllowThreads(__tstate);
7814 if (PyErr_Occurred()) SWIG_fail;
7815 }
7816 {
7817 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7818 }
7819 return resultobj;
7820 fail:
7821 return NULL;
7822 }
7823
7824
7825 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7826 PyObject *resultobj;
7827 wxFont *arg1 = (wxFont *) 0 ;
7828 int result;
7829 PyObject * obj0 = 0 ;
7830 char *kwnames[] = {
7831 (char *) "self", NULL
7832 };
7833
7834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7837 {
7838 PyThreadState* __tstate = wxPyBeginAllowThreads();
7839 result = (int)((wxFont const *)arg1)->GetPointSize();
7840
7841 wxPyEndAllowThreads(__tstate);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_FromInt((int)result);
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj;
7853 wxFont *arg1 = (wxFont *) 0 ;
7854 int result;
7855 PyObject * obj0 = 0 ;
7856 char *kwnames[] = {
7857 (char *) "self", NULL
7858 };
7859
7860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7863 {
7864 PyThreadState* __tstate = wxPyBeginAllowThreads();
7865 result = (int)((wxFont const *)arg1)->GetFamily();
7866
7867 wxPyEndAllowThreads(__tstate);
7868 if (PyErr_Occurred()) SWIG_fail;
7869 }
7870 resultobj = SWIG_FromInt((int)result);
7871 return resultobj;
7872 fail:
7873 return NULL;
7874 }
7875
7876
7877 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7878 PyObject *resultobj;
7879 wxFont *arg1 = (wxFont *) 0 ;
7880 int result;
7881 PyObject * obj0 = 0 ;
7882 char *kwnames[] = {
7883 (char *) "self", NULL
7884 };
7885
7886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7889 {
7890 PyThreadState* __tstate = wxPyBeginAllowThreads();
7891 result = (int)((wxFont const *)arg1)->GetStyle();
7892
7893 wxPyEndAllowThreads(__tstate);
7894 if (PyErr_Occurred()) SWIG_fail;
7895 }
7896 resultobj = SWIG_FromInt((int)result);
7897 return resultobj;
7898 fail:
7899 return NULL;
7900 }
7901
7902
7903 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7904 PyObject *resultobj;
7905 wxFont *arg1 = (wxFont *) 0 ;
7906 int result;
7907 PyObject * obj0 = 0 ;
7908 char *kwnames[] = {
7909 (char *) "self", NULL
7910 };
7911
7912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7915 {
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (int)((wxFont const *)arg1)->GetWeight();
7918
7919 wxPyEndAllowThreads(__tstate);
7920 if (PyErr_Occurred()) SWIG_fail;
7921 }
7922 resultobj = SWIG_FromInt((int)result);
7923 return resultobj;
7924 fail:
7925 return NULL;
7926 }
7927
7928
7929 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7930 PyObject *resultobj;
7931 wxFont *arg1 = (wxFont *) 0 ;
7932 bool result;
7933 PyObject * obj0 = 0 ;
7934 char *kwnames[] = {
7935 (char *) "self", NULL
7936 };
7937
7938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7941 {
7942 PyThreadState* __tstate = wxPyBeginAllowThreads();
7943 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7944
7945 wxPyEndAllowThreads(__tstate);
7946 if (PyErr_Occurred()) SWIG_fail;
7947 }
7948 {
7949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7950 }
7951 return resultobj;
7952 fail:
7953 return NULL;
7954 }
7955
7956
7957 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7958 PyObject *resultobj;
7959 wxFont *arg1 = (wxFont *) 0 ;
7960 wxString result;
7961 PyObject * obj0 = 0 ;
7962 char *kwnames[] = {
7963 (char *) "self", NULL
7964 };
7965
7966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7969 {
7970 PyThreadState* __tstate = wxPyBeginAllowThreads();
7971 result = ((wxFont const *)arg1)->GetFaceName();
7972
7973 wxPyEndAllowThreads(__tstate);
7974 if (PyErr_Occurred()) SWIG_fail;
7975 }
7976 {
7977 #if wxUSE_UNICODE
7978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7979 #else
7980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7981 #endif
7982 }
7983 return resultobj;
7984 fail:
7985 return NULL;
7986 }
7987
7988
7989 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7990 PyObject *resultobj;
7991 wxFont *arg1 = (wxFont *) 0 ;
7992 int result;
7993 PyObject * obj0 = 0 ;
7994 char *kwnames[] = {
7995 (char *) "self", NULL
7996 };
7997
7998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
7999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8001 {
8002 PyThreadState* __tstate = wxPyBeginAllowThreads();
8003 result = (int)((wxFont const *)arg1)->GetEncoding();
8004
8005 wxPyEndAllowThreads(__tstate);
8006 if (PyErr_Occurred()) SWIG_fail;
8007 }
8008 resultobj = SWIG_FromInt((int)result);
8009 return resultobj;
8010 fail:
8011 return NULL;
8012 }
8013
8014
8015 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8016 PyObject *resultobj;
8017 wxFont *arg1 = (wxFont *) 0 ;
8018 wxNativeFontInfo *result;
8019 PyObject * obj0 = 0 ;
8020 char *kwnames[] = {
8021 (char *) "self", NULL
8022 };
8023
8024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8027 {
8028 PyThreadState* __tstate = wxPyBeginAllowThreads();
8029 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8030
8031 wxPyEndAllowThreads(__tstate);
8032 if (PyErr_Occurred()) SWIG_fail;
8033 }
8034 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8035 return resultobj;
8036 fail:
8037 return NULL;
8038 }
8039
8040
8041 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8042 PyObject *resultobj;
8043 wxFont *arg1 = (wxFont *) 0 ;
8044 bool result;
8045 PyObject * obj0 = 0 ;
8046 char *kwnames[] = {
8047 (char *) "self", NULL
8048 };
8049
8050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8053 {
8054 PyThreadState* __tstate = wxPyBeginAllowThreads();
8055 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8056
8057 wxPyEndAllowThreads(__tstate);
8058 if (PyErr_Occurred()) SWIG_fail;
8059 }
8060 {
8061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8062 }
8063 return resultobj;
8064 fail:
8065 return NULL;
8066 }
8067
8068
8069 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8070 PyObject *resultobj;
8071 wxFont *arg1 = (wxFont *) 0 ;
8072 wxString result;
8073 PyObject * obj0 = 0 ;
8074 char *kwnames[] = {
8075 (char *) "self", NULL
8076 };
8077
8078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8081 {
8082 PyThreadState* __tstate = wxPyBeginAllowThreads();
8083 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8084
8085 wxPyEndAllowThreads(__tstate);
8086 if (PyErr_Occurred()) SWIG_fail;
8087 }
8088 {
8089 #if wxUSE_UNICODE
8090 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8091 #else
8092 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8093 #endif
8094 }
8095 return resultobj;
8096 fail:
8097 return NULL;
8098 }
8099
8100
8101 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8102 PyObject *resultobj;
8103 wxFont *arg1 = (wxFont *) 0 ;
8104 wxString result;
8105 PyObject * obj0 = 0 ;
8106 char *kwnames[] = {
8107 (char *) "self", NULL
8108 };
8109
8110 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8111 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8112 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8113 {
8114 PyThreadState* __tstate = wxPyBeginAllowThreads();
8115 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8116
8117 wxPyEndAllowThreads(__tstate);
8118 if (PyErr_Occurred()) SWIG_fail;
8119 }
8120 {
8121 #if wxUSE_UNICODE
8122 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8123 #else
8124 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8125 #endif
8126 }
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj;
8135 wxFont *arg1 = (wxFont *) 0 ;
8136 int arg2 ;
8137 PyObject * obj0 = 0 ;
8138 PyObject * obj1 = 0 ;
8139 char *kwnames[] = {
8140 (char *) "self",(char *) "pointSize", NULL
8141 };
8142
8143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8146 arg2 = (int) SWIG_AsInt(obj1);
8147 if (PyErr_Occurred()) SWIG_fail;
8148 {
8149 PyThreadState* __tstate = wxPyBeginAllowThreads();
8150 (arg1)->SetPointSize(arg2);
8151
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 Py_INCREF(Py_None); resultobj = Py_None;
8156 return resultobj;
8157 fail:
8158 return NULL;
8159 }
8160
8161
8162 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8163 PyObject *resultobj;
8164 wxFont *arg1 = (wxFont *) 0 ;
8165 int arg2 ;
8166 PyObject * obj0 = 0 ;
8167 PyObject * obj1 = 0 ;
8168 char *kwnames[] = {
8169 (char *) "self",(char *) "family", NULL
8170 };
8171
8172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8175 arg2 = (int) SWIG_AsInt(obj1);
8176 if (PyErr_Occurred()) SWIG_fail;
8177 {
8178 PyThreadState* __tstate = wxPyBeginAllowThreads();
8179 (arg1)->SetFamily(arg2);
8180
8181 wxPyEndAllowThreads(__tstate);
8182 if (PyErr_Occurred()) SWIG_fail;
8183 }
8184 Py_INCREF(Py_None); resultobj = Py_None;
8185 return resultobj;
8186 fail:
8187 return NULL;
8188 }
8189
8190
8191 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8192 PyObject *resultobj;
8193 wxFont *arg1 = (wxFont *) 0 ;
8194 int arg2 ;
8195 PyObject * obj0 = 0 ;
8196 PyObject * obj1 = 0 ;
8197 char *kwnames[] = {
8198 (char *) "self",(char *) "style", NULL
8199 };
8200
8201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8204 arg2 = (int) SWIG_AsInt(obj1);
8205 if (PyErr_Occurred()) SWIG_fail;
8206 {
8207 PyThreadState* __tstate = wxPyBeginAllowThreads();
8208 (arg1)->SetStyle(arg2);
8209
8210 wxPyEndAllowThreads(__tstate);
8211 if (PyErr_Occurred()) SWIG_fail;
8212 }
8213 Py_INCREF(Py_None); resultobj = Py_None;
8214 return resultobj;
8215 fail:
8216 return NULL;
8217 }
8218
8219
8220 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8221 PyObject *resultobj;
8222 wxFont *arg1 = (wxFont *) 0 ;
8223 int arg2 ;
8224 PyObject * obj0 = 0 ;
8225 PyObject * obj1 = 0 ;
8226 char *kwnames[] = {
8227 (char *) "self",(char *) "weight", NULL
8228 };
8229
8230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8233 arg2 = (int) SWIG_AsInt(obj1);
8234 if (PyErr_Occurred()) SWIG_fail;
8235 {
8236 PyThreadState* __tstate = wxPyBeginAllowThreads();
8237 (arg1)->SetWeight(arg2);
8238
8239 wxPyEndAllowThreads(__tstate);
8240 if (PyErr_Occurred()) SWIG_fail;
8241 }
8242 Py_INCREF(Py_None); resultobj = Py_None;
8243 return resultobj;
8244 fail:
8245 return NULL;
8246 }
8247
8248
8249 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8250 PyObject *resultobj;
8251 wxFont *arg1 = (wxFont *) 0 ;
8252 wxString *arg2 = 0 ;
8253 bool temp2 = False ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char *kwnames[] = {
8257 (char *) "self",(char *) "faceName", NULL
8258 };
8259
8260 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8261 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8262 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8263 {
8264 arg2 = wxString_in_helper(obj1);
8265 if (arg2 == NULL) SWIG_fail;
8266 temp2 = True;
8267 }
8268 {
8269 PyThreadState* __tstate = wxPyBeginAllowThreads();
8270 (arg1)->SetFaceName((wxString const &)*arg2);
8271
8272 wxPyEndAllowThreads(__tstate);
8273 if (PyErr_Occurred()) SWIG_fail;
8274 }
8275 Py_INCREF(Py_None); resultobj = Py_None;
8276 {
8277 if (temp2)
8278 delete arg2;
8279 }
8280 return resultobj;
8281 fail:
8282 {
8283 if (temp2)
8284 delete arg2;
8285 }
8286 return NULL;
8287 }
8288
8289
8290 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8291 PyObject *resultobj;
8292 wxFont *arg1 = (wxFont *) 0 ;
8293 bool arg2 ;
8294 PyObject * obj0 = 0 ;
8295 PyObject * obj1 = 0 ;
8296 char *kwnames[] = {
8297 (char *) "self",(char *) "underlined", NULL
8298 };
8299
8300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8303 arg2 = (bool) SWIG_AsBool(obj1);
8304 if (PyErr_Occurred()) SWIG_fail;
8305 {
8306 PyThreadState* __tstate = wxPyBeginAllowThreads();
8307 (arg1)->SetUnderlined(arg2);
8308
8309 wxPyEndAllowThreads(__tstate);
8310 if (PyErr_Occurred()) SWIG_fail;
8311 }
8312 Py_INCREF(Py_None); resultobj = Py_None;
8313 return resultobj;
8314 fail:
8315 return NULL;
8316 }
8317
8318
8319 static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8320 PyObject *resultobj;
8321 wxFont *arg1 = (wxFont *) 0 ;
8322 int arg2 ;
8323 PyObject * obj0 = 0 ;
8324 PyObject * obj1 = 0 ;
8325 char *kwnames[] = {
8326 (char *) "self",(char *) "encoding", NULL
8327 };
8328
8329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8332 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8333 if (PyErr_Occurred()) SWIG_fail;
8334 {
8335 PyThreadState* __tstate = wxPyBeginAllowThreads();
8336 (arg1)->SetEncoding((wxFontEncoding )arg2);
8337
8338 wxPyEndAllowThreads(__tstate);
8339 if (PyErr_Occurred()) SWIG_fail;
8340 }
8341 Py_INCREF(Py_None); resultobj = Py_None;
8342 return resultobj;
8343 fail:
8344 return NULL;
8345 }
8346
8347
8348 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8349 PyObject *resultobj;
8350 wxFont *arg1 = (wxFont *) 0 ;
8351 wxNativeFontInfo *arg2 = 0 ;
8352 PyObject * obj0 = 0 ;
8353 PyObject * obj1 = 0 ;
8354 char *kwnames[] = {
8355 (char *) "self",(char *) "info", NULL
8356 };
8357
8358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8361 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8362 SWIG_POINTER_EXCEPTION | 0)) == -1)
8363 SWIG_fail;
8364 if (arg2 == NULL) {
8365 PyErr_SetString(PyExc_TypeError,"null reference");
8366 SWIG_fail;
8367 }
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8371
8372 wxPyEndAllowThreads(__tstate);
8373 if (PyErr_Occurred()) SWIG_fail;
8374 }
8375 Py_INCREF(Py_None); resultobj = Py_None;
8376 return resultobj;
8377 fail:
8378 return NULL;
8379 }
8380
8381
8382 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8383 PyObject *resultobj;
8384 wxFont *arg1 = (wxFont *) 0 ;
8385 wxString *arg2 = 0 ;
8386 bool temp2 = False ;
8387 PyObject * obj0 = 0 ;
8388 PyObject * obj1 = 0 ;
8389 char *kwnames[] = {
8390 (char *) "self",(char *) "info", NULL
8391 };
8392
8393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8396 {
8397 arg2 = wxString_in_helper(obj1);
8398 if (arg2 == NULL) SWIG_fail;
8399 temp2 = True;
8400 }
8401 {
8402 PyThreadState* __tstate = wxPyBeginAllowThreads();
8403 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8404
8405 wxPyEndAllowThreads(__tstate);
8406 if (PyErr_Occurred()) SWIG_fail;
8407 }
8408 Py_INCREF(Py_None); resultobj = Py_None;
8409 {
8410 if (temp2)
8411 delete arg2;
8412 }
8413 return resultobj;
8414 fail:
8415 {
8416 if (temp2)
8417 delete arg2;
8418 }
8419 return NULL;
8420 }
8421
8422
8423 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8424 PyObject *resultobj;
8425 wxFont *arg1 = (wxFont *) 0 ;
8426 wxString *arg2 = 0 ;
8427 bool temp2 = False ;
8428 PyObject * obj0 = 0 ;
8429 PyObject * obj1 = 0 ;
8430 char *kwnames[] = {
8431 (char *) "self",(char *) "info", NULL
8432 };
8433
8434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8437 {
8438 arg2 = wxString_in_helper(obj1);
8439 if (arg2 == NULL) SWIG_fail;
8440 temp2 = True;
8441 }
8442 {
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8445
8446 wxPyEndAllowThreads(__tstate);
8447 if (PyErr_Occurred()) SWIG_fail;
8448 }
8449 Py_INCREF(Py_None); resultobj = Py_None;
8450 {
8451 if (temp2)
8452 delete arg2;
8453 }
8454 return resultobj;
8455 fail:
8456 {
8457 if (temp2)
8458 delete arg2;
8459 }
8460 return NULL;
8461 }
8462
8463
8464 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8465 PyObject *resultobj;
8466 wxFont *arg1 = (wxFont *) 0 ;
8467 wxString result;
8468 PyObject * obj0 = 0 ;
8469 char *kwnames[] = {
8470 (char *) "self", NULL
8471 };
8472
8473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8476 {
8477 PyThreadState* __tstate = wxPyBeginAllowThreads();
8478 result = ((wxFont const *)arg1)->GetFamilyString();
8479
8480 wxPyEndAllowThreads(__tstate);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 {
8484 #if wxUSE_UNICODE
8485 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8486 #else
8487 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8488 #endif
8489 }
8490 return resultobj;
8491 fail:
8492 return NULL;
8493 }
8494
8495
8496 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8497 PyObject *resultobj;
8498 wxFont *arg1 = (wxFont *) 0 ;
8499 wxString result;
8500 PyObject * obj0 = 0 ;
8501 char *kwnames[] = {
8502 (char *) "self", NULL
8503 };
8504
8505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8508 {
8509 PyThreadState* __tstate = wxPyBeginAllowThreads();
8510 result = ((wxFont const *)arg1)->GetStyleString();
8511
8512 wxPyEndAllowThreads(__tstate);
8513 if (PyErr_Occurred()) SWIG_fail;
8514 }
8515 {
8516 #if wxUSE_UNICODE
8517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8518 #else
8519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8520 #endif
8521 }
8522 return resultobj;
8523 fail:
8524 return NULL;
8525 }
8526
8527
8528 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8529 PyObject *resultobj;
8530 wxFont *arg1 = (wxFont *) 0 ;
8531 wxString result;
8532 PyObject * obj0 = 0 ;
8533 char *kwnames[] = {
8534 (char *) "self", NULL
8535 };
8536
8537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8540 {
8541 PyThreadState* __tstate = wxPyBeginAllowThreads();
8542 result = ((wxFont const *)arg1)->GetWeightString();
8543
8544 wxPyEndAllowThreads(__tstate);
8545 if (PyErr_Occurred()) SWIG_fail;
8546 }
8547 {
8548 #if wxUSE_UNICODE
8549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8550 #else
8551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8552 #endif
8553 }
8554 return resultobj;
8555 fail:
8556 return NULL;
8557 }
8558
8559
8560 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8561 PyObject *resultobj;
8562 wxFont *arg1 = (wxFont *) 0 ;
8563 bool arg2 = (bool) True ;
8564 PyObject * obj0 = 0 ;
8565 PyObject * obj1 = 0 ;
8566 char *kwnames[] = {
8567 (char *) "self",(char *) "no", NULL
8568 };
8569
8570 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8571 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8572 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8573 if (obj1) {
8574 arg2 = (bool) SWIG_AsBool(obj1);
8575 if (PyErr_Occurred()) SWIG_fail;
8576 }
8577 {
8578 PyThreadState* __tstate = wxPyBeginAllowThreads();
8579 (arg1)->SetNoAntiAliasing(arg2);
8580
8581 wxPyEndAllowThreads(__tstate);
8582 if (PyErr_Occurred()) SWIG_fail;
8583 }
8584 Py_INCREF(Py_None); resultobj = Py_None;
8585 return resultobj;
8586 fail:
8587 return NULL;
8588 }
8589
8590
8591 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject *resultobj;
8593 wxFont *arg1 = (wxFont *) 0 ;
8594 bool result;
8595 PyObject * obj0 = 0 ;
8596 char *kwnames[] = {
8597 (char *) "self", NULL
8598 };
8599
8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8603 {
8604 PyThreadState* __tstate = wxPyBeginAllowThreads();
8605 result = (bool)(arg1)->GetNoAntiAliasing();
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 {
8611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8612 }
8613 return resultobj;
8614 fail:
8615 return NULL;
8616 }
8617
8618
8619 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8620 PyObject *resultobj;
8621 int result;
8622 char *kwnames[] = {
8623 NULL
8624 };
8625
8626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8627 {
8628 if (!wxPyCheckForApp()) SWIG_fail;
8629 PyThreadState* __tstate = wxPyBeginAllowThreads();
8630 result = (int)wxFont::GetDefaultEncoding();
8631
8632 wxPyEndAllowThreads(__tstate);
8633 if (PyErr_Occurred()) SWIG_fail;
8634 }
8635 resultobj = SWIG_FromInt((int)result);
8636 return resultobj;
8637 fail:
8638 return NULL;
8639 }
8640
8641
8642 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8643 PyObject *resultobj;
8644 int arg1 ;
8645 PyObject * obj0 = 0 ;
8646 char *kwnames[] = {
8647 (char *) "encoding", NULL
8648 };
8649
8650 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8651 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8652 if (PyErr_Occurred()) SWIG_fail;
8653 {
8654 if (!wxPyCheckForApp()) SWIG_fail;
8655 PyThreadState* __tstate = wxPyBeginAllowThreads();
8656 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8657
8658 wxPyEndAllowThreads(__tstate);
8659 if (PyErr_Occurred()) SWIG_fail;
8660 }
8661 Py_INCREF(Py_None); resultobj = Py_None;
8662 return resultobj;
8663 fail:
8664 return NULL;
8665 }
8666
8667
8668 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8669 PyObject *obj;
8670 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8671 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8672 Py_INCREF(obj);
8673 return Py_BuildValue((char *)"");
8674 }
8675 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8676 PyObject *resultobj;
8677 wxPyFontEnumerator *result;
8678 char *kwnames[] = {
8679 NULL
8680 };
8681
8682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8683 {
8684 if (!wxPyCheckForApp()) SWIG_fail;
8685 PyThreadState* __tstate = wxPyBeginAllowThreads();
8686 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8687
8688 wxPyEndAllowThreads(__tstate);
8689 if (PyErr_Occurred()) SWIG_fail;
8690 }
8691 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8692 return resultobj;
8693 fail:
8694 return NULL;
8695 }
8696
8697
8698 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8699 PyObject *resultobj;
8700 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8701 PyObject * obj0 = 0 ;
8702 char *kwnames[] = {
8703 (char *) "self", NULL
8704 };
8705
8706 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8707 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8708 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8709 {
8710 PyThreadState* __tstate = wxPyBeginAllowThreads();
8711 delete arg1;
8712
8713 wxPyEndAllowThreads(__tstate);
8714 if (PyErr_Occurred()) SWIG_fail;
8715 }
8716 Py_INCREF(Py_None); resultobj = Py_None;
8717 return resultobj;
8718 fail:
8719 return NULL;
8720 }
8721
8722
8723 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8724 PyObject *resultobj;
8725 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8726 PyObject *arg2 = (PyObject *) 0 ;
8727 PyObject *arg3 = (PyObject *) 0 ;
8728 bool arg4 ;
8729 PyObject * obj0 = 0 ;
8730 PyObject * obj1 = 0 ;
8731 PyObject * obj2 = 0 ;
8732 PyObject * obj3 = 0 ;
8733 char *kwnames[] = {
8734 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8735 };
8736
8737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8738 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8739 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8740 arg2 = obj1;
8741 arg3 = obj2;
8742 arg4 = (bool) SWIG_AsBool(obj3);
8743 if (PyErr_Occurred()) SWIG_fail;
8744 {
8745 PyThreadState* __tstate = wxPyBeginAllowThreads();
8746 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8747
8748 wxPyEndAllowThreads(__tstate);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 Py_INCREF(Py_None); resultobj = Py_None;
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8759 PyObject *resultobj;
8760 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8761 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8762 bool arg3 = (bool) False ;
8763 bool result;
8764 PyObject * obj0 = 0 ;
8765 PyObject * obj1 = 0 ;
8766 PyObject * obj2 = 0 ;
8767 char *kwnames[] = {
8768 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8769 };
8770
8771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8774 if (obj1) {
8775 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 if (obj2) {
8779 arg3 = (bool) SWIG_AsBool(obj2);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 {
8783 PyThreadState* __tstate = wxPyBeginAllowThreads();
8784 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8785
8786 wxPyEndAllowThreads(__tstate);
8787 if (PyErr_Occurred()) SWIG_fail;
8788 }
8789 {
8790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8791 }
8792 return resultobj;
8793 fail:
8794 return NULL;
8795 }
8796
8797
8798 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8799 PyObject *resultobj;
8800 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8801 wxString const &arg2_defvalue = wxPyEmptyString ;
8802 wxString *arg2 = (wxString *) &arg2_defvalue ;
8803 bool result;
8804 bool temp2 = False ;
8805 PyObject * obj0 = 0 ;
8806 PyObject * obj1 = 0 ;
8807 char *kwnames[] = {
8808 (char *) "self",(char *) "facename", NULL
8809 };
8810
8811 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8812 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8813 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8814 if (obj1) {
8815 {
8816 arg2 = wxString_in_helper(obj1);
8817 if (arg2 == NULL) SWIG_fail;
8818 temp2 = True;
8819 }
8820 }
8821 {
8822 PyThreadState* __tstate = wxPyBeginAllowThreads();
8823 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8824
8825 wxPyEndAllowThreads(__tstate);
8826 if (PyErr_Occurred()) SWIG_fail;
8827 }
8828 {
8829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8830 }
8831 {
8832 if (temp2)
8833 delete arg2;
8834 }
8835 return resultobj;
8836 fail:
8837 {
8838 if (temp2)
8839 delete arg2;
8840 }
8841 return NULL;
8842 }
8843
8844
8845 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj;
8847 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8848 PyObject *result;
8849 PyObject * obj0 = 0 ;
8850 char *kwnames[] = {
8851 (char *) "self", NULL
8852 };
8853
8854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8857 {
8858 PyThreadState* __tstate = wxPyBeginAllowThreads();
8859 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8860
8861 wxPyEndAllowThreads(__tstate);
8862 if (PyErr_Occurred()) SWIG_fail;
8863 }
8864 resultobj = result;
8865 return resultobj;
8866 fail:
8867 return NULL;
8868 }
8869
8870
8871 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8872 PyObject *resultobj;
8873 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8874 PyObject *result;
8875 PyObject * obj0 = 0 ;
8876 char *kwnames[] = {
8877 (char *) "self", NULL
8878 };
8879
8880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8883 {
8884 PyThreadState* __tstate = wxPyBeginAllowThreads();
8885 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8886
8887 wxPyEndAllowThreads(__tstate);
8888 if (PyErr_Occurred()) SWIG_fail;
8889 }
8890 resultobj = result;
8891 return resultobj;
8892 fail:
8893 return NULL;
8894 }
8895
8896
8897 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8898 PyObject *obj;
8899 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8900 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8901 Py_INCREF(obj);
8902 return Py_BuildValue((char *)"");
8903 }
8904 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8905 PyObject *resultobj;
8906 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8907 int arg2 ;
8908 PyObject * obj0 = 0 ;
8909 PyObject * obj1 = 0 ;
8910 char *kwnames[] = {
8911 (char *) "self",(char *) "Language", NULL
8912 };
8913
8914 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8915 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8916 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8917 arg2 = (int) SWIG_AsInt(obj1);
8918 if (PyErr_Occurred()) SWIG_fail;
8919 if (arg1) (arg1)->Language = arg2;
8920
8921 Py_INCREF(Py_None); resultobj = Py_None;
8922 return resultobj;
8923 fail:
8924 return NULL;
8925 }
8926
8927
8928 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8929 PyObject *resultobj;
8930 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8931 int result;
8932 PyObject * obj0 = 0 ;
8933 char *kwnames[] = {
8934 (char *) "self", NULL
8935 };
8936
8937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8940 result = (int) ((arg1)->Language);
8941
8942 resultobj = SWIG_FromInt((int)result);
8943 return resultobj;
8944 fail:
8945 return NULL;
8946 }
8947
8948
8949 static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8950 PyObject *resultobj;
8951 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8952 wxString *arg2 = (wxString *) 0 ;
8953 bool temp2 = False ;
8954 PyObject * obj0 = 0 ;
8955 PyObject * obj1 = 0 ;
8956 char *kwnames[] = {
8957 (char *) "self",(char *) "CanonicalName", NULL
8958 };
8959
8960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8963 {
8964 arg2 = wxString_in_helper(obj1);
8965 if (arg2 == NULL) SWIG_fail;
8966 temp2 = True;
8967 }
8968 if (arg1) (arg1)->CanonicalName = *arg2;
8969
8970 Py_INCREF(Py_None); resultobj = Py_None;
8971 {
8972 if (temp2)
8973 delete arg2;
8974 }
8975 return resultobj;
8976 fail:
8977 {
8978 if (temp2)
8979 delete arg2;
8980 }
8981 return NULL;
8982 }
8983
8984
8985 static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8986 PyObject *resultobj;
8987 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8988 wxString *result;
8989 PyObject * obj0 = 0 ;
8990 char *kwnames[] = {
8991 (char *) "self", NULL
8992 };
8993
8994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
8995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8997 result = (wxString *)& ((arg1)->CanonicalName);
8998
8999 {
9000 #if wxUSE_UNICODE
9001 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9002 #else
9003 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9004 #endif
9005 }
9006 return resultobj;
9007 fail:
9008 return NULL;
9009 }
9010
9011
9012 static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9013 PyObject *resultobj;
9014 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9015 wxString *arg2 = (wxString *) 0 ;
9016 bool temp2 = False ;
9017 PyObject * obj0 = 0 ;
9018 PyObject * obj1 = 0 ;
9019 char *kwnames[] = {
9020 (char *) "self",(char *) "Description", NULL
9021 };
9022
9023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9024 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9025 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9026 {
9027 arg2 = wxString_in_helper(obj1);
9028 if (arg2 == NULL) SWIG_fail;
9029 temp2 = True;
9030 }
9031 if (arg1) (arg1)->Description = *arg2;
9032
9033 Py_INCREF(Py_None); resultobj = Py_None;
9034 {
9035 if (temp2)
9036 delete arg2;
9037 }
9038 return resultobj;
9039 fail:
9040 {
9041 if (temp2)
9042 delete arg2;
9043 }
9044 return NULL;
9045 }
9046
9047
9048 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9049 PyObject *resultobj;
9050 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9051 wxString *result;
9052 PyObject * obj0 = 0 ;
9053 char *kwnames[] = {
9054 (char *) "self", NULL
9055 };
9056
9057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9060 result = (wxString *)& ((arg1)->Description);
9061
9062 {
9063 #if wxUSE_UNICODE
9064 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9065 #else
9066 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9067 #endif
9068 }
9069 return resultobj;
9070 fail:
9071 return NULL;
9072 }
9073
9074
9075 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9076 PyObject *obj;
9077 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9078 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9079 Py_INCREF(obj);
9080 return Py_BuildValue((char *)"");
9081 }
9082 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj;
9084 int arg1 = (int) -1 ;
9085 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9086 wxLocale *result;
9087 PyObject * obj0 = 0 ;
9088 PyObject * obj1 = 0 ;
9089 char *kwnames[] = {
9090 (char *) "language",(char *) "flags", NULL
9091 };
9092
9093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9094 if (obj0) {
9095 arg1 = (int) SWIG_AsInt(obj0);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 if (obj1) {
9099 arg2 = (int) SWIG_AsInt(obj1);
9100 if (PyErr_Occurred()) SWIG_fail;
9101 }
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = (wxLocale *)new_wxLocale(arg1,arg2);
9105
9106 wxPyEndAllowThreads(__tstate);
9107 if (PyErr_Occurred()) SWIG_fail;
9108 }
9109 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9110 return resultobj;
9111 fail:
9112 return NULL;
9113 }
9114
9115
9116 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9117 PyObject *resultobj;
9118 wxLocale *arg1 = (wxLocale *) 0 ;
9119 PyObject * obj0 = 0 ;
9120 char *kwnames[] = {
9121 (char *) "self", NULL
9122 };
9123
9124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9127 {
9128 PyThreadState* __tstate = wxPyBeginAllowThreads();
9129 delete arg1;
9130
9131 wxPyEndAllowThreads(__tstate);
9132 if (PyErr_Occurred()) SWIG_fail;
9133 }
9134 Py_INCREF(Py_None); resultobj = Py_None;
9135 return resultobj;
9136 fail:
9137 return NULL;
9138 }
9139
9140
9141 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9142 PyObject *resultobj;
9143 wxLocale *arg1 = (wxLocale *) 0 ;
9144 wxString *arg2 = 0 ;
9145 wxString const &arg3_defvalue = wxPyEmptyString ;
9146 wxString *arg3 = (wxString *) &arg3_defvalue ;
9147 wxString const &arg4_defvalue = wxPyEmptyString ;
9148 wxString *arg4 = (wxString *) &arg4_defvalue ;
9149 bool arg5 = (bool) True ;
9150 bool arg6 = (bool) False ;
9151 bool result;
9152 bool temp2 = False ;
9153 bool temp3 = False ;
9154 bool temp4 = False ;
9155 PyObject * obj0 = 0 ;
9156 PyObject * obj1 = 0 ;
9157 PyObject * obj2 = 0 ;
9158 PyObject * obj3 = 0 ;
9159 PyObject * obj4 = 0 ;
9160 PyObject * obj5 = 0 ;
9161 char *kwnames[] = {
9162 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9163 };
9164
9165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9168 {
9169 arg2 = wxString_in_helper(obj1);
9170 if (arg2 == NULL) SWIG_fail;
9171 temp2 = True;
9172 }
9173 if (obj2) {
9174 {
9175 arg3 = wxString_in_helper(obj2);
9176 if (arg3 == NULL) SWIG_fail;
9177 temp3 = True;
9178 }
9179 }
9180 if (obj3) {
9181 {
9182 arg4 = wxString_in_helper(obj3);
9183 if (arg4 == NULL) SWIG_fail;
9184 temp4 = True;
9185 }
9186 }
9187 if (obj4) {
9188 arg5 = (bool) SWIG_AsBool(obj4);
9189 if (PyErr_Occurred()) SWIG_fail;
9190 }
9191 if (obj5) {
9192 arg6 = (bool) SWIG_AsBool(obj5);
9193 if (PyErr_Occurred()) SWIG_fail;
9194 }
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9198
9199 wxPyEndAllowThreads(__tstate);
9200 if (PyErr_Occurred()) SWIG_fail;
9201 }
9202 {
9203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9204 }
9205 {
9206 if (temp2)
9207 delete arg2;
9208 }
9209 {
9210 if (temp3)
9211 delete arg3;
9212 }
9213 {
9214 if (temp4)
9215 delete arg4;
9216 }
9217 return resultobj;
9218 fail:
9219 {
9220 if (temp2)
9221 delete arg2;
9222 }
9223 {
9224 if (temp3)
9225 delete arg3;
9226 }
9227 {
9228 if (temp4)
9229 delete arg4;
9230 }
9231 return NULL;
9232 }
9233
9234
9235 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9236 PyObject *resultobj;
9237 wxLocale *arg1 = (wxLocale *) 0 ;
9238 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9239 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9240 bool result;
9241 PyObject * obj0 = 0 ;
9242 PyObject * obj1 = 0 ;
9243 PyObject * obj2 = 0 ;
9244 char *kwnames[] = {
9245 (char *) "self",(char *) "language",(char *) "flags", NULL
9246 };
9247
9248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9251 if (obj1) {
9252 arg2 = (int) SWIG_AsInt(obj1);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 }
9255 if (obj2) {
9256 arg3 = (int) SWIG_AsInt(obj2);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 {
9260 PyThreadState* __tstate = wxPyBeginAllowThreads();
9261 result = (bool)(arg1)->Init(arg2,arg3);
9262
9263 wxPyEndAllowThreads(__tstate);
9264 if (PyErr_Occurred()) SWIG_fail;
9265 }
9266 {
9267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9268 }
9269 return resultobj;
9270 fail:
9271 return NULL;
9272 }
9273
9274
9275 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9276 PyObject *resultobj;
9277 int result;
9278 char *kwnames[] = {
9279 NULL
9280 };
9281
9282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9283 {
9284 PyThreadState* __tstate = wxPyBeginAllowThreads();
9285 result = (int)wxLocale::GetSystemLanguage();
9286
9287 wxPyEndAllowThreads(__tstate);
9288 if (PyErr_Occurred()) SWIG_fail;
9289 }
9290 resultobj = SWIG_FromInt((int)result);
9291 return resultobj;
9292 fail:
9293 return NULL;
9294 }
9295
9296
9297 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9298 PyObject *resultobj;
9299 int result;
9300 char *kwnames[] = {
9301 NULL
9302 };
9303
9304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9305 {
9306 PyThreadState* __tstate = wxPyBeginAllowThreads();
9307 result = (int)wxLocale::GetSystemEncoding();
9308
9309 wxPyEndAllowThreads(__tstate);
9310 if (PyErr_Occurred()) SWIG_fail;
9311 }
9312 resultobj = SWIG_FromInt((int)result);
9313 return resultobj;
9314 fail:
9315 return NULL;
9316 }
9317
9318
9319 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9320 PyObject *resultobj;
9321 wxString result;
9322 char *kwnames[] = {
9323 NULL
9324 };
9325
9326 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9327 {
9328 PyThreadState* __tstate = wxPyBeginAllowThreads();
9329 result = wxLocale::GetSystemEncodingName();
9330
9331 wxPyEndAllowThreads(__tstate);
9332 if (PyErr_Occurred()) SWIG_fail;
9333 }
9334 {
9335 #if wxUSE_UNICODE
9336 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9337 #else
9338 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9339 #endif
9340 }
9341 return resultobj;
9342 fail:
9343 return NULL;
9344 }
9345
9346
9347 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9348 PyObject *resultobj;
9349 wxLocale *arg1 = (wxLocale *) 0 ;
9350 bool result;
9351 PyObject * obj0 = 0 ;
9352 char *kwnames[] = {
9353 (char *) "self", NULL
9354 };
9355
9356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9359 {
9360 PyThreadState* __tstate = wxPyBeginAllowThreads();
9361 result = (bool)((wxLocale const *)arg1)->IsOk();
9362
9363 wxPyEndAllowThreads(__tstate);
9364 if (PyErr_Occurred()) SWIG_fail;
9365 }
9366 {
9367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9368 }
9369 return resultobj;
9370 fail:
9371 return NULL;
9372 }
9373
9374
9375 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9376 PyObject *resultobj;
9377 wxLocale *arg1 = (wxLocale *) 0 ;
9378 wxString result;
9379 PyObject * obj0 = 0 ;
9380 char *kwnames[] = {
9381 (char *) "self", NULL
9382 };
9383
9384 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9385 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9386 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 result = ((wxLocale const *)arg1)->GetLocale();
9390
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 {
9395 #if wxUSE_UNICODE
9396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9397 #else
9398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9399 #endif
9400 }
9401 return resultobj;
9402 fail:
9403 return NULL;
9404 }
9405
9406
9407 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9408 PyObject *resultobj;
9409 wxLocale *arg1 = (wxLocale *) 0 ;
9410 int result;
9411 PyObject * obj0 = 0 ;
9412 char *kwnames[] = {
9413 (char *) "self", NULL
9414 };
9415
9416 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9417 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9418 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9419 {
9420 PyThreadState* __tstate = wxPyBeginAllowThreads();
9421 result = (int)((wxLocale const *)arg1)->GetLanguage();
9422
9423 wxPyEndAllowThreads(__tstate);
9424 if (PyErr_Occurred()) SWIG_fail;
9425 }
9426 resultobj = SWIG_FromInt((int)result);
9427 return resultobj;
9428 fail:
9429 return NULL;
9430 }
9431
9432
9433 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9434 PyObject *resultobj;
9435 wxLocale *arg1 = (wxLocale *) 0 ;
9436 wxString result;
9437 PyObject * obj0 = 0 ;
9438 char *kwnames[] = {
9439 (char *) "self", NULL
9440 };
9441
9442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9445 {
9446 PyThreadState* __tstate = wxPyBeginAllowThreads();
9447 result = ((wxLocale const *)arg1)->GetSysName();
9448
9449 wxPyEndAllowThreads(__tstate);
9450 if (PyErr_Occurred()) SWIG_fail;
9451 }
9452 {
9453 #if wxUSE_UNICODE
9454 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9455 #else
9456 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9457 #endif
9458 }
9459 return resultobj;
9460 fail:
9461 return NULL;
9462 }
9463
9464
9465 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9466 PyObject *resultobj;
9467 wxLocale *arg1 = (wxLocale *) 0 ;
9468 wxString result;
9469 PyObject * obj0 = 0 ;
9470 char *kwnames[] = {
9471 (char *) "self", NULL
9472 };
9473
9474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9477 {
9478 PyThreadState* __tstate = wxPyBeginAllowThreads();
9479 result = ((wxLocale const *)arg1)->GetCanonicalName();
9480
9481 wxPyEndAllowThreads(__tstate);
9482 if (PyErr_Occurred()) SWIG_fail;
9483 }
9484 {
9485 #if wxUSE_UNICODE
9486 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9487 #else
9488 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9489 #endif
9490 }
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9498 PyObject *resultobj;
9499 wxString *arg1 = 0 ;
9500 bool temp1 = False ;
9501 PyObject * obj0 = 0 ;
9502 char *kwnames[] = {
9503 (char *) "prefix", NULL
9504 };
9505
9506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9507 {
9508 arg1 = wxString_in_helper(obj0);
9509 if (arg1 == NULL) SWIG_fail;
9510 temp1 = True;
9511 }
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9515
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 Py_INCREF(Py_None); resultobj = Py_None;
9520 {
9521 if (temp1)
9522 delete arg1;
9523 }
9524 return resultobj;
9525 fail:
9526 {
9527 if (temp1)
9528 delete arg1;
9529 }
9530 return NULL;
9531 }
9532
9533
9534 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9535 PyObject *resultobj;
9536 wxLocale *arg1 = (wxLocale *) 0 ;
9537 wxString *arg2 = 0 ;
9538 bool result;
9539 bool temp2 = False ;
9540 PyObject * obj0 = 0 ;
9541 PyObject * obj1 = 0 ;
9542 char *kwnames[] = {
9543 (char *) "self",(char *) "szDomain", NULL
9544 };
9545
9546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9549 {
9550 arg2 = wxString_in_helper(obj1);
9551 if (arg2 == NULL) SWIG_fail;
9552 temp2 = True;
9553 }
9554 {
9555 PyThreadState* __tstate = wxPyBeginAllowThreads();
9556 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9557
9558 wxPyEndAllowThreads(__tstate);
9559 if (PyErr_Occurred()) SWIG_fail;
9560 }
9561 {
9562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9563 }
9564 {
9565 if (temp2)
9566 delete arg2;
9567 }
9568 return resultobj;
9569 fail:
9570 {
9571 if (temp2)
9572 delete arg2;
9573 }
9574 return NULL;
9575 }
9576
9577
9578 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9579 PyObject *resultobj;
9580 wxLocale *arg1 = (wxLocale *) 0 ;
9581 wxString *arg2 = 0 ;
9582 bool result;
9583 bool temp2 = False ;
9584 PyObject * obj0 = 0 ;
9585 PyObject * obj1 = 0 ;
9586 char *kwnames[] = {
9587 (char *) "self",(char *) "szDomain", NULL
9588 };
9589
9590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9593 {
9594 arg2 = wxString_in_helper(obj1);
9595 if (arg2 == NULL) SWIG_fail;
9596 temp2 = True;
9597 }
9598 {
9599 PyThreadState* __tstate = wxPyBeginAllowThreads();
9600 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9601
9602 wxPyEndAllowThreads(__tstate);
9603 if (PyErr_Occurred()) SWIG_fail;
9604 }
9605 {
9606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9607 }
9608 {
9609 if (temp2)
9610 delete arg2;
9611 }
9612 return resultobj;
9613 fail:
9614 {
9615 if (temp2)
9616 delete arg2;
9617 }
9618 return NULL;
9619 }
9620
9621
9622 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9623 PyObject *resultobj;
9624 int arg1 ;
9625 wxLanguageInfo *result;
9626 PyObject * obj0 = 0 ;
9627 char *kwnames[] = {
9628 (char *) "lang", NULL
9629 };
9630
9631 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9632 arg1 = (int) SWIG_AsInt(obj0);
9633 if (PyErr_Occurred()) SWIG_fail;
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9637
9638 wxPyEndAllowThreads(__tstate);
9639 if (PyErr_Occurred()) SWIG_fail;
9640 }
9641 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9642 return resultobj;
9643 fail:
9644 return NULL;
9645 }
9646
9647
9648 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9649 PyObject *resultobj;
9650 int arg1 ;
9651 wxString result;
9652 PyObject * obj0 = 0 ;
9653 char *kwnames[] = {
9654 (char *) "lang", NULL
9655 };
9656
9657 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9658 arg1 = (int) SWIG_AsInt(obj0);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 {
9661 PyThreadState* __tstate = wxPyBeginAllowThreads();
9662 result = wxLocale::GetLanguageName(arg1);
9663
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 {
9668 #if wxUSE_UNICODE
9669 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9670 #else
9671 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9672 #endif
9673 }
9674 return resultobj;
9675 fail:
9676 return NULL;
9677 }
9678
9679
9680 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9681 PyObject *resultobj;
9682 wxString *arg1 = 0 ;
9683 wxLanguageInfo *result;
9684 bool temp1 = False ;
9685 PyObject * obj0 = 0 ;
9686 char *kwnames[] = {
9687 (char *) "locale", NULL
9688 };
9689
9690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9691 {
9692 arg1 = wxString_in_helper(obj0);
9693 if (arg1 == NULL) SWIG_fail;
9694 temp1 = True;
9695 }
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9699
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9704 {
9705 if (temp1)
9706 delete arg1;
9707 }
9708 return resultobj;
9709 fail:
9710 {
9711 if (temp1)
9712 delete arg1;
9713 }
9714 return NULL;
9715 }
9716
9717
9718 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9719 PyObject *resultobj;
9720 wxLanguageInfo *arg1 = 0 ;
9721 PyObject * obj0 = 0 ;
9722 char *kwnames[] = {
9723 (char *) "info", NULL
9724 };
9725
9726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9728 SWIG_POINTER_EXCEPTION | 0)) == -1)
9729 SWIG_fail;
9730 if (arg1 == NULL) {
9731 PyErr_SetString(PyExc_TypeError,"null reference");
9732 SWIG_fail;
9733 }
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9737
9738 wxPyEndAllowThreads(__tstate);
9739 if (PyErr_Occurred()) SWIG_fail;
9740 }
9741 Py_INCREF(Py_None); resultobj = Py_None;
9742 return resultobj;
9743 fail:
9744 return NULL;
9745 }
9746
9747
9748 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9749 PyObject *resultobj;
9750 wxLocale *arg1 = (wxLocale *) 0 ;
9751 wxString *arg2 = 0 ;
9752 wxString const &arg3_defvalue = wxPyEmptyString ;
9753 wxString *arg3 = (wxString *) &arg3_defvalue ;
9754 wxString result;
9755 bool temp2 = False ;
9756 bool temp3 = False ;
9757 PyObject * obj0 = 0 ;
9758 PyObject * obj1 = 0 ;
9759 PyObject * obj2 = 0 ;
9760 char *kwnames[] = {
9761 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9762 };
9763
9764 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9765 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9766 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9767 {
9768 arg2 = wxString_in_helper(obj1);
9769 if (arg2 == NULL) SWIG_fail;
9770 temp2 = True;
9771 }
9772 if (obj2) {
9773 {
9774 arg3 = wxString_in_helper(obj2);
9775 if (arg3 == NULL) SWIG_fail;
9776 temp3 = True;
9777 }
9778 }
9779 {
9780 PyThreadState* __tstate = wxPyBeginAllowThreads();
9781 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9782
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 {
9787 #if wxUSE_UNICODE
9788 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9789 #else
9790 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9791 #endif
9792 }
9793 {
9794 if (temp2)
9795 delete arg2;
9796 }
9797 {
9798 if (temp3)
9799 delete arg3;
9800 }
9801 return resultobj;
9802 fail:
9803 {
9804 if (temp2)
9805 delete arg2;
9806 }
9807 {
9808 if (temp3)
9809 delete arg3;
9810 }
9811 return NULL;
9812 }
9813
9814
9815 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9816 PyObject *resultobj;
9817 wxLocale *arg1 = (wxLocale *) 0 ;
9818 wxString *result;
9819 PyObject * obj0 = 0 ;
9820 char *kwnames[] = {
9821 (char *) "self", NULL
9822 };
9823
9824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9827 {
9828 PyThreadState* __tstate = wxPyBeginAllowThreads();
9829 {
9830 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9831 result = (wxString *) &_result_ref;
9832 }
9833
9834 wxPyEndAllowThreads(__tstate);
9835 if (PyErr_Occurred()) SWIG_fail;
9836 }
9837 {
9838 #if wxUSE_UNICODE
9839 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9840 #else
9841 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9842 #endif
9843 }
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9851 PyObject *obj;
9852 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9853 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9854 Py_INCREF(obj);
9855 return Py_BuildValue((char *)"");
9856 }
9857 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9858 PyObject *resultobj;
9859 wxLocale *result;
9860 char *kwnames[] = {
9861 NULL
9862 };
9863
9864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (wxLocale *)wxGetLocale();
9868
9869 wxPyEndAllowThreads(__tstate);
9870 if (PyErr_Occurred()) SWIG_fail;
9871 }
9872 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9880 PyObject *resultobj;
9881 wxString *arg1 = 0 ;
9882 wxString result;
9883 bool temp1 = False ;
9884 PyObject * obj0 = 0 ;
9885
9886 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9887 {
9888 arg1 = wxString_in_helper(obj0);
9889 if (arg1 == NULL) SWIG_fail;
9890 temp1 = True;
9891 }
9892 {
9893 PyThreadState* __tstate = wxPyBeginAllowThreads();
9894 result = wxGetTranslation((wxString const &)*arg1);
9895
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 {
9900 #if wxUSE_UNICODE
9901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9902 #else
9903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9904 #endif
9905 }
9906 {
9907 if (temp1)
9908 delete arg1;
9909 }
9910 return resultobj;
9911 fail:
9912 {
9913 if (temp1)
9914 delete arg1;
9915 }
9916 return NULL;
9917 }
9918
9919
9920 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9921 PyObject *resultobj;
9922 wxString *arg1 = 0 ;
9923 wxString *arg2 = 0 ;
9924 size_t arg3 ;
9925 wxString result;
9926 bool temp1 = False ;
9927 bool temp2 = False ;
9928 PyObject * obj0 = 0 ;
9929 PyObject * obj1 = 0 ;
9930 PyObject * obj2 = 0 ;
9931
9932 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9933 {
9934 arg1 = wxString_in_helper(obj0);
9935 if (arg1 == NULL) SWIG_fail;
9936 temp1 = True;
9937 }
9938 {
9939 arg2 = wxString_in_helper(obj1);
9940 if (arg2 == NULL) SWIG_fail;
9941 temp2 = True;
9942 }
9943 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9944 if (PyErr_Occurred()) SWIG_fail;
9945 {
9946 PyThreadState* __tstate = wxPyBeginAllowThreads();
9947 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9948
9949 wxPyEndAllowThreads(__tstate);
9950 if (PyErr_Occurred()) SWIG_fail;
9951 }
9952 {
9953 #if wxUSE_UNICODE
9954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9955 #else
9956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9957 #endif
9958 }
9959 {
9960 if (temp1)
9961 delete arg1;
9962 }
9963 {
9964 if (temp2)
9965 delete arg2;
9966 }
9967 return resultobj;
9968 fail:
9969 {
9970 if (temp1)
9971 delete arg1;
9972 }
9973 {
9974 if (temp2)
9975 delete arg2;
9976 }
9977 return NULL;
9978 }
9979
9980
9981 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9982 int argc;
9983 PyObject *argv[4];
9984 int ii;
9985
9986 argc = PyObject_Length(args);
9987 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
9988 argv[ii] = PyTuple_GetItem(args,ii);
9989 }
9990 if (argc == 1) {
9991 int _v;
9992 {
9993 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
9994 }
9995 if (_v) {
9996 return _wrap_GetTranslation__SWIG_0(self,args);
9997 }
9998 }
9999 if (argc == 3) {
10000 int _v;
10001 {
10002 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10003 }
10004 if (_v) {
10005 {
10006 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10007 }
10008 if (_v) {
10009 _v = SWIG_CheckUnsignedLong(argv[2]);
10010 if (_v) {
10011 return _wrap_GetTranslation__SWIG_1(self,args);
10012 }
10013 }
10014 }
10015 }
10016
10017 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10018 return NULL;
10019 }
10020
10021
10022 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10023 PyObject *resultobj;
10024 wxEncodingConverter *result;
10025 char *kwnames[] = {
10026 NULL
10027 };
10028
10029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10030 {
10031 PyThreadState* __tstate = wxPyBeginAllowThreads();
10032 result = (wxEncodingConverter *)new wxEncodingConverter();
10033
10034 wxPyEndAllowThreads(__tstate);
10035 if (PyErr_Occurred()) SWIG_fail;
10036 }
10037 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10038 return resultobj;
10039 fail:
10040 return NULL;
10041 }
10042
10043
10044 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10045 PyObject *resultobj;
10046 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10047 PyObject * obj0 = 0 ;
10048 char *kwnames[] = {
10049 (char *) "self", NULL
10050 };
10051
10052 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10053 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10054 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 delete arg1;
10058
10059 wxPyEndAllowThreads(__tstate);
10060 if (PyErr_Occurred()) SWIG_fail;
10061 }
10062 Py_INCREF(Py_None); resultobj = Py_None;
10063 return resultobj;
10064 fail:
10065 return NULL;
10066 }
10067
10068
10069 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10070 PyObject *resultobj;
10071 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10072 int arg2 ;
10073 int arg3 ;
10074 int arg4 = (int) wxCONVERT_STRICT ;
10075 bool result;
10076 PyObject * obj0 = 0 ;
10077 PyObject * obj1 = 0 ;
10078 PyObject * obj2 = 0 ;
10079 PyObject * obj3 = 0 ;
10080 char *kwnames[] = {
10081 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10082 };
10083
10084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10087 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 if (obj3) {
10092 arg4 = (int) SWIG_AsInt(obj3);
10093 if (PyErr_Occurred()) SWIG_fail;
10094 }
10095 {
10096 PyThreadState* __tstate = wxPyBeginAllowThreads();
10097 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10098
10099 wxPyEndAllowThreads(__tstate);
10100 if (PyErr_Occurred()) SWIG_fail;
10101 }
10102 {
10103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10104 }
10105 return resultobj;
10106 fail:
10107 return NULL;
10108 }
10109
10110
10111 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10112 PyObject *resultobj;
10113 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10114 wxString *arg2 = 0 ;
10115 wxString result;
10116 bool temp2 = False ;
10117 PyObject * obj0 = 0 ;
10118 PyObject * obj1 = 0 ;
10119 char *kwnames[] = {
10120 (char *) "self",(char *) "input", NULL
10121 };
10122
10123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10126 {
10127 arg2 = wxString_in_helper(obj1);
10128 if (arg2 == NULL) SWIG_fail;
10129 temp2 = True;
10130 }
10131 {
10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
10133 result = (arg1)->Convert((wxString const &)*arg2);
10134
10135 wxPyEndAllowThreads(__tstate);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 {
10139 #if wxUSE_UNICODE
10140 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10141 #else
10142 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10143 #endif
10144 }
10145 {
10146 if (temp2)
10147 delete arg2;
10148 }
10149 return resultobj;
10150 fail:
10151 {
10152 if (temp2)
10153 delete arg2;
10154 }
10155 return NULL;
10156 }
10157
10158
10159 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10160 PyObject *resultobj;
10161 int arg1 ;
10162 int arg2 = (int) wxPLATFORM_CURRENT ;
10163 wxFontEncodingArray result;
10164 PyObject * obj0 = 0 ;
10165 PyObject * obj1 = 0 ;
10166 char *kwnames[] = {
10167 (char *) "enc",(char *) "platform", NULL
10168 };
10169
10170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10171 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 if (obj1) {
10174 arg2 = (int) SWIG_AsInt(obj1);
10175 if (PyErr_Occurred()) SWIG_fail;
10176 }
10177 {
10178 PyThreadState* __tstate = wxPyBeginAllowThreads();
10179 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10180
10181 wxPyEndAllowThreads(__tstate);
10182 if (PyErr_Occurred()) SWIG_fail;
10183 }
10184 {
10185 resultobj = PyList_New(0);
10186 for (size_t i=0; i < (&result)->GetCount(); i++) {
10187 PyObject* number = PyInt_FromLong((&result)->Item(i));
10188 PyList_Append(resultobj, number);
10189 Py_DECREF(number);
10190 }
10191 }
10192 return resultobj;
10193 fail:
10194 return NULL;
10195 }
10196
10197
10198 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10199 PyObject *resultobj;
10200 int arg1 ;
10201 wxFontEncodingArray result;
10202 PyObject * obj0 = 0 ;
10203 char *kwnames[] = {
10204 (char *) "enc", NULL
10205 };
10206
10207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10208 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10209 if (PyErr_Occurred()) SWIG_fail;
10210 {
10211 PyThreadState* __tstate = wxPyBeginAllowThreads();
10212 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10213
10214 wxPyEndAllowThreads(__tstate);
10215 if (PyErr_Occurred()) SWIG_fail;
10216 }
10217 {
10218 resultobj = PyList_New(0);
10219 for (size_t i=0; i < (&result)->GetCount(); i++) {
10220 PyObject* number = PyInt_FromLong((&result)->Item(i));
10221 PyList_Append(resultobj, number);
10222 Py_DECREF(number);
10223 }
10224 }
10225 return resultobj;
10226 fail:
10227 return NULL;
10228 }
10229
10230
10231 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10232 PyObject *resultobj;
10233 int arg1 ;
10234 int arg2 ;
10235 bool result;
10236 PyObject * obj0 = 0 ;
10237 PyObject * obj1 = 0 ;
10238 char *kwnames[] = {
10239 (char *) "encIn",(char *) "encOut", NULL
10240 };
10241
10242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10243 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10250
10251 wxPyEndAllowThreads(__tstate);
10252 if (PyErr_Occurred()) SWIG_fail;
10253 }
10254 {
10255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10256 }
10257 return resultobj;
10258 fail:
10259 return NULL;
10260 }
10261
10262
10263 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10264 PyObject *obj;
10265 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10266 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10267 Py_INCREF(obj);
10268 return Py_BuildValue((char *)"");
10269 }
10270 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10271 PyObject *resultobj;
10272 wxDC *arg1 = (wxDC *) 0 ;
10273 PyObject * obj0 = 0 ;
10274 char *kwnames[] = {
10275 (char *) "self", NULL
10276 };
10277
10278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10281 {
10282 PyThreadState* __tstate = wxPyBeginAllowThreads();
10283 delete arg1;
10284
10285 wxPyEndAllowThreads(__tstate);
10286 if (PyErr_Occurred()) SWIG_fail;
10287 }
10288 Py_INCREF(Py_None); resultobj = Py_None;
10289 return resultobj;
10290 fail:
10291 return NULL;
10292 }
10293
10294
10295 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10296 PyObject *resultobj;
10297 wxDC *arg1 = (wxDC *) 0 ;
10298 PyObject * obj0 = 0 ;
10299 char *kwnames[] = {
10300 (char *) "self", NULL
10301 };
10302
10303 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10304 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10305 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10306 {
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 (arg1)->BeginDrawing();
10309
10310 wxPyEndAllowThreads(__tstate);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 Py_INCREF(Py_None); resultobj = Py_None;
10314 return resultobj;
10315 fail:
10316 return NULL;
10317 }
10318
10319
10320 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj;
10322 wxDC *arg1 = (wxDC *) 0 ;
10323 PyObject * obj0 = 0 ;
10324 char *kwnames[] = {
10325 (char *) "self", NULL
10326 };
10327
10328 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10329 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10330 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10331 {
10332 PyThreadState* __tstate = wxPyBeginAllowThreads();
10333 (arg1)->EndDrawing();
10334
10335 wxPyEndAllowThreads(__tstate);
10336 if (PyErr_Occurred()) SWIG_fail;
10337 }
10338 Py_INCREF(Py_None); resultobj = Py_None;
10339 return resultobj;
10340 fail:
10341 return NULL;
10342 }
10343
10344
10345 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10346 PyObject *resultobj;
10347 wxDC *arg1 = (wxDC *) 0 ;
10348 int arg2 ;
10349 int arg3 ;
10350 wxColour *arg4 = 0 ;
10351 int arg5 = (int) wxFLOOD_SURFACE ;
10352 bool result;
10353 wxColour temp4 ;
10354 PyObject * obj0 = 0 ;
10355 PyObject * obj1 = 0 ;
10356 PyObject * obj2 = 0 ;
10357 PyObject * obj3 = 0 ;
10358 PyObject * obj4 = 0 ;
10359 char *kwnames[] = {
10360 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10361 };
10362
10363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10366 arg2 = (int) SWIG_AsInt(obj1);
10367 if (PyErr_Occurred()) SWIG_fail;
10368 arg3 = (int) SWIG_AsInt(obj2);
10369 if (PyErr_Occurred()) SWIG_fail;
10370 {
10371 arg4 = &temp4;
10372 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10373 }
10374 if (obj4) {
10375 arg5 = (int) SWIG_AsInt(obj4);
10376 if (PyErr_Occurred()) SWIG_fail;
10377 }
10378 {
10379 PyThreadState* __tstate = wxPyBeginAllowThreads();
10380 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10381
10382 wxPyEndAllowThreads(__tstate);
10383 if (PyErr_Occurred()) SWIG_fail;
10384 }
10385 {
10386 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10387 }
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj;
10396 wxDC *arg1 = (wxDC *) 0 ;
10397 wxPoint *arg2 = 0 ;
10398 wxColour *arg3 = 0 ;
10399 int arg4 = (int) wxFLOOD_SURFACE ;
10400 bool result;
10401 wxPoint temp2 ;
10402 wxColour temp3 ;
10403 PyObject * obj0 = 0 ;
10404 PyObject * obj1 = 0 ;
10405 PyObject * obj2 = 0 ;
10406 PyObject * obj3 = 0 ;
10407 char *kwnames[] = {
10408 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10409 };
10410
10411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10414 {
10415 arg2 = &temp2;
10416 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10417 }
10418 {
10419 arg3 = &temp3;
10420 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10421 }
10422 if (obj3) {
10423 arg4 = (int) SWIG_AsInt(obj3);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 {
10427 PyThreadState* __tstate = wxPyBeginAllowThreads();
10428 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10429
10430 wxPyEndAllowThreads(__tstate);
10431 if (PyErr_Occurred()) SWIG_fail;
10432 }
10433 {
10434 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10435 }
10436 return resultobj;
10437 fail:
10438 return NULL;
10439 }
10440
10441
10442 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj;
10444 wxDC *arg1 = (wxDC *) 0 ;
10445 int arg2 ;
10446 int arg3 ;
10447 wxColour result;
10448 PyObject * obj0 = 0 ;
10449 PyObject * obj1 = 0 ;
10450 PyObject * obj2 = 0 ;
10451 char *kwnames[] = {
10452 (char *) "self",(char *) "x",(char *) "y", NULL
10453 };
10454
10455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10458 arg2 = (int) SWIG_AsInt(obj1);
10459 if (PyErr_Occurred()) SWIG_fail;
10460 arg3 = (int) SWIG_AsInt(obj2);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 {
10463 PyThreadState* __tstate = wxPyBeginAllowThreads();
10464 result = wxDC_GetPixel(arg1,arg2,arg3);
10465
10466 wxPyEndAllowThreads(__tstate);
10467 if (PyErr_Occurred()) SWIG_fail;
10468 }
10469 {
10470 wxColour * resultptr;
10471 resultptr = new wxColour((wxColour &) result);
10472 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10473 }
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj;
10482 wxDC *arg1 = (wxDC *) 0 ;
10483 wxPoint *arg2 = 0 ;
10484 wxColour result;
10485 wxPoint temp2 ;
10486 PyObject * obj0 = 0 ;
10487 PyObject * obj1 = 0 ;
10488 char *kwnames[] = {
10489 (char *) "self",(char *) "pt", NULL
10490 };
10491
10492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10495 {
10496 arg2 = &temp2;
10497 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10498 }
10499 {
10500 PyThreadState* __tstate = wxPyBeginAllowThreads();
10501 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10502
10503 wxPyEndAllowThreads(__tstate);
10504 if (PyErr_Occurred()) SWIG_fail;
10505 }
10506 {
10507 wxColour * resultptr;
10508 resultptr = new wxColour((wxColour &) result);
10509 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10510 }
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj;
10519 wxDC *arg1 = (wxDC *) 0 ;
10520 int arg2 ;
10521 int arg3 ;
10522 int arg4 ;
10523 int arg5 ;
10524 PyObject * obj0 = 0 ;
10525 PyObject * obj1 = 0 ;
10526 PyObject * obj2 = 0 ;
10527 PyObject * obj3 = 0 ;
10528 PyObject * obj4 = 0 ;
10529 char *kwnames[] = {
10530 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10531 };
10532
10533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10534 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10535 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10536 arg2 = (int) SWIG_AsInt(obj1);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 arg3 = (int) SWIG_AsInt(obj2);
10539 if (PyErr_Occurred()) SWIG_fail;
10540 arg4 = (int) SWIG_AsInt(obj3);
10541 if (PyErr_Occurred()) SWIG_fail;
10542 arg5 = (int) SWIG_AsInt(obj4);
10543 if (PyErr_Occurred()) SWIG_fail;
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10547
10548 wxPyEndAllowThreads(__tstate);
10549 if (PyErr_Occurred()) SWIG_fail;
10550 }
10551 Py_INCREF(Py_None); resultobj = Py_None;
10552 return resultobj;
10553 fail:
10554 return NULL;
10555 }
10556
10557
10558 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj;
10560 wxDC *arg1 = (wxDC *) 0 ;
10561 wxPoint *arg2 = 0 ;
10562 wxPoint *arg3 = 0 ;
10563 wxPoint temp2 ;
10564 wxPoint temp3 ;
10565 PyObject * obj0 = 0 ;
10566 PyObject * obj1 = 0 ;
10567 PyObject * obj2 = 0 ;
10568 char *kwnames[] = {
10569 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10570 };
10571
10572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10575 {
10576 arg2 = &temp2;
10577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10578 }
10579 {
10580 arg3 = &temp3;
10581 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10582 }
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10586
10587 wxPyEndAllowThreads(__tstate);
10588 if (PyErr_Occurred()) SWIG_fail;
10589 }
10590 Py_INCREF(Py_None); resultobj = Py_None;
10591 return resultobj;
10592 fail:
10593 return NULL;
10594 }
10595
10596
10597 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10598 PyObject *resultobj;
10599 wxDC *arg1 = (wxDC *) 0 ;
10600 int arg2 ;
10601 int arg3 ;
10602 PyObject * obj0 = 0 ;
10603 PyObject * obj1 = 0 ;
10604 PyObject * obj2 = 0 ;
10605 char *kwnames[] = {
10606 (char *) "self",(char *) "x",(char *) "y", NULL
10607 };
10608
10609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10612 arg2 = (int) SWIG_AsInt(obj1);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 arg3 = (int) SWIG_AsInt(obj2);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 {
10617 PyThreadState* __tstate = wxPyBeginAllowThreads();
10618 (arg1)->CrossHair(arg2,arg3);
10619
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 Py_INCREF(Py_None); resultobj = Py_None;
10624 return resultobj;
10625 fail:
10626 return NULL;
10627 }
10628
10629
10630 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10631 PyObject *resultobj;
10632 wxDC *arg1 = (wxDC *) 0 ;
10633 wxPoint *arg2 = 0 ;
10634 wxPoint temp2 ;
10635 PyObject * obj0 = 0 ;
10636 PyObject * obj1 = 0 ;
10637 char *kwnames[] = {
10638 (char *) "self",(char *) "pt", NULL
10639 };
10640
10641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10644 {
10645 arg2 = &temp2;
10646 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10647 }
10648 {
10649 PyThreadState* __tstate = wxPyBeginAllowThreads();
10650 (arg1)->CrossHair((wxPoint const &)*arg2);
10651
10652 wxPyEndAllowThreads(__tstate);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 }
10655 Py_INCREF(Py_None); resultobj = Py_None;
10656 return resultobj;
10657 fail:
10658 return NULL;
10659 }
10660
10661
10662 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10663 PyObject *resultobj;
10664 wxDC *arg1 = (wxDC *) 0 ;
10665 int arg2 ;
10666 int arg3 ;
10667 int arg4 ;
10668 int arg5 ;
10669 int arg6 ;
10670 int arg7 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 PyObject * obj2 = 0 ;
10674 PyObject * obj3 = 0 ;
10675 PyObject * obj4 = 0 ;
10676 PyObject * obj5 = 0 ;
10677 PyObject * obj6 = 0 ;
10678 char *kwnames[] = {
10679 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10680 };
10681
10682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10683 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10684 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10685 arg2 = (int) SWIG_AsInt(obj1);
10686 if (PyErr_Occurred()) SWIG_fail;
10687 arg3 = (int) SWIG_AsInt(obj2);
10688 if (PyErr_Occurred()) SWIG_fail;
10689 arg4 = (int) SWIG_AsInt(obj3);
10690 if (PyErr_Occurred()) SWIG_fail;
10691 arg5 = (int) SWIG_AsInt(obj4);
10692 if (PyErr_Occurred()) SWIG_fail;
10693 arg6 = (int) SWIG_AsInt(obj5);
10694 if (PyErr_Occurred()) SWIG_fail;
10695 arg7 = (int) SWIG_AsInt(obj6);
10696 if (PyErr_Occurred()) SWIG_fail;
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10700
10701 wxPyEndAllowThreads(__tstate);
10702 if (PyErr_Occurred()) SWIG_fail;
10703 }
10704 Py_INCREF(Py_None); resultobj = Py_None;
10705 return resultobj;
10706 fail:
10707 return NULL;
10708 }
10709
10710
10711 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10712 PyObject *resultobj;
10713 wxDC *arg1 = (wxDC *) 0 ;
10714 wxPoint *arg2 = 0 ;
10715 wxPoint *arg3 = 0 ;
10716 wxPoint *arg4 = 0 ;
10717 wxPoint temp2 ;
10718 wxPoint temp3 ;
10719 wxPoint temp4 ;
10720 PyObject * obj0 = 0 ;
10721 PyObject * obj1 = 0 ;
10722 PyObject * obj2 = 0 ;
10723 PyObject * obj3 = 0 ;
10724 char *kwnames[] = {
10725 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10726 };
10727
10728 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10729 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10730 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10731 {
10732 arg2 = &temp2;
10733 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10734 }
10735 {
10736 arg3 = &temp3;
10737 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10738 }
10739 {
10740 arg4 = &temp4;
10741 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10742 }
10743 {
10744 PyThreadState* __tstate = wxPyBeginAllowThreads();
10745 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10746
10747 wxPyEndAllowThreads(__tstate);
10748 if (PyErr_Occurred()) SWIG_fail;
10749 }
10750 Py_INCREF(Py_None); resultobj = Py_None;
10751 return resultobj;
10752 fail:
10753 return NULL;
10754 }
10755
10756
10757 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10758 PyObject *resultobj;
10759 wxDC *arg1 = (wxDC *) 0 ;
10760 int arg2 ;
10761 int arg3 ;
10762 int arg4 ;
10763 int arg5 ;
10764 PyObject * obj0 = 0 ;
10765 PyObject * obj1 = 0 ;
10766 PyObject * obj2 = 0 ;
10767 PyObject * obj3 = 0 ;
10768 PyObject * obj4 = 0 ;
10769 char *kwnames[] = {
10770 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10771 };
10772
10773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10776 arg2 = (int) SWIG_AsInt(obj1);
10777 if (PyErr_Occurred()) SWIG_fail;
10778 arg3 = (int) SWIG_AsInt(obj2);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 arg4 = (int) SWIG_AsInt(obj3);
10781 if (PyErr_Occurred()) SWIG_fail;
10782 arg5 = (int) SWIG_AsInt(obj4);
10783 if (PyErr_Occurred()) SWIG_fail;
10784 {
10785 PyThreadState* __tstate = wxPyBeginAllowThreads();
10786 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10787
10788 wxPyEndAllowThreads(__tstate);
10789 if (PyErr_Occurred()) SWIG_fail;
10790 }
10791 Py_INCREF(Py_None); resultobj = Py_None;
10792 return resultobj;
10793 fail:
10794 return NULL;
10795 }
10796
10797
10798 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10799 PyObject *resultobj;
10800 wxDC *arg1 = (wxDC *) 0 ;
10801 wxRect *arg2 = 0 ;
10802 wxRect temp2 ;
10803 PyObject * obj0 = 0 ;
10804 PyObject * obj1 = 0 ;
10805 char *kwnames[] = {
10806 (char *) "self",(char *) "rect", NULL
10807 };
10808
10809 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10810 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10811 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10812 {
10813 arg2 = &temp2;
10814 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10815 }
10816 {
10817 PyThreadState* __tstate = wxPyBeginAllowThreads();
10818 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10819
10820 wxPyEndAllowThreads(__tstate);
10821 if (PyErr_Occurred()) SWIG_fail;
10822 }
10823 Py_INCREF(Py_None); resultobj = Py_None;
10824 return resultobj;
10825 fail:
10826 return NULL;
10827 }
10828
10829
10830 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10831 PyObject *resultobj;
10832 wxDC *arg1 = (wxDC *) 0 ;
10833 int arg2 ;
10834 int arg3 ;
10835 int arg4 ;
10836 int arg5 ;
10837 double arg6 ;
10838 double arg7 ;
10839 PyObject * obj0 = 0 ;
10840 PyObject * obj1 = 0 ;
10841 PyObject * obj2 = 0 ;
10842 PyObject * obj3 = 0 ;
10843 PyObject * obj4 = 0 ;
10844 PyObject * obj5 = 0 ;
10845 PyObject * obj6 = 0 ;
10846 char *kwnames[] = {
10847 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10848 };
10849
10850 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10851 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10852 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10853 arg2 = (int) SWIG_AsInt(obj1);
10854 if (PyErr_Occurred()) SWIG_fail;
10855 arg3 = (int) SWIG_AsInt(obj2);
10856 if (PyErr_Occurred()) SWIG_fail;
10857 arg4 = (int) SWIG_AsInt(obj3);
10858 if (PyErr_Occurred()) SWIG_fail;
10859 arg5 = (int) SWIG_AsInt(obj4);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 arg6 = (double) SWIG_AsDouble(obj5);
10862 if (PyErr_Occurred()) SWIG_fail;
10863 arg7 = (double) SWIG_AsDouble(obj6);
10864 if (PyErr_Occurred()) SWIG_fail;
10865 {
10866 PyThreadState* __tstate = wxPyBeginAllowThreads();
10867 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10868
10869 wxPyEndAllowThreads(__tstate);
10870 if (PyErr_Occurred()) SWIG_fail;
10871 }
10872 Py_INCREF(Py_None); resultobj = Py_None;
10873 return resultobj;
10874 fail:
10875 return NULL;
10876 }
10877
10878
10879 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10880 PyObject *resultobj;
10881 wxDC *arg1 = (wxDC *) 0 ;
10882 wxPoint *arg2 = 0 ;
10883 wxSize *arg3 = 0 ;
10884 double arg4 ;
10885 double arg5 ;
10886 wxPoint temp2 ;
10887 wxSize temp3 ;
10888 PyObject * obj0 = 0 ;
10889 PyObject * obj1 = 0 ;
10890 PyObject * obj2 = 0 ;
10891 PyObject * obj3 = 0 ;
10892 PyObject * obj4 = 0 ;
10893 char *kwnames[] = {
10894 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10895 };
10896
10897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10900 {
10901 arg2 = &temp2;
10902 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10903 }
10904 {
10905 arg3 = &temp3;
10906 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10907 }
10908 arg4 = (double) SWIG_AsDouble(obj3);
10909 if (PyErr_Occurred()) SWIG_fail;
10910 arg5 = (double) SWIG_AsDouble(obj4);
10911 if (PyErr_Occurred()) SWIG_fail;
10912 {
10913 PyThreadState* __tstate = wxPyBeginAllowThreads();
10914 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10915
10916 wxPyEndAllowThreads(__tstate);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 }
10919 Py_INCREF(Py_None); resultobj = Py_None;
10920 return resultobj;
10921 fail:
10922 return NULL;
10923 }
10924
10925
10926 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10927 PyObject *resultobj;
10928 wxDC *arg1 = (wxDC *) 0 ;
10929 int arg2 ;
10930 int arg3 ;
10931 PyObject * obj0 = 0 ;
10932 PyObject * obj1 = 0 ;
10933 PyObject * obj2 = 0 ;
10934 char *kwnames[] = {
10935 (char *) "self",(char *) "x",(char *) "y", NULL
10936 };
10937
10938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10941 arg2 = (int) SWIG_AsInt(obj1);
10942 if (PyErr_Occurred()) SWIG_fail;
10943 arg3 = (int) SWIG_AsInt(obj2);
10944 if (PyErr_Occurred()) SWIG_fail;
10945 {
10946 PyThreadState* __tstate = wxPyBeginAllowThreads();
10947 (arg1)->DrawPoint(arg2,arg3);
10948
10949 wxPyEndAllowThreads(__tstate);
10950 if (PyErr_Occurred()) SWIG_fail;
10951 }
10952 Py_INCREF(Py_None); resultobj = Py_None;
10953 return resultobj;
10954 fail:
10955 return NULL;
10956 }
10957
10958
10959 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10960 PyObject *resultobj;
10961 wxDC *arg1 = (wxDC *) 0 ;
10962 wxPoint *arg2 = 0 ;
10963 wxPoint temp2 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 char *kwnames[] = {
10967 (char *) "self",(char *) "pt", NULL
10968 };
10969
10970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
10971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10972 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10973 {
10974 arg2 = &temp2;
10975 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10976 }
10977 {
10978 PyThreadState* __tstate = wxPyBeginAllowThreads();
10979 (arg1)->DrawPoint((wxPoint const &)*arg2);
10980
10981 wxPyEndAllowThreads(__tstate);
10982 if (PyErr_Occurred()) SWIG_fail;
10983 }
10984 Py_INCREF(Py_None); resultobj = Py_None;
10985 return resultobj;
10986 fail:
10987 return NULL;
10988 }
10989
10990
10991 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
10992 PyObject *resultobj;
10993 wxDC *arg1 = (wxDC *) 0 ;
10994 int arg2 ;
10995 int arg3 ;
10996 int arg4 ;
10997 int arg5 ;
10998 PyObject * obj0 = 0 ;
10999 PyObject * obj1 = 0 ;
11000 PyObject * obj2 = 0 ;
11001 PyObject * obj3 = 0 ;
11002 PyObject * obj4 = 0 ;
11003 char *kwnames[] = {
11004 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11005 };
11006
11007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11010 arg2 = (int) SWIG_AsInt(obj1);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 arg3 = (int) SWIG_AsInt(obj2);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 arg4 = (int) SWIG_AsInt(obj3);
11015 if (PyErr_Occurred()) SWIG_fail;
11016 arg5 = (int) SWIG_AsInt(obj4);
11017 if (PyErr_Occurred()) SWIG_fail;
11018 {
11019 PyThreadState* __tstate = wxPyBeginAllowThreads();
11020 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11021
11022 wxPyEndAllowThreads(__tstate);
11023 if (PyErr_Occurred()) SWIG_fail;
11024 }
11025 Py_INCREF(Py_None); resultobj = Py_None;
11026 return resultobj;
11027 fail:
11028 return NULL;
11029 }
11030
11031
11032 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11033 PyObject *resultobj;
11034 wxDC *arg1 = (wxDC *) 0 ;
11035 wxRect *arg2 = 0 ;
11036 wxRect temp2 ;
11037 PyObject * obj0 = 0 ;
11038 PyObject * obj1 = 0 ;
11039 char *kwnames[] = {
11040 (char *) "self",(char *) "rect", NULL
11041 };
11042
11043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11046 {
11047 arg2 = &temp2;
11048 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11049 }
11050 {
11051 PyThreadState* __tstate = wxPyBeginAllowThreads();
11052 (arg1)->DrawRectangle((wxRect const &)*arg2);
11053
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 Py_INCREF(Py_None); resultobj = Py_None;
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11065 PyObject *resultobj;
11066 wxDC *arg1 = (wxDC *) 0 ;
11067 wxPoint *arg2 = 0 ;
11068 wxSize *arg3 = 0 ;
11069 wxPoint temp2 ;
11070 wxSize temp3 ;
11071 PyObject * obj0 = 0 ;
11072 PyObject * obj1 = 0 ;
11073 PyObject * obj2 = 0 ;
11074 char *kwnames[] = {
11075 (char *) "self",(char *) "pt",(char *) "sz", NULL
11076 };
11077
11078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11081 {
11082 arg2 = &temp2;
11083 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11084 }
11085 {
11086 arg3 = &temp3;
11087 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11088 }
11089 {
11090 PyThreadState* __tstate = wxPyBeginAllowThreads();
11091 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11092
11093 wxPyEndAllowThreads(__tstate);
11094 if (PyErr_Occurred()) SWIG_fail;
11095 }
11096 Py_INCREF(Py_None); resultobj = Py_None;
11097 return resultobj;
11098 fail:
11099 return NULL;
11100 }
11101
11102
11103 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11104 PyObject *resultobj;
11105 wxDC *arg1 = (wxDC *) 0 ;
11106 int arg2 ;
11107 int arg3 ;
11108 int arg4 ;
11109 int arg5 ;
11110 double arg6 ;
11111 PyObject * obj0 = 0 ;
11112 PyObject * obj1 = 0 ;
11113 PyObject * obj2 = 0 ;
11114 PyObject * obj3 = 0 ;
11115 PyObject * obj4 = 0 ;
11116 PyObject * obj5 = 0 ;
11117 char *kwnames[] = {
11118 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11119 };
11120
11121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11124 arg2 = (int) SWIG_AsInt(obj1);
11125 if (PyErr_Occurred()) SWIG_fail;
11126 arg3 = (int) SWIG_AsInt(obj2);
11127 if (PyErr_Occurred()) SWIG_fail;
11128 arg4 = (int) SWIG_AsInt(obj3);
11129 if (PyErr_Occurred()) SWIG_fail;
11130 arg5 = (int) SWIG_AsInt(obj4);
11131 if (PyErr_Occurred()) SWIG_fail;
11132 arg6 = (double) SWIG_AsDouble(obj5);
11133 if (PyErr_Occurred()) SWIG_fail;
11134 {
11135 PyThreadState* __tstate = wxPyBeginAllowThreads();
11136 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11137
11138 wxPyEndAllowThreads(__tstate);
11139 if (PyErr_Occurred()) SWIG_fail;
11140 }
11141 Py_INCREF(Py_None); resultobj = Py_None;
11142 return resultobj;
11143 fail:
11144 return NULL;
11145 }
11146
11147
11148 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11149 PyObject *resultobj;
11150 wxDC *arg1 = (wxDC *) 0 ;
11151 wxRect *arg2 = 0 ;
11152 double arg3 ;
11153 wxRect temp2 ;
11154 PyObject * obj0 = 0 ;
11155 PyObject * obj1 = 0 ;
11156 PyObject * obj2 = 0 ;
11157 char *kwnames[] = {
11158 (char *) "self",(char *) "r",(char *) "radius", NULL
11159 };
11160
11161 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11162 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11164 {
11165 arg2 = &temp2;
11166 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11167 }
11168 arg3 = (double) SWIG_AsDouble(obj2);
11169 if (PyErr_Occurred()) SWIG_fail;
11170 {
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11173
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 Py_INCREF(Py_None); resultobj = Py_None;
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11185 PyObject *resultobj;
11186 wxDC *arg1 = (wxDC *) 0 ;
11187 wxPoint *arg2 = 0 ;
11188 wxSize *arg3 = 0 ;
11189 double arg4 ;
11190 wxPoint temp2 ;
11191 wxSize temp3 ;
11192 PyObject * obj0 = 0 ;
11193 PyObject * obj1 = 0 ;
11194 PyObject * obj2 = 0 ;
11195 PyObject * obj3 = 0 ;
11196 char *kwnames[] = {
11197 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11198 };
11199
11200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11203 {
11204 arg2 = &temp2;
11205 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11206 }
11207 {
11208 arg3 = &temp3;
11209 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11210 }
11211 arg4 = (double) SWIG_AsDouble(obj3);
11212 if (PyErr_Occurred()) SWIG_fail;
11213 {
11214 PyThreadState* __tstate = wxPyBeginAllowThreads();
11215 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11216
11217 wxPyEndAllowThreads(__tstate);
11218 if (PyErr_Occurred()) SWIG_fail;
11219 }
11220 Py_INCREF(Py_None); resultobj = Py_None;
11221 return resultobj;
11222 fail:
11223 return NULL;
11224 }
11225
11226
11227 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11228 PyObject *resultobj;
11229 wxDC *arg1 = (wxDC *) 0 ;
11230 int arg2 ;
11231 int arg3 ;
11232 int arg4 ;
11233 PyObject * obj0 = 0 ;
11234 PyObject * obj1 = 0 ;
11235 PyObject * obj2 = 0 ;
11236 PyObject * obj3 = 0 ;
11237 char *kwnames[] = {
11238 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11239 };
11240
11241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11244 arg2 = (int) SWIG_AsInt(obj1);
11245 if (PyErr_Occurred()) SWIG_fail;
11246 arg3 = (int) SWIG_AsInt(obj2);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 arg4 = (int) SWIG_AsInt(obj3);
11249 if (PyErr_Occurred()) SWIG_fail;
11250 {
11251 PyThreadState* __tstate = wxPyBeginAllowThreads();
11252 (arg1)->DrawCircle(arg2,arg3,arg4);
11253
11254 wxPyEndAllowThreads(__tstate);
11255 if (PyErr_Occurred()) SWIG_fail;
11256 }
11257 Py_INCREF(Py_None); resultobj = Py_None;
11258 return resultobj;
11259 fail:
11260 return NULL;
11261 }
11262
11263
11264 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11265 PyObject *resultobj;
11266 wxDC *arg1 = (wxDC *) 0 ;
11267 wxPoint *arg2 = 0 ;
11268 int arg3 ;
11269 wxPoint temp2 ;
11270 PyObject * obj0 = 0 ;
11271 PyObject * obj1 = 0 ;
11272 PyObject * obj2 = 0 ;
11273 char *kwnames[] = {
11274 (char *) "self",(char *) "pt",(char *) "radius", NULL
11275 };
11276
11277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11280 {
11281 arg2 = &temp2;
11282 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11283 }
11284 arg3 = (int) SWIG_AsInt(obj2);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 {
11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
11288 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11289
11290 wxPyEndAllowThreads(__tstate);
11291 if (PyErr_Occurred()) SWIG_fail;
11292 }
11293 Py_INCREF(Py_None); resultobj = Py_None;
11294 return resultobj;
11295 fail:
11296 return NULL;
11297 }
11298
11299
11300 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11301 PyObject *resultobj;
11302 wxDC *arg1 = (wxDC *) 0 ;
11303 int arg2 ;
11304 int arg3 ;
11305 int arg4 ;
11306 int arg5 ;
11307 PyObject * obj0 = 0 ;
11308 PyObject * obj1 = 0 ;
11309 PyObject * obj2 = 0 ;
11310 PyObject * obj3 = 0 ;
11311 PyObject * obj4 = 0 ;
11312 char *kwnames[] = {
11313 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11314 };
11315
11316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11319 arg2 = (int) SWIG_AsInt(obj1);
11320 if (PyErr_Occurred()) SWIG_fail;
11321 arg3 = (int) SWIG_AsInt(obj2);
11322 if (PyErr_Occurred()) SWIG_fail;
11323 arg4 = (int) SWIG_AsInt(obj3);
11324 if (PyErr_Occurred()) SWIG_fail;
11325 arg5 = (int) SWIG_AsInt(obj4);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 {
11328 PyThreadState* __tstate = wxPyBeginAllowThreads();
11329 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11330
11331 wxPyEndAllowThreads(__tstate);
11332 if (PyErr_Occurred()) SWIG_fail;
11333 }
11334 Py_INCREF(Py_None); resultobj = Py_None;
11335 return resultobj;
11336 fail:
11337 return NULL;
11338 }
11339
11340
11341 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11342 PyObject *resultobj;
11343 wxDC *arg1 = (wxDC *) 0 ;
11344 wxRect *arg2 = 0 ;
11345 wxRect temp2 ;
11346 PyObject * obj0 = 0 ;
11347 PyObject * obj1 = 0 ;
11348 char *kwnames[] = {
11349 (char *) "self",(char *) "rect", NULL
11350 };
11351
11352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) 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 ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11358 }
11359 {
11360 PyThreadState* __tstate = wxPyBeginAllowThreads();
11361 (arg1)->DrawEllipse((wxRect const &)*arg2);
11362
11363 wxPyEndAllowThreads(__tstate);
11364 if (PyErr_Occurred()) SWIG_fail;
11365 }
11366 Py_INCREF(Py_None); resultobj = Py_None;
11367 return resultobj;
11368 fail:
11369 return NULL;
11370 }
11371
11372
11373 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11374 PyObject *resultobj;
11375 wxDC *arg1 = (wxDC *) 0 ;
11376 wxPoint *arg2 = 0 ;
11377 wxSize *arg3 = 0 ;
11378 wxPoint temp2 ;
11379 wxSize temp3 ;
11380 PyObject * obj0 = 0 ;
11381 PyObject * obj1 = 0 ;
11382 PyObject * obj2 = 0 ;
11383 char *kwnames[] = {
11384 (char *) "self",(char *) "pt",(char *) "sz", NULL
11385 };
11386
11387 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11388 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11389 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11390 {
11391 arg2 = &temp2;
11392 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11393 }
11394 {
11395 arg3 = &temp3;
11396 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11397 }
11398 {
11399 PyThreadState* __tstate = wxPyBeginAllowThreads();
11400 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11401
11402 wxPyEndAllowThreads(__tstate);
11403 if (PyErr_Occurred()) SWIG_fail;
11404 }
11405 Py_INCREF(Py_None); resultobj = Py_None;
11406 return resultobj;
11407 fail:
11408 return NULL;
11409 }
11410
11411
11412 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11413 PyObject *resultobj;
11414 wxDC *arg1 = (wxDC *) 0 ;
11415 wxIcon *arg2 = 0 ;
11416 int arg3 ;
11417 int arg4 ;
11418 PyObject * obj0 = 0 ;
11419 PyObject * obj1 = 0 ;
11420 PyObject * obj2 = 0 ;
11421 PyObject * obj3 = 0 ;
11422 char *kwnames[] = {
11423 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11424 };
11425
11426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11429 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11430 SWIG_POINTER_EXCEPTION | 0)) == -1)
11431 SWIG_fail;
11432 if (arg2 == NULL) {
11433 PyErr_SetString(PyExc_TypeError,"null reference");
11434 SWIG_fail;
11435 }
11436 arg3 = (int) SWIG_AsInt(obj2);
11437 if (PyErr_Occurred()) SWIG_fail;
11438 arg4 = (int) SWIG_AsInt(obj3);
11439 if (PyErr_Occurred()) SWIG_fail;
11440 {
11441 PyThreadState* __tstate = wxPyBeginAllowThreads();
11442 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
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_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11455 PyObject *resultobj;
11456 wxDC *arg1 = (wxDC *) 0 ;
11457 wxIcon *arg2 = 0 ;
11458 wxPoint *arg3 = 0 ;
11459 wxPoint temp3 ;
11460 PyObject * obj0 = 0 ;
11461 PyObject * obj1 = 0 ;
11462 PyObject * obj2 = 0 ;
11463 char *kwnames[] = {
11464 (char *) "self",(char *) "icon",(char *) "pt", NULL
11465 };
11466
11467 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11468 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11469 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11470 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11471 SWIG_POINTER_EXCEPTION | 0)) == -1)
11472 SWIG_fail;
11473 if (arg2 == NULL) {
11474 PyErr_SetString(PyExc_TypeError,"null reference");
11475 SWIG_fail;
11476 }
11477 {
11478 arg3 = &temp3;
11479 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11480 }
11481 {
11482 PyThreadState* __tstate = wxPyBeginAllowThreads();
11483 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11484
11485 wxPyEndAllowThreads(__tstate);
11486 if (PyErr_Occurred()) SWIG_fail;
11487 }
11488 Py_INCREF(Py_None); resultobj = Py_None;
11489 return resultobj;
11490 fail:
11491 return NULL;
11492 }
11493
11494
11495 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11496 PyObject *resultobj;
11497 wxDC *arg1 = (wxDC *) 0 ;
11498 wxBitmap *arg2 = 0 ;
11499 int arg3 ;
11500 int arg4 ;
11501 bool arg5 = (bool) False ;
11502 PyObject * obj0 = 0 ;
11503 PyObject * obj1 = 0 ;
11504 PyObject * obj2 = 0 ;
11505 PyObject * obj3 = 0 ;
11506 PyObject * obj4 = 0 ;
11507 char *kwnames[] = {
11508 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11509 };
11510
11511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11514 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11515 SWIG_POINTER_EXCEPTION | 0)) == -1)
11516 SWIG_fail;
11517 if (arg2 == NULL) {
11518 PyErr_SetString(PyExc_TypeError,"null reference");
11519 SWIG_fail;
11520 }
11521 arg3 = (int) SWIG_AsInt(obj2);
11522 if (PyErr_Occurred()) SWIG_fail;
11523 arg4 = (int) SWIG_AsInt(obj3);
11524 if (PyErr_Occurred()) SWIG_fail;
11525 if (obj4) {
11526 arg5 = (bool) SWIG_AsBool(obj4);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 {
11530 PyThreadState* __tstate = wxPyBeginAllowThreads();
11531 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11532
11533 wxPyEndAllowThreads(__tstate);
11534 if (PyErr_Occurred()) SWIG_fail;
11535 }
11536 Py_INCREF(Py_None); resultobj = Py_None;
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj;
11545 wxDC *arg1 = (wxDC *) 0 ;
11546 wxBitmap *arg2 = 0 ;
11547 wxPoint *arg3 = 0 ;
11548 bool arg4 = (bool) False ;
11549 wxPoint temp3 ;
11550 PyObject * obj0 = 0 ;
11551 PyObject * obj1 = 0 ;
11552 PyObject * obj2 = 0 ;
11553 PyObject * obj3 = 0 ;
11554 char *kwnames[] = {
11555 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11556 };
11557
11558 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11559 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11561 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11562 SWIG_POINTER_EXCEPTION | 0)) == -1)
11563 SWIG_fail;
11564 if (arg2 == NULL) {
11565 PyErr_SetString(PyExc_TypeError,"null reference");
11566 SWIG_fail;
11567 }
11568 {
11569 arg3 = &temp3;
11570 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11571 }
11572 if (obj3) {
11573 arg4 = (bool) SWIG_AsBool(obj3);
11574 if (PyErr_Occurred()) SWIG_fail;
11575 }
11576 {
11577 PyThreadState* __tstate = wxPyBeginAllowThreads();
11578 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11579
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 Py_INCREF(Py_None); resultobj = Py_None;
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11591 PyObject *resultobj;
11592 wxDC *arg1 = (wxDC *) 0 ;
11593 wxString *arg2 = 0 ;
11594 int arg3 ;
11595 int arg4 ;
11596 bool temp2 = False ;
11597 PyObject * obj0 = 0 ;
11598 PyObject * obj1 = 0 ;
11599 PyObject * obj2 = 0 ;
11600 PyObject * obj3 = 0 ;
11601 char *kwnames[] = {
11602 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11603 };
11604
11605 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11606 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11607 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11608 {
11609 arg2 = wxString_in_helper(obj1);
11610 if (arg2 == NULL) SWIG_fail;
11611 temp2 = True;
11612 }
11613 arg3 = (int) SWIG_AsInt(obj2);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 arg4 = (int) SWIG_AsInt(obj3);
11616 if (PyErr_Occurred()) SWIG_fail;
11617 {
11618 PyThreadState* __tstate = wxPyBeginAllowThreads();
11619 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11620
11621 wxPyEndAllowThreads(__tstate);
11622 if (PyErr_Occurred()) SWIG_fail;
11623 }
11624 Py_INCREF(Py_None); resultobj = Py_None;
11625 {
11626 if (temp2)
11627 delete arg2;
11628 }
11629 return resultobj;
11630 fail:
11631 {
11632 if (temp2)
11633 delete arg2;
11634 }
11635 return NULL;
11636 }
11637
11638
11639 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11640 PyObject *resultobj;
11641 wxDC *arg1 = (wxDC *) 0 ;
11642 wxString *arg2 = 0 ;
11643 wxPoint *arg3 = 0 ;
11644 bool temp2 = False ;
11645 wxPoint temp3 ;
11646 PyObject * obj0 = 0 ;
11647 PyObject * obj1 = 0 ;
11648 PyObject * obj2 = 0 ;
11649 char *kwnames[] = {
11650 (char *) "self",(char *) "text",(char *) "pt", NULL
11651 };
11652
11653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11656 {
11657 arg2 = wxString_in_helper(obj1);
11658 if (arg2 == NULL) SWIG_fail;
11659 temp2 = True;
11660 }
11661 {
11662 arg3 = &temp3;
11663 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11664 }
11665 {
11666 PyThreadState* __tstate = wxPyBeginAllowThreads();
11667 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11668
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 Py_INCREF(Py_None); resultobj = Py_None;
11673 {
11674 if (temp2)
11675 delete arg2;
11676 }
11677 return resultobj;
11678 fail:
11679 {
11680 if (temp2)
11681 delete arg2;
11682 }
11683 return NULL;
11684 }
11685
11686
11687 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11688 PyObject *resultobj;
11689 wxDC *arg1 = (wxDC *) 0 ;
11690 wxString *arg2 = 0 ;
11691 int arg3 ;
11692 int arg4 ;
11693 double arg5 ;
11694 bool temp2 = False ;
11695 PyObject * obj0 = 0 ;
11696 PyObject * obj1 = 0 ;
11697 PyObject * obj2 = 0 ;
11698 PyObject * obj3 = 0 ;
11699 PyObject * obj4 = 0 ;
11700 char *kwnames[] = {
11701 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11702 };
11703
11704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11707 {
11708 arg2 = wxString_in_helper(obj1);
11709 if (arg2 == NULL) SWIG_fail;
11710 temp2 = True;
11711 }
11712 arg3 = (int) SWIG_AsInt(obj2);
11713 if (PyErr_Occurred()) SWIG_fail;
11714 arg4 = (int) SWIG_AsInt(obj3);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 arg5 = (double) SWIG_AsDouble(obj4);
11717 if (PyErr_Occurred()) SWIG_fail;
11718 {
11719 PyThreadState* __tstate = wxPyBeginAllowThreads();
11720 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11721
11722 wxPyEndAllowThreads(__tstate);
11723 if (PyErr_Occurred()) SWIG_fail;
11724 }
11725 Py_INCREF(Py_None); resultobj = Py_None;
11726 {
11727 if (temp2)
11728 delete arg2;
11729 }
11730 return resultobj;
11731 fail:
11732 {
11733 if (temp2)
11734 delete arg2;
11735 }
11736 return NULL;
11737 }
11738
11739
11740 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11741 PyObject *resultobj;
11742 wxDC *arg1 = (wxDC *) 0 ;
11743 wxString *arg2 = 0 ;
11744 wxPoint *arg3 = 0 ;
11745 double arg4 ;
11746 bool temp2 = False ;
11747 wxPoint temp3 ;
11748 PyObject * obj0 = 0 ;
11749 PyObject * obj1 = 0 ;
11750 PyObject * obj2 = 0 ;
11751 PyObject * obj3 = 0 ;
11752 char *kwnames[] = {
11753 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11754 };
11755
11756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11758 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11759 {
11760 arg2 = wxString_in_helper(obj1);
11761 if (arg2 == NULL) SWIG_fail;
11762 temp2 = True;
11763 }
11764 {
11765 arg3 = &temp3;
11766 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11767 }
11768 arg4 = (double) SWIG_AsDouble(obj3);
11769 if (PyErr_Occurred()) SWIG_fail;
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11773
11774 wxPyEndAllowThreads(__tstate);
11775 if (PyErr_Occurred()) SWIG_fail;
11776 }
11777 Py_INCREF(Py_None); resultobj = Py_None;
11778 {
11779 if (temp2)
11780 delete arg2;
11781 }
11782 return resultobj;
11783 fail:
11784 {
11785 if (temp2)
11786 delete arg2;
11787 }
11788 return NULL;
11789 }
11790
11791
11792 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11793 PyObject *resultobj;
11794 wxDC *arg1 = (wxDC *) 0 ;
11795 int arg2 ;
11796 int arg3 ;
11797 int arg4 ;
11798 int arg5 ;
11799 wxDC *arg6 = (wxDC *) 0 ;
11800 int arg7 ;
11801 int arg8 ;
11802 int arg9 = (int) wxCOPY ;
11803 bool arg10 = (bool) False ;
11804 int arg11 = (int) -1 ;
11805 int arg12 = (int) -1 ;
11806 bool result;
11807 PyObject * obj0 = 0 ;
11808 PyObject * obj1 = 0 ;
11809 PyObject * obj2 = 0 ;
11810 PyObject * obj3 = 0 ;
11811 PyObject * obj4 = 0 ;
11812 PyObject * obj5 = 0 ;
11813 PyObject * obj6 = 0 ;
11814 PyObject * obj7 = 0 ;
11815 PyObject * obj8 = 0 ;
11816 PyObject * obj9 = 0 ;
11817 PyObject * obj10 = 0 ;
11818 PyObject * obj11 = 0 ;
11819 char *kwnames[] = {
11820 (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
11821 };
11822
11823 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;
11824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11826 arg2 = (int) SWIG_AsInt(obj1);
11827 if (PyErr_Occurred()) SWIG_fail;
11828 arg3 = (int) SWIG_AsInt(obj2);
11829 if (PyErr_Occurred()) SWIG_fail;
11830 arg4 = (int) SWIG_AsInt(obj3);
11831 if (PyErr_Occurred()) SWIG_fail;
11832 arg5 = (int) SWIG_AsInt(obj4);
11833 if (PyErr_Occurred()) SWIG_fail;
11834 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11836 arg7 = (int) SWIG_AsInt(obj6);
11837 if (PyErr_Occurred()) SWIG_fail;
11838 arg8 = (int) SWIG_AsInt(obj7);
11839 if (PyErr_Occurred()) SWIG_fail;
11840 if (obj8) {
11841 arg9 = (int) SWIG_AsInt(obj8);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 }
11844 if (obj9) {
11845 arg10 = (bool) SWIG_AsBool(obj9);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 if (obj10) {
11849 arg11 = (int) SWIG_AsInt(obj10);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 if (obj11) {
11853 arg12 = (int) SWIG_AsInt(obj11);
11854 if (PyErr_Occurred()) SWIG_fail;
11855 }
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11859
11860 wxPyEndAllowThreads(__tstate);
11861 if (PyErr_Occurred()) SWIG_fail;
11862 }
11863 {
11864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11865 }
11866 return resultobj;
11867 fail:
11868 return NULL;
11869 }
11870
11871
11872 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11873 PyObject *resultobj;
11874 wxDC *arg1 = (wxDC *) 0 ;
11875 wxPoint *arg2 = 0 ;
11876 wxSize *arg3 = 0 ;
11877 wxDC *arg4 = (wxDC *) 0 ;
11878 wxPoint *arg5 = 0 ;
11879 int arg6 = (int) wxCOPY ;
11880 bool arg7 = (bool) False ;
11881 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11882 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11883 bool result;
11884 wxPoint temp2 ;
11885 wxSize temp3 ;
11886 wxPoint temp5 ;
11887 wxPoint temp8 ;
11888 PyObject * obj0 = 0 ;
11889 PyObject * obj1 = 0 ;
11890 PyObject * obj2 = 0 ;
11891 PyObject * obj3 = 0 ;
11892 PyObject * obj4 = 0 ;
11893 PyObject * obj5 = 0 ;
11894 PyObject * obj6 = 0 ;
11895 PyObject * obj7 = 0 ;
11896 char *kwnames[] = {
11897 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11898 };
11899
11900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11903 {
11904 arg2 = &temp2;
11905 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11906 }
11907 {
11908 arg3 = &temp3;
11909 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11910 }
11911 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11913 {
11914 arg5 = &temp5;
11915 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11916 }
11917 if (obj5) {
11918 arg6 = (int) SWIG_AsInt(obj5);
11919 if (PyErr_Occurred()) SWIG_fail;
11920 }
11921 if (obj6) {
11922 arg7 = (bool) SWIG_AsBool(obj6);
11923 if (PyErr_Occurred()) SWIG_fail;
11924 }
11925 if (obj7) {
11926 {
11927 arg8 = &temp8;
11928 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11929 }
11930 }
11931 {
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11934
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 {
11939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11940 }
11941 return resultobj;
11942 fail:
11943 return NULL;
11944 }
11945
11946
11947 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11948 PyObject *resultobj;
11949 wxDC *arg1 = (wxDC *) 0 ;
11950 int arg2 ;
11951 int arg3 ;
11952 int arg4 ;
11953 int arg5 ;
11954 PyObject * obj0 = 0 ;
11955 PyObject * obj1 = 0 ;
11956 PyObject * obj2 = 0 ;
11957 PyObject * obj3 = 0 ;
11958 PyObject * obj4 = 0 ;
11959 char *kwnames[] = {
11960 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11961 };
11962
11963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11966 arg2 = (int) SWIG_AsInt(obj1);
11967 if (PyErr_Occurred()) SWIG_fail;
11968 arg3 = (int) SWIG_AsInt(obj2);
11969 if (PyErr_Occurred()) SWIG_fail;
11970 arg4 = (int) SWIG_AsInt(obj3);
11971 if (PyErr_Occurred()) SWIG_fail;
11972 arg5 = (int) SWIG_AsInt(obj4);
11973 if (PyErr_Occurred()) SWIG_fail;
11974 {
11975 PyThreadState* __tstate = wxPyBeginAllowThreads();
11976 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11977
11978 wxPyEndAllowThreads(__tstate);
11979 if (PyErr_Occurred()) SWIG_fail;
11980 }
11981 Py_INCREF(Py_None); resultobj = Py_None;
11982 return resultobj;
11983 fail:
11984 return NULL;
11985 }
11986
11987
11988 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11989 PyObject *resultobj;
11990 wxDC *arg1 = (wxDC *) 0 ;
11991 wxPoint *arg2 = 0 ;
11992 wxSize *arg3 = 0 ;
11993 wxPoint temp2 ;
11994 wxSize temp3 ;
11995 PyObject * obj0 = 0 ;
11996 PyObject * obj1 = 0 ;
11997 PyObject * obj2 = 0 ;
11998 char *kwnames[] = {
11999 (char *) "self",(char *) "pt",(char *) "sz", NULL
12000 };
12001
12002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12003 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12004 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12005 {
12006 arg2 = &temp2;
12007 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12008 }
12009 {
12010 arg3 = &temp3;
12011 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12012 }
12013 {
12014 PyThreadState* __tstate = wxPyBeginAllowThreads();
12015 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12016
12017 wxPyEndAllowThreads(__tstate);
12018 if (PyErr_Occurred()) SWIG_fail;
12019 }
12020 Py_INCREF(Py_None); resultobj = Py_None;
12021 return resultobj;
12022 fail:
12023 return NULL;
12024 }
12025
12026
12027 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12028 PyObject *resultobj;
12029 wxDC *arg1 = (wxDC *) 0 ;
12030 wxRegion *arg2 = 0 ;
12031 PyObject * obj0 = 0 ;
12032 PyObject * obj1 = 0 ;
12033 char *kwnames[] = {
12034 (char *) "self",(char *) "region", NULL
12035 };
12036
12037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12040 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12041 SWIG_POINTER_EXCEPTION | 0)) == -1)
12042 SWIG_fail;
12043 if (arg2 == NULL) {
12044 PyErr_SetString(PyExc_TypeError,"null reference");
12045 SWIG_fail;
12046 }
12047 {
12048 PyThreadState* __tstate = wxPyBeginAllowThreads();
12049 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12050
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 Py_INCREF(Py_None); resultobj = Py_None;
12055 return resultobj;
12056 fail:
12057 return NULL;
12058 }
12059
12060
12061 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12062 PyObject *resultobj;
12063 wxDC *arg1 = (wxDC *) 0 ;
12064 wxRect *arg2 = 0 ;
12065 wxRect temp2 ;
12066 PyObject * obj0 = 0 ;
12067 PyObject * obj1 = 0 ;
12068 char *kwnames[] = {
12069 (char *) "self",(char *) "rect", NULL
12070 };
12071
12072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12075 {
12076 arg2 = &temp2;
12077 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12078 }
12079 {
12080 PyThreadState* __tstate = wxPyBeginAllowThreads();
12081 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12082
12083 wxPyEndAllowThreads(__tstate);
12084 if (PyErr_Occurred()) SWIG_fail;
12085 }
12086 Py_INCREF(Py_None); resultobj = Py_None;
12087 return resultobj;
12088 fail:
12089 return NULL;
12090 }
12091
12092
12093 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12094 PyObject *resultobj;
12095 wxDC *arg1 = (wxDC *) 0 ;
12096 int arg2 ;
12097 wxPoint *arg3 = (wxPoint *) 0 ;
12098 int arg4 = (int) 0 ;
12099 int arg5 = (int) 0 ;
12100 PyObject * obj0 = 0 ;
12101 PyObject * obj1 = 0 ;
12102 PyObject * obj2 = 0 ;
12103 PyObject * obj3 = 0 ;
12104 char *kwnames[] = {
12105 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12106 };
12107
12108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12111 {
12112 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12113 if (arg3 == NULL) SWIG_fail;
12114 }
12115 if (obj2) {
12116 arg4 = (int) SWIG_AsInt(obj2);
12117 if (PyErr_Occurred()) SWIG_fail;
12118 }
12119 if (obj3) {
12120 arg5 = (int) SWIG_AsInt(obj3);
12121 if (PyErr_Occurred()) SWIG_fail;
12122 }
12123 {
12124 PyThreadState* __tstate = wxPyBeginAllowThreads();
12125 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12126
12127 wxPyEndAllowThreads(__tstate);
12128 if (PyErr_Occurred()) SWIG_fail;
12129 }
12130 Py_INCREF(Py_None); resultobj = Py_None;
12131 {
12132 if (arg3) delete [] arg3;
12133 }
12134 return resultobj;
12135 fail:
12136 {
12137 if (arg3) delete [] arg3;
12138 }
12139 return NULL;
12140 }
12141
12142
12143 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj;
12145 wxDC *arg1 = (wxDC *) 0 ;
12146 int arg2 ;
12147 wxPoint *arg3 = (wxPoint *) 0 ;
12148 int arg4 = (int) 0 ;
12149 int arg5 = (int) 0 ;
12150 int arg6 = (int) wxODDEVEN_RULE ;
12151 PyObject * obj0 = 0 ;
12152 PyObject * obj1 = 0 ;
12153 PyObject * obj2 = 0 ;
12154 PyObject * obj3 = 0 ;
12155 PyObject * obj4 = 0 ;
12156 char *kwnames[] = {
12157 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12158 };
12159
12160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12161 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12162 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12163 {
12164 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12165 if (arg3 == NULL) SWIG_fail;
12166 }
12167 if (obj2) {
12168 arg4 = (int) SWIG_AsInt(obj2);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 if (obj3) {
12172 arg5 = (int) SWIG_AsInt(obj3);
12173 if (PyErr_Occurred()) SWIG_fail;
12174 }
12175 if (obj4) {
12176 arg6 = (int) SWIG_AsInt(obj4);
12177 if (PyErr_Occurred()) SWIG_fail;
12178 }
12179 {
12180 PyThreadState* __tstate = wxPyBeginAllowThreads();
12181 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12182
12183 wxPyEndAllowThreads(__tstate);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 Py_INCREF(Py_None); resultobj = Py_None;
12187 {
12188 if (arg3) delete [] arg3;
12189 }
12190 return resultobj;
12191 fail:
12192 {
12193 if (arg3) delete [] arg3;
12194 }
12195 return NULL;
12196 }
12197
12198
12199 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12200 PyObject *resultobj;
12201 wxDC *arg1 = (wxDC *) 0 ;
12202 wxString *arg2 = 0 ;
12203 wxRect *arg3 = 0 ;
12204 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12205 int arg5 = (int) -1 ;
12206 bool temp2 = False ;
12207 wxRect temp3 ;
12208 PyObject * obj0 = 0 ;
12209 PyObject * obj1 = 0 ;
12210 PyObject * obj2 = 0 ;
12211 PyObject * obj3 = 0 ;
12212 PyObject * obj4 = 0 ;
12213 char *kwnames[] = {
12214 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12215 };
12216
12217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12220 {
12221 arg2 = wxString_in_helper(obj1);
12222 if (arg2 == NULL) SWIG_fail;
12223 temp2 = True;
12224 }
12225 {
12226 arg3 = &temp3;
12227 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12228 }
12229 if (obj3) {
12230 arg4 = (int) SWIG_AsInt(obj3);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 if (obj4) {
12234 arg5 = (int) SWIG_AsInt(obj4);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12240
12241 wxPyEndAllowThreads(__tstate);
12242 if (PyErr_Occurred()) SWIG_fail;
12243 }
12244 Py_INCREF(Py_None); resultobj = Py_None;
12245 {
12246 if (temp2)
12247 delete arg2;
12248 }
12249 return resultobj;
12250 fail:
12251 {
12252 if (temp2)
12253 delete arg2;
12254 }
12255 return NULL;
12256 }
12257
12258
12259 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12260 PyObject *resultobj;
12261 wxDC *arg1 = (wxDC *) 0 ;
12262 wxString *arg2 = 0 ;
12263 wxBitmap *arg3 = 0 ;
12264 wxRect *arg4 = 0 ;
12265 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12266 int arg6 = (int) -1 ;
12267 wxRect result;
12268 bool temp2 = False ;
12269 wxRect temp4 ;
12270 PyObject * obj0 = 0 ;
12271 PyObject * obj1 = 0 ;
12272 PyObject * obj2 = 0 ;
12273 PyObject * obj3 = 0 ;
12274 PyObject * obj4 = 0 ;
12275 PyObject * obj5 = 0 ;
12276 char *kwnames[] = {
12277 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12278 };
12279
12280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12283 {
12284 arg2 = wxString_in_helper(obj1);
12285 if (arg2 == NULL) SWIG_fail;
12286 temp2 = True;
12287 }
12288 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12289 SWIG_POINTER_EXCEPTION | 0)) == -1)
12290 SWIG_fail;
12291 if (arg3 == NULL) {
12292 PyErr_SetString(PyExc_TypeError,"null reference");
12293 SWIG_fail;
12294 }
12295 {
12296 arg4 = &temp4;
12297 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12298 }
12299 if (obj4) {
12300 arg5 = (int) SWIG_AsInt(obj4);
12301 if (PyErr_Occurred()) SWIG_fail;
12302 }
12303 if (obj5) {
12304 arg6 = (int) SWIG_AsInt(obj5);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12310
12311 wxPyEndAllowThreads(__tstate);
12312 if (PyErr_Occurred()) SWIG_fail;
12313 }
12314 {
12315 wxRect * resultptr;
12316 resultptr = new wxRect((wxRect &) result);
12317 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12318 }
12319 {
12320 if (temp2)
12321 delete arg2;
12322 }
12323 return resultobj;
12324 fail:
12325 {
12326 if (temp2)
12327 delete arg2;
12328 }
12329 return NULL;
12330 }
12331
12332
12333 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12334 PyObject *resultobj;
12335 wxDC *arg1 = (wxDC *) 0 ;
12336 int arg2 ;
12337 wxPoint *arg3 = (wxPoint *) 0 ;
12338 PyObject * obj0 = 0 ;
12339 PyObject * obj1 = 0 ;
12340 char *kwnames[] = {
12341 (char *) "self",(char *) "points", NULL
12342 };
12343
12344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12347 {
12348 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12349 if (arg3 == NULL) SWIG_fail;
12350 }
12351 {
12352 PyThreadState* __tstate = wxPyBeginAllowThreads();
12353 (arg1)->DrawSpline(arg2,arg3);
12354
12355 wxPyEndAllowThreads(__tstate);
12356 if (PyErr_Occurred()) SWIG_fail;
12357 }
12358 Py_INCREF(Py_None); resultobj = Py_None;
12359 {
12360 if (arg3) delete [] arg3;
12361 }
12362 return resultobj;
12363 fail:
12364 {
12365 if (arg3) delete [] arg3;
12366 }
12367 return NULL;
12368 }
12369
12370
12371 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj;
12373 wxDC *arg1 = (wxDC *) 0 ;
12374 PyObject * obj0 = 0 ;
12375 char *kwnames[] = {
12376 (char *) "self", NULL
12377 };
12378
12379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12382 {
12383 PyThreadState* __tstate = wxPyBeginAllowThreads();
12384 (arg1)->Clear();
12385
12386 wxPyEndAllowThreads(__tstate);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 }
12389 Py_INCREF(Py_None); resultobj = Py_None;
12390 return resultobj;
12391 fail:
12392 return NULL;
12393 }
12394
12395
12396 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj;
12398 wxDC *arg1 = (wxDC *) 0 ;
12399 wxString *arg2 = 0 ;
12400 bool result;
12401 bool temp2 = False ;
12402 PyObject * obj0 = 0 ;
12403 PyObject * obj1 = 0 ;
12404 char *kwnames[] = {
12405 (char *) "self",(char *) "message", NULL
12406 };
12407
12408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12411 {
12412 arg2 = wxString_in_helper(obj1);
12413 if (arg2 == NULL) SWIG_fail;
12414 temp2 = True;
12415 }
12416 {
12417 PyThreadState* __tstate = wxPyBeginAllowThreads();
12418 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12419
12420 wxPyEndAllowThreads(__tstate);
12421 if (PyErr_Occurred()) SWIG_fail;
12422 }
12423 {
12424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12425 }
12426 {
12427 if (temp2)
12428 delete arg2;
12429 }
12430 return resultobj;
12431 fail:
12432 {
12433 if (temp2)
12434 delete arg2;
12435 }
12436 return NULL;
12437 }
12438
12439
12440 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12441 PyObject *resultobj;
12442 wxDC *arg1 = (wxDC *) 0 ;
12443 PyObject * obj0 = 0 ;
12444 char *kwnames[] = {
12445 (char *) "self", NULL
12446 };
12447
12448 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12449 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12450 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 (arg1)->EndDoc();
12454
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 Py_INCREF(Py_None); resultobj = Py_None;
12459 return resultobj;
12460 fail:
12461 return NULL;
12462 }
12463
12464
12465 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12466 PyObject *resultobj;
12467 wxDC *arg1 = (wxDC *) 0 ;
12468 PyObject * obj0 = 0 ;
12469 char *kwnames[] = {
12470 (char *) "self", NULL
12471 };
12472
12473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12476 {
12477 PyThreadState* __tstate = wxPyBeginAllowThreads();
12478 (arg1)->StartPage();
12479
12480 wxPyEndAllowThreads(__tstate);
12481 if (PyErr_Occurred()) SWIG_fail;
12482 }
12483 Py_INCREF(Py_None); resultobj = Py_None;
12484 return resultobj;
12485 fail:
12486 return NULL;
12487 }
12488
12489
12490 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12491 PyObject *resultobj;
12492 wxDC *arg1 = (wxDC *) 0 ;
12493 PyObject * obj0 = 0 ;
12494 char *kwnames[] = {
12495 (char *) "self", NULL
12496 };
12497
12498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12501 {
12502 PyThreadState* __tstate = wxPyBeginAllowThreads();
12503 (arg1)->EndPage();
12504
12505 wxPyEndAllowThreads(__tstate);
12506 if (PyErr_Occurred()) SWIG_fail;
12507 }
12508 Py_INCREF(Py_None); resultobj = Py_None;
12509 return resultobj;
12510 fail:
12511 return NULL;
12512 }
12513
12514
12515 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12516 PyObject *resultobj;
12517 wxDC *arg1 = (wxDC *) 0 ;
12518 wxFont *arg2 = 0 ;
12519 PyObject * obj0 = 0 ;
12520 PyObject * obj1 = 0 ;
12521 char *kwnames[] = {
12522 (char *) "self",(char *) "font", NULL
12523 };
12524
12525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12529 SWIG_POINTER_EXCEPTION | 0)) == -1)
12530 SWIG_fail;
12531 if (arg2 == NULL) {
12532 PyErr_SetString(PyExc_TypeError,"null reference");
12533 SWIG_fail;
12534 }
12535 {
12536 PyThreadState* __tstate = wxPyBeginAllowThreads();
12537 (arg1)->SetFont((wxFont const &)*arg2);
12538
12539 wxPyEndAllowThreads(__tstate);
12540 if (PyErr_Occurred()) SWIG_fail;
12541 }
12542 Py_INCREF(Py_None); resultobj = Py_None;
12543 return resultobj;
12544 fail:
12545 return NULL;
12546 }
12547
12548
12549 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12550 PyObject *resultobj;
12551 wxDC *arg1 = (wxDC *) 0 ;
12552 wxPen *arg2 = 0 ;
12553 PyObject * obj0 = 0 ;
12554 PyObject * obj1 = 0 ;
12555 char *kwnames[] = {
12556 (char *) "self",(char *) "pen", NULL
12557 };
12558
12559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12563 SWIG_POINTER_EXCEPTION | 0)) == -1)
12564 SWIG_fail;
12565 if (arg2 == NULL) {
12566 PyErr_SetString(PyExc_TypeError,"null reference");
12567 SWIG_fail;
12568 }
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 (arg1)->SetPen((wxPen const &)*arg2);
12572
12573 wxPyEndAllowThreads(__tstate);
12574 if (PyErr_Occurred()) SWIG_fail;
12575 }
12576 Py_INCREF(Py_None); resultobj = Py_None;
12577 return resultobj;
12578 fail:
12579 return NULL;
12580 }
12581
12582
12583 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12584 PyObject *resultobj;
12585 wxDC *arg1 = (wxDC *) 0 ;
12586 wxBrush *arg2 = 0 ;
12587 PyObject * obj0 = 0 ;
12588 PyObject * obj1 = 0 ;
12589 char *kwnames[] = {
12590 (char *) "self",(char *) "brush", NULL
12591 };
12592
12593 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12594 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12595 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12596 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12597 SWIG_POINTER_EXCEPTION | 0)) == -1)
12598 SWIG_fail;
12599 if (arg2 == NULL) {
12600 PyErr_SetString(PyExc_TypeError,"null reference");
12601 SWIG_fail;
12602 }
12603 {
12604 PyThreadState* __tstate = wxPyBeginAllowThreads();
12605 (arg1)->SetBrush((wxBrush const &)*arg2);
12606
12607 wxPyEndAllowThreads(__tstate);
12608 if (PyErr_Occurred()) SWIG_fail;
12609 }
12610 Py_INCREF(Py_None); resultobj = Py_None;
12611 return resultobj;
12612 fail:
12613 return NULL;
12614 }
12615
12616
12617 static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12618 PyObject *resultobj;
12619 wxDC *arg1 = (wxDC *) 0 ;
12620 wxBrush *arg2 = 0 ;
12621 PyObject * obj0 = 0 ;
12622 PyObject * obj1 = 0 ;
12623 char *kwnames[] = {
12624 (char *) "self",(char *) "brush", NULL
12625 };
12626
12627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12631 SWIG_POINTER_EXCEPTION | 0)) == -1)
12632 SWIG_fail;
12633 if (arg2 == NULL) {
12634 PyErr_SetString(PyExc_TypeError,"null reference");
12635 SWIG_fail;
12636 }
12637 {
12638 PyThreadState* __tstate = wxPyBeginAllowThreads();
12639 (arg1)->SetBackground((wxBrush const &)*arg2);
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_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12652 PyObject *resultobj;
12653 wxDC *arg1 = (wxDC *) 0 ;
12654 int arg2 ;
12655 PyObject * obj0 = 0 ;
12656 PyObject * obj1 = 0 ;
12657 char *kwnames[] = {
12658 (char *) "self",(char *) "mode", NULL
12659 };
12660
12661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12664 arg2 = (int) SWIG_AsInt(obj1);
12665 if (PyErr_Occurred()) SWIG_fail;
12666 {
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 (arg1)->SetBackgroundMode(arg2);
12669
12670 wxPyEndAllowThreads(__tstate);
12671 if (PyErr_Occurred()) SWIG_fail;
12672 }
12673 Py_INCREF(Py_None); resultobj = Py_None;
12674 return resultobj;
12675 fail:
12676 return NULL;
12677 }
12678
12679
12680 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12681 PyObject *resultobj;
12682 wxDC *arg1 = (wxDC *) 0 ;
12683 wxPalette *arg2 = 0 ;
12684 PyObject * obj0 = 0 ;
12685 PyObject * obj1 = 0 ;
12686 char *kwnames[] = {
12687 (char *) "self",(char *) "palette", NULL
12688 };
12689
12690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12693 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12694 SWIG_POINTER_EXCEPTION | 0)) == -1)
12695 SWIG_fail;
12696 if (arg2 == NULL) {
12697 PyErr_SetString(PyExc_TypeError,"null reference");
12698 SWIG_fail;
12699 }
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 (arg1)->SetPalette((wxPalette const &)*arg2);
12703
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 Py_INCREF(Py_None); resultobj = Py_None;
12708 return resultobj;
12709 fail:
12710 return NULL;
12711 }
12712
12713
12714 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj;
12716 wxDC *arg1 = (wxDC *) 0 ;
12717 PyObject * obj0 = 0 ;
12718 char *kwnames[] = {
12719 (char *) "self", NULL
12720 };
12721
12722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12725 {
12726 PyThreadState* __tstate = wxPyBeginAllowThreads();
12727 (arg1)->DestroyClippingRegion();
12728
12729 wxPyEndAllowThreads(__tstate);
12730 if (PyErr_Occurred()) SWIG_fail;
12731 }
12732 Py_INCREF(Py_None); resultobj = Py_None;
12733 return resultobj;
12734 fail:
12735 return NULL;
12736 }
12737
12738
12739 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12740 PyObject *resultobj;
12741 wxDC *arg1 = (wxDC *) 0 ;
12742 int *arg2 = (int *) 0 ;
12743 int *arg3 = (int *) 0 ;
12744 int *arg4 = (int *) 0 ;
12745 int *arg5 = (int *) 0 ;
12746 int temp2 ;
12747 int temp3 ;
12748 int temp4 ;
12749 int temp5 ;
12750 PyObject * obj0 = 0 ;
12751 char *kwnames[] = {
12752 (char *) "self", NULL
12753 };
12754
12755 arg2 = &temp2;
12756 arg3 = &temp3;
12757 arg4 = &temp4;
12758 arg5 = &temp5;
12759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12762 {
12763 PyThreadState* __tstate = wxPyBeginAllowThreads();
12764 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12765
12766 wxPyEndAllowThreads(__tstate);
12767 if (PyErr_Occurred()) SWIG_fail;
12768 }
12769 Py_INCREF(Py_None); resultobj = Py_None;
12770 {
12771 PyObject *o = PyInt_FromLong((long) (*arg2));
12772 resultobj = t_output_helper(resultobj,o);
12773 }
12774 {
12775 PyObject *o = PyInt_FromLong((long) (*arg3));
12776 resultobj = t_output_helper(resultobj,o);
12777 }
12778 {
12779 PyObject *o = PyInt_FromLong((long) (*arg4));
12780 resultobj = t_output_helper(resultobj,o);
12781 }
12782 {
12783 PyObject *o = PyInt_FromLong((long) (*arg5));
12784 resultobj = t_output_helper(resultobj,o);
12785 }
12786 return resultobj;
12787 fail:
12788 return NULL;
12789 }
12790
12791
12792 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12793 PyObject *resultobj;
12794 wxDC *arg1 = (wxDC *) 0 ;
12795 wxRect result;
12796 PyObject * obj0 = 0 ;
12797 char *kwnames[] = {
12798 (char *) "self", NULL
12799 };
12800
12801 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12802 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12803 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12804 {
12805 PyThreadState* __tstate = wxPyBeginAllowThreads();
12806 result = wxDC_GetClippingRect(arg1);
12807
12808 wxPyEndAllowThreads(__tstate);
12809 if (PyErr_Occurred()) SWIG_fail;
12810 }
12811 {
12812 wxRect * resultptr;
12813 resultptr = new wxRect((wxRect &) result);
12814 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12815 }
12816 return resultobj;
12817 fail:
12818 return NULL;
12819 }
12820
12821
12822 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12823 PyObject *resultobj;
12824 wxDC *arg1 = (wxDC *) 0 ;
12825 int result;
12826 PyObject * obj0 = 0 ;
12827 char *kwnames[] = {
12828 (char *) "self", NULL
12829 };
12830
12831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 result = (int)((wxDC const *)arg1)->GetCharHeight();
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 resultobj = SWIG_FromInt((int)result);
12842 return resultobj;
12843 fail:
12844 return NULL;
12845 }
12846
12847
12848 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj;
12850 wxDC *arg1 = (wxDC *) 0 ;
12851 int result;
12852 PyObject * obj0 = 0 ;
12853 char *kwnames[] = {
12854 (char *) "self", NULL
12855 };
12856
12857 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12858 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12859 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12860 {
12861 PyThreadState* __tstate = wxPyBeginAllowThreads();
12862 result = (int)((wxDC const *)arg1)->GetCharWidth();
12863
12864 wxPyEndAllowThreads(__tstate);
12865 if (PyErr_Occurred()) SWIG_fail;
12866 }
12867 resultobj = SWIG_FromInt((int)result);
12868 return resultobj;
12869 fail:
12870 return NULL;
12871 }
12872
12873
12874 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12875 PyObject *resultobj;
12876 wxDC *arg1 = (wxDC *) 0 ;
12877 wxString *arg2 = 0 ;
12878 int *arg3 = (int *) 0 ;
12879 int *arg4 = (int *) 0 ;
12880 bool temp2 = False ;
12881 int temp3 ;
12882 int temp4 ;
12883 PyObject * obj0 = 0 ;
12884 PyObject * obj1 = 0 ;
12885 char *kwnames[] = {
12886 (char *) "self",(char *) "string", NULL
12887 };
12888
12889 arg3 = &temp3;
12890 arg4 = &temp4;
12891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12894 {
12895 arg2 = wxString_in_helper(obj1);
12896 if (arg2 == NULL) SWIG_fail;
12897 temp2 = True;
12898 }
12899 {
12900 PyThreadState* __tstate = wxPyBeginAllowThreads();
12901 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12902
12903 wxPyEndAllowThreads(__tstate);
12904 if (PyErr_Occurred()) SWIG_fail;
12905 }
12906 Py_INCREF(Py_None); resultobj = Py_None;
12907 {
12908 PyObject *o = PyInt_FromLong((long) (*arg3));
12909 resultobj = t_output_helper(resultobj,o);
12910 }
12911 {
12912 PyObject *o = PyInt_FromLong((long) (*arg4));
12913 resultobj = t_output_helper(resultobj,o);
12914 }
12915 {
12916 if (temp2)
12917 delete arg2;
12918 }
12919 return resultobj;
12920 fail:
12921 {
12922 if (temp2)
12923 delete arg2;
12924 }
12925 return NULL;
12926 }
12927
12928
12929 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj;
12931 wxDC *arg1 = (wxDC *) 0 ;
12932 wxString *arg2 = 0 ;
12933 int *arg3 = (int *) 0 ;
12934 int *arg4 = (int *) 0 ;
12935 int *arg5 = (int *) 0 ;
12936 int *arg6 = (int *) 0 ;
12937 wxFont *arg7 = (wxFont *) NULL ;
12938 bool temp2 = False ;
12939 int temp3 ;
12940 int temp4 ;
12941 int temp5 ;
12942 int temp6 ;
12943 PyObject * obj0 = 0 ;
12944 PyObject * obj1 = 0 ;
12945 PyObject * obj2 = 0 ;
12946 char *kwnames[] = {
12947 (char *) "self",(char *) "string",(char *) "font", NULL
12948 };
12949
12950 arg3 = &temp3;
12951 arg4 = &temp4;
12952 arg5 = &temp5;
12953 arg6 = &temp6;
12954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12957 {
12958 arg2 = wxString_in_helper(obj1);
12959 if (arg2 == NULL) SWIG_fail;
12960 temp2 = True;
12961 }
12962 if (obj2) {
12963 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12964 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12965 }
12966 {
12967 PyThreadState* __tstate = wxPyBeginAllowThreads();
12968 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12969
12970 wxPyEndAllowThreads(__tstate);
12971 if (PyErr_Occurred()) SWIG_fail;
12972 }
12973 Py_INCREF(Py_None); resultobj = Py_None;
12974 {
12975 PyObject *o = PyInt_FromLong((long) (*arg3));
12976 resultobj = t_output_helper(resultobj,o);
12977 }
12978 {
12979 PyObject *o = PyInt_FromLong((long) (*arg4));
12980 resultobj = t_output_helper(resultobj,o);
12981 }
12982 {
12983 PyObject *o = PyInt_FromLong((long) (*arg5));
12984 resultobj = t_output_helper(resultobj,o);
12985 }
12986 {
12987 PyObject *o = PyInt_FromLong((long) (*arg6));
12988 resultobj = t_output_helper(resultobj,o);
12989 }
12990 {
12991 if (temp2)
12992 delete arg2;
12993 }
12994 return resultobj;
12995 fail:
12996 {
12997 if (temp2)
12998 delete arg2;
12999 }
13000 return NULL;
13001 }
13002
13003
13004 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj;
13006 wxDC *arg1 = (wxDC *) 0 ;
13007 wxString *arg2 = 0 ;
13008 int *arg3 = (int *) 0 ;
13009 int *arg4 = (int *) 0 ;
13010 int *arg5 = (int *) 0 ;
13011 wxFont *arg6 = (wxFont *) NULL ;
13012 bool temp2 = False ;
13013 int temp3 ;
13014 int temp4 ;
13015 int temp5 ;
13016 PyObject * obj0 = 0 ;
13017 PyObject * obj1 = 0 ;
13018 PyObject * obj2 = 0 ;
13019 char *kwnames[] = {
13020 (char *) "self",(char *) "text",(char *) "font", NULL
13021 };
13022
13023 arg3 = &temp3;
13024 arg4 = &temp4;
13025 arg5 = &temp5;
13026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13029 {
13030 arg2 = wxString_in_helper(obj1);
13031 if (arg2 == NULL) SWIG_fail;
13032 temp2 = True;
13033 }
13034 if (obj2) {
13035 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13037 }
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 Py_INCREF(Py_None); resultobj = Py_None;
13046 {
13047 PyObject *o = PyInt_FromLong((long) (*arg3));
13048 resultobj = t_output_helper(resultobj,o);
13049 }
13050 {
13051 PyObject *o = PyInt_FromLong((long) (*arg4));
13052 resultobj = t_output_helper(resultobj,o);
13053 }
13054 {
13055 PyObject *o = PyInt_FromLong((long) (*arg5));
13056 resultobj = t_output_helper(resultobj,o);
13057 }
13058 {
13059 if (temp2)
13060 delete arg2;
13061 }
13062 return resultobj;
13063 fail:
13064 {
13065 if (temp2)
13066 delete arg2;
13067 }
13068 return NULL;
13069 }
13070
13071
13072 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13073 PyObject *resultobj;
13074 wxDC *arg1 = (wxDC *) 0 ;
13075 wxString *arg2 = 0 ;
13076 wxArrayInt result;
13077 bool temp2 = False ;
13078 PyObject * obj0 = 0 ;
13079 PyObject * obj1 = 0 ;
13080 char *kwnames[] = {
13081 (char *) "self",(char *) "text", NULL
13082 };
13083
13084 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13085 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13086 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13087 {
13088 arg2 = wxString_in_helper(obj1);
13089 if (arg2 == NULL) SWIG_fail;
13090 temp2 = True;
13091 }
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13095
13096 wxPyEndAllowThreads(__tstate);
13097 if (PyErr_Occurred()) SWIG_fail;
13098 }
13099 {
13100 resultobj = PyList_New(0);
13101 size_t idx;
13102 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13103 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13104 PyList_Append(resultobj, val);
13105 Py_DECREF(val);
13106 }
13107 }
13108 {
13109 if (temp2)
13110 delete arg2;
13111 }
13112 return resultobj;
13113 fail:
13114 {
13115 if (temp2)
13116 delete arg2;
13117 }
13118 return NULL;
13119 }
13120
13121
13122 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj;
13124 wxDC *arg1 = (wxDC *) 0 ;
13125 wxSize result;
13126 PyObject * obj0 = 0 ;
13127 char *kwnames[] = {
13128 (char *) "self", NULL
13129 };
13130
13131 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13132 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13133 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13134 {
13135 PyThreadState* __tstate = wxPyBeginAllowThreads();
13136 result = (arg1)->GetSize();
13137
13138 wxPyEndAllowThreads(__tstate);
13139 if (PyErr_Occurred()) SWIG_fail;
13140 }
13141 {
13142 wxSize * resultptr;
13143 resultptr = new wxSize((wxSize &) result);
13144 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13145 }
13146 return resultobj;
13147 fail:
13148 return NULL;
13149 }
13150
13151
13152 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13153 PyObject *resultobj;
13154 wxDC *arg1 = (wxDC *) 0 ;
13155 int *arg2 = (int *) 0 ;
13156 int *arg3 = (int *) 0 ;
13157 int temp2 ;
13158 int temp3 ;
13159 PyObject * obj0 = 0 ;
13160 char *kwnames[] = {
13161 (char *) "self", NULL
13162 };
13163
13164 arg2 = &temp2;
13165 arg3 = &temp3;
13166 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13167 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13168 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13169 {
13170 PyThreadState* __tstate = wxPyBeginAllowThreads();
13171 (arg1)->GetSize(arg2,arg3);
13172
13173 wxPyEndAllowThreads(__tstate);
13174 if (PyErr_Occurred()) SWIG_fail;
13175 }
13176 Py_INCREF(Py_None); resultobj = Py_None;
13177 {
13178 PyObject *o = PyInt_FromLong((long) (*arg2));
13179 resultobj = t_output_helper(resultobj,o);
13180 }
13181 {
13182 PyObject *o = PyInt_FromLong((long) (*arg3));
13183 resultobj = t_output_helper(resultobj,o);
13184 }
13185 return resultobj;
13186 fail:
13187 return NULL;
13188 }
13189
13190
13191 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13192 PyObject *resultobj;
13193 wxDC *arg1 = (wxDC *) 0 ;
13194 wxSize result;
13195 PyObject * obj0 = 0 ;
13196 char *kwnames[] = {
13197 (char *) "self", NULL
13198 };
13199
13200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13203 {
13204 PyThreadState* __tstate = wxPyBeginAllowThreads();
13205 result = ((wxDC const *)arg1)->GetSizeMM();
13206
13207 wxPyEndAllowThreads(__tstate);
13208 if (PyErr_Occurred()) SWIG_fail;
13209 }
13210 {
13211 wxSize * resultptr;
13212 resultptr = new wxSize((wxSize &) result);
13213 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13214 }
13215 return resultobj;
13216 fail:
13217 return NULL;
13218 }
13219
13220
13221 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj;
13223 wxDC *arg1 = (wxDC *) 0 ;
13224 int *arg2 = (int *) 0 ;
13225 int *arg3 = (int *) 0 ;
13226 int temp2 ;
13227 int temp3 ;
13228 PyObject * obj0 = 0 ;
13229 char *kwnames[] = {
13230 (char *) "self", NULL
13231 };
13232
13233 arg2 = &temp2;
13234 arg3 = &temp3;
13235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13238 {
13239 PyThreadState* __tstate = wxPyBeginAllowThreads();
13240 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13241
13242 wxPyEndAllowThreads(__tstate);
13243 if (PyErr_Occurred()) SWIG_fail;
13244 }
13245 Py_INCREF(Py_None); resultobj = Py_None;
13246 {
13247 PyObject *o = PyInt_FromLong((long) (*arg2));
13248 resultobj = t_output_helper(resultobj,o);
13249 }
13250 {
13251 PyObject *o = PyInt_FromLong((long) (*arg3));
13252 resultobj = t_output_helper(resultobj,o);
13253 }
13254 return resultobj;
13255 fail:
13256 return NULL;
13257 }
13258
13259
13260 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13261 PyObject *resultobj;
13262 wxDC *arg1 = (wxDC *) 0 ;
13263 int arg2 ;
13264 int result;
13265 PyObject * obj0 = 0 ;
13266 PyObject * obj1 = 0 ;
13267 char *kwnames[] = {
13268 (char *) "self",(char *) "x", NULL
13269 };
13270
13271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13274 arg2 = (int) SWIG_AsInt(obj1);
13275 if (PyErr_Occurred()) SWIG_fail;
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13279
13280 wxPyEndAllowThreads(__tstate);
13281 if (PyErr_Occurred()) SWIG_fail;
13282 }
13283 resultobj = SWIG_FromInt((int)result);
13284 return resultobj;
13285 fail:
13286 return NULL;
13287 }
13288
13289
13290 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13291 PyObject *resultobj;
13292 wxDC *arg1 = (wxDC *) 0 ;
13293 int arg2 ;
13294 int result;
13295 PyObject * obj0 = 0 ;
13296 PyObject * obj1 = 0 ;
13297 char *kwnames[] = {
13298 (char *) "self",(char *) "y", NULL
13299 };
13300
13301 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13302 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13303 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13304 arg2 = (int) SWIG_AsInt(obj1);
13305 if (PyErr_Occurred()) SWIG_fail;
13306 {
13307 PyThreadState* __tstate = wxPyBeginAllowThreads();
13308 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13309
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 resultobj = SWIG_FromInt((int)result);
13314 return resultobj;
13315 fail:
13316 return NULL;
13317 }
13318
13319
13320 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13321 PyObject *resultobj;
13322 wxDC *arg1 = (wxDC *) 0 ;
13323 int arg2 ;
13324 int result;
13325 PyObject * obj0 = 0 ;
13326 PyObject * obj1 = 0 ;
13327 char *kwnames[] = {
13328 (char *) "self",(char *) "x", NULL
13329 };
13330
13331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13334 arg2 = (int) SWIG_AsInt(obj1);
13335 if (PyErr_Occurred()) SWIG_fail;
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13339
13340 wxPyEndAllowThreads(__tstate);
13341 if (PyErr_Occurred()) SWIG_fail;
13342 }
13343 resultobj = SWIG_FromInt((int)result);
13344 return resultobj;
13345 fail:
13346 return NULL;
13347 }
13348
13349
13350 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13351 PyObject *resultobj;
13352 wxDC *arg1 = (wxDC *) 0 ;
13353 int arg2 ;
13354 int result;
13355 PyObject * obj0 = 0 ;
13356 PyObject * obj1 = 0 ;
13357 char *kwnames[] = {
13358 (char *) "self",(char *) "y", NULL
13359 };
13360
13361 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13362 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13363 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13364 arg2 = (int) SWIG_AsInt(obj1);
13365 if (PyErr_Occurred()) SWIG_fail;
13366 {
13367 PyThreadState* __tstate = wxPyBeginAllowThreads();
13368 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13369
13370 wxPyEndAllowThreads(__tstate);
13371 if (PyErr_Occurred()) SWIG_fail;
13372 }
13373 resultobj = SWIG_FromInt((int)result);
13374 return resultobj;
13375 fail:
13376 return NULL;
13377 }
13378
13379
13380 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13381 PyObject *resultobj;
13382 wxDC *arg1 = (wxDC *) 0 ;
13383 int arg2 ;
13384 int result;
13385 PyObject * obj0 = 0 ;
13386 PyObject * obj1 = 0 ;
13387 char *kwnames[] = {
13388 (char *) "self",(char *) "x", NULL
13389 };
13390
13391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13394 arg2 = (int) SWIG_AsInt(obj1);
13395 if (PyErr_Occurred()) SWIG_fail;
13396 {
13397 PyThreadState* __tstate = wxPyBeginAllowThreads();
13398 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13399
13400 wxPyEndAllowThreads(__tstate);
13401 if (PyErr_Occurred()) SWIG_fail;
13402 }
13403 resultobj = SWIG_FromInt((int)result);
13404 return resultobj;
13405 fail:
13406 return NULL;
13407 }
13408
13409
13410 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj;
13412 wxDC *arg1 = (wxDC *) 0 ;
13413 int arg2 ;
13414 int result;
13415 PyObject * obj0 = 0 ;
13416 PyObject * obj1 = 0 ;
13417 char *kwnames[] = {
13418 (char *) "self",(char *) "y", NULL
13419 };
13420
13421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13424 arg2 = (int) SWIG_AsInt(obj1);
13425 if (PyErr_Occurred()) SWIG_fail;
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 resultobj = SWIG_FromInt((int)result);
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj;
13442 wxDC *arg1 = (wxDC *) 0 ;
13443 int arg2 ;
13444 int result;
13445 PyObject * obj0 = 0 ;
13446 PyObject * obj1 = 0 ;
13447 char *kwnames[] = {
13448 (char *) "self",(char *) "x", NULL
13449 };
13450
13451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13454 arg2 = (int) SWIG_AsInt(obj1);
13455 if (PyErr_Occurred()) SWIG_fail;
13456 {
13457 PyThreadState* __tstate = wxPyBeginAllowThreads();
13458 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13459
13460 wxPyEndAllowThreads(__tstate);
13461 if (PyErr_Occurred()) SWIG_fail;
13462 }
13463 resultobj = SWIG_FromInt((int)result);
13464 return resultobj;
13465 fail:
13466 return NULL;
13467 }
13468
13469
13470 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13471 PyObject *resultobj;
13472 wxDC *arg1 = (wxDC *) 0 ;
13473 int arg2 ;
13474 int result;
13475 PyObject * obj0 = 0 ;
13476 PyObject * obj1 = 0 ;
13477 char *kwnames[] = {
13478 (char *) "self",(char *) "y", NULL
13479 };
13480
13481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13484 arg2 = (int) SWIG_AsInt(obj1);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 {
13487 PyThreadState* __tstate = wxPyBeginAllowThreads();
13488 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13489
13490 wxPyEndAllowThreads(__tstate);
13491 if (PyErr_Occurred()) SWIG_fail;
13492 }
13493 resultobj = SWIG_FromInt((int)result);
13494 return resultobj;
13495 fail:
13496 return NULL;
13497 }
13498
13499
13500 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13501 PyObject *resultobj;
13502 wxDC *arg1 = (wxDC *) 0 ;
13503 bool result;
13504 PyObject * obj0 = 0 ;
13505 char *kwnames[] = {
13506 (char *) "self", NULL
13507 };
13508
13509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13515
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 {
13520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13521 }
13522 return resultobj;
13523 fail:
13524 return NULL;
13525 }
13526
13527
13528 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13529 PyObject *resultobj;
13530 wxDC *arg1 = (wxDC *) 0 ;
13531 bool result;
13532 PyObject * obj0 = 0 ;
13533 char *kwnames[] = {
13534 (char *) "self", NULL
13535 };
13536
13537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13540 {
13541 PyThreadState* __tstate = wxPyBeginAllowThreads();
13542 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13543
13544 wxPyEndAllowThreads(__tstate);
13545 if (PyErr_Occurred()) SWIG_fail;
13546 }
13547 {
13548 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13549 }
13550 return resultobj;
13551 fail:
13552 return NULL;
13553 }
13554
13555
13556 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13557 PyObject *resultobj;
13558 wxDC *arg1 = (wxDC *) 0 ;
13559 int result;
13560 PyObject * obj0 = 0 ;
13561 char *kwnames[] = {
13562 (char *) "self", NULL
13563 };
13564
13565 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13566 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13568 {
13569 PyThreadState* __tstate = wxPyBeginAllowThreads();
13570 result = (int)((wxDC const *)arg1)->GetDepth();
13571
13572 wxPyEndAllowThreads(__tstate);
13573 if (PyErr_Occurred()) SWIG_fail;
13574 }
13575 resultobj = SWIG_FromInt((int)result);
13576 return resultobj;
13577 fail:
13578 return NULL;
13579 }
13580
13581
13582 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13583 PyObject *resultobj;
13584 wxDC *arg1 = (wxDC *) 0 ;
13585 wxSize result;
13586 PyObject * obj0 = 0 ;
13587 char *kwnames[] = {
13588 (char *) "self", NULL
13589 };
13590
13591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = ((wxDC const *)arg1)->GetPPI();
13597
13598 wxPyEndAllowThreads(__tstate);
13599 if (PyErr_Occurred()) SWIG_fail;
13600 }
13601 {
13602 wxSize * resultptr;
13603 resultptr = new wxSize((wxSize &) result);
13604 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13605 }
13606 return resultobj;
13607 fail:
13608 return NULL;
13609 }
13610
13611
13612 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13613 PyObject *resultobj;
13614 wxDC *arg1 = (wxDC *) 0 ;
13615 bool result;
13616 PyObject * obj0 = 0 ;
13617 char *kwnames[] = {
13618 (char *) "self", NULL
13619 };
13620
13621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13624 {
13625 PyThreadState* __tstate = wxPyBeginAllowThreads();
13626 result = (bool)((wxDC const *)arg1)->Ok();
13627
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 {
13632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13633 }
13634 return resultobj;
13635 fail:
13636 return NULL;
13637 }
13638
13639
13640 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13641 PyObject *resultobj;
13642 wxDC *arg1 = (wxDC *) 0 ;
13643 int result;
13644 PyObject * obj0 = 0 ;
13645 char *kwnames[] = {
13646 (char *) "self", NULL
13647 };
13648
13649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13651 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13652 {
13653 PyThreadState* __tstate = wxPyBeginAllowThreads();
13654 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13655
13656 wxPyEndAllowThreads(__tstate);
13657 if (PyErr_Occurred()) SWIG_fail;
13658 }
13659 resultobj = SWIG_FromInt((int)result);
13660 return resultobj;
13661 fail:
13662 return NULL;
13663 }
13664
13665
13666 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13667 PyObject *resultobj;
13668 wxDC *arg1 = (wxDC *) 0 ;
13669 wxBrush *result;
13670 PyObject * obj0 = 0 ;
13671 char *kwnames[] = {
13672 (char *) "self", NULL
13673 };
13674
13675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13678 {
13679 PyThreadState* __tstate = wxPyBeginAllowThreads();
13680 {
13681 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13682 result = (wxBrush *) &_result_ref;
13683 }
13684
13685 wxPyEndAllowThreads(__tstate);
13686 if (PyErr_Occurred()) SWIG_fail;
13687 }
13688 {
13689 wxBrush* resultptr = new wxBrush(*result);
13690 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13691 }
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13699 PyObject *resultobj;
13700 wxDC *arg1 = (wxDC *) 0 ;
13701 wxBrush *result;
13702 PyObject * obj0 = 0 ;
13703 char *kwnames[] = {
13704 (char *) "self", NULL
13705 };
13706
13707 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13708 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13709 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13710 {
13711 PyThreadState* __tstate = wxPyBeginAllowThreads();
13712 {
13713 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13714 result = (wxBrush *) &_result_ref;
13715 }
13716
13717 wxPyEndAllowThreads(__tstate);
13718 if (PyErr_Occurred()) SWIG_fail;
13719 }
13720 {
13721 wxBrush* resultptr = new wxBrush(*result);
13722 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13723 }
13724 return resultobj;
13725 fail:
13726 return NULL;
13727 }
13728
13729
13730 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13731 PyObject *resultobj;
13732 wxDC *arg1 = (wxDC *) 0 ;
13733 wxFont *result;
13734 PyObject * obj0 = 0 ;
13735 char *kwnames[] = {
13736 (char *) "self", NULL
13737 };
13738
13739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13742 {
13743 PyThreadState* __tstate = wxPyBeginAllowThreads();
13744 {
13745 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13746 result = (wxFont *) &_result_ref;
13747 }
13748
13749 wxPyEndAllowThreads(__tstate);
13750 if (PyErr_Occurred()) SWIG_fail;
13751 }
13752 {
13753 wxFont* resultptr = new wxFont(*result);
13754 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13755 }
13756 return resultobj;
13757 fail:
13758 return NULL;
13759 }
13760
13761
13762 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13763 PyObject *resultobj;
13764 wxDC *arg1 = (wxDC *) 0 ;
13765 wxPen *result;
13766 PyObject * obj0 = 0 ;
13767 char *kwnames[] = {
13768 (char *) "self", NULL
13769 };
13770
13771 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13772 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13773 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
13776 {
13777 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13778 result = (wxPen *) &_result_ref;
13779 }
13780
13781 wxPyEndAllowThreads(__tstate);
13782 if (PyErr_Occurred()) SWIG_fail;
13783 }
13784 {
13785 wxPen* resultptr = new wxPen(*result);
13786 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791 }
13792
13793
13794 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13795 PyObject *resultobj;
13796 wxDC *arg1 = (wxDC *) 0 ;
13797 wxColour *result;
13798 PyObject * obj0 = 0 ;
13799 char *kwnames[] = {
13800 (char *) "self", NULL
13801 };
13802
13803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13806 {
13807 PyThreadState* __tstate = wxPyBeginAllowThreads();
13808 {
13809 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13810 result = (wxColour *) &_result_ref;
13811 }
13812
13813 wxPyEndAllowThreads(__tstate);
13814 if (PyErr_Occurred()) SWIG_fail;
13815 }
13816 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13817 return resultobj;
13818 fail:
13819 return NULL;
13820 }
13821
13822
13823 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13824 PyObject *resultobj;
13825 wxDC *arg1 = (wxDC *) 0 ;
13826 wxColour *result;
13827 PyObject * obj0 = 0 ;
13828 char *kwnames[] = {
13829 (char *) "self", NULL
13830 };
13831
13832 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13833 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13834 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13835 {
13836 PyThreadState* __tstate = wxPyBeginAllowThreads();
13837 {
13838 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13839 result = (wxColour *) &_result_ref;
13840 }
13841
13842 wxPyEndAllowThreads(__tstate);
13843 if (PyErr_Occurred()) SWIG_fail;
13844 }
13845 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj;
13854 wxDC *arg1 = (wxDC *) 0 ;
13855 wxColour *arg2 = 0 ;
13856 wxColour temp2 ;
13857 PyObject * obj0 = 0 ;
13858 PyObject * obj1 = 0 ;
13859 char *kwnames[] = {
13860 (char *) "self",(char *) "colour", NULL
13861 };
13862
13863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13866 {
13867 arg2 = &temp2;
13868 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13869 }
13870 {
13871 PyThreadState* __tstate = wxPyBeginAllowThreads();
13872 (arg1)->SetTextForeground((wxColour const &)*arg2);
13873
13874 wxPyEndAllowThreads(__tstate);
13875 if (PyErr_Occurred()) SWIG_fail;
13876 }
13877 Py_INCREF(Py_None); resultobj = Py_None;
13878 return resultobj;
13879 fail:
13880 return NULL;
13881 }
13882
13883
13884 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13885 PyObject *resultobj;
13886 wxDC *arg1 = (wxDC *) 0 ;
13887 wxColour *arg2 = 0 ;
13888 wxColour temp2 ;
13889 PyObject * obj0 = 0 ;
13890 PyObject * obj1 = 0 ;
13891 char *kwnames[] = {
13892 (char *) "self",(char *) "colour", NULL
13893 };
13894
13895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13898 {
13899 arg2 = &temp2;
13900 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13901 }
13902 {
13903 PyThreadState* __tstate = wxPyBeginAllowThreads();
13904 (arg1)->SetTextBackground((wxColour const &)*arg2);
13905
13906 wxPyEndAllowThreads(__tstate);
13907 if (PyErr_Occurred()) SWIG_fail;
13908 }
13909 Py_INCREF(Py_None); resultobj = Py_None;
13910 return resultobj;
13911 fail:
13912 return NULL;
13913 }
13914
13915
13916 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13917 PyObject *resultobj;
13918 wxDC *arg1 = (wxDC *) 0 ;
13919 int result;
13920 PyObject * obj0 = 0 ;
13921 char *kwnames[] = {
13922 (char *) "self", NULL
13923 };
13924
13925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 result = (int)((wxDC const *)arg1)->GetMapMode();
13931
13932 wxPyEndAllowThreads(__tstate);
13933 if (PyErr_Occurred()) SWIG_fail;
13934 }
13935 resultobj = SWIG_FromInt((int)result);
13936 return resultobj;
13937 fail:
13938 return NULL;
13939 }
13940
13941
13942 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13943 PyObject *resultobj;
13944 wxDC *arg1 = (wxDC *) 0 ;
13945 int arg2 ;
13946 PyObject * obj0 = 0 ;
13947 PyObject * obj1 = 0 ;
13948 char *kwnames[] = {
13949 (char *) "self",(char *) "mode", NULL
13950 };
13951
13952 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13953 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13954 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13955 arg2 = (int) SWIG_AsInt(obj1);
13956 if (PyErr_Occurred()) SWIG_fail;
13957 {
13958 PyThreadState* __tstate = wxPyBeginAllowThreads();
13959 (arg1)->SetMapMode(arg2);
13960
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 Py_INCREF(Py_None); resultobj = Py_None;
13965 return resultobj;
13966 fail:
13967 return NULL;
13968 }
13969
13970
13971 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13972 PyObject *resultobj;
13973 wxDC *arg1 = (wxDC *) 0 ;
13974 double *arg2 = (double *) 0 ;
13975 double *arg3 = (double *) 0 ;
13976 double temp2 ;
13977 double temp3 ;
13978 PyObject * obj0 = 0 ;
13979 char *kwnames[] = {
13980 (char *) "self", NULL
13981 };
13982
13983 arg2 = &temp2;
13984 arg3 = &temp3;
13985 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13986 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13987 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13988 {
13989 PyThreadState* __tstate = wxPyBeginAllowThreads();
13990 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
13991
13992 wxPyEndAllowThreads(__tstate);
13993 if (PyErr_Occurred()) SWIG_fail;
13994 }
13995 Py_INCREF(Py_None); resultobj = Py_None;
13996 {
13997 PyObject *o = PyFloat_FromDouble((double) (*arg2));
13998 resultobj = t_output_helper(resultobj,o);
13999 }
14000 {
14001 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14002 resultobj = t_output_helper(resultobj,o);
14003 }
14004 return resultobj;
14005 fail:
14006 return NULL;
14007 }
14008
14009
14010 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14011 PyObject *resultobj;
14012 wxDC *arg1 = (wxDC *) 0 ;
14013 double arg2 ;
14014 double arg3 ;
14015 PyObject * obj0 = 0 ;
14016 PyObject * obj1 = 0 ;
14017 PyObject * obj2 = 0 ;
14018 char *kwnames[] = {
14019 (char *) "self",(char *) "x",(char *) "y", NULL
14020 };
14021
14022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14025 arg2 = (double) SWIG_AsDouble(obj1);
14026 if (PyErr_Occurred()) SWIG_fail;
14027 arg3 = (double) SWIG_AsDouble(obj2);
14028 if (PyErr_Occurred()) SWIG_fail;
14029 {
14030 PyThreadState* __tstate = wxPyBeginAllowThreads();
14031 (arg1)->SetUserScale(arg2,arg3);
14032
14033 wxPyEndAllowThreads(__tstate);
14034 if (PyErr_Occurred()) SWIG_fail;
14035 }
14036 Py_INCREF(Py_None); resultobj = Py_None;
14037 return resultobj;
14038 fail:
14039 return NULL;
14040 }
14041
14042
14043 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14044 PyObject *resultobj;
14045 wxDC *arg1 = (wxDC *) 0 ;
14046 double *arg2 = (double *) 0 ;
14047 double *arg3 = (double *) 0 ;
14048 double temp2 ;
14049 double temp3 ;
14050 PyObject * obj0 = 0 ;
14051 char *kwnames[] = {
14052 (char *) "self", NULL
14053 };
14054
14055 arg2 = &temp2;
14056 arg3 = &temp3;
14057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14060 {
14061 PyThreadState* __tstate = wxPyBeginAllowThreads();
14062 (arg1)->GetLogicalScale(arg2,arg3);
14063
14064 wxPyEndAllowThreads(__tstate);
14065 if (PyErr_Occurred()) SWIG_fail;
14066 }
14067 Py_INCREF(Py_None); resultobj = Py_None;
14068 {
14069 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14070 resultobj = t_output_helper(resultobj,o);
14071 }
14072 {
14073 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14074 resultobj = t_output_helper(resultobj,o);
14075 }
14076 return resultobj;
14077 fail:
14078 return NULL;
14079 }
14080
14081
14082 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14083 PyObject *resultobj;
14084 wxDC *arg1 = (wxDC *) 0 ;
14085 double arg2 ;
14086 double arg3 ;
14087 PyObject * obj0 = 0 ;
14088 PyObject * obj1 = 0 ;
14089 PyObject * obj2 = 0 ;
14090 char *kwnames[] = {
14091 (char *) "self",(char *) "x",(char *) "y", NULL
14092 };
14093
14094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14097 arg2 = (double) SWIG_AsDouble(obj1);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 arg3 = (double) SWIG_AsDouble(obj2);
14100 if (PyErr_Occurred()) SWIG_fail;
14101 {
14102 PyThreadState* __tstate = wxPyBeginAllowThreads();
14103 (arg1)->SetLogicalScale(arg2,arg3);
14104
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 Py_INCREF(Py_None); resultobj = Py_None;
14109 return resultobj;
14110 fail:
14111 return NULL;
14112 }
14113
14114
14115 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14116 PyObject *resultobj;
14117 wxDC *arg1 = (wxDC *) 0 ;
14118 wxPoint result;
14119 PyObject * obj0 = 0 ;
14120 char *kwnames[] = {
14121 (char *) "self", NULL
14122 };
14123
14124 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14125 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14126 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14127 {
14128 PyThreadState* __tstate = wxPyBeginAllowThreads();
14129 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14130
14131 wxPyEndAllowThreads(__tstate);
14132 if (PyErr_Occurred()) SWIG_fail;
14133 }
14134 {
14135 wxPoint * resultptr;
14136 resultptr = new wxPoint((wxPoint &) result);
14137 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14138 }
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj;
14147 wxDC *arg1 = (wxDC *) 0 ;
14148 int *arg2 = (int *) 0 ;
14149 int *arg3 = (int *) 0 ;
14150 int temp2 ;
14151 int temp3 ;
14152 PyObject * obj0 = 0 ;
14153 char *kwnames[] = {
14154 (char *) "self", NULL
14155 };
14156
14157 arg2 = &temp2;
14158 arg3 = &temp3;
14159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14162 {
14163 PyThreadState* __tstate = wxPyBeginAllowThreads();
14164 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14165
14166 wxPyEndAllowThreads(__tstate);
14167 if (PyErr_Occurred()) SWIG_fail;
14168 }
14169 Py_INCREF(Py_None); resultobj = Py_None;
14170 {
14171 PyObject *o = PyInt_FromLong((long) (*arg2));
14172 resultobj = t_output_helper(resultobj,o);
14173 }
14174 {
14175 PyObject *o = PyInt_FromLong((long) (*arg3));
14176 resultobj = t_output_helper(resultobj,o);
14177 }
14178 return resultobj;
14179 fail:
14180 return NULL;
14181 }
14182
14183
14184 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14185 PyObject *resultobj;
14186 wxDC *arg1 = (wxDC *) 0 ;
14187 int arg2 ;
14188 int arg3 ;
14189 PyObject * obj0 = 0 ;
14190 PyObject * obj1 = 0 ;
14191 PyObject * obj2 = 0 ;
14192 char *kwnames[] = {
14193 (char *) "self",(char *) "x",(char *) "y", NULL
14194 };
14195
14196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14199 arg2 = (int) SWIG_AsInt(obj1);
14200 if (PyErr_Occurred()) SWIG_fail;
14201 arg3 = (int) SWIG_AsInt(obj2);
14202 if (PyErr_Occurred()) SWIG_fail;
14203 {
14204 PyThreadState* __tstate = wxPyBeginAllowThreads();
14205 (arg1)->SetLogicalOrigin(arg2,arg3);
14206
14207 wxPyEndAllowThreads(__tstate);
14208 if (PyErr_Occurred()) SWIG_fail;
14209 }
14210 Py_INCREF(Py_None); resultobj = Py_None;
14211 return resultobj;
14212 fail:
14213 return NULL;
14214 }
14215
14216
14217 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14218 PyObject *resultobj;
14219 wxDC *arg1 = (wxDC *) 0 ;
14220 wxPoint *arg2 = 0 ;
14221 wxPoint temp2 ;
14222 PyObject * obj0 = 0 ;
14223 PyObject * obj1 = 0 ;
14224 char *kwnames[] = {
14225 (char *) "self",(char *) "point", NULL
14226 };
14227
14228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14231 {
14232 arg2 = &temp2;
14233 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14234 }
14235 {
14236 PyThreadState* __tstate = wxPyBeginAllowThreads();
14237 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14238
14239 wxPyEndAllowThreads(__tstate);
14240 if (PyErr_Occurred()) SWIG_fail;
14241 }
14242 Py_INCREF(Py_None); resultobj = Py_None;
14243 return resultobj;
14244 fail:
14245 return NULL;
14246 }
14247
14248
14249 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14250 PyObject *resultobj;
14251 wxDC *arg1 = (wxDC *) 0 ;
14252 wxPoint result;
14253 PyObject * obj0 = 0 ;
14254 char *kwnames[] = {
14255 (char *) "self", NULL
14256 };
14257
14258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14261 {
14262 PyThreadState* __tstate = wxPyBeginAllowThreads();
14263 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14264
14265 wxPyEndAllowThreads(__tstate);
14266 if (PyErr_Occurred()) SWIG_fail;
14267 }
14268 {
14269 wxPoint * resultptr;
14270 resultptr = new wxPoint((wxPoint &) result);
14271 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14272 }
14273 return resultobj;
14274 fail:
14275 return NULL;
14276 }
14277
14278
14279 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj;
14281 wxDC *arg1 = (wxDC *) 0 ;
14282 int *arg2 = (int *) 0 ;
14283 int *arg3 = (int *) 0 ;
14284 int temp2 ;
14285 int temp3 ;
14286 PyObject * obj0 = 0 ;
14287 char *kwnames[] = {
14288 (char *) "self", NULL
14289 };
14290
14291 arg2 = &temp2;
14292 arg3 = &temp3;
14293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14296 {
14297 PyThreadState* __tstate = wxPyBeginAllowThreads();
14298 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14299
14300 wxPyEndAllowThreads(__tstate);
14301 if (PyErr_Occurred()) SWIG_fail;
14302 }
14303 Py_INCREF(Py_None); resultobj = Py_None;
14304 {
14305 PyObject *o = PyInt_FromLong((long) (*arg2));
14306 resultobj = t_output_helper(resultobj,o);
14307 }
14308 {
14309 PyObject *o = PyInt_FromLong((long) (*arg3));
14310 resultobj = t_output_helper(resultobj,o);
14311 }
14312 return resultobj;
14313 fail:
14314 return NULL;
14315 }
14316
14317
14318 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14319 PyObject *resultobj;
14320 wxDC *arg1 = (wxDC *) 0 ;
14321 int arg2 ;
14322 int arg3 ;
14323 PyObject * obj0 = 0 ;
14324 PyObject * obj1 = 0 ;
14325 PyObject * obj2 = 0 ;
14326 char *kwnames[] = {
14327 (char *) "self",(char *) "x",(char *) "y", NULL
14328 };
14329
14330 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14331 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14332 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14333 arg2 = (int) SWIG_AsInt(obj1);
14334 if (PyErr_Occurred()) SWIG_fail;
14335 arg3 = (int) SWIG_AsInt(obj2);
14336 if (PyErr_Occurred()) SWIG_fail;
14337 {
14338 PyThreadState* __tstate = wxPyBeginAllowThreads();
14339 (arg1)->SetDeviceOrigin(arg2,arg3);
14340
14341 wxPyEndAllowThreads(__tstate);
14342 if (PyErr_Occurred()) SWIG_fail;
14343 }
14344 Py_INCREF(Py_None); resultobj = Py_None;
14345 return resultobj;
14346 fail:
14347 return NULL;
14348 }
14349
14350
14351 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14352 PyObject *resultobj;
14353 wxDC *arg1 = (wxDC *) 0 ;
14354 wxPoint *arg2 = 0 ;
14355 wxPoint temp2 ;
14356 PyObject * obj0 = 0 ;
14357 PyObject * obj1 = 0 ;
14358 char *kwnames[] = {
14359 (char *) "self",(char *) "point", NULL
14360 };
14361
14362 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14363 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14364 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14365 {
14366 arg2 = &temp2;
14367 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14368 }
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14372
14373 wxPyEndAllowThreads(__tstate);
14374 if (PyErr_Occurred()) SWIG_fail;
14375 }
14376 Py_INCREF(Py_None); resultobj = Py_None;
14377 return resultobj;
14378 fail:
14379 return NULL;
14380 }
14381
14382
14383 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14384 PyObject *resultobj;
14385 wxDC *arg1 = (wxDC *) 0 ;
14386 bool arg2 ;
14387 bool arg3 ;
14388 PyObject * obj0 = 0 ;
14389 PyObject * obj1 = 0 ;
14390 PyObject * obj2 = 0 ;
14391 char *kwnames[] = {
14392 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14393 };
14394
14395 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14396 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14397 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14398 arg2 = (bool) SWIG_AsBool(obj1);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 arg3 = (bool) SWIG_AsBool(obj2);
14401 if (PyErr_Occurred()) SWIG_fail;
14402 {
14403 PyThreadState* __tstate = wxPyBeginAllowThreads();
14404 (arg1)->SetAxisOrientation(arg2,arg3);
14405
14406 wxPyEndAllowThreads(__tstate);
14407 if (PyErr_Occurred()) SWIG_fail;
14408 }
14409 Py_INCREF(Py_None); resultobj = Py_None;
14410 return resultobj;
14411 fail:
14412 return NULL;
14413 }
14414
14415
14416 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14417 PyObject *resultobj;
14418 wxDC *arg1 = (wxDC *) 0 ;
14419 int result;
14420 PyObject * obj0 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14428 {
14429 PyThreadState* __tstate = wxPyBeginAllowThreads();
14430 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14431
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 resultobj = SWIG_FromInt((int)result);
14436 return resultobj;
14437 fail:
14438 return NULL;
14439 }
14440
14441
14442 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14443 PyObject *resultobj;
14444 wxDC *arg1 = (wxDC *) 0 ;
14445 int arg2 ;
14446 PyObject * obj0 = 0 ;
14447 PyObject * obj1 = 0 ;
14448 char *kwnames[] = {
14449 (char *) "self",(char *) "function", NULL
14450 };
14451
14452 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14453 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14454 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14455 arg2 = (int) SWIG_AsInt(obj1);
14456 if (PyErr_Occurred()) SWIG_fail;
14457 {
14458 PyThreadState* __tstate = wxPyBeginAllowThreads();
14459 (arg1)->SetLogicalFunction(arg2);
14460
14461 wxPyEndAllowThreads(__tstate);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 }
14464 Py_INCREF(Py_None); resultobj = Py_None;
14465 return resultobj;
14466 fail:
14467 return NULL;
14468 }
14469
14470
14471 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14472 PyObject *resultobj;
14473 wxDC *arg1 = (wxDC *) 0 ;
14474 bool arg2 ;
14475 PyObject * obj0 = 0 ;
14476 PyObject * obj1 = 0 ;
14477 char *kwnames[] = {
14478 (char *) "self",(char *) "opt", NULL
14479 };
14480
14481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14484 arg2 = (bool) SWIG_AsBool(obj1);
14485 if (PyErr_Occurred()) SWIG_fail;
14486 {
14487 PyThreadState* __tstate = wxPyBeginAllowThreads();
14488 (arg1)->SetOptimization(arg2);
14489
14490 wxPyEndAllowThreads(__tstate);
14491 if (PyErr_Occurred()) SWIG_fail;
14492 }
14493 Py_INCREF(Py_None); resultobj = Py_None;
14494 return resultobj;
14495 fail:
14496 return NULL;
14497 }
14498
14499
14500 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14501 PyObject *resultobj;
14502 wxDC *arg1 = (wxDC *) 0 ;
14503 bool result;
14504 PyObject * obj0 = 0 ;
14505 char *kwnames[] = {
14506 (char *) "self", NULL
14507 };
14508
14509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14512 {
14513 PyThreadState* __tstate = wxPyBeginAllowThreads();
14514 result = (bool)(arg1)->GetOptimization();
14515
14516 wxPyEndAllowThreads(__tstate);
14517 if (PyErr_Occurred()) SWIG_fail;
14518 }
14519 {
14520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14521 }
14522 return resultobj;
14523 fail:
14524 return NULL;
14525 }
14526
14527
14528 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14529 PyObject *resultobj;
14530 wxDC *arg1 = (wxDC *) 0 ;
14531 int arg2 ;
14532 int arg3 ;
14533 PyObject * obj0 = 0 ;
14534 PyObject * obj1 = 0 ;
14535 PyObject * obj2 = 0 ;
14536 char *kwnames[] = {
14537 (char *) "self",(char *) "x",(char *) "y", NULL
14538 };
14539
14540 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14541 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14542 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14543 arg2 = (int) SWIG_AsInt(obj1);
14544 if (PyErr_Occurred()) SWIG_fail;
14545 arg3 = (int) SWIG_AsInt(obj2);
14546 if (PyErr_Occurred()) SWIG_fail;
14547 {
14548 PyThreadState* __tstate = wxPyBeginAllowThreads();
14549 (arg1)->CalcBoundingBox(arg2,arg3);
14550
14551 wxPyEndAllowThreads(__tstate);
14552 if (PyErr_Occurred()) SWIG_fail;
14553 }
14554 Py_INCREF(Py_None); resultobj = Py_None;
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj;
14563 wxDC *arg1 = (wxDC *) 0 ;
14564 wxPoint *arg2 = 0 ;
14565 wxPoint temp2 ;
14566 PyObject * obj0 = 0 ;
14567 PyObject * obj1 = 0 ;
14568 char *kwnames[] = {
14569 (char *) "self",(char *) "point", NULL
14570 };
14571
14572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14575 {
14576 arg2 = &temp2;
14577 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14578 }
14579 {
14580 PyThreadState* __tstate = wxPyBeginAllowThreads();
14581 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14582
14583 wxPyEndAllowThreads(__tstate);
14584 if (PyErr_Occurred()) SWIG_fail;
14585 }
14586 Py_INCREF(Py_None); resultobj = Py_None;
14587 return resultobj;
14588 fail:
14589 return NULL;
14590 }
14591
14592
14593 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14594 PyObject *resultobj;
14595 wxDC *arg1 = (wxDC *) 0 ;
14596 PyObject * obj0 = 0 ;
14597 char *kwnames[] = {
14598 (char *) "self", NULL
14599 };
14600
14601 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14602 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14603 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14604 {
14605 PyThreadState* __tstate = wxPyBeginAllowThreads();
14606 (arg1)->ResetBoundingBox();
14607
14608 wxPyEndAllowThreads(__tstate);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 }
14611 Py_INCREF(Py_None); resultobj = Py_None;
14612 return resultobj;
14613 fail:
14614 return NULL;
14615 }
14616
14617
14618 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14619 PyObject *resultobj;
14620 wxDC *arg1 = (wxDC *) 0 ;
14621 int result;
14622 PyObject * obj0 = 0 ;
14623 char *kwnames[] = {
14624 (char *) "self", NULL
14625 };
14626
14627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14630 {
14631 PyThreadState* __tstate = wxPyBeginAllowThreads();
14632 result = (int)((wxDC const *)arg1)->MinX();
14633
14634 wxPyEndAllowThreads(__tstate);
14635 if (PyErr_Occurred()) SWIG_fail;
14636 }
14637 resultobj = SWIG_FromInt((int)result);
14638 return resultobj;
14639 fail:
14640 return NULL;
14641 }
14642
14643
14644 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14645 PyObject *resultobj;
14646 wxDC *arg1 = (wxDC *) 0 ;
14647 int result;
14648 PyObject * obj0 = 0 ;
14649 char *kwnames[] = {
14650 (char *) "self", NULL
14651 };
14652
14653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14656 {
14657 PyThreadState* __tstate = wxPyBeginAllowThreads();
14658 result = (int)((wxDC const *)arg1)->MaxX();
14659
14660 wxPyEndAllowThreads(__tstate);
14661 if (PyErr_Occurred()) SWIG_fail;
14662 }
14663 resultobj = SWIG_FromInt((int)result);
14664 return resultobj;
14665 fail:
14666 return NULL;
14667 }
14668
14669
14670 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14671 PyObject *resultobj;
14672 wxDC *arg1 = (wxDC *) 0 ;
14673 int result;
14674 PyObject * obj0 = 0 ;
14675 char *kwnames[] = {
14676 (char *) "self", NULL
14677 };
14678
14679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14680 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14681 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 result = (int)((wxDC const *)arg1)->MinY();
14685
14686 wxPyEndAllowThreads(__tstate);
14687 if (PyErr_Occurred()) SWIG_fail;
14688 }
14689 resultobj = SWIG_FromInt((int)result);
14690 return resultobj;
14691 fail:
14692 return NULL;
14693 }
14694
14695
14696 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14697 PyObject *resultobj;
14698 wxDC *arg1 = (wxDC *) 0 ;
14699 int result;
14700 PyObject * obj0 = 0 ;
14701 char *kwnames[] = {
14702 (char *) "self", NULL
14703 };
14704
14705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14708 {
14709 PyThreadState* __tstate = wxPyBeginAllowThreads();
14710 result = (int)((wxDC const *)arg1)->MaxY();
14711
14712 wxPyEndAllowThreads(__tstate);
14713 if (PyErr_Occurred()) SWIG_fail;
14714 }
14715 resultobj = SWIG_FromInt((int)result);
14716 return resultobj;
14717 fail:
14718 return NULL;
14719 }
14720
14721
14722 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14723 PyObject *resultobj;
14724 wxDC *arg1 = (wxDC *) 0 ;
14725 int *arg2 = (int *) 0 ;
14726 int *arg3 = (int *) 0 ;
14727 int *arg4 = (int *) 0 ;
14728 int *arg5 = (int *) 0 ;
14729 int temp2 ;
14730 int temp3 ;
14731 int temp4 ;
14732 int temp5 ;
14733 PyObject * obj0 = 0 ;
14734 char *kwnames[] = {
14735 (char *) "self", NULL
14736 };
14737
14738 arg2 = &temp2;
14739 arg3 = &temp3;
14740 arg4 = &temp4;
14741 arg5 = &temp5;
14742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 Py_INCREF(Py_None); resultobj = Py_None;
14753 {
14754 PyObject *o = PyInt_FromLong((long) (*arg2));
14755 resultobj = t_output_helper(resultobj,o);
14756 }
14757 {
14758 PyObject *o = PyInt_FromLong((long) (*arg3));
14759 resultobj = t_output_helper(resultobj,o);
14760 }
14761 {
14762 PyObject *o = PyInt_FromLong((long) (*arg4));
14763 resultobj = t_output_helper(resultobj,o);
14764 }
14765 {
14766 PyObject *o = PyInt_FromLong((long) (*arg5));
14767 resultobj = t_output_helper(resultobj,o);
14768 }
14769 return resultobj;
14770 fail:
14771 return NULL;
14772 }
14773
14774
14775 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14776 PyObject *resultobj;
14777 wxDC *arg1 = (wxDC *) 0 ;
14778 PyObject *arg2 = (PyObject *) 0 ;
14779 PyObject *arg3 = (PyObject *) 0 ;
14780 PyObject *arg4 = (PyObject *) 0 ;
14781 PyObject *result;
14782 PyObject * obj0 = 0 ;
14783 PyObject * obj1 = 0 ;
14784 PyObject * obj2 = 0 ;
14785 PyObject * obj3 = 0 ;
14786 char *kwnames[] = {
14787 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14788 };
14789
14790 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14791 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14792 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14793 arg2 = obj1;
14794 arg3 = obj2;
14795 arg4 = obj3;
14796 {
14797 PyThreadState* __tstate = wxPyBeginAllowThreads();
14798 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14799
14800 wxPyEndAllowThreads(__tstate);
14801 if (PyErr_Occurred()) SWIG_fail;
14802 }
14803 resultobj = result;
14804 return resultobj;
14805 fail:
14806 return NULL;
14807 }
14808
14809
14810 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14811 PyObject *resultobj;
14812 wxDC *arg1 = (wxDC *) 0 ;
14813 PyObject *arg2 = (PyObject *) 0 ;
14814 PyObject *arg3 = (PyObject *) 0 ;
14815 PyObject *arg4 = (PyObject *) 0 ;
14816 PyObject *result;
14817 PyObject * obj0 = 0 ;
14818 PyObject * obj1 = 0 ;
14819 PyObject * obj2 = 0 ;
14820 PyObject * obj3 = 0 ;
14821 char *kwnames[] = {
14822 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14823 };
14824
14825 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14826 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14827 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14828 arg2 = obj1;
14829 arg3 = obj2;
14830 arg4 = obj3;
14831 {
14832 PyThreadState* __tstate = wxPyBeginAllowThreads();
14833 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14834
14835 wxPyEndAllowThreads(__tstate);
14836 if (PyErr_Occurred()) SWIG_fail;
14837 }
14838 resultobj = result;
14839 return resultobj;
14840 fail:
14841 return NULL;
14842 }
14843
14844
14845 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14846 PyObject *resultobj;
14847 wxDC *arg1 = (wxDC *) 0 ;
14848 PyObject *arg2 = (PyObject *) 0 ;
14849 PyObject *arg3 = (PyObject *) 0 ;
14850 PyObject *arg4 = (PyObject *) 0 ;
14851 PyObject *result;
14852 PyObject * obj0 = 0 ;
14853 PyObject * obj1 = 0 ;
14854 PyObject * obj2 = 0 ;
14855 PyObject * obj3 = 0 ;
14856 char *kwnames[] = {
14857 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14858 };
14859
14860 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14861 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14862 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14863 arg2 = obj1;
14864 arg3 = obj2;
14865 arg4 = obj3;
14866 {
14867 PyThreadState* __tstate = wxPyBeginAllowThreads();
14868 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14869
14870 wxPyEndAllowThreads(__tstate);
14871 if (PyErr_Occurred()) SWIG_fail;
14872 }
14873 resultobj = result;
14874 return resultobj;
14875 fail:
14876 return NULL;
14877 }
14878
14879
14880 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14881 PyObject *resultobj;
14882 wxDC *arg1 = (wxDC *) 0 ;
14883 PyObject *arg2 = (PyObject *) 0 ;
14884 PyObject *arg3 = (PyObject *) 0 ;
14885 PyObject *arg4 = (PyObject *) 0 ;
14886 PyObject *result;
14887 PyObject * obj0 = 0 ;
14888 PyObject * obj1 = 0 ;
14889 PyObject * obj2 = 0 ;
14890 PyObject * obj3 = 0 ;
14891 char *kwnames[] = {
14892 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14893 };
14894
14895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14898 arg2 = obj1;
14899 arg3 = obj2;
14900 arg4 = obj3;
14901 {
14902 PyThreadState* __tstate = wxPyBeginAllowThreads();
14903 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14904
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = result;
14909 return resultobj;
14910 fail:
14911 return NULL;
14912 }
14913
14914
14915 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj;
14917 wxDC *arg1 = (wxDC *) 0 ;
14918 PyObject *arg2 = (PyObject *) 0 ;
14919 PyObject *arg3 = (PyObject *) 0 ;
14920 PyObject *arg4 = (PyObject *) 0 ;
14921 PyObject *result;
14922 PyObject * obj0 = 0 ;
14923 PyObject * obj1 = 0 ;
14924 PyObject * obj2 = 0 ;
14925 PyObject * obj3 = 0 ;
14926 char *kwnames[] = {
14927 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14928 };
14929
14930 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14931 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14933 arg2 = obj1;
14934 arg3 = obj2;
14935 arg4 = obj3;
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14939
14940 wxPyEndAllowThreads(__tstate);
14941 if (PyErr_Occurred()) SWIG_fail;
14942 }
14943 resultobj = result;
14944 return resultobj;
14945 fail:
14946 return NULL;
14947 }
14948
14949
14950 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14951 PyObject *resultobj;
14952 wxDC *arg1 = (wxDC *) 0 ;
14953 PyObject *arg2 = (PyObject *) 0 ;
14954 PyObject *arg3 = (PyObject *) 0 ;
14955 PyObject *arg4 = (PyObject *) 0 ;
14956 PyObject *arg5 = (PyObject *) 0 ;
14957 PyObject *result;
14958 PyObject * obj0 = 0 ;
14959 PyObject * obj1 = 0 ;
14960 PyObject * obj2 = 0 ;
14961 PyObject * obj3 = 0 ;
14962 PyObject * obj4 = 0 ;
14963 char *kwnames[] = {
14964 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14965 };
14966
14967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14970 arg2 = obj1;
14971 arg3 = obj2;
14972 arg4 = obj3;
14973 arg5 = obj4;
14974 {
14975 PyThreadState* __tstate = wxPyBeginAllowThreads();
14976 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14977
14978 wxPyEndAllowThreads(__tstate);
14979 if (PyErr_Occurred()) SWIG_fail;
14980 }
14981 resultobj = result;
14982 return resultobj;
14983 fail:
14984 return NULL;
14985 }
14986
14987
14988 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
14989 PyObject *obj;
14990 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
14991 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
14992 Py_INCREF(obj);
14993 return Py_BuildValue((char *)"");
14994 }
14995 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
14996 PyObject *resultobj;
14997 wxMemoryDC *result;
14998 char *kwnames[] = {
14999 NULL
15000 };
15001
15002 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15003 {
15004 if (!wxPyCheckForApp()) SWIG_fail;
15005 PyThreadState* __tstate = wxPyBeginAllowThreads();
15006 result = (wxMemoryDC *)new wxMemoryDC();
15007
15008 wxPyEndAllowThreads(__tstate);
15009 if (PyErr_Occurred()) SWIG_fail;
15010 }
15011 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15012 return resultobj;
15013 fail:
15014 return NULL;
15015 }
15016
15017
15018 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15019 PyObject *resultobj;
15020 wxDC *arg1 = (wxDC *) 0 ;
15021 wxMemoryDC *result;
15022 PyObject * obj0 = 0 ;
15023 char *kwnames[] = {
15024 (char *) "oldDC", NULL
15025 };
15026
15027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15030 {
15031 if (!wxPyCheckForApp()) SWIG_fail;
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15034
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15039 return resultobj;
15040 fail:
15041 return NULL;
15042 }
15043
15044
15045 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15046 PyObject *resultobj;
15047 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15048 wxBitmap *arg2 = 0 ;
15049 PyObject * obj0 = 0 ;
15050 PyObject * obj1 = 0 ;
15051 char *kwnames[] = {
15052 (char *) "self",(char *) "bitmap", NULL
15053 };
15054
15055 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15056 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15057 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15058 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15059 SWIG_POINTER_EXCEPTION | 0)) == -1)
15060 SWIG_fail;
15061 if (arg2 == NULL) {
15062 PyErr_SetString(PyExc_TypeError,"null reference");
15063 SWIG_fail;
15064 }
15065 {
15066 PyThreadState* __tstate = wxPyBeginAllowThreads();
15067 (arg1)->SelectObject((wxBitmap const &)*arg2);
15068
15069 wxPyEndAllowThreads(__tstate);
15070 if (PyErr_Occurred()) SWIG_fail;
15071 }
15072 Py_INCREF(Py_None); resultobj = Py_None;
15073 return resultobj;
15074 fail:
15075 return NULL;
15076 }
15077
15078
15079 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15080 PyObject *obj;
15081 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15082 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15083 Py_INCREF(obj);
15084 return Py_BuildValue((char *)"");
15085 }
15086 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15087 PyObject *resultobj;
15088 wxDC *arg1 = (wxDC *) 0 ;
15089 wxBitmap *arg2 = 0 ;
15090 wxBufferedDC *result;
15091 PyObject * obj0 = 0 ;
15092 PyObject * obj1 = 0 ;
15093
15094 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15098 SWIG_POINTER_EXCEPTION | 0)) == -1)
15099 SWIG_fail;
15100 if (arg2 == NULL) {
15101 PyErr_SetString(PyExc_TypeError,"null reference");
15102 SWIG_fail;
15103 }
15104 {
15105 if (!wxPyCheckForApp()) SWIG_fail;
15106 PyThreadState* __tstate = wxPyBeginAllowThreads();
15107 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15108
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15113 return resultobj;
15114 fail:
15115 return NULL;
15116 }
15117
15118
15119 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15120 PyObject *resultobj;
15121 wxDC *arg1 = (wxDC *) 0 ;
15122 wxSize *arg2 = 0 ;
15123 wxBufferedDC *result;
15124 wxSize temp2 ;
15125 PyObject * obj0 = 0 ;
15126 PyObject * obj1 = 0 ;
15127
15128 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15131 {
15132 arg2 = &temp2;
15133 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15134 }
15135 {
15136 if (!wxPyCheckForApp()) SWIG_fail;
15137 PyThreadState* __tstate = wxPyBeginAllowThreads();
15138 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15139
15140 wxPyEndAllowThreads(__tstate);
15141 if (PyErr_Occurred()) SWIG_fail;
15142 }
15143 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15144 return resultobj;
15145 fail:
15146 return NULL;
15147 }
15148
15149
15150 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15151 int argc;
15152 PyObject *argv[3];
15153 int ii;
15154
15155 argc = PyObject_Length(args);
15156 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15157 argv[ii] = PyTuple_GetItem(args,ii);
15158 }
15159 if (argc == 2) {
15160 int _v;
15161 {
15162 void *ptr;
15163 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15164 _v = 0;
15165 PyErr_Clear();
15166 } else {
15167 _v = 1;
15168 }
15169 }
15170 if (_v) {
15171 {
15172 void *ptr;
15173 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15174 _v = 0;
15175 PyErr_Clear();
15176 } else {
15177 _v = 1;
15178 }
15179 }
15180 if (_v) {
15181 return _wrap_new_BufferedDC__SWIG_0(self,args);
15182 }
15183 }
15184 }
15185 if (argc == 2) {
15186 int _v;
15187 {
15188 void *ptr;
15189 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15190 _v = 0;
15191 PyErr_Clear();
15192 } else {
15193 _v = 1;
15194 }
15195 }
15196 if (_v) {
15197 {
15198 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15199 }
15200 if (_v) {
15201 return _wrap_new_BufferedDC__SWIG_1(self,args);
15202 }
15203 }
15204 }
15205
15206 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15207 return NULL;
15208 }
15209
15210
15211 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15212 PyObject *resultobj;
15213 wxDC *arg1 = (wxDC *) 0 ;
15214 wxSize *arg2 = 0 ;
15215 wxBufferedDC *result;
15216 wxSize temp2 ;
15217 PyObject * obj0 = 0 ;
15218 PyObject * obj1 = 0 ;
15219
15220 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15223 {
15224 arg2 = &temp2;
15225 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15226 }
15227 {
15228 if (!wxPyCheckForApp()) SWIG_fail;
15229 PyThreadState* __tstate = wxPyBeginAllowThreads();
15230 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15231
15232 wxPyEndAllowThreads(__tstate);
15233 if (PyErr_Occurred()) SWIG_fail;
15234 }
15235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15236 return resultobj;
15237 fail:
15238 return NULL;
15239 }
15240
15241
15242 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15243 PyObject *resultobj;
15244 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15245 PyObject * obj0 = 0 ;
15246 char *kwnames[] = {
15247 (char *) "self", NULL
15248 };
15249
15250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15253 {
15254 PyThreadState* __tstate = wxPyBeginAllowThreads();
15255 delete arg1;
15256
15257 wxPyEndAllowThreads(__tstate);
15258 if (PyErr_Occurred()) SWIG_fail;
15259 }
15260 Py_INCREF(Py_None); resultobj = Py_None;
15261 return resultobj;
15262 fail:
15263 return NULL;
15264 }
15265
15266
15267 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15268 PyObject *resultobj;
15269 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15270 PyObject * obj0 = 0 ;
15271 char *kwnames[] = {
15272 (char *) "self", NULL
15273 };
15274
15275 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15276 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15277 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15278 {
15279 PyThreadState* __tstate = wxPyBeginAllowThreads();
15280 (arg1)->UnMask();
15281
15282 wxPyEndAllowThreads(__tstate);
15283 if (PyErr_Occurred()) SWIG_fail;
15284 }
15285 Py_INCREF(Py_None); resultobj = Py_None;
15286 return resultobj;
15287 fail:
15288 return NULL;
15289 }
15290
15291
15292 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15293 PyObject *obj;
15294 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15295 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15296 Py_INCREF(obj);
15297 return Py_BuildValue((char *)"");
15298 }
15299 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15300 PyObject *resultobj;
15301 wxWindow *arg1 = (wxWindow *) 0 ;
15302 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15303 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15304 wxBufferedPaintDC *result;
15305 PyObject * obj0 = 0 ;
15306 PyObject * obj1 = 0 ;
15307 char *kwnames[] = {
15308 (char *) "window",(char *) "buffer", NULL
15309 };
15310
15311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15314 if (obj1) {
15315 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15316 SWIG_POINTER_EXCEPTION | 0)) == -1)
15317 SWIG_fail;
15318 if (arg2 == NULL) {
15319 PyErr_SetString(PyExc_TypeError,"null reference");
15320 SWIG_fail;
15321 }
15322 }
15323 {
15324 if (!wxPyCheckForApp()) SWIG_fail;
15325 PyThreadState* __tstate = wxPyBeginAllowThreads();
15326 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15327
15328 wxPyEndAllowThreads(__tstate);
15329 if (PyErr_Occurred()) SWIG_fail;
15330 }
15331 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15332 return resultobj;
15333 fail:
15334 return NULL;
15335 }
15336
15337
15338 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15339 PyObject *obj;
15340 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15341 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15342 Py_INCREF(obj);
15343 return Py_BuildValue((char *)"");
15344 }
15345 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15346 PyObject *resultobj;
15347 wxScreenDC *result;
15348 char *kwnames[] = {
15349 NULL
15350 };
15351
15352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15353 {
15354 if (!wxPyCheckForApp()) SWIG_fail;
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
15356 result = (wxScreenDC *)new wxScreenDC();
15357
15358 wxPyEndAllowThreads(__tstate);
15359 if (PyErr_Occurred()) SWIG_fail;
15360 }
15361 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15362 return resultobj;
15363 fail:
15364 return NULL;
15365 }
15366
15367
15368 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15369 PyObject *resultobj;
15370 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15371 wxWindow *arg2 = (wxWindow *) 0 ;
15372 bool result;
15373 PyObject * obj0 = 0 ;
15374 PyObject * obj1 = 0 ;
15375 char *kwnames[] = {
15376 (char *) "self",(char *) "window", NULL
15377 };
15378
15379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15382 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15384 {
15385 PyThreadState* __tstate = wxPyBeginAllowThreads();
15386 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15387
15388 wxPyEndAllowThreads(__tstate);
15389 if (PyErr_Occurred()) SWIG_fail;
15390 }
15391 {
15392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15393 }
15394 return resultobj;
15395 fail:
15396 return NULL;
15397 }
15398
15399
15400 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15401 PyObject *resultobj;
15402 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15403 wxRect *arg2 = (wxRect *) NULL ;
15404 bool result;
15405 PyObject * obj0 = 0 ;
15406 PyObject * obj1 = 0 ;
15407 char *kwnames[] = {
15408 (char *) "self",(char *) "rect", NULL
15409 };
15410
15411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15414 if (obj1) {
15415 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15416 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15417 }
15418 {
15419 PyThreadState* __tstate = wxPyBeginAllowThreads();
15420 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15421
15422 wxPyEndAllowThreads(__tstate);
15423 if (PyErr_Occurred()) SWIG_fail;
15424 }
15425 {
15426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15427 }
15428 return resultobj;
15429 fail:
15430 return NULL;
15431 }
15432
15433
15434 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15435 PyObject *resultobj;
15436 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15437 bool result;
15438 PyObject * obj0 = 0 ;
15439 char *kwnames[] = {
15440 (char *) "self", NULL
15441 };
15442
15443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = (bool)(arg1)->EndDrawingOnTop();
15449
15450 wxPyEndAllowThreads(__tstate);
15451 if (PyErr_Occurred()) SWIG_fail;
15452 }
15453 {
15454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15455 }
15456 return resultobj;
15457 fail:
15458 return NULL;
15459 }
15460
15461
15462 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15463 PyObject *obj;
15464 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15465 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15466 Py_INCREF(obj);
15467 return Py_BuildValue((char *)"");
15468 }
15469 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15470 PyObject *resultobj;
15471 wxWindow *arg1 = (wxWindow *) 0 ;
15472 wxClientDC *result;
15473 PyObject * obj0 = 0 ;
15474 char *kwnames[] = {
15475 (char *) "win", NULL
15476 };
15477
15478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15481 {
15482 if (!wxPyCheckForApp()) SWIG_fail;
15483 PyThreadState* __tstate = wxPyBeginAllowThreads();
15484 result = (wxClientDC *)new wxClientDC(arg1);
15485
15486 wxPyEndAllowThreads(__tstate);
15487 if (PyErr_Occurred()) SWIG_fail;
15488 }
15489 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15490 return resultobj;
15491 fail:
15492 return NULL;
15493 }
15494
15495
15496 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15497 PyObject *obj;
15498 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15499 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15500 Py_INCREF(obj);
15501 return Py_BuildValue((char *)"");
15502 }
15503 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15504 PyObject *resultobj;
15505 wxWindow *arg1 = (wxWindow *) 0 ;
15506 wxPaintDC *result;
15507 PyObject * obj0 = 0 ;
15508 char *kwnames[] = {
15509 (char *) "win", NULL
15510 };
15511
15512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15515 {
15516 if (!wxPyCheckForApp()) SWIG_fail;
15517 PyThreadState* __tstate = wxPyBeginAllowThreads();
15518 result = (wxPaintDC *)new wxPaintDC(arg1);
15519
15520 wxPyEndAllowThreads(__tstate);
15521 if (PyErr_Occurred()) SWIG_fail;
15522 }
15523 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15524 return resultobj;
15525 fail:
15526 return NULL;
15527 }
15528
15529
15530 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15531 PyObject *obj;
15532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15533 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15534 Py_INCREF(obj);
15535 return Py_BuildValue((char *)"");
15536 }
15537 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15538 PyObject *resultobj;
15539 wxWindow *arg1 = (wxWindow *) 0 ;
15540 wxWindowDC *result;
15541 PyObject * obj0 = 0 ;
15542 char *kwnames[] = {
15543 (char *) "win", NULL
15544 };
15545
15546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15549 {
15550 if (!wxPyCheckForApp()) SWIG_fail;
15551 PyThreadState* __tstate = wxPyBeginAllowThreads();
15552 result = (wxWindowDC *)new wxWindowDC(arg1);
15553
15554 wxPyEndAllowThreads(__tstate);
15555 if (PyErr_Occurred()) SWIG_fail;
15556 }
15557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15558 return resultobj;
15559 fail:
15560 return NULL;
15561 }
15562
15563
15564 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15565 PyObject *obj;
15566 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15567 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15568 Py_INCREF(obj);
15569 return Py_BuildValue((char *)"");
15570 }
15571 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15572 PyObject *resultobj;
15573 wxDC *arg1 = 0 ;
15574 bool arg2 ;
15575 wxMirrorDC *result;
15576 PyObject * obj0 = 0 ;
15577 PyObject * obj1 = 0 ;
15578 char *kwnames[] = {
15579 (char *) "dc",(char *) "mirror", NULL
15580 };
15581
15582 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15583 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15584 SWIG_POINTER_EXCEPTION | 0)) == -1)
15585 SWIG_fail;
15586 if (arg1 == NULL) {
15587 PyErr_SetString(PyExc_TypeError,"null reference");
15588 SWIG_fail;
15589 }
15590 arg2 = (bool) SWIG_AsBool(obj1);
15591 if (PyErr_Occurred()) SWIG_fail;
15592 {
15593 if (!wxPyCheckForApp()) SWIG_fail;
15594 PyThreadState* __tstate = wxPyBeginAllowThreads();
15595 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15596
15597 wxPyEndAllowThreads(__tstate);
15598 if (PyErr_Occurred()) SWIG_fail;
15599 }
15600 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15601 return resultobj;
15602 fail:
15603 return NULL;
15604 }
15605
15606
15607 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15608 PyObject *obj;
15609 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15610 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15611 Py_INCREF(obj);
15612 return Py_BuildValue((char *)"");
15613 }
15614 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15615 PyObject *resultobj;
15616 wxPrintData *arg1 = 0 ;
15617 wxPostScriptDC *result;
15618 PyObject * obj0 = 0 ;
15619 char *kwnames[] = {
15620 (char *) "printData", NULL
15621 };
15622
15623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15625 SWIG_POINTER_EXCEPTION | 0)) == -1)
15626 SWIG_fail;
15627 if (arg1 == NULL) {
15628 PyErr_SetString(PyExc_TypeError,"null reference");
15629 SWIG_fail;
15630 }
15631 {
15632 if (!wxPyCheckForApp()) SWIG_fail;
15633 PyThreadState* __tstate = wxPyBeginAllowThreads();
15634 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15635
15636 wxPyEndAllowThreads(__tstate);
15637 if (PyErr_Occurred()) SWIG_fail;
15638 }
15639 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15640 return resultobj;
15641 fail:
15642 return NULL;
15643 }
15644
15645
15646 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15647 PyObject *resultobj;
15648 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15649 wxPrintData *result;
15650 PyObject * obj0 = 0 ;
15651 char *kwnames[] = {
15652 (char *) "self", NULL
15653 };
15654
15655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15658 {
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 {
15661 wxPrintData &_result_ref = (arg1)->GetPrintData();
15662 result = (wxPrintData *) &_result_ref;
15663 }
15664
15665 wxPyEndAllowThreads(__tstate);
15666 if (PyErr_Occurred()) SWIG_fail;
15667 }
15668 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15669 return resultobj;
15670 fail:
15671 return NULL;
15672 }
15673
15674
15675 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15676 PyObject *resultobj;
15677 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15678 wxPrintData *arg2 = 0 ;
15679 PyObject * obj0 = 0 ;
15680 PyObject * obj1 = 0 ;
15681 char *kwnames[] = {
15682 (char *) "self",(char *) "data", NULL
15683 };
15684
15685 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15686 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15688 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15689 SWIG_POINTER_EXCEPTION | 0)) == -1)
15690 SWIG_fail;
15691 if (arg2 == NULL) {
15692 PyErr_SetString(PyExc_TypeError,"null reference");
15693 SWIG_fail;
15694 }
15695 {
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15698
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 Py_INCREF(Py_None); resultobj = Py_None;
15703 return resultobj;
15704 fail:
15705 return NULL;
15706 }
15707
15708
15709 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj;
15711 int arg1 ;
15712 PyObject * obj0 = 0 ;
15713 char *kwnames[] = {
15714 (char *) "ppi", NULL
15715 };
15716
15717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15718 arg1 = (int) SWIG_AsInt(obj0);
15719 if (PyErr_Occurred()) SWIG_fail;
15720 {
15721 PyThreadState* __tstate = wxPyBeginAllowThreads();
15722 wxPostScriptDC::SetResolution(arg1);
15723
15724 wxPyEndAllowThreads(__tstate);
15725 if (PyErr_Occurred()) SWIG_fail;
15726 }
15727 Py_INCREF(Py_None); resultobj = Py_None;
15728 return resultobj;
15729 fail:
15730 return NULL;
15731 }
15732
15733
15734 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15735 PyObject *resultobj;
15736 int result;
15737 char *kwnames[] = {
15738 NULL
15739 };
15740
15741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15742 {
15743 PyThreadState* __tstate = wxPyBeginAllowThreads();
15744 result = (int)wxPostScriptDC::GetResolution();
15745
15746 wxPyEndAllowThreads(__tstate);
15747 if (PyErr_Occurred()) SWIG_fail;
15748 }
15749 resultobj = SWIG_FromInt((int)result);
15750 return resultobj;
15751 fail:
15752 return NULL;
15753 }
15754
15755
15756 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15757 PyObject *obj;
15758 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15759 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15760 Py_INCREF(obj);
15761 return Py_BuildValue((char *)"");
15762 }
15763 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15764 PyObject *resultobj;
15765 wxString const &arg1_defvalue = wxPyEmptyString ;
15766 wxString *arg1 = (wxString *) &arg1_defvalue ;
15767 wxMetaFile *result;
15768 bool temp1 = False ;
15769 PyObject * obj0 = 0 ;
15770 char *kwnames[] = {
15771 (char *) "filename", NULL
15772 };
15773
15774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15775 if (obj0) {
15776 {
15777 arg1 = wxString_in_helper(obj0);
15778 if (arg1 == NULL) SWIG_fail;
15779 temp1 = True;
15780 }
15781 }
15782 {
15783 if (!wxPyCheckForApp()) SWIG_fail;
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15791 {
15792 if (temp1)
15793 delete arg1;
15794 }
15795 return resultobj;
15796 fail:
15797 {
15798 if (temp1)
15799 delete arg1;
15800 }
15801 return NULL;
15802 }
15803
15804
15805 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15806 PyObject *obj;
15807 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15808 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15809 Py_INCREF(obj);
15810 return Py_BuildValue((char *)"");
15811 }
15812 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15813 PyObject *resultobj;
15814 wxString const &arg1_defvalue = wxPyEmptyString ;
15815 wxString *arg1 = (wxString *) &arg1_defvalue ;
15816 int arg2 = (int) 0 ;
15817 int arg3 = (int) 0 ;
15818 wxString const &arg4_defvalue = wxPyEmptyString ;
15819 wxString *arg4 = (wxString *) &arg4_defvalue ;
15820 wxMetaFileDC *result;
15821 bool temp1 = False ;
15822 bool temp4 = False ;
15823 PyObject * obj0 = 0 ;
15824 PyObject * obj1 = 0 ;
15825 PyObject * obj2 = 0 ;
15826 PyObject * obj3 = 0 ;
15827 char *kwnames[] = {
15828 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15829 };
15830
15831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15832 if (obj0) {
15833 {
15834 arg1 = wxString_in_helper(obj0);
15835 if (arg1 == NULL) SWIG_fail;
15836 temp1 = True;
15837 }
15838 }
15839 if (obj1) {
15840 arg2 = (int) SWIG_AsInt(obj1);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 if (obj2) {
15844 arg3 = (int) SWIG_AsInt(obj2);
15845 if (PyErr_Occurred()) SWIG_fail;
15846 }
15847 if (obj3) {
15848 {
15849 arg4 = wxString_in_helper(obj3);
15850 if (arg4 == NULL) SWIG_fail;
15851 temp4 = True;
15852 }
15853 }
15854 {
15855 if (!wxPyCheckForApp()) SWIG_fail;
15856 PyThreadState* __tstate = wxPyBeginAllowThreads();
15857 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15858
15859 wxPyEndAllowThreads(__tstate);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 }
15862 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15863 {
15864 if (temp1)
15865 delete arg1;
15866 }
15867 {
15868 if (temp4)
15869 delete arg4;
15870 }
15871 return resultobj;
15872 fail:
15873 {
15874 if (temp1)
15875 delete arg1;
15876 }
15877 {
15878 if (temp4)
15879 delete arg4;
15880 }
15881 return NULL;
15882 }
15883
15884
15885 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15886 PyObject *obj;
15887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15888 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15889 Py_INCREF(obj);
15890 return Py_BuildValue((char *)"");
15891 }
15892 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15893 PyObject *resultobj;
15894 wxPrintData *arg1 = 0 ;
15895 wxPrinterDC *result;
15896 PyObject * obj0 = 0 ;
15897 char *kwnames[] = {
15898 (char *) "printData", NULL
15899 };
15900
15901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15903 SWIG_POINTER_EXCEPTION | 0)) == -1)
15904 SWIG_fail;
15905 if (arg1 == NULL) {
15906 PyErr_SetString(PyExc_TypeError,"null reference");
15907 SWIG_fail;
15908 }
15909 {
15910 if (!wxPyCheckForApp()) SWIG_fail;
15911 PyThreadState* __tstate = wxPyBeginAllowThreads();
15912 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15913
15914 wxPyEndAllowThreads(__tstate);
15915 if (PyErr_Occurred()) SWIG_fail;
15916 }
15917 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15918 return resultobj;
15919 fail:
15920 return NULL;
15921 }
15922
15923
15924 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15925 PyObject *obj;
15926 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15927 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15928 Py_INCREF(obj);
15929 return Py_BuildValue((char *)"");
15930 }
15931 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj;
15933 int arg1 ;
15934 int arg2 ;
15935 int arg3 = (int) True ;
15936 int arg4 = (int) 1 ;
15937 wxImageList *result;
15938 PyObject * obj0 = 0 ;
15939 PyObject * obj1 = 0 ;
15940 PyObject * obj2 = 0 ;
15941 PyObject * obj3 = 0 ;
15942 char *kwnames[] = {
15943 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
15944 };
15945
15946 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15947 arg1 = (int) SWIG_AsInt(obj0);
15948 if (PyErr_Occurred()) SWIG_fail;
15949 arg2 = (int) SWIG_AsInt(obj1);
15950 if (PyErr_Occurred()) SWIG_fail;
15951 if (obj2) {
15952 arg3 = (int) SWIG_AsInt(obj2);
15953 if (PyErr_Occurred()) SWIG_fail;
15954 }
15955 if (obj3) {
15956 arg4 = (int) SWIG_AsInt(obj3);
15957 if (PyErr_Occurred()) SWIG_fail;
15958 }
15959 {
15960 if (!wxPyCheckForApp()) SWIG_fail;
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
15963
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 {
15968 resultobj = wxPyMake_wxObject(result);
15969 }
15970 return resultobj;
15971 fail:
15972 return NULL;
15973 }
15974
15975
15976 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15977 PyObject *resultobj;
15978 wxImageList *arg1 = (wxImageList *) 0 ;
15979 PyObject * obj0 = 0 ;
15980 char *kwnames[] = {
15981 (char *) "self", NULL
15982 };
15983
15984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
15985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
15986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15987 {
15988 PyThreadState* __tstate = wxPyBeginAllowThreads();
15989 delete arg1;
15990
15991 wxPyEndAllowThreads(__tstate);
15992 if (PyErr_Occurred()) SWIG_fail;
15993 }
15994 Py_INCREF(Py_None); resultobj = Py_None;
15995 return resultobj;
15996 fail:
15997 return NULL;
15998 }
15999
16000
16001 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16002 PyObject *resultobj;
16003 wxImageList *arg1 = (wxImageList *) 0 ;
16004 wxBitmap *arg2 = 0 ;
16005 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16006 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16007 int result;
16008 PyObject * obj0 = 0 ;
16009 PyObject * obj1 = 0 ;
16010 PyObject * obj2 = 0 ;
16011 char *kwnames[] = {
16012 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16013 };
16014
16015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16018 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16019 SWIG_POINTER_EXCEPTION | 0)) == -1)
16020 SWIG_fail;
16021 if (arg2 == NULL) {
16022 PyErr_SetString(PyExc_TypeError,"null reference");
16023 SWIG_fail;
16024 }
16025 if (obj2) {
16026 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16027 SWIG_POINTER_EXCEPTION | 0)) == -1)
16028 SWIG_fail;
16029 if (arg3 == NULL) {
16030 PyErr_SetString(PyExc_TypeError,"null reference");
16031 SWIG_fail;
16032 }
16033 }
16034 {
16035 PyThreadState* __tstate = wxPyBeginAllowThreads();
16036 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16037
16038 wxPyEndAllowThreads(__tstate);
16039 if (PyErr_Occurred()) SWIG_fail;
16040 }
16041 resultobj = SWIG_FromInt((int)result);
16042 return resultobj;
16043 fail:
16044 return NULL;
16045 }
16046
16047
16048 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16049 PyObject *resultobj;
16050 wxImageList *arg1 = (wxImageList *) 0 ;
16051 wxBitmap *arg2 = 0 ;
16052 wxColour *arg3 = 0 ;
16053 int result;
16054 wxColour temp3 ;
16055 PyObject * obj0 = 0 ;
16056 PyObject * obj1 = 0 ;
16057 PyObject * obj2 = 0 ;
16058 char *kwnames[] = {
16059 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16060 };
16061
16062 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16063 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16064 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16065 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16066 SWIG_POINTER_EXCEPTION | 0)) == -1)
16067 SWIG_fail;
16068 if (arg2 == NULL) {
16069 PyErr_SetString(PyExc_TypeError,"null reference");
16070 SWIG_fail;
16071 }
16072 {
16073 arg3 = &temp3;
16074 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16075 }
16076 {
16077 PyThreadState* __tstate = wxPyBeginAllowThreads();
16078 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16079
16080 wxPyEndAllowThreads(__tstate);
16081 if (PyErr_Occurred()) SWIG_fail;
16082 }
16083 resultobj = SWIG_FromInt((int)result);
16084 return resultobj;
16085 fail:
16086 return NULL;
16087 }
16088
16089
16090 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16091 PyObject *resultobj;
16092 wxImageList *arg1 = (wxImageList *) 0 ;
16093 wxIcon *arg2 = 0 ;
16094 int result;
16095 PyObject * obj0 = 0 ;
16096 PyObject * obj1 = 0 ;
16097 char *kwnames[] = {
16098 (char *) "self",(char *) "icon", NULL
16099 };
16100
16101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16104 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16105 SWIG_POINTER_EXCEPTION | 0)) == -1)
16106 SWIG_fail;
16107 if (arg2 == NULL) {
16108 PyErr_SetString(PyExc_TypeError,"null reference");
16109 SWIG_fail;
16110 }
16111 {
16112 PyThreadState* __tstate = wxPyBeginAllowThreads();
16113 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16114
16115 wxPyEndAllowThreads(__tstate);
16116 if (PyErr_Occurred()) SWIG_fail;
16117 }
16118 resultobj = SWIG_FromInt((int)result);
16119 return resultobj;
16120 fail:
16121 return NULL;
16122 }
16123
16124
16125 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16126 PyObject *resultobj;
16127 wxImageList *arg1 = (wxImageList *) 0 ;
16128 int arg2 ;
16129 wxBitmap *arg3 = 0 ;
16130 bool result;
16131 PyObject * obj0 = 0 ;
16132 PyObject * obj1 = 0 ;
16133 PyObject * obj2 = 0 ;
16134 char *kwnames[] = {
16135 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16136 };
16137
16138 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16139 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16140 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16141 arg2 = (int) SWIG_AsInt(obj1);
16142 if (PyErr_Occurred()) SWIG_fail;
16143 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16144 SWIG_POINTER_EXCEPTION | 0)) == -1)
16145 SWIG_fail;
16146 if (arg3 == NULL) {
16147 PyErr_SetString(PyExc_TypeError,"null reference");
16148 SWIG_fail;
16149 }
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16153
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 {
16158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16159 }
16160 return resultobj;
16161 fail:
16162 return NULL;
16163 }
16164
16165
16166 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16167 PyObject *resultobj;
16168 wxImageList *arg1 = (wxImageList *) 0 ;
16169 int arg2 ;
16170 wxDC *arg3 = 0 ;
16171 int arg4 ;
16172 int arg5 ;
16173 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16174 bool arg7 = (bool) (bool)False ;
16175 bool result;
16176 PyObject * obj0 = 0 ;
16177 PyObject * obj1 = 0 ;
16178 PyObject * obj2 = 0 ;
16179 PyObject * obj3 = 0 ;
16180 PyObject * obj4 = 0 ;
16181 PyObject * obj5 = 0 ;
16182 PyObject * obj6 = 0 ;
16183 char *kwnames[] = {
16184 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16185 };
16186
16187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16190 arg2 = (int) SWIG_AsInt(obj1);
16191 if (PyErr_Occurred()) SWIG_fail;
16192 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16193 SWIG_POINTER_EXCEPTION | 0)) == -1)
16194 SWIG_fail;
16195 if (arg3 == NULL) {
16196 PyErr_SetString(PyExc_TypeError,"null reference");
16197 SWIG_fail;
16198 }
16199 arg4 = (int) SWIG_AsInt(obj3);
16200 if (PyErr_Occurred()) SWIG_fail;
16201 arg5 = (int) SWIG_AsInt(obj4);
16202 if (PyErr_Occurred()) SWIG_fail;
16203 if (obj5) {
16204 arg6 = (int) SWIG_AsInt(obj5);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 if (obj6) {
16208 arg7 = (bool const) SWIG_AsBool(obj6);
16209 if (PyErr_Occurred()) SWIG_fail;
16210 }
16211 {
16212 PyThreadState* __tstate = wxPyBeginAllowThreads();
16213 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16214
16215 wxPyEndAllowThreads(__tstate);
16216 if (PyErr_Occurred()) SWIG_fail;
16217 }
16218 {
16219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16220 }
16221 return resultobj;
16222 fail:
16223 return NULL;
16224 }
16225
16226
16227 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16228 PyObject *resultobj;
16229 wxImageList *arg1 = (wxImageList *) 0 ;
16230 int result;
16231 PyObject * obj0 = 0 ;
16232 char *kwnames[] = {
16233 (char *) "self", NULL
16234 };
16235
16236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16239 {
16240 PyThreadState* __tstate = wxPyBeginAllowThreads();
16241 result = (int)(arg1)->GetImageCount();
16242
16243 wxPyEndAllowThreads(__tstate);
16244 if (PyErr_Occurred()) SWIG_fail;
16245 }
16246 resultobj = SWIG_FromInt((int)result);
16247 return resultobj;
16248 fail:
16249 return NULL;
16250 }
16251
16252
16253 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16254 PyObject *resultobj;
16255 wxImageList *arg1 = (wxImageList *) 0 ;
16256 int arg2 ;
16257 bool result;
16258 PyObject * obj0 = 0 ;
16259 PyObject * obj1 = 0 ;
16260 char *kwnames[] = {
16261 (char *) "self",(char *) "index", NULL
16262 };
16263
16264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16267 arg2 = (int) SWIG_AsInt(obj1);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 {
16270 PyThreadState* __tstate = wxPyBeginAllowThreads();
16271 result = (bool)(arg1)->Remove(arg2);
16272
16273 wxPyEndAllowThreads(__tstate);
16274 if (PyErr_Occurred()) SWIG_fail;
16275 }
16276 {
16277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16278 }
16279 return resultobj;
16280 fail:
16281 return NULL;
16282 }
16283
16284
16285 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16286 PyObject *resultobj;
16287 wxImageList *arg1 = (wxImageList *) 0 ;
16288 bool result;
16289 PyObject * obj0 = 0 ;
16290 char *kwnames[] = {
16291 (char *) "self", NULL
16292 };
16293
16294 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16295 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16296 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (bool)(arg1)->RemoveAll();
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 {
16305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16306 }
16307 return resultobj;
16308 fail:
16309 return NULL;
16310 }
16311
16312
16313 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16314 PyObject *resultobj;
16315 wxImageList *arg1 = (wxImageList *) 0 ;
16316 int arg2 ;
16317 int *arg3 = 0 ;
16318 int *arg4 = 0 ;
16319 int temp3 ;
16320 int temp4 ;
16321 PyObject * obj0 = 0 ;
16322 PyObject * obj1 = 0 ;
16323 char *kwnames[] = {
16324 (char *) "self",(char *) "index", NULL
16325 };
16326
16327 arg3 = &temp3;
16328 arg4 = &temp4;
16329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16332 arg2 = (int) SWIG_AsInt(obj1);
16333 if (PyErr_Occurred()) SWIG_fail;
16334 {
16335 PyThreadState* __tstate = wxPyBeginAllowThreads();
16336 (arg1)->GetSize(arg2,*arg3,*arg4);
16337
16338 wxPyEndAllowThreads(__tstate);
16339 if (PyErr_Occurred()) SWIG_fail;
16340 }
16341 Py_INCREF(Py_None); resultobj = Py_None;
16342 {
16343 PyObject *o = PyInt_FromLong((long) (*arg3));
16344 resultobj = t_output_helper(resultobj,o);
16345 }
16346 {
16347 PyObject *o = PyInt_FromLong((long) (*arg4));
16348 resultobj = t_output_helper(resultobj,o);
16349 }
16350 return resultobj;
16351 fail:
16352 return NULL;
16353 }
16354
16355
16356 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16357 PyObject *obj;
16358 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16359 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16360 Py_INCREF(obj);
16361 return Py_BuildValue((char *)"");
16362 }
16363 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16364 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16365 return 1;
16366 }
16367
16368
16369 static PyObject *_wrap_NORMAL_FONT_get() {
16370 PyObject *pyobj;
16371
16372 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16373 return pyobj;
16374 }
16375
16376
16377 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16378 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16379 return 1;
16380 }
16381
16382
16383 static PyObject *_wrap_SMALL_FONT_get() {
16384 PyObject *pyobj;
16385
16386 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16387 return pyobj;
16388 }
16389
16390
16391 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16392 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16393 return 1;
16394 }
16395
16396
16397 static PyObject *_wrap_ITALIC_FONT_get() {
16398 PyObject *pyobj;
16399
16400 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16401 return pyobj;
16402 }
16403
16404
16405 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16406 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16407 return 1;
16408 }
16409
16410
16411 static PyObject *_wrap_SWISS_FONT_get() {
16412 PyObject *pyobj;
16413
16414 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16415 return pyobj;
16416 }
16417
16418
16419 static int _wrap_RED_PEN_set(PyObject *_val) {
16420 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16421 return 1;
16422 }
16423
16424
16425 static PyObject *_wrap_RED_PEN_get() {
16426 PyObject *pyobj;
16427
16428 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16429 return pyobj;
16430 }
16431
16432
16433 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16434 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16435 return 1;
16436 }
16437
16438
16439 static PyObject *_wrap_CYAN_PEN_get() {
16440 PyObject *pyobj;
16441
16442 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16443 return pyobj;
16444 }
16445
16446
16447 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16448 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16449 return 1;
16450 }
16451
16452
16453 static PyObject *_wrap_GREEN_PEN_get() {
16454 PyObject *pyobj;
16455
16456 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16457 return pyobj;
16458 }
16459
16460
16461 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16462 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16463 return 1;
16464 }
16465
16466
16467 static PyObject *_wrap_BLACK_PEN_get() {
16468 PyObject *pyobj;
16469
16470 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16471 return pyobj;
16472 }
16473
16474
16475 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16476 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16477 return 1;
16478 }
16479
16480
16481 static PyObject *_wrap_WHITE_PEN_get() {
16482 PyObject *pyobj;
16483
16484 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16485 return pyobj;
16486 }
16487
16488
16489 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16490 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16491 return 1;
16492 }
16493
16494
16495 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16496 PyObject *pyobj;
16497
16498 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16499 return pyobj;
16500 }
16501
16502
16503 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16504 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16505 return 1;
16506 }
16507
16508
16509 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16510 PyObject *pyobj;
16511
16512 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16513 return pyobj;
16514 }
16515
16516
16517 static int _wrap_GREY_PEN_set(PyObject *_val) {
16518 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16519 return 1;
16520 }
16521
16522
16523 static PyObject *_wrap_GREY_PEN_get() {
16524 PyObject *pyobj;
16525
16526 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16527 return pyobj;
16528 }
16529
16530
16531 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16532 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16533 return 1;
16534 }
16535
16536
16537 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16538 PyObject *pyobj;
16539
16540 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16541 return pyobj;
16542 }
16543
16544
16545 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16546 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16547 return 1;
16548 }
16549
16550
16551 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16552 PyObject *pyobj;
16553
16554 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16555 return pyobj;
16556 }
16557
16558
16559 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16560 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16561 return 1;
16562 }
16563
16564
16565 static PyObject *_wrap_BLUE_BRUSH_get() {
16566 PyObject *pyobj;
16567
16568 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16569 return pyobj;
16570 }
16571
16572
16573 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16574 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16575 return 1;
16576 }
16577
16578
16579 static PyObject *_wrap_GREEN_BRUSH_get() {
16580 PyObject *pyobj;
16581
16582 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16583 return pyobj;
16584 }
16585
16586
16587 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16588 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16589 return 1;
16590 }
16591
16592
16593 static PyObject *_wrap_WHITE_BRUSH_get() {
16594 PyObject *pyobj;
16595
16596 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16597 return pyobj;
16598 }
16599
16600
16601 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16602 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16603 return 1;
16604 }
16605
16606
16607 static PyObject *_wrap_BLACK_BRUSH_get() {
16608 PyObject *pyobj;
16609
16610 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16611 return pyobj;
16612 }
16613
16614
16615 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16616 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16617 return 1;
16618 }
16619
16620
16621 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16622 PyObject *pyobj;
16623
16624 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16625 return pyobj;
16626 }
16627
16628
16629 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16630 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16631 return 1;
16632 }
16633
16634
16635 static PyObject *_wrap_CYAN_BRUSH_get() {
16636 PyObject *pyobj;
16637
16638 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16639 return pyobj;
16640 }
16641
16642
16643 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16644 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16645 return 1;
16646 }
16647
16648
16649 static PyObject *_wrap_RED_BRUSH_get() {
16650 PyObject *pyobj;
16651
16652 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16653 return pyobj;
16654 }
16655
16656
16657 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16658 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16659 return 1;
16660 }
16661
16662
16663 static PyObject *_wrap_GREY_BRUSH_get() {
16664 PyObject *pyobj;
16665
16666 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16667 return pyobj;
16668 }
16669
16670
16671 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16672 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16673 return 1;
16674 }
16675
16676
16677 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16678 PyObject *pyobj;
16679
16680 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16681 return pyobj;
16682 }
16683
16684
16685 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16686 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16687 return 1;
16688 }
16689
16690
16691 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16692 PyObject *pyobj;
16693
16694 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16695 return pyobj;
16696 }
16697
16698
16699 static int _wrap_BLACK_set(PyObject *_val) {
16700 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16701 return 1;
16702 }
16703
16704
16705 static PyObject *_wrap_BLACK_get() {
16706 PyObject *pyobj;
16707
16708 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16709 return pyobj;
16710 }
16711
16712
16713 static int _wrap_WHITE_set(PyObject *_val) {
16714 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16715 return 1;
16716 }
16717
16718
16719 static PyObject *_wrap_WHITE_get() {
16720 PyObject *pyobj;
16721
16722 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16723 return pyobj;
16724 }
16725
16726
16727 static int _wrap_RED_set(PyObject *_val) {
16728 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16729 return 1;
16730 }
16731
16732
16733 static PyObject *_wrap_RED_get() {
16734 PyObject *pyobj;
16735
16736 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16737 return pyobj;
16738 }
16739
16740
16741 static int _wrap_BLUE_set(PyObject *_val) {
16742 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16743 return 1;
16744 }
16745
16746
16747 static PyObject *_wrap_BLUE_get() {
16748 PyObject *pyobj;
16749
16750 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16751 return pyobj;
16752 }
16753
16754
16755 static int _wrap_GREEN_set(PyObject *_val) {
16756 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16757 return 1;
16758 }
16759
16760
16761 static PyObject *_wrap_GREEN_get() {
16762 PyObject *pyobj;
16763
16764 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16765 return pyobj;
16766 }
16767
16768
16769 static int _wrap_CYAN_set(PyObject *_val) {
16770 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16771 return 1;
16772 }
16773
16774
16775 static PyObject *_wrap_CYAN_get() {
16776 PyObject *pyobj;
16777
16778 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16779 return pyobj;
16780 }
16781
16782
16783 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16784 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16785 return 1;
16786 }
16787
16788
16789 static PyObject *_wrap_LIGHT_GREY_get() {
16790 PyObject *pyobj;
16791
16792 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16793 return pyobj;
16794 }
16795
16796
16797 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16798 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16799 return 1;
16800 }
16801
16802
16803 static PyObject *_wrap_STANDARD_CURSOR_get() {
16804 PyObject *pyobj;
16805
16806 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16807 return pyobj;
16808 }
16809
16810
16811 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16812 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16813 return 1;
16814 }
16815
16816
16817 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16818 PyObject *pyobj;
16819
16820 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16821 return pyobj;
16822 }
16823
16824
16825 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16826 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16827 return 1;
16828 }
16829
16830
16831 static PyObject *_wrap_CROSS_CURSOR_get() {
16832 PyObject *pyobj;
16833
16834 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16835 return pyobj;
16836 }
16837
16838
16839 static int _wrap_NullBitmap_set(PyObject *_val) {
16840 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16841 return 1;
16842 }
16843
16844
16845 static PyObject *_wrap_NullBitmap_get() {
16846 PyObject *pyobj;
16847
16848 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16849 return pyobj;
16850 }
16851
16852
16853 static int _wrap_NullIcon_set(PyObject *_val) {
16854 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16855 return 1;
16856 }
16857
16858
16859 static PyObject *_wrap_NullIcon_get() {
16860 PyObject *pyobj;
16861
16862 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16863 return pyobj;
16864 }
16865
16866
16867 static int _wrap_NullCursor_set(PyObject *_val) {
16868 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16869 return 1;
16870 }
16871
16872
16873 static PyObject *_wrap_NullCursor_get() {
16874 PyObject *pyobj;
16875
16876 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16877 return pyobj;
16878 }
16879
16880
16881 static int _wrap_NullPen_set(PyObject *_val) {
16882 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16883 return 1;
16884 }
16885
16886
16887 static PyObject *_wrap_NullPen_get() {
16888 PyObject *pyobj;
16889
16890 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16891 return pyobj;
16892 }
16893
16894
16895 static int _wrap_NullBrush_set(PyObject *_val) {
16896 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16897 return 1;
16898 }
16899
16900
16901 static PyObject *_wrap_NullBrush_get() {
16902 PyObject *pyobj;
16903
16904 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16905 return pyobj;
16906 }
16907
16908
16909 static int _wrap_NullPalette_set(PyObject *_val) {
16910 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16911 return 1;
16912 }
16913
16914
16915 static PyObject *_wrap_NullPalette_get() {
16916 PyObject *pyobj;
16917
16918 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16919 return pyobj;
16920 }
16921
16922
16923 static int _wrap_NullFont_set(PyObject *_val) {
16924 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16925 return 1;
16926 }
16927
16928
16929 static PyObject *_wrap_NullFont_get() {
16930 PyObject *pyobj;
16931
16932 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16933 return pyobj;
16934 }
16935
16936
16937 static int _wrap_NullColour_set(PyObject *_val) {
16938 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
16939 return 1;
16940 }
16941
16942
16943 static PyObject *_wrap_NullColour_get() {
16944 PyObject *pyobj;
16945
16946 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
16947 return pyobj;
16948 }
16949
16950
16951 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
16952 PyObject *resultobj;
16953 wxPenList *arg1 = (wxPenList *) 0 ;
16954 wxPen *arg2 = (wxPen *) 0 ;
16955 PyObject * obj0 = 0 ;
16956 PyObject * obj1 = 0 ;
16957 char *kwnames[] = {
16958 (char *) "self",(char *) "pen", NULL
16959 };
16960
16961 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
16962 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16963 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16964 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
16965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16966 {
16967 PyThreadState* __tstate = wxPyBeginAllowThreads();
16968 (arg1)->AddPen(arg2);
16969
16970 wxPyEndAllowThreads(__tstate);
16971 if (PyErr_Occurred()) SWIG_fail;
16972 }
16973 Py_INCREF(Py_None); resultobj = Py_None;
16974 return resultobj;
16975 fail:
16976 return NULL;
16977 }
16978
16979
16980 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
16981 PyObject *resultobj;
16982 wxPenList *arg1 = (wxPenList *) 0 ;
16983 wxColour *arg2 = 0 ;
16984 int arg3 ;
16985 int arg4 ;
16986 wxPen *result;
16987 wxColour temp2 ;
16988 PyObject * obj0 = 0 ;
16989 PyObject * obj1 = 0 ;
16990 PyObject * obj2 = 0 ;
16991 PyObject * obj3 = 0 ;
16992 char *kwnames[] = {
16993 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
16994 };
16995
16996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
16998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16999 {
17000 arg2 = &temp2;
17001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17002 }
17003 arg3 = (int) SWIG_AsInt(obj2);
17004 if (PyErr_Occurred()) SWIG_fail;
17005 arg4 = (int) SWIG_AsInt(obj3);
17006 if (PyErr_Occurred()) SWIG_fail;
17007 {
17008 PyThreadState* __tstate = wxPyBeginAllowThreads();
17009 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17010
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17015 return resultobj;
17016 fail:
17017 return NULL;
17018 }
17019
17020
17021 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17022 PyObject *resultobj;
17023 wxPenList *arg1 = (wxPenList *) 0 ;
17024 wxPen *arg2 = (wxPen *) 0 ;
17025 PyObject * obj0 = 0 ;
17026 PyObject * obj1 = 0 ;
17027 char *kwnames[] = {
17028 (char *) "self",(char *) "pen", NULL
17029 };
17030
17031 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17032 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17033 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17034 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17036 {
17037 PyThreadState* __tstate = wxPyBeginAllowThreads();
17038 (arg1)->RemovePen(arg2);
17039
17040 wxPyEndAllowThreads(__tstate);
17041 if (PyErr_Occurred()) SWIG_fail;
17042 }
17043 Py_INCREF(Py_None); resultobj = Py_None;
17044 return resultobj;
17045 fail:
17046 return NULL;
17047 }
17048
17049
17050 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17051 PyObject *resultobj;
17052 wxPenList *arg1 = (wxPenList *) 0 ;
17053 int result;
17054 PyObject * obj0 = 0 ;
17055 char *kwnames[] = {
17056 (char *) "self", NULL
17057 };
17058
17059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17062 {
17063 PyThreadState* __tstate = wxPyBeginAllowThreads();
17064 result = (int)(arg1)->GetCount();
17065
17066 wxPyEndAllowThreads(__tstate);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 }
17069 resultobj = SWIG_FromInt((int)result);
17070 return resultobj;
17071 fail:
17072 return NULL;
17073 }
17074
17075
17076 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17077 PyObject *obj;
17078 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17079 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17080 Py_INCREF(obj);
17081 return Py_BuildValue((char *)"");
17082 }
17083 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17084 PyObject *resultobj;
17085 wxBrushList *arg1 = (wxBrushList *) 0 ;
17086 wxBrush *arg2 = (wxBrush *) 0 ;
17087 PyObject * obj0 = 0 ;
17088 PyObject * obj1 = 0 ;
17089 char *kwnames[] = {
17090 (char *) "self",(char *) "brush", NULL
17091 };
17092
17093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17096 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17097 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17098 {
17099 PyThreadState* __tstate = wxPyBeginAllowThreads();
17100 (arg1)->AddBrush(arg2);
17101
17102 wxPyEndAllowThreads(__tstate);
17103 if (PyErr_Occurred()) SWIG_fail;
17104 }
17105 Py_INCREF(Py_None); resultobj = Py_None;
17106 return resultobj;
17107 fail:
17108 return NULL;
17109 }
17110
17111
17112 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17113 PyObject *resultobj;
17114 wxBrushList *arg1 = (wxBrushList *) 0 ;
17115 wxColour *arg2 = 0 ;
17116 int arg3 ;
17117 wxBrush *result;
17118 wxColour temp2 ;
17119 PyObject * obj0 = 0 ;
17120 PyObject * obj1 = 0 ;
17121 PyObject * obj2 = 0 ;
17122 char *kwnames[] = {
17123 (char *) "self",(char *) "colour",(char *) "style", NULL
17124 };
17125
17126 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17127 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17128 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17129 {
17130 arg2 = &temp2;
17131 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17132 }
17133 arg3 = (int) SWIG_AsInt(obj2);
17134 if (PyErr_Occurred()) SWIG_fail;
17135 {
17136 PyThreadState* __tstate = wxPyBeginAllowThreads();
17137 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17138
17139 wxPyEndAllowThreads(__tstate);
17140 if (PyErr_Occurred()) SWIG_fail;
17141 }
17142 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17143 return resultobj;
17144 fail:
17145 return NULL;
17146 }
17147
17148
17149 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17150 PyObject *resultobj;
17151 wxBrushList *arg1 = (wxBrushList *) 0 ;
17152 wxBrush *arg2 = (wxBrush *) 0 ;
17153 PyObject * obj0 = 0 ;
17154 PyObject * obj1 = 0 ;
17155 char *kwnames[] = {
17156 (char *) "self",(char *) "brush", NULL
17157 };
17158
17159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17162 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17163 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17164 {
17165 PyThreadState* __tstate = wxPyBeginAllowThreads();
17166 (arg1)->RemoveBrush(arg2);
17167
17168 wxPyEndAllowThreads(__tstate);
17169 if (PyErr_Occurred()) SWIG_fail;
17170 }
17171 Py_INCREF(Py_None); resultobj = Py_None;
17172 return resultobj;
17173 fail:
17174 return NULL;
17175 }
17176
17177
17178 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17179 PyObject *resultobj;
17180 wxBrushList *arg1 = (wxBrushList *) 0 ;
17181 int result;
17182 PyObject * obj0 = 0 ;
17183 char *kwnames[] = {
17184 (char *) "self", NULL
17185 };
17186
17187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = (int)(arg1)->GetCount();
17193
17194 wxPyEndAllowThreads(__tstate);
17195 if (PyErr_Occurred()) SWIG_fail;
17196 }
17197 resultobj = SWIG_FromInt((int)result);
17198 return resultobj;
17199 fail:
17200 return NULL;
17201 }
17202
17203
17204 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17205 PyObject *obj;
17206 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17207 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17208 Py_INCREF(obj);
17209 return Py_BuildValue((char *)"");
17210 }
17211 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17212 PyObject *resultobj;
17213 wxColourDatabase *result;
17214 char *kwnames[] = {
17215 NULL
17216 };
17217
17218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17219 {
17220 if (!wxPyCheckForApp()) SWIG_fail;
17221 PyThreadState* __tstate = wxPyBeginAllowThreads();
17222 result = (wxColourDatabase *)new wxColourDatabase();
17223
17224 wxPyEndAllowThreads(__tstate);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 }
17227 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17228 return resultobj;
17229 fail:
17230 return NULL;
17231 }
17232
17233
17234 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj;
17236 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17237 PyObject * obj0 = 0 ;
17238 char *kwnames[] = {
17239 (char *) "self", NULL
17240 };
17241
17242 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17243 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17244 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17245 {
17246 PyThreadState* __tstate = wxPyBeginAllowThreads();
17247 delete arg1;
17248
17249 wxPyEndAllowThreads(__tstate);
17250 if (PyErr_Occurred()) SWIG_fail;
17251 }
17252 Py_INCREF(Py_None); resultobj = Py_None;
17253 return resultobj;
17254 fail:
17255 return NULL;
17256 }
17257
17258
17259 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17260 PyObject *resultobj;
17261 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17262 wxString *arg2 = 0 ;
17263 wxColour result;
17264 bool temp2 = False ;
17265 PyObject * obj0 = 0 ;
17266 PyObject * obj1 = 0 ;
17267 char *kwnames[] = {
17268 (char *) "self",(char *) "name", NULL
17269 };
17270
17271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17274 {
17275 arg2 = wxString_in_helper(obj1);
17276 if (arg2 == NULL) SWIG_fail;
17277 temp2 = True;
17278 }
17279 {
17280 PyThreadState* __tstate = wxPyBeginAllowThreads();
17281 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17282
17283 wxPyEndAllowThreads(__tstate);
17284 if (PyErr_Occurred()) SWIG_fail;
17285 }
17286 {
17287 wxColour * resultptr;
17288 resultptr = new wxColour((wxColour &) result);
17289 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17290 }
17291 {
17292 if (temp2)
17293 delete arg2;
17294 }
17295 return resultobj;
17296 fail:
17297 {
17298 if (temp2)
17299 delete arg2;
17300 }
17301 return NULL;
17302 }
17303
17304
17305 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17306 PyObject *resultobj;
17307 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17308 wxColour *arg2 = 0 ;
17309 wxString result;
17310 wxColour temp2 ;
17311 PyObject * obj0 = 0 ;
17312 PyObject * obj1 = 0 ;
17313 char *kwnames[] = {
17314 (char *) "self",(char *) "colour", NULL
17315 };
17316
17317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17320 {
17321 arg2 = &temp2;
17322 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17323 }
17324 {
17325 PyThreadState* __tstate = wxPyBeginAllowThreads();
17326 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17327
17328 wxPyEndAllowThreads(__tstate);
17329 if (PyErr_Occurred()) SWIG_fail;
17330 }
17331 {
17332 #if wxUSE_UNICODE
17333 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17334 #else
17335 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17336 #endif
17337 }
17338 return resultobj;
17339 fail:
17340 return NULL;
17341 }
17342
17343
17344 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17345 PyObject *resultobj;
17346 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17347 wxString *arg2 = 0 ;
17348 wxColour *arg3 = 0 ;
17349 bool temp2 = False ;
17350 wxColour temp3 ;
17351 PyObject * obj0 = 0 ;
17352 PyObject * obj1 = 0 ;
17353 PyObject * obj2 = 0 ;
17354 char *kwnames[] = {
17355 (char *) "self",(char *) "name",(char *) "colour", NULL
17356 };
17357
17358 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17359 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17360 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17361 {
17362 arg2 = wxString_in_helper(obj1);
17363 if (arg2 == NULL) SWIG_fail;
17364 temp2 = True;
17365 }
17366 {
17367 arg3 = &temp3;
17368 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17369 }
17370 {
17371 PyThreadState* __tstate = wxPyBeginAllowThreads();
17372 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17373
17374 wxPyEndAllowThreads(__tstate);
17375 if (PyErr_Occurred()) SWIG_fail;
17376 }
17377 Py_INCREF(Py_None); resultobj = Py_None;
17378 {
17379 if (temp2)
17380 delete arg2;
17381 }
17382 return resultobj;
17383 fail:
17384 {
17385 if (temp2)
17386 delete arg2;
17387 }
17388 return NULL;
17389 }
17390
17391
17392 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj;
17394 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17395 wxString *arg2 = 0 ;
17396 int arg3 ;
17397 int arg4 ;
17398 int arg5 ;
17399 bool temp2 = False ;
17400 PyObject * obj0 = 0 ;
17401 PyObject * obj1 = 0 ;
17402 PyObject * obj2 = 0 ;
17403 PyObject * obj3 = 0 ;
17404 PyObject * obj4 = 0 ;
17405 char *kwnames[] = {
17406 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17407 };
17408
17409 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17410 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17411 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17412 {
17413 arg2 = wxString_in_helper(obj1);
17414 if (arg2 == NULL) SWIG_fail;
17415 temp2 = True;
17416 }
17417 arg3 = (int) SWIG_AsInt(obj2);
17418 if (PyErr_Occurred()) SWIG_fail;
17419 arg4 = (int) SWIG_AsInt(obj3);
17420 if (PyErr_Occurred()) SWIG_fail;
17421 arg5 = (int) SWIG_AsInt(obj4);
17422 if (PyErr_Occurred()) SWIG_fail;
17423 {
17424 PyThreadState* __tstate = wxPyBeginAllowThreads();
17425 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17426
17427 wxPyEndAllowThreads(__tstate);
17428 if (PyErr_Occurred()) SWIG_fail;
17429 }
17430 Py_INCREF(Py_None); resultobj = Py_None;
17431 {
17432 if (temp2)
17433 delete arg2;
17434 }
17435 return resultobj;
17436 fail:
17437 {
17438 if (temp2)
17439 delete arg2;
17440 }
17441 return NULL;
17442 }
17443
17444
17445 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17446 PyObject *obj;
17447 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17448 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17449 Py_INCREF(obj);
17450 return Py_BuildValue((char *)"");
17451 }
17452 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17453 PyObject *resultobj;
17454 wxFontList *arg1 = (wxFontList *) 0 ;
17455 wxFont *arg2 = (wxFont *) 0 ;
17456 PyObject * obj0 = 0 ;
17457 PyObject * obj1 = 0 ;
17458 char *kwnames[] = {
17459 (char *) "self",(char *) "font", NULL
17460 };
17461
17462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17465 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17467 {
17468 PyThreadState* __tstate = wxPyBeginAllowThreads();
17469 (arg1)->AddFont(arg2);
17470
17471 wxPyEndAllowThreads(__tstate);
17472 if (PyErr_Occurred()) SWIG_fail;
17473 }
17474 Py_INCREF(Py_None); resultobj = Py_None;
17475 return resultobj;
17476 fail:
17477 return NULL;
17478 }
17479
17480
17481 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17482 PyObject *resultobj;
17483 wxFontList *arg1 = (wxFontList *) 0 ;
17484 int arg2 ;
17485 int arg3 ;
17486 int arg4 ;
17487 int arg5 ;
17488 bool arg6 = (bool) False ;
17489 wxString const &arg7_defvalue = wxPyEmptyString ;
17490 wxString *arg7 = (wxString *) &arg7_defvalue ;
17491 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17492 wxFont *result;
17493 bool temp7 = False ;
17494 PyObject * obj0 = 0 ;
17495 PyObject * obj1 = 0 ;
17496 PyObject * obj2 = 0 ;
17497 PyObject * obj3 = 0 ;
17498 PyObject * obj4 = 0 ;
17499 PyObject * obj5 = 0 ;
17500 PyObject * obj6 = 0 ;
17501 PyObject * obj7 = 0 ;
17502 char *kwnames[] = {
17503 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17504 };
17505
17506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17509 arg2 = (int) SWIG_AsInt(obj1);
17510 if (PyErr_Occurred()) SWIG_fail;
17511 arg3 = (int) SWIG_AsInt(obj2);
17512 if (PyErr_Occurred()) SWIG_fail;
17513 arg4 = (int) SWIG_AsInt(obj3);
17514 if (PyErr_Occurred()) SWIG_fail;
17515 arg5 = (int) SWIG_AsInt(obj4);
17516 if (PyErr_Occurred()) SWIG_fail;
17517 if (obj5) {
17518 arg6 = (bool) SWIG_AsBool(obj5);
17519 if (PyErr_Occurred()) SWIG_fail;
17520 }
17521 if (obj6) {
17522 {
17523 arg7 = wxString_in_helper(obj6);
17524 if (arg7 == NULL) SWIG_fail;
17525 temp7 = True;
17526 }
17527 }
17528 if (obj7) {
17529 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17530 if (PyErr_Occurred()) SWIG_fail;
17531 }
17532 {
17533 PyThreadState* __tstate = wxPyBeginAllowThreads();
17534 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17535
17536 wxPyEndAllowThreads(__tstate);
17537 if (PyErr_Occurred()) SWIG_fail;
17538 }
17539 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17540 {
17541 if (temp7)
17542 delete arg7;
17543 }
17544 return resultobj;
17545 fail:
17546 {
17547 if (temp7)
17548 delete arg7;
17549 }
17550 return NULL;
17551 }
17552
17553
17554 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17555 PyObject *resultobj;
17556 wxFontList *arg1 = (wxFontList *) 0 ;
17557 wxFont *arg2 = (wxFont *) 0 ;
17558 PyObject * obj0 = 0 ;
17559 PyObject * obj1 = 0 ;
17560 char *kwnames[] = {
17561 (char *) "self",(char *) "font", NULL
17562 };
17563
17564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17569 {
17570 PyThreadState* __tstate = wxPyBeginAllowThreads();
17571 (arg1)->RemoveFont(arg2);
17572
17573 wxPyEndAllowThreads(__tstate);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 Py_INCREF(Py_None); resultobj = Py_None;
17577 return resultobj;
17578 fail:
17579 return NULL;
17580 }
17581
17582
17583 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17584 PyObject *resultobj;
17585 wxFontList *arg1 = (wxFontList *) 0 ;
17586 int result;
17587 PyObject * obj0 = 0 ;
17588 char *kwnames[] = {
17589 (char *) "self", NULL
17590 };
17591
17592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17595 {
17596 PyThreadState* __tstate = wxPyBeginAllowThreads();
17597 result = (int)(arg1)->GetCount();
17598
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 resultobj = SWIG_FromInt((int)result);
17603 return resultobj;
17604 fail:
17605 return NULL;
17606 }
17607
17608
17609 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17610 PyObject *obj;
17611 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17612 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17613 Py_INCREF(obj);
17614 return Py_BuildValue((char *)"");
17615 }
17616 static int _wrap_TheFontList_set(PyObject *_val) {
17617 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17618 return 1;
17619 }
17620
17621
17622 static PyObject *_wrap_TheFontList_get() {
17623 PyObject *pyobj;
17624
17625 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17626 return pyobj;
17627 }
17628
17629
17630 static int _wrap_ThePenList_set(PyObject *_val) {
17631 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17632 return 1;
17633 }
17634
17635
17636 static PyObject *_wrap_ThePenList_get() {
17637 PyObject *pyobj;
17638
17639 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17640 return pyobj;
17641 }
17642
17643
17644 static int _wrap_TheBrushList_set(PyObject *_val) {
17645 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17646 return 1;
17647 }
17648
17649
17650 static PyObject *_wrap_TheBrushList_get() {
17651 PyObject *pyobj;
17652
17653 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17654 return pyobj;
17655 }
17656
17657
17658 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17659 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17660 return 1;
17661 }
17662
17663
17664 static PyObject *_wrap_TheColourDatabase_get() {
17665 PyObject *pyobj;
17666
17667 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17668 return pyobj;
17669 }
17670
17671
17672 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17673 PyObject *resultobj;
17674 wxEffects *result;
17675 char *kwnames[] = {
17676 NULL
17677 };
17678
17679 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17680 {
17681 PyThreadState* __tstate = wxPyBeginAllowThreads();
17682 result = (wxEffects *)new wxEffects();
17683
17684 wxPyEndAllowThreads(__tstate);
17685 if (PyErr_Occurred()) SWIG_fail;
17686 }
17687 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17688 return resultobj;
17689 fail:
17690 return NULL;
17691 }
17692
17693
17694 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17695 PyObject *resultobj;
17696 wxEffects *arg1 = (wxEffects *) 0 ;
17697 wxColour result;
17698 PyObject * obj0 = 0 ;
17699 char *kwnames[] = {
17700 (char *) "self", NULL
17701 };
17702
17703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17706 {
17707 PyThreadState* __tstate = wxPyBeginAllowThreads();
17708 result = ((wxEffects const *)arg1)->GetHighlightColour();
17709
17710 wxPyEndAllowThreads(__tstate);
17711 if (PyErr_Occurred()) SWIG_fail;
17712 }
17713 {
17714 wxColour * resultptr;
17715 resultptr = new wxColour((wxColour &) result);
17716 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17717 }
17718 return resultobj;
17719 fail:
17720 return NULL;
17721 }
17722
17723
17724 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17725 PyObject *resultobj;
17726 wxEffects *arg1 = (wxEffects *) 0 ;
17727 wxColour result;
17728 PyObject * obj0 = 0 ;
17729 char *kwnames[] = {
17730 (char *) "self", NULL
17731 };
17732
17733 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17734 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17735 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17736 {
17737 PyThreadState* __tstate = wxPyBeginAllowThreads();
17738 result = ((wxEffects const *)arg1)->GetLightShadow();
17739
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 {
17744 wxColour * resultptr;
17745 resultptr = new wxColour((wxColour &) result);
17746 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17747 }
17748 return resultobj;
17749 fail:
17750 return NULL;
17751 }
17752
17753
17754 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17755 PyObject *resultobj;
17756 wxEffects *arg1 = (wxEffects *) 0 ;
17757 wxColour result;
17758 PyObject * obj0 = 0 ;
17759 char *kwnames[] = {
17760 (char *) "self", NULL
17761 };
17762
17763 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17764 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17765 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17766 {
17767 PyThreadState* __tstate = wxPyBeginAllowThreads();
17768 result = ((wxEffects const *)arg1)->GetFaceColour();
17769
17770 wxPyEndAllowThreads(__tstate);
17771 if (PyErr_Occurred()) SWIG_fail;
17772 }
17773 {
17774 wxColour * resultptr;
17775 resultptr = new wxColour((wxColour &) result);
17776 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17777 }
17778 return resultobj;
17779 fail:
17780 return NULL;
17781 }
17782
17783
17784 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17785 PyObject *resultobj;
17786 wxEffects *arg1 = (wxEffects *) 0 ;
17787 wxColour result;
17788 PyObject * obj0 = 0 ;
17789 char *kwnames[] = {
17790 (char *) "self", NULL
17791 };
17792
17793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17796 {
17797 PyThreadState* __tstate = wxPyBeginAllowThreads();
17798 result = ((wxEffects const *)arg1)->GetMediumShadow();
17799
17800 wxPyEndAllowThreads(__tstate);
17801 if (PyErr_Occurred()) SWIG_fail;
17802 }
17803 {
17804 wxColour * resultptr;
17805 resultptr = new wxColour((wxColour &) result);
17806 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17807 }
17808 return resultobj;
17809 fail:
17810 return NULL;
17811 }
17812
17813
17814 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17815 PyObject *resultobj;
17816 wxEffects *arg1 = (wxEffects *) 0 ;
17817 wxColour result;
17818 PyObject * obj0 = 0 ;
17819 char *kwnames[] = {
17820 (char *) "self", NULL
17821 };
17822
17823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17826 {
17827 PyThreadState* __tstate = wxPyBeginAllowThreads();
17828 result = ((wxEffects const *)arg1)->GetDarkShadow();
17829
17830 wxPyEndAllowThreads(__tstate);
17831 if (PyErr_Occurred()) SWIG_fail;
17832 }
17833 {
17834 wxColour * resultptr;
17835 resultptr = new wxColour((wxColour &) result);
17836 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17837 }
17838 return resultobj;
17839 fail:
17840 return NULL;
17841 }
17842
17843
17844 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17845 PyObject *resultobj;
17846 wxEffects *arg1 = (wxEffects *) 0 ;
17847 wxColour *arg2 = 0 ;
17848 wxColour temp2 ;
17849 PyObject * obj0 = 0 ;
17850 PyObject * obj1 = 0 ;
17851 char *kwnames[] = {
17852 (char *) "self",(char *) "c", NULL
17853 };
17854
17855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17858 {
17859 arg2 = &temp2;
17860 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17861 }
17862 {
17863 PyThreadState* __tstate = wxPyBeginAllowThreads();
17864 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17865
17866 wxPyEndAllowThreads(__tstate);
17867 if (PyErr_Occurred()) SWIG_fail;
17868 }
17869 Py_INCREF(Py_None); resultobj = Py_None;
17870 return resultobj;
17871 fail:
17872 return NULL;
17873 }
17874
17875
17876 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17877 PyObject *resultobj;
17878 wxEffects *arg1 = (wxEffects *) 0 ;
17879 wxColour *arg2 = 0 ;
17880 wxColour temp2 ;
17881 PyObject * obj0 = 0 ;
17882 PyObject * obj1 = 0 ;
17883 char *kwnames[] = {
17884 (char *) "self",(char *) "c", NULL
17885 };
17886
17887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17890 {
17891 arg2 = &temp2;
17892 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17893 }
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 (arg1)->SetLightShadow((wxColour const &)*arg2);
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 Py_INCREF(Py_None); resultobj = Py_None;
17902 return resultobj;
17903 fail:
17904 return NULL;
17905 }
17906
17907
17908 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxEffects *arg1 = (wxEffects *) 0 ;
17911 wxColour *arg2 = 0 ;
17912 wxColour temp2 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 char *kwnames[] = {
17916 (char *) "self",(char *) "c", NULL
17917 };
17918
17919 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17920 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17921 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17922 {
17923 arg2 = &temp2;
17924 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17925 }
17926 {
17927 PyThreadState* __tstate = wxPyBeginAllowThreads();
17928 (arg1)->SetFaceColour((wxColour const &)*arg2);
17929
17930 wxPyEndAllowThreads(__tstate);
17931 if (PyErr_Occurred()) SWIG_fail;
17932 }
17933 Py_INCREF(Py_None); resultobj = Py_None;
17934 return resultobj;
17935 fail:
17936 return NULL;
17937 }
17938
17939
17940 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17941 PyObject *resultobj;
17942 wxEffects *arg1 = (wxEffects *) 0 ;
17943 wxColour *arg2 = 0 ;
17944 wxColour temp2 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char *kwnames[] = {
17948 (char *) "self",(char *) "c", NULL
17949 };
17950
17951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
17952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17954 {
17955 arg2 = &temp2;
17956 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17957 }
17958 {
17959 PyThreadState* __tstate = wxPyBeginAllowThreads();
17960 (arg1)->SetMediumShadow((wxColour const &)*arg2);
17961
17962 wxPyEndAllowThreads(__tstate);
17963 if (PyErr_Occurred()) SWIG_fail;
17964 }
17965 Py_INCREF(Py_None); resultobj = Py_None;
17966 return resultobj;
17967 fail:
17968 return NULL;
17969 }
17970
17971
17972 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17973 PyObject *resultobj;
17974 wxEffects *arg1 = (wxEffects *) 0 ;
17975 wxColour *arg2 = 0 ;
17976 wxColour temp2 ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 char *kwnames[] = {
17980 (char *) "self",(char *) "c", NULL
17981 };
17982
17983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
17984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17986 {
17987 arg2 = &temp2;
17988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17989 }
17990 {
17991 PyThreadState* __tstate = wxPyBeginAllowThreads();
17992 (arg1)->SetDarkShadow((wxColour const &)*arg2);
17993
17994 wxPyEndAllowThreads(__tstate);
17995 if (PyErr_Occurred()) SWIG_fail;
17996 }
17997 Py_INCREF(Py_None); resultobj = Py_None;
17998 return resultobj;
17999 fail:
18000 return NULL;
18001 }
18002
18003
18004 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18005 PyObject *resultobj;
18006 wxEffects *arg1 = (wxEffects *) 0 ;
18007 wxColour *arg2 = 0 ;
18008 wxColour *arg3 = 0 ;
18009 wxColour *arg4 = 0 ;
18010 wxColour *arg5 = 0 ;
18011 wxColour *arg6 = 0 ;
18012 wxColour temp2 ;
18013 wxColour temp3 ;
18014 wxColour temp4 ;
18015 wxColour temp5 ;
18016 wxColour temp6 ;
18017 PyObject * obj0 = 0 ;
18018 PyObject * obj1 = 0 ;
18019 PyObject * obj2 = 0 ;
18020 PyObject * obj3 = 0 ;
18021 PyObject * obj4 = 0 ;
18022 PyObject * obj5 = 0 ;
18023 char *kwnames[] = {
18024 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18025 };
18026
18027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18030 {
18031 arg2 = &temp2;
18032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18033 }
18034 {
18035 arg3 = &temp3;
18036 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18037 }
18038 {
18039 arg4 = &temp4;
18040 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18041 }
18042 {
18043 arg5 = &temp5;
18044 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18045 }
18046 {
18047 arg6 = &temp6;
18048 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18049 }
18050 {
18051 PyThreadState* __tstate = wxPyBeginAllowThreads();
18052 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18053
18054 wxPyEndAllowThreads(__tstate);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 Py_INCREF(Py_None); resultobj = Py_None;
18058 return resultobj;
18059 fail:
18060 return NULL;
18061 }
18062
18063
18064 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18065 PyObject *resultobj;
18066 wxEffects *arg1 = (wxEffects *) 0 ;
18067 wxDC *arg2 = 0 ;
18068 wxRect *arg3 = 0 ;
18069 int arg4 = (int) 1 ;
18070 wxRect temp3 ;
18071 PyObject * obj0 = 0 ;
18072 PyObject * obj1 = 0 ;
18073 PyObject * obj2 = 0 ;
18074 PyObject * obj3 = 0 ;
18075 char *kwnames[] = {
18076 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18077 };
18078
18079 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18080 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18081 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18082 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18083 SWIG_POINTER_EXCEPTION | 0)) == -1)
18084 SWIG_fail;
18085 if (arg2 == NULL) {
18086 PyErr_SetString(PyExc_TypeError,"null reference");
18087 SWIG_fail;
18088 }
18089 {
18090 arg3 = &temp3;
18091 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18092 }
18093 if (obj3) {
18094 arg4 = (int) SWIG_AsInt(obj3);
18095 if (PyErr_Occurred()) SWIG_fail;
18096 }
18097 {
18098 PyThreadState* __tstate = wxPyBeginAllowThreads();
18099 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18100
18101 wxPyEndAllowThreads(__tstate);
18102 if (PyErr_Occurred()) SWIG_fail;
18103 }
18104 Py_INCREF(Py_None); resultobj = Py_None;
18105 return resultobj;
18106 fail:
18107 return NULL;
18108 }
18109
18110
18111 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18112 PyObject *resultobj;
18113 wxEffects *arg1 = (wxEffects *) 0 ;
18114 wxRect *arg2 = 0 ;
18115 wxDC *arg3 = 0 ;
18116 wxBitmap *arg4 = 0 ;
18117 bool result;
18118 wxRect temp2 ;
18119 PyObject * obj0 = 0 ;
18120 PyObject * obj1 = 0 ;
18121 PyObject * obj2 = 0 ;
18122 PyObject * obj3 = 0 ;
18123 char *kwnames[] = {
18124 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18125 };
18126
18127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18130 {
18131 arg2 = &temp2;
18132 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18133 }
18134 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18135 SWIG_POINTER_EXCEPTION | 0)) == -1)
18136 SWIG_fail;
18137 if (arg3 == NULL) {
18138 PyErr_SetString(PyExc_TypeError,"null reference");
18139 SWIG_fail;
18140 }
18141 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18142 SWIG_POINTER_EXCEPTION | 0)) == -1)
18143 SWIG_fail;
18144 if (arg4 == NULL) {
18145 PyErr_SetString(PyExc_TypeError,"null reference");
18146 SWIG_fail;
18147 }
18148 {
18149 PyThreadState* __tstate = wxPyBeginAllowThreads();
18150 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18151
18152 wxPyEndAllowThreads(__tstate);
18153 if (PyErr_Occurred()) SWIG_fail;
18154 }
18155 {
18156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18157 }
18158 return resultobj;
18159 fail:
18160 return NULL;
18161 }
18162
18163
18164 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18165 PyObject *obj;
18166 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18167 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18168 Py_INCREF(obj);
18169 return Py_BuildValue((char *)"");
18170 }
18171 static PyMethodDef SwigMethods[] = {
18172 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18173 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18174 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18175 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18176 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18177 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18178 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18179 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18180 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18181 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18182 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18183 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18184 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18185 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18186 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18187 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18188 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18189 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18190 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18191 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18192 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18193 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18194 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18195 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18196 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18197 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18198 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18199 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18200 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18201 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18202 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18203 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18204 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18205 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18206 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18207 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18208 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18209 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18210 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18211 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18212 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18213 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18214 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18215 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18216 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18217 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18218 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18219 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18220 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18221 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18222 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18223 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18224 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18225 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18226 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18227 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18228 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18229 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18230 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18231 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18232 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18233 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18234 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18235 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18241 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18258 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18260 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18264 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18276 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18284 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18292 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18294 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18298 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18321 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18323 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18325 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18339 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18347 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18355 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18361 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18363 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18372 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18392 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18429 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18437 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18444 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18466 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18468 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18476 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18605 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18609 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18610 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18611 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18614 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18616 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18621 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18623 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18625 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18627 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18629 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18635 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18637 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18639 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18641 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18653 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18658 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18663 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18670 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18675 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18690 { NULL, NULL }
18691 };
18692
18693
18694 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18695
18696 static void *_p_wxControlTo_p_wxWindow(void *x) {
18697 return (void *)((wxWindow *) ((wxControl *) x));
18698 }
18699 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18700 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18701 }
18702 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18703 return (void *)((wxWindow *) ((wxMenuBar *) x));
18704 }
18705 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18706 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18707 }
18708 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18709 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18710 }
18711 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18712 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18713 }
18714 static void *_p_wxPenTo_p_wxObject(void *x) {
18715 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18716 }
18717 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18718 return (void *)((wxObject *) ((wxRegionIterator *) x));
18719 }
18720 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18721 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18722 }
18723 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18724 return (void *)((wxObject *) ((wxSizerItem *) x));
18725 }
18726 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18727 return (void *)((wxObject *) ((wxColourDatabase *) x));
18728 }
18729 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18730 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18731 }
18732 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18733 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18734 }
18735 static void *_p_wxIconTo_p_wxObject(void *x) {
18736 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18737 }
18738 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18739 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18740 }
18741 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18742 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18743 }
18744 static void *_p_wxSizerTo_p_wxObject(void *x) {
18745 return (void *)((wxObject *) ((wxSizer *) x));
18746 }
18747 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18748 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18749 }
18750 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18751 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18752 }
18753 static void *_p_wxPenListTo_p_wxObject(void *x) {
18754 return (void *)((wxObject *) ((wxPenList *) x));
18755 }
18756 static void *_p_wxEventTo_p_wxObject(void *x) {
18757 return (void *)((wxObject *) ((wxEvent *) x));
18758 }
18759 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18760 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18761 }
18762 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18763 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18764 }
18765 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18766 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18767 }
18768 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18769 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18770 }
18771 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18772 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18773 }
18774 static void *_p_wxDCTo_p_wxObject(void *x) {
18775 return (void *)((wxObject *) ((wxDC *) x));
18776 }
18777 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18778 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18779 }
18780 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18781 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18782 }
18783 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18784 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18785 }
18786 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18787 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18788 }
18789 static void *_p_wxControlTo_p_wxObject(void *x) {
18790 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18791 }
18792 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18793 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18794 }
18795 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18796 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18797 }
18798 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18799 return (void *)((wxObject *) ((wxFSFile *) x));
18800 }
18801 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18802 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18803 }
18804 static void *_p_wxRegionTo_p_wxObject(void *x) {
18805 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18806 }
18807 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18808 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18809 }
18810 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18811 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18812 }
18813 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18814 return (void *)((wxObject *) ((wxGDIObject *) x));
18815 }
18816 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18817 return (void *)((wxObject *) ((wxEffects *) x));
18818 }
18819 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18820 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18821 }
18822 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18823 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18824 }
18825 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18826 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18827 }
18828 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18829 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18830 }
18831 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18832 return (void *)((wxObject *) ((wxMenuItem *) x));
18833 }
18834 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18835 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18836 }
18837 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18838 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18839 }
18840 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18841 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18842 }
18843 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18844 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18845 }
18846 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18847 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18848 }
18849 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18850 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18851 }
18852 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18853 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18854 }
18855 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18856 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18857 }
18858 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18859 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18860 }
18861 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18862 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18863 }
18864 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18865 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18866 }
18867 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18868 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18869 }
18870 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18871 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18872 }
18873 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18874 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18875 }
18876 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18877 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18878 }
18879 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18880 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18881 }
18882 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18883 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18884 }
18885 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18886 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18887 }
18888 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18889 return (void *)((wxObject *) ((wxImageHandler *) x));
18890 }
18891 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18892 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18893 }
18894 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18895 return (void *)((wxObject *) ((wxEvtHandler *) x));
18896 }
18897 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18898 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18899 }
18900 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18901 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18902 }
18903 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18904 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18905 }
18906 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18907 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18908 }
18909 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18910 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18911 }
18912 static void *_p_wxImageTo_p_wxObject(void *x) {
18913 return (void *)((wxObject *) ((wxImage *) x));
18914 }
18915 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18916 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18917 }
18918 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18919 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18920 }
18921 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18922 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18923 }
18924 static void *_p_wxImageListTo_p_wxObject(void *x) {
18925 return (void *)((wxObject *) ((wxImageList *) x));
18926 }
18927 static void *_p_wxCursorTo_p_wxObject(void *x) {
18928 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18929 }
18930 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18931 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18932 }
18933 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18934 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
18935 }
18936 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
18937 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
18938 }
18939 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
18940 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
18941 }
18942 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
18943 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
18944 }
18945 static void *_p_wxWindowTo_p_wxObject(void *x) {
18946 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
18947 }
18948 static void *_p_wxMenuTo_p_wxObject(void *x) {
18949 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
18950 }
18951 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
18952 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
18953 }
18954 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
18955 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
18956 }
18957 static void *_p_wxBrushListTo_p_wxObject(void *x) {
18958 return (void *)((wxObject *) ((wxBrushList *) x));
18959 }
18960 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
18961 return (void *)((wxObject *) ((wxFileSystem *) x));
18962 }
18963 static void *_p_wxBitmapTo_p_wxObject(void *x) {
18964 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
18965 }
18966 static void *_p_wxMaskTo_p_wxObject(void *x) {
18967 return (void *)((wxObject *) ((wxMask *) x));
18968 }
18969 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
18970 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
18971 }
18972 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
18973 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
18974 }
18975 static void *_p_wxPyAppTo_p_wxObject(void *x) {
18976 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
18977 }
18978 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
18979 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
18980 }
18981 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
18982 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
18983 }
18984 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
18985 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
18986 }
18987 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
18988 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
18989 }
18990 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
18991 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
18992 }
18993 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
18994 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
18995 }
18996 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
18997 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
18998 }
18999 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19000 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19001 }
19002 static void *_p_wxFontTo_p_wxObject(void *x) {
19003 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19004 }
19005 static void *_p_wxBrushTo_p_wxObject(void *x) {
19006 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19007 }
19008 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19009 return (void *)((wxObject *) ((wxMetaFile *) x));
19010 }
19011 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19012 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19013 }
19014 static void *_p_wxColourTo_p_wxObject(void *x) {
19015 return (void *)((wxObject *) ((wxColour *) x));
19016 }
19017 static void *_p_wxFontListTo_p_wxObject(void *x) {
19018 return (void *)((wxObject *) ((wxFontList *) x));
19019 }
19020 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19021 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19022 }
19023 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19024 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19025 }
19026 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19027 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19028 }
19029 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19030 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19031 }
19032 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19033 return (void *)((wxDC *) ((wxScreenDC *) x));
19034 }
19035 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19036 return (void *)((wxDC *) ((wxMirrorDC *) x));
19037 }
19038 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19039 return (void *)((wxDC *) ((wxMemoryDC *) x));
19040 }
19041 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19042 return (void *)((wxDC *) ((wxWindowDC *) x));
19043 }
19044 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19045 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19046 }
19047 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19048 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19049 }
19050 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19051 return (void *)((wxDC *) ((wxClientDC *) x));
19052 }
19053 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19054 return (void *)((wxDC *) ((wxPaintDC *) x));
19055 }
19056 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19057 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19058 }
19059 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19060 return (void *)((wxDC *) ((wxPrinterDC *) x));
19061 }
19062 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19063 return (void *)((wxGDIObject *) ((wxIcon *) x));
19064 }
19065 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19066 return (void *)((wxGDIObject *) ((wxPalette *) x));
19067 }
19068 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19069 return (void *)((wxGDIObject *) ((wxPen *) x));
19070 }
19071 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19072 return (void *)((wxGDIObject *) ((wxFont *) x));
19073 }
19074 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19075 return (void *)((wxGDIObject *) ((wxCursor *) x));
19076 }
19077 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19078 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19079 }
19080 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19081 return (void *)((wxGDIObject *) ((wxRegion *) x));
19082 }
19083 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19084 return (void *)((wxGDIObject *) ((wxBrush *) x));
19085 }
19086 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}};
19087 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}};
19088 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}};
19089 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}};
19090 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}};
19091 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}};
19092 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}};
19093 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}};
19094 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}};
19095 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}};
19096 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}};
19097 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}};
19098 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}};
19099 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}};
19100 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}};
19101 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}};
19102 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}};
19103 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}};
19104 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}};
19105 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}};
19106 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}};
19107 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}};
19108 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}};
19109 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}};
19110 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}};
19111 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}};
19112 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}};
19113 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}};
19114 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}};
19115 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}};
19116 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}};
19117 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}};
19118 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}};
19119 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}};
19120 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}};
19121 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}};
19122 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}};
19123 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}};
19124 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}};
19125 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}};
19126 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}};
19127 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}};
19128 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}};
19129 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}};
19130 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}};
19131 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}};
19132 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}};
19133 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}};
19134 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}};
19135 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}};
19136 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}};
19137 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}};
19138 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}};
19139 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}};
19140 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}};
19141
19142 static swig_type_info *swig_types_initial[] = {
19143 _swigt__p_wxPostScriptDC,
19144 _swigt__p_wxBrush,
19145 _swigt__p_wxColour,
19146 _swigt__p_wxDC,
19147 _swigt__p_wxMirrorDC,
19148 _swigt__p_byte,
19149 _swigt__p_wxPyFontEnumerator,
19150 _swigt__p_char,
19151 _swigt__p_wxIconLocation,
19152 _swigt__p_wxImage,
19153 _swigt__p_wxMetaFileDC,
19154 _swigt__p_wxMask,
19155 _swigt__p_wxSize,
19156 _swigt__p_wxFont,
19157 _swigt__p_wxWindow,
19158 _swigt__p_double,
19159 _swigt__p_wxMemoryDC,
19160 _swigt__p_wxFontMapper,
19161 _swigt__p_wxEffects,
19162 _swigt__p_wxNativeEncodingInfo,
19163 _swigt__p_wxPalette,
19164 _swigt__p_wxBitmap,
19165 _swigt__p_wxObject,
19166 _swigt__p_wxRegionIterator,
19167 _swigt__p_wxRect,
19168 _swigt__p_wxString,
19169 _swigt__p_wxPrinterDC,
19170 _swigt__p_wxIconBundle,
19171 _swigt__p_wxPoint,
19172 _swigt__p_wxDash,
19173 _swigt__p_wxScreenDC,
19174 _swigt__p_wxCursor,
19175 _swigt__p_wxClientDC,
19176 _swigt__p_wxBufferedDC,
19177 _swigt__p_wxImageList,
19178 _swigt__p_unsigned_char,
19179 _swigt__p_wxGDIObject,
19180 _swigt__p_wxIcon,
19181 _swigt__p_wxLocale,
19182 _swigt__p_wxRegion,
19183 _swigt__p_wxLanguageInfo,
19184 _swigt__p_wxConfigBase,
19185 _swigt__p_wxWindowDC,
19186 _swigt__p_wxPrintData,
19187 _swigt__p_wxBrushList,
19188 _swigt__p_wxFontList,
19189 _swigt__p_wxPen,
19190 _swigt__p_wxBufferedPaintDC,
19191 _swigt__p_wxPaintDC,
19192 _swigt__p_wxPenList,
19193 _swigt__p_int,
19194 _swigt__p_wxMetaFile,
19195 _swigt__p_wxNativeFontInfo,
19196 _swigt__p_wxEncodingConverter,
19197 _swigt__p_wxColourDatabase,
19198 0
19199 };
19200
19201
19202 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19203
19204 static swig_const_info swig_const_table[] = {
19205 {0}};
19206
19207 #ifdef __cplusplus
19208 }
19209 #endif
19210
19211 #ifdef __cplusplus
19212 extern "C"
19213 #endif
19214 SWIGEXPORT(void) SWIG_init(void) {
19215 static PyObject *SWIG_globals = 0;
19216 static int typeinit = 0;
19217 PyObject *m, *d;
19218 int i;
19219 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19220 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19221 d = PyModule_GetDict(m);
19222
19223 if (!typeinit) {
19224 for (i = 0; swig_types_initial[i]; i++) {
19225 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19226 }
19227 typeinit = 1;
19228 }
19229 SWIG_InstallConstants(d,swig_const_table);
19230
19231 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19232 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19233 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19234 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19235 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19236 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19237 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19238 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19239 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19240 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19241 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19242 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19243 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19244 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19245 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19246 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19247 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19248 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19249 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19250 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19251 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19252 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19253 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19254 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19255 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19256 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19257 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19258 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19259 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19260 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19261 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19262 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19263 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19264 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19265 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19266 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19267 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19268 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19269 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19270 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19271 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19272 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19273 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19274 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19275 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19276 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19277 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19278 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19279 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19280 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19281 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19282 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19283 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19284 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19285 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19286 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19287 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19288 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19289 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19290 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19291 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19292 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19293 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19294 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19295 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19296 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19297 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19298 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19299 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19300 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19301 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19302 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19303 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19304 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19305 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19306 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19307 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19308 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19309 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19310 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19311 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19312 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19313 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19314 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19315 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19316 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19317 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19318 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19319 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19320 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19321 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19322 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19323 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19324 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19325 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19326 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19327 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19328 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19329 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19330 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19331 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19332 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19333 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19334 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19335 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19336 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19337 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19338 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19339 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19340 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19341 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19342 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19343 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19344 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19345 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19346 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19347 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19348 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19349 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19350 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19351 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19352 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19353 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19354 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19355 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19356 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19357 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19358
19359 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19360
19361 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19362 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19363 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19364 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19365 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19366 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19367 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19368 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19369 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19370 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19371 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19372 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19373 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19374 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19375 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19376 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19377 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19378 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19379 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19380 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19381 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19382 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19383 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19384 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19385 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19386 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19387 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19388 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19389 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19390 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19391 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19392 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19393 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19394 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19395 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19396 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19397 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19398 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19399 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19400 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19401 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19402 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19403 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19404 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19405 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19406 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19407 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19408 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19409 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19410 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19411 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19412 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19413 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19414 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19415 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19416 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19417 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19418 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19419 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19420 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19421 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19422 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19423 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19424 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19425 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19426 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19427 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19428 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19429 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19430 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19431 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19432 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19433 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19434 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19435 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19436 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19437 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19438 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19439 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19440 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19441 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19442 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19443 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19444 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19445 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19446 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19447 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19448 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19449 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19450 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19451 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19452 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19453 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19454 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19455 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19456 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19457 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19458 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19459 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19460 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19461 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19462 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19463 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19464 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19465 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19466 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19467 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19468 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19469 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19470 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19471 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19472 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19473 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19474 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19475 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19476 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19477 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19478 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19479 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19480 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19481 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19482 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19483 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19484 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19485 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19486 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19487 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19488 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19489 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19490 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19491 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19492 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19493 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19494 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19495 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19496 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19497 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19498 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19499 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19500 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19501 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19502 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19503 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19504 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19505 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19506 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19507 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19508 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19509 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19510 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19511 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19512 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19513 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19514 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19515 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19516 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19517 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19518 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19519 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19520 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19521 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19522 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19523 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19524 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19525 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19526 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19528 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19529 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19530 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19531 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19532 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19533 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19534 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19535 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19536 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19537 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19538 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19539 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19540 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19541 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19542 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19543 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19544 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19545 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19546 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19547 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19548 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19549 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19550 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19551 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19552 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19553 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19554 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19555 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19556 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19557 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19558 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19559 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19560 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19561 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19562 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19563 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19564 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19565 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19566 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19567 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19568 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19569 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19570 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19571 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19572 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19573 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19574 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19575 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19576 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19577 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19578 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19579 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19580 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19581 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19582 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19583 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19584 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19585 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19586 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19587 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19588 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19589 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19590 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19591 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19592 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19593 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19594 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19595 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19596 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19597 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19598 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19599 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19600 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19601 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19602 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19603 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19604 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19605 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19606 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19607 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19608 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19609 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19610 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19611 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19612 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19613 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19614 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19615 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19616 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19617 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19618 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19619 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19620 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19621 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19622 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19623 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19624 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19625 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19626 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19627 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19628 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19629 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19630 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19631 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19632 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19633 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19634 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19635 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19636 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19637 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19638 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19639 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19640 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19641 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19642 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19643 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19644 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19645 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19646 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19647 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19648 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19649 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19650 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19651 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19652 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19653 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19654 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19655 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19656 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19657 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19658 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19659 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19660 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19661
19662 // Work around a chicken/egg problem in drawlist.cpp
19663 wxPyDrawList_SetAPIPtr();
19664
19665 }
19666