]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
reSWIGged
[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 wxRegion *result;
4658 PyObject * obj0 = 0 ;
4659 char *kwnames[] = {
4660 (char *) "bmp", NULL
4661 };
4662
4663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4665 SWIG_POINTER_EXCEPTION | 0)) == -1)
4666 SWIG_fail;
4667 if (arg1 == NULL) {
4668 PyErr_SetString(PyExc_TypeError,"null reference");
4669 SWIG_fail;
4670 }
4671 {
4672 if (!wxPyCheckForApp()) SWIG_fail;
4673 PyThreadState* __tstate = wxPyBeginAllowThreads();
4674 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4675
4676 wxPyEndAllowThreads(__tstate);
4677 if (PyErr_Occurred()) SWIG_fail;
4678 }
4679 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4680 return resultobj;
4681 fail:
4682 return NULL;
4683 }
4684
4685
4686 static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4687 PyObject *resultobj;
4688 wxBitmap *arg1 = 0 ;
4689 wxColour *arg2 = 0 ;
4690 int arg3 = (int) 0 ;
4691 wxRegion *result;
4692 wxColour temp2 ;
4693 PyObject * obj0 = 0 ;
4694 PyObject * obj1 = 0 ;
4695 PyObject * obj2 = 0 ;
4696 char *kwnames[] = {
4697 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4698 };
4699
4700 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
4701 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4702 SWIG_POINTER_EXCEPTION | 0)) == -1)
4703 SWIG_fail;
4704 if (arg1 == NULL) {
4705 PyErr_SetString(PyExc_TypeError,"null reference");
4706 SWIG_fail;
4707 }
4708 {
4709 arg2 = &temp2;
4710 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4711 }
4712 if (obj2) {
4713 arg3 = (int) SWIG_AsInt(obj2);
4714 if (PyErr_Occurred()) SWIG_fail;
4715 }
4716 {
4717 if (!wxPyCheckForApp()) SWIG_fail;
4718 PyThreadState* __tstate = wxPyBeginAllowThreads();
4719 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4720
4721 wxPyEndAllowThreads(__tstate);
4722 if (PyErr_Occurred()) SWIG_fail;
4723 }
4724 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4725 return resultobj;
4726 fail:
4727 return NULL;
4728 }
4729
4730
4731 static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4732 PyObject *resultobj;
4733 int arg1 ;
4734 wxPoint *arg2 = (wxPoint *) 0 ;
4735 int arg3 = (int) wxWINDING_RULE ;
4736 wxRegion *result;
4737 PyObject * obj0 = 0 ;
4738 PyObject * obj1 = 0 ;
4739 char *kwnames[] = {
4740 (char *) "points",(char *) "fillStyle", NULL
4741 };
4742
4743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4744 {
4745 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4746 if (arg2 == NULL) SWIG_fail;
4747 }
4748 if (obj1) {
4749 arg3 = (int) SWIG_AsInt(obj1);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 {
4753 if (!wxPyCheckForApp()) SWIG_fail;
4754 PyThreadState* __tstate = wxPyBeginAllowThreads();
4755 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
4756
4757 wxPyEndAllowThreads(__tstate);
4758 if (PyErr_Occurred()) SWIG_fail;
4759 }
4760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4761 {
4762 if (arg2) delete [] arg2;
4763 }
4764 return resultobj;
4765 fail:
4766 {
4767 if (arg2) delete [] arg2;
4768 }
4769 return NULL;
4770 }
4771
4772
4773 static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4774 PyObject *resultobj;
4775 wxRegion *arg1 = (wxRegion *) 0 ;
4776 PyObject * obj0 = 0 ;
4777 char *kwnames[] = {
4778 (char *) "self", NULL
4779 };
4780
4781 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4782 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4783 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4784 {
4785 PyThreadState* __tstate = wxPyBeginAllowThreads();
4786 delete arg1;
4787
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 Py_INCREF(Py_None); resultobj = Py_None;
4792 return resultobj;
4793 fail:
4794 return NULL;
4795 }
4796
4797
4798 static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4799 PyObject *resultobj;
4800 wxRegion *arg1 = (wxRegion *) 0 ;
4801 PyObject * obj0 = 0 ;
4802 char *kwnames[] = {
4803 (char *) "self", NULL
4804 };
4805
4806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4809 {
4810 PyThreadState* __tstate = wxPyBeginAllowThreads();
4811 (arg1)->Clear();
4812
4813 wxPyEndAllowThreads(__tstate);
4814 if (PyErr_Occurred()) SWIG_fail;
4815 }
4816 Py_INCREF(Py_None); resultobj = Py_None;
4817 return resultobj;
4818 fail:
4819 return NULL;
4820 }
4821
4822
4823 static PyObject *_wrap_Region_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
4824 PyObject *resultobj;
4825 wxRegion *arg1 = (wxRegion *) 0 ;
4826 int arg2 ;
4827 int arg3 ;
4828 bool result;
4829 PyObject * obj0 = 0 ;
4830 PyObject * obj1 = 0 ;
4831 PyObject * obj2 = 0 ;
4832 char *kwnames[] = {
4833 (char *) "self",(char *) "x",(char *) "y", NULL
4834 };
4835
4836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) goto fail;
4837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4839 arg2 = (int) SWIG_AsInt(obj1);
4840 if (PyErr_Occurred()) SWIG_fail;
4841 arg3 = (int) SWIG_AsInt(obj2);
4842 if (PyErr_Occurred()) SWIG_fail;
4843 {
4844 PyThreadState* __tstate = wxPyBeginAllowThreads();
4845 result = (bool)(arg1)->Offset(arg2,arg3);
4846
4847 wxPyEndAllowThreads(__tstate);
4848 if (PyErr_Occurred()) SWIG_fail;
4849 }
4850 {
4851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4852 }
4853 return resultobj;
4854 fail:
4855 return NULL;
4856 }
4857
4858
4859 static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4860 PyObject *resultobj;
4861 wxRegion *arg1 = (wxRegion *) 0 ;
4862 int arg2 ;
4863 int arg3 ;
4864 int result;
4865 PyObject * obj0 = 0 ;
4866 PyObject * obj1 = 0 ;
4867 PyObject * obj2 = 0 ;
4868 char *kwnames[] = {
4869 (char *) "self",(char *) "x",(char *) "y", NULL
4870 };
4871
4872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4875 arg2 = (int) SWIG_AsInt(obj1);
4876 if (PyErr_Occurred()) SWIG_fail;
4877 arg3 = (int) SWIG_AsInt(obj2);
4878 if (PyErr_Occurred()) SWIG_fail;
4879 {
4880 PyThreadState* __tstate = wxPyBeginAllowThreads();
4881 result = (int)(arg1)->Contains(arg2,arg3);
4882
4883 wxPyEndAllowThreads(__tstate);
4884 if (PyErr_Occurred()) SWIG_fail;
4885 }
4886 resultobj = SWIG_FromInt((int)result);
4887 return resultobj;
4888 fail:
4889 return NULL;
4890 }
4891
4892
4893 static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4894 PyObject *resultobj;
4895 wxRegion *arg1 = (wxRegion *) 0 ;
4896 wxPoint *arg2 = 0 ;
4897 int result;
4898 wxPoint temp2 ;
4899 PyObject * obj0 = 0 ;
4900 PyObject * obj1 = 0 ;
4901 char *kwnames[] = {
4902 (char *) "self",(char *) "pt", NULL
4903 };
4904
4905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4908 {
4909 arg2 = &temp2;
4910 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4911 }
4912 {
4913 PyThreadState* __tstate = wxPyBeginAllowThreads();
4914 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4915
4916 wxPyEndAllowThreads(__tstate);
4917 if (PyErr_Occurred()) SWIG_fail;
4918 }
4919 resultobj = SWIG_FromInt((int)result);
4920 return resultobj;
4921 fail:
4922 return NULL;
4923 }
4924
4925
4926 static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4927 PyObject *resultobj;
4928 wxRegion *arg1 = (wxRegion *) 0 ;
4929 wxRect *arg2 = 0 ;
4930 int result;
4931 wxRect temp2 ;
4932 PyObject * obj0 = 0 ;
4933 PyObject * obj1 = 0 ;
4934 char *kwnames[] = {
4935 (char *) "self",(char *) "rect", NULL
4936 };
4937
4938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4941 {
4942 arg2 = &temp2;
4943 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4944 }
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4948
4949 wxPyEndAllowThreads(__tstate);
4950 if (PyErr_Occurred()) SWIG_fail;
4951 }
4952 resultobj = SWIG_FromInt((int)result);
4953 return resultobj;
4954 fail:
4955 return NULL;
4956 }
4957
4958
4959 static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4960 PyObject *resultobj;
4961 wxRegion *arg1 = (wxRegion *) 0 ;
4962 int arg2 ;
4963 int arg3 ;
4964 int arg4 ;
4965 int arg5 ;
4966 int result;
4967 PyObject * obj0 = 0 ;
4968 PyObject * obj1 = 0 ;
4969 PyObject * obj2 = 0 ;
4970 PyObject * obj3 = 0 ;
4971 PyObject * obj4 = 0 ;
4972 char *kwnames[] = {
4973 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4974 };
4975
4976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4979 arg2 = (int) SWIG_AsInt(obj1);
4980 if (PyErr_Occurred()) SWIG_fail;
4981 arg3 = (int) SWIG_AsInt(obj2);
4982 if (PyErr_Occurred()) SWIG_fail;
4983 arg4 = (int) SWIG_AsInt(obj3);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 arg5 = (int) SWIG_AsInt(obj4);
4986 if (PyErr_Occurred()) SWIG_fail;
4987 {
4988 PyThreadState* __tstate = wxPyBeginAllowThreads();
4989 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4990
4991 wxPyEndAllowThreads(__tstate);
4992 if (PyErr_Occurred()) SWIG_fail;
4993 }
4994 resultobj = SWIG_FromInt((int)result);
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj;
5003 wxRegion *arg1 = (wxRegion *) 0 ;
5004 wxRect result;
5005 PyObject * obj0 = 0 ;
5006 char *kwnames[] = {
5007 (char *) "self", NULL
5008 };
5009
5010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
5011 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5012 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5013 {
5014 PyThreadState* __tstate = wxPyBeginAllowThreads();
5015 result = (arg1)->GetBox();
5016
5017 wxPyEndAllowThreads(__tstate);
5018 if (PyErr_Occurred()) SWIG_fail;
5019 }
5020 {
5021 wxRect * resultptr;
5022 resultptr = new wxRect((wxRect &) result);
5023 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5024 }
5025 return resultobj;
5026 fail:
5027 return NULL;
5028 }
5029
5030
5031 static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
5032 PyObject *resultobj;
5033 wxRegion *arg1 = (wxRegion *) 0 ;
5034 int arg2 ;
5035 int arg3 ;
5036 int arg4 ;
5037 int arg5 ;
5038 bool result;
5039 PyObject * obj0 = 0 ;
5040 PyObject * obj1 = 0 ;
5041 PyObject * obj2 = 0 ;
5042 PyObject * obj3 = 0 ;
5043 PyObject * obj4 = 0 ;
5044 char *kwnames[] = {
5045 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5046 };
5047
5048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5051 arg2 = (int) SWIG_AsInt(obj1);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 arg3 = (int) SWIG_AsInt(obj2);
5054 if (PyErr_Occurred()) SWIG_fail;
5055 arg4 = (int) SWIG_AsInt(obj3);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 arg5 = (int) SWIG_AsInt(obj4);
5058 if (PyErr_Occurred()) SWIG_fail;
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5062
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 {
5067 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5068 }
5069 return resultobj;
5070 fail:
5071 return NULL;
5072 }
5073
5074
5075 static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj;
5077 wxRegion *arg1 = (wxRegion *) 0 ;
5078 wxRect *arg2 = 0 ;
5079 bool result;
5080 wxRect temp2 ;
5081 PyObject * obj0 = 0 ;
5082 PyObject * obj1 = 0 ;
5083 char *kwnames[] = {
5084 (char *) "self",(char *) "rect", NULL
5085 };
5086
5087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5090 {
5091 arg2 = &temp2;
5092 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5093 }
5094 {
5095 PyThreadState* __tstate = wxPyBeginAllowThreads();
5096 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5097
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 {
5102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5103 }
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj;
5112 wxRegion *arg1 = (wxRegion *) 0 ;
5113 wxRegion *arg2 = 0 ;
5114 bool result;
5115 PyObject * obj0 = 0 ;
5116 PyObject * obj1 = 0 ;
5117 char *kwnames[] = {
5118 (char *) "self",(char *) "region", NULL
5119 };
5120
5121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5124 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5125 SWIG_POINTER_EXCEPTION | 0)) == -1)
5126 SWIG_fail;
5127 if (arg2 == NULL) {
5128 PyErr_SetString(PyExc_TypeError,"null reference");
5129 SWIG_fail;
5130 }
5131 {
5132 PyThreadState* __tstate = wxPyBeginAllowThreads();
5133 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5134
5135 wxPyEndAllowThreads(__tstate);
5136 if (PyErr_Occurred()) SWIG_fail;
5137 }
5138 {
5139 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5140 }
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj;
5149 wxRegion *arg1 = (wxRegion *) 0 ;
5150 bool result;
5151 PyObject * obj0 = 0 ;
5152 char *kwnames[] = {
5153 (char *) "self", NULL
5154 };
5155
5156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5159 {
5160 PyThreadState* __tstate = wxPyBeginAllowThreads();
5161 result = (bool)(arg1)->IsEmpty();
5162
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 {
5167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5168 }
5169 return resultobj;
5170 fail:
5171 return NULL;
5172 }
5173
5174
5175 static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5176 PyObject *resultobj;
5177 wxRegion *arg1 = (wxRegion *) 0 ;
5178 int arg2 ;
5179 int arg3 ;
5180 int arg4 ;
5181 int arg5 ;
5182 bool result;
5183 PyObject * obj0 = 0 ;
5184 PyObject * obj1 = 0 ;
5185 PyObject * obj2 = 0 ;
5186 PyObject * obj3 = 0 ;
5187 PyObject * obj4 = 0 ;
5188 char *kwnames[] = {
5189 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5190 };
5191
5192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5195 arg2 = (int) SWIG_AsInt(obj1);
5196 if (PyErr_Occurred()) SWIG_fail;
5197 arg3 = (int) SWIG_AsInt(obj2);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 arg4 = (int) SWIG_AsInt(obj3);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 arg5 = (int) SWIG_AsInt(obj4);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 {
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5206
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 {
5211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5212 }
5213 return resultobj;
5214 fail:
5215 return NULL;
5216 }
5217
5218
5219 static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5220 PyObject *resultobj;
5221 wxRegion *arg1 = (wxRegion *) 0 ;
5222 wxRect *arg2 = 0 ;
5223 bool result;
5224 wxRect temp2 ;
5225 PyObject * obj0 = 0 ;
5226 PyObject * obj1 = 0 ;
5227 char *kwnames[] = {
5228 (char *) "self",(char *) "rect", NULL
5229 };
5230
5231 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5232 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5233 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5234 {
5235 arg2 = &temp2;
5236 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5237 }
5238 {
5239 PyThreadState* __tstate = wxPyBeginAllowThreads();
5240 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5241
5242 wxPyEndAllowThreads(__tstate);
5243 if (PyErr_Occurred()) SWIG_fail;
5244 }
5245 {
5246 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5247 }
5248 return resultobj;
5249 fail:
5250 return NULL;
5251 }
5252
5253
5254 static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5255 PyObject *resultobj;
5256 wxRegion *arg1 = (wxRegion *) 0 ;
5257 wxRegion *arg2 = 0 ;
5258 bool result;
5259 PyObject * obj0 = 0 ;
5260 PyObject * obj1 = 0 ;
5261 char *kwnames[] = {
5262 (char *) "self",(char *) "region", NULL
5263 };
5264
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5268 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5269 SWIG_POINTER_EXCEPTION | 0)) == -1)
5270 SWIG_fail;
5271 if (arg2 == NULL) {
5272 PyErr_SetString(PyExc_TypeError,"null reference");
5273 SWIG_fail;
5274 }
5275 {
5276 PyThreadState* __tstate = wxPyBeginAllowThreads();
5277 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5278
5279 wxPyEndAllowThreads(__tstate);
5280 if (PyErr_Occurred()) SWIG_fail;
5281 }
5282 {
5283 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5284 }
5285 return resultobj;
5286 fail:
5287 return NULL;
5288 }
5289
5290
5291 static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5292 PyObject *resultobj;
5293 wxRegion *arg1 = (wxRegion *) 0 ;
5294 int arg2 ;
5295 int arg3 ;
5296 int arg4 ;
5297 int arg5 ;
5298 bool result;
5299 PyObject * obj0 = 0 ;
5300 PyObject * obj1 = 0 ;
5301 PyObject * obj2 = 0 ;
5302 PyObject * obj3 = 0 ;
5303 PyObject * obj4 = 0 ;
5304 char *kwnames[] = {
5305 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5306 };
5307
5308 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5309 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5310 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5311 arg2 = (int) SWIG_AsInt(obj1);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 arg3 = (int) SWIG_AsInt(obj2);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 arg4 = (int) SWIG_AsInt(obj3);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 arg5 = (int) SWIG_AsInt(obj4);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 {
5320 PyThreadState* __tstate = wxPyBeginAllowThreads();
5321 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5322
5323 wxPyEndAllowThreads(__tstate);
5324 if (PyErr_Occurred()) SWIG_fail;
5325 }
5326 {
5327 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5328 }
5329 return resultobj;
5330 fail:
5331 return NULL;
5332 }
5333
5334
5335 static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj;
5337 wxRegion *arg1 = (wxRegion *) 0 ;
5338 wxRect *arg2 = 0 ;
5339 bool result;
5340 wxRect temp2 ;
5341 PyObject * obj0 = 0 ;
5342 PyObject * obj1 = 0 ;
5343 char *kwnames[] = {
5344 (char *) "self",(char *) "rect", NULL
5345 };
5346
5347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5350 {
5351 arg2 = &temp2;
5352 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5353 }
5354 {
5355 PyThreadState* __tstate = wxPyBeginAllowThreads();
5356 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5357
5358 wxPyEndAllowThreads(__tstate);
5359 if (PyErr_Occurred()) SWIG_fail;
5360 }
5361 {
5362 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5363 }
5364 return resultobj;
5365 fail:
5366 return NULL;
5367 }
5368
5369
5370 static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5371 PyObject *resultobj;
5372 wxRegion *arg1 = (wxRegion *) 0 ;
5373 wxRegion *arg2 = 0 ;
5374 bool result;
5375 PyObject * obj0 = 0 ;
5376 PyObject * obj1 = 0 ;
5377 char *kwnames[] = {
5378 (char *) "self",(char *) "region", NULL
5379 };
5380
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5384 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5385 SWIG_POINTER_EXCEPTION | 0)) == -1)
5386 SWIG_fail;
5387 if (arg2 == NULL) {
5388 PyErr_SetString(PyExc_TypeError,"null reference");
5389 SWIG_fail;
5390 }
5391 {
5392 PyThreadState* __tstate = wxPyBeginAllowThreads();
5393 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5394
5395 wxPyEndAllowThreads(__tstate);
5396 if (PyErr_Occurred()) SWIG_fail;
5397 }
5398 {
5399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5400 }
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj;
5409 wxRegion *arg1 = (wxRegion *) 0 ;
5410 int arg2 ;
5411 int arg3 ;
5412 int arg4 ;
5413 int arg5 ;
5414 bool result;
5415 PyObject * obj0 = 0 ;
5416 PyObject * obj1 = 0 ;
5417 PyObject * obj2 = 0 ;
5418 PyObject * obj3 = 0 ;
5419 PyObject * obj4 = 0 ;
5420 char *kwnames[] = {
5421 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5422 };
5423
5424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5427 arg2 = (int) SWIG_AsInt(obj1);
5428 if (PyErr_Occurred()) SWIG_fail;
5429 arg3 = (int) SWIG_AsInt(obj2);
5430 if (PyErr_Occurred()) SWIG_fail;
5431 arg4 = (int) SWIG_AsInt(obj3);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 arg5 = (int) SWIG_AsInt(obj4);
5434 if (PyErr_Occurred()) SWIG_fail;
5435 {
5436 PyThreadState* __tstate = wxPyBeginAllowThreads();
5437 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5438
5439 wxPyEndAllowThreads(__tstate);
5440 if (PyErr_Occurred()) SWIG_fail;
5441 }
5442 {
5443 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5444 }
5445 return resultobj;
5446 fail:
5447 return NULL;
5448 }
5449
5450
5451 static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5452 PyObject *resultobj;
5453 wxRegion *arg1 = (wxRegion *) 0 ;
5454 wxRect *arg2 = 0 ;
5455 bool result;
5456 wxRect temp2 ;
5457 PyObject * obj0 = 0 ;
5458 PyObject * obj1 = 0 ;
5459 char *kwnames[] = {
5460 (char *) "self",(char *) "rect", NULL
5461 };
5462
5463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5466 {
5467 arg2 = &temp2;
5468 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5469 }
5470 {
5471 PyThreadState* __tstate = wxPyBeginAllowThreads();
5472 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5473
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 {
5478 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5479 }
5480 return resultobj;
5481 fail:
5482 return NULL;
5483 }
5484
5485
5486 static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5487 PyObject *resultobj;
5488 wxRegion *arg1 = (wxRegion *) 0 ;
5489 wxRegion *arg2 = 0 ;
5490 bool result;
5491 PyObject * obj0 = 0 ;
5492 PyObject * obj1 = 0 ;
5493 char *kwnames[] = {
5494 (char *) "self",(char *) "region", NULL
5495 };
5496
5497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5500 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5501 SWIG_POINTER_EXCEPTION | 0)) == -1)
5502 SWIG_fail;
5503 if (arg2 == NULL) {
5504 PyErr_SetString(PyExc_TypeError,"null reference");
5505 SWIG_fail;
5506 }
5507 {
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5510
5511 wxPyEndAllowThreads(__tstate);
5512 if (PyErr_Occurred()) SWIG_fail;
5513 }
5514 {
5515 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5516 }
5517 return resultobj;
5518 fail:
5519 return NULL;
5520 }
5521
5522
5523 static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5524 PyObject *resultobj;
5525 wxRegion *arg1 = (wxRegion *) 0 ;
5526 SwigValueWrapper< wxBitmap > result;
5527 PyObject * obj0 = 0 ;
5528 char *kwnames[] = {
5529 (char *) "self", NULL
5530 };
5531
5532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5535 {
5536 PyThreadState* __tstate = wxPyBeginAllowThreads();
5537 result = (arg1)->ConvertToBitmap();
5538
5539 wxPyEndAllowThreads(__tstate);
5540 if (PyErr_Occurred()) SWIG_fail;
5541 }
5542 {
5543 wxBitmap * resultptr;
5544 resultptr = new wxBitmap((wxBitmap &) result);
5545 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5546 }
5547 return resultobj;
5548 fail:
5549 return NULL;
5550 }
5551
5552
5553 static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5554 PyObject *resultobj;
5555 wxRegion *arg1 = (wxRegion *) 0 ;
5556 wxBitmap *arg2 = 0 ;
5557 bool result;
5558 PyObject * obj0 = 0 ;
5559 PyObject * obj1 = 0 ;
5560 char *kwnames[] = {
5561 (char *) "self",(char *) "bmp", NULL
5562 };
5563
5564 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5565 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5566 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5567 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5568 SWIG_POINTER_EXCEPTION | 0)) == -1)
5569 SWIG_fail;
5570 if (arg2 == NULL) {
5571 PyErr_SetString(PyExc_TypeError,"null reference");
5572 SWIG_fail;
5573 }
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5577
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 {
5582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5583 }
5584 return resultobj;
5585 fail:
5586 return NULL;
5587 }
5588
5589
5590 static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5591 PyObject *resultobj;
5592 wxRegion *arg1 = (wxRegion *) 0 ;
5593 wxBitmap *arg2 = 0 ;
5594 wxColour *arg3 = 0 ;
5595 int arg4 = (int) 0 ;
5596 bool result;
5597 wxColour temp3 ;
5598 PyObject * obj0 = 0 ;
5599 PyObject * obj1 = 0 ;
5600 PyObject * obj2 = 0 ;
5601 PyObject * obj3 = 0 ;
5602 char *kwnames[] = {
5603 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5604 };
5605
5606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
5607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5609 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5610 SWIG_POINTER_EXCEPTION | 0)) == -1)
5611 SWIG_fail;
5612 if (arg2 == NULL) {
5613 PyErr_SetString(PyExc_TypeError,"null reference");
5614 SWIG_fail;
5615 }
5616 {
5617 arg3 = &temp3;
5618 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
5619 }
5620 if (obj3) {
5621 arg4 = (int) SWIG_AsInt(obj3);
5622 if (PyErr_Occurred()) SWIG_fail;
5623 }
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5627
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 {
5632 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5633 }
5634 return resultobj;
5635 fail:
5636 return NULL;
5637 }
5638
5639
5640 static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5641 PyObject *obj;
5642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5643 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5644 Py_INCREF(obj);
5645 return Py_BuildValue((char *)"");
5646 }
5647 static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5648 PyObject *resultobj;
5649 wxRegion *arg1 = 0 ;
5650 wxRegionIterator *result;
5651 PyObject * obj0 = 0 ;
5652 char *kwnames[] = {
5653 (char *) "region", NULL
5654 };
5655
5656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5658 SWIG_POINTER_EXCEPTION | 0)) == -1)
5659 SWIG_fail;
5660 if (arg1 == NULL) {
5661 PyErr_SetString(PyExc_TypeError,"null reference");
5662 SWIG_fail;
5663 }
5664 {
5665 if (!wxPyCheckForApp()) SWIG_fail;
5666 PyThreadState* __tstate = wxPyBeginAllowThreads();
5667 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5668
5669 wxPyEndAllowThreads(__tstate);
5670 if (PyErr_Occurred()) SWIG_fail;
5671 }
5672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5673 return resultobj;
5674 fail:
5675 return NULL;
5676 }
5677
5678
5679 static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5680 PyObject *resultobj;
5681 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5682 PyObject * obj0 = 0 ;
5683 char *kwnames[] = {
5684 (char *) "self", NULL
5685 };
5686
5687 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5688 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5689 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5690 {
5691 PyThreadState* __tstate = wxPyBeginAllowThreads();
5692 delete arg1;
5693
5694 wxPyEndAllowThreads(__tstate);
5695 if (PyErr_Occurred()) SWIG_fail;
5696 }
5697 Py_INCREF(Py_None); resultobj = Py_None;
5698 return resultobj;
5699 fail:
5700 return NULL;
5701 }
5702
5703
5704 static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5705 PyObject *resultobj;
5706 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5707 int result;
5708 PyObject * obj0 = 0 ;
5709 char *kwnames[] = {
5710 (char *) "self", NULL
5711 };
5712
5713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5714 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5715 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5716 {
5717 PyThreadState* __tstate = wxPyBeginAllowThreads();
5718 result = (int)(arg1)->GetX();
5719
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_FromInt((int)result);
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5731 PyObject *resultobj;
5732 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5733 int result;
5734 PyObject * obj0 = 0 ;
5735 char *kwnames[] = {
5736 (char *) "self", NULL
5737 };
5738
5739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5741 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5742 {
5743 PyThreadState* __tstate = wxPyBeginAllowThreads();
5744 result = (int)(arg1)->GetY();
5745
5746 wxPyEndAllowThreads(__tstate);
5747 if (PyErr_Occurred()) SWIG_fail;
5748 }
5749 resultobj = SWIG_FromInt((int)result);
5750 return resultobj;
5751 fail:
5752 return NULL;
5753 }
5754
5755
5756 static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5757 PyObject *resultobj;
5758 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5759 int result;
5760 PyObject * obj0 = 0 ;
5761 char *kwnames[] = {
5762 (char *) "self", NULL
5763 };
5764
5765 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5766 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5767 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = (int)(arg1)->GetW();
5771
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 resultobj = SWIG_FromInt((int)result);
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5783 PyObject *resultobj;
5784 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5785 int result;
5786 PyObject * obj0 = 0 ;
5787 char *kwnames[] = {
5788 (char *) "self", NULL
5789 };
5790
5791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5794 {
5795 PyThreadState* __tstate = wxPyBeginAllowThreads();
5796 result = (int)(arg1)->GetWidth();
5797
5798 wxPyEndAllowThreads(__tstate);
5799 if (PyErr_Occurred()) SWIG_fail;
5800 }
5801 resultobj = SWIG_FromInt((int)result);
5802 return resultobj;
5803 fail:
5804 return NULL;
5805 }
5806
5807
5808 static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5809 PyObject *resultobj;
5810 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5811 int result;
5812 PyObject * obj0 = 0 ;
5813 char *kwnames[] = {
5814 (char *) "self", NULL
5815 };
5816
5817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5820 {
5821 PyThreadState* __tstate = wxPyBeginAllowThreads();
5822 result = (int)(arg1)->GetH();
5823
5824 wxPyEndAllowThreads(__tstate);
5825 if (PyErr_Occurred()) SWIG_fail;
5826 }
5827 resultobj = SWIG_FromInt((int)result);
5828 return resultobj;
5829 fail:
5830 return NULL;
5831 }
5832
5833
5834 static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5835 PyObject *resultobj;
5836 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5837 int result;
5838 PyObject * obj0 = 0 ;
5839 char *kwnames[] = {
5840 (char *) "self", NULL
5841 };
5842
5843 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5846 {
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = (int)(arg1)->GetHeight();
5849
5850 wxPyEndAllowThreads(__tstate);
5851 if (PyErr_Occurred()) SWIG_fail;
5852 }
5853 resultobj = SWIG_FromInt((int)result);
5854 return resultobj;
5855 fail:
5856 return NULL;
5857 }
5858
5859
5860 static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5861 PyObject *resultobj;
5862 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5863 wxRect result;
5864 PyObject * obj0 = 0 ;
5865 char *kwnames[] = {
5866 (char *) "self", NULL
5867 };
5868
5869 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5870 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5872 {
5873 PyThreadState* __tstate = wxPyBeginAllowThreads();
5874 result = (arg1)->GetRect();
5875
5876 wxPyEndAllowThreads(__tstate);
5877 if (PyErr_Occurred()) SWIG_fail;
5878 }
5879 {
5880 wxRect * resultptr;
5881 resultptr = new wxRect((wxRect &) result);
5882 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5883 }
5884 return resultobj;
5885 fail:
5886 return NULL;
5887 }
5888
5889
5890 static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5891 PyObject *resultobj;
5892 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5893 bool result;
5894 PyObject * obj0 = 0 ;
5895 char *kwnames[] = {
5896 (char *) "self", NULL
5897 };
5898
5899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5902 {
5903 PyThreadState* __tstate = wxPyBeginAllowThreads();
5904 result = (bool)(arg1)->HaveRects();
5905
5906 wxPyEndAllowThreads(__tstate);
5907 if (PyErr_Occurred()) SWIG_fail;
5908 }
5909 {
5910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5911 }
5912 return resultobj;
5913 fail:
5914 return NULL;
5915 }
5916
5917
5918 static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj;
5920 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5921 PyObject * obj0 = 0 ;
5922 char *kwnames[] = {
5923 (char *) "self", NULL
5924 };
5925
5926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5929 {
5930 PyThreadState* __tstate = wxPyBeginAllowThreads();
5931 (arg1)->Reset();
5932
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 Py_INCREF(Py_None); resultobj = Py_None;
5937 return resultobj;
5938 fail:
5939 return NULL;
5940 }
5941
5942
5943 static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5944 PyObject *resultobj;
5945 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5946 PyObject * obj0 = 0 ;
5947 char *kwnames[] = {
5948 (char *) "self", NULL
5949 };
5950
5951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5954 {
5955 PyThreadState* __tstate = wxPyBeginAllowThreads();
5956 wxRegionIterator_Next(arg1);
5957
5958 wxPyEndAllowThreads(__tstate);
5959 if (PyErr_Occurred()) SWIG_fail;
5960 }
5961 Py_INCREF(Py_None); resultobj = Py_None;
5962 return resultobj;
5963 fail:
5964 return NULL;
5965 }
5966
5967
5968 static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5969 PyObject *resultobj;
5970 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5971 bool result;
5972 PyObject * obj0 = 0 ;
5973 char *kwnames[] = {
5974 (char *) "self", NULL
5975 };
5976
5977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = (bool)wxRegionIterator___nonzero__(arg1);
5983
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 {
5988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5989 }
5990 return resultobj;
5991 fail:
5992 return NULL;
5993 }
5994
5995
5996 static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5997 PyObject *obj;
5998 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5999 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
6000 Py_INCREF(obj);
6001 return Py_BuildValue((char *)"");
6002 }
6003 static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj;
6005 wxNativeFontInfo *result;
6006 char *kwnames[] = {
6007 NULL
6008 };
6009
6010 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 result = (wxNativeFontInfo *)new wxNativeFontInfo();
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
6019 return resultobj;
6020 fail:
6021 return NULL;
6022 }
6023
6024
6025 static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj;
6027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6028 PyObject * obj0 = 0 ;
6029 char *kwnames[] = {
6030 (char *) "self", NULL
6031 };
6032
6033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
6034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6036 {
6037 PyThreadState* __tstate = wxPyBeginAllowThreads();
6038 delete arg1;
6039
6040 wxPyEndAllowThreads(__tstate);
6041 if (PyErr_Occurred()) SWIG_fail;
6042 }
6043 Py_INCREF(Py_None); resultobj = Py_None;
6044 return resultobj;
6045 fail:
6046 return NULL;
6047 }
6048
6049
6050 static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6051 PyObject *resultobj;
6052 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6053 PyObject * obj0 = 0 ;
6054 char *kwnames[] = {
6055 (char *) "self", NULL
6056 };
6057
6058 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6059 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6060 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6061 {
6062 PyThreadState* __tstate = wxPyBeginAllowThreads();
6063 (arg1)->Init();
6064
6065 wxPyEndAllowThreads(__tstate);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 Py_INCREF(Py_None); resultobj = Py_None;
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6076 PyObject *resultobj;
6077 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6078 wxFont *arg2 = 0 ;
6079 PyObject * obj0 = 0 ;
6080 PyObject * obj1 = 0 ;
6081 char *kwnames[] = {
6082 (char *) "self",(char *) "font", NULL
6083 };
6084
6085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6088 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6089 SWIG_POINTER_EXCEPTION | 0)) == -1)
6090 SWIG_fail;
6091 if (arg2 == NULL) {
6092 PyErr_SetString(PyExc_TypeError,"null reference");
6093 SWIG_fail;
6094 }
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 (arg1)->InitFromFont((wxFont const &)*arg2);
6098
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 Py_INCREF(Py_None); resultobj = Py_None;
6103 return resultobj;
6104 fail:
6105 return NULL;
6106 }
6107
6108
6109 static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6110 PyObject *resultobj;
6111 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6112 int result;
6113 PyObject * obj0 = 0 ;
6114 char *kwnames[] = {
6115 (char *) "self", NULL
6116 };
6117
6118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6121 {
6122 PyThreadState* __tstate = wxPyBeginAllowThreads();
6123 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6124
6125 wxPyEndAllowThreads(__tstate);
6126 if (PyErr_Occurred()) SWIG_fail;
6127 }
6128 resultobj = SWIG_FromInt((int)result);
6129 return resultobj;
6130 fail:
6131 return NULL;
6132 }
6133
6134
6135 static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6136 PyObject *resultobj;
6137 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6138 int result;
6139 PyObject * obj0 = 0 ;
6140 char *kwnames[] = {
6141 (char *) "self", NULL
6142 };
6143
6144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6147 {
6148 PyThreadState* __tstate = wxPyBeginAllowThreads();
6149 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6150
6151 wxPyEndAllowThreads(__tstate);
6152 if (PyErr_Occurred()) SWIG_fail;
6153 }
6154 resultobj = SWIG_FromInt((int)result);
6155 return resultobj;
6156 fail:
6157 return NULL;
6158 }
6159
6160
6161 static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6162 PyObject *resultobj;
6163 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6164 int result;
6165 PyObject * obj0 = 0 ;
6166 char *kwnames[] = {
6167 (char *) "self", NULL
6168 };
6169
6170 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6171 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6172 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6173 {
6174 PyThreadState* __tstate = wxPyBeginAllowThreads();
6175 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6176
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_FromInt((int)result);
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj;
6189 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6190 bool result;
6191 PyObject * obj0 = 0 ;
6192 char *kwnames[] = {
6193 (char *) "self", NULL
6194 };
6195
6196 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6197 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6198 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6199 {
6200 PyThreadState* __tstate = wxPyBeginAllowThreads();
6201 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6202
6203 wxPyEndAllowThreads(__tstate);
6204 if (PyErr_Occurred()) SWIG_fail;
6205 }
6206 {
6207 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6208 }
6209 return resultobj;
6210 fail:
6211 return NULL;
6212 }
6213
6214
6215 static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6216 PyObject *resultobj;
6217 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6218 wxString result;
6219 PyObject * obj0 = 0 ;
6220 char *kwnames[] = {
6221 (char *) "self", NULL
6222 };
6223
6224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6227 {
6228 PyThreadState* __tstate = wxPyBeginAllowThreads();
6229 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6230
6231 wxPyEndAllowThreads(__tstate);
6232 if (PyErr_Occurred()) SWIG_fail;
6233 }
6234 {
6235 #if wxUSE_UNICODE
6236 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6237 #else
6238 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6239 #endif
6240 }
6241 return resultobj;
6242 fail:
6243 return NULL;
6244 }
6245
6246
6247 static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6248 PyObject *resultobj;
6249 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6250 int result;
6251 PyObject * obj0 = 0 ;
6252 char *kwnames[] = {
6253 (char *) "self", NULL
6254 };
6255
6256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6259 {
6260 PyThreadState* __tstate = wxPyBeginAllowThreads();
6261 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6262
6263 wxPyEndAllowThreads(__tstate);
6264 if (PyErr_Occurred()) SWIG_fail;
6265 }
6266 resultobj = SWIG_FromInt((int)result);
6267 return resultobj;
6268 fail:
6269 return NULL;
6270 }
6271
6272
6273 static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6274 PyObject *resultobj;
6275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6276 int result;
6277 PyObject * obj0 = 0 ;
6278 char *kwnames[] = {
6279 (char *) "self", NULL
6280 };
6281
6282 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6283 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6284 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6285 {
6286 PyThreadState* __tstate = wxPyBeginAllowThreads();
6287 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6288
6289 wxPyEndAllowThreads(__tstate);
6290 if (PyErr_Occurred()) SWIG_fail;
6291 }
6292 resultobj = SWIG_FromInt((int)result);
6293 return resultobj;
6294 fail:
6295 return NULL;
6296 }
6297
6298
6299 static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6300 PyObject *resultobj;
6301 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6302 int arg2 ;
6303 PyObject * obj0 = 0 ;
6304 PyObject * obj1 = 0 ;
6305 char *kwnames[] = {
6306 (char *) "self",(char *) "pointsize", NULL
6307 };
6308
6309 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6310 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6312 arg2 = (int) SWIG_AsInt(obj1);
6313 if (PyErr_Occurred()) SWIG_fail;
6314 {
6315 PyThreadState* __tstate = wxPyBeginAllowThreads();
6316 (arg1)->SetPointSize(arg2);
6317
6318 wxPyEndAllowThreads(__tstate);
6319 if (PyErr_Occurred()) SWIG_fail;
6320 }
6321 Py_INCREF(Py_None); resultobj = Py_None;
6322 return resultobj;
6323 fail:
6324 return NULL;
6325 }
6326
6327
6328 static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6329 PyObject *resultobj;
6330 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6331 int arg2 ;
6332 PyObject * obj0 = 0 ;
6333 PyObject * obj1 = 0 ;
6334 char *kwnames[] = {
6335 (char *) "self",(char *) "style", NULL
6336 };
6337
6338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6341 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6342 if (PyErr_Occurred()) SWIG_fail;
6343 {
6344 PyThreadState* __tstate = wxPyBeginAllowThreads();
6345 (arg1)->SetStyle((wxFontStyle )arg2);
6346
6347 wxPyEndAllowThreads(__tstate);
6348 if (PyErr_Occurred()) SWIG_fail;
6349 }
6350 Py_INCREF(Py_None); resultobj = Py_None;
6351 return resultobj;
6352 fail:
6353 return NULL;
6354 }
6355
6356
6357 static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6358 PyObject *resultobj;
6359 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6360 int arg2 ;
6361 PyObject * obj0 = 0 ;
6362 PyObject * obj1 = 0 ;
6363 char *kwnames[] = {
6364 (char *) "self",(char *) "weight", NULL
6365 };
6366
6367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6368 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6369 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6370 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6371 if (PyErr_Occurred()) SWIG_fail;
6372 {
6373 PyThreadState* __tstate = wxPyBeginAllowThreads();
6374 (arg1)->SetWeight((wxFontWeight )arg2);
6375
6376 wxPyEndAllowThreads(__tstate);
6377 if (PyErr_Occurred()) SWIG_fail;
6378 }
6379 Py_INCREF(Py_None); resultobj = Py_None;
6380 return resultobj;
6381 fail:
6382 return NULL;
6383 }
6384
6385
6386 static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6387 PyObject *resultobj;
6388 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6389 bool arg2 ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char *kwnames[] = {
6393 (char *) "self",(char *) "underlined", NULL
6394 };
6395
6396 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6397 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6398 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6399 arg2 = (bool) SWIG_AsBool(obj1);
6400 if (PyErr_Occurred()) SWIG_fail;
6401 {
6402 PyThreadState* __tstate = wxPyBeginAllowThreads();
6403 (arg1)->SetUnderlined(arg2);
6404
6405 wxPyEndAllowThreads(__tstate);
6406 if (PyErr_Occurred()) SWIG_fail;
6407 }
6408 Py_INCREF(Py_None); resultobj = Py_None;
6409 return resultobj;
6410 fail:
6411 return NULL;
6412 }
6413
6414
6415 static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6416 PyObject *resultobj;
6417 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6418 wxString arg2 ;
6419 PyObject * obj0 = 0 ;
6420 PyObject * obj1 = 0 ;
6421 char *kwnames[] = {
6422 (char *) "self",(char *) "facename", NULL
6423 };
6424
6425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6428 {
6429 wxString* sptr = wxString_in_helper(obj1);
6430 if (sptr == NULL) SWIG_fail;
6431 arg2 = *sptr;
6432 delete sptr;
6433 }
6434 {
6435 PyThreadState* __tstate = wxPyBeginAllowThreads();
6436 (arg1)->SetFaceName(arg2);
6437
6438 wxPyEndAllowThreads(__tstate);
6439 if (PyErr_Occurred()) SWIG_fail;
6440 }
6441 Py_INCREF(Py_None); resultobj = Py_None;
6442 return resultobj;
6443 fail:
6444 return NULL;
6445 }
6446
6447
6448 static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6449 PyObject *resultobj;
6450 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6451 int arg2 ;
6452 PyObject * obj0 = 0 ;
6453 PyObject * obj1 = 0 ;
6454 char *kwnames[] = {
6455 (char *) "self",(char *) "family", NULL
6456 };
6457
6458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6461 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6462 if (PyErr_Occurred()) SWIG_fail;
6463 {
6464 PyThreadState* __tstate = wxPyBeginAllowThreads();
6465 (arg1)->SetFamily((wxFontFamily )arg2);
6466
6467 wxPyEndAllowThreads(__tstate);
6468 if (PyErr_Occurred()) SWIG_fail;
6469 }
6470 Py_INCREF(Py_None); resultobj = Py_None;
6471 return resultobj;
6472 fail:
6473 return NULL;
6474 }
6475
6476
6477 static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6478 PyObject *resultobj;
6479 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6480 int arg2 ;
6481 PyObject * obj0 = 0 ;
6482 PyObject * obj1 = 0 ;
6483 char *kwnames[] = {
6484 (char *) "self",(char *) "encoding", NULL
6485 };
6486
6487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6490 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6491 if (PyErr_Occurred()) SWIG_fail;
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 (arg1)->SetEncoding((wxFontEncoding )arg2);
6495
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 Py_INCREF(Py_None); resultobj = Py_None;
6500 return resultobj;
6501 fail:
6502 return NULL;
6503 }
6504
6505
6506 static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6507 PyObject *resultobj;
6508 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6509 wxString *arg2 = 0 ;
6510 bool result;
6511 bool temp2 = False ;
6512 PyObject * obj0 = 0 ;
6513 PyObject * obj1 = 0 ;
6514 char *kwnames[] = {
6515 (char *) "self",(char *) "s", NULL
6516 };
6517
6518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6521 {
6522 arg2 = wxString_in_helper(obj1);
6523 if (arg2 == NULL) SWIG_fail;
6524 temp2 = True;
6525 }
6526 {
6527 PyThreadState* __tstate = wxPyBeginAllowThreads();
6528 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6529
6530 wxPyEndAllowThreads(__tstate);
6531 if (PyErr_Occurred()) SWIG_fail;
6532 }
6533 {
6534 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6535 }
6536 {
6537 if (temp2)
6538 delete arg2;
6539 }
6540 return resultobj;
6541 fail:
6542 {
6543 if (temp2)
6544 delete arg2;
6545 }
6546 return NULL;
6547 }
6548
6549
6550 static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6551 PyObject *resultobj;
6552 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6553 wxString result;
6554 PyObject * obj0 = 0 ;
6555 char *kwnames[] = {
6556 (char *) "self", NULL
6557 };
6558
6559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6562 {
6563 PyThreadState* __tstate = wxPyBeginAllowThreads();
6564 result = ((wxNativeFontInfo const *)arg1)->ToString();
6565
6566 wxPyEndAllowThreads(__tstate);
6567 if (PyErr_Occurred()) SWIG_fail;
6568 }
6569 {
6570 #if wxUSE_UNICODE
6571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6572 #else
6573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6574 #endif
6575 }
6576 return resultobj;
6577 fail:
6578 return NULL;
6579 }
6580
6581
6582 static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6583 PyObject *resultobj;
6584 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6585 wxString result;
6586 PyObject * obj0 = 0 ;
6587 char *kwnames[] = {
6588 (char *) "self", NULL
6589 };
6590
6591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6594 {
6595 PyThreadState* __tstate = wxPyBeginAllowThreads();
6596 result = wxNativeFontInfo___str__(arg1);
6597
6598 wxPyEndAllowThreads(__tstate);
6599 if (PyErr_Occurred()) SWIG_fail;
6600 }
6601 {
6602 #if wxUSE_UNICODE
6603 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6604 #else
6605 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6606 #endif
6607 }
6608 return resultobj;
6609 fail:
6610 return NULL;
6611 }
6612
6613
6614 static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6615 PyObject *resultobj;
6616 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6617 wxString *arg2 = 0 ;
6618 bool result;
6619 bool temp2 = False ;
6620 PyObject * obj0 = 0 ;
6621 PyObject * obj1 = 0 ;
6622 char *kwnames[] = {
6623 (char *) "self",(char *) "s", NULL
6624 };
6625
6626 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6627 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6628 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6629 {
6630 arg2 = wxString_in_helper(obj1);
6631 if (arg2 == NULL) SWIG_fail;
6632 temp2 = True;
6633 }
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6637
6638 wxPyEndAllowThreads(__tstate);
6639 if (PyErr_Occurred()) SWIG_fail;
6640 }
6641 {
6642 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6643 }
6644 {
6645 if (temp2)
6646 delete arg2;
6647 }
6648 return resultobj;
6649 fail:
6650 {
6651 if (temp2)
6652 delete arg2;
6653 }
6654 return NULL;
6655 }
6656
6657
6658 static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6659 PyObject *resultobj;
6660 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6661 wxString result;
6662 PyObject * obj0 = 0 ;
6663 char *kwnames[] = {
6664 (char *) "self", NULL
6665 };
6666
6667 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6668 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6669 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6670 {
6671 PyThreadState* __tstate = wxPyBeginAllowThreads();
6672 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6673
6674 wxPyEndAllowThreads(__tstate);
6675 if (PyErr_Occurred()) SWIG_fail;
6676 }
6677 {
6678 #if wxUSE_UNICODE
6679 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6680 #else
6681 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6682 #endif
6683 }
6684 return resultobj;
6685 fail:
6686 return NULL;
6687 }
6688
6689
6690 static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6691 PyObject *obj;
6692 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6693 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6694 Py_INCREF(obj);
6695 return Py_BuildValue((char *)"");
6696 }
6697 static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6698 PyObject *resultobj;
6699 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6700 wxString *arg2 = (wxString *) 0 ;
6701 bool temp2 = False ;
6702 PyObject * obj0 = 0 ;
6703 PyObject * obj1 = 0 ;
6704 char *kwnames[] = {
6705 (char *) "self",(char *) "facename", NULL
6706 };
6707
6708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6711 {
6712 arg2 = wxString_in_helper(obj1);
6713 if (arg2 == NULL) SWIG_fail;
6714 temp2 = True;
6715 }
6716 if (arg1) (arg1)->facename = *arg2;
6717
6718 Py_INCREF(Py_None); resultobj = Py_None;
6719 {
6720 if (temp2)
6721 delete arg2;
6722 }
6723 return resultobj;
6724 fail:
6725 {
6726 if (temp2)
6727 delete arg2;
6728 }
6729 return NULL;
6730 }
6731
6732
6733 static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6734 PyObject *resultobj;
6735 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6736 wxString *result;
6737 PyObject * obj0 = 0 ;
6738 char *kwnames[] = {
6739 (char *) "self", NULL
6740 };
6741
6742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6745 result = (wxString *)& ((arg1)->facename);
6746
6747 {
6748 #if wxUSE_UNICODE
6749 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6750 #else
6751 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6752 #endif
6753 }
6754 return resultobj;
6755 fail:
6756 return NULL;
6757 }
6758
6759
6760 static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6761 PyObject *resultobj;
6762 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6763 int arg2 ;
6764 PyObject * obj0 = 0 ;
6765 PyObject * obj1 = 0 ;
6766 char *kwnames[] = {
6767 (char *) "self",(char *) "encoding", NULL
6768 };
6769
6770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6773 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6774 if (PyErr_Occurred()) SWIG_fail;
6775 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6776
6777 Py_INCREF(Py_None); resultobj = Py_None;
6778 return resultobj;
6779 fail:
6780 return NULL;
6781 }
6782
6783
6784 static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6785 PyObject *resultobj;
6786 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6787 int result;
6788 PyObject * obj0 = 0 ;
6789 char *kwnames[] = {
6790 (char *) "self", NULL
6791 };
6792
6793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6796 result = (int) ((arg1)->encoding);
6797
6798 resultobj = SWIG_FromInt((int)result);
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj;
6807 wxNativeEncodingInfo *result;
6808 char *kwnames[] = {
6809 NULL
6810 };
6811
6812 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6813 {
6814 PyThreadState* __tstate = wxPyBeginAllowThreads();
6815 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6816
6817 wxPyEndAllowThreads(__tstate);
6818 if (PyErr_Occurred()) SWIG_fail;
6819 }
6820 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6821 return resultobj;
6822 fail:
6823 return NULL;
6824 }
6825
6826
6827 static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6828 PyObject *resultobj;
6829 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6830 PyObject * obj0 = 0 ;
6831 char *kwnames[] = {
6832 (char *) "self", NULL
6833 };
6834
6835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6838 {
6839 PyThreadState* __tstate = wxPyBeginAllowThreads();
6840 delete arg1;
6841
6842 wxPyEndAllowThreads(__tstate);
6843 if (PyErr_Occurred()) SWIG_fail;
6844 }
6845 Py_INCREF(Py_None); resultobj = Py_None;
6846 return resultobj;
6847 fail:
6848 return NULL;
6849 }
6850
6851
6852 static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6853 PyObject *resultobj;
6854 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6855 wxString *arg2 = 0 ;
6856 bool result;
6857 bool temp2 = False ;
6858 PyObject * obj0 = 0 ;
6859 PyObject * obj1 = 0 ;
6860 char *kwnames[] = {
6861 (char *) "self",(char *) "s", NULL
6862 };
6863
6864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6867 {
6868 arg2 = wxString_in_helper(obj1);
6869 if (arg2 == NULL) SWIG_fail;
6870 temp2 = True;
6871 }
6872 {
6873 PyThreadState* __tstate = wxPyBeginAllowThreads();
6874 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6875
6876 wxPyEndAllowThreads(__tstate);
6877 if (PyErr_Occurred()) SWIG_fail;
6878 }
6879 {
6880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6881 }
6882 {
6883 if (temp2)
6884 delete arg2;
6885 }
6886 return resultobj;
6887 fail:
6888 {
6889 if (temp2)
6890 delete arg2;
6891 }
6892 return NULL;
6893 }
6894
6895
6896 static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj;
6898 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6899 wxString result;
6900 PyObject * obj0 = 0 ;
6901 char *kwnames[] = {
6902 (char *) "self", NULL
6903 };
6904
6905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6908 {
6909 PyThreadState* __tstate = wxPyBeginAllowThreads();
6910 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6911
6912 wxPyEndAllowThreads(__tstate);
6913 if (PyErr_Occurred()) SWIG_fail;
6914 }
6915 {
6916 #if wxUSE_UNICODE
6917 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6918 #else
6919 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6920 #endif
6921 }
6922 return resultobj;
6923 fail:
6924 return NULL;
6925 }
6926
6927
6928 static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6929 PyObject *obj;
6930 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6931 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6932 Py_INCREF(obj);
6933 return Py_BuildValue((char *)"");
6934 }
6935 static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6936 PyObject *resultobj;
6937 int arg1 ;
6938 wxNativeEncodingInfo *result;
6939 PyObject * obj0 = 0 ;
6940 char *kwnames[] = {
6941 (char *) "encoding", NULL
6942 };
6943
6944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6945 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6946 if (PyErr_Occurred()) SWIG_fail;
6947 {
6948 PyThreadState* __tstate = wxPyBeginAllowThreads();
6949 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6950
6951 wxPyEndAllowThreads(__tstate);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6955 return resultobj;
6956 fail:
6957 return NULL;
6958 }
6959
6960
6961 static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6962 PyObject *resultobj;
6963 wxNativeEncodingInfo *arg1 = 0 ;
6964 bool result;
6965 PyObject * obj0 = 0 ;
6966 char *kwnames[] = {
6967 (char *) "info", NULL
6968 };
6969
6970 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6971 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6972 SWIG_POINTER_EXCEPTION | 0)) == -1)
6973 SWIG_fail;
6974 if (arg1 == NULL) {
6975 PyErr_SetString(PyExc_TypeError,"null reference");
6976 SWIG_fail;
6977 }
6978 {
6979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6980 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6981
6982 wxPyEndAllowThreads(__tstate);
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 {
6986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6987 }
6988 return resultobj;
6989 fail:
6990 return NULL;
6991 }
6992
6993
6994 static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6995 PyObject *resultobj;
6996 wxFontMapper *result;
6997 char *kwnames[] = {
6998 NULL
6999 };
7000
7001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
7002 {
7003 PyThreadState* __tstate = wxPyBeginAllowThreads();
7004 result = (wxFontMapper *)new wxFontMapper();
7005
7006 wxPyEndAllowThreads(__tstate);
7007 if (PyErr_Occurred()) SWIG_fail;
7008 }
7009 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
7010 return resultobj;
7011 fail:
7012 return NULL;
7013 }
7014
7015
7016 static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
7017 PyObject *resultobj;
7018 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7019 PyObject * obj0 = 0 ;
7020 char *kwnames[] = {
7021 (char *) "self", NULL
7022 };
7023
7024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
7025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7027 {
7028 PyThreadState* __tstate = wxPyBeginAllowThreads();
7029 delete arg1;
7030
7031 wxPyEndAllowThreads(__tstate);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 Py_INCREF(Py_None); resultobj = Py_None;
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj;
7043 wxFontMapper *result;
7044 char *kwnames[] = {
7045 NULL
7046 };
7047
7048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7049 {
7050 PyThreadState* __tstate = wxPyBeginAllowThreads();
7051 result = (wxFontMapper *)wxFontMapper::Get();
7052
7053 wxPyEndAllowThreads(__tstate);
7054 if (PyErr_Occurred()) SWIG_fail;
7055 }
7056 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7057 return resultobj;
7058 fail:
7059 return NULL;
7060 }
7061
7062
7063 static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7064 PyObject *resultobj;
7065 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7066 wxFontMapper *result;
7067 PyObject * obj0 = 0 ;
7068 char *kwnames[] = {
7069 (char *) "mapper", NULL
7070 };
7071
7072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7075 {
7076 PyThreadState* __tstate = wxPyBeginAllowThreads();
7077 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7078
7079 wxPyEndAllowThreads(__tstate);
7080 if (PyErr_Occurred()) SWIG_fail;
7081 }
7082 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7083 return resultobj;
7084 fail:
7085 return NULL;
7086 }
7087
7088
7089 static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7090 PyObject *resultobj;
7091 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7092 wxString *arg2 = 0 ;
7093 bool arg3 = (bool) True ;
7094 int result;
7095 bool temp2 = False ;
7096 PyObject * obj0 = 0 ;
7097 PyObject * obj1 = 0 ;
7098 PyObject * obj2 = 0 ;
7099 char *kwnames[] = {
7100 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7101 };
7102
7103 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7104 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7105 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7106 {
7107 arg2 = wxString_in_helper(obj1);
7108 if (arg2 == NULL) SWIG_fail;
7109 temp2 = True;
7110 }
7111 if (obj2) {
7112 arg3 = (bool) SWIG_AsBool(obj2);
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 {
7116 PyThreadState* __tstate = wxPyBeginAllowThreads();
7117 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7118
7119 wxPyEndAllowThreads(__tstate);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 }
7122 resultobj = SWIG_FromInt((int)result);
7123 {
7124 if (temp2)
7125 delete arg2;
7126 }
7127 return resultobj;
7128 fail:
7129 {
7130 if (temp2)
7131 delete arg2;
7132 }
7133 return NULL;
7134 }
7135
7136
7137 static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7138 PyObject *resultobj;
7139 size_t result;
7140 char *kwnames[] = {
7141 NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7145 {
7146 PyThreadState* __tstate = wxPyBeginAllowThreads();
7147 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7148
7149 wxPyEndAllowThreads(__tstate);
7150 if (PyErr_Occurred()) SWIG_fail;
7151 }
7152 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7153 return resultobj;
7154 fail:
7155 return NULL;
7156 }
7157
7158
7159 static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7160 PyObject *resultobj;
7161 size_t arg1 ;
7162 int result;
7163 PyObject * obj0 = 0 ;
7164 char *kwnames[] = {
7165 (char *) "n", NULL
7166 };
7167
7168 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7169 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7170 if (PyErr_Occurred()) SWIG_fail;
7171 {
7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
7173 result = (int)wxFontMapper::GetEncoding(arg1);
7174
7175 wxPyEndAllowThreads(__tstate);
7176 if (PyErr_Occurred()) SWIG_fail;
7177 }
7178 resultobj = SWIG_FromInt((int)result);
7179 return resultobj;
7180 fail:
7181 return NULL;
7182 }
7183
7184
7185 static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7186 PyObject *resultobj;
7187 int arg1 ;
7188 wxString result;
7189 PyObject * obj0 = 0 ;
7190 char *kwnames[] = {
7191 (char *) "encoding", NULL
7192 };
7193
7194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7195 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7196 if (PyErr_Occurred()) SWIG_fail;
7197 {
7198 PyThreadState* __tstate = wxPyBeginAllowThreads();
7199 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7200
7201 wxPyEndAllowThreads(__tstate);
7202 if (PyErr_Occurred()) SWIG_fail;
7203 }
7204 {
7205 #if wxUSE_UNICODE
7206 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7207 #else
7208 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7209 #endif
7210 }
7211 return resultobj;
7212 fail:
7213 return NULL;
7214 }
7215
7216
7217 static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7218 PyObject *resultobj;
7219 int arg1 ;
7220 wxString result;
7221 PyObject * obj0 = 0 ;
7222 char *kwnames[] = {
7223 (char *) "encoding", NULL
7224 };
7225
7226 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7227 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7228 if (PyErr_Occurred()) SWIG_fail;
7229 {
7230 PyThreadState* __tstate = wxPyBeginAllowThreads();
7231 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7232
7233 wxPyEndAllowThreads(__tstate);
7234 if (PyErr_Occurred()) SWIG_fail;
7235 }
7236 {
7237 #if wxUSE_UNICODE
7238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7239 #else
7240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7241 #endif
7242 }
7243 return resultobj;
7244 fail:
7245 return NULL;
7246 }
7247
7248
7249 static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj;
7251 wxString *arg1 = 0 ;
7252 int result;
7253 bool temp1 = False ;
7254 PyObject * obj0 = 0 ;
7255 char *kwnames[] = {
7256 (char *) "name", NULL
7257 };
7258
7259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7260 {
7261 arg1 = wxString_in_helper(obj0);
7262 if (arg1 == NULL) SWIG_fail;
7263 temp1 = True;
7264 }
7265 {
7266 PyThreadState* __tstate = wxPyBeginAllowThreads();
7267 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7268
7269 wxPyEndAllowThreads(__tstate);
7270 if (PyErr_Occurred()) SWIG_fail;
7271 }
7272 resultobj = SWIG_FromInt((int)result);
7273 {
7274 if (temp1)
7275 delete arg1;
7276 }
7277 return resultobj;
7278 fail:
7279 {
7280 if (temp1)
7281 delete arg1;
7282 }
7283 return NULL;
7284 }
7285
7286
7287 static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7288 PyObject *resultobj;
7289 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7290 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7291 PyObject * obj0 = 0 ;
7292 PyObject * obj1 = 0 ;
7293 char *kwnames[] = {
7294 (char *) "self",(char *) "config", NULL
7295 };
7296
7297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7300 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7302 {
7303 PyThreadState* __tstate = wxPyBeginAllowThreads();
7304 (arg1)->SetConfig(arg2);
7305
7306 wxPyEndAllowThreads(__tstate);
7307 if (PyErr_Occurred()) SWIG_fail;
7308 }
7309 Py_INCREF(Py_None); resultobj = Py_None;
7310 return resultobj;
7311 fail:
7312 return NULL;
7313 }
7314
7315
7316 static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7317 PyObject *resultobj;
7318 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7319 wxString *arg2 = 0 ;
7320 bool temp2 = False ;
7321 PyObject * obj0 = 0 ;
7322 PyObject * obj1 = 0 ;
7323 char *kwnames[] = {
7324 (char *) "self",(char *) "prefix", NULL
7325 };
7326
7327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7330 {
7331 arg2 = wxString_in_helper(obj1);
7332 if (arg2 == NULL) SWIG_fail;
7333 temp2 = True;
7334 }
7335 {
7336 PyThreadState* __tstate = wxPyBeginAllowThreads();
7337 (arg1)->SetConfigPath((wxString const &)*arg2);
7338
7339 wxPyEndAllowThreads(__tstate);
7340 if (PyErr_Occurred()) SWIG_fail;
7341 }
7342 Py_INCREF(Py_None); resultobj = Py_None;
7343 {
7344 if (temp2)
7345 delete arg2;
7346 }
7347 return resultobj;
7348 fail:
7349 {
7350 if (temp2)
7351 delete arg2;
7352 }
7353 return NULL;
7354 }
7355
7356
7357 static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj;
7359 wxString result;
7360 char *kwnames[] = {
7361 NULL
7362 };
7363
7364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7365 {
7366 PyThreadState* __tstate = wxPyBeginAllowThreads();
7367 result = wxFontMapper::GetDefaultConfigPath();
7368
7369 wxPyEndAllowThreads(__tstate);
7370 if (PyErr_Occurred()) SWIG_fail;
7371 }
7372 {
7373 #if wxUSE_UNICODE
7374 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7375 #else
7376 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7377 #endif
7378 }
7379 return resultobj;
7380 fail:
7381 return NULL;
7382 }
7383
7384
7385 static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7386 PyObject *resultobj;
7387 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7388 int arg2 ;
7389 wxString const &arg3_defvalue = wxPyEmptyString ;
7390 wxString *arg3 = (wxString *) &arg3_defvalue ;
7391 bool arg4 = (bool) True ;
7392 PyObject *result;
7393 bool temp3 = False ;
7394 PyObject * obj0 = 0 ;
7395 PyObject * obj1 = 0 ;
7396 PyObject * obj2 = 0 ;
7397 PyObject * obj3 = 0 ;
7398 char *kwnames[] = {
7399 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7400 };
7401
7402 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7403 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7404 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7405 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7406 if (PyErr_Occurred()) SWIG_fail;
7407 if (obj2) {
7408 {
7409 arg3 = wxString_in_helper(obj2);
7410 if (arg3 == NULL) SWIG_fail;
7411 temp3 = True;
7412 }
7413 }
7414 if (obj3) {
7415 arg4 = (bool) SWIG_AsBool(obj3);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 }
7418 {
7419 PyThreadState* __tstate = wxPyBeginAllowThreads();
7420 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7421
7422 wxPyEndAllowThreads(__tstate);
7423 if (PyErr_Occurred()) SWIG_fail;
7424 }
7425 resultobj = result;
7426 {
7427 if (temp3)
7428 delete arg3;
7429 }
7430 return resultobj;
7431 fail:
7432 {
7433 if (temp3)
7434 delete arg3;
7435 }
7436 return NULL;
7437 }
7438
7439
7440 static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj;
7442 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7443 int arg2 ;
7444 wxString const &arg3_defvalue = wxPyEmptyString ;
7445 wxString *arg3 = (wxString *) &arg3_defvalue ;
7446 bool result;
7447 bool temp3 = False ;
7448 PyObject * obj0 = 0 ;
7449 PyObject * obj1 = 0 ;
7450 PyObject * obj2 = 0 ;
7451 char *kwnames[] = {
7452 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7453 };
7454
7455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7458 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7459 if (PyErr_Occurred()) SWIG_fail;
7460 if (obj2) {
7461 {
7462 arg3 = wxString_in_helper(obj2);
7463 if (arg3 == NULL) SWIG_fail;
7464 temp3 = True;
7465 }
7466 }
7467 {
7468 PyThreadState* __tstate = wxPyBeginAllowThreads();
7469 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7470
7471 wxPyEndAllowThreads(__tstate);
7472 if (PyErr_Occurred()) SWIG_fail;
7473 }
7474 {
7475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7476 }
7477 {
7478 if (temp3)
7479 delete arg3;
7480 }
7481 return resultobj;
7482 fail:
7483 {
7484 if (temp3)
7485 delete arg3;
7486 }
7487 return NULL;
7488 }
7489
7490
7491 static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7492 PyObject *resultobj;
7493 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7494 wxWindow *arg2 = (wxWindow *) 0 ;
7495 PyObject * obj0 = 0 ;
7496 PyObject * obj1 = 0 ;
7497 char *kwnames[] = {
7498 (char *) "self",(char *) "parent", NULL
7499 };
7500
7501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7504 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7505 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7506 {
7507 PyThreadState* __tstate = wxPyBeginAllowThreads();
7508 (arg1)->SetDialogParent(arg2);
7509
7510 wxPyEndAllowThreads(__tstate);
7511 if (PyErr_Occurred()) SWIG_fail;
7512 }
7513 Py_INCREF(Py_None); resultobj = Py_None;
7514 return resultobj;
7515 fail:
7516 return NULL;
7517 }
7518
7519
7520 static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7521 PyObject *resultobj;
7522 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7523 wxString *arg2 = 0 ;
7524 bool temp2 = False ;
7525 PyObject * obj0 = 0 ;
7526 PyObject * obj1 = 0 ;
7527 char *kwnames[] = {
7528 (char *) "self",(char *) "title", NULL
7529 };
7530
7531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7534 {
7535 arg2 = wxString_in_helper(obj1);
7536 if (arg2 == NULL) SWIG_fail;
7537 temp2 = True;
7538 }
7539 {
7540 PyThreadState* __tstate = wxPyBeginAllowThreads();
7541 (arg1)->SetDialogTitle((wxString const &)*arg2);
7542
7543 wxPyEndAllowThreads(__tstate);
7544 if (PyErr_Occurred()) SWIG_fail;
7545 }
7546 Py_INCREF(Py_None); resultobj = Py_None;
7547 {
7548 if (temp2)
7549 delete arg2;
7550 }
7551 return resultobj;
7552 fail:
7553 {
7554 if (temp2)
7555 delete arg2;
7556 }
7557 return NULL;
7558 }
7559
7560
7561 static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7562 PyObject *obj;
7563 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7564 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7565 Py_INCREF(obj);
7566 return Py_BuildValue((char *)"");
7567 }
7568 static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj;
7570 int arg1 ;
7571 int arg2 ;
7572 int arg3 ;
7573 int arg4 ;
7574 bool arg5 = (bool) False ;
7575 wxString const &arg6_defvalue = wxPyEmptyString ;
7576 wxString *arg6 = (wxString *) &arg6_defvalue ;
7577 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7578 wxFont *result;
7579 bool temp6 = False ;
7580 PyObject * obj0 = 0 ;
7581 PyObject * obj1 = 0 ;
7582 PyObject * obj2 = 0 ;
7583 PyObject * obj3 = 0 ;
7584 PyObject * obj4 = 0 ;
7585 PyObject * obj5 = 0 ;
7586 PyObject * obj6 = 0 ;
7587 char *kwnames[] = {
7588 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7589 };
7590
7591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7592 arg1 = (int) SWIG_AsInt(obj0);
7593 if (PyErr_Occurred()) SWIG_fail;
7594 arg2 = (int) SWIG_AsInt(obj1);
7595 if (PyErr_Occurred()) SWIG_fail;
7596 arg3 = (int) SWIG_AsInt(obj2);
7597 if (PyErr_Occurred()) SWIG_fail;
7598 arg4 = (int) SWIG_AsInt(obj3);
7599 if (PyErr_Occurred()) SWIG_fail;
7600 if (obj4) {
7601 arg5 = (bool) SWIG_AsBool(obj4);
7602 if (PyErr_Occurred()) SWIG_fail;
7603 }
7604 if (obj5) {
7605 {
7606 arg6 = wxString_in_helper(obj5);
7607 if (arg6 == NULL) SWIG_fail;
7608 temp6 = True;
7609 }
7610 }
7611 if (obj6) {
7612 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 {
7616 if (!wxPyCheckForApp()) SWIG_fail;
7617 PyThreadState* __tstate = wxPyBeginAllowThreads();
7618 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7619
7620 wxPyEndAllowThreads(__tstate);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7624 {
7625 if (temp6)
7626 delete arg6;
7627 }
7628 return resultobj;
7629 fail:
7630 {
7631 if (temp6)
7632 delete arg6;
7633 }
7634 return NULL;
7635 }
7636
7637
7638 static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7639 PyObject *resultobj;
7640 wxFont *arg1 = (wxFont *) 0 ;
7641 PyObject * obj0 = 0 ;
7642 char *kwnames[] = {
7643 (char *) "self", NULL
7644 };
7645
7646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7647 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7648 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7649 {
7650 PyThreadState* __tstate = wxPyBeginAllowThreads();
7651 delete arg1;
7652
7653 wxPyEndAllowThreads(__tstate);
7654 if (PyErr_Occurred()) SWIG_fail;
7655 }
7656 Py_INCREF(Py_None); resultobj = Py_None;
7657 return resultobj;
7658 fail:
7659 return NULL;
7660 }
7661
7662
7663 static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7664 PyObject *resultobj;
7665 wxNativeFontInfo *arg1 = 0 ;
7666 wxFont *result;
7667 PyObject * obj0 = 0 ;
7668 char *kwnames[] = {
7669 (char *) "info", NULL
7670 };
7671
7672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7674 SWIG_POINTER_EXCEPTION | 0)) == -1)
7675 SWIG_fail;
7676 if (arg1 == NULL) {
7677 PyErr_SetString(PyExc_TypeError,"null reference");
7678 SWIG_fail;
7679 }
7680 {
7681 if (!wxPyCheckForApp()) SWIG_fail;
7682 PyThreadState* __tstate = wxPyBeginAllowThreads();
7683 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7684
7685 wxPyEndAllowThreads(__tstate);
7686 if (PyErr_Occurred()) SWIG_fail;
7687 }
7688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7689 return resultobj;
7690 fail:
7691 return NULL;
7692 }
7693
7694
7695 static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7696 PyObject *resultobj;
7697 wxString *arg1 = 0 ;
7698 wxFont *result;
7699 bool temp1 = False ;
7700 PyObject * obj0 = 0 ;
7701 char *kwnames[] = {
7702 (char *) "info", NULL
7703 };
7704
7705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7706 {
7707 arg1 = wxString_in_helper(obj0);
7708 if (arg1 == NULL) SWIG_fail;
7709 temp1 = True;
7710 }
7711 {
7712 if (!wxPyCheckForApp()) SWIG_fail;
7713 PyThreadState* __tstate = wxPyBeginAllowThreads();
7714 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7715
7716 wxPyEndAllowThreads(__tstate);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7720 {
7721 if (temp1)
7722 delete arg1;
7723 }
7724 return resultobj;
7725 fail:
7726 {
7727 if (temp1)
7728 delete arg1;
7729 }
7730 return NULL;
7731 }
7732
7733
7734 static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7735 PyObject *resultobj;
7736 int arg1 ;
7737 int arg2 ;
7738 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7739 wxString const &arg4_defvalue = wxPyEmptyString ;
7740 wxString *arg4 = (wxString *) &arg4_defvalue ;
7741 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7742 wxFont *result;
7743 bool temp4 = False ;
7744 PyObject * obj0 = 0 ;
7745 PyObject * obj1 = 0 ;
7746 PyObject * obj2 = 0 ;
7747 PyObject * obj3 = 0 ;
7748 PyObject * obj4 = 0 ;
7749 char *kwnames[] = {
7750 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7751 };
7752
7753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7754 arg1 = (int) SWIG_AsInt(obj0);
7755 if (PyErr_Occurred()) SWIG_fail;
7756 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7757 if (PyErr_Occurred()) SWIG_fail;
7758 if (obj2) {
7759 arg3 = (int) SWIG_AsInt(obj2);
7760 if (PyErr_Occurred()) SWIG_fail;
7761 }
7762 if (obj3) {
7763 {
7764 arg4 = wxString_in_helper(obj3);
7765 if (arg4 == NULL) SWIG_fail;
7766 temp4 = True;
7767 }
7768 }
7769 if (obj4) {
7770 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7771 if (PyErr_Occurred()) SWIG_fail;
7772 }
7773 {
7774 if (!wxPyCheckForApp()) SWIG_fail;
7775 PyThreadState* __tstate = wxPyBeginAllowThreads();
7776 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7777
7778 wxPyEndAllowThreads(__tstate);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7782 {
7783 if (temp4)
7784 delete arg4;
7785 }
7786 return resultobj;
7787 fail:
7788 {
7789 if (temp4)
7790 delete arg4;
7791 }
7792 return NULL;
7793 }
7794
7795
7796 static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7797 PyObject *resultobj;
7798 wxFont *arg1 = (wxFont *) 0 ;
7799 bool result;
7800 PyObject * obj0 = 0 ;
7801 char *kwnames[] = {
7802 (char *) "self", NULL
7803 };
7804
7805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7808 {
7809 PyThreadState* __tstate = wxPyBeginAllowThreads();
7810 result = (bool)((wxFont const *)arg1)->Ok();
7811
7812 wxPyEndAllowThreads(__tstate);
7813 if (PyErr_Occurred()) SWIG_fail;
7814 }
7815 {
7816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7817 }
7818 return resultobj;
7819 fail:
7820 return NULL;
7821 }
7822
7823
7824 static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7825 PyObject *resultobj;
7826 wxFont *arg1 = (wxFont *) 0 ;
7827 wxFont *arg2 = (wxFont *) 0 ;
7828 bool result;
7829 PyObject * obj0 = 0 ;
7830 PyObject * obj1 = 0 ;
7831 char *kwnames[] = {
7832 (char *) "self",(char *) "other", NULL
7833 };
7834
7835 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7836 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7837 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7838 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7840 {
7841 PyThreadState* __tstate = wxPyBeginAllowThreads();
7842 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7843
7844 wxPyEndAllowThreads(__tstate);
7845 if (PyErr_Occurred()) SWIG_fail;
7846 }
7847 {
7848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7849 }
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7857 PyObject *resultobj;
7858 wxFont *arg1 = (wxFont *) 0 ;
7859 wxFont *arg2 = (wxFont *) 0 ;
7860 bool result;
7861 PyObject * obj0 = 0 ;
7862 PyObject * obj1 = 0 ;
7863 char *kwnames[] = {
7864 (char *) "self",(char *) "other", NULL
7865 };
7866
7867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7870 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7871 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7872 {
7873 PyThreadState* __tstate = wxPyBeginAllowThreads();
7874 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7875
7876 wxPyEndAllowThreads(__tstate);
7877 if (PyErr_Occurred()) SWIG_fail;
7878 }
7879 {
7880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7881 }
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj;
7890 wxFont *arg1 = (wxFont *) 0 ;
7891 int result;
7892 PyObject * obj0 = 0 ;
7893 char *kwnames[] = {
7894 (char *) "self", NULL
7895 };
7896
7897 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7898 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7899 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7900 {
7901 PyThreadState* __tstate = wxPyBeginAllowThreads();
7902 result = (int)((wxFont const *)arg1)->GetPointSize();
7903
7904 wxPyEndAllowThreads(__tstate);
7905 if (PyErr_Occurred()) SWIG_fail;
7906 }
7907 resultobj = SWIG_FromInt((int)result);
7908 return resultobj;
7909 fail:
7910 return NULL;
7911 }
7912
7913
7914 static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7915 PyObject *resultobj;
7916 wxFont *arg1 = (wxFont *) 0 ;
7917 int result;
7918 PyObject * obj0 = 0 ;
7919 char *kwnames[] = {
7920 (char *) "self", NULL
7921 };
7922
7923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7926 {
7927 PyThreadState* __tstate = wxPyBeginAllowThreads();
7928 result = (int)((wxFont const *)arg1)->GetFamily();
7929
7930 wxPyEndAllowThreads(__tstate);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 resultobj = SWIG_FromInt((int)result);
7934 return resultobj;
7935 fail:
7936 return NULL;
7937 }
7938
7939
7940 static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7941 PyObject *resultobj;
7942 wxFont *arg1 = (wxFont *) 0 ;
7943 int result;
7944 PyObject * obj0 = 0 ;
7945 char *kwnames[] = {
7946 (char *) "self", NULL
7947 };
7948
7949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7950 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7951 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7952 {
7953 PyThreadState* __tstate = wxPyBeginAllowThreads();
7954 result = (int)((wxFont const *)arg1)->GetStyle();
7955
7956 wxPyEndAllowThreads(__tstate);
7957 if (PyErr_Occurred()) SWIG_fail;
7958 }
7959 resultobj = SWIG_FromInt((int)result);
7960 return resultobj;
7961 fail:
7962 return NULL;
7963 }
7964
7965
7966 static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7967 PyObject *resultobj;
7968 wxFont *arg1 = (wxFont *) 0 ;
7969 int result;
7970 PyObject * obj0 = 0 ;
7971 char *kwnames[] = {
7972 (char *) "self", NULL
7973 };
7974
7975 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7976 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7978 {
7979 PyThreadState* __tstate = wxPyBeginAllowThreads();
7980 result = (int)((wxFont const *)arg1)->GetWeight();
7981
7982 wxPyEndAllowThreads(__tstate);
7983 if (PyErr_Occurred()) SWIG_fail;
7984 }
7985 resultobj = SWIG_FromInt((int)result);
7986 return resultobj;
7987 fail:
7988 return NULL;
7989 }
7990
7991
7992 static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7993 PyObject *resultobj;
7994 wxFont *arg1 = (wxFont *) 0 ;
7995 bool result;
7996 PyObject * obj0 = 0 ;
7997 char *kwnames[] = {
7998 (char *) "self", NULL
7999 };
8000
8001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
8002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8004 {
8005 PyThreadState* __tstate = wxPyBeginAllowThreads();
8006 result = (bool)((wxFont const *)arg1)->GetUnderlined();
8007
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 {
8012 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8013 }
8014 return resultobj;
8015 fail:
8016 return NULL;
8017 }
8018
8019
8020 static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8021 PyObject *resultobj;
8022 wxFont *arg1 = (wxFont *) 0 ;
8023 wxString result;
8024 PyObject * obj0 = 0 ;
8025 char *kwnames[] = {
8026 (char *) "self", NULL
8027 };
8028
8029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
8030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8032 {
8033 PyThreadState* __tstate = wxPyBeginAllowThreads();
8034 result = ((wxFont const *)arg1)->GetFaceName();
8035
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 {
8040 #if wxUSE_UNICODE
8041 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8042 #else
8043 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8044 #endif
8045 }
8046 return resultobj;
8047 fail:
8048 return NULL;
8049 }
8050
8051
8052 static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8053 PyObject *resultobj;
8054 wxFont *arg1 = (wxFont *) 0 ;
8055 int result;
8056 PyObject * obj0 = 0 ;
8057 char *kwnames[] = {
8058 (char *) "self", NULL
8059 };
8060
8061 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8062 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8063 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = (int)((wxFont const *)arg1)->GetEncoding();
8067
8068 wxPyEndAllowThreads(__tstate);
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_FromInt((int)result);
8072 return resultobj;
8073 fail:
8074 return NULL;
8075 }
8076
8077
8078 static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8079 PyObject *resultobj;
8080 wxFont *arg1 = (wxFont *) 0 ;
8081 wxNativeFontInfo *result;
8082 PyObject * obj0 = 0 ;
8083 char *kwnames[] = {
8084 (char *) "self", NULL
8085 };
8086
8087 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8088 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8089 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8090 {
8091 PyThreadState* __tstate = wxPyBeginAllowThreads();
8092 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8093
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8098 return resultobj;
8099 fail:
8100 return NULL;
8101 }
8102
8103
8104 static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8105 PyObject *resultobj;
8106 wxFont *arg1 = (wxFont *) 0 ;
8107 bool result;
8108 PyObject * obj0 = 0 ;
8109 char *kwnames[] = {
8110 (char *) "self", NULL
8111 };
8112
8113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8116 {
8117 PyThreadState* __tstate = wxPyBeginAllowThreads();
8118 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8119
8120 wxPyEndAllowThreads(__tstate);
8121 if (PyErr_Occurred()) SWIG_fail;
8122 }
8123 {
8124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8125 }
8126 return resultobj;
8127 fail:
8128 return NULL;
8129 }
8130
8131
8132 static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj;
8134 wxFont *arg1 = (wxFont *) 0 ;
8135 wxString result;
8136 PyObject * obj0 = 0 ;
8137 char *kwnames[] = {
8138 (char *) "self", NULL
8139 };
8140
8141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8144 {
8145 PyThreadState* __tstate = wxPyBeginAllowThreads();
8146 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8147
8148 wxPyEndAllowThreads(__tstate);
8149 if (PyErr_Occurred()) SWIG_fail;
8150 }
8151 {
8152 #if wxUSE_UNICODE
8153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8154 #else
8155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8156 #endif
8157 }
8158 return resultobj;
8159 fail:
8160 return NULL;
8161 }
8162
8163
8164 static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8165 PyObject *resultobj;
8166 wxFont *arg1 = (wxFont *) 0 ;
8167 wxString result;
8168 PyObject * obj0 = 0 ;
8169 char *kwnames[] = {
8170 (char *) "self", NULL
8171 };
8172
8173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8176 {
8177 PyThreadState* __tstate = wxPyBeginAllowThreads();
8178 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8179
8180 wxPyEndAllowThreads(__tstate);
8181 if (PyErr_Occurred()) SWIG_fail;
8182 }
8183 {
8184 #if wxUSE_UNICODE
8185 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8186 #else
8187 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8188 #endif
8189 }
8190 return resultobj;
8191 fail:
8192 return NULL;
8193 }
8194
8195
8196 static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8197 PyObject *resultobj;
8198 wxFont *arg1 = (wxFont *) 0 ;
8199 int arg2 ;
8200 PyObject * obj0 = 0 ;
8201 PyObject * obj1 = 0 ;
8202 char *kwnames[] = {
8203 (char *) "self",(char *) "pointSize", NULL
8204 };
8205
8206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8209 arg2 = (int) SWIG_AsInt(obj1);
8210 if (PyErr_Occurred()) SWIG_fail;
8211 {
8212 PyThreadState* __tstate = wxPyBeginAllowThreads();
8213 (arg1)->SetPointSize(arg2);
8214
8215 wxPyEndAllowThreads(__tstate);
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 Py_INCREF(Py_None); resultobj = Py_None;
8219 return resultobj;
8220 fail:
8221 return NULL;
8222 }
8223
8224
8225 static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8226 PyObject *resultobj;
8227 wxFont *arg1 = (wxFont *) 0 ;
8228 int arg2 ;
8229 PyObject * obj0 = 0 ;
8230 PyObject * obj1 = 0 ;
8231 char *kwnames[] = {
8232 (char *) "self",(char *) "family", NULL
8233 };
8234
8235 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8236 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8237 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8238 arg2 = (int) SWIG_AsInt(obj1);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 {
8241 PyThreadState* __tstate = wxPyBeginAllowThreads();
8242 (arg1)->SetFamily(arg2);
8243
8244 wxPyEndAllowThreads(__tstate);
8245 if (PyErr_Occurred()) SWIG_fail;
8246 }
8247 Py_INCREF(Py_None); resultobj = Py_None;
8248 return resultobj;
8249 fail:
8250 return NULL;
8251 }
8252
8253
8254 static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8255 PyObject *resultobj;
8256 wxFont *arg1 = (wxFont *) 0 ;
8257 int arg2 ;
8258 PyObject * obj0 = 0 ;
8259 PyObject * obj1 = 0 ;
8260 char *kwnames[] = {
8261 (char *) "self",(char *) "style", NULL
8262 };
8263
8264 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8265 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8266 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8267 arg2 = (int) SWIG_AsInt(obj1);
8268 if (PyErr_Occurred()) SWIG_fail;
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 (arg1)->SetStyle(arg2);
8272
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) SWIG_fail;
8275 }
8276 Py_INCREF(Py_None); resultobj = Py_None;
8277 return resultobj;
8278 fail:
8279 return NULL;
8280 }
8281
8282
8283 static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8284 PyObject *resultobj;
8285 wxFont *arg1 = (wxFont *) 0 ;
8286 int arg2 ;
8287 PyObject * obj0 = 0 ;
8288 PyObject * obj1 = 0 ;
8289 char *kwnames[] = {
8290 (char *) "self",(char *) "weight", NULL
8291 };
8292
8293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8296 arg2 = (int) SWIG_AsInt(obj1);
8297 if (PyErr_Occurred()) SWIG_fail;
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 (arg1)->SetWeight(arg2);
8301
8302 wxPyEndAllowThreads(__tstate);
8303 if (PyErr_Occurred()) SWIG_fail;
8304 }
8305 Py_INCREF(Py_None); resultobj = Py_None;
8306 return resultobj;
8307 fail:
8308 return NULL;
8309 }
8310
8311
8312 static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8313 PyObject *resultobj;
8314 wxFont *arg1 = (wxFont *) 0 ;
8315 wxString *arg2 = 0 ;
8316 bool temp2 = False ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 char *kwnames[] = {
8320 (char *) "self",(char *) "faceName", NULL
8321 };
8322
8323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8326 {
8327 arg2 = wxString_in_helper(obj1);
8328 if (arg2 == NULL) SWIG_fail;
8329 temp2 = True;
8330 }
8331 {
8332 PyThreadState* __tstate = wxPyBeginAllowThreads();
8333 (arg1)->SetFaceName((wxString const &)*arg2);
8334
8335 wxPyEndAllowThreads(__tstate);
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 Py_INCREF(Py_None); resultobj = Py_None;
8339 {
8340 if (temp2)
8341 delete arg2;
8342 }
8343 return resultobj;
8344 fail:
8345 {
8346 if (temp2)
8347 delete arg2;
8348 }
8349 return NULL;
8350 }
8351
8352
8353 static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8354 PyObject *resultobj;
8355 wxFont *arg1 = (wxFont *) 0 ;
8356 bool arg2 ;
8357 PyObject * obj0 = 0 ;
8358 PyObject * obj1 = 0 ;
8359 char *kwnames[] = {
8360 (char *) "self",(char *) "underlined", NULL
8361 };
8362
8363 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8364 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8365 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8366 arg2 = (bool) SWIG_AsBool(obj1);
8367 if (PyErr_Occurred()) SWIG_fail;
8368 {
8369 PyThreadState* __tstate = wxPyBeginAllowThreads();
8370 (arg1)->SetUnderlined(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_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8383 PyObject *resultobj;
8384 wxFont *arg1 = (wxFont *) 0 ;
8385 int arg2 ;
8386 PyObject * obj0 = 0 ;
8387 PyObject * obj1 = 0 ;
8388 char *kwnames[] = {
8389 (char *) "self",(char *) "encoding", NULL
8390 };
8391
8392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8395 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8396 if (PyErr_Occurred()) SWIG_fail;
8397 {
8398 PyThreadState* __tstate = wxPyBeginAllowThreads();
8399 (arg1)->SetEncoding((wxFontEncoding )arg2);
8400
8401 wxPyEndAllowThreads(__tstate);
8402 if (PyErr_Occurred()) SWIG_fail;
8403 }
8404 Py_INCREF(Py_None); resultobj = Py_None;
8405 return resultobj;
8406 fail:
8407 return NULL;
8408 }
8409
8410
8411 static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj;
8413 wxFont *arg1 = (wxFont *) 0 ;
8414 wxNativeFontInfo *arg2 = 0 ;
8415 PyObject * obj0 = 0 ;
8416 PyObject * obj1 = 0 ;
8417 char *kwnames[] = {
8418 (char *) "self",(char *) "info", NULL
8419 };
8420
8421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8424 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8425 SWIG_POINTER_EXCEPTION | 0)) == -1)
8426 SWIG_fail;
8427 if (arg2 == NULL) {
8428 PyErr_SetString(PyExc_TypeError,"null reference");
8429 SWIG_fail;
8430 }
8431 {
8432 PyThreadState* __tstate = wxPyBeginAllowThreads();
8433 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8434
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 Py_INCREF(Py_None); resultobj = Py_None;
8439 return resultobj;
8440 fail:
8441 return NULL;
8442 }
8443
8444
8445 static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8446 PyObject *resultobj;
8447 wxFont *arg1 = (wxFont *) 0 ;
8448 wxString *arg2 = 0 ;
8449 bool temp2 = False ;
8450 PyObject * obj0 = 0 ;
8451 PyObject * obj1 = 0 ;
8452 char *kwnames[] = {
8453 (char *) "self",(char *) "info", NULL
8454 };
8455
8456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8459 {
8460 arg2 = wxString_in_helper(obj1);
8461 if (arg2 == NULL) SWIG_fail;
8462 temp2 = True;
8463 }
8464 {
8465 PyThreadState* __tstate = wxPyBeginAllowThreads();
8466 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8467
8468 wxPyEndAllowThreads(__tstate);
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
8471 Py_INCREF(Py_None); resultobj = Py_None;
8472 {
8473 if (temp2)
8474 delete arg2;
8475 }
8476 return resultobj;
8477 fail:
8478 {
8479 if (temp2)
8480 delete arg2;
8481 }
8482 return NULL;
8483 }
8484
8485
8486 static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8487 PyObject *resultobj;
8488 wxFont *arg1 = (wxFont *) 0 ;
8489 wxString *arg2 = 0 ;
8490 bool temp2 = False ;
8491 PyObject * obj0 = 0 ;
8492 PyObject * obj1 = 0 ;
8493 char *kwnames[] = {
8494 (char *) "self",(char *) "info", NULL
8495 };
8496
8497 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8498 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8499 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8500 {
8501 arg2 = wxString_in_helper(obj1);
8502 if (arg2 == NULL) SWIG_fail;
8503 temp2 = True;
8504 }
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 Py_INCREF(Py_None); resultobj = Py_None;
8513 {
8514 if (temp2)
8515 delete arg2;
8516 }
8517 return resultobj;
8518 fail:
8519 {
8520 if (temp2)
8521 delete arg2;
8522 }
8523 return NULL;
8524 }
8525
8526
8527 static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8528 PyObject *resultobj;
8529 wxFont *arg1 = (wxFont *) 0 ;
8530 wxString result;
8531 PyObject * obj0 = 0 ;
8532 char *kwnames[] = {
8533 (char *) "self", NULL
8534 };
8535
8536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8539 {
8540 PyThreadState* __tstate = wxPyBeginAllowThreads();
8541 result = ((wxFont const *)arg1)->GetFamilyString();
8542
8543 wxPyEndAllowThreads(__tstate);
8544 if (PyErr_Occurred()) SWIG_fail;
8545 }
8546 {
8547 #if wxUSE_UNICODE
8548 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8549 #else
8550 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8551 #endif
8552 }
8553 return resultobj;
8554 fail:
8555 return NULL;
8556 }
8557
8558
8559 static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8560 PyObject *resultobj;
8561 wxFont *arg1 = (wxFont *) 0 ;
8562 wxString result;
8563 PyObject * obj0 = 0 ;
8564 char *kwnames[] = {
8565 (char *) "self", NULL
8566 };
8567
8568 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8569 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8570 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8571 {
8572 PyThreadState* __tstate = wxPyBeginAllowThreads();
8573 result = ((wxFont const *)arg1)->GetStyleString();
8574
8575 wxPyEndAllowThreads(__tstate);
8576 if (PyErr_Occurred()) SWIG_fail;
8577 }
8578 {
8579 #if wxUSE_UNICODE
8580 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8581 #else
8582 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8583 #endif
8584 }
8585 return resultobj;
8586 fail:
8587 return NULL;
8588 }
8589
8590
8591 static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8592 PyObject *resultobj;
8593 wxFont *arg1 = (wxFont *) 0 ;
8594 wxString result;
8595 PyObject * obj0 = 0 ;
8596 char *kwnames[] = {
8597 (char *) "self", NULL
8598 };
8599
8600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",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 = ((wxFont const *)arg1)->GetWeightString();
8606
8607 wxPyEndAllowThreads(__tstate);
8608 if (PyErr_Occurred()) SWIG_fail;
8609 }
8610 {
8611 #if wxUSE_UNICODE
8612 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8613 #else
8614 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8615 #endif
8616 }
8617 return resultobj;
8618 fail:
8619 return NULL;
8620 }
8621
8622
8623 static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8624 PyObject *resultobj;
8625 wxFont *arg1 = (wxFont *) 0 ;
8626 bool arg2 = (bool) True ;
8627 PyObject * obj0 = 0 ;
8628 PyObject * obj1 = 0 ;
8629 char *kwnames[] = {
8630 (char *) "self",(char *) "no", NULL
8631 };
8632
8633 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8634 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8635 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8636 if (obj1) {
8637 arg2 = (bool) SWIG_AsBool(obj1);
8638 if (PyErr_Occurred()) SWIG_fail;
8639 }
8640 {
8641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8642 (arg1)->SetNoAntiAliasing(arg2);
8643
8644 wxPyEndAllowThreads(__tstate);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 Py_INCREF(Py_None); resultobj = Py_None;
8648 return resultobj;
8649 fail:
8650 return NULL;
8651 }
8652
8653
8654 static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj;
8656 wxFont *arg1 = (wxFont *) 0 ;
8657 bool result;
8658 PyObject * obj0 = 0 ;
8659 char *kwnames[] = {
8660 (char *) "self", NULL
8661 };
8662
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8666 {
8667 PyThreadState* __tstate = wxPyBeginAllowThreads();
8668 result = (bool)(arg1)->GetNoAntiAliasing();
8669
8670 wxPyEndAllowThreads(__tstate);
8671 if (PyErr_Occurred()) SWIG_fail;
8672 }
8673 {
8674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8675 }
8676 return resultobj;
8677 fail:
8678 return NULL;
8679 }
8680
8681
8682 static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj;
8684 int result;
8685 char *kwnames[] = {
8686 NULL
8687 };
8688
8689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8690 {
8691 if (!wxPyCheckForApp()) SWIG_fail;
8692 PyThreadState* __tstate = wxPyBeginAllowThreads();
8693 result = (int)wxFont::GetDefaultEncoding();
8694
8695 wxPyEndAllowThreads(__tstate);
8696 if (PyErr_Occurred()) SWIG_fail;
8697 }
8698 resultobj = SWIG_FromInt((int)result);
8699 return resultobj;
8700 fail:
8701 return NULL;
8702 }
8703
8704
8705 static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8706 PyObject *resultobj;
8707 int arg1 ;
8708 PyObject * obj0 = 0 ;
8709 char *kwnames[] = {
8710 (char *) "encoding", NULL
8711 };
8712
8713 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8714 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8715 if (PyErr_Occurred()) SWIG_fail;
8716 {
8717 if (!wxPyCheckForApp()) SWIG_fail;
8718 PyThreadState* __tstate = wxPyBeginAllowThreads();
8719 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8720
8721 wxPyEndAllowThreads(__tstate);
8722 if (PyErr_Occurred()) SWIG_fail;
8723 }
8724 Py_INCREF(Py_None); resultobj = Py_None;
8725 return resultobj;
8726 fail:
8727 return NULL;
8728 }
8729
8730
8731 static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8732 PyObject *obj;
8733 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8734 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8735 Py_INCREF(obj);
8736 return Py_BuildValue((char *)"");
8737 }
8738 static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8739 PyObject *resultobj;
8740 wxPyFontEnumerator *result;
8741 char *kwnames[] = {
8742 NULL
8743 };
8744
8745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8746 {
8747 if (!wxPyCheckForApp()) SWIG_fail;
8748 PyThreadState* __tstate = wxPyBeginAllowThreads();
8749 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8750
8751 wxPyEndAllowThreads(__tstate);
8752 if (PyErr_Occurred()) SWIG_fail;
8753 }
8754 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8755 return resultobj;
8756 fail:
8757 return NULL;
8758 }
8759
8760
8761 static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8762 PyObject *resultobj;
8763 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8764 PyObject * obj0 = 0 ;
8765 char *kwnames[] = {
8766 (char *) "self", NULL
8767 };
8768
8769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 delete arg1;
8775
8776 wxPyEndAllowThreads(__tstate);
8777 if (PyErr_Occurred()) SWIG_fail;
8778 }
8779 Py_INCREF(Py_None); resultobj = Py_None;
8780 return resultobj;
8781 fail:
8782 return NULL;
8783 }
8784
8785
8786 static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8787 PyObject *resultobj;
8788 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8789 PyObject *arg2 = (PyObject *) 0 ;
8790 PyObject *arg3 = (PyObject *) 0 ;
8791 bool arg4 ;
8792 PyObject * obj0 = 0 ;
8793 PyObject * obj1 = 0 ;
8794 PyObject * obj2 = 0 ;
8795 PyObject * obj3 = 0 ;
8796 char *kwnames[] = {
8797 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8798 };
8799
8800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8803 arg2 = obj1;
8804 arg3 = obj2;
8805 arg4 = (bool) SWIG_AsBool(obj3);
8806 if (PyErr_Occurred()) SWIG_fail;
8807 {
8808 PyThreadState* __tstate = wxPyBeginAllowThreads();
8809 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8810
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 Py_INCREF(Py_None); resultobj = Py_None;
8815 return resultobj;
8816 fail:
8817 return NULL;
8818 }
8819
8820
8821 static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj;
8823 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8824 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8825 bool arg3 = (bool) False ;
8826 bool result;
8827 PyObject * obj0 = 0 ;
8828 PyObject * obj1 = 0 ;
8829 PyObject * obj2 = 0 ;
8830 char *kwnames[] = {
8831 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8832 };
8833
8834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8837 if (obj1) {
8838 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 if (obj2) {
8842 arg3 = (bool) SWIG_AsBool(obj2);
8843 if (PyErr_Occurred()) SWIG_fail;
8844 }
8845 {
8846 PyThreadState* __tstate = wxPyBeginAllowThreads();
8847 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8848
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) SWIG_fail;
8851 }
8852 {
8853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8854 }
8855 return resultobj;
8856 fail:
8857 return NULL;
8858 }
8859
8860
8861 static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8862 PyObject *resultobj;
8863 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8864 wxString const &arg2_defvalue = wxPyEmptyString ;
8865 wxString *arg2 = (wxString *) &arg2_defvalue ;
8866 bool result;
8867 bool temp2 = False ;
8868 PyObject * obj0 = 0 ;
8869 PyObject * obj1 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self",(char *) "facename", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8877 if (obj1) {
8878 {
8879 arg2 = wxString_in_helper(obj1);
8880 if (arg2 == NULL) SWIG_fail;
8881 temp2 = True;
8882 }
8883 }
8884 {
8885 PyThreadState* __tstate = wxPyBeginAllowThreads();
8886 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8887
8888 wxPyEndAllowThreads(__tstate);
8889 if (PyErr_Occurred()) SWIG_fail;
8890 }
8891 {
8892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8893 }
8894 {
8895 if (temp2)
8896 delete arg2;
8897 }
8898 return resultobj;
8899 fail:
8900 {
8901 if (temp2)
8902 delete arg2;
8903 }
8904 return NULL;
8905 }
8906
8907
8908 static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8909 PyObject *resultobj;
8910 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8911 PyObject *result;
8912 PyObject * obj0 = 0 ;
8913 char *kwnames[] = {
8914 (char *) "self", NULL
8915 };
8916
8917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8920 {
8921 PyThreadState* __tstate = wxPyBeginAllowThreads();
8922 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8923
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = result;
8928 return resultobj;
8929 fail:
8930 return NULL;
8931 }
8932
8933
8934 static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8935 PyObject *resultobj;
8936 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8937 PyObject *result;
8938 PyObject * obj0 = 0 ;
8939 char *kwnames[] = {
8940 (char *) "self", NULL
8941 };
8942
8943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8946 {
8947 PyThreadState* __tstate = wxPyBeginAllowThreads();
8948 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8949
8950 wxPyEndAllowThreads(__tstate);
8951 if (PyErr_Occurred()) SWIG_fail;
8952 }
8953 resultobj = result;
8954 return resultobj;
8955 fail:
8956 return NULL;
8957 }
8958
8959
8960 static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8961 PyObject *obj;
8962 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8963 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8964 Py_INCREF(obj);
8965 return Py_BuildValue((char *)"");
8966 }
8967 static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8968 PyObject *resultobj;
8969 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8970 int arg2 ;
8971 PyObject * obj0 = 0 ;
8972 PyObject * obj1 = 0 ;
8973 char *kwnames[] = {
8974 (char *) "self",(char *) "Language", NULL
8975 };
8976
8977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8980 arg2 = (int) SWIG_AsInt(obj1);
8981 if (PyErr_Occurred()) SWIG_fail;
8982 if (arg1) (arg1)->Language = arg2;
8983
8984 Py_INCREF(Py_None); resultobj = Py_None;
8985 return resultobj;
8986 fail:
8987 return NULL;
8988 }
8989
8990
8991 static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8992 PyObject *resultobj;
8993 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8994 int result;
8995 PyObject * obj0 = 0 ;
8996 char *kwnames[] = {
8997 (char *) "self", NULL
8998 };
8999
9000 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
9001 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9002 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9003 result = (int) ((arg1)->Language);
9004
9005 resultobj = SWIG_FromInt((int)result);
9006 return resultobj;
9007 fail:
9008 return NULL;
9009 }
9010
9011
9012 static PyObject *_wrap_LanguageInfo_CanonicalName_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 *) "CanonicalName", NULL
9021 };
9022
9023 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_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)->CanonicalName = *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_CanonicalName_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_CanonicalName_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)->CanonicalName);
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 *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9076 PyObject *resultobj;
9077 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9078 wxString *arg2 = (wxString *) 0 ;
9079 bool temp2 = False ;
9080 PyObject * obj0 = 0 ;
9081 PyObject * obj1 = 0 ;
9082 char *kwnames[] = {
9083 (char *) "self",(char *) "Description", NULL
9084 };
9085
9086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9089 {
9090 arg2 = wxString_in_helper(obj1);
9091 if (arg2 == NULL) SWIG_fail;
9092 temp2 = True;
9093 }
9094 if (arg1) (arg1)->Description = *arg2;
9095
9096 Py_INCREF(Py_None); resultobj = Py_None;
9097 {
9098 if (temp2)
9099 delete arg2;
9100 }
9101 return resultobj;
9102 fail:
9103 {
9104 if (temp2)
9105 delete arg2;
9106 }
9107 return NULL;
9108 }
9109
9110
9111 static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9112 PyObject *resultobj;
9113 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9114 wxString *result;
9115 PyObject * obj0 = 0 ;
9116 char *kwnames[] = {
9117 (char *) "self", NULL
9118 };
9119
9120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9123 result = (wxString *)& ((arg1)->Description);
9124
9125 {
9126 #if wxUSE_UNICODE
9127 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9128 #else
9129 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9130 #endif
9131 }
9132 return resultobj;
9133 fail:
9134 return NULL;
9135 }
9136
9137
9138 static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9139 PyObject *obj;
9140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9141 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9142 Py_INCREF(obj);
9143 return Py_BuildValue((char *)"");
9144 }
9145 static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj;
9147 int arg1 = (int) -1 ;
9148 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9149 wxLocale *result;
9150 PyObject * obj0 = 0 ;
9151 PyObject * obj1 = 0 ;
9152 char *kwnames[] = {
9153 (char *) "language",(char *) "flags", NULL
9154 };
9155
9156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9157 if (obj0) {
9158 arg1 = (int) SWIG_AsInt(obj0);
9159 if (PyErr_Occurred()) SWIG_fail;
9160 }
9161 if (obj1) {
9162 arg2 = (int) SWIG_AsInt(obj1);
9163 if (PyErr_Occurred()) SWIG_fail;
9164 }
9165 {
9166 PyThreadState* __tstate = wxPyBeginAllowThreads();
9167 result = (wxLocale *)new_wxLocale(arg1,arg2);
9168
9169 wxPyEndAllowThreads(__tstate);
9170 if (PyErr_Occurred()) SWIG_fail;
9171 }
9172 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9173 return resultobj;
9174 fail:
9175 return NULL;
9176 }
9177
9178
9179 static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9180 PyObject *resultobj;
9181 wxLocale *arg1 = (wxLocale *) 0 ;
9182 PyObject * obj0 = 0 ;
9183 char *kwnames[] = {
9184 (char *) "self", NULL
9185 };
9186
9187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9190 {
9191 PyThreadState* __tstate = wxPyBeginAllowThreads();
9192 delete arg1;
9193
9194 wxPyEndAllowThreads(__tstate);
9195 if (PyErr_Occurred()) SWIG_fail;
9196 }
9197 Py_INCREF(Py_None); resultobj = Py_None;
9198 return resultobj;
9199 fail:
9200 return NULL;
9201 }
9202
9203
9204 static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9205 PyObject *resultobj;
9206 wxLocale *arg1 = (wxLocale *) 0 ;
9207 wxString *arg2 = 0 ;
9208 wxString const &arg3_defvalue = wxPyEmptyString ;
9209 wxString *arg3 = (wxString *) &arg3_defvalue ;
9210 wxString const &arg4_defvalue = wxPyEmptyString ;
9211 wxString *arg4 = (wxString *) &arg4_defvalue ;
9212 bool arg5 = (bool) True ;
9213 bool arg6 = (bool) False ;
9214 bool result;
9215 bool temp2 = False ;
9216 bool temp3 = False ;
9217 bool temp4 = False ;
9218 PyObject * obj0 = 0 ;
9219 PyObject * obj1 = 0 ;
9220 PyObject * obj2 = 0 ;
9221 PyObject * obj3 = 0 ;
9222 PyObject * obj4 = 0 ;
9223 PyObject * obj5 = 0 ;
9224 char *kwnames[] = {
9225 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9226 };
9227
9228 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9229 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9230 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9231 {
9232 arg2 = wxString_in_helper(obj1);
9233 if (arg2 == NULL) SWIG_fail;
9234 temp2 = True;
9235 }
9236 if (obj2) {
9237 {
9238 arg3 = wxString_in_helper(obj2);
9239 if (arg3 == NULL) SWIG_fail;
9240 temp3 = True;
9241 }
9242 }
9243 if (obj3) {
9244 {
9245 arg4 = wxString_in_helper(obj3);
9246 if (arg4 == NULL) SWIG_fail;
9247 temp4 = True;
9248 }
9249 }
9250 if (obj4) {
9251 arg5 = (bool) SWIG_AsBool(obj4);
9252 if (PyErr_Occurred()) SWIG_fail;
9253 }
9254 if (obj5) {
9255 arg6 = (bool) SWIG_AsBool(obj5);
9256 if (PyErr_Occurred()) SWIG_fail;
9257 }
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9261
9262 wxPyEndAllowThreads(__tstate);
9263 if (PyErr_Occurred()) SWIG_fail;
9264 }
9265 {
9266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9267 }
9268 {
9269 if (temp2)
9270 delete arg2;
9271 }
9272 {
9273 if (temp3)
9274 delete arg3;
9275 }
9276 {
9277 if (temp4)
9278 delete arg4;
9279 }
9280 return resultobj;
9281 fail:
9282 {
9283 if (temp2)
9284 delete arg2;
9285 }
9286 {
9287 if (temp3)
9288 delete arg3;
9289 }
9290 {
9291 if (temp4)
9292 delete arg4;
9293 }
9294 return NULL;
9295 }
9296
9297
9298 static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9299 PyObject *resultobj;
9300 wxLocale *arg1 = (wxLocale *) 0 ;
9301 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9302 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9303 bool result;
9304 PyObject * obj0 = 0 ;
9305 PyObject * obj1 = 0 ;
9306 PyObject * obj2 = 0 ;
9307 char *kwnames[] = {
9308 (char *) "self",(char *) "language",(char *) "flags", NULL
9309 };
9310
9311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9314 if (obj1) {
9315 arg2 = (int) SWIG_AsInt(obj1);
9316 if (PyErr_Occurred()) SWIG_fail;
9317 }
9318 if (obj2) {
9319 arg3 = (int) SWIG_AsInt(obj2);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 {
9323 PyThreadState* __tstate = wxPyBeginAllowThreads();
9324 result = (bool)(arg1)->Init(arg2,arg3);
9325
9326 wxPyEndAllowThreads(__tstate);
9327 if (PyErr_Occurred()) SWIG_fail;
9328 }
9329 {
9330 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9331 }
9332 return resultobj;
9333 fail:
9334 return NULL;
9335 }
9336
9337
9338 static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9339 PyObject *resultobj;
9340 int result;
9341 char *kwnames[] = {
9342 NULL
9343 };
9344
9345 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9346 {
9347 PyThreadState* __tstate = wxPyBeginAllowThreads();
9348 result = (int)wxLocale::GetSystemLanguage();
9349
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 resultobj = SWIG_FromInt((int)result);
9354 return resultobj;
9355 fail:
9356 return NULL;
9357 }
9358
9359
9360 static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj;
9362 int result;
9363 char *kwnames[] = {
9364 NULL
9365 };
9366
9367 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9368 {
9369 PyThreadState* __tstate = wxPyBeginAllowThreads();
9370 result = (int)wxLocale::GetSystemEncoding();
9371
9372 wxPyEndAllowThreads(__tstate);
9373 if (PyErr_Occurred()) SWIG_fail;
9374 }
9375 resultobj = SWIG_FromInt((int)result);
9376 return resultobj;
9377 fail:
9378 return NULL;
9379 }
9380
9381
9382 static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9383 PyObject *resultobj;
9384 wxString result;
9385 char *kwnames[] = {
9386 NULL
9387 };
9388
9389 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 result = wxLocale::GetSystemEncodingName();
9393
9394 wxPyEndAllowThreads(__tstate);
9395 if (PyErr_Occurred()) SWIG_fail;
9396 }
9397 {
9398 #if wxUSE_UNICODE
9399 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9400 #else
9401 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9402 #endif
9403 }
9404 return resultobj;
9405 fail:
9406 return NULL;
9407 }
9408
9409
9410 static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9411 PyObject *resultobj;
9412 wxLocale *arg1 = (wxLocale *) 0 ;
9413 bool result;
9414 PyObject * obj0 = 0 ;
9415 char *kwnames[] = {
9416 (char *) "self", NULL
9417 };
9418
9419 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9420 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9421 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9422 {
9423 PyThreadState* __tstate = wxPyBeginAllowThreads();
9424 result = (bool)((wxLocale const *)arg1)->IsOk();
9425
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 {
9430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9431 }
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9439 PyObject *resultobj;
9440 wxLocale *arg1 = (wxLocale *) 0 ;
9441 wxString result;
9442 PyObject * obj0 = 0 ;
9443 char *kwnames[] = {
9444 (char *) "self", NULL
9445 };
9446
9447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9450 {
9451 PyThreadState* __tstate = wxPyBeginAllowThreads();
9452 result = ((wxLocale const *)arg1)->GetLocale();
9453
9454 wxPyEndAllowThreads(__tstate);
9455 if (PyErr_Occurred()) SWIG_fail;
9456 }
9457 {
9458 #if wxUSE_UNICODE
9459 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9460 #else
9461 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9462 #endif
9463 }
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj;
9472 wxLocale *arg1 = (wxLocale *) 0 ;
9473 int result;
9474 PyObject * obj0 = 0 ;
9475 char *kwnames[] = {
9476 (char *) "self", NULL
9477 };
9478
9479 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9480 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9481 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9482 {
9483 PyThreadState* __tstate = wxPyBeginAllowThreads();
9484 result = (int)((wxLocale const *)arg1)->GetLanguage();
9485
9486 wxPyEndAllowThreads(__tstate);
9487 if (PyErr_Occurred()) SWIG_fail;
9488 }
9489 resultobj = SWIG_FromInt((int)result);
9490 return resultobj;
9491 fail:
9492 return NULL;
9493 }
9494
9495
9496 static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9497 PyObject *resultobj;
9498 wxLocale *arg1 = (wxLocale *) 0 ;
9499 wxString result;
9500 PyObject * obj0 = 0 ;
9501 char *kwnames[] = {
9502 (char *) "self", NULL
9503 };
9504
9505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9508 {
9509 PyThreadState* __tstate = wxPyBeginAllowThreads();
9510 result = ((wxLocale const *)arg1)->GetSysName();
9511
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 {
9516 #if wxUSE_UNICODE
9517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9518 #else
9519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9520 #endif
9521 }
9522 return resultobj;
9523 fail:
9524 return NULL;
9525 }
9526
9527
9528 static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj;
9530 wxLocale *arg1 = (wxLocale *) 0 ;
9531 wxString result;
9532 PyObject * obj0 = 0 ;
9533 char *kwnames[] = {
9534 (char *) "self", NULL
9535 };
9536
9537 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9538 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9539 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9540 {
9541 PyThreadState* __tstate = wxPyBeginAllowThreads();
9542 result = ((wxLocale const *)arg1)->GetCanonicalName();
9543
9544 wxPyEndAllowThreads(__tstate);
9545 if (PyErr_Occurred()) SWIG_fail;
9546 }
9547 {
9548 #if wxUSE_UNICODE
9549 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9550 #else
9551 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9552 #endif
9553 }
9554 return resultobj;
9555 fail:
9556 return NULL;
9557 }
9558
9559
9560 static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9561 PyObject *resultobj;
9562 wxString *arg1 = 0 ;
9563 bool temp1 = False ;
9564 PyObject * obj0 = 0 ;
9565 char *kwnames[] = {
9566 (char *) "prefix", NULL
9567 };
9568
9569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9570 {
9571 arg1 = wxString_in_helper(obj0);
9572 if (arg1 == NULL) SWIG_fail;
9573 temp1 = True;
9574 }
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9578
9579 wxPyEndAllowThreads(__tstate);
9580 if (PyErr_Occurred()) SWIG_fail;
9581 }
9582 Py_INCREF(Py_None); resultobj = Py_None;
9583 {
9584 if (temp1)
9585 delete arg1;
9586 }
9587 return resultobj;
9588 fail:
9589 {
9590 if (temp1)
9591 delete arg1;
9592 }
9593 return NULL;
9594 }
9595
9596
9597 static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9598 PyObject *resultobj;
9599 wxLocale *arg1 = (wxLocale *) 0 ;
9600 wxString *arg2 = 0 ;
9601 bool result;
9602 bool temp2 = False ;
9603 PyObject * obj0 = 0 ;
9604 PyObject * obj1 = 0 ;
9605 char *kwnames[] = {
9606 (char *) "self",(char *) "szDomain", NULL
9607 };
9608
9609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9612 {
9613 arg2 = wxString_in_helper(obj1);
9614 if (arg2 == NULL) SWIG_fail;
9615 temp2 = True;
9616 }
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9620
9621 wxPyEndAllowThreads(__tstate);
9622 if (PyErr_Occurred()) SWIG_fail;
9623 }
9624 {
9625 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9626 }
9627 {
9628 if (temp2)
9629 delete arg2;
9630 }
9631 return resultobj;
9632 fail:
9633 {
9634 if (temp2)
9635 delete arg2;
9636 }
9637 return NULL;
9638 }
9639
9640
9641 static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9642 PyObject *resultobj;
9643 wxLocale *arg1 = (wxLocale *) 0 ;
9644 wxString *arg2 = 0 ;
9645 bool result;
9646 bool temp2 = False ;
9647 PyObject * obj0 = 0 ;
9648 PyObject * obj1 = 0 ;
9649 char *kwnames[] = {
9650 (char *) "self",(char *) "szDomain", NULL
9651 };
9652
9653 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9654 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9655 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9656 {
9657 arg2 = wxString_in_helper(obj1);
9658 if (arg2 == NULL) SWIG_fail;
9659 temp2 = True;
9660 }
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9664
9665 wxPyEndAllowThreads(__tstate);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 {
9669 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9670 }
9671 {
9672 if (temp2)
9673 delete arg2;
9674 }
9675 return resultobj;
9676 fail:
9677 {
9678 if (temp2)
9679 delete arg2;
9680 }
9681 return NULL;
9682 }
9683
9684
9685 static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9686 PyObject *resultobj;
9687 int arg1 ;
9688 wxLanguageInfo *result;
9689 PyObject * obj0 = 0 ;
9690 char *kwnames[] = {
9691 (char *) "lang", NULL
9692 };
9693
9694 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9695 arg1 = (int) SWIG_AsInt(obj0);
9696 if (PyErr_Occurred()) SWIG_fail;
9697 {
9698 PyThreadState* __tstate = wxPyBeginAllowThreads();
9699 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9700
9701 wxPyEndAllowThreads(__tstate);
9702 if (PyErr_Occurred()) SWIG_fail;
9703 }
9704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9705 return resultobj;
9706 fail:
9707 return NULL;
9708 }
9709
9710
9711 static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9712 PyObject *resultobj;
9713 int arg1 ;
9714 wxString result;
9715 PyObject * obj0 = 0 ;
9716 char *kwnames[] = {
9717 (char *) "lang", NULL
9718 };
9719
9720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9721 arg1 = (int) SWIG_AsInt(obj0);
9722 if (PyErr_Occurred()) SWIG_fail;
9723 {
9724 PyThreadState* __tstate = wxPyBeginAllowThreads();
9725 result = wxLocale::GetLanguageName(arg1);
9726
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 {
9731 #if wxUSE_UNICODE
9732 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9733 #else
9734 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9735 #endif
9736 }
9737 return resultobj;
9738 fail:
9739 return NULL;
9740 }
9741
9742
9743 static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9744 PyObject *resultobj;
9745 wxString *arg1 = 0 ;
9746 wxLanguageInfo *result;
9747 bool temp1 = False ;
9748 PyObject * obj0 = 0 ;
9749 char *kwnames[] = {
9750 (char *) "locale", NULL
9751 };
9752
9753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9754 {
9755 arg1 = wxString_in_helper(obj0);
9756 if (arg1 == NULL) SWIG_fail;
9757 temp1 = True;
9758 }
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9762
9763 wxPyEndAllowThreads(__tstate);
9764 if (PyErr_Occurred()) SWIG_fail;
9765 }
9766 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9767 {
9768 if (temp1)
9769 delete arg1;
9770 }
9771 return resultobj;
9772 fail:
9773 {
9774 if (temp1)
9775 delete arg1;
9776 }
9777 return NULL;
9778 }
9779
9780
9781 static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9782 PyObject *resultobj;
9783 wxLanguageInfo *arg1 = 0 ;
9784 PyObject * obj0 = 0 ;
9785 char *kwnames[] = {
9786 (char *) "info", NULL
9787 };
9788
9789 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9790 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9791 SWIG_POINTER_EXCEPTION | 0)) == -1)
9792 SWIG_fail;
9793 if (arg1 == NULL) {
9794 PyErr_SetString(PyExc_TypeError,"null reference");
9795 SWIG_fail;
9796 }
9797 {
9798 PyThreadState* __tstate = wxPyBeginAllowThreads();
9799 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9800
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 Py_INCREF(Py_None); resultobj = Py_None;
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj;
9813 wxLocale *arg1 = (wxLocale *) 0 ;
9814 wxString *arg2 = 0 ;
9815 wxString const &arg3_defvalue = wxPyEmptyString ;
9816 wxString *arg3 = (wxString *) &arg3_defvalue ;
9817 wxString result;
9818 bool temp2 = False ;
9819 bool temp3 = False ;
9820 PyObject * obj0 = 0 ;
9821 PyObject * obj1 = 0 ;
9822 PyObject * obj2 = 0 ;
9823 char *kwnames[] = {
9824 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9825 };
9826
9827 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9828 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9829 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9830 {
9831 arg2 = wxString_in_helper(obj1);
9832 if (arg2 == NULL) SWIG_fail;
9833 temp2 = True;
9834 }
9835 if (obj2) {
9836 {
9837 arg3 = wxString_in_helper(obj2);
9838 if (arg3 == NULL) SWIG_fail;
9839 temp3 = True;
9840 }
9841 }
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9845
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 {
9850 #if wxUSE_UNICODE
9851 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9852 #else
9853 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9854 #endif
9855 }
9856 {
9857 if (temp2)
9858 delete arg2;
9859 }
9860 {
9861 if (temp3)
9862 delete arg3;
9863 }
9864 return resultobj;
9865 fail:
9866 {
9867 if (temp2)
9868 delete arg2;
9869 }
9870 {
9871 if (temp3)
9872 delete arg3;
9873 }
9874 return NULL;
9875 }
9876
9877
9878 static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9879 PyObject *resultobj;
9880 wxLocale *arg1 = (wxLocale *) 0 ;
9881 wxString *result;
9882 PyObject * obj0 = 0 ;
9883 char *kwnames[] = {
9884 (char *) "self", NULL
9885 };
9886
9887 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9888 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9889 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9890 {
9891 PyThreadState* __tstate = wxPyBeginAllowThreads();
9892 {
9893 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9894 result = (wxString *) &_result_ref;
9895 }
9896
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 {
9901 #if wxUSE_UNICODE
9902 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9903 #else
9904 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9905 #endif
9906 }
9907 return resultobj;
9908 fail:
9909 return NULL;
9910 }
9911
9912
9913 static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9914 PyObject *obj;
9915 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9916 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9917 Py_INCREF(obj);
9918 return Py_BuildValue((char *)"");
9919 }
9920 static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9921 PyObject *resultobj;
9922 wxLocale *result;
9923 char *kwnames[] = {
9924 NULL
9925 };
9926
9927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9928 {
9929 PyThreadState* __tstate = wxPyBeginAllowThreads();
9930 result = (wxLocale *)wxGetLocale();
9931
9932 wxPyEndAllowThreads(__tstate);
9933 if (PyErr_Occurred()) SWIG_fail;
9934 }
9935 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9936 return resultobj;
9937 fail:
9938 return NULL;
9939 }
9940
9941
9942 static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9943 PyObject *resultobj;
9944 wxString *arg1 = 0 ;
9945 wxString result;
9946 bool temp1 = False ;
9947 PyObject * obj0 = 0 ;
9948
9949 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9950 {
9951 arg1 = wxString_in_helper(obj0);
9952 if (arg1 == NULL) SWIG_fail;
9953 temp1 = True;
9954 }
9955 {
9956 PyThreadState* __tstate = wxPyBeginAllowThreads();
9957 result = wxGetTranslation((wxString const &)*arg1);
9958
9959 wxPyEndAllowThreads(__tstate);
9960 if (PyErr_Occurred()) SWIG_fail;
9961 }
9962 {
9963 #if wxUSE_UNICODE
9964 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9965 #else
9966 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9967 #endif
9968 }
9969 {
9970 if (temp1)
9971 delete arg1;
9972 }
9973 return resultobj;
9974 fail:
9975 {
9976 if (temp1)
9977 delete arg1;
9978 }
9979 return NULL;
9980 }
9981
9982
9983 static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9984 PyObject *resultobj;
9985 wxString *arg1 = 0 ;
9986 wxString *arg2 = 0 ;
9987 size_t arg3 ;
9988 wxString result;
9989 bool temp1 = False ;
9990 bool temp2 = False ;
9991 PyObject * obj0 = 0 ;
9992 PyObject * obj1 = 0 ;
9993 PyObject * obj2 = 0 ;
9994
9995 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9996 {
9997 arg1 = wxString_in_helper(obj0);
9998 if (arg1 == NULL) SWIG_fail;
9999 temp1 = True;
10000 }
10001 {
10002 arg2 = wxString_in_helper(obj1);
10003 if (arg2 == NULL) SWIG_fail;
10004 temp2 = True;
10005 }
10006 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
10007 if (PyErr_Occurred()) SWIG_fail;
10008 {
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
10011
10012 wxPyEndAllowThreads(__tstate);
10013 if (PyErr_Occurred()) SWIG_fail;
10014 }
10015 {
10016 #if wxUSE_UNICODE
10017 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10018 #else
10019 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10020 #endif
10021 }
10022 {
10023 if (temp1)
10024 delete arg1;
10025 }
10026 {
10027 if (temp2)
10028 delete arg2;
10029 }
10030 return resultobj;
10031 fail:
10032 {
10033 if (temp1)
10034 delete arg1;
10035 }
10036 {
10037 if (temp2)
10038 delete arg2;
10039 }
10040 return NULL;
10041 }
10042
10043
10044 static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10045 int argc;
10046 PyObject *argv[4];
10047 int ii;
10048
10049 argc = PyObject_Length(args);
10050 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10051 argv[ii] = PyTuple_GetItem(args,ii);
10052 }
10053 if (argc == 1) {
10054 int _v;
10055 {
10056 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10057 }
10058 if (_v) {
10059 return _wrap_GetTranslation__SWIG_0(self,args);
10060 }
10061 }
10062 if (argc == 3) {
10063 int _v;
10064 {
10065 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10066 }
10067 if (_v) {
10068 {
10069 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10070 }
10071 if (_v) {
10072 _v = SWIG_CheckUnsignedLong(argv[2]);
10073 if (_v) {
10074 return _wrap_GetTranslation__SWIG_1(self,args);
10075 }
10076 }
10077 }
10078 }
10079
10080 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10081 return NULL;
10082 }
10083
10084
10085 static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj;
10087 wxEncodingConverter *result;
10088 char *kwnames[] = {
10089 NULL
10090 };
10091
10092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10093 {
10094 PyThreadState* __tstate = wxPyBeginAllowThreads();
10095 result = (wxEncodingConverter *)new wxEncodingConverter();
10096
10097 wxPyEndAllowThreads(__tstate);
10098 if (PyErr_Occurred()) SWIG_fail;
10099 }
10100 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10101 return resultobj;
10102 fail:
10103 return NULL;
10104 }
10105
10106
10107 static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10108 PyObject *resultobj;
10109 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10110 PyObject * obj0 = 0 ;
10111 char *kwnames[] = {
10112 (char *) "self", NULL
10113 };
10114
10115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10118 {
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 delete arg1;
10121
10122 wxPyEndAllowThreads(__tstate);
10123 if (PyErr_Occurred()) SWIG_fail;
10124 }
10125 Py_INCREF(Py_None); resultobj = Py_None;
10126 return resultobj;
10127 fail:
10128 return NULL;
10129 }
10130
10131
10132 static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10133 PyObject *resultobj;
10134 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10135 int arg2 ;
10136 int arg3 ;
10137 int arg4 = (int) wxCONVERT_STRICT ;
10138 bool result;
10139 PyObject * obj0 = 0 ;
10140 PyObject * obj1 = 0 ;
10141 PyObject * obj2 = 0 ;
10142 PyObject * obj3 = 0 ;
10143 char *kwnames[] = {
10144 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10145 };
10146
10147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10150 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10151 if (PyErr_Occurred()) SWIG_fail;
10152 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 if (obj3) {
10155 arg4 = (int) SWIG_AsInt(obj3);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 {
10159 PyThreadState* __tstate = wxPyBeginAllowThreads();
10160 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10161
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 {
10166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10167 }
10168 return resultobj;
10169 fail:
10170 return NULL;
10171 }
10172
10173
10174 static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10175 PyObject *resultobj;
10176 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10177 wxString *arg2 = 0 ;
10178 wxString result;
10179 bool temp2 = False ;
10180 PyObject * obj0 = 0 ;
10181 PyObject * obj1 = 0 ;
10182 char *kwnames[] = {
10183 (char *) "self",(char *) "input", NULL
10184 };
10185
10186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10189 {
10190 arg2 = wxString_in_helper(obj1);
10191 if (arg2 == NULL) SWIG_fail;
10192 temp2 = True;
10193 }
10194 {
10195 PyThreadState* __tstate = wxPyBeginAllowThreads();
10196 result = (arg1)->Convert((wxString const &)*arg2);
10197
10198 wxPyEndAllowThreads(__tstate);
10199 if (PyErr_Occurred()) SWIG_fail;
10200 }
10201 {
10202 #if wxUSE_UNICODE
10203 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10204 #else
10205 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10206 #endif
10207 }
10208 {
10209 if (temp2)
10210 delete arg2;
10211 }
10212 return resultobj;
10213 fail:
10214 {
10215 if (temp2)
10216 delete arg2;
10217 }
10218 return NULL;
10219 }
10220
10221
10222 static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10223 PyObject *resultobj;
10224 int arg1 ;
10225 int arg2 = (int) wxPLATFORM_CURRENT ;
10226 wxFontEncodingArray result;
10227 PyObject * obj0 = 0 ;
10228 PyObject * obj1 = 0 ;
10229 char *kwnames[] = {
10230 (char *) "enc",(char *) "platform", NULL
10231 };
10232
10233 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10234 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 if (obj1) {
10237 arg2 = (int) SWIG_AsInt(obj1);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10243
10244 wxPyEndAllowThreads(__tstate);
10245 if (PyErr_Occurred()) SWIG_fail;
10246 }
10247 {
10248 resultobj = PyList_New(0);
10249 for (size_t i=0; i < (&result)->GetCount(); i++) {
10250 PyObject* number = PyInt_FromLong((&result)->Item(i));
10251 PyList_Append(resultobj, number);
10252 Py_DECREF(number);
10253 }
10254 }
10255 return resultobj;
10256 fail:
10257 return NULL;
10258 }
10259
10260
10261 static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10262 PyObject *resultobj;
10263 int arg1 ;
10264 wxFontEncodingArray result;
10265 PyObject * obj0 = 0 ;
10266 char *kwnames[] = {
10267 (char *) "enc", NULL
10268 };
10269
10270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10271 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 {
10274 PyThreadState* __tstate = wxPyBeginAllowThreads();
10275 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10276
10277 wxPyEndAllowThreads(__tstate);
10278 if (PyErr_Occurred()) SWIG_fail;
10279 }
10280 {
10281 resultobj = PyList_New(0);
10282 for (size_t i=0; i < (&result)->GetCount(); i++) {
10283 PyObject* number = PyInt_FromLong((&result)->Item(i));
10284 PyList_Append(resultobj, number);
10285 Py_DECREF(number);
10286 }
10287 }
10288 return resultobj;
10289 fail:
10290 return NULL;
10291 }
10292
10293
10294 static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10295 PyObject *resultobj;
10296 int arg1 ;
10297 int arg2 ;
10298 bool result;
10299 PyObject * obj0 = 0 ;
10300 PyObject * obj1 = 0 ;
10301 char *kwnames[] = {
10302 (char *) "encIn",(char *) "encOut", NULL
10303 };
10304
10305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10306 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10307 if (PyErr_Occurred()) SWIG_fail;
10308 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10309 if (PyErr_Occurred()) SWIG_fail;
10310 {
10311 PyThreadState* __tstate = wxPyBeginAllowThreads();
10312 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10313
10314 wxPyEndAllowThreads(__tstate);
10315 if (PyErr_Occurred()) SWIG_fail;
10316 }
10317 {
10318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10319 }
10320 return resultobj;
10321 fail:
10322 return NULL;
10323 }
10324
10325
10326 static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10327 PyObject *obj;
10328 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10329 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10330 Py_INCREF(obj);
10331 return Py_BuildValue((char *)"");
10332 }
10333 static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj;
10335 wxDC *arg1 = (wxDC *) 0 ;
10336 PyObject * obj0 = 0 ;
10337 char *kwnames[] = {
10338 (char *) "self", NULL
10339 };
10340
10341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 delete arg1;
10347
10348 wxPyEndAllowThreads(__tstate);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 Py_INCREF(Py_None); resultobj = Py_None;
10352 return resultobj;
10353 fail:
10354 return NULL;
10355 }
10356
10357
10358 static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10359 PyObject *resultobj;
10360 wxDC *arg1 = (wxDC *) 0 ;
10361 PyObject * obj0 = 0 ;
10362 char *kwnames[] = {
10363 (char *) "self", NULL
10364 };
10365
10366 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10367 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10368 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10369 {
10370 PyThreadState* __tstate = wxPyBeginAllowThreads();
10371 (arg1)->BeginDrawing();
10372
10373 wxPyEndAllowThreads(__tstate);
10374 if (PyErr_Occurred()) SWIG_fail;
10375 }
10376 Py_INCREF(Py_None); resultobj = Py_None;
10377 return resultobj;
10378 fail:
10379 return NULL;
10380 }
10381
10382
10383 static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10384 PyObject *resultobj;
10385 wxDC *arg1 = (wxDC *) 0 ;
10386 PyObject * obj0 = 0 ;
10387 char *kwnames[] = {
10388 (char *) "self", NULL
10389 };
10390
10391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 (arg1)->EndDrawing();
10397
10398 wxPyEndAllowThreads(__tstate);
10399 if (PyErr_Occurred()) SWIG_fail;
10400 }
10401 Py_INCREF(Py_None); resultobj = Py_None;
10402 return resultobj;
10403 fail:
10404 return NULL;
10405 }
10406
10407
10408 static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
10409 PyObject *resultobj;
10410 wxDC *arg1 = (wxDC *) 0 ;
10411 int arg2 ;
10412 int arg3 ;
10413 wxColour *arg4 = 0 ;
10414 int arg5 = (int) wxFLOOD_SURFACE ;
10415 bool result;
10416 wxColour temp4 ;
10417 PyObject * obj0 = 0 ;
10418 PyObject * obj1 = 0 ;
10419 PyObject * obj2 = 0 ;
10420 PyObject * obj3 = 0 ;
10421 PyObject * obj4 = 0 ;
10422 char *kwnames[] = {
10423 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10424 };
10425
10426 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10427 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10428 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10429 arg2 = (int) SWIG_AsInt(obj1);
10430 if (PyErr_Occurred()) SWIG_fail;
10431 arg3 = (int) SWIG_AsInt(obj2);
10432 if (PyErr_Occurred()) SWIG_fail;
10433 {
10434 arg4 = &temp4;
10435 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10436 }
10437 if (obj4) {
10438 arg5 = (int) SWIG_AsInt(obj4);
10439 if (PyErr_Occurred()) SWIG_fail;
10440 }
10441 {
10442 PyThreadState* __tstate = wxPyBeginAllowThreads();
10443 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10444
10445 wxPyEndAllowThreads(__tstate);
10446 if (PyErr_Occurred()) SWIG_fail;
10447 }
10448 {
10449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10450 }
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10458 PyObject *resultobj;
10459 wxDC *arg1 = (wxDC *) 0 ;
10460 wxPoint *arg2 = 0 ;
10461 wxColour *arg3 = 0 ;
10462 int arg4 = (int) wxFLOOD_SURFACE ;
10463 bool result;
10464 wxPoint temp2 ;
10465 wxColour temp3 ;
10466 PyObject * obj0 = 0 ;
10467 PyObject * obj1 = 0 ;
10468 PyObject * obj2 = 0 ;
10469 PyObject * obj3 = 0 ;
10470 char *kwnames[] = {
10471 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10472 };
10473
10474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10477 {
10478 arg2 = &temp2;
10479 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10480 }
10481 {
10482 arg3 = &temp3;
10483 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10484 }
10485 if (obj3) {
10486 arg4 = (int) SWIG_AsInt(obj3);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 {
10490 PyThreadState* __tstate = wxPyBeginAllowThreads();
10491 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10492
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 {
10497 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10498 }
10499 return resultobj;
10500 fail:
10501 return NULL;
10502 }
10503
10504
10505 static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
10506 PyObject *resultobj;
10507 wxDC *arg1 = (wxDC *) 0 ;
10508 int arg2 ;
10509 int arg3 ;
10510 wxColour result;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 PyObject * obj2 = 0 ;
10514 char *kwnames[] = {
10515 (char *) "self",(char *) "x",(char *) "y", NULL
10516 };
10517
10518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
10519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10521 arg2 = (int) SWIG_AsInt(obj1);
10522 if (PyErr_Occurred()) SWIG_fail;
10523 arg3 = (int) SWIG_AsInt(obj2);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 {
10526 PyThreadState* __tstate = wxPyBeginAllowThreads();
10527 result = wxDC_GetPixel(arg1,arg2,arg3);
10528
10529 wxPyEndAllowThreads(__tstate);
10530 if (PyErr_Occurred()) SWIG_fail;
10531 }
10532 {
10533 wxColour * resultptr;
10534 resultptr = new wxColour((wxColour &) result);
10535 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10536 }
10537 return resultobj;
10538 fail:
10539 return NULL;
10540 }
10541
10542
10543 static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10544 PyObject *resultobj;
10545 wxDC *arg1 = (wxDC *) 0 ;
10546 wxPoint *arg2 = 0 ;
10547 wxColour result;
10548 wxPoint temp2 ;
10549 PyObject * obj0 = 0 ;
10550 PyObject * obj1 = 0 ;
10551 char *kwnames[] = {
10552 (char *) "self",(char *) "pt", NULL
10553 };
10554
10555 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
10556 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10557 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10558 {
10559 arg2 = &temp2;
10560 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10561 }
10562 {
10563 PyThreadState* __tstate = wxPyBeginAllowThreads();
10564 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
10565
10566 wxPyEndAllowThreads(__tstate);
10567 if (PyErr_Occurred()) SWIG_fail;
10568 }
10569 {
10570 wxColour * resultptr;
10571 resultptr = new wxColour((wxColour &) result);
10572 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10573 }
10574 return resultobj;
10575 fail:
10576 return NULL;
10577 }
10578
10579
10580 static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
10581 PyObject *resultobj;
10582 wxDC *arg1 = (wxDC *) 0 ;
10583 int arg2 ;
10584 int arg3 ;
10585 int arg4 ;
10586 int arg5 ;
10587 PyObject * obj0 = 0 ;
10588 PyObject * obj1 = 0 ;
10589 PyObject * obj2 = 0 ;
10590 PyObject * obj3 = 0 ;
10591 PyObject * obj4 = 0 ;
10592 char *kwnames[] = {
10593 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10594 };
10595
10596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10599 arg2 = (int) SWIG_AsInt(obj1);
10600 if (PyErr_Occurred()) SWIG_fail;
10601 arg3 = (int) SWIG_AsInt(obj2);
10602 if (PyErr_Occurred()) SWIG_fail;
10603 arg4 = (int) SWIG_AsInt(obj3);
10604 if (PyErr_Occurred()) SWIG_fail;
10605 arg5 = (int) SWIG_AsInt(obj4);
10606 if (PyErr_Occurred()) SWIG_fail;
10607 {
10608 PyThreadState* __tstate = wxPyBeginAllowThreads();
10609 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10610
10611 wxPyEndAllowThreads(__tstate);
10612 if (PyErr_Occurred()) SWIG_fail;
10613 }
10614 Py_INCREF(Py_None); resultobj = Py_None;
10615 return resultobj;
10616 fail:
10617 return NULL;
10618 }
10619
10620
10621 static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10622 PyObject *resultobj;
10623 wxDC *arg1 = (wxDC *) 0 ;
10624 wxPoint *arg2 = 0 ;
10625 wxPoint *arg3 = 0 ;
10626 wxPoint temp2 ;
10627 wxPoint temp3 ;
10628 PyObject * obj0 = 0 ;
10629 PyObject * obj1 = 0 ;
10630 PyObject * obj2 = 0 ;
10631 char *kwnames[] = {
10632 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10633 };
10634
10635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
10636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10638 {
10639 arg2 = &temp2;
10640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10641 }
10642 {
10643 arg3 = &temp3;
10644 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10645 }
10646 {
10647 PyThreadState* __tstate = wxPyBeginAllowThreads();
10648 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10649
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 Py_INCREF(Py_None); resultobj = Py_None;
10654 return resultobj;
10655 fail:
10656 return NULL;
10657 }
10658
10659
10660 static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
10661 PyObject *resultobj;
10662 wxDC *arg1 = (wxDC *) 0 ;
10663 int arg2 ;
10664 int arg3 ;
10665 PyObject * obj0 = 0 ;
10666 PyObject * obj1 = 0 ;
10667 PyObject * obj2 = 0 ;
10668 char *kwnames[] = {
10669 (char *) "self",(char *) "x",(char *) "y", NULL
10670 };
10671
10672 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
10673 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10674 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10675 arg2 = (int) SWIG_AsInt(obj1);
10676 if (PyErr_Occurred()) SWIG_fail;
10677 arg3 = (int) SWIG_AsInt(obj2);
10678 if (PyErr_Occurred()) SWIG_fail;
10679 {
10680 PyThreadState* __tstate = wxPyBeginAllowThreads();
10681 (arg1)->CrossHair(arg2,arg3);
10682
10683 wxPyEndAllowThreads(__tstate);
10684 if (PyErr_Occurred()) SWIG_fail;
10685 }
10686 Py_INCREF(Py_None); resultobj = Py_None;
10687 return resultobj;
10688 fail:
10689 return NULL;
10690 }
10691
10692
10693 static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10694 PyObject *resultobj;
10695 wxDC *arg1 = (wxDC *) 0 ;
10696 wxPoint *arg2 = 0 ;
10697 wxPoint temp2 ;
10698 PyObject * obj0 = 0 ;
10699 PyObject * obj1 = 0 ;
10700 char *kwnames[] = {
10701 (char *) "self",(char *) "pt", NULL
10702 };
10703
10704 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
10705 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10706 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10707 {
10708 arg2 = &temp2;
10709 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10710 }
10711 {
10712 PyThreadState* __tstate = wxPyBeginAllowThreads();
10713 (arg1)->CrossHair((wxPoint const &)*arg2);
10714
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 Py_INCREF(Py_None); resultobj = Py_None;
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj;
10727 wxDC *arg1 = (wxDC *) 0 ;
10728 int arg2 ;
10729 int arg3 ;
10730 int arg4 ;
10731 int arg5 ;
10732 int arg6 ;
10733 int arg7 ;
10734 PyObject * obj0 = 0 ;
10735 PyObject * obj1 = 0 ;
10736 PyObject * obj2 = 0 ;
10737 PyObject * obj3 = 0 ;
10738 PyObject * obj4 = 0 ;
10739 PyObject * obj5 = 0 ;
10740 PyObject * obj6 = 0 ;
10741 char *kwnames[] = {
10742 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10743 };
10744
10745 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10746 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10747 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10748 arg2 = (int) SWIG_AsInt(obj1);
10749 if (PyErr_Occurred()) SWIG_fail;
10750 arg3 = (int) SWIG_AsInt(obj2);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 arg4 = (int) SWIG_AsInt(obj3);
10753 if (PyErr_Occurred()) SWIG_fail;
10754 arg5 = (int) SWIG_AsInt(obj4);
10755 if (PyErr_Occurred()) SWIG_fail;
10756 arg6 = (int) SWIG_AsInt(obj5);
10757 if (PyErr_Occurred()) SWIG_fail;
10758 arg7 = (int) SWIG_AsInt(obj6);
10759 if (PyErr_Occurred()) SWIG_fail;
10760 {
10761 PyThreadState* __tstate = wxPyBeginAllowThreads();
10762 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10763
10764 wxPyEndAllowThreads(__tstate);
10765 if (PyErr_Occurred()) SWIG_fail;
10766 }
10767 Py_INCREF(Py_None); resultobj = Py_None;
10768 return resultobj;
10769 fail:
10770 return NULL;
10771 }
10772
10773
10774 static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj;
10776 wxDC *arg1 = (wxDC *) 0 ;
10777 wxPoint *arg2 = 0 ;
10778 wxPoint *arg3 = 0 ;
10779 wxPoint *arg4 = 0 ;
10780 wxPoint temp2 ;
10781 wxPoint temp3 ;
10782 wxPoint temp4 ;
10783 PyObject * obj0 = 0 ;
10784 PyObject * obj1 = 0 ;
10785 PyObject * obj2 = 0 ;
10786 PyObject * obj3 = 0 ;
10787 char *kwnames[] = {
10788 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10789 };
10790
10791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10794 {
10795 arg2 = &temp2;
10796 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10797 }
10798 {
10799 arg3 = &temp3;
10800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10801 }
10802 {
10803 arg4 = &temp4;
10804 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10805 }
10806 {
10807 PyThreadState* __tstate = wxPyBeginAllowThreads();
10808 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10809
10810 wxPyEndAllowThreads(__tstate);
10811 if (PyErr_Occurred()) SWIG_fail;
10812 }
10813 Py_INCREF(Py_None); resultobj = Py_None;
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
10821 PyObject *resultobj;
10822 wxDC *arg1 = (wxDC *) 0 ;
10823 int arg2 ;
10824 int arg3 ;
10825 int arg4 ;
10826 int arg5 ;
10827 PyObject * obj0 = 0 ;
10828 PyObject * obj1 = 0 ;
10829 PyObject * obj2 = 0 ;
10830 PyObject * obj3 = 0 ;
10831 PyObject * obj4 = 0 ;
10832 char *kwnames[] = {
10833 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10834 };
10835
10836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10839 arg2 = (int) SWIG_AsInt(obj1);
10840 if (PyErr_Occurred()) SWIG_fail;
10841 arg3 = (int) SWIG_AsInt(obj2);
10842 if (PyErr_Occurred()) SWIG_fail;
10843 arg4 = (int) SWIG_AsInt(obj3);
10844 if (PyErr_Occurred()) SWIG_fail;
10845 arg5 = (int) SWIG_AsInt(obj4);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 {
10848 PyThreadState* __tstate = wxPyBeginAllowThreads();
10849 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10850
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 Py_INCREF(Py_None); resultobj = Py_None;
10855 return resultobj;
10856 fail:
10857 return NULL;
10858 }
10859
10860
10861 static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
10862 PyObject *resultobj;
10863 wxDC *arg1 = (wxDC *) 0 ;
10864 wxRect *arg2 = 0 ;
10865 wxRect temp2 ;
10866 PyObject * obj0 = 0 ;
10867 PyObject * obj1 = 0 ;
10868 char *kwnames[] = {
10869 (char *) "self",(char *) "rect", NULL
10870 };
10871
10872 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
10873 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10874 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10875 {
10876 arg2 = &temp2;
10877 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10878 }
10879 {
10880 PyThreadState* __tstate = wxPyBeginAllowThreads();
10881 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10882
10883 wxPyEndAllowThreads(__tstate);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 }
10886 Py_INCREF(Py_None); resultobj = Py_None;
10887 return resultobj;
10888 fail:
10889 return NULL;
10890 }
10891
10892
10893 static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
10894 PyObject *resultobj;
10895 wxDC *arg1 = (wxDC *) 0 ;
10896 int arg2 ;
10897 int arg3 ;
10898 int arg4 ;
10899 int arg5 ;
10900 double arg6 ;
10901 double arg7 ;
10902 PyObject * obj0 = 0 ;
10903 PyObject * obj1 = 0 ;
10904 PyObject * obj2 = 0 ;
10905 PyObject * obj3 = 0 ;
10906 PyObject * obj4 = 0 ;
10907 PyObject * obj5 = 0 ;
10908 PyObject * obj6 = 0 ;
10909 char *kwnames[] = {
10910 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10911 };
10912
10913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
10914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10916 arg2 = (int) SWIG_AsInt(obj1);
10917 if (PyErr_Occurred()) SWIG_fail;
10918 arg3 = (int) SWIG_AsInt(obj2);
10919 if (PyErr_Occurred()) SWIG_fail;
10920 arg4 = (int) SWIG_AsInt(obj3);
10921 if (PyErr_Occurred()) SWIG_fail;
10922 arg5 = (int) SWIG_AsInt(obj4);
10923 if (PyErr_Occurred()) SWIG_fail;
10924 arg6 = (double) SWIG_AsDouble(obj5);
10925 if (PyErr_Occurred()) SWIG_fail;
10926 arg7 = (double) SWIG_AsDouble(obj6);
10927 if (PyErr_Occurred()) SWIG_fail;
10928 {
10929 PyThreadState* __tstate = wxPyBeginAllowThreads();
10930 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10931
10932 wxPyEndAllowThreads(__tstate);
10933 if (PyErr_Occurred()) SWIG_fail;
10934 }
10935 Py_INCREF(Py_None); resultobj = Py_None;
10936 return resultobj;
10937 fail:
10938 return NULL;
10939 }
10940
10941
10942 static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
10943 PyObject *resultobj;
10944 wxDC *arg1 = (wxDC *) 0 ;
10945 wxPoint *arg2 = 0 ;
10946 wxSize *arg3 = 0 ;
10947 double arg4 ;
10948 double arg5 ;
10949 wxPoint temp2 ;
10950 wxSize temp3 ;
10951 PyObject * obj0 = 0 ;
10952 PyObject * obj1 = 0 ;
10953 PyObject * obj2 = 0 ;
10954 PyObject * obj3 = 0 ;
10955 PyObject * obj4 = 0 ;
10956 char *kwnames[] = {
10957 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10958 };
10959
10960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
10961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10963 {
10964 arg2 = &temp2;
10965 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10966 }
10967 {
10968 arg3 = &temp3;
10969 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10970 }
10971 arg4 = (double) SWIG_AsDouble(obj3);
10972 if (PyErr_Occurred()) SWIG_fail;
10973 arg5 = (double) SWIG_AsDouble(obj4);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 {
10976 PyThreadState* __tstate = wxPyBeginAllowThreads();
10977 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10978
10979 wxPyEndAllowThreads(__tstate);
10980 if (PyErr_Occurred()) SWIG_fail;
10981 }
10982 Py_INCREF(Py_None); resultobj = Py_None;
10983 return resultobj;
10984 fail:
10985 return NULL;
10986 }
10987
10988
10989 static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
10990 PyObject *resultobj;
10991 wxDC *arg1 = (wxDC *) 0 ;
10992 int arg2 ;
10993 int arg3 ;
10994 PyObject * obj0 = 0 ;
10995 PyObject * obj1 = 0 ;
10996 PyObject * obj2 = 0 ;
10997 char *kwnames[] = {
10998 (char *) "self",(char *) "x",(char *) "y", NULL
10999 };
11000
11001 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11002 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11003 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11004 arg2 = (int) SWIG_AsInt(obj1);
11005 if (PyErr_Occurred()) SWIG_fail;
11006 arg3 = (int) SWIG_AsInt(obj2);
11007 if (PyErr_Occurred()) SWIG_fail;
11008 {
11009 PyThreadState* __tstate = wxPyBeginAllowThreads();
11010 (arg1)->DrawPoint(arg2,arg3);
11011
11012 wxPyEndAllowThreads(__tstate);
11013 if (PyErr_Occurred()) SWIG_fail;
11014 }
11015 Py_INCREF(Py_None); resultobj = Py_None;
11016 return resultobj;
11017 fail:
11018 return NULL;
11019 }
11020
11021
11022 static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11023 PyObject *resultobj;
11024 wxDC *arg1 = (wxDC *) 0 ;
11025 wxPoint *arg2 = 0 ;
11026 wxPoint temp2 ;
11027 PyObject * obj0 = 0 ;
11028 PyObject * obj1 = 0 ;
11029 char *kwnames[] = {
11030 (char *) "self",(char *) "pt", NULL
11031 };
11032
11033 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
11034 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11035 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11036 {
11037 arg2 = &temp2;
11038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11039 }
11040 {
11041 PyThreadState* __tstate = wxPyBeginAllowThreads();
11042 (arg1)->DrawPoint((wxPoint const &)*arg2);
11043
11044 wxPyEndAllowThreads(__tstate);
11045 if (PyErr_Occurred()) SWIG_fail;
11046 }
11047 Py_INCREF(Py_None); resultobj = Py_None;
11048 return resultobj;
11049 fail:
11050 return NULL;
11051 }
11052
11053
11054 static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11055 PyObject *resultobj;
11056 wxDC *arg1 = (wxDC *) 0 ;
11057 int arg2 ;
11058 int arg3 ;
11059 int arg4 ;
11060 int arg5 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 PyObject * obj2 = 0 ;
11064 PyObject * obj3 = 0 ;
11065 PyObject * obj4 = 0 ;
11066 char *kwnames[] = {
11067 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11068 };
11069
11070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11073 arg2 = (int) SWIG_AsInt(obj1);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 arg3 = (int) SWIG_AsInt(obj2);
11076 if (PyErr_Occurred()) SWIG_fail;
11077 arg4 = (int) SWIG_AsInt(obj3);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 arg5 = (int) SWIG_AsInt(obj4);
11080 if (PyErr_Occurred()) SWIG_fail;
11081 {
11082 PyThreadState* __tstate = wxPyBeginAllowThreads();
11083 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11084
11085 wxPyEndAllowThreads(__tstate);
11086 if (PyErr_Occurred()) SWIG_fail;
11087 }
11088 Py_INCREF(Py_None); resultobj = Py_None;
11089 return resultobj;
11090 fail:
11091 return NULL;
11092 }
11093
11094
11095 static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11096 PyObject *resultobj;
11097 wxDC *arg1 = (wxDC *) 0 ;
11098 wxRect *arg2 = 0 ;
11099 wxRect temp2 ;
11100 PyObject * obj0 = 0 ;
11101 PyObject * obj1 = 0 ;
11102 char *kwnames[] = {
11103 (char *) "self",(char *) "rect", NULL
11104 };
11105
11106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
11107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11109 {
11110 arg2 = &temp2;
11111 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11112 }
11113 {
11114 PyThreadState* __tstate = wxPyBeginAllowThreads();
11115 (arg1)->DrawRectangle((wxRect const &)*arg2);
11116
11117 wxPyEndAllowThreads(__tstate);
11118 if (PyErr_Occurred()) SWIG_fail;
11119 }
11120 Py_INCREF(Py_None); resultobj = Py_None;
11121 return resultobj;
11122 fail:
11123 return NULL;
11124 }
11125
11126
11127 static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11128 PyObject *resultobj;
11129 wxDC *arg1 = (wxDC *) 0 ;
11130 wxPoint *arg2 = 0 ;
11131 wxSize *arg3 = 0 ;
11132 wxPoint temp2 ;
11133 wxSize temp3 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 PyObject * obj2 = 0 ;
11137 char *kwnames[] = {
11138 (char *) "self",(char *) "pt",(char *) "sz", NULL
11139 };
11140
11141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11144 {
11145 arg2 = &temp2;
11146 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11147 }
11148 {
11149 arg3 = &temp3;
11150 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11151 }
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
11155
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 Py_INCREF(Py_None); resultobj = Py_None;
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
11167 PyObject *resultobj;
11168 wxDC *arg1 = (wxDC *) 0 ;
11169 int arg2 ;
11170 int arg3 ;
11171 int arg4 ;
11172 int arg5 ;
11173 double arg6 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 PyObject * obj2 = 0 ;
11177 PyObject * obj3 = 0 ;
11178 PyObject * obj4 = 0 ;
11179 PyObject * obj5 = 0 ;
11180 char *kwnames[] = {
11181 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11182 };
11183
11184 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
11185 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11187 arg2 = (int) SWIG_AsInt(obj1);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 arg3 = (int) SWIG_AsInt(obj2);
11190 if (PyErr_Occurred()) SWIG_fail;
11191 arg4 = (int) SWIG_AsInt(obj3);
11192 if (PyErr_Occurred()) SWIG_fail;
11193 arg5 = (int) SWIG_AsInt(obj4);
11194 if (PyErr_Occurred()) SWIG_fail;
11195 arg6 = (double) SWIG_AsDouble(obj5);
11196 if (PyErr_Occurred()) SWIG_fail;
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 Py_INCREF(Py_None); resultobj = Py_None;
11205 return resultobj;
11206 fail:
11207 return NULL;
11208 }
11209
11210
11211 static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11212 PyObject *resultobj;
11213 wxDC *arg1 = (wxDC *) 0 ;
11214 wxRect *arg2 = 0 ;
11215 double arg3 ;
11216 wxRect temp2 ;
11217 PyObject * obj0 = 0 ;
11218 PyObject * obj1 = 0 ;
11219 PyObject * obj2 = 0 ;
11220 char *kwnames[] = {
11221 (char *) "self",(char *) "r",(char *) "radius", NULL
11222 };
11223
11224 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
11225 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11227 {
11228 arg2 = &temp2;
11229 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11230 }
11231 arg3 = (double) SWIG_AsDouble(obj2);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
11235 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
11236
11237 wxPyEndAllowThreads(__tstate);
11238 if (PyErr_Occurred()) SWIG_fail;
11239 }
11240 Py_INCREF(Py_None); resultobj = Py_None;
11241 return resultobj;
11242 fail:
11243 return NULL;
11244 }
11245
11246
11247 static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11248 PyObject *resultobj;
11249 wxDC *arg1 = (wxDC *) 0 ;
11250 wxPoint *arg2 = 0 ;
11251 wxSize *arg3 = 0 ;
11252 double arg4 ;
11253 wxPoint temp2 ;
11254 wxSize temp3 ;
11255 PyObject * obj0 = 0 ;
11256 PyObject * obj1 = 0 ;
11257 PyObject * obj2 = 0 ;
11258 PyObject * obj3 = 0 ;
11259 char *kwnames[] = {
11260 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
11261 };
11262
11263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11266 {
11267 arg2 = &temp2;
11268 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11269 }
11270 {
11271 arg3 = &temp3;
11272 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11273 }
11274 arg4 = (double) SWIG_AsDouble(obj3);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 {
11277 PyThreadState* __tstate = wxPyBeginAllowThreads();
11278 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
11279
11280 wxPyEndAllowThreads(__tstate);
11281 if (PyErr_Occurred()) SWIG_fail;
11282 }
11283 Py_INCREF(Py_None); resultobj = Py_None;
11284 return resultobj;
11285 fail:
11286 return NULL;
11287 }
11288
11289
11290 static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
11291 PyObject *resultobj;
11292 wxDC *arg1 = (wxDC *) 0 ;
11293 int arg2 ;
11294 int arg3 ;
11295 int arg4 ;
11296 PyObject * obj0 = 0 ;
11297 PyObject * obj1 = 0 ;
11298 PyObject * obj2 = 0 ;
11299 PyObject * obj3 = 0 ;
11300 char *kwnames[] = {
11301 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11302 };
11303
11304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11307 arg2 = (int) SWIG_AsInt(obj1);
11308 if (PyErr_Occurred()) SWIG_fail;
11309 arg3 = (int) SWIG_AsInt(obj2);
11310 if (PyErr_Occurred()) SWIG_fail;
11311 arg4 = (int) SWIG_AsInt(obj3);
11312 if (PyErr_Occurred()) SWIG_fail;
11313 {
11314 PyThreadState* __tstate = wxPyBeginAllowThreads();
11315 (arg1)->DrawCircle(arg2,arg3,arg4);
11316
11317 wxPyEndAllowThreads(__tstate);
11318 if (PyErr_Occurred()) SWIG_fail;
11319 }
11320 Py_INCREF(Py_None); resultobj = Py_None;
11321 return resultobj;
11322 fail:
11323 return NULL;
11324 }
11325
11326
11327 static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11328 PyObject *resultobj;
11329 wxDC *arg1 = (wxDC *) 0 ;
11330 wxPoint *arg2 = 0 ;
11331 int arg3 ;
11332 wxPoint temp2 ;
11333 PyObject * obj0 = 0 ;
11334 PyObject * obj1 = 0 ;
11335 PyObject * obj2 = 0 ;
11336 char *kwnames[] = {
11337 (char *) "self",(char *) "pt",(char *) "radius", NULL
11338 };
11339
11340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11343 {
11344 arg2 = &temp2;
11345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11346 }
11347 arg3 = (int) SWIG_AsInt(obj2);
11348 if (PyErr_Occurred()) SWIG_fail;
11349 {
11350 PyThreadState* __tstate = wxPyBeginAllowThreads();
11351 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11352
11353 wxPyEndAllowThreads(__tstate);
11354 if (PyErr_Occurred()) SWIG_fail;
11355 }
11356 Py_INCREF(Py_None); resultobj = Py_None;
11357 return resultobj;
11358 fail:
11359 return NULL;
11360 }
11361
11362
11363 static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
11364 PyObject *resultobj;
11365 wxDC *arg1 = (wxDC *) 0 ;
11366 int arg2 ;
11367 int arg3 ;
11368 int arg4 ;
11369 int arg5 ;
11370 PyObject * obj0 = 0 ;
11371 PyObject * obj1 = 0 ;
11372 PyObject * obj2 = 0 ;
11373 PyObject * obj3 = 0 ;
11374 PyObject * obj4 = 0 ;
11375 char *kwnames[] = {
11376 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11377 };
11378
11379 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11380 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11381 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11382 arg2 = (int) SWIG_AsInt(obj1);
11383 if (PyErr_Occurred()) SWIG_fail;
11384 arg3 = (int) SWIG_AsInt(obj2);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 arg4 = (int) SWIG_AsInt(obj3);
11387 if (PyErr_Occurred()) SWIG_fail;
11388 arg5 = (int) SWIG_AsInt(obj4);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 {
11391 PyThreadState* __tstate = wxPyBeginAllowThreads();
11392 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11393
11394 wxPyEndAllowThreads(__tstate);
11395 if (PyErr_Occurred()) SWIG_fail;
11396 }
11397 Py_INCREF(Py_None); resultobj = Py_None;
11398 return resultobj;
11399 fail:
11400 return NULL;
11401 }
11402
11403
11404 static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
11405 PyObject *resultobj;
11406 wxDC *arg1 = (wxDC *) 0 ;
11407 wxRect *arg2 = 0 ;
11408 wxRect temp2 ;
11409 PyObject * obj0 = 0 ;
11410 PyObject * obj1 = 0 ;
11411 char *kwnames[] = {
11412 (char *) "self",(char *) "rect", NULL
11413 };
11414
11415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
11416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11418 {
11419 arg2 = &temp2;
11420 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11421 }
11422 {
11423 PyThreadState* __tstate = wxPyBeginAllowThreads();
11424 (arg1)->DrawEllipse((wxRect const &)*arg2);
11425
11426 wxPyEndAllowThreads(__tstate);
11427 if (PyErr_Occurred()) SWIG_fail;
11428 }
11429 Py_INCREF(Py_None); resultobj = Py_None;
11430 return resultobj;
11431 fail:
11432 return NULL;
11433 }
11434
11435
11436 static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11437 PyObject *resultobj;
11438 wxDC *arg1 = (wxDC *) 0 ;
11439 wxPoint *arg2 = 0 ;
11440 wxSize *arg3 = 0 ;
11441 wxPoint temp2 ;
11442 wxSize temp3 ;
11443 PyObject * obj0 = 0 ;
11444 PyObject * obj1 = 0 ;
11445 PyObject * obj2 = 0 ;
11446 char *kwnames[] = {
11447 (char *) "self",(char *) "pt",(char *) "sz", NULL
11448 };
11449
11450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
11451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11453 {
11454 arg2 = &temp2;
11455 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11456 }
11457 {
11458 arg3 = &temp3;
11459 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11460 }
11461 {
11462 PyThreadState* __tstate = wxPyBeginAllowThreads();
11463 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
11464
11465 wxPyEndAllowThreads(__tstate);
11466 if (PyErr_Occurred()) SWIG_fail;
11467 }
11468 Py_INCREF(Py_None); resultobj = Py_None;
11469 return resultobj;
11470 fail:
11471 return NULL;
11472 }
11473
11474
11475 static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
11476 PyObject *resultobj;
11477 wxDC *arg1 = (wxDC *) 0 ;
11478 wxIcon *arg2 = 0 ;
11479 int arg3 ;
11480 int arg4 ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 PyObject * obj2 = 0 ;
11484 PyObject * obj3 = 0 ;
11485 char *kwnames[] = {
11486 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11487 };
11488
11489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11492 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11493 SWIG_POINTER_EXCEPTION | 0)) == -1)
11494 SWIG_fail;
11495 if (arg2 == NULL) {
11496 PyErr_SetString(PyExc_TypeError,"null reference");
11497 SWIG_fail;
11498 }
11499 arg3 = (int) SWIG_AsInt(obj2);
11500 if (PyErr_Occurred()) SWIG_fail;
11501 arg4 = (int) SWIG_AsInt(obj3);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 {
11504 PyThreadState* __tstate = wxPyBeginAllowThreads();
11505 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11506
11507 wxPyEndAllowThreads(__tstate);
11508 if (PyErr_Occurred()) SWIG_fail;
11509 }
11510 Py_INCREF(Py_None); resultobj = Py_None;
11511 return resultobj;
11512 fail:
11513 return NULL;
11514 }
11515
11516
11517 static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11518 PyObject *resultobj;
11519 wxDC *arg1 = (wxDC *) 0 ;
11520 wxIcon *arg2 = 0 ;
11521 wxPoint *arg3 = 0 ;
11522 wxPoint temp3 ;
11523 PyObject * obj0 = 0 ;
11524 PyObject * obj1 = 0 ;
11525 PyObject * obj2 = 0 ;
11526 char *kwnames[] = {
11527 (char *) "self",(char *) "icon",(char *) "pt", NULL
11528 };
11529
11530 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11531 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11532 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11533 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11534 SWIG_POINTER_EXCEPTION | 0)) == -1)
11535 SWIG_fail;
11536 if (arg2 == NULL) {
11537 PyErr_SetString(PyExc_TypeError,"null reference");
11538 SWIG_fail;
11539 }
11540 {
11541 arg3 = &temp3;
11542 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11543 }
11544 {
11545 PyThreadState* __tstate = wxPyBeginAllowThreads();
11546 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11547
11548 wxPyEndAllowThreads(__tstate);
11549 if (PyErr_Occurred()) SWIG_fail;
11550 }
11551 Py_INCREF(Py_None); resultobj = Py_None;
11552 return resultobj;
11553 fail:
11554 return NULL;
11555 }
11556
11557
11558 static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
11559 PyObject *resultobj;
11560 wxDC *arg1 = (wxDC *) 0 ;
11561 wxBitmap *arg2 = 0 ;
11562 int arg3 ;
11563 int arg4 ;
11564 bool arg5 = (bool) False ;
11565 PyObject * obj0 = 0 ;
11566 PyObject * obj1 = 0 ;
11567 PyObject * obj2 = 0 ;
11568 PyObject * obj3 = 0 ;
11569 PyObject * obj4 = 0 ;
11570 char *kwnames[] = {
11571 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11572 };
11573
11574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11577 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11578 SWIG_POINTER_EXCEPTION | 0)) == -1)
11579 SWIG_fail;
11580 if (arg2 == NULL) {
11581 PyErr_SetString(PyExc_TypeError,"null reference");
11582 SWIG_fail;
11583 }
11584 arg3 = (int) SWIG_AsInt(obj2);
11585 if (PyErr_Occurred()) SWIG_fail;
11586 arg4 = (int) SWIG_AsInt(obj3);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 if (obj4) {
11589 arg5 = (bool) SWIG_AsBool(obj4);
11590 if (PyErr_Occurred()) SWIG_fail;
11591 }
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11595
11596 wxPyEndAllowThreads(__tstate);
11597 if (PyErr_Occurred()) SWIG_fail;
11598 }
11599 Py_INCREF(Py_None); resultobj = Py_None;
11600 return resultobj;
11601 fail:
11602 return NULL;
11603 }
11604
11605
11606 static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11607 PyObject *resultobj;
11608 wxDC *arg1 = (wxDC *) 0 ;
11609 wxBitmap *arg2 = 0 ;
11610 wxPoint *arg3 = 0 ;
11611 bool arg4 = (bool) False ;
11612 wxPoint temp3 ;
11613 PyObject * obj0 = 0 ;
11614 PyObject * obj1 = 0 ;
11615 PyObject * obj2 = 0 ;
11616 PyObject * obj3 = 0 ;
11617 char *kwnames[] = {
11618 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11619 };
11620
11621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11624 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11625 SWIG_POINTER_EXCEPTION | 0)) == -1)
11626 SWIG_fail;
11627 if (arg2 == NULL) {
11628 PyErr_SetString(PyExc_TypeError,"null reference");
11629 SWIG_fail;
11630 }
11631 {
11632 arg3 = &temp3;
11633 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11634 }
11635 if (obj3) {
11636 arg4 = (bool) SWIG_AsBool(obj3);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11642
11643 wxPyEndAllowThreads(__tstate);
11644 if (PyErr_Occurred()) SWIG_fail;
11645 }
11646 Py_INCREF(Py_None); resultobj = Py_None;
11647 return resultobj;
11648 fail:
11649 return NULL;
11650 }
11651
11652
11653 static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
11654 PyObject *resultobj;
11655 wxDC *arg1 = (wxDC *) 0 ;
11656 wxString *arg2 = 0 ;
11657 int arg3 ;
11658 int arg4 ;
11659 bool temp2 = False ;
11660 PyObject * obj0 = 0 ;
11661 PyObject * obj1 = 0 ;
11662 PyObject * obj2 = 0 ;
11663 PyObject * obj3 = 0 ;
11664 char *kwnames[] = {
11665 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11666 };
11667
11668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11671 {
11672 arg2 = wxString_in_helper(obj1);
11673 if (arg2 == NULL) SWIG_fail;
11674 temp2 = True;
11675 }
11676 arg3 = (int) SWIG_AsInt(obj2);
11677 if (PyErr_Occurred()) SWIG_fail;
11678 arg4 = (int) SWIG_AsInt(obj3);
11679 if (PyErr_Occurred()) SWIG_fail;
11680 {
11681 PyThreadState* __tstate = wxPyBeginAllowThreads();
11682 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11683
11684 wxPyEndAllowThreads(__tstate);
11685 if (PyErr_Occurred()) SWIG_fail;
11686 }
11687 Py_INCREF(Py_None); resultobj = Py_None;
11688 {
11689 if (temp2)
11690 delete arg2;
11691 }
11692 return resultobj;
11693 fail:
11694 {
11695 if (temp2)
11696 delete arg2;
11697 }
11698 return NULL;
11699 }
11700
11701
11702 static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj;
11704 wxDC *arg1 = (wxDC *) 0 ;
11705 wxString *arg2 = 0 ;
11706 wxPoint *arg3 = 0 ;
11707 bool temp2 = False ;
11708 wxPoint temp3 ;
11709 PyObject * obj0 = 0 ;
11710 PyObject * obj1 = 0 ;
11711 PyObject * obj2 = 0 ;
11712 char *kwnames[] = {
11713 (char *) "self",(char *) "text",(char *) "pt", NULL
11714 };
11715
11716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
11717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11719 {
11720 arg2 = wxString_in_helper(obj1);
11721 if (arg2 == NULL) SWIG_fail;
11722 temp2 = True;
11723 }
11724 {
11725 arg3 = &temp3;
11726 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11727 }
11728 {
11729 PyThreadState* __tstate = wxPyBeginAllowThreads();
11730 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11731
11732 wxPyEndAllowThreads(__tstate);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 }
11735 Py_INCREF(Py_None); resultobj = Py_None;
11736 {
11737 if (temp2)
11738 delete arg2;
11739 }
11740 return resultobj;
11741 fail:
11742 {
11743 if (temp2)
11744 delete arg2;
11745 }
11746 return NULL;
11747 }
11748
11749
11750 static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
11751 PyObject *resultobj;
11752 wxDC *arg1 = (wxDC *) 0 ;
11753 wxString *arg2 = 0 ;
11754 int arg3 ;
11755 int arg4 ;
11756 double arg5 ;
11757 bool temp2 = False ;
11758 PyObject * obj0 = 0 ;
11759 PyObject * obj1 = 0 ;
11760 PyObject * obj2 = 0 ;
11761 PyObject * obj3 = 0 ;
11762 PyObject * obj4 = 0 ;
11763 char *kwnames[] = {
11764 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11765 };
11766
11767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11770 {
11771 arg2 = wxString_in_helper(obj1);
11772 if (arg2 == NULL) SWIG_fail;
11773 temp2 = True;
11774 }
11775 arg3 = (int) SWIG_AsInt(obj2);
11776 if (PyErr_Occurred()) SWIG_fail;
11777 arg4 = (int) SWIG_AsInt(obj3);
11778 if (PyErr_Occurred()) SWIG_fail;
11779 arg5 = (double) SWIG_AsDouble(obj4);
11780 if (PyErr_Occurred()) SWIG_fail;
11781 {
11782 PyThreadState* __tstate = wxPyBeginAllowThreads();
11783 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11784
11785 wxPyEndAllowThreads(__tstate);
11786 if (PyErr_Occurred()) SWIG_fail;
11787 }
11788 Py_INCREF(Py_None); resultobj = Py_None;
11789 {
11790 if (temp2)
11791 delete arg2;
11792 }
11793 return resultobj;
11794 fail:
11795 {
11796 if (temp2)
11797 delete arg2;
11798 }
11799 return NULL;
11800 }
11801
11802
11803 static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
11804 PyObject *resultobj;
11805 wxDC *arg1 = (wxDC *) 0 ;
11806 wxString *arg2 = 0 ;
11807 wxPoint *arg3 = 0 ;
11808 double arg4 ;
11809 bool temp2 = False ;
11810 wxPoint temp3 ;
11811 PyObject * obj0 = 0 ;
11812 PyObject * obj1 = 0 ;
11813 PyObject * obj2 = 0 ;
11814 PyObject * obj3 = 0 ;
11815 char *kwnames[] = {
11816 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11817 };
11818
11819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
11820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11822 {
11823 arg2 = wxString_in_helper(obj1);
11824 if (arg2 == NULL) SWIG_fail;
11825 temp2 = True;
11826 }
11827 {
11828 arg3 = &temp3;
11829 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11830 }
11831 arg4 = (double) SWIG_AsDouble(obj3);
11832 if (PyErr_Occurred()) SWIG_fail;
11833 {
11834 PyThreadState* __tstate = wxPyBeginAllowThreads();
11835 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11836
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 Py_INCREF(Py_None); resultobj = Py_None;
11841 {
11842 if (temp2)
11843 delete arg2;
11844 }
11845 return resultobj;
11846 fail:
11847 {
11848 if (temp2)
11849 delete arg2;
11850 }
11851 return NULL;
11852 }
11853
11854
11855 static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
11856 PyObject *resultobj;
11857 wxDC *arg1 = (wxDC *) 0 ;
11858 int arg2 ;
11859 int arg3 ;
11860 int arg4 ;
11861 int arg5 ;
11862 wxDC *arg6 = (wxDC *) 0 ;
11863 int arg7 ;
11864 int arg8 ;
11865 int arg9 = (int) wxCOPY ;
11866 bool arg10 = (bool) False ;
11867 int arg11 = (int) -1 ;
11868 int arg12 = (int) -1 ;
11869 bool result;
11870 PyObject * obj0 = 0 ;
11871 PyObject * obj1 = 0 ;
11872 PyObject * obj2 = 0 ;
11873 PyObject * obj3 = 0 ;
11874 PyObject * obj4 = 0 ;
11875 PyObject * obj5 = 0 ;
11876 PyObject * obj6 = 0 ;
11877 PyObject * obj7 = 0 ;
11878 PyObject * obj8 = 0 ;
11879 PyObject * obj9 = 0 ;
11880 PyObject * obj10 = 0 ;
11881 PyObject * obj11 = 0 ;
11882 char *kwnames[] = {
11883 (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
11884 };
11885
11886 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;
11887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11889 arg2 = (int) SWIG_AsInt(obj1);
11890 if (PyErr_Occurred()) SWIG_fail;
11891 arg3 = (int) SWIG_AsInt(obj2);
11892 if (PyErr_Occurred()) SWIG_fail;
11893 arg4 = (int) SWIG_AsInt(obj3);
11894 if (PyErr_Occurred()) SWIG_fail;
11895 arg5 = (int) SWIG_AsInt(obj4);
11896 if (PyErr_Occurred()) SWIG_fail;
11897 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11898 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11899 arg7 = (int) SWIG_AsInt(obj6);
11900 if (PyErr_Occurred()) SWIG_fail;
11901 arg8 = (int) SWIG_AsInt(obj7);
11902 if (PyErr_Occurred()) SWIG_fail;
11903 if (obj8) {
11904 arg9 = (int) SWIG_AsInt(obj8);
11905 if (PyErr_Occurred()) SWIG_fail;
11906 }
11907 if (obj9) {
11908 arg10 = (bool) SWIG_AsBool(obj9);
11909 if (PyErr_Occurred()) SWIG_fail;
11910 }
11911 if (obj10) {
11912 arg11 = (int) SWIG_AsInt(obj10);
11913 if (PyErr_Occurred()) SWIG_fail;
11914 }
11915 if (obj11) {
11916 arg12 = (int) SWIG_AsInt(obj11);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 {
11920 PyThreadState* __tstate = wxPyBeginAllowThreads();
11921 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11922
11923 wxPyEndAllowThreads(__tstate);
11924 if (PyErr_Occurred()) SWIG_fail;
11925 }
11926 {
11927 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11928 }
11929 return resultobj;
11930 fail:
11931 return NULL;
11932 }
11933
11934
11935 static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj;
11937 wxDC *arg1 = (wxDC *) 0 ;
11938 wxPoint *arg2 = 0 ;
11939 wxSize *arg3 = 0 ;
11940 wxDC *arg4 = (wxDC *) 0 ;
11941 wxPoint *arg5 = 0 ;
11942 int arg6 = (int) wxCOPY ;
11943 bool arg7 = (bool) False ;
11944 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11945 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11946 bool result;
11947 wxPoint temp2 ;
11948 wxSize temp3 ;
11949 wxPoint temp5 ;
11950 wxPoint temp8 ;
11951 PyObject * obj0 = 0 ;
11952 PyObject * obj1 = 0 ;
11953 PyObject * obj2 = 0 ;
11954 PyObject * obj3 = 0 ;
11955 PyObject * obj4 = 0 ;
11956 PyObject * obj5 = 0 ;
11957 PyObject * obj6 = 0 ;
11958 PyObject * obj7 = 0 ;
11959 char *kwnames[] = {
11960 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11961 };
11962
11963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
11964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11966 {
11967 arg2 = &temp2;
11968 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11969 }
11970 {
11971 arg3 = &temp3;
11972 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11973 }
11974 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11976 {
11977 arg5 = &temp5;
11978 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11979 }
11980 if (obj5) {
11981 arg6 = (int) SWIG_AsInt(obj5);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 }
11984 if (obj6) {
11985 arg7 = (bool) SWIG_AsBool(obj6);
11986 if (PyErr_Occurred()) SWIG_fail;
11987 }
11988 if (obj7) {
11989 {
11990 arg8 = &temp8;
11991 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11992 }
11993 }
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11997
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 {
12002 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12003 }
12004 return resultobj;
12005 fail:
12006 return NULL;
12007 }
12008
12009
12010 static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12011 PyObject *resultobj;
12012 wxDC *arg1 = (wxDC *) 0 ;
12013 int arg2 ;
12014 int arg3 ;
12015 int arg4 ;
12016 int arg5 ;
12017 PyObject * obj0 = 0 ;
12018 PyObject * obj1 = 0 ;
12019 PyObject * obj2 = 0 ;
12020 PyObject * obj3 = 0 ;
12021 PyObject * obj4 = 0 ;
12022 char *kwnames[] = {
12023 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
12024 };
12025
12026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12027 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12029 arg2 = (int) SWIG_AsInt(obj1);
12030 if (PyErr_Occurred()) SWIG_fail;
12031 arg3 = (int) SWIG_AsInt(obj2);
12032 if (PyErr_Occurred()) SWIG_fail;
12033 arg4 = (int) SWIG_AsInt(obj3);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 arg5 = (int) SWIG_AsInt(obj4);
12036 if (PyErr_Occurred()) SWIG_fail;
12037 {
12038 PyThreadState* __tstate = wxPyBeginAllowThreads();
12039 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
12040
12041 wxPyEndAllowThreads(__tstate);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 Py_INCREF(Py_None); resultobj = Py_None;
12045 return resultobj;
12046 fail:
12047 return NULL;
12048 }
12049
12050
12051 static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12052 PyObject *resultobj;
12053 wxDC *arg1 = (wxDC *) 0 ;
12054 wxPoint *arg2 = 0 ;
12055 wxSize *arg3 = 0 ;
12056 wxPoint temp2 ;
12057 wxSize temp3 ;
12058 PyObject * obj0 = 0 ;
12059 PyObject * obj1 = 0 ;
12060 PyObject * obj2 = 0 ;
12061 char *kwnames[] = {
12062 (char *) "self",(char *) "pt",(char *) "sz", NULL
12063 };
12064
12065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12068 {
12069 arg2 = &temp2;
12070 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12071 }
12072 {
12073 arg3 = &temp3;
12074 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12075 }
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12079
12080 wxPyEndAllowThreads(__tstate);
12081 if (PyErr_Occurred()) SWIG_fail;
12082 }
12083 Py_INCREF(Py_None); resultobj = Py_None;
12084 return resultobj;
12085 fail:
12086 return NULL;
12087 }
12088
12089
12090 static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12091 PyObject *resultobj;
12092 wxDC *arg1 = (wxDC *) 0 ;
12093 wxRegion *arg2 = 0 ;
12094 PyObject * obj0 = 0 ;
12095 PyObject * obj1 = 0 ;
12096 char *kwnames[] = {
12097 (char *) "self",(char *) "region", NULL
12098 };
12099
12100 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12101 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12102 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12103 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12104 SWIG_POINTER_EXCEPTION | 0)) == -1)
12105 SWIG_fail;
12106 if (arg2 == NULL) {
12107 PyErr_SetString(PyExc_TypeError,"null reference");
12108 SWIG_fail;
12109 }
12110 {
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12113
12114 wxPyEndAllowThreads(__tstate);
12115 if (PyErr_Occurred()) SWIG_fail;
12116 }
12117 Py_INCREF(Py_None); resultobj = Py_None;
12118 return resultobj;
12119 fail:
12120 return NULL;
12121 }
12122
12123
12124 static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12125 PyObject *resultobj;
12126 wxDC *arg1 = (wxDC *) 0 ;
12127 wxRect *arg2 = 0 ;
12128 wxRect temp2 ;
12129 PyObject * obj0 = 0 ;
12130 PyObject * obj1 = 0 ;
12131 char *kwnames[] = {
12132 (char *) "self",(char *) "rect", NULL
12133 };
12134
12135 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12136 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12137 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12138 {
12139 arg2 = &temp2;
12140 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12141 }
12142 {
12143 PyThreadState* __tstate = wxPyBeginAllowThreads();
12144 (arg1)->SetClippingRegion((wxRect const &)*arg2);
12145
12146 wxPyEndAllowThreads(__tstate);
12147 if (PyErr_Occurred()) SWIG_fail;
12148 }
12149 Py_INCREF(Py_None); resultobj = Py_None;
12150 return resultobj;
12151 fail:
12152 return NULL;
12153 }
12154
12155
12156 static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj;
12158 wxDC *arg1 = (wxDC *) 0 ;
12159 int arg2 ;
12160 wxPoint *arg3 = (wxPoint *) 0 ;
12161 int arg4 = (int) 0 ;
12162 int arg5 = (int) 0 ;
12163 PyObject * obj0 = 0 ;
12164 PyObject * obj1 = 0 ;
12165 PyObject * obj2 = 0 ;
12166 PyObject * obj3 = 0 ;
12167 char *kwnames[] = {
12168 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12169 };
12170
12171 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12172 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12173 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12174 {
12175 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12176 if (arg3 == NULL) SWIG_fail;
12177 }
12178 if (obj2) {
12179 arg4 = (int) SWIG_AsInt(obj2);
12180 if (PyErr_Occurred()) SWIG_fail;
12181 }
12182 if (obj3) {
12183 arg5 = (int) SWIG_AsInt(obj3);
12184 if (PyErr_Occurred()) SWIG_fail;
12185 }
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12189
12190 wxPyEndAllowThreads(__tstate);
12191 if (PyErr_Occurred()) SWIG_fail;
12192 }
12193 Py_INCREF(Py_None); resultobj = Py_None;
12194 {
12195 if (arg3) delete [] arg3;
12196 }
12197 return resultobj;
12198 fail:
12199 {
12200 if (arg3) delete [] arg3;
12201 }
12202 return NULL;
12203 }
12204
12205
12206 static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12207 PyObject *resultobj;
12208 wxDC *arg1 = (wxDC *) 0 ;
12209 int arg2 ;
12210 wxPoint *arg3 = (wxPoint *) 0 ;
12211 int arg4 = (int) 0 ;
12212 int arg5 = (int) 0 ;
12213 int arg6 = (int) wxODDEVEN_RULE ;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 PyObject * obj2 = 0 ;
12217 PyObject * obj3 = 0 ;
12218 PyObject * obj4 = 0 ;
12219 char *kwnames[] = {
12220 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12221 };
12222
12223 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12224 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12225 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12226 {
12227 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12228 if (arg3 == NULL) SWIG_fail;
12229 }
12230 if (obj2) {
12231 arg4 = (int) SWIG_AsInt(obj2);
12232 if (PyErr_Occurred()) SWIG_fail;
12233 }
12234 if (obj3) {
12235 arg5 = (int) SWIG_AsInt(obj3);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 if (obj4) {
12239 arg6 = (int) SWIG_AsInt(obj4);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 {
12243 PyThreadState* __tstate = wxPyBeginAllowThreads();
12244 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12245
12246 wxPyEndAllowThreads(__tstate);
12247 if (PyErr_Occurred()) SWIG_fail;
12248 }
12249 Py_INCREF(Py_None); resultobj = Py_None;
12250 {
12251 if (arg3) delete [] arg3;
12252 }
12253 return resultobj;
12254 fail:
12255 {
12256 if (arg3) delete [] arg3;
12257 }
12258 return NULL;
12259 }
12260
12261
12262 static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12263 PyObject *resultobj;
12264 wxDC *arg1 = (wxDC *) 0 ;
12265 wxString *arg2 = 0 ;
12266 wxRect *arg3 = 0 ;
12267 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12268 int arg5 = (int) -1 ;
12269 bool temp2 = False ;
12270 wxRect temp3 ;
12271 PyObject * obj0 = 0 ;
12272 PyObject * obj1 = 0 ;
12273 PyObject * obj2 = 0 ;
12274 PyObject * obj3 = 0 ;
12275 PyObject * obj4 = 0 ;
12276 char *kwnames[] = {
12277 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12278 };
12279
12280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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 {
12289 arg3 = &temp3;
12290 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12291 }
12292 if (obj3) {
12293 arg4 = (int) SWIG_AsInt(obj3);
12294 if (PyErr_Occurred()) SWIG_fail;
12295 }
12296 if (obj4) {
12297 arg5 = (int) SWIG_AsInt(obj4);
12298 if (PyErr_Occurred()) SWIG_fail;
12299 }
12300 {
12301 PyThreadState* __tstate = wxPyBeginAllowThreads();
12302 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12303
12304 wxPyEndAllowThreads(__tstate);
12305 if (PyErr_Occurred()) SWIG_fail;
12306 }
12307 Py_INCREF(Py_None); resultobj = Py_None;
12308 {
12309 if (temp2)
12310 delete arg2;
12311 }
12312 return resultobj;
12313 fail:
12314 {
12315 if (temp2)
12316 delete arg2;
12317 }
12318 return NULL;
12319 }
12320
12321
12322 static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12323 PyObject *resultobj;
12324 wxDC *arg1 = (wxDC *) 0 ;
12325 wxString *arg2 = 0 ;
12326 wxBitmap *arg3 = 0 ;
12327 wxRect *arg4 = 0 ;
12328 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12329 int arg6 = (int) -1 ;
12330 wxRect result;
12331 bool temp2 = False ;
12332 wxRect temp4 ;
12333 PyObject * obj0 = 0 ;
12334 PyObject * obj1 = 0 ;
12335 PyObject * obj2 = 0 ;
12336 PyObject * obj3 = 0 ;
12337 PyObject * obj4 = 0 ;
12338 PyObject * obj5 = 0 ;
12339 char *kwnames[] = {
12340 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12341 };
12342
12343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12346 {
12347 arg2 = wxString_in_helper(obj1);
12348 if (arg2 == NULL) SWIG_fail;
12349 temp2 = True;
12350 }
12351 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12352 SWIG_POINTER_EXCEPTION | 0)) == -1)
12353 SWIG_fail;
12354 if (arg3 == NULL) {
12355 PyErr_SetString(PyExc_TypeError,"null reference");
12356 SWIG_fail;
12357 }
12358 {
12359 arg4 = &temp4;
12360 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12361 }
12362 if (obj4) {
12363 arg5 = (int) SWIG_AsInt(obj4);
12364 if (PyErr_Occurred()) SWIG_fail;
12365 }
12366 if (obj5) {
12367 arg6 = (int) SWIG_AsInt(obj5);
12368 if (PyErr_Occurred()) SWIG_fail;
12369 }
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12373
12374 wxPyEndAllowThreads(__tstate);
12375 if (PyErr_Occurred()) SWIG_fail;
12376 }
12377 {
12378 wxRect * resultptr;
12379 resultptr = new wxRect((wxRect &) result);
12380 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12381 }
12382 {
12383 if (temp2)
12384 delete arg2;
12385 }
12386 return resultobj;
12387 fail:
12388 {
12389 if (temp2)
12390 delete arg2;
12391 }
12392 return NULL;
12393 }
12394
12395
12396 static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12397 PyObject *resultobj;
12398 wxDC *arg1 = (wxDC *) 0 ;
12399 int arg2 ;
12400 wxPoint *arg3 = (wxPoint *) 0 ;
12401 PyObject * obj0 = 0 ;
12402 PyObject * obj1 = 0 ;
12403 char *kwnames[] = {
12404 (char *) "self",(char *) "points", NULL
12405 };
12406
12407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12410 {
12411 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12412 if (arg3 == NULL) SWIG_fail;
12413 }
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 (arg1)->DrawSpline(arg2,arg3);
12417
12418 wxPyEndAllowThreads(__tstate);
12419 if (PyErr_Occurred()) SWIG_fail;
12420 }
12421 Py_INCREF(Py_None); resultobj = Py_None;
12422 {
12423 if (arg3) delete [] arg3;
12424 }
12425 return resultobj;
12426 fail:
12427 {
12428 if (arg3) delete [] arg3;
12429 }
12430 return NULL;
12431 }
12432
12433
12434 static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12435 PyObject *resultobj;
12436 wxDC *arg1 = (wxDC *) 0 ;
12437 PyObject * obj0 = 0 ;
12438 char *kwnames[] = {
12439 (char *) "self", NULL
12440 };
12441
12442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12445 {
12446 PyThreadState* __tstate = wxPyBeginAllowThreads();
12447 (arg1)->Clear();
12448
12449 wxPyEndAllowThreads(__tstate);
12450 if (PyErr_Occurred()) SWIG_fail;
12451 }
12452 Py_INCREF(Py_None); resultobj = Py_None;
12453 return resultobj;
12454 fail:
12455 return NULL;
12456 }
12457
12458
12459 static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12460 PyObject *resultobj;
12461 wxDC *arg1 = (wxDC *) 0 ;
12462 wxString *arg2 = 0 ;
12463 bool result;
12464 bool temp2 = False ;
12465 PyObject * obj0 = 0 ;
12466 PyObject * obj1 = 0 ;
12467 char *kwnames[] = {
12468 (char *) "self",(char *) "message", NULL
12469 };
12470
12471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12474 {
12475 arg2 = wxString_in_helper(obj1);
12476 if (arg2 == NULL) SWIG_fail;
12477 temp2 = True;
12478 }
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12482
12483 wxPyEndAllowThreads(__tstate);
12484 if (PyErr_Occurred()) SWIG_fail;
12485 }
12486 {
12487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12488 }
12489 {
12490 if (temp2)
12491 delete arg2;
12492 }
12493 return resultobj;
12494 fail:
12495 {
12496 if (temp2)
12497 delete arg2;
12498 }
12499 return NULL;
12500 }
12501
12502
12503 static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj;
12505 wxDC *arg1 = (wxDC *) 0 ;
12506 PyObject * obj0 = 0 ;
12507 char *kwnames[] = {
12508 (char *) "self", NULL
12509 };
12510
12511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 (arg1)->EndDoc();
12517
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 Py_INCREF(Py_None); resultobj = Py_None;
12522 return resultobj;
12523 fail:
12524 return NULL;
12525 }
12526
12527
12528 static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxDC *arg1 = (wxDC *) 0 ;
12531 PyObject * obj0 = 0 ;
12532 char *kwnames[] = {
12533 (char *) "self", NULL
12534 };
12535
12536 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12537 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12538 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 (arg1)->StartPage();
12542
12543 wxPyEndAllowThreads(__tstate);
12544 if (PyErr_Occurred()) SWIG_fail;
12545 }
12546 Py_INCREF(Py_None); resultobj = Py_None;
12547 return resultobj;
12548 fail:
12549 return NULL;
12550 }
12551
12552
12553 static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12554 PyObject *resultobj;
12555 wxDC *arg1 = (wxDC *) 0 ;
12556 PyObject * obj0 = 0 ;
12557 char *kwnames[] = {
12558 (char *) "self", NULL
12559 };
12560
12561 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12562 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 (arg1)->EndPage();
12567
12568 wxPyEndAllowThreads(__tstate);
12569 if (PyErr_Occurred()) SWIG_fail;
12570 }
12571 Py_INCREF(Py_None); resultobj = Py_None;
12572 return resultobj;
12573 fail:
12574 return NULL;
12575 }
12576
12577
12578 static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12579 PyObject *resultobj;
12580 wxDC *arg1 = (wxDC *) 0 ;
12581 wxFont *arg2 = 0 ;
12582 PyObject * obj0 = 0 ;
12583 PyObject * obj1 = 0 ;
12584 char *kwnames[] = {
12585 (char *) "self",(char *) "font", NULL
12586 };
12587
12588 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12589 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12590 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12591 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12592 SWIG_POINTER_EXCEPTION | 0)) == -1)
12593 SWIG_fail;
12594 if (arg2 == NULL) {
12595 PyErr_SetString(PyExc_TypeError,"null reference");
12596 SWIG_fail;
12597 }
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 (arg1)->SetFont((wxFont const &)*arg2);
12601
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 Py_INCREF(Py_None); resultobj = Py_None;
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12613 PyObject *resultobj;
12614 wxDC *arg1 = (wxDC *) 0 ;
12615 wxPen *arg2 = 0 ;
12616 PyObject * obj0 = 0 ;
12617 PyObject * obj1 = 0 ;
12618 char *kwnames[] = {
12619 (char *) "self",(char *) "pen", NULL
12620 };
12621
12622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12625 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12626 SWIG_POINTER_EXCEPTION | 0)) == -1)
12627 SWIG_fail;
12628 if (arg2 == NULL) {
12629 PyErr_SetString(PyExc_TypeError,"null reference");
12630 SWIG_fail;
12631 }
12632 {
12633 PyThreadState* __tstate = wxPyBeginAllowThreads();
12634 (arg1)->SetPen((wxPen const &)*arg2);
12635
12636 wxPyEndAllowThreads(__tstate);
12637 if (PyErr_Occurred()) SWIG_fail;
12638 }
12639 Py_INCREF(Py_None); resultobj = Py_None;
12640 return resultobj;
12641 fail:
12642 return NULL;
12643 }
12644
12645
12646 static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12647 PyObject *resultobj;
12648 wxDC *arg1 = (wxDC *) 0 ;
12649 wxBrush *arg2 = 0 ;
12650 PyObject * obj0 = 0 ;
12651 PyObject * obj1 = 0 ;
12652 char *kwnames[] = {
12653 (char *) "self",(char *) "brush", NULL
12654 };
12655
12656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12658 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12659 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12660 SWIG_POINTER_EXCEPTION | 0)) == -1)
12661 SWIG_fail;
12662 if (arg2 == NULL) {
12663 PyErr_SetString(PyExc_TypeError,"null reference");
12664 SWIG_fail;
12665 }
12666 {
12667 PyThreadState* __tstate = wxPyBeginAllowThreads();
12668 (arg1)->SetBrush((wxBrush const &)*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_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12681 PyObject *resultobj;
12682 wxDC *arg1 = (wxDC *) 0 ;
12683 wxBrush *arg2 = 0 ;
12684 PyObject * obj0 = 0 ;
12685 PyObject * obj1 = 0 ;
12686 char *kwnames[] = {
12687 (char *) "self",(char *) "brush", NULL
12688 };
12689
12690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",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_wxBrush,
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)->SetBackground((wxBrush 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_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj;
12716 wxDC *arg1 = (wxDC *) 0 ;
12717 int arg2 ;
12718 PyObject * obj0 = 0 ;
12719 PyObject * obj1 = 0 ;
12720 char *kwnames[] = {
12721 (char *) "self",(char *) "mode", NULL
12722 };
12723
12724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12727 arg2 = (int) SWIG_AsInt(obj1);
12728 if (PyErr_Occurred()) SWIG_fail;
12729 {
12730 PyThreadState* __tstate = wxPyBeginAllowThreads();
12731 (arg1)->SetBackgroundMode(arg2);
12732
12733 wxPyEndAllowThreads(__tstate);
12734 if (PyErr_Occurred()) SWIG_fail;
12735 }
12736 Py_INCREF(Py_None); resultobj = Py_None;
12737 return resultobj;
12738 fail:
12739 return NULL;
12740 }
12741
12742
12743 static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12744 PyObject *resultobj;
12745 wxDC *arg1 = (wxDC *) 0 ;
12746 wxPalette *arg2 = 0 ;
12747 PyObject * obj0 = 0 ;
12748 PyObject * obj1 = 0 ;
12749 char *kwnames[] = {
12750 (char *) "self",(char *) "palette", NULL
12751 };
12752
12753 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12754 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12755 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12756 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12757 SWIG_POINTER_EXCEPTION | 0)) == -1)
12758 SWIG_fail;
12759 if (arg2 == NULL) {
12760 PyErr_SetString(PyExc_TypeError,"null reference");
12761 SWIG_fail;
12762 }
12763 {
12764 PyThreadState* __tstate = wxPyBeginAllowThreads();
12765 (arg1)->SetPalette((wxPalette const &)*arg2);
12766
12767 wxPyEndAllowThreads(__tstate);
12768 if (PyErr_Occurred()) SWIG_fail;
12769 }
12770 Py_INCREF(Py_None); resultobj = Py_None;
12771 return resultobj;
12772 fail:
12773 return NULL;
12774 }
12775
12776
12777 static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12778 PyObject *resultobj;
12779 wxDC *arg1 = (wxDC *) 0 ;
12780 PyObject * obj0 = 0 ;
12781 char *kwnames[] = {
12782 (char *) "self", NULL
12783 };
12784
12785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12788 {
12789 PyThreadState* __tstate = wxPyBeginAllowThreads();
12790 (arg1)->DestroyClippingRegion();
12791
12792 wxPyEndAllowThreads(__tstate);
12793 if (PyErr_Occurred()) SWIG_fail;
12794 }
12795 Py_INCREF(Py_None); resultobj = Py_None;
12796 return resultobj;
12797 fail:
12798 return NULL;
12799 }
12800
12801
12802 static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12803 PyObject *resultobj;
12804 wxDC *arg1 = (wxDC *) 0 ;
12805 int *arg2 = (int *) 0 ;
12806 int *arg3 = (int *) 0 ;
12807 int *arg4 = (int *) 0 ;
12808 int *arg5 = (int *) 0 ;
12809 int temp2 ;
12810 int temp3 ;
12811 int temp4 ;
12812 int temp5 ;
12813 PyObject * obj0 = 0 ;
12814 char *kwnames[] = {
12815 (char *) "self", NULL
12816 };
12817
12818 arg2 = &temp2;
12819 arg3 = &temp3;
12820 arg4 = &temp4;
12821 arg5 = &temp5;
12822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12825 {
12826 PyThreadState* __tstate = wxPyBeginAllowThreads();
12827 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12828
12829 wxPyEndAllowThreads(__tstate);
12830 if (PyErr_Occurred()) SWIG_fail;
12831 }
12832 Py_INCREF(Py_None); resultobj = Py_None;
12833 {
12834 PyObject *o = PyInt_FromLong((long) (*arg2));
12835 resultobj = t_output_helper(resultobj,o);
12836 }
12837 {
12838 PyObject *o = PyInt_FromLong((long) (*arg3));
12839 resultobj = t_output_helper(resultobj,o);
12840 }
12841 {
12842 PyObject *o = PyInt_FromLong((long) (*arg4));
12843 resultobj = t_output_helper(resultobj,o);
12844 }
12845 {
12846 PyObject *o = PyInt_FromLong((long) (*arg5));
12847 resultobj = t_output_helper(resultobj,o);
12848 }
12849 return resultobj;
12850 fail:
12851 return NULL;
12852 }
12853
12854
12855 static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12856 PyObject *resultobj;
12857 wxDC *arg1 = (wxDC *) 0 ;
12858 wxRect result;
12859 PyObject * obj0 = 0 ;
12860 char *kwnames[] = {
12861 (char *) "self", NULL
12862 };
12863
12864 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12865 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12866 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12867 {
12868 PyThreadState* __tstate = wxPyBeginAllowThreads();
12869 result = wxDC_GetClippingRect(arg1);
12870
12871 wxPyEndAllowThreads(__tstate);
12872 if (PyErr_Occurred()) SWIG_fail;
12873 }
12874 {
12875 wxRect * resultptr;
12876 resultptr = new wxRect((wxRect &) result);
12877 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12878 }
12879 return resultobj;
12880 fail:
12881 return NULL;
12882 }
12883
12884
12885 static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12886 PyObject *resultobj;
12887 wxDC *arg1 = (wxDC *) 0 ;
12888 int result;
12889 PyObject * obj0 = 0 ;
12890 char *kwnames[] = {
12891 (char *) "self", NULL
12892 };
12893
12894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12895 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12896 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 result = (int)((wxDC const *)arg1)->GetCharHeight();
12900
12901 wxPyEndAllowThreads(__tstate);
12902 if (PyErr_Occurred()) SWIG_fail;
12903 }
12904 resultobj = SWIG_FromInt((int)result);
12905 return resultobj;
12906 fail:
12907 return NULL;
12908 }
12909
12910
12911 static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12912 PyObject *resultobj;
12913 wxDC *arg1 = (wxDC *) 0 ;
12914 int result;
12915 PyObject * obj0 = 0 ;
12916 char *kwnames[] = {
12917 (char *) "self", NULL
12918 };
12919
12920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12923 {
12924 PyThreadState* __tstate = wxPyBeginAllowThreads();
12925 result = (int)((wxDC const *)arg1)->GetCharWidth();
12926
12927 wxPyEndAllowThreads(__tstate);
12928 if (PyErr_Occurred()) SWIG_fail;
12929 }
12930 resultobj = SWIG_FromInt((int)result);
12931 return resultobj;
12932 fail:
12933 return NULL;
12934 }
12935
12936
12937 static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12938 PyObject *resultobj;
12939 wxDC *arg1 = (wxDC *) 0 ;
12940 wxString *arg2 = 0 ;
12941 int *arg3 = (int *) 0 ;
12942 int *arg4 = (int *) 0 ;
12943 bool temp2 = False ;
12944 int temp3 ;
12945 int temp4 ;
12946 PyObject * obj0 = 0 ;
12947 PyObject * obj1 = 0 ;
12948 char *kwnames[] = {
12949 (char *) "self",(char *) "string", NULL
12950 };
12951
12952 arg3 = &temp3;
12953 arg4 = &temp4;
12954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) 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 {
12963 PyThreadState* __tstate = wxPyBeginAllowThreads();
12964 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12965
12966 wxPyEndAllowThreads(__tstate);
12967 if (PyErr_Occurred()) SWIG_fail;
12968 }
12969 Py_INCREF(Py_None); resultobj = Py_None;
12970 {
12971 PyObject *o = PyInt_FromLong((long) (*arg3));
12972 resultobj = t_output_helper(resultobj,o);
12973 }
12974 {
12975 PyObject *o = PyInt_FromLong((long) (*arg4));
12976 resultobj = t_output_helper(resultobj,o);
12977 }
12978 {
12979 if (temp2)
12980 delete arg2;
12981 }
12982 return resultobj;
12983 fail:
12984 {
12985 if (temp2)
12986 delete arg2;
12987 }
12988 return NULL;
12989 }
12990
12991
12992 static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12993 PyObject *resultobj;
12994 wxDC *arg1 = (wxDC *) 0 ;
12995 wxString *arg2 = 0 ;
12996 int *arg3 = (int *) 0 ;
12997 int *arg4 = (int *) 0 ;
12998 int *arg5 = (int *) 0 ;
12999 int *arg6 = (int *) 0 ;
13000 wxFont *arg7 = (wxFont *) NULL ;
13001 bool temp2 = False ;
13002 int temp3 ;
13003 int temp4 ;
13004 int temp5 ;
13005 int temp6 ;
13006 PyObject * obj0 = 0 ;
13007 PyObject * obj1 = 0 ;
13008 PyObject * obj2 = 0 ;
13009 char *kwnames[] = {
13010 (char *) "self",(char *) "string",(char *) "font", NULL
13011 };
13012
13013 arg3 = &temp3;
13014 arg4 = &temp4;
13015 arg5 = &temp5;
13016 arg6 = &temp6;
13017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13020 {
13021 arg2 = wxString_in_helper(obj1);
13022 if (arg2 == NULL) SWIG_fail;
13023 temp2 = True;
13024 }
13025 if (obj2) {
13026 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
13027 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13028 }
13029 {
13030 PyThreadState* __tstate = wxPyBeginAllowThreads();
13031 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
13032
13033 wxPyEndAllowThreads(__tstate);
13034 if (PyErr_Occurred()) SWIG_fail;
13035 }
13036 Py_INCREF(Py_None); resultobj = Py_None;
13037 {
13038 PyObject *o = PyInt_FromLong((long) (*arg3));
13039 resultobj = t_output_helper(resultobj,o);
13040 }
13041 {
13042 PyObject *o = PyInt_FromLong((long) (*arg4));
13043 resultobj = t_output_helper(resultobj,o);
13044 }
13045 {
13046 PyObject *o = PyInt_FromLong((long) (*arg5));
13047 resultobj = t_output_helper(resultobj,o);
13048 }
13049 {
13050 PyObject *o = PyInt_FromLong((long) (*arg6));
13051 resultobj = t_output_helper(resultobj,o);
13052 }
13053 {
13054 if (temp2)
13055 delete arg2;
13056 }
13057 return resultobj;
13058 fail:
13059 {
13060 if (temp2)
13061 delete arg2;
13062 }
13063 return NULL;
13064 }
13065
13066
13067 static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj;
13069 wxDC *arg1 = (wxDC *) 0 ;
13070 wxString *arg2 = 0 ;
13071 int *arg3 = (int *) 0 ;
13072 int *arg4 = (int *) 0 ;
13073 int *arg5 = (int *) 0 ;
13074 wxFont *arg6 = (wxFont *) NULL ;
13075 bool temp2 = False ;
13076 int temp3 ;
13077 int temp4 ;
13078 int temp5 ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 PyObject * obj2 = 0 ;
13082 char *kwnames[] = {
13083 (char *) "self",(char *) "text",(char *) "font", NULL
13084 };
13085
13086 arg3 = &temp3;
13087 arg4 = &temp4;
13088 arg5 = &temp5;
13089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13092 {
13093 arg2 = wxString_in_helper(obj1);
13094 if (arg2 == NULL) SWIG_fail;
13095 temp2 = True;
13096 }
13097 if (obj2) {
13098 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13100 }
13101 {
13102 PyThreadState* __tstate = wxPyBeginAllowThreads();
13103 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13104
13105 wxPyEndAllowThreads(__tstate);
13106 if (PyErr_Occurred()) SWIG_fail;
13107 }
13108 Py_INCREF(Py_None); resultobj = Py_None;
13109 {
13110 PyObject *o = PyInt_FromLong((long) (*arg3));
13111 resultobj = t_output_helper(resultobj,o);
13112 }
13113 {
13114 PyObject *o = PyInt_FromLong((long) (*arg4));
13115 resultobj = t_output_helper(resultobj,o);
13116 }
13117 {
13118 PyObject *o = PyInt_FromLong((long) (*arg5));
13119 resultobj = t_output_helper(resultobj,o);
13120 }
13121 {
13122 if (temp2)
13123 delete arg2;
13124 }
13125 return resultobj;
13126 fail:
13127 {
13128 if (temp2)
13129 delete arg2;
13130 }
13131 return NULL;
13132 }
13133
13134
13135 static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj;
13137 wxDC *arg1 = (wxDC *) 0 ;
13138 wxString *arg2 = 0 ;
13139 wxArrayInt result;
13140 bool temp2 = False ;
13141 PyObject * obj0 = 0 ;
13142 PyObject * obj1 = 0 ;
13143 char *kwnames[] = {
13144 (char *) "self",(char *) "text", NULL
13145 };
13146
13147 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13148 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13149 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13150 {
13151 arg2 = wxString_in_helper(obj1);
13152 if (arg2 == NULL) SWIG_fail;
13153 temp2 = True;
13154 }
13155 {
13156 PyThreadState* __tstate = wxPyBeginAllowThreads();
13157 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13158
13159 wxPyEndAllowThreads(__tstate);
13160 if (PyErr_Occurred()) SWIG_fail;
13161 }
13162 {
13163 resultobj = PyList_New(0);
13164 size_t idx;
13165 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13166 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13167 PyList_Append(resultobj, val);
13168 Py_DECREF(val);
13169 }
13170 }
13171 {
13172 if (temp2)
13173 delete arg2;
13174 }
13175 return resultobj;
13176 fail:
13177 {
13178 if (temp2)
13179 delete arg2;
13180 }
13181 return NULL;
13182 }
13183
13184
13185 static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13186 PyObject *resultobj;
13187 wxDC *arg1 = (wxDC *) 0 ;
13188 wxSize result;
13189 PyObject * obj0 = 0 ;
13190 char *kwnames[] = {
13191 (char *) "self", NULL
13192 };
13193
13194 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13195 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13196 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13197 {
13198 PyThreadState* __tstate = wxPyBeginAllowThreads();
13199 result = (arg1)->GetSize();
13200
13201 wxPyEndAllowThreads(__tstate);
13202 if (PyErr_Occurred()) SWIG_fail;
13203 }
13204 {
13205 wxSize * resultptr;
13206 resultptr = new wxSize((wxSize &) result);
13207 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13208 }
13209 return resultobj;
13210 fail:
13211 return NULL;
13212 }
13213
13214
13215 static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13216 PyObject *resultobj;
13217 wxDC *arg1 = (wxDC *) 0 ;
13218 int *arg2 = (int *) 0 ;
13219 int *arg3 = (int *) 0 ;
13220 int temp2 ;
13221 int temp3 ;
13222 PyObject * obj0 = 0 ;
13223 char *kwnames[] = {
13224 (char *) "self", NULL
13225 };
13226
13227 arg2 = &temp2;
13228 arg3 = &temp3;
13229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13232 {
13233 PyThreadState* __tstate = wxPyBeginAllowThreads();
13234 (arg1)->GetSize(arg2,arg3);
13235
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 Py_INCREF(Py_None); resultobj = Py_None;
13240 {
13241 PyObject *o = PyInt_FromLong((long) (*arg2));
13242 resultobj = t_output_helper(resultobj,o);
13243 }
13244 {
13245 PyObject *o = PyInt_FromLong((long) (*arg3));
13246 resultobj = t_output_helper(resultobj,o);
13247 }
13248 return resultobj;
13249 fail:
13250 return NULL;
13251 }
13252
13253
13254 static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13255 PyObject *resultobj;
13256 wxDC *arg1 = (wxDC *) 0 ;
13257 wxSize result;
13258 PyObject * obj0 = 0 ;
13259 char *kwnames[] = {
13260 (char *) "self", NULL
13261 };
13262
13263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13266 {
13267 PyThreadState* __tstate = wxPyBeginAllowThreads();
13268 result = ((wxDC const *)arg1)->GetSizeMM();
13269
13270 wxPyEndAllowThreads(__tstate);
13271 if (PyErr_Occurred()) SWIG_fail;
13272 }
13273 {
13274 wxSize * resultptr;
13275 resultptr = new wxSize((wxSize &) result);
13276 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13277 }
13278 return resultobj;
13279 fail:
13280 return NULL;
13281 }
13282
13283
13284 static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13285 PyObject *resultobj;
13286 wxDC *arg1 = (wxDC *) 0 ;
13287 int *arg2 = (int *) 0 ;
13288 int *arg3 = (int *) 0 ;
13289 int temp2 ;
13290 int temp3 ;
13291 PyObject * obj0 = 0 ;
13292 char *kwnames[] = {
13293 (char *) "self", NULL
13294 };
13295
13296 arg2 = &temp2;
13297 arg3 = &temp3;
13298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13301 {
13302 PyThreadState* __tstate = wxPyBeginAllowThreads();
13303 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13304
13305 wxPyEndAllowThreads(__tstate);
13306 if (PyErr_Occurred()) SWIG_fail;
13307 }
13308 Py_INCREF(Py_None); resultobj = Py_None;
13309 {
13310 PyObject *o = PyInt_FromLong((long) (*arg2));
13311 resultobj = t_output_helper(resultobj,o);
13312 }
13313 {
13314 PyObject *o = PyInt_FromLong((long) (*arg3));
13315 resultobj = t_output_helper(resultobj,o);
13316 }
13317 return resultobj;
13318 fail:
13319 return NULL;
13320 }
13321
13322
13323 static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13324 PyObject *resultobj;
13325 wxDC *arg1 = (wxDC *) 0 ;
13326 int arg2 ;
13327 int result;
13328 PyObject * obj0 = 0 ;
13329 PyObject * obj1 = 0 ;
13330 char *kwnames[] = {
13331 (char *) "self",(char *) "x", NULL
13332 };
13333
13334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13337 arg2 = (int) SWIG_AsInt(obj1);
13338 if (PyErr_Occurred()) SWIG_fail;
13339 {
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13342
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 resultobj = SWIG_FromInt((int)result);
13347 return resultobj;
13348 fail:
13349 return NULL;
13350 }
13351
13352
13353 static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13354 PyObject *resultobj;
13355 wxDC *arg1 = (wxDC *) 0 ;
13356 int arg2 ;
13357 int result;
13358 PyObject * obj0 = 0 ;
13359 PyObject * obj1 = 0 ;
13360 char *kwnames[] = {
13361 (char *) "self",(char *) "y", NULL
13362 };
13363
13364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13367 arg2 = (int) SWIG_AsInt(obj1);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 {
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13372
13373 wxPyEndAllowThreads(__tstate);
13374 if (PyErr_Occurred()) SWIG_fail;
13375 }
13376 resultobj = SWIG_FromInt((int)result);
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13384 PyObject *resultobj;
13385 wxDC *arg1 = (wxDC *) 0 ;
13386 int arg2 ;
13387 int result;
13388 PyObject * obj0 = 0 ;
13389 PyObject * obj1 = 0 ;
13390 char *kwnames[] = {
13391 (char *) "self",(char *) "x", NULL
13392 };
13393
13394 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13395 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13397 arg2 = (int) SWIG_AsInt(obj1);
13398 if (PyErr_Occurred()) SWIG_fail;
13399 {
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13402
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 resultobj = SWIG_FromInt((int)result);
13407 return resultobj;
13408 fail:
13409 return NULL;
13410 }
13411
13412
13413 static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13414 PyObject *resultobj;
13415 wxDC *arg1 = (wxDC *) 0 ;
13416 int arg2 ;
13417 int result;
13418 PyObject * obj0 = 0 ;
13419 PyObject * obj1 = 0 ;
13420 char *kwnames[] = {
13421 (char *) "self",(char *) "y", NULL
13422 };
13423
13424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13427 arg2 = (int) SWIG_AsInt(obj1);
13428 if (PyErr_Occurred()) SWIG_fail;
13429 {
13430 PyThreadState* __tstate = wxPyBeginAllowThreads();
13431 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13432
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 resultobj = SWIG_FromInt((int)result);
13437 return resultobj;
13438 fail:
13439 return NULL;
13440 }
13441
13442
13443 static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13444 PyObject *resultobj;
13445 wxDC *arg1 = (wxDC *) 0 ;
13446 int arg2 ;
13447 int result;
13448 PyObject * obj0 = 0 ;
13449 PyObject * obj1 = 0 ;
13450 char *kwnames[] = {
13451 (char *) "self",(char *) "x", NULL
13452 };
13453
13454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13457 arg2 = (int) SWIG_AsInt(obj1);
13458 if (PyErr_Occurred()) SWIG_fail;
13459 {
13460 PyThreadState* __tstate = wxPyBeginAllowThreads();
13461 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13462
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = SWIG_FromInt((int)result);
13467 return resultobj;
13468 fail:
13469 return NULL;
13470 }
13471
13472
13473 static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj;
13475 wxDC *arg1 = (wxDC *) 0 ;
13476 int arg2 ;
13477 int result;
13478 PyObject * obj0 = 0 ;
13479 PyObject * obj1 = 0 ;
13480 char *kwnames[] = {
13481 (char *) "self",(char *) "y", NULL
13482 };
13483
13484 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13485 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13486 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13487 arg2 = (int) SWIG_AsInt(obj1);
13488 if (PyErr_Occurred()) SWIG_fail;
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13492
13493 wxPyEndAllowThreads(__tstate);
13494 if (PyErr_Occurred()) SWIG_fail;
13495 }
13496 resultobj = SWIG_FromInt((int)result);
13497 return resultobj;
13498 fail:
13499 return NULL;
13500 }
13501
13502
13503 static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13504 PyObject *resultobj;
13505 wxDC *arg1 = (wxDC *) 0 ;
13506 int arg2 ;
13507 int result;
13508 PyObject * obj0 = 0 ;
13509 PyObject * obj1 = 0 ;
13510 char *kwnames[] = {
13511 (char *) "self",(char *) "x", NULL
13512 };
13513
13514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13517 arg2 = (int) SWIG_AsInt(obj1);
13518 if (PyErr_Occurred()) SWIG_fail;
13519 {
13520 PyThreadState* __tstate = wxPyBeginAllowThreads();
13521 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13522
13523 wxPyEndAllowThreads(__tstate);
13524 if (PyErr_Occurred()) SWIG_fail;
13525 }
13526 resultobj = SWIG_FromInt((int)result);
13527 return resultobj;
13528 fail:
13529 return NULL;
13530 }
13531
13532
13533 static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13534 PyObject *resultobj;
13535 wxDC *arg1 = (wxDC *) 0 ;
13536 int arg2 ;
13537 int result;
13538 PyObject * obj0 = 0 ;
13539 PyObject * obj1 = 0 ;
13540 char *kwnames[] = {
13541 (char *) "self",(char *) "y", NULL
13542 };
13543
13544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13547 arg2 = (int) SWIG_AsInt(obj1);
13548 if (PyErr_Occurred()) SWIG_fail;
13549 {
13550 PyThreadState* __tstate = wxPyBeginAllowThreads();
13551 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13552
13553 wxPyEndAllowThreads(__tstate);
13554 if (PyErr_Occurred()) SWIG_fail;
13555 }
13556 resultobj = SWIG_FromInt((int)result);
13557 return resultobj;
13558 fail:
13559 return NULL;
13560 }
13561
13562
13563 static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13564 PyObject *resultobj;
13565 wxDC *arg1 = (wxDC *) 0 ;
13566 bool result;
13567 PyObject * obj0 = 0 ;
13568 char *kwnames[] = {
13569 (char *) "self", NULL
13570 };
13571
13572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13578
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 {
13583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13584 }
13585 return resultobj;
13586 fail:
13587 return NULL;
13588 }
13589
13590
13591 static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13592 PyObject *resultobj;
13593 wxDC *arg1 = (wxDC *) 0 ;
13594 bool result;
13595 PyObject * obj0 = 0 ;
13596 char *kwnames[] = {
13597 (char *) "self", NULL
13598 };
13599
13600 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13601 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13602 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13606
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 {
13611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13612 }
13613 return resultobj;
13614 fail:
13615 return NULL;
13616 }
13617
13618
13619 static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13620 PyObject *resultobj;
13621 wxDC *arg1 = (wxDC *) 0 ;
13622 int result;
13623 PyObject * obj0 = 0 ;
13624 char *kwnames[] = {
13625 (char *) "self", NULL
13626 };
13627
13628 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13629 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13630 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13631 {
13632 PyThreadState* __tstate = wxPyBeginAllowThreads();
13633 result = (int)((wxDC const *)arg1)->GetDepth();
13634
13635 wxPyEndAllowThreads(__tstate);
13636 if (PyErr_Occurred()) SWIG_fail;
13637 }
13638 resultobj = SWIG_FromInt((int)result);
13639 return resultobj;
13640 fail:
13641 return NULL;
13642 }
13643
13644
13645 static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13646 PyObject *resultobj;
13647 wxDC *arg1 = (wxDC *) 0 ;
13648 wxSize result;
13649 PyObject * obj0 = 0 ;
13650 char *kwnames[] = {
13651 (char *) "self", NULL
13652 };
13653
13654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13657 {
13658 PyThreadState* __tstate = wxPyBeginAllowThreads();
13659 result = ((wxDC const *)arg1)->GetPPI();
13660
13661 wxPyEndAllowThreads(__tstate);
13662 if (PyErr_Occurred()) SWIG_fail;
13663 }
13664 {
13665 wxSize * resultptr;
13666 resultptr = new wxSize((wxSize &) result);
13667 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13668 }
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13676 PyObject *resultobj;
13677 wxDC *arg1 = (wxDC *) 0 ;
13678 bool result;
13679 PyObject * obj0 = 0 ;
13680 char *kwnames[] = {
13681 (char *) "self", NULL
13682 };
13683
13684 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13685 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13686 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13687 {
13688 PyThreadState* __tstate = wxPyBeginAllowThreads();
13689 result = (bool)((wxDC const *)arg1)->Ok();
13690
13691 wxPyEndAllowThreads(__tstate);
13692 if (PyErr_Occurred()) SWIG_fail;
13693 }
13694 {
13695 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13696 }
13697 return resultobj;
13698 fail:
13699 return NULL;
13700 }
13701
13702
13703 static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13704 PyObject *resultobj;
13705 wxDC *arg1 = (wxDC *) 0 ;
13706 int result;
13707 PyObject * obj0 = 0 ;
13708 char *kwnames[] = {
13709 (char *) "self", NULL
13710 };
13711
13712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13715 {
13716 PyThreadState* __tstate = wxPyBeginAllowThreads();
13717 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13718
13719 wxPyEndAllowThreads(__tstate);
13720 if (PyErr_Occurred()) SWIG_fail;
13721 }
13722 resultobj = SWIG_FromInt((int)result);
13723 return resultobj;
13724 fail:
13725 return NULL;
13726 }
13727
13728
13729 static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13730 PyObject *resultobj;
13731 wxDC *arg1 = (wxDC *) 0 ;
13732 wxBrush *result;
13733 PyObject * obj0 = 0 ;
13734 char *kwnames[] = {
13735 (char *) "self", NULL
13736 };
13737
13738 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13739 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13740 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13741 {
13742 PyThreadState* __tstate = wxPyBeginAllowThreads();
13743 {
13744 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13745 result = (wxBrush *) &_result_ref;
13746 }
13747
13748 wxPyEndAllowThreads(__tstate);
13749 if (PyErr_Occurred()) SWIG_fail;
13750 }
13751 {
13752 wxBrush* resultptr = new wxBrush(*result);
13753 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13754 }
13755 return resultobj;
13756 fail:
13757 return NULL;
13758 }
13759
13760
13761 static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13762 PyObject *resultobj;
13763 wxDC *arg1 = (wxDC *) 0 ;
13764 wxBrush *result;
13765 PyObject * obj0 = 0 ;
13766 char *kwnames[] = {
13767 (char *) "self", NULL
13768 };
13769
13770 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13771 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13772 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13773 {
13774 PyThreadState* __tstate = wxPyBeginAllowThreads();
13775 {
13776 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13777 result = (wxBrush *) &_result_ref;
13778 }
13779
13780 wxPyEndAllowThreads(__tstate);
13781 if (PyErr_Occurred()) SWIG_fail;
13782 }
13783 {
13784 wxBrush* resultptr = new wxBrush(*result);
13785 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13786 }
13787 return resultobj;
13788 fail:
13789 return NULL;
13790 }
13791
13792
13793 static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13794 PyObject *resultobj;
13795 wxDC *arg1 = (wxDC *) 0 ;
13796 wxFont *result;
13797 PyObject * obj0 = 0 ;
13798 char *kwnames[] = {
13799 (char *) "self", NULL
13800 };
13801
13802 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13803 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13804 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13805 {
13806 PyThreadState* __tstate = wxPyBeginAllowThreads();
13807 {
13808 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13809 result = (wxFont *) &_result_ref;
13810 }
13811
13812 wxPyEndAllowThreads(__tstate);
13813 if (PyErr_Occurred()) SWIG_fail;
13814 }
13815 {
13816 wxFont* resultptr = new wxFont(*result);
13817 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13818 }
13819 return resultobj;
13820 fail:
13821 return NULL;
13822 }
13823
13824
13825 static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13826 PyObject *resultobj;
13827 wxDC *arg1 = (wxDC *) 0 ;
13828 wxPen *result;
13829 PyObject * obj0 = 0 ;
13830 char *kwnames[] = {
13831 (char *) "self", NULL
13832 };
13833
13834 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13835 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13836 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13837 {
13838 PyThreadState* __tstate = wxPyBeginAllowThreads();
13839 {
13840 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13841 result = (wxPen *) &_result_ref;
13842 }
13843
13844 wxPyEndAllowThreads(__tstate);
13845 if (PyErr_Occurred()) SWIG_fail;
13846 }
13847 {
13848 wxPen* resultptr = new wxPen(*result);
13849 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13850 }
13851 return resultobj;
13852 fail:
13853 return NULL;
13854 }
13855
13856
13857 static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13858 PyObject *resultobj;
13859 wxDC *arg1 = (wxDC *) 0 ;
13860 wxColour *result;
13861 PyObject * obj0 = 0 ;
13862 char *kwnames[] = {
13863 (char *) "self", NULL
13864 };
13865
13866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13869 {
13870 PyThreadState* __tstate = wxPyBeginAllowThreads();
13871 {
13872 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13873 result = (wxColour *) &_result_ref;
13874 }
13875
13876 wxPyEndAllowThreads(__tstate);
13877 if (PyErr_Occurred()) SWIG_fail;
13878 }
13879 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13880 return resultobj;
13881 fail:
13882 return NULL;
13883 }
13884
13885
13886 static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj;
13888 wxDC *arg1 = (wxDC *) 0 ;
13889 wxColour *result;
13890 PyObject * obj0 = 0 ;
13891 char *kwnames[] = {
13892 (char *) "self", NULL
13893 };
13894
13895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13898 {
13899 PyThreadState* __tstate = wxPyBeginAllowThreads();
13900 {
13901 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13902 result = (wxColour *) &_result_ref;
13903 }
13904
13905 wxPyEndAllowThreads(__tstate);
13906 if (PyErr_Occurred()) SWIG_fail;
13907 }
13908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13909 return resultobj;
13910 fail:
13911 return NULL;
13912 }
13913
13914
13915 static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13916 PyObject *resultobj;
13917 wxDC *arg1 = (wxDC *) 0 ;
13918 wxColour *arg2 = 0 ;
13919 wxColour temp2 ;
13920 PyObject * obj0 = 0 ;
13921 PyObject * obj1 = 0 ;
13922 char *kwnames[] = {
13923 (char *) "self",(char *) "colour", NULL
13924 };
13925
13926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13929 {
13930 arg2 = &temp2;
13931 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13932 }
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 (arg1)->SetTextForeground((wxColour const &)*arg2);
13936
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 Py_INCREF(Py_None); resultobj = Py_None;
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj;
13949 wxDC *arg1 = (wxDC *) 0 ;
13950 wxColour *arg2 = 0 ;
13951 wxColour temp2 ;
13952 PyObject * obj0 = 0 ;
13953 PyObject * obj1 = 0 ;
13954 char *kwnames[] = {
13955 (char *) "self",(char *) "colour", NULL
13956 };
13957
13958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13961 {
13962 arg2 = &temp2;
13963 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13964 }
13965 {
13966 PyThreadState* __tstate = wxPyBeginAllowThreads();
13967 (arg1)->SetTextBackground((wxColour const &)*arg2);
13968
13969 wxPyEndAllowThreads(__tstate);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 }
13972 Py_INCREF(Py_None); resultobj = Py_None;
13973 return resultobj;
13974 fail:
13975 return NULL;
13976 }
13977
13978
13979 static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13980 PyObject *resultobj;
13981 wxDC *arg1 = (wxDC *) 0 ;
13982 int result;
13983 PyObject * obj0 = 0 ;
13984 char *kwnames[] = {
13985 (char *) "self", NULL
13986 };
13987
13988 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13989 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13990 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13991 {
13992 PyThreadState* __tstate = wxPyBeginAllowThreads();
13993 result = (int)((wxDC const *)arg1)->GetMapMode();
13994
13995 wxPyEndAllowThreads(__tstate);
13996 if (PyErr_Occurred()) SWIG_fail;
13997 }
13998 resultobj = SWIG_FromInt((int)result);
13999 return resultobj;
14000 fail:
14001 return NULL;
14002 }
14003
14004
14005 static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
14006 PyObject *resultobj;
14007 wxDC *arg1 = (wxDC *) 0 ;
14008 int arg2 ;
14009 PyObject * obj0 = 0 ;
14010 PyObject * obj1 = 0 ;
14011 char *kwnames[] = {
14012 (char *) "self",(char *) "mode", NULL
14013 };
14014
14015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
14016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14018 arg2 = (int) SWIG_AsInt(obj1);
14019 if (PyErr_Occurred()) SWIG_fail;
14020 {
14021 PyThreadState* __tstate = wxPyBeginAllowThreads();
14022 (arg1)->SetMapMode(arg2);
14023
14024 wxPyEndAllowThreads(__tstate);
14025 if (PyErr_Occurred()) SWIG_fail;
14026 }
14027 Py_INCREF(Py_None); resultobj = Py_None;
14028 return resultobj;
14029 fail:
14030 return NULL;
14031 }
14032
14033
14034 static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14035 PyObject *resultobj;
14036 wxDC *arg1 = (wxDC *) 0 ;
14037 double *arg2 = (double *) 0 ;
14038 double *arg3 = (double *) 0 ;
14039 double temp2 ;
14040 double temp3 ;
14041 PyObject * obj0 = 0 ;
14042 char *kwnames[] = {
14043 (char *) "self", NULL
14044 };
14045
14046 arg2 = &temp2;
14047 arg3 = &temp3;
14048 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14049 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14050 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14051 {
14052 PyThreadState* __tstate = wxPyBeginAllowThreads();
14053 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14054
14055 wxPyEndAllowThreads(__tstate);
14056 if (PyErr_Occurred()) SWIG_fail;
14057 }
14058 Py_INCREF(Py_None); resultobj = Py_None;
14059 {
14060 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14061 resultobj = t_output_helper(resultobj,o);
14062 }
14063 {
14064 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14065 resultobj = t_output_helper(resultobj,o);
14066 }
14067 return resultobj;
14068 fail:
14069 return NULL;
14070 }
14071
14072
14073 static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14074 PyObject *resultobj;
14075 wxDC *arg1 = (wxDC *) 0 ;
14076 double arg2 ;
14077 double arg3 ;
14078 PyObject * obj0 = 0 ;
14079 PyObject * obj1 = 0 ;
14080 PyObject * obj2 = 0 ;
14081 char *kwnames[] = {
14082 (char *) "self",(char *) "x",(char *) "y", NULL
14083 };
14084
14085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14088 arg2 = (double) SWIG_AsDouble(obj1);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 arg3 = (double) SWIG_AsDouble(obj2);
14091 if (PyErr_Occurred()) SWIG_fail;
14092 {
14093 PyThreadState* __tstate = wxPyBeginAllowThreads();
14094 (arg1)->SetUserScale(arg2,arg3);
14095
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 Py_INCREF(Py_None); resultobj = Py_None;
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14107 PyObject *resultobj;
14108 wxDC *arg1 = (wxDC *) 0 ;
14109 double *arg2 = (double *) 0 ;
14110 double *arg3 = (double *) 0 ;
14111 double temp2 ;
14112 double temp3 ;
14113 PyObject * obj0 = 0 ;
14114 char *kwnames[] = {
14115 (char *) "self", NULL
14116 };
14117
14118 arg2 = &temp2;
14119 arg3 = &temp3;
14120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 (arg1)->GetLogicalScale(arg2,arg3);
14126
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 Py_INCREF(Py_None); resultobj = Py_None;
14131 {
14132 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14133 resultobj = t_output_helper(resultobj,o);
14134 }
14135 {
14136 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14137 resultobj = t_output_helper(resultobj,o);
14138 }
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj;
14147 wxDC *arg1 = (wxDC *) 0 ;
14148 double arg2 ;
14149 double arg3 ;
14150 PyObject * obj0 = 0 ;
14151 PyObject * obj1 = 0 ;
14152 PyObject * obj2 = 0 ;
14153 char *kwnames[] = {
14154 (char *) "self",(char *) "x",(char *) "y", NULL
14155 };
14156
14157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14160 arg2 = (double) SWIG_AsDouble(obj1);
14161 if (PyErr_Occurred()) SWIG_fail;
14162 arg3 = (double) SWIG_AsDouble(obj2);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 {
14165 PyThreadState* __tstate = wxPyBeginAllowThreads();
14166 (arg1)->SetLogicalScale(arg2,arg3);
14167
14168 wxPyEndAllowThreads(__tstate);
14169 if (PyErr_Occurred()) SWIG_fail;
14170 }
14171 Py_INCREF(Py_None); resultobj = Py_None;
14172 return resultobj;
14173 fail:
14174 return NULL;
14175 }
14176
14177
14178 static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14179 PyObject *resultobj;
14180 wxDC *arg1 = (wxDC *) 0 ;
14181 wxPoint result;
14182 PyObject * obj0 = 0 ;
14183 char *kwnames[] = {
14184 (char *) "self", NULL
14185 };
14186
14187 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14188 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14189 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14190 {
14191 PyThreadState* __tstate = wxPyBeginAllowThreads();
14192 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14193
14194 wxPyEndAllowThreads(__tstate);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 {
14198 wxPoint * resultptr;
14199 resultptr = new wxPoint((wxPoint &) result);
14200 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14201 }
14202 return resultobj;
14203 fail:
14204 return NULL;
14205 }
14206
14207
14208 static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14209 PyObject *resultobj;
14210 wxDC *arg1 = (wxDC *) 0 ;
14211 int *arg2 = (int *) 0 ;
14212 int *arg3 = (int *) 0 ;
14213 int temp2 ;
14214 int temp3 ;
14215 PyObject * obj0 = 0 ;
14216 char *kwnames[] = {
14217 (char *) "self", NULL
14218 };
14219
14220 arg2 = &temp2;
14221 arg3 = &temp3;
14222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14225 {
14226 PyThreadState* __tstate = wxPyBeginAllowThreads();
14227 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14228
14229 wxPyEndAllowThreads(__tstate);
14230 if (PyErr_Occurred()) SWIG_fail;
14231 }
14232 Py_INCREF(Py_None); resultobj = Py_None;
14233 {
14234 PyObject *o = PyInt_FromLong((long) (*arg2));
14235 resultobj = t_output_helper(resultobj,o);
14236 }
14237 {
14238 PyObject *o = PyInt_FromLong((long) (*arg3));
14239 resultobj = t_output_helper(resultobj,o);
14240 }
14241 return resultobj;
14242 fail:
14243 return NULL;
14244 }
14245
14246
14247 static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14248 PyObject *resultobj;
14249 wxDC *arg1 = (wxDC *) 0 ;
14250 int arg2 ;
14251 int arg3 ;
14252 PyObject * obj0 = 0 ;
14253 PyObject * obj1 = 0 ;
14254 PyObject * obj2 = 0 ;
14255 char *kwnames[] = {
14256 (char *) "self",(char *) "x",(char *) "y", NULL
14257 };
14258
14259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14262 arg2 = (int) SWIG_AsInt(obj1);
14263 if (PyErr_Occurred()) SWIG_fail;
14264 arg3 = (int) SWIG_AsInt(obj2);
14265 if (PyErr_Occurred()) SWIG_fail;
14266 {
14267 PyThreadState* __tstate = wxPyBeginAllowThreads();
14268 (arg1)->SetLogicalOrigin(arg2,arg3);
14269
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 Py_INCREF(Py_None); resultobj = Py_None;
14274 return resultobj;
14275 fail:
14276 return NULL;
14277 }
14278
14279
14280 static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14281 PyObject *resultobj;
14282 wxDC *arg1 = (wxDC *) 0 ;
14283 wxPoint *arg2 = 0 ;
14284 wxPoint temp2 ;
14285 PyObject * obj0 = 0 ;
14286 PyObject * obj1 = 0 ;
14287 char *kwnames[] = {
14288 (char *) "self",(char *) "point", NULL
14289 };
14290
14291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14294 {
14295 arg2 = &temp2;
14296 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14297 }
14298 {
14299 PyThreadState* __tstate = wxPyBeginAllowThreads();
14300 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14301
14302 wxPyEndAllowThreads(__tstate);
14303 if (PyErr_Occurred()) SWIG_fail;
14304 }
14305 Py_INCREF(Py_None); resultobj = Py_None;
14306 return resultobj;
14307 fail:
14308 return NULL;
14309 }
14310
14311
14312 static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14313 PyObject *resultobj;
14314 wxDC *arg1 = (wxDC *) 0 ;
14315 wxPoint result;
14316 PyObject * obj0 = 0 ;
14317 char *kwnames[] = {
14318 (char *) "self", NULL
14319 };
14320
14321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14324 {
14325 PyThreadState* __tstate = wxPyBeginAllowThreads();
14326 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14327
14328 wxPyEndAllowThreads(__tstate);
14329 if (PyErr_Occurred()) SWIG_fail;
14330 }
14331 {
14332 wxPoint * resultptr;
14333 resultptr = new wxPoint((wxPoint &) result);
14334 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14335 }
14336 return resultobj;
14337 fail:
14338 return NULL;
14339 }
14340
14341
14342 static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14343 PyObject *resultobj;
14344 wxDC *arg1 = (wxDC *) 0 ;
14345 int *arg2 = (int *) 0 ;
14346 int *arg3 = (int *) 0 ;
14347 int temp2 ;
14348 int temp3 ;
14349 PyObject * obj0 = 0 ;
14350 char *kwnames[] = {
14351 (char *) "self", NULL
14352 };
14353
14354 arg2 = &temp2;
14355 arg3 = &temp3;
14356 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14357 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14358 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14362
14363 wxPyEndAllowThreads(__tstate);
14364 if (PyErr_Occurred()) SWIG_fail;
14365 }
14366 Py_INCREF(Py_None); resultobj = Py_None;
14367 {
14368 PyObject *o = PyInt_FromLong((long) (*arg2));
14369 resultobj = t_output_helper(resultobj,o);
14370 }
14371 {
14372 PyObject *o = PyInt_FromLong((long) (*arg3));
14373 resultobj = t_output_helper(resultobj,o);
14374 }
14375 return resultobj;
14376 fail:
14377 return NULL;
14378 }
14379
14380
14381 static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14382 PyObject *resultobj;
14383 wxDC *arg1 = (wxDC *) 0 ;
14384 int arg2 ;
14385 int arg3 ;
14386 PyObject * obj0 = 0 ;
14387 PyObject * obj1 = 0 ;
14388 PyObject * obj2 = 0 ;
14389 char *kwnames[] = {
14390 (char *) "self",(char *) "x",(char *) "y", NULL
14391 };
14392
14393 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14394 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14395 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14396 arg2 = (int) SWIG_AsInt(obj1);
14397 if (PyErr_Occurred()) SWIG_fail;
14398 arg3 = (int) SWIG_AsInt(obj2);
14399 if (PyErr_Occurred()) SWIG_fail;
14400 {
14401 PyThreadState* __tstate = wxPyBeginAllowThreads();
14402 (arg1)->SetDeviceOrigin(arg2,arg3);
14403
14404 wxPyEndAllowThreads(__tstate);
14405 if (PyErr_Occurred()) SWIG_fail;
14406 }
14407 Py_INCREF(Py_None); resultobj = Py_None;
14408 return resultobj;
14409 fail:
14410 return NULL;
14411 }
14412
14413
14414 static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14415 PyObject *resultobj;
14416 wxDC *arg1 = (wxDC *) 0 ;
14417 wxPoint *arg2 = 0 ;
14418 wxPoint temp2 ;
14419 PyObject * obj0 = 0 ;
14420 PyObject * obj1 = 0 ;
14421 char *kwnames[] = {
14422 (char *) "self",(char *) "point", NULL
14423 };
14424
14425 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14426 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14427 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14428 {
14429 arg2 = &temp2;
14430 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14431 }
14432 {
14433 PyThreadState* __tstate = wxPyBeginAllowThreads();
14434 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14435
14436 wxPyEndAllowThreads(__tstate);
14437 if (PyErr_Occurred()) SWIG_fail;
14438 }
14439 Py_INCREF(Py_None); resultobj = Py_None;
14440 return resultobj;
14441 fail:
14442 return NULL;
14443 }
14444
14445
14446 static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14447 PyObject *resultobj;
14448 wxDC *arg1 = (wxDC *) 0 ;
14449 bool arg2 ;
14450 bool arg3 ;
14451 PyObject * obj0 = 0 ;
14452 PyObject * obj1 = 0 ;
14453 PyObject * obj2 = 0 ;
14454 char *kwnames[] = {
14455 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14456 };
14457
14458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14461 arg2 = (bool) SWIG_AsBool(obj1);
14462 if (PyErr_Occurred()) SWIG_fail;
14463 arg3 = (bool) SWIG_AsBool(obj2);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 {
14466 PyThreadState* __tstate = wxPyBeginAllowThreads();
14467 (arg1)->SetAxisOrientation(arg2,arg3);
14468
14469 wxPyEndAllowThreads(__tstate);
14470 if (PyErr_Occurred()) SWIG_fail;
14471 }
14472 Py_INCREF(Py_None); resultobj = Py_None;
14473 return resultobj;
14474 fail:
14475 return NULL;
14476 }
14477
14478
14479 static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14480 PyObject *resultobj;
14481 wxDC *arg1 = (wxDC *) 0 ;
14482 int result;
14483 PyObject * obj0 = 0 ;
14484 char *kwnames[] = {
14485 (char *) "self", NULL
14486 };
14487
14488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14491 {
14492 PyThreadState* __tstate = wxPyBeginAllowThreads();
14493 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14494
14495 wxPyEndAllowThreads(__tstate);
14496 if (PyErr_Occurred()) SWIG_fail;
14497 }
14498 resultobj = SWIG_FromInt((int)result);
14499 return resultobj;
14500 fail:
14501 return NULL;
14502 }
14503
14504
14505 static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14506 PyObject *resultobj;
14507 wxDC *arg1 = (wxDC *) 0 ;
14508 int arg2 ;
14509 PyObject * obj0 = 0 ;
14510 PyObject * obj1 = 0 ;
14511 char *kwnames[] = {
14512 (char *) "self",(char *) "function", NULL
14513 };
14514
14515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14518 arg2 = (int) SWIG_AsInt(obj1);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 {
14521 PyThreadState* __tstate = wxPyBeginAllowThreads();
14522 (arg1)->SetLogicalFunction(arg2);
14523
14524 wxPyEndAllowThreads(__tstate);
14525 if (PyErr_Occurred()) SWIG_fail;
14526 }
14527 Py_INCREF(Py_None); resultobj = Py_None;
14528 return resultobj;
14529 fail:
14530 return NULL;
14531 }
14532
14533
14534 static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14535 PyObject *resultobj;
14536 wxDC *arg1 = (wxDC *) 0 ;
14537 bool arg2 ;
14538 PyObject * obj0 = 0 ;
14539 PyObject * obj1 = 0 ;
14540 char *kwnames[] = {
14541 (char *) "self",(char *) "opt", NULL
14542 };
14543
14544 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14545 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14546 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14547 arg2 = (bool) SWIG_AsBool(obj1);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 {
14550 PyThreadState* __tstate = wxPyBeginAllowThreads();
14551 (arg1)->SetOptimization(arg2);
14552
14553 wxPyEndAllowThreads(__tstate);
14554 if (PyErr_Occurred()) SWIG_fail;
14555 }
14556 Py_INCREF(Py_None); resultobj = Py_None;
14557 return resultobj;
14558 fail:
14559 return NULL;
14560 }
14561
14562
14563 static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14564 PyObject *resultobj;
14565 wxDC *arg1 = (wxDC *) 0 ;
14566 bool result;
14567 PyObject * obj0 = 0 ;
14568 char *kwnames[] = {
14569 (char *) "self", NULL
14570 };
14571
14572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14575 {
14576 PyThreadState* __tstate = wxPyBeginAllowThreads();
14577 result = (bool)(arg1)->GetOptimization();
14578
14579 wxPyEndAllowThreads(__tstate);
14580 if (PyErr_Occurred()) SWIG_fail;
14581 }
14582 {
14583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14584 }
14585 return resultobj;
14586 fail:
14587 return NULL;
14588 }
14589
14590
14591 static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14592 PyObject *resultobj;
14593 wxDC *arg1 = (wxDC *) 0 ;
14594 int arg2 ;
14595 int arg3 ;
14596 PyObject * obj0 = 0 ;
14597 PyObject * obj1 = 0 ;
14598 PyObject * obj2 = 0 ;
14599 char *kwnames[] = {
14600 (char *) "self",(char *) "x",(char *) "y", NULL
14601 };
14602
14603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14606 arg2 = (int) SWIG_AsInt(obj1);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 arg3 = (int) SWIG_AsInt(obj2);
14609 if (PyErr_Occurred()) SWIG_fail;
14610 {
14611 PyThreadState* __tstate = wxPyBeginAllowThreads();
14612 (arg1)->CalcBoundingBox(arg2,arg3);
14613
14614 wxPyEndAllowThreads(__tstate);
14615 if (PyErr_Occurred()) SWIG_fail;
14616 }
14617 Py_INCREF(Py_None); resultobj = Py_None;
14618 return resultobj;
14619 fail:
14620 return NULL;
14621 }
14622
14623
14624 static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14625 PyObject *resultobj;
14626 wxDC *arg1 = (wxDC *) 0 ;
14627 wxPoint *arg2 = 0 ;
14628 wxPoint temp2 ;
14629 PyObject * obj0 = 0 ;
14630 PyObject * obj1 = 0 ;
14631 char *kwnames[] = {
14632 (char *) "self",(char *) "point", NULL
14633 };
14634
14635 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14636 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14637 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14638 {
14639 arg2 = &temp2;
14640 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14641 }
14642 {
14643 PyThreadState* __tstate = wxPyBeginAllowThreads();
14644 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14645
14646 wxPyEndAllowThreads(__tstate);
14647 if (PyErr_Occurred()) SWIG_fail;
14648 }
14649 Py_INCREF(Py_None); resultobj = Py_None;
14650 return resultobj;
14651 fail:
14652 return NULL;
14653 }
14654
14655
14656 static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14657 PyObject *resultobj;
14658 wxDC *arg1 = (wxDC *) 0 ;
14659 PyObject * obj0 = 0 ;
14660 char *kwnames[] = {
14661 (char *) "self", NULL
14662 };
14663
14664 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14665 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14666 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14667 {
14668 PyThreadState* __tstate = wxPyBeginAllowThreads();
14669 (arg1)->ResetBoundingBox();
14670
14671 wxPyEndAllowThreads(__tstate);
14672 if (PyErr_Occurred()) SWIG_fail;
14673 }
14674 Py_INCREF(Py_None); resultobj = Py_None;
14675 return resultobj;
14676 fail:
14677 return NULL;
14678 }
14679
14680
14681 static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14682 PyObject *resultobj;
14683 wxDC *arg1 = (wxDC *) 0 ;
14684 int result;
14685 PyObject * obj0 = 0 ;
14686 char *kwnames[] = {
14687 (char *) "self", NULL
14688 };
14689
14690 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14691 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14692 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14693 {
14694 PyThreadState* __tstate = wxPyBeginAllowThreads();
14695 result = (int)((wxDC const *)arg1)->MinX();
14696
14697 wxPyEndAllowThreads(__tstate);
14698 if (PyErr_Occurred()) SWIG_fail;
14699 }
14700 resultobj = SWIG_FromInt((int)result);
14701 return resultobj;
14702 fail:
14703 return NULL;
14704 }
14705
14706
14707 static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14708 PyObject *resultobj;
14709 wxDC *arg1 = (wxDC *) 0 ;
14710 int result;
14711 PyObject * obj0 = 0 ;
14712 char *kwnames[] = {
14713 (char *) "self", NULL
14714 };
14715
14716 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14717 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14718 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 result = (int)((wxDC const *)arg1)->MaxX();
14722
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 resultobj = SWIG_FromInt((int)result);
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14734 PyObject *resultobj;
14735 wxDC *arg1 = (wxDC *) 0 ;
14736 int result;
14737 PyObject * obj0 = 0 ;
14738 char *kwnames[] = {
14739 (char *) "self", NULL
14740 };
14741
14742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",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 result = (int)((wxDC const *)arg1)->MinY();
14748
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 resultobj = SWIG_FromInt((int)result);
14753 return resultobj;
14754 fail:
14755 return NULL;
14756 }
14757
14758
14759 static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14760 PyObject *resultobj;
14761 wxDC *arg1 = (wxDC *) 0 ;
14762 int result;
14763 PyObject * obj0 = 0 ;
14764 char *kwnames[] = {
14765 (char *) "self", NULL
14766 };
14767
14768 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14769 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14770 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14771 {
14772 PyThreadState* __tstate = wxPyBeginAllowThreads();
14773 result = (int)((wxDC const *)arg1)->MaxY();
14774
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_FromInt((int)result);
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14786 PyObject *resultobj;
14787 wxDC *arg1 = (wxDC *) 0 ;
14788 int *arg2 = (int *) 0 ;
14789 int *arg3 = (int *) 0 ;
14790 int *arg4 = (int *) 0 ;
14791 int *arg5 = (int *) 0 ;
14792 int temp2 ;
14793 int temp3 ;
14794 int temp4 ;
14795 int temp5 ;
14796 PyObject * obj0 = 0 ;
14797 char *kwnames[] = {
14798 (char *) "self", NULL
14799 };
14800
14801 arg2 = &temp2;
14802 arg3 = &temp3;
14803 arg4 = &temp4;
14804 arg5 = &temp5;
14805 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14806 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14807 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14808 {
14809 PyThreadState* __tstate = wxPyBeginAllowThreads();
14810 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14811
14812 wxPyEndAllowThreads(__tstate);
14813 if (PyErr_Occurred()) SWIG_fail;
14814 }
14815 Py_INCREF(Py_None); resultobj = Py_None;
14816 {
14817 PyObject *o = PyInt_FromLong((long) (*arg2));
14818 resultobj = t_output_helper(resultobj,o);
14819 }
14820 {
14821 PyObject *o = PyInt_FromLong((long) (*arg3));
14822 resultobj = t_output_helper(resultobj,o);
14823 }
14824 {
14825 PyObject *o = PyInt_FromLong((long) (*arg4));
14826 resultobj = t_output_helper(resultobj,o);
14827 }
14828 {
14829 PyObject *o = PyInt_FromLong((long) (*arg5));
14830 resultobj = t_output_helper(resultobj,o);
14831 }
14832 return resultobj;
14833 fail:
14834 return NULL;
14835 }
14836
14837
14838 static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14839 PyObject *resultobj;
14840 wxDC *arg1 = (wxDC *) 0 ;
14841 PyObject *arg2 = (PyObject *) 0 ;
14842 PyObject *arg3 = (PyObject *) 0 ;
14843 PyObject *arg4 = (PyObject *) 0 ;
14844 PyObject *result;
14845 PyObject * obj0 = 0 ;
14846 PyObject * obj1 = 0 ;
14847 PyObject * obj2 = 0 ;
14848 PyObject * obj3 = 0 ;
14849 char *kwnames[] = {
14850 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14851 };
14852
14853 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14854 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14856 arg2 = obj1;
14857 arg3 = obj2;
14858 arg4 = obj3;
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14862
14863 wxPyEndAllowThreads(__tstate);
14864 if (PyErr_Occurred()) SWIG_fail;
14865 }
14866 resultobj = result;
14867 return resultobj;
14868 fail:
14869 return NULL;
14870 }
14871
14872
14873 static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14874 PyObject *resultobj;
14875 wxDC *arg1 = (wxDC *) 0 ;
14876 PyObject *arg2 = (PyObject *) 0 ;
14877 PyObject *arg3 = (PyObject *) 0 ;
14878 PyObject *arg4 = (PyObject *) 0 ;
14879 PyObject *result;
14880 PyObject * obj0 = 0 ;
14881 PyObject * obj1 = 0 ;
14882 PyObject * obj2 = 0 ;
14883 PyObject * obj3 = 0 ;
14884 char *kwnames[] = {
14885 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14886 };
14887
14888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14891 arg2 = obj1;
14892 arg3 = obj2;
14893 arg4 = obj3;
14894 {
14895 PyThreadState* __tstate = wxPyBeginAllowThreads();
14896 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14897
14898 wxPyEndAllowThreads(__tstate);
14899 if (PyErr_Occurred()) SWIG_fail;
14900 }
14901 resultobj = result;
14902 return resultobj;
14903 fail:
14904 return NULL;
14905 }
14906
14907
14908 static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14909 PyObject *resultobj;
14910 wxDC *arg1 = (wxDC *) 0 ;
14911 PyObject *arg2 = (PyObject *) 0 ;
14912 PyObject *arg3 = (PyObject *) 0 ;
14913 PyObject *arg4 = (PyObject *) 0 ;
14914 PyObject *result;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 PyObject * obj2 = 0 ;
14918 PyObject * obj3 = 0 ;
14919 char *kwnames[] = {
14920 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14921 };
14922
14923 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14924 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14926 arg2 = obj1;
14927 arg3 = obj2;
14928 arg4 = obj3;
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14932
14933 wxPyEndAllowThreads(__tstate);
14934 if (PyErr_Occurred()) SWIG_fail;
14935 }
14936 resultobj = result;
14937 return resultobj;
14938 fail:
14939 return NULL;
14940 }
14941
14942
14943 static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14944 PyObject *resultobj;
14945 wxDC *arg1 = (wxDC *) 0 ;
14946 PyObject *arg2 = (PyObject *) 0 ;
14947 PyObject *arg3 = (PyObject *) 0 ;
14948 PyObject *arg4 = (PyObject *) 0 ;
14949 PyObject *result;
14950 PyObject * obj0 = 0 ;
14951 PyObject * obj1 = 0 ;
14952 PyObject * obj2 = 0 ;
14953 PyObject * obj3 = 0 ;
14954 char *kwnames[] = {
14955 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14956 };
14957
14958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14961 arg2 = obj1;
14962 arg3 = obj2;
14963 arg4 = obj3;
14964 {
14965 PyThreadState* __tstate = wxPyBeginAllowThreads();
14966 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14967
14968 wxPyEndAllowThreads(__tstate);
14969 if (PyErr_Occurred()) SWIG_fail;
14970 }
14971 resultobj = result;
14972 return resultobj;
14973 fail:
14974 return NULL;
14975 }
14976
14977
14978 static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14979 PyObject *resultobj;
14980 wxDC *arg1 = (wxDC *) 0 ;
14981 PyObject *arg2 = (PyObject *) 0 ;
14982 PyObject *arg3 = (PyObject *) 0 ;
14983 PyObject *arg4 = (PyObject *) 0 ;
14984 PyObject *result;
14985 PyObject * obj0 = 0 ;
14986 PyObject * obj1 = 0 ;
14987 PyObject * obj2 = 0 ;
14988 PyObject * obj3 = 0 ;
14989 char *kwnames[] = {
14990 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14991 };
14992
14993 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14994 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14995 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14996 arg2 = obj1;
14997 arg3 = obj2;
14998 arg4 = obj3;
14999 {
15000 PyThreadState* __tstate = wxPyBeginAllowThreads();
15001 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
15002
15003 wxPyEndAllowThreads(__tstate);
15004 if (PyErr_Occurred()) SWIG_fail;
15005 }
15006 resultobj = result;
15007 return resultobj;
15008 fail:
15009 return NULL;
15010 }
15011
15012
15013 static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj;
15015 wxDC *arg1 = (wxDC *) 0 ;
15016 PyObject *arg2 = (PyObject *) 0 ;
15017 PyObject *arg3 = (PyObject *) 0 ;
15018 PyObject *arg4 = (PyObject *) 0 ;
15019 PyObject *arg5 = (PyObject *) 0 ;
15020 PyObject *result;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 PyObject * obj2 = 0 ;
15024 PyObject * obj3 = 0 ;
15025 PyObject * obj4 = 0 ;
15026 char *kwnames[] = {
15027 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
15028 };
15029
15030 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
15031 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15032 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15033 arg2 = obj1;
15034 arg3 = obj2;
15035 arg4 = obj3;
15036 arg5 = obj4;
15037 {
15038 PyThreadState* __tstate = wxPyBeginAllowThreads();
15039 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
15040
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 resultobj = result;
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15052 PyObject *obj;
15053 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15054 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15055 Py_INCREF(obj);
15056 return Py_BuildValue((char *)"");
15057 }
15058 static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj;
15060 wxMemoryDC *result;
15061 char *kwnames[] = {
15062 NULL
15063 };
15064
15065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15066 {
15067 if (!wxPyCheckForApp()) SWIG_fail;
15068 PyThreadState* __tstate = wxPyBeginAllowThreads();
15069 result = (wxMemoryDC *)new wxMemoryDC();
15070
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15075 return resultobj;
15076 fail:
15077 return NULL;
15078 }
15079
15080
15081 static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15082 PyObject *resultobj;
15083 wxDC *arg1 = (wxDC *) 0 ;
15084 wxMemoryDC *result;
15085 PyObject * obj0 = 0 ;
15086 char *kwnames[] = {
15087 (char *) "oldDC", NULL
15088 };
15089
15090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15093 {
15094 if (!wxPyCheckForApp()) SWIG_fail;
15095 PyThreadState* __tstate = wxPyBeginAllowThreads();
15096 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15097
15098 wxPyEndAllowThreads(__tstate);
15099 if (PyErr_Occurred()) SWIG_fail;
15100 }
15101 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15102 return resultobj;
15103 fail:
15104 return NULL;
15105 }
15106
15107
15108 static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15109 PyObject *resultobj;
15110 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15111 wxBitmap *arg2 = 0 ;
15112 PyObject * obj0 = 0 ;
15113 PyObject * obj1 = 0 ;
15114 char *kwnames[] = {
15115 (char *) "self",(char *) "bitmap", NULL
15116 };
15117
15118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15119 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15120 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15121 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15122 SWIG_POINTER_EXCEPTION | 0)) == -1)
15123 SWIG_fail;
15124 if (arg2 == NULL) {
15125 PyErr_SetString(PyExc_TypeError,"null reference");
15126 SWIG_fail;
15127 }
15128 {
15129 PyThreadState* __tstate = wxPyBeginAllowThreads();
15130 (arg1)->SelectObject((wxBitmap const &)*arg2);
15131
15132 wxPyEndAllowThreads(__tstate);
15133 if (PyErr_Occurred()) SWIG_fail;
15134 }
15135 Py_INCREF(Py_None); resultobj = Py_None;
15136 return resultobj;
15137 fail:
15138 return NULL;
15139 }
15140
15141
15142 static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15143 PyObject *obj;
15144 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15145 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15146 Py_INCREF(obj);
15147 return Py_BuildValue((char *)"");
15148 }
15149 static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15150 PyObject *resultobj;
15151 wxDC *arg1 = (wxDC *) 0 ;
15152 wxBitmap *arg2 = 0 ;
15153 wxBufferedDC *result;
15154 PyObject * obj0 = 0 ;
15155 PyObject * obj1 = 0 ;
15156
15157 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15160 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15161 SWIG_POINTER_EXCEPTION | 0)) == -1)
15162 SWIG_fail;
15163 if (arg2 == NULL) {
15164 PyErr_SetString(PyExc_TypeError,"null reference");
15165 SWIG_fail;
15166 }
15167 {
15168 if (!wxPyCheckForApp()) SWIG_fail;
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15171
15172 wxPyEndAllowThreads(__tstate);
15173 if (PyErr_Occurred()) SWIG_fail;
15174 }
15175 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15176 return resultobj;
15177 fail:
15178 return NULL;
15179 }
15180
15181
15182 static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15183 PyObject *resultobj;
15184 wxDC *arg1 = (wxDC *) 0 ;
15185 wxSize *arg2 = 0 ;
15186 wxBufferedDC *result;
15187 wxSize temp2 ;
15188 PyObject * obj0 = 0 ;
15189 PyObject * obj1 = 0 ;
15190
15191 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15192 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15193 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15194 {
15195 arg2 = &temp2;
15196 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15197 }
15198 {
15199 if (!wxPyCheckForApp()) SWIG_fail;
15200 PyThreadState* __tstate = wxPyBeginAllowThreads();
15201 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15202
15203 wxPyEndAllowThreads(__tstate);
15204 if (PyErr_Occurred()) SWIG_fail;
15205 }
15206 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15207 return resultobj;
15208 fail:
15209 return NULL;
15210 }
15211
15212
15213 static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15214 int argc;
15215 PyObject *argv[3];
15216 int ii;
15217
15218 argc = PyObject_Length(args);
15219 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15220 argv[ii] = PyTuple_GetItem(args,ii);
15221 }
15222 if (argc == 2) {
15223 int _v;
15224 {
15225 void *ptr;
15226 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15227 _v = 0;
15228 PyErr_Clear();
15229 } else {
15230 _v = 1;
15231 }
15232 }
15233 if (_v) {
15234 {
15235 void *ptr;
15236 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15237 _v = 0;
15238 PyErr_Clear();
15239 } else {
15240 _v = 1;
15241 }
15242 }
15243 if (_v) {
15244 return _wrap_new_BufferedDC__SWIG_0(self,args);
15245 }
15246 }
15247 }
15248 if (argc == 2) {
15249 int _v;
15250 {
15251 void *ptr;
15252 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15253 _v = 0;
15254 PyErr_Clear();
15255 } else {
15256 _v = 1;
15257 }
15258 }
15259 if (_v) {
15260 {
15261 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15262 }
15263 if (_v) {
15264 return _wrap_new_BufferedDC__SWIG_1(self,args);
15265 }
15266 }
15267 }
15268
15269 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15270 return NULL;
15271 }
15272
15273
15274 static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15275 PyObject *resultobj;
15276 wxDC *arg1 = (wxDC *) 0 ;
15277 wxSize *arg2 = 0 ;
15278 wxBufferedDC *result;
15279 wxSize temp2 ;
15280 PyObject * obj0 = 0 ;
15281 PyObject * obj1 = 0 ;
15282
15283 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15286 {
15287 arg2 = &temp2;
15288 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15289 }
15290 {
15291 if (!wxPyCheckForApp()) SWIG_fail;
15292 PyThreadState* __tstate = wxPyBeginAllowThreads();
15293 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15294
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj;
15307 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15308 PyObject * obj0 = 0 ;
15309 char *kwnames[] = {
15310 (char *) "self", NULL
15311 };
15312
15313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15316 {
15317 PyThreadState* __tstate = wxPyBeginAllowThreads();
15318 delete arg1;
15319
15320 wxPyEndAllowThreads(__tstate);
15321 if (PyErr_Occurred()) SWIG_fail;
15322 }
15323 Py_INCREF(Py_None); resultobj = Py_None;
15324 return resultobj;
15325 fail:
15326 return NULL;
15327 }
15328
15329
15330 static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15331 PyObject *resultobj;
15332 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15333 PyObject * obj0 = 0 ;
15334 char *kwnames[] = {
15335 (char *) "self", NULL
15336 };
15337
15338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15341 {
15342 PyThreadState* __tstate = wxPyBeginAllowThreads();
15343 (arg1)->UnMask();
15344
15345 wxPyEndAllowThreads(__tstate);
15346 if (PyErr_Occurred()) SWIG_fail;
15347 }
15348 Py_INCREF(Py_None); resultobj = Py_None;
15349 return resultobj;
15350 fail:
15351 return NULL;
15352 }
15353
15354
15355 static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15356 PyObject *obj;
15357 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15358 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15359 Py_INCREF(obj);
15360 return Py_BuildValue((char *)"");
15361 }
15362 static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15363 PyObject *resultobj;
15364 wxWindow *arg1 = (wxWindow *) 0 ;
15365 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15366 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15367 wxBufferedPaintDC *result;
15368 PyObject * obj0 = 0 ;
15369 PyObject * obj1 = 0 ;
15370 char *kwnames[] = {
15371 (char *) "window",(char *) "buffer", NULL
15372 };
15373
15374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15377 if (obj1) {
15378 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15379 SWIG_POINTER_EXCEPTION | 0)) == -1)
15380 SWIG_fail;
15381 if (arg2 == NULL) {
15382 PyErr_SetString(PyExc_TypeError,"null reference");
15383 SWIG_fail;
15384 }
15385 }
15386 {
15387 if (!wxPyCheckForApp()) SWIG_fail;
15388 PyThreadState* __tstate = wxPyBeginAllowThreads();
15389 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15390
15391 wxPyEndAllowThreads(__tstate);
15392 if (PyErr_Occurred()) SWIG_fail;
15393 }
15394 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15395 return resultobj;
15396 fail:
15397 return NULL;
15398 }
15399
15400
15401 static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15402 PyObject *obj;
15403 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15404 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15405 Py_INCREF(obj);
15406 return Py_BuildValue((char *)"");
15407 }
15408 static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15409 PyObject *resultobj;
15410 wxScreenDC *result;
15411 char *kwnames[] = {
15412 NULL
15413 };
15414
15415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15416 {
15417 if (!wxPyCheckForApp()) SWIG_fail;
15418 PyThreadState* __tstate = wxPyBeginAllowThreads();
15419 result = (wxScreenDC *)new wxScreenDC();
15420
15421 wxPyEndAllowThreads(__tstate);
15422 if (PyErr_Occurred()) SWIG_fail;
15423 }
15424 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15425 return resultobj;
15426 fail:
15427 return NULL;
15428 }
15429
15430
15431 static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15432 PyObject *resultobj;
15433 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15434 wxWindow *arg2 = (wxWindow *) 0 ;
15435 bool result;
15436 PyObject * obj0 = 0 ;
15437 PyObject * obj1 = 0 ;
15438 char *kwnames[] = {
15439 (char *) "self",(char *) "window", NULL
15440 };
15441
15442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15443 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15445 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15447 {
15448 PyThreadState* __tstate = wxPyBeginAllowThreads();
15449 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15450
15451 wxPyEndAllowThreads(__tstate);
15452 if (PyErr_Occurred()) SWIG_fail;
15453 }
15454 {
15455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15456 }
15457 return resultobj;
15458 fail:
15459 return NULL;
15460 }
15461
15462
15463 static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15464 PyObject *resultobj;
15465 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15466 wxRect *arg2 = (wxRect *) NULL ;
15467 bool result;
15468 PyObject * obj0 = 0 ;
15469 PyObject * obj1 = 0 ;
15470 char *kwnames[] = {
15471 (char *) "self",(char *) "rect", NULL
15472 };
15473
15474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15476 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15477 if (obj1) {
15478 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15479 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15480 }
15481 {
15482 PyThreadState* __tstate = wxPyBeginAllowThreads();
15483 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15484
15485 wxPyEndAllowThreads(__tstate);
15486 if (PyErr_Occurred()) SWIG_fail;
15487 }
15488 {
15489 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15490 }
15491 return resultobj;
15492 fail:
15493 return NULL;
15494 }
15495
15496
15497 static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15498 PyObject *resultobj;
15499 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15500 bool result;
15501 PyObject * obj0 = 0 ;
15502 char *kwnames[] = {
15503 (char *) "self", NULL
15504 };
15505
15506 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15507 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15508 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15509 {
15510 PyThreadState* __tstate = wxPyBeginAllowThreads();
15511 result = (bool)(arg1)->EndDrawingOnTop();
15512
15513 wxPyEndAllowThreads(__tstate);
15514 if (PyErr_Occurred()) SWIG_fail;
15515 }
15516 {
15517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15518 }
15519 return resultobj;
15520 fail:
15521 return NULL;
15522 }
15523
15524
15525 static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15526 PyObject *obj;
15527 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15528 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15529 Py_INCREF(obj);
15530 return Py_BuildValue((char *)"");
15531 }
15532 static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15533 PyObject *resultobj;
15534 wxWindow *arg1 = (wxWindow *) 0 ;
15535 wxClientDC *result;
15536 PyObject * obj0 = 0 ;
15537 char *kwnames[] = {
15538 (char *) "win", NULL
15539 };
15540
15541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15544 {
15545 if (!wxPyCheckForApp()) SWIG_fail;
15546 PyThreadState* __tstate = wxPyBeginAllowThreads();
15547 result = (wxClientDC *)new wxClientDC(arg1);
15548
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15560 PyObject *obj;
15561 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15562 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15563 Py_INCREF(obj);
15564 return Py_BuildValue((char *)"");
15565 }
15566 static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15567 PyObject *resultobj;
15568 wxWindow *arg1 = (wxWindow *) 0 ;
15569 wxPaintDC *result;
15570 PyObject * obj0 = 0 ;
15571 char *kwnames[] = {
15572 (char *) "win", NULL
15573 };
15574
15575 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15576 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15577 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15578 {
15579 if (!wxPyCheckForApp()) SWIG_fail;
15580 PyThreadState* __tstate = wxPyBeginAllowThreads();
15581 result = (wxPaintDC *)new wxPaintDC(arg1);
15582
15583 wxPyEndAllowThreads(__tstate);
15584 if (PyErr_Occurred()) SWIG_fail;
15585 }
15586 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15587 return resultobj;
15588 fail:
15589 return NULL;
15590 }
15591
15592
15593 static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15594 PyObject *obj;
15595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15596 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15597 Py_INCREF(obj);
15598 return Py_BuildValue((char *)"");
15599 }
15600 static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15601 PyObject *resultobj;
15602 wxWindow *arg1 = (wxWindow *) 0 ;
15603 wxWindowDC *result;
15604 PyObject * obj0 = 0 ;
15605 char *kwnames[] = {
15606 (char *) "win", NULL
15607 };
15608
15609 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15610 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15611 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15612 {
15613 if (!wxPyCheckForApp()) SWIG_fail;
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 result = (wxWindowDC *)new wxWindowDC(arg1);
15616
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15621 return resultobj;
15622 fail:
15623 return NULL;
15624 }
15625
15626
15627 static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15628 PyObject *obj;
15629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15630 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15631 Py_INCREF(obj);
15632 return Py_BuildValue((char *)"");
15633 }
15634 static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj;
15636 wxDC *arg1 = 0 ;
15637 bool arg2 ;
15638 wxMirrorDC *result;
15639 PyObject * obj0 = 0 ;
15640 PyObject * obj1 = 0 ;
15641 char *kwnames[] = {
15642 (char *) "dc",(char *) "mirror", NULL
15643 };
15644
15645 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15646 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15647 SWIG_POINTER_EXCEPTION | 0)) == -1)
15648 SWIG_fail;
15649 if (arg1 == NULL) {
15650 PyErr_SetString(PyExc_TypeError,"null reference");
15651 SWIG_fail;
15652 }
15653 arg2 = (bool) SWIG_AsBool(obj1);
15654 if (PyErr_Occurred()) SWIG_fail;
15655 {
15656 if (!wxPyCheckForApp()) SWIG_fail;
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15659
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15664 return resultobj;
15665 fail:
15666 return NULL;
15667 }
15668
15669
15670 static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15671 PyObject *obj;
15672 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15673 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15674 Py_INCREF(obj);
15675 return Py_BuildValue((char *)"");
15676 }
15677 static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15678 PyObject *resultobj;
15679 wxPrintData *arg1 = 0 ;
15680 wxPostScriptDC *result;
15681 PyObject * obj0 = 0 ;
15682 char *kwnames[] = {
15683 (char *) "printData", NULL
15684 };
15685
15686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15688 SWIG_POINTER_EXCEPTION | 0)) == -1)
15689 SWIG_fail;
15690 if (arg1 == NULL) {
15691 PyErr_SetString(PyExc_TypeError,"null reference");
15692 SWIG_fail;
15693 }
15694 {
15695 if (!wxPyCheckForApp()) SWIG_fail;
15696 PyThreadState* __tstate = wxPyBeginAllowThreads();
15697 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15698
15699 wxPyEndAllowThreads(__tstate);
15700 if (PyErr_Occurred()) SWIG_fail;
15701 }
15702 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15703 return resultobj;
15704 fail:
15705 return NULL;
15706 }
15707
15708
15709 static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15710 PyObject *resultobj;
15711 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15712 wxPrintData *result;
15713 PyObject * obj0 = 0 ;
15714 char *kwnames[] = {
15715 (char *) "self", NULL
15716 };
15717
15718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15721 {
15722 PyThreadState* __tstate = wxPyBeginAllowThreads();
15723 {
15724 wxPrintData &_result_ref = (arg1)->GetPrintData();
15725 result = (wxPrintData *) &_result_ref;
15726 }
15727
15728 wxPyEndAllowThreads(__tstate);
15729 if (PyErr_Occurred()) SWIG_fail;
15730 }
15731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15732 return resultobj;
15733 fail:
15734 return NULL;
15735 }
15736
15737
15738 static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15739 PyObject *resultobj;
15740 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15741 wxPrintData *arg2 = 0 ;
15742 PyObject * obj0 = 0 ;
15743 PyObject * obj1 = 0 ;
15744 char *kwnames[] = {
15745 (char *) "self",(char *) "data", NULL
15746 };
15747
15748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15751 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15752 SWIG_POINTER_EXCEPTION | 0)) == -1)
15753 SWIG_fail;
15754 if (arg2 == NULL) {
15755 PyErr_SetString(PyExc_TypeError,"null reference");
15756 SWIG_fail;
15757 }
15758 {
15759 PyThreadState* __tstate = wxPyBeginAllowThreads();
15760 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15761
15762 wxPyEndAllowThreads(__tstate);
15763 if (PyErr_Occurred()) SWIG_fail;
15764 }
15765 Py_INCREF(Py_None); resultobj = Py_None;
15766 return resultobj;
15767 fail:
15768 return NULL;
15769 }
15770
15771
15772 static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15773 PyObject *resultobj;
15774 int arg1 ;
15775 PyObject * obj0 = 0 ;
15776 char *kwnames[] = {
15777 (char *) "ppi", NULL
15778 };
15779
15780 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15781 arg1 = (int) SWIG_AsInt(obj0);
15782 if (PyErr_Occurred()) SWIG_fail;
15783 {
15784 PyThreadState* __tstate = wxPyBeginAllowThreads();
15785 wxPostScriptDC::SetResolution(arg1);
15786
15787 wxPyEndAllowThreads(__tstate);
15788 if (PyErr_Occurred()) SWIG_fail;
15789 }
15790 Py_INCREF(Py_None); resultobj = Py_None;
15791 return resultobj;
15792 fail:
15793 return NULL;
15794 }
15795
15796
15797 static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15798 PyObject *resultobj;
15799 int result;
15800 char *kwnames[] = {
15801 NULL
15802 };
15803
15804 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15805 {
15806 PyThreadState* __tstate = wxPyBeginAllowThreads();
15807 result = (int)wxPostScriptDC::GetResolution();
15808
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 resultobj = SWIG_FromInt((int)result);
15813 return resultobj;
15814 fail:
15815 return NULL;
15816 }
15817
15818
15819 static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15820 PyObject *obj;
15821 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15822 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15823 Py_INCREF(obj);
15824 return Py_BuildValue((char *)"");
15825 }
15826 static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15827 PyObject *resultobj;
15828 wxString const &arg1_defvalue = wxPyEmptyString ;
15829 wxString *arg1 = (wxString *) &arg1_defvalue ;
15830 wxMetaFile *result;
15831 bool temp1 = False ;
15832 PyObject * obj0 = 0 ;
15833 char *kwnames[] = {
15834 (char *) "filename", NULL
15835 };
15836
15837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15838 if (obj0) {
15839 {
15840 arg1 = wxString_in_helper(obj0);
15841 if (arg1 == NULL) SWIG_fail;
15842 temp1 = True;
15843 }
15844 }
15845 {
15846 if (!wxPyCheckForApp()) SWIG_fail;
15847 PyThreadState* __tstate = wxPyBeginAllowThreads();
15848 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15849
15850 wxPyEndAllowThreads(__tstate);
15851 if (PyErr_Occurred()) SWIG_fail;
15852 }
15853 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15854 {
15855 if (temp1)
15856 delete arg1;
15857 }
15858 return resultobj;
15859 fail:
15860 {
15861 if (temp1)
15862 delete arg1;
15863 }
15864 return NULL;
15865 }
15866
15867
15868 static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15869 PyObject *obj;
15870 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15871 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15872 Py_INCREF(obj);
15873 return Py_BuildValue((char *)"");
15874 }
15875 static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15876 PyObject *resultobj;
15877 wxString const &arg1_defvalue = wxPyEmptyString ;
15878 wxString *arg1 = (wxString *) &arg1_defvalue ;
15879 int arg2 = (int) 0 ;
15880 int arg3 = (int) 0 ;
15881 wxString const &arg4_defvalue = wxPyEmptyString ;
15882 wxString *arg4 = (wxString *) &arg4_defvalue ;
15883 wxMetaFileDC *result;
15884 bool temp1 = False ;
15885 bool temp4 = False ;
15886 PyObject * obj0 = 0 ;
15887 PyObject * obj1 = 0 ;
15888 PyObject * obj2 = 0 ;
15889 PyObject * obj3 = 0 ;
15890 char *kwnames[] = {
15891 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
15892 };
15893
15894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
15895 if (obj0) {
15896 {
15897 arg1 = wxString_in_helper(obj0);
15898 if (arg1 == NULL) SWIG_fail;
15899 temp1 = True;
15900 }
15901 }
15902 if (obj1) {
15903 arg2 = (int) SWIG_AsInt(obj1);
15904 if (PyErr_Occurred()) SWIG_fail;
15905 }
15906 if (obj2) {
15907 arg3 = (int) SWIG_AsInt(obj2);
15908 if (PyErr_Occurred()) SWIG_fail;
15909 }
15910 if (obj3) {
15911 {
15912 arg4 = wxString_in_helper(obj3);
15913 if (arg4 == NULL) SWIG_fail;
15914 temp4 = True;
15915 }
15916 }
15917 {
15918 if (!wxPyCheckForApp()) SWIG_fail;
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
15920 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
15921
15922 wxPyEndAllowThreads(__tstate);
15923 if (PyErr_Occurred()) SWIG_fail;
15924 }
15925 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
15926 {
15927 if (temp1)
15928 delete arg1;
15929 }
15930 {
15931 if (temp4)
15932 delete arg4;
15933 }
15934 return resultobj;
15935 fail:
15936 {
15937 if (temp1)
15938 delete arg1;
15939 }
15940 {
15941 if (temp4)
15942 delete arg4;
15943 }
15944 return NULL;
15945 }
15946
15947
15948 static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
15949 PyObject *obj;
15950 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15951 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
15952 Py_INCREF(obj);
15953 return Py_BuildValue((char *)"");
15954 }
15955 static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15956 PyObject *resultobj;
15957 wxPrintData *arg1 = 0 ;
15958 wxPrinterDC *result;
15959 PyObject * obj0 = 0 ;
15960 char *kwnames[] = {
15961 (char *) "printData", NULL
15962 };
15963
15964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
15965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15966 SWIG_POINTER_EXCEPTION | 0)) == -1)
15967 SWIG_fail;
15968 if (arg1 == NULL) {
15969 PyErr_SetString(PyExc_TypeError,"null reference");
15970 SWIG_fail;
15971 }
15972 {
15973 if (!wxPyCheckForApp()) SWIG_fail;
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
15976
15977 wxPyEndAllowThreads(__tstate);
15978 if (PyErr_Occurred()) SWIG_fail;
15979 }
15980 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
15981 return resultobj;
15982 fail:
15983 return NULL;
15984 }
15985
15986
15987 static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
15988 PyObject *obj;
15989 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15990 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
15991 Py_INCREF(obj);
15992 return Py_BuildValue((char *)"");
15993 }
15994 static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
15995 PyObject *resultobj;
15996 int arg1 ;
15997 int arg2 ;
15998 int arg3 = (int) True ;
15999 int arg4 = (int) 1 ;
16000 wxImageList *result;
16001 PyObject * obj0 = 0 ;
16002 PyObject * obj1 = 0 ;
16003 PyObject * obj2 = 0 ;
16004 PyObject * obj3 = 0 ;
16005 char *kwnames[] = {
16006 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16007 };
16008
16009 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16010 arg1 = (int) SWIG_AsInt(obj0);
16011 if (PyErr_Occurred()) SWIG_fail;
16012 arg2 = (int) SWIG_AsInt(obj1);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 if (obj2) {
16015 arg3 = (int) SWIG_AsInt(obj2);
16016 if (PyErr_Occurred()) SWIG_fail;
16017 }
16018 if (obj3) {
16019 arg4 = (int) SWIG_AsInt(obj3);
16020 if (PyErr_Occurred()) SWIG_fail;
16021 }
16022 {
16023 if (!wxPyCheckForApp()) SWIG_fail;
16024 PyThreadState* __tstate = wxPyBeginAllowThreads();
16025 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16026
16027 wxPyEndAllowThreads(__tstate);
16028 if (PyErr_Occurred()) SWIG_fail;
16029 }
16030 {
16031 resultobj = wxPyMake_wxObject(result);
16032 }
16033 return resultobj;
16034 fail:
16035 return NULL;
16036 }
16037
16038
16039 static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16040 PyObject *resultobj;
16041 wxImageList *arg1 = (wxImageList *) 0 ;
16042 PyObject * obj0 = 0 ;
16043 char *kwnames[] = {
16044 (char *) "self", NULL
16045 };
16046
16047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16050 {
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
16052 delete arg1;
16053
16054 wxPyEndAllowThreads(__tstate);
16055 if (PyErr_Occurred()) SWIG_fail;
16056 }
16057 Py_INCREF(Py_None); resultobj = Py_None;
16058 return resultobj;
16059 fail:
16060 return NULL;
16061 }
16062
16063
16064 static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16065 PyObject *resultobj;
16066 wxImageList *arg1 = (wxImageList *) 0 ;
16067 wxBitmap *arg2 = 0 ;
16068 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16069 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16070 int result;
16071 PyObject * obj0 = 0 ;
16072 PyObject * obj1 = 0 ;
16073 PyObject * obj2 = 0 ;
16074 char *kwnames[] = {
16075 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16076 };
16077
16078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16082 SWIG_POINTER_EXCEPTION | 0)) == -1)
16083 SWIG_fail;
16084 if (arg2 == NULL) {
16085 PyErr_SetString(PyExc_TypeError,"null reference");
16086 SWIG_fail;
16087 }
16088 if (obj2) {
16089 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16090 SWIG_POINTER_EXCEPTION | 0)) == -1)
16091 SWIG_fail;
16092 if (arg3 == NULL) {
16093 PyErr_SetString(PyExc_TypeError,"null reference");
16094 SWIG_fail;
16095 }
16096 }
16097 {
16098 PyThreadState* __tstate = wxPyBeginAllowThreads();
16099 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16100
16101 wxPyEndAllowThreads(__tstate);
16102 if (PyErr_Occurred()) SWIG_fail;
16103 }
16104 resultobj = SWIG_FromInt((int)result);
16105 return resultobj;
16106 fail:
16107 return NULL;
16108 }
16109
16110
16111 static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16112 PyObject *resultobj;
16113 wxImageList *arg1 = (wxImageList *) 0 ;
16114 wxBitmap *arg2 = 0 ;
16115 wxColour *arg3 = 0 ;
16116 int result;
16117 wxColour temp3 ;
16118 PyObject * obj0 = 0 ;
16119 PyObject * obj1 = 0 ;
16120 PyObject * obj2 = 0 ;
16121 char *kwnames[] = {
16122 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16123 };
16124
16125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16126 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16127 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16128 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16129 SWIG_POINTER_EXCEPTION | 0)) == -1)
16130 SWIG_fail;
16131 if (arg2 == NULL) {
16132 PyErr_SetString(PyExc_TypeError,"null reference");
16133 SWIG_fail;
16134 }
16135 {
16136 arg3 = &temp3;
16137 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16138 }
16139 {
16140 PyThreadState* __tstate = wxPyBeginAllowThreads();
16141 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16142
16143 wxPyEndAllowThreads(__tstate);
16144 if (PyErr_Occurred()) SWIG_fail;
16145 }
16146 resultobj = SWIG_FromInt((int)result);
16147 return resultobj;
16148 fail:
16149 return NULL;
16150 }
16151
16152
16153 static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16154 PyObject *resultobj;
16155 wxImageList *arg1 = (wxImageList *) 0 ;
16156 wxIcon *arg2 = 0 ;
16157 int result;
16158 PyObject * obj0 = 0 ;
16159 PyObject * obj1 = 0 ;
16160 char *kwnames[] = {
16161 (char *) "self",(char *) "icon", NULL
16162 };
16163
16164 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16165 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16166 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16167 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16168 SWIG_POINTER_EXCEPTION | 0)) == -1)
16169 SWIG_fail;
16170 if (arg2 == NULL) {
16171 PyErr_SetString(PyExc_TypeError,"null reference");
16172 SWIG_fail;
16173 }
16174 {
16175 PyThreadState* __tstate = wxPyBeginAllowThreads();
16176 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16177
16178 wxPyEndAllowThreads(__tstate);
16179 if (PyErr_Occurred()) SWIG_fail;
16180 }
16181 resultobj = SWIG_FromInt((int)result);
16182 return resultobj;
16183 fail:
16184 return NULL;
16185 }
16186
16187
16188 static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16189 PyObject *resultobj;
16190 wxImageList *arg1 = (wxImageList *) 0 ;
16191 int arg2 ;
16192 wxBitmap *arg3 = 0 ;
16193 bool result;
16194 PyObject * obj0 = 0 ;
16195 PyObject * obj1 = 0 ;
16196 PyObject * obj2 = 0 ;
16197 char *kwnames[] = {
16198 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16199 };
16200
16201 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16202 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16203 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16204 arg2 = (int) SWIG_AsInt(obj1);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16207 SWIG_POINTER_EXCEPTION | 0)) == -1)
16208 SWIG_fail;
16209 if (arg3 == NULL) {
16210 PyErr_SetString(PyExc_TypeError,"null reference");
16211 SWIG_fail;
16212 }
16213 {
16214 PyThreadState* __tstate = wxPyBeginAllowThreads();
16215 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16216
16217 wxPyEndAllowThreads(__tstate);
16218 if (PyErr_Occurred()) SWIG_fail;
16219 }
16220 {
16221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16222 }
16223 return resultobj;
16224 fail:
16225 return NULL;
16226 }
16227
16228
16229 static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16230 PyObject *resultobj;
16231 wxImageList *arg1 = (wxImageList *) 0 ;
16232 int arg2 ;
16233 wxDC *arg3 = 0 ;
16234 int arg4 ;
16235 int arg5 ;
16236 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16237 bool arg7 = (bool) (bool)False ;
16238 bool result;
16239 PyObject * obj0 = 0 ;
16240 PyObject * obj1 = 0 ;
16241 PyObject * obj2 = 0 ;
16242 PyObject * obj3 = 0 ;
16243 PyObject * obj4 = 0 ;
16244 PyObject * obj5 = 0 ;
16245 PyObject * obj6 = 0 ;
16246 char *kwnames[] = {
16247 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16248 };
16249
16250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16253 arg2 = (int) SWIG_AsInt(obj1);
16254 if (PyErr_Occurred()) SWIG_fail;
16255 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16256 SWIG_POINTER_EXCEPTION | 0)) == -1)
16257 SWIG_fail;
16258 if (arg3 == NULL) {
16259 PyErr_SetString(PyExc_TypeError,"null reference");
16260 SWIG_fail;
16261 }
16262 arg4 = (int) SWIG_AsInt(obj3);
16263 if (PyErr_Occurred()) SWIG_fail;
16264 arg5 = (int) SWIG_AsInt(obj4);
16265 if (PyErr_Occurred()) SWIG_fail;
16266 if (obj5) {
16267 arg6 = (int) SWIG_AsInt(obj5);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 if (obj6) {
16271 arg7 = (bool const) SWIG_AsBool(obj6);
16272 if (PyErr_Occurred()) SWIG_fail;
16273 }
16274 {
16275 PyThreadState* __tstate = wxPyBeginAllowThreads();
16276 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16277
16278 wxPyEndAllowThreads(__tstate);
16279 if (PyErr_Occurred()) SWIG_fail;
16280 }
16281 {
16282 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16283 }
16284 return resultobj;
16285 fail:
16286 return NULL;
16287 }
16288
16289
16290 static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16291 PyObject *resultobj;
16292 wxImageList *arg1 = (wxImageList *) 0 ;
16293 int result;
16294 PyObject * obj0 = 0 ;
16295 char *kwnames[] = {
16296 (char *) "self", NULL
16297 };
16298
16299 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16300 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16301 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16302 {
16303 PyThreadState* __tstate = wxPyBeginAllowThreads();
16304 result = (int)(arg1)->GetImageCount();
16305
16306 wxPyEndAllowThreads(__tstate);
16307 if (PyErr_Occurred()) SWIG_fail;
16308 }
16309 resultobj = SWIG_FromInt((int)result);
16310 return resultobj;
16311 fail:
16312 return NULL;
16313 }
16314
16315
16316 static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16317 PyObject *resultobj;
16318 wxImageList *arg1 = (wxImageList *) 0 ;
16319 int arg2 ;
16320 bool result;
16321 PyObject * obj0 = 0 ;
16322 PyObject * obj1 = 0 ;
16323 char *kwnames[] = {
16324 (char *) "self",(char *) "index", NULL
16325 };
16326
16327 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16328 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16329 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16330 arg2 = (int) SWIG_AsInt(obj1);
16331 if (PyErr_Occurred()) SWIG_fail;
16332 {
16333 PyThreadState* __tstate = wxPyBeginAllowThreads();
16334 result = (bool)(arg1)->Remove(arg2);
16335
16336 wxPyEndAllowThreads(__tstate);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 }
16339 {
16340 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16341 }
16342 return resultobj;
16343 fail:
16344 return NULL;
16345 }
16346
16347
16348 static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16349 PyObject *resultobj;
16350 wxImageList *arg1 = (wxImageList *) 0 ;
16351 bool result;
16352 PyObject * obj0 = 0 ;
16353 char *kwnames[] = {
16354 (char *) "self", NULL
16355 };
16356
16357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16360 {
16361 PyThreadState* __tstate = wxPyBeginAllowThreads();
16362 result = (bool)(arg1)->RemoveAll();
16363
16364 wxPyEndAllowThreads(__tstate);
16365 if (PyErr_Occurred()) SWIG_fail;
16366 }
16367 {
16368 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16369 }
16370 return resultobj;
16371 fail:
16372 return NULL;
16373 }
16374
16375
16376 static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16377 PyObject *resultobj;
16378 wxImageList *arg1 = (wxImageList *) 0 ;
16379 int arg2 ;
16380 int *arg3 = 0 ;
16381 int *arg4 = 0 ;
16382 int temp3 ;
16383 int temp4 ;
16384 PyObject * obj0 = 0 ;
16385 PyObject * obj1 = 0 ;
16386 char *kwnames[] = {
16387 (char *) "self",(char *) "index", NULL
16388 };
16389
16390 arg3 = &temp3;
16391 arg4 = &temp4;
16392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16395 arg2 = (int) SWIG_AsInt(obj1);
16396 if (PyErr_Occurred()) SWIG_fail;
16397 {
16398 PyThreadState* __tstate = wxPyBeginAllowThreads();
16399 (arg1)->GetSize(arg2,*arg3,*arg4);
16400
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 Py_INCREF(Py_None); resultobj = Py_None;
16405 {
16406 PyObject *o = PyInt_FromLong((long) (*arg3));
16407 resultobj = t_output_helper(resultobj,o);
16408 }
16409 {
16410 PyObject *o = PyInt_FromLong((long) (*arg4));
16411 resultobj = t_output_helper(resultobj,o);
16412 }
16413 return resultobj;
16414 fail:
16415 return NULL;
16416 }
16417
16418
16419 static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16420 PyObject *obj;
16421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16422 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16423 Py_INCREF(obj);
16424 return Py_BuildValue((char *)"");
16425 }
16426 static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16427 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16428 return 1;
16429 }
16430
16431
16432 static PyObject *_wrap_NORMAL_FONT_get() {
16433 PyObject *pyobj;
16434
16435 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16436 return pyobj;
16437 }
16438
16439
16440 static int _wrap_SMALL_FONT_set(PyObject *_val) {
16441 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16442 return 1;
16443 }
16444
16445
16446 static PyObject *_wrap_SMALL_FONT_get() {
16447 PyObject *pyobj;
16448
16449 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16450 return pyobj;
16451 }
16452
16453
16454 static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16455 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16456 return 1;
16457 }
16458
16459
16460 static PyObject *_wrap_ITALIC_FONT_get() {
16461 PyObject *pyobj;
16462
16463 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16464 return pyobj;
16465 }
16466
16467
16468 static int _wrap_SWISS_FONT_set(PyObject *_val) {
16469 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16470 return 1;
16471 }
16472
16473
16474 static PyObject *_wrap_SWISS_FONT_get() {
16475 PyObject *pyobj;
16476
16477 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16478 return pyobj;
16479 }
16480
16481
16482 static int _wrap_RED_PEN_set(PyObject *_val) {
16483 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16484 return 1;
16485 }
16486
16487
16488 static PyObject *_wrap_RED_PEN_get() {
16489 PyObject *pyobj;
16490
16491 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16492 return pyobj;
16493 }
16494
16495
16496 static int _wrap_CYAN_PEN_set(PyObject *_val) {
16497 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16498 return 1;
16499 }
16500
16501
16502 static PyObject *_wrap_CYAN_PEN_get() {
16503 PyObject *pyobj;
16504
16505 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16506 return pyobj;
16507 }
16508
16509
16510 static int _wrap_GREEN_PEN_set(PyObject *_val) {
16511 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16512 return 1;
16513 }
16514
16515
16516 static PyObject *_wrap_GREEN_PEN_get() {
16517 PyObject *pyobj;
16518
16519 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16520 return pyobj;
16521 }
16522
16523
16524 static int _wrap_BLACK_PEN_set(PyObject *_val) {
16525 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16526 return 1;
16527 }
16528
16529
16530 static PyObject *_wrap_BLACK_PEN_get() {
16531 PyObject *pyobj;
16532
16533 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16534 return pyobj;
16535 }
16536
16537
16538 static int _wrap_WHITE_PEN_set(PyObject *_val) {
16539 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16540 return 1;
16541 }
16542
16543
16544 static PyObject *_wrap_WHITE_PEN_get() {
16545 PyObject *pyobj;
16546
16547 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16548 return pyobj;
16549 }
16550
16551
16552 static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16553 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16554 return 1;
16555 }
16556
16557
16558 static PyObject *_wrap_TRANSPARENT_PEN_get() {
16559 PyObject *pyobj;
16560
16561 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16562 return pyobj;
16563 }
16564
16565
16566 static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16567 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16568 return 1;
16569 }
16570
16571
16572 static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16573 PyObject *pyobj;
16574
16575 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16576 return pyobj;
16577 }
16578
16579
16580 static int _wrap_GREY_PEN_set(PyObject *_val) {
16581 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16582 return 1;
16583 }
16584
16585
16586 static PyObject *_wrap_GREY_PEN_get() {
16587 PyObject *pyobj;
16588
16589 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16590 return pyobj;
16591 }
16592
16593
16594 static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16595 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16596 return 1;
16597 }
16598
16599
16600 static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16601 PyObject *pyobj;
16602
16603 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16604 return pyobj;
16605 }
16606
16607
16608 static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16609 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16610 return 1;
16611 }
16612
16613
16614 static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16615 PyObject *pyobj;
16616
16617 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16618 return pyobj;
16619 }
16620
16621
16622 static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16623 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16624 return 1;
16625 }
16626
16627
16628 static PyObject *_wrap_BLUE_BRUSH_get() {
16629 PyObject *pyobj;
16630
16631 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16632 return pyobj;
16633 }
16634
16635
16636 static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16637 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16638 return 1;
16639 }
16640
16641
16642 static PyObject *_wrap_GREEN_BRUSH_get() {
16643 PyObject *pyobj;
16644
16645 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16646 return pyobj;
16647 }
16648
16649
16650 static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16651 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16652 return 1;
16653 }
16654
16655
16656 static PyObject *_wrap_WHITE_BRUSH_get() {
16657 PyObject *pyobj;
16658
16659 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16660 return pyobj;
16661 }
16662
16663
16664 static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16665 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16666 return 1;
16667 }
16668
16669
16670 static PyObject *_wrap_BLACK_BRUSH_get() {
16671 PyObject *pyobj;
16672
16673 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16674 return pyobj;
16675 }
16676
16677
16678 static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16679 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16680 return 1;
16681 }
16682
16683
16684 static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16685 PyObject *pyobj;
16686
16687 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16688 return pyobj;
16689 }
16690
16691
16692 static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16693 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16694 return 1;
16695 }
16696
16697
16698 static PyObject *_wrap_CYAN_BRUSH_get() {
16699 PyObject *pyobj;
16700
16701 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16702 return pyobj;
16703 }
16704
16705
16706 static int _wrap_RED_BRUSH_set(PyObject *_val) {
16707 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16708 return 1;
16709 }
16710
16711
16712 static PyObject *_wrap_RED_BRUSH_get() {
16713 PyObject *pyobj;
16714
16715 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16716 return pyobj;
16717 }
16718
16719
16720 static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16721 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16722 return 1;
16723 }
16724
16725
16726 static PyObject *_wrap_GREY_BRUSH_get() {
16727 PyObject *pyobj;
16728
16729 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16730 return pyobj;
16731 }
16732
16733
16734 static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16735 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16736 return 1;
16737 }
16738
16739
16740 static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16741 PyObject *pyobj;
16742
16743 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16744 return pyobj;
16745 }
16746
16747
16748 static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16749 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16750 return 1;
16751 }
16752
16753
16754 static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16755 PyObject *pyobj;
16756
16757 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16758 return pyobj;
16759 }
16760
16761
16762 static int _wrap_BLACK_set(PyObject *_val) {
16763 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16764 return 1;
16765 }
16766
16767
16768 static PyObject *_wrap_BLACK_get() {
16769 PyObject *pyobj;
16770
16771 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16772 return pyobj;
16773 }
16774
16775
16776 static int _wrap_WHITE_set(PyObject *_val) {
16777 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16778 return 1;
16779 }
16780
16781
16782 static PyObject *_wrap_WHITE_get() {
16783 PyObject *pyobj;
16784
16785 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16786 return pyobj;
16787 }
16788
16789
16790 static int _wrap_RED_set(PyObject *_val) {
16791 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16792 return 1;
16793 }
16794
16795
16796 static PyObject *_wrap_RED_get() {
16797 PyObject *pyobj;
16798
16799 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16800 return pyobj;
16801 }
16802
16803
16804 static int _wrap_BLUE_set(PyObject *_val) {
16805 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16806 return 1;
16807 }
16808
16809
16810 static PyObject *_wrap_BLUE_get() {
16811 PyObject *pyobj;
16812
16813 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16814 return pyobj;
16815 }
16816
16817
16818 static int _wrap_GREEN_set(PyObject *_val) {
16819 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16820 return 1;
16821 }
16822
16823
16824 static PyObject *_wrap_GREEN_get() {
16825 PyObject *pyobj;
16826
16827 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16828 return pyobj;
16829 }
16830
16831
16832 static int _wrap_CYAN_set(PyObject *_val) {
16833 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16834 return 1;
16835 }
16836
16837
16838 static PyObject *_wrap_CYAN_get() {
16839 PyObject *pyobj;
16840
16841 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16842 return pyobj;
16843 }
16844
16845
16846 static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16847 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16848 return 1;
16849 }
16850
16851
16852 static PyObject *_wrap_LIGHT_GREY_get() {
16853 PyObject *pyobj;
16854
16855 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
16856 return pyobj;
16857 }
16858
16859
16860 static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
16861 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
16862 return 1;
16863 }
16864
16865
16866 static PyObject *_wrap_STANDARD_CURSOR_get() {
16867 PyObject *pyobj;
16868
16869 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
16870 return pyobj;
16871 }
16872
16873
16874 static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
16875 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
16876 return 1;
16877 }
16878
16879
16880 static PyObject *_wrap_HOURGLASS_CURSOR_get() {
16881 PyObject *pyobj;
16882
16883 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16884 return pyobj;
16885 }
16886
16887
16888 static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
16889 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
16890 return 1;
16891 }
16892
16893
16894 static PyObject *_wrap_CROSS_CURSOR_get() {
16895 PyObject *pyobj;
16896
16897 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
16898 return pyobj;
16899 }
16900
16901
16902 static int _wrap_NullBitmap_set(PyObject *_val) {
16903 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
16904 return 1;
16905 }
16906
16907
16908 static PyObject *_wrap_NullBitmap_get() {
16909 PyObject *pyobj;
16910
16911 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
16912 return pyobj;
16913 }
16914
16915
16916 static int _wrap_NullIcon_set(PyObject *_val) {
16917 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
16918 return 1;
16919 }
16920
16921
16922 static PyObject *_wrap_NullIcon_get() {
16923 PyObject *pyobj;
16924
16925 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
16926 return pyobj;
16927 }
16928
16929
16930 static int _wrap_NullCursor_set(PyObject *_val) {
16931 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
16932 return 1;
16933 }
16934
16935
16936 static PyObject *_wrap_NullCursor_get() {
16937 PyObject *pyobj;
16938
16939 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
16940 return pyobj;
16941 }
16942
16943
16944 static int _wrap_NullPen_set(PyObject *_val) {
16945 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
16946 return 1;
16947 }
16948
16949
16950 static PyObject *_wrap_NullPen_get() {
16951 PyObject *pyobj;
16952
16953 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
16954 return pyobj;
16955 }
16956
16957
16958 static int _wrap_NullBrush_set(PyObject *_val) {
16959 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
16960 return 1;
16961 }
16962
16963
16964 static PyObject *_wrap_NullBrush_get() {
16965 PyObject *pyobj;
16966
16967 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
16968 return pyobj;
16969 }
16970
16971
16972 static int _wrap_NullPalette_set(PyObject *_val) {
16973 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
16974 return 1;
16975 }
16976
16977
16978 static PyObject *_wrap_NullPalette_get() {
16979 PyObject *pyobj;
16980
16981 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
16982 return pyobj;
16983 }
16984
16985
16986 static int _wrap_NullFont_set(PyObject *_val) {
16987 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
16988 return 1;
16989 }
16990
16991
16992 static PyObject *_wrap_NullFont_get() {
16993 PyObject *pyobj;
16994
16995 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
16996 return pyobj;
16997 }
16998
16999
17000 static int _wrap_NullColour_set(PyObject *_val) {
17001 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17002 return 1;
17003 }
17004
17005
17006 static PyObject *_wrap_NullColour_get() {
17007 PyObject *pyobj;
17008
17009 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17010 return pyobj;
17011 }
17012
17013
17014 static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17015 PyObject *resultobj;
17016 wxPenList *arg1 = (wxPenList *) 0 ;
17017 wxPen *arg2 = (wxPen *) 0 ;
17018 PyObject * obj0 = 0 ;
17019 PyObject * obj1 = 0 ;
17020 char *kwnames[] = {
17021 (char *) "self",(char *) "pen", NULL
17022 };
17023
17024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17027 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17028 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 (arg1)->AddPen(arg2);
17032
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 Py_INCREF(Py_None); resultobj = Py_None;
17037 return resultobj;
17038 fail:
17039 return NULL;
17040 }
17041
17042
17043 static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17044 PyObject *resultobj;
17045 wxPenList *arg1 = (wxPenList *) 0 ;
17046 wxColour *arg2 = 0 ;
17047 int arg3 ;
17048 int arg4 ;
17049 wxPen *result;
17050 wxColour temp2 ;
17051 PyObject * obj0 = 0 ;
17052 PyObject * obj1 = 0 ;
17053 PyObject * obj2 = 0 ;
17054 PyObject * obj3 = 0 ;
17055 char *kwnames[] = {
17056 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17057 };
17058
17059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17060 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17061 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17062 {
17063 arg2 = &temp2;
17064 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17065 }
17066 arg3 = (int) SWIG_AsInt(obj2);
17067 if (PyErr_Occurred()) SWIG_fail;
17068 arg4 = (int) SWIG_AsInt(obj3);
17069 if (PyErr_Occurred()) SWIG_fail;
17070 {
17071 PyThreadState* __tstate = wxPyBeginAllowThreads();
17072 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17073
17074 wxPyEndAllowThreads(__tstate);
17075 if (PyErr_Occurred()) SWIG_fail;
17076 }
17077 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17078 return resultobj;
17079 fail:
17080 return NULL;
17081 }
17082
17083
17084 static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17085 PyObject *resultobj;
17086 wxPenList *arg1 = (wxPenList *) 0 ;
17087 wxPen *arg2 = (wxPen *) 0 ;
17088 PyObject * obj0 = 0 ;
17089 PyObject * obj1 = 0 ;
17090 char *kwnames[] = {
17091 (char *) "self",(char *) "pen", NULL
17092 };
17093
17094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17097 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17098 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17099 {
17100 PyThreadState* __tstate = wxPyBeginAllowThreads();
17101 (arg1)->RemovePen(arg2);
17102
17103 wxPyEndAllowThreads(__tstate);
17104 if (PyErr_Occurred()) SWIG_fail;
17105 }
17106 Py_INCREF(Py_None); resultobj = Py_None;
17107 return resultobj;
17108 fail:
17109 return NULL;
17110 }
17111
17112
17113 static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17114 PyObject *resultobj;
17115 wxPenList *arg1 = (wxPenList *) 0 ;
17116 int result;
17117 PyObject * obj0 = 0 ;
17118 char *kwnames[] = {
17119 (char *) "self", NULL
17120 };
17121
17122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17125 {
17126 PyThreadState* __tstate = wxPyBeginAllowThreads();
17127 result = (int)(arg1)->GetCount();
17128
17129 wxPyEndAllowThreads(__tstate);
17130 if (PyErr_Occurred()) SWIG_fail;
17131 }
17132 resultobj = SWIG_FromInt((int)result);
17133 return resultobj;
17134 fail:
17135 return NULL;
17136 }
17137
17138
17139 static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17140 PyObject *obj;
17141 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17142 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17143 Py_INCREF(obj);
17144 return Py_BuildValue((char *)"");
17145 }
17146 static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17147 PyObject *resultobj;
17148 wxBrushList *arg1 = (wxBrushList *) 0 ;
17149 wxBrush *arg2 = (wxBrush *) 0 ;
17150 PyObject * obj0 = 0 ;
17151 PyObject * obj1 = 0 ;
17152 char *kwnames[] = {
17153 (char *) "self",(char *) "brush", NULL
17154 };
17155
17156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17159 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17161 {
17162 PyThreadState* __tstate = wxPyBeginAllowThreads();
17163 (arg1)->AddBrush(arg2);
17164
17165 wxPyEndAllowThreads(__tstate);
17166 if (PyErr_Occurred()) SWIG_fail;
17167 }
17168 Py_INCREF(Py_None); resultobj = Py_None;
17169 return resultobj;
17170 fail:
17171 return NULL;
17172 }
17173
17174
17175 static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17176 PyObject *resultobj;
17177 wxBrushList *arg1 = (wxBrushList *) 0 ;
17178 wxColour *arg2 = 0 ;
17179 int arg3 ;
17180 wxBrush *result;
17181 wxColour temp2 ;
17182 PyObject * obj0 = 0 ;
17183 PyObject * obj1 = 0 ;
17184 PyObject * obj2 = 0 ;
17185 char *kwnames[] = {
17186 (char *) "self",(char *) "colour",(char *) "style", NULL
17187 };
17188
17189 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17190 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17191 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17192 {
17193 arg2 = &temp2;
17194 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17195 }
17196 arg3 = (int) SWIG_AsInt(obj2);
17197 if (PyErr_Occurred()) SWIG_fail;
17198 {
17199 PyThreadState* __tstate = wxPyBeginAllowThreads();
17200 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17201
17202 wxPyEndAllowThreads(__tstate);
17203 if (PyErr_Occurred()) SWIG_fail;
17204 }
17205 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17206 return resultobj;
17207 fail:
17208 return NULL;
17209 }
17210
17211
17212 static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17213 PyObject *resultobj;
17214 wxBrushList *arg1 = (wxBrushList *) 0 ;
17215 wxBrush *arg2 = (wxBrush *) 0 ;
17216 PyObject * obj0 = 0 ;
17217 PyObject * obj1 = 0 ;
17218 char *kwnames[] = {
17219 (char *) "self",(char *) "brush", NULL
17220 };
17221
17222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17226 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17227 {
17228 PyThreadState* __tstate = wxPyBeginAllowThreads();
17229 (arg1)->RemoveBrush(arg2);
17230
17231 wxPyEndAllowThreads(__tstate);
17232 if (PyErr_Occurred()) SWIG_fail;
17233 }
17234 Py_INCREF(Py_None); resultobj = Py_None;
17235 return resultobj;
17236 fail:
17237 return NULL;
17238 }
17239
17240
17241 static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17242 PyObject *resultobj;
17243 wxBrushList *arg1 = (wxBrushList *) 0 ;
17244 int result;
17245 PyObject * obj0 = 0 ;
17246 char *kwnames[] = {
17247 (char *) "self", NULL
17248 };
17249
17250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17253 {
17254 PyThreadState* __tstate = wxPyBeginAllowThreads();
17255 result = (int)(arg1)->GetCount();
17256
17257 wxPyEndAllowThreads(__tstate);
17258 if (PyErr_Occurred()) SWIG_fail;
17259 }
17260 resultobj = SWIG_FromInt((int)result);
17261 return resultobj;
17262 fail:
17263 return NULL;
17264 }
17265
17266
17267 static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17268 PyObject *obj;
17269 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17270 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17271 Py_INCREF(obj);
17272 return Py_BuildValue((char *)"");
17273 }
17274 static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17275 PyObject *resultobj;
17276 wxColourDatabase *result;
17277 char *kwnames[] = {
17278 NULL
17279 };
17280
17281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17282 {
17283 if (!wxPyCheckForApp()) SWIG_fail;
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 result = (wxColourDatabase *)new wxColourDatabase();
17286
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17291 return resultobj;
17292 fail:
17293 return NULL;
17294 }
17295
17296
17297 static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17298 PyObject *resultobj;
17299 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17300 PyObject * obj0 = 0 ;
17301 char *kwnames[] = {
17302 (char *) "self", NULL
17303 };
17304
17305 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17306 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17307 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17308 {
17309 PyThreadState* __tstate = wxPyBeginAllowThreads();
17310 delete arg1;
17311
17312 wxPyEndAllowThreads(__tstate);
17313 if (PyErr_Occurred()) SWIG_fail;
17314 }
17315 Py_INCREF(Py_None); resultobj = Py_None;
17316 return resultobj;
17317 fail:
17318 return NULL;
17319 }
17320
17321
17322 static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17323 PyObject *resultobj;
17324 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17325 wxString *arg2 = 0 ;
17326 wxColour result;
17327 bool temp2 = False ;
17328 PyObject * obj0 = 0 ;
17329 PyObject * obj1 = 0 ;
17330 char *kwnames[] = {
17331 (char *) "self",(char *) "name", NULL
17332 };
17333
17334 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17335 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17336 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17337 {
17338 arg2 = wxString_in_helper(obj1);
17339 if (arg2 == NULL) SWIG_fail;
17340 temp2 = True;
17341 }
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17345
17346 wxPyEndAllowThreads(__tstate);
17347 if (PyErr_Occurred()) SWIG_fail;
17348 }
17349 {
17350 wxColour * resultptr;
17351 resultptr = new wxColour((wxColour &) result);
17352 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17353 }
17354 {
17355 if (temp2)
17356 delete arg2;
17357 }
17358 return resultobj;
17359 fail:
17360 {
17361 if (temp2)
17362 delete arg2;
17363 }
17364 return NULL;
17365 }
17366
17367
17368 static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17369 PyObject *resultobj;
17370 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17371 wxColour *arg2 = 0 ;
17372 wxString result;
17373 wxColour temp2 ;
17374 PyObject * obj0 = 0 ;
17375 PyObject * obj1 = 0 ;
17376 char *kwnames[] = {
17377 (char *) "self",(char *) "colour", NULL
17378 };
17379
17380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17383 {
17384 arg2 = &temp2;
17385 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17386 }
17387 {
17388 PyThreadState* __tstate = wxPyBeginAllowThreads();
17389 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17390
17391 wxPyEndAllowThreads(__tstate);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 {
17395 #if wxUSE_UNICODE
17396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17397 #else
17398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17399 #endif
17400 }
17401 return resultobj;
17402 fail:
17403 return NULL;
17404 }
17405
17406
17407 static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17408 PyObject *resultobj;
17409 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17410 wxString *arg2 = 0 ;
17411 wxColour *arg3 = 0 ;
17412 bool temp2 = False ;
17413 wxColour temp3 ;
17414 PyObject * obj0 = 0 ;
17415 PyObject * obj1 = 0 ;
17416 PyObject * obj2 = 0 ;
17417 char *kwnames[] = {
17418 (char *) "self",(char *) "name",(char *) "colour", NULL
17419 };
17420
17421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17424 {
17425 arg2 = wxString_in_helper(obj1);
17426 if (arg2 == NULL) SWIG_fail;
17427 temp2 = True;
17428 }
17429 {
17430 arg3 = &temp3;
17431 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17432 }
17433 {
17434 PyThreadState* __tstate = wxPyBeginAllowThreads();
17435 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17436
17437 wxPyEndAllowThreads(__tstate);
17438 if (PyErr_Occurred()) SWIG_fail;
17439 }
17440 Py_INCREF(Py_None); resultobj = Py_None;
17441 {
17442 if (temp2)
17443 delete arg2;
17444 }
17445 return resultobj;
17446 fail:
17447 {
17448 if (temp2)
17449 delete arg2;
17450 }
17451 return NULL;
17452 }
17453
17454
17455 static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj;
17457 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17458 wxString *arg2 = 0 ;
17459 int arg3 ;
17460 int arg4 ;
17461 int arg5 ;
17462 bool temp2 = False ;
17463 PyObject * obj0 = 0 ;
17464 PyObject * obj1 = 0 ;
17465 PyObject * obj2 = 0 ;
17466 PyObject * obj3 = 0 ;
17467 PyObject * obj4 = 0 ;
17468 char *kwnames[] = {
17469 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17470 };
17471
17472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17475 {
17476 arg2 = wxString_in_helper(obj1);
17477 if (arg2 == NULL) SWIG_fail;
17478 temp2 = True;
17479 }
17480 arg3 = (int) SWIG_AsInt(obj2);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 arg4 = (int) SWIG_AsInt(obj3);
17483 if (PyErr_Occurred()) SWIG_fail;
17484 arg5 = (int) SWIG_AsInt(obj4);
17485 if (PyErr_Occurred()) SWIG_fail;
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17489
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 Py_INCREF(Py_None); resultobj = Py_None;
17494 {
17495 if (temp2)
17496 delete arg2;
17497 }
17498 return resultobj;
17499 fail:
17500 {
17501 if (temp2)
17502 delete arg2;
17503 }
17504 return NULL;
17505 }
17506
17507
17508 static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17509 PyObject *obj;
17510 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17511 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17512 Py_INCREF(obj);
17513 return Py_BuildValue((char *)"");
17514 }
17515 static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17516 PyObject *resultobj;
17517 wxFontList *arg1 = (wxFontList *) 0 ;
17518 wxFont *arg2 = (wxFont *) 0 ;
17519 PyObject * obj0 = 0 ;
17520 PyObject * obj1 = 0 ;
17521 char *kwnames[] = {
17522 (char *) "self",(char *) "font", NULL
17523 };
17524
17525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17528 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17529 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17530 {
17531 PyThreadState* __tstate = wxPyBeginAllowThreads();
17532 (arg1)->AddFont(arg2);
17533
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 Py_INCREF(Py_None); resultobj = Py_None;
17538 return resultobj;
17539 fail:
17540 return NULL;
17541 }
17542
17543
17544 static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17545 PyObject *resultobj;
17546 wxFontList *arg1 = (wxFontList *) 0 ;
17547 int arg2 ;
17548 int arg3 ;
17549 int arg4 ;
17550 int arg5 ;
17551 bool arg6 = (bool) False ;
17552 wxString const &arg7_defvalue = wxPyEmptyString ;
17553 wxString *arg7 = (wxString *) &arg7_defvalue ;
17554 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17555 wxFont *result;
17556 bool temp7 = False ;
17557 PyObject * obj0 = 0 ;
17558 PyObject * obj1 = 0 ;
17559 PyObject * obj2 = 0 ;
17560 PyObject * obj3 = 0 ;
17561 PyObject * obj4 = 0 ;
17562 PyObject * obj5 = 0 ;
17563 PyObject * obj6 = 0 ;
17564 PyObject * obj7 = 0 ;
17565 char *kwnames[] = {
17566 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17567 };
17568
17569 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17570 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17571 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17572 arg2 = (int) SWIG_AsInt(obj1);
17573 if (PyErr_Occurred()) SWIG_fail;
17574 arg3 = (int) SWIG_AsInt(obj2);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 arg4 = (int) SWIG_AsInt(obj3);
17577 if (PyErr_Occurred()) SWIG_fail;
17578 arg5 = (int) SWIG_AsInt(obj4);
17579 if (PyErr_Occurred()) SWIG_fail;
17580 if (obj5) {
17581 arg6 = (bool) SWIG_AsBool(obj5);
17582 if (PyErr_Occurred()) SWIG_fail;
17583 }
17584 if (obj6) {
17585 {
17586 arg7 = wxString_in_helper(obj6);
17587 if (arg7 == NULL) SWIG_fail;
17588 temp7 = True;
17589 }
17590 }
17591 if (obj7) {
17592 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17593 if (PyErr_Occurred()) SWIG_fail;
17594 }
17595 {
17596 PyThreadState* __tstate = wxPyBeginAllowThreads();
17597 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17598
17599 wxPyEndAllowThreads(__tstate);
17600 if (PyErr_Occurred()) SWIG_fail;
17601 }
17602 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17603 {
17604 if (temp7)
17605 delete arg7;
17606 }
17607 return resultobj;
17608 fail:
17609 {
17610 if (temp7)
17611 delete arg7;
17612 }
17613 return NULL;
17614 }
17615
17616
17617 static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17618 PyObject *resultobj;
17619 wxFontList *arg1 = (wxFontList *) 0 ;
17620 wxFont *arg2 = (wxFont *) 0 ;
17621 PyObject * obj0 = 0 ;
17622 PyObject * obj1 = 0 ;
17623 char *kwnames[] = {
17624 (char *) "self",(char *) "font", NULL
17625 };
17626
17627 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17628 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17629 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17630 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17632 {
17633 PyThreadState* __tstate = wxPyBeginAllowThreads();
17634 (arg1)->RemoveFont(arg2);
17635
17636 wxPyEndAllowThreads(__tstate);
17637 if (PyErr_Occurred()) SWIG_fail;
17638 }
17639 Py_INCREF(Py_None); resultobj = Py_None;
17640 return resultobj;
17641 fail:
17642 return NULL;
17643 }
17644
17645
17646 static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17647 PyObject *resultobj;
17648 wxFontList *arg1 = (wxFontList *) 0 ;
17649 int result;
17650 PyObject * obj0 = 0 ;
17651 char *kwnames[] = {
17652 (char *) "self", NULL
17653 };
17654
17655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17656 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17657 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17658 {
17659 PyThreadState* __tstate = wxPyBeginAllowThreads();
17660 result = (int)(arg1)->GetCount();
17661
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 resultobj = SWIG_FromInt((int)result);
17666 return resultobj;
17667 fail:
17668 return NULL;
17669 }
17670
17671
17672 static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17673 PyObject *obj;
17674 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17675 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17676 Py_INCREF(obj);
17677 return Py_BuildValue((char *)"");
17678 }
17679 static int _wrap_TheFontList_set(PyObject *_val) {
17680 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17681 return 1;
17682 }
17683
17684
17685 static PyObject *_wrap_TheFontList_get() {
17686 PyObject *pyobj;
17687
17688 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17689 return pyobj;
17690 }
17691
17692
17693 static int _wrap_ThePenList_set(PyObject *_val) {
17694 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17695 return 1;
17696 }
17697
17698
17699 static PyObject *_wrap_ThePenList_get() {
17700 PyObject *pyobj;
17701
17702 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17703 return pyobj;
17704 }
17705
17706
17707 static int _wrap_TheBrushList_set(PyObject *_val) {
17708 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17709 return 1;
17710 }
17711
17712
17713 static PyObject *_wrap_TheBrushList_get() {
17714 PyObject *pyobj;
17715
17716 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17717 return pyobj;
17718 }
17719
17720
17721 static int _wrap_TheColourDatabase_set(PyObject *_val) {
17722 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17723 return 1;
17724 }
17725
17726
17727 static PyObject *_wrap_TheColourDatabase_get() {
17728 PyObject *pyobj;
17729
17730 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17731 return pyobj;
17732 }
17733
17734
17735 static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17736 PyObject *resultobj;
17737 wxEffects *result;
17738 char *kwnames[] = {
17739 NULL
17740 };
17741
17742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17743 {
17744 PyThreadState* __tstate = wxPyBeginAllowThreads();
17745 result = (wxEffects *)new wxEffects();
17746
17747 wxPyEndAllowThreads(__tstate);
17748 if (PyErr_Occurred()) SWIG_fail;
17749 }
17750 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17751 return resultobj;
17752 fail:
17753 return NULL;
17754 }
17755
17756
17757 static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17758 PyObject *resultobj;
17759 wxEffects *arg1 = (wxEffects *) 0 ;
17760 wxColour result;
17761 PyObject * obj0 = 0 ;
17762 char *kwnames[] = {
17763 (char *) "self", NULL
17764 };
17765
17766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17769 {
17770 PyThreadState* __tstate = wxPyBeginAllowThreads();
17771 result = ((wxEffects const *)arg1)->GetHighlightColour();
17772
17773 wxPyEndAllowThreads(__tstate);
17774 if (PyErr_Occurred()) SWIG_fail;
17775 }
17776 {
17777 wxColour * resultptr;
17778 resultptr = new wxColour((wxColour &) result);
17779 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17780 }
17781 return resultobj;
17782 fail:
17783 return NULL;
17784 }
17785
17786
17787 static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17788 PyObject *resultobj;
17789 wxEffects *arg1 = (wxEffects *) 0 ;
17790 wxColour result;
17791 PyObject * obj0 = 0 ;
17792 char *kwnames[] = {
17793 (char *) "self", NULL
17794 };
17795
17796 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17797 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17798 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17799 {
17800 PyThreadState* __tstate = wxPyBeginAllowThreads();
17801 result = ((wxEffects const *)arg1)->GetLightShadow();
17802
17803 wxPyEndAllowThreads(__tstate);
17804 if (PyErr_Occurred()) SWIG_fail;
17805 }
17806 {
17807 wxColour * resultptr;
17808 resultptr = new wxColour((wxColour &) result);
17809 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17810 }
17811 return resultobj;
17812 fail:
17813 return NULL;
17814 }
17815
17816
17817 static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17818 PyObject *resultobj;
17819 wxEffects *arg1 = (wxEffects *) 0 ;
17820 wxColour result;
17821 PyObject * obj0 = 0 ;
17822 char *kwnames[] = {
17823 (char *) "self", NULL
17824 };
17825
17826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17829 {
17830 PyThreadState* __tstate = wxPyBeginAllowThreads();
17831 result = ((wxEffects const *)arg1)->GetFaceColour();
17832
17833 wxPyEndAllowThreads(__tstate);
17834 if (PyErr_Occurred()) SWIG_fail;
17835 }
17836 {
17837 wxColour * resultptr;
17838 resultptr = new wxColour((wxColour &) result);
17839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17840 }
17841 return resultobj;
17842 fail:
17843 return NULL;
17844 }
17845
17846
17847 static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17848 PyObject *resultobj;
17849 wxEffects *arg1 = (wxEffects *) 0 ;
17850 wxColour result;
17851 PyObject * obj0 = 0 ;
17852 char *kwnames[] = {
17853 (char *) "self", NULL
17854 };
17855
17856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
17857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17859 {
17860 PyThreadState* __tstate = wxPyBeginAllowThreads();
17861 result = ((wxEffects const *)arg1)->GetMediumShadow();
17862
17863 wxPyEndAllowThreads(__tstate);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 {
17867 wxColour * resultptr;
17868 resultptr = new wxColour((wxColour &) result);
17869 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17870 }
17871 return resultobj;
17872 fail:
17873 return NULL;
17874 }
17875
17876
17877 static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17878 PyObject *resultobj;
17879 wxEffects *arg1 = (wxEffects *) 0 ;
17880 wxColour result;
17881 PyObject * obj0 = 0 ;
17882 char *kwnames[] = {
17883 (char *) "self", NULL
17884 };
17885
17886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
17887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = ((wxEffects const *)arg1)->GetDarkShadow();
17892
17893 wxPyEndAllowThreads(__tstate);
17894 if (PyErr_Occurred()) SWIG_fail;
17895 }
17896 {
17897 wxColour * resultptr;
17898 resultptr = new wxColour((wxColour &) result);
17899 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17900 }
17901 return resultobj;
17902 fail:
17903 return NULL;
17904 }
17905
17906
17907 static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17908 PyObject *resultobj;
17909 wxEffects *arg1 = (wxEffects *) 0 ;
17910 wxColour *arg2 = 0 ;
17911 wxColour temp2 ;
17912 PyObject * obj0 = 0 ;
17913 PyObject * obj1 = 0 ;
17914 char *kwnames[] = {
17915 (char *) "self",(char *) "c", NULL
17916 };
17917
17918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
17919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17921 {
17922 arg2 = &temp2;
17923 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17924 }
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 (arg1)->SetHighlightColour((wxColour const &)*arg2);
17928
17929 wxPyEndAllowThreads(__tstate);
17930 if (PyErr_Occurred()) SWIG_fail;
17931 }
17932 Py_INCREF(Py_None); resultobj = Py_None;
17933 return resultobj;
17934 fail:
17935 return NULL;
17936 }
17937
17938
17939 static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17940 PyObject *resultobj;
17941 wxEffects *arg1 = (wxEffects *) 0 ;
17942 wxColour *arg2 = 0 ;
17943 wxColour temp2 ;
17944 PyObject * obj0 = 0 ;
17945 PyObject * obj1 = 0 ;
17946 char *kwnames[] = {
17947 (char *) "self",(char *) "c", NULL
17948 };
17949
17950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
17951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17953 {
17954 arg2 = &temp2;
17955 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17956 }
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 (arg1)->SetLightShadow((wxColour const &)*arg2);
17960
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 Py_INCREF(Py_None); resultobj = Py_None;
17965 return resultobj;
17966 fail:
17967 return NULL;
17968 }
17969
17970
17971 static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17972 PyObject *resultobj;
17973 wxEffects *arg1 = (wxEffects *) 0 ;
17974 wxColour *arg2 = 0 ;
17975 wxColour temp2 ;
17976 PyObject * obj0 = 0 ;
17977 PyObject * obj1 = 0 ;
17978 char *kwnames[] = {
17979 (char *) "self",(char *) "c", NULL
17980 };
17981
17982 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
17983 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17985 {
17986 arg2 = &temp2;
17987 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17988 }
17989 {
17990 PyThreadState* __tstate = wxPyBeginAllowThreads();
17991 (arg1)->SetFaceColour((wxColour const &)*arg2);
17992
17993 wxPyEndAllowThreads(__tstate);
17994 if (PyErr_Occurred()) SWIG_fail;
17995 }
17996 Py_INCREF(Py_None); resultobj = Py_None;
17997 return resultobj;
17998 fail:
17999 return NULL;
18000 }
18001
18002
18003 static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18004 PyObject *resultobj;
18005 wxEffects *arg1 = (wxEffects *) 0 ;
18006 wxColour *arg2 = 0 ;
18007 wxColour temp2 ;
18008 PyObject * obj0 = 0 ;
18009 PyObject * obj1 = 0 ;
18010 char *kwnames[] = {
18011 (char *) "self",(char *) "c", NULL
18012 };
18013
18014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18017 {
18018 arg2 = &temp2;
18019 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18024
18025 wxPyEndAllowThreads(__tstate);
18026 if (PyErr_Occurred()) SWIG_fail;
18027 }
18028 Py_INCREF(Py_None); resultobj = Py_None;
18029 return resultobj;
18030 fail:
18031 return NULL;
18032 }
18033
18034
18035 static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18036 PyObject *resultobj;
18037 wxEffects *arg1 = (wxEffects *) 0 ;
18038 wxColour *arg2 = 0 ;
18039 wxColour temp2 ;
18040 PyObject * obj0 = 0 ;
18041 PyObject * obj1 = 0 ;
18042 char *kwnames[] = {
18043 (char *) "self",(char *) "c", NULL
18044 };
18045
18046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18049 {
18050 arg2 = &temp2;
18051 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18052 }
18053 {
18054 PyThreadState* __tstate = wxPyBeginAllowThreads();
18055 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18056
18057 wxPyEndAllowThreads(__tstate);
18058 if (PyErr_Occurred()) SWIG_fail;
18059 }
18060 Py_INCREF(Py_None); resultobj = Py_None;
18061 return resultobj;
18062 fail:
18063 return NULL;
18064 }
18065
18066
18067 static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18068 PyObject *resultobj;
18069 wxEffects *arg1 = (wxEffects *) 0 ;
18070 wxColour *arg2 = 0 ;
18071 wxColour *arg3 = 0 ;
18072 wxColour *arg4 = 0 ;
18073 wxColour *arg5 = 0 ;
18074 wxColour *arg6 = 0 ;
18075 wxColour temp2 ;
18076 wxColour temp3 ;
18077 wxColour temp4 ;
18078 wxColour temp5 ;
18079 wxColour temp6 ;
18080 PyObject * obj0 = 0 ;
18081 PyObject * obj1 = 0 ;
18082 PyObject * obj2 = 0 ;
18083 PyObject * obj3 = 0 ;
18084 PyObject * obj4 = 0 ;
18085 PyObject * obj5 = 0 ;
18086 char *kwnames[] = {
18087 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18088 };
18089
18090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18091 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18092 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18093 {
18094 arg2 = &temp2;
18095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18096 }
18097 {
18098 arg3 = &temp3;
18099 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18100 }
18101 {
18102 arg4 = &temp4;
18103 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18104 }
18105 {
18106 arg5 = &temp5;
18107 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18108 }
18109 {
18110 arg6 = &temp6;
18111 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18112 }
18113 {
18114 PyThreadState* __tstate = wxPyBeginAllowThreads();
18115 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18116
18117 wxPyEndAllowThreads(__tstate);
18118 if (PyErr_Occurred()) SWIG_fail;
18119 }
18120 Py_INCREF(Py_None); resultobj = Py_None;
18121 return resultobj;
18122 fail:
18123 return NULL;
18124 }
18125
18126
18127 static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18128 PyObject *resultobj;
18129 wxEffects *arg1 = (wxEffects *) 0 ;
18130 wxDC *arg2 = 0 ;
18131 wxRect *arg3 = 0 ;
18132 int arg4 = (int) 1 ;
18133 wxRect temp3 ;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 PyObject * obj2 = 0 ;
18137 PyObject * obj3 = 0 ;
18138 char *kwnames[] = {
18139 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18140 };
18141
18142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18145 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18146 SWIG_POINTER_EXCEPTION | 0)) == -1)
18147 SWIG_fail;
18148 if (arg2 == NULL) {
18149 PyErr_SetString(PyExc_TypeError,"null reference");
18150 SWIG_fail;
18151 }
18152 {
18153 arg3 = &temp3;
18154 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18155 }
18156 if (obj3) {
18157 arg4 = (int) SWIG_AsInt(obj3);
18158 if (PyErr_Occurred()) SWIG_fail;
18159 }
18160 {
18161 PyThreadState* __tstate = wxPyBeginAllowThreads();
18162 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18163
18164 wxPyEndAllowThreads(__tstate);
18165 if (PyErr_Occurred()) SWIG_fail;
18166 }
18167 Py_INCREF(Py_None); resultobj = Py_None;
18168 return resultobj;
18169 fail:
18170 return NULL;
18171 }
18172
18173
18174 static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18175 PyObject *resultobj;
18176 wxEffects *arg1 = (wxEffects *) 0 ;
18177 wxRect *arg2 = 0 ;
18178 wxDC *arg3 = 0 ;
18179 wxBitmap *arg4 = 0 ;
18180 bool result;
18181 wxRect temp2 ;
18182 PyObject * obj0 = 0 ;
18183 PyObject * obj1 = 0 ;
18184 PyObject * obj2 = 0 ;
18185 PyObject * obj3 = 0 ;
18186 char *kwnames[] = {
18187 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18188 };
18189
18190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18191 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18192 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18193 {
18194 arg2 = &temp2;
18195 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18196 }
18197 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18198 SWIG_POINTER_EXCEPTION | 0)) == -1)
18199 SWIG_fail;
18200 if (arg3 == NULL) {
18201 PyErr_SetString(PyExc_TypeError,"null reference");
18202 SWIG_fail;
18203 }
18204 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18205 SWIG_POINTER_EXCEPTION | 0)) == -1)
18206 SWIG_fail;
18207 if (arg4 == NULL) {
18208 PyErr_SetString(PyExc_TypeError,"null reference");
18209 SWIG_fail;
18210 }
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18214
18215 wxPyEndAllowThreads(__tstate);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 }
18218 {
18219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18220 }
18221 return resultobj;
18222 fail:
18223 return NULL;
18224 }
18225
18226
18227 static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18228 PyObject *obj;
18229 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18230 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18231 Py_INCREF(obj);
18232 return Py_BuildValue((char *)"");
18233 }
18234 static PyMethodDef SwigMethods[] = {
18235 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18236 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18237 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18238 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18239 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18240 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18241 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18242 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18243 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18244 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18245 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18246 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18247 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18248 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18249 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18250 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18251 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18252 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18253 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18254 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18255 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18256 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18257 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18258 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18259 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18260 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18261 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18262 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18263 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18264 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18265 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18266 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18267 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18268 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18269 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18270 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18271 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18272 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18273 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18274 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18275 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18276 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18277 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18278 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
18279 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
18280 { (char *)"Pen_GetDashCount", (PyCFunction) _wrap_Pen_GetDashCount, METH_VARARGS | METH_KEYWORDS },
18281 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18282 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18283 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
18284 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18285 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18286 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18287 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18288 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18289 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18290 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18291 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18292 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18293 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18294 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18295 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
18296 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
18297 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18298 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18299 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18300 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
18301 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18302 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18303 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18304 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18305 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18306 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18307 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18308 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18309 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18310 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18311 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18312 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18313 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18314 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18315 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18316 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18317 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18318 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18319 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18320 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18321 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18322 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18323 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18324 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18325 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18326 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18327 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18328 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18329 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS },
18330 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18331 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18332 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18333 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18334 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18335 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18336 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18337 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18338 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18339 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18340 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18341 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18342 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18343 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18344 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18345 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18346 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18347 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18348 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18349 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18350 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18351 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18352 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18353 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18354 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18355 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18356 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18357 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18358 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18359 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18360 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18361 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18362 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
18363 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
18364 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18365 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18366 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18367 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS },
18368 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18369 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18370 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18371 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18372 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18373 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18374 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18375 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18376 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18377 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18378 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18379 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18380 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18381 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18382 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18383 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18384 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18385 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18386 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18390 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18392 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18404 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18428 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18437 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18453 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18457 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18494 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18502 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18509 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18531 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18533 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18541 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18659 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18670 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18674 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18675 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18676 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18679 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18681 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18686 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18688 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18690 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18692 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18694 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18698 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18700 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18701 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18702 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18703 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18704 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18705 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18706 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18707 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18708 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18709 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18710 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18712 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18713 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18715 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18716 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18717 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18718 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18720 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18722 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18723 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18724 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18725 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18727 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18728 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18729 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18730 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18735 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18740 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18755 { NULL, NULL }
18756 };
18757
18758
18759 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18760
18761 static void *_p_wxControlTo_p_wxWindow(void *x) {
18762 return (void *)((wxWindow *) ((wxControl *) x));
18763 }
18764 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18765 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18766 }
18767 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18768 return (void *)((wxWindow *) ((wxMenuBar *) x));
18769 }
18770 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18771 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18772 }
18773 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18774 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18775 }
18776 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18777 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18778 }
18779 static void *_p_wxPenTo_p_wxObject(void *x) {
18780 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18781 }
18782 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18783 return (void *)((wxObject *) ((wxRegionIterator *) x));
18784 }
18785 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18786 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18787 }
18788 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18789 return (void *)((wxObject *) ((wxSizerItem *) x));
18790 }
18791 static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18792 return (void *)((wxObject *) ((wxColourDatabase *) x));
18793 }
18794 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18795 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18796 }
18797 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18798 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18799 }
18800 static void *_p_wxIconTo_p_wxObject(void *x) {
18801 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18802 }
18803 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18804 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18805 }
18806 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18807 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18808 }
18809 static void *_p_wxSizerTo_p_wxObject(void *x) {
18810 return (void *)((wxObject *) ((wxSizer *) x));
18811 }
18812 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18813 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18814 }
18815 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18816 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18817 }
18818 static void *_p_wxPenListTo_p_wxObject(void *x) {
18819 return (void *)((wxObject *) ((wxPenList *) x));
18820 }
18821 static void *_p_wxEventTo_p_wxObject(void *x) {
18822 return (void *)((wxObject *) ((wxEvent *) x));
18823 }
18824 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18825 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18826 }
18827 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18828 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18829 }
18830 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18831 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18832 }
18833 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18834 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18835 }
18836 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18837 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18838 }
18839 static void *_p_wxDCTo_p_wxObject(void *x) {
18840 return (void *)((wxObject *) ((wxDC *) x));
18841 }
18842 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
18843 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
18844 }
18845 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
18846 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
18847 }
18848 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
18849 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
18850 }
18851 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
18852 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
18853 }
18854 static void *_p_wxControlTo_p_wxObject(void *x) {
18855 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
18856 }
18857 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
18858 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
18859 }
18860 static void *_p_wxClientDCTo_p_wxObject(void *x) {
18861 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
18862 }
18863 static void *_p_wxFSFileTo_p_wxObject(void *x) {
18864 return (void *)((wxObject *) ((wxFSFile *) x));
18865 }
18866 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
18867 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
18868 }
18869 static void *_p_wxRegionTo_p_wxObject(void *x) {
18870 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
18871 }
18872 static void *_p_wxPySizerTo_p_wxObject(void *x) {
18873 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
18874 }
18875 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
18876 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
18877 }
18878 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
18879 return (void *)((wxObject *) ((wxGDIObject *) x));
18880 }
18881 static void *_p_wxEffectsTo_p_wxObject(void *x) {
18882 return (void *)((wxObject *) ((wxEffects *) x));
18883 }
18884 static void *_p_wxPyEventTo_p_wxObject(void *x) {
18885 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
18886 }
18887 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
18888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
18889 }
18890 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
18891 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
18892 }
18893 static void *_p_wxShowEventTo_p_wxObject(void *x) {
18894 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
18895 }
18896 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
18897 return (void *)((wxObject *) ((wxMenuItem *) x));
18898 }
18899 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
18900 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
18901 }
18902 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
18903 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
18904 }
18905 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
18906 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
18907 }
18908 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
18909 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
18910 }
18911 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
18912 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
18913 }
18914 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
18915 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
18916 }
18917 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
18918 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
18919 }
18920 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
18921 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
18922 }
18923 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
18924 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
18925 }
18926 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
18927 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
18928 }
18929 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
18930 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
18931 }
18932 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
18933 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
18934 }
18935 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
18936 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
18937 }
18938 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
18939 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
18940 }
18941 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
18942 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
18943 }
18944 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
18945 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
18946 }
18947 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
18948 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
18949 }
18950 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
18951 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
18952 }
18953 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
18954 return (void *)((wxObject *) ((wxImageHandler *) x));
18955 }
18956 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
18957 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
18958 }
18959 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
18960 return (void *)((wxObject *) ((wxEvtHandler *) x));
18961 }
18962 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
18963 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
18964 }
18965 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
18966 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
18967 }
18968 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
18969 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
18970 }
18971 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
18972 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
18973 }
18974 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
18975 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
18976 }
18977 static void *_p_wxImageTo_p_wxObject(void *x) {
18978 return (void *)((wxObject *) ((wxImage *) x));
18979 }
18980 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
18981 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
18982 }
18983 static void *_p_wxPaletteTo_p_wxObject(void *x) {
18984 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
18985 }
18986 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
18987 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
18988 }
18989 static void *_p_wxImageListTo_p_wxObject(void *x) {
18990 return (void *)((wxObject *) ((wxImageList *) x));
18991 }
18992 static void *_p_wxCursorTo_p_wxObject(void *x) {
18993 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
18994 }
18995 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
18996 return (void *)((wxObject *) ((wxEncodingConverter *) x));
18997 }
18998 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
18999 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19000 }
19001 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19002 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19003 }
19004 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19005 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19006 }
19007 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19008 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19009 }
19010 static void *_p_wxWindowTo_p_wxObject(void *x) {
19011 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19012 }
19013 static void *_p_wxMenuTo_p_wxObject(void *x) {
19014 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19015 }
19016 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19017 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19018 }
19019 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19020 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19021 }
19022 static void *_p_wxBrushListTo_p_wxObject(void *x) {
19023 return (void *)((wxObject *) ((wxBrushList *) x));
19024 }
19025 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19026 return (void *)((wxObject *) ((wxFileSystem *) x));
19027 }
19028 static void *_p_wxBitmapTo_p_wxObject(void *x) {
19029 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19030 }
19031 static void *_p_wxMaskTo_p_wxObject(void *x) {
19032 return (void *)((wxObject *) ((wxMask *) x));
19033 }
19034 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19035 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19036 }
19037 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19038 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19039 }
19040 static void *_p_wxPyAppTo_p_wxObject(void *x) {
19041 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19042 }
19043 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19044 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19045 }
19046 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19047 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19048 }
19049 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19050 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19051 }
19052 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19053 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19054 }
19055 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19056 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19057 }
19058 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19059 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19060 }
19061 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19062 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19063 }
19064 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19065 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19066 }
19067 static void *_p_wxFontTo_p_wxObject(void *x) {
19068 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19069 }
19070 static void *_p_wxBrushTo_p_wxObject(void *x) {
19071 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19072 }
19073 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19074 return (void *)((wxObject *) ((wxMetaFile *) x));
19075 }
19076 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19077 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19078 }
19079 static void *_p_wxColourTo_p_wxObject(void *x) {
19080 return (void *)((wxObject *) ((wxColour *) x));
19081 }
19082 static void *_p_wxFontListTo_p_wxObject(void *x) {
19083 return (void *)((wxObject *) ((wxFontList *) x));
19084 }
19085 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19086 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19087 }
19088 static void *_p_wxValidatorTo_p_wxObject(void *x) {
19089 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19090 }
19091 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19092 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19093 }
19094 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19095 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19096 }
19097 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19098 return (void *)((wxDC *) ((wxScreenDC *) x));
19099 }
19100 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19101 return (void *)((wxDC *) ((wxMirrorDC *) x));
19102 }
19103 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19104 return (void *)((wxDC *) ((wxMemoryDC *) x));
19105 }
19106 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19107 return (void *)((wxDC *) ((wxWindowDC *) x));
19108 }
19109 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19110 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19111 }
19112 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19113 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19114 }
19115 static void *_p_wxClientDCTo_p_wxDC(void *x) {
19116 return (void *)((wxDC *) ((wxClientDC *) x));
19117 }
19118 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19119 return (void *)((wxDC *) ((wxPaintDC *) x));
19120 }
19121 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19122 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19123 }
19124 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19125 return (void *)((wxDC *) ((wxPrinterDC *) x));
19126 }
19127 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19128 return (void *)((wxGDIObject *) ((wxIcon *) x));
19129 }
19130 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19131 return (void *)((wxGDIObject *) ((wxPalette *) x));
19132 }
19133 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19134 return (void *)((wxGDIObject *) ((wxPen *) x));
19135 }
19136 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19137 return (void *)((wxGDIObject *) ((wxFont *) x));
19138 }
19139 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19140 return (void *)((wxGDIObject *) ((wxCursor *) x));
19141 }
19142 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19143 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19144 }
19145 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19146 return (void *)((wxGDIObject *) ((wxRegion *) x));
19147 }
19148 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19149 return (void *)((wxGDIObject *) ((wxBrush *) x));
19150 }
19151 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}};
19152 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}};
19153 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}};
19154 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}};
19155 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}};
19156 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}};
19157 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}};
19158 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}};
19159 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}};
19160 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}};
19161 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}};
19162 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}};
19163 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}};
19164 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}};
19165 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}};
19166 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}};
19167 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}};
19168 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}};
19169 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}};
19170 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}};
19171 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}};
19172 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}};
19173 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}};
19174 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}};
19175 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}};
19176 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}};
19177 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}};
19178 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}};
19179 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}};
19180 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}};
19181 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}};
19182 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}};
19183 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}};
19184 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}};
19185 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}};
19186 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}};
19187 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}};
19188 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}};
19189 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}};
19190 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}};
19191 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}};
19192 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}};
19193 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}};
19194 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}};
19195 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}};
19196 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}};
19197 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}};
19198 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}};
19199 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}};
19200 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}};
19201 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}};
19202 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}};
19203 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}};
19204 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}};
19205 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}};
19206
19207 static swig_type_info *swig_types_initial[] = {
19208 _swigt__p_wxPostScriptDC,
19209 _swigt__p_wxBrush,
19210 _swigt__p_wxColour,
19211 _swigt__p_wxDC,
19212 _swigt__p_wxMirrorDC,
19213 _swigt__p_byte,
19214 _swigt__p_wxPyFontEnumerator,
19215 _swigt__p_char,
19216 _swigt__p_wxIconLocation,
19217 _swigt__p_wxImage,
19218 _swigt__p_wxMetaFileDC,
19219 _swigt__p_wxMask,
19220 _swigt__p_wxSize,
19221 _swigt__p_wxFont,
19222 _swigt__p_wxWindow,
19223 _swigt__p_double,
19224 _swigt__p_wxMemoryDC,
19225 _swigt__p_wxFontMapper,
19226 _swigt__p_wxEffects,
19227 _swigt__p_wxNativeEncodingInfo,
19228 _swigt__p_wxPalette,
19229 _swigt__p_wxBitmap,
19230 _swigt__p_wxObject,
19231 _swigt__p_wxRegionIterator,
19232 _swigt__p_wxRect,
19233 _swigt__p_wxString,
19234 _swigt__p_wxPrinterDC,
19235 _swigt__p_wxIconBundle,
19236 _swigt__p_wxPoint,
19237 _swigt__p_wxDash,
19238 _swigt__p_wxScreenDC,
19239 _swigt__p_wxCursor,
19240 _swigt__p_wxClientDC,
19241 _swigt__p_wxBufferedDC,
19242 _swigt__p_wxImageList,
19243 _swigt__p_unsigned_char,
19244 _swigt__p_wxGDIObject,
19245 _swigt__p_wxIcon,
19246 _swigt__p_wxLocale,
19247 _swigt__p_wxRegion,
19248 _swigt__p_wxLanguageInfo,
19249 _swigt__p_wxConfigBase,
19250 _swigt__p_wxWindowDC,
19251 _swigt__p_wxPrintData,
19252 _swigt__p_wxBrushList,
19253 _swigt__p_wxFontList,
19254 _swigt__p_wxPen,
19255 _swigt__p_wxBufferedPaintDC,
19256 _swigt__p_wxPaintDC,
19257 _swigt__p_wxPenList,
19258 _swigt__p_int,
19259 _swigt__p_wxMetaFile,
19260 _swigt__p_wxNativeFontInfo,
19261 _swigt__p_wxEncodingConverter,
19262 _swigt__p_wxColourDatabase,
19263 0
19264 };
19265
19266
19267 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19268
19269 static swig_const_info swig_const_table[] = {
19270 {0}};
19271
19272 #ifdef __cplusplus
19273 }
19274 #endif
19275
19276 #ifdef __cplusplus
19277 extern "C"
19278 #endif
19279 SWIGEXPORT(void) SWIG_init(void) {
19280 static PyObject *SWIG_globals = 0;
19281 static int typeinit = 0;
19282 PyObject *m, *d;
19283 int i;
19284 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19285 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19286 d = PyModule_GetDict(m);
19287
19288 if (!typeinit) {
19289 for (i = 0; swig_types_initial[i]; i++) {
19290 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19291 }
19292 typeinit = 1;
19293 }
19294 SWIG_InstallConstants(d,swig_const_table);
19295
19296 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19297 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19298 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19299 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19300 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19301 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19302 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19303 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19304 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19305 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19306 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19307 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19308 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19309 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19310 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19311 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19312 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19313 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19314 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19315 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19316 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19317 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19318 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19319 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19320 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19321 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19322 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19323 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19324 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19325 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19326 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19327 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19328 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19329 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19330 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19331 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19332 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19333 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19334 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19335 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19336 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19337 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19338 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19339 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19340 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19341 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19342 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19343 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19344 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19345 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19346 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19347 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19348 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19349 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19350 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19351 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19352 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19353 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19354 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19355 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19356 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19357 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19358 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19359 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19360 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19361 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19362 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19363 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19364 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19365 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19366 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19367 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19368 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19369 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19370 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19371 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19372 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19373 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19374 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19375 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19376 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19377 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19378 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19379 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19380 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19381 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19382 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19383 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19384 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19385 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19386 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19387 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19388 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19389 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19390 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19391 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19392 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19393 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19394 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19395 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19396 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19397 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19398 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19399 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19400 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19401 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19402 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19403 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19404 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19405 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19406 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19407 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19408 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19409 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19410 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19411 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19412 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19413 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19414 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19415 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19416 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19417 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19418 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19419 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19420 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19421 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19422 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19423
19424 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19425
19426 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19427 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19428 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19429 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19430 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19431 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19432 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19433 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19434 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19435 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19436 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19437 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19438 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19439 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19440 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19441 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19442 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19443 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19444 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19445 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19446 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19447 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19448 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19449 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19450 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19451 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19452 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19453 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19454 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19455 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19456 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19457 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19458 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19459 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19460 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19461 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19462 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19463 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19464 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19465 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19466 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19467 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19468 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19469 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19470 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19471 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19472 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19473 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19474 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19475 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19476 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19477 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19478 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19479 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19480 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19481 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19482 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19483 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19484 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19485 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19486 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19487 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19488 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19489 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19490 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19491 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19492 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19493 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19494 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19495 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19496 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19497 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19498 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19499 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19500 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19501 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19502 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19503 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19504 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19505 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19506 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19507 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19508 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19509 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19510 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19511 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19512 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19513 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19514 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19515 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19516 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19517 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19518 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19519 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19520 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19521 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19522 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19523 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19524 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19525 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19526 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19527 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19528 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19529 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19530 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19531 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19532 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19533 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19534 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19535 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19536 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19537 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19538 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19539 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19540 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19541 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19542 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19543 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19544 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19545 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19546 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19547 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19548 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19549 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19550 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19551 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19552 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19553 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19554 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19555 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19556 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19557 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19558 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19559 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19560 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19561 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19562 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19563 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19564 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19565 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19566 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19567 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19568 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19569 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19570 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19571 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19572 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19573 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19574 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19575 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19576 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19577 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19578 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19579 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19580 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19581 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19582 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19583 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19584 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19585 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19586 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19587 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19588 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19589 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19590 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19591 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19592 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19593 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19594 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19595 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19596 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19597 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19598 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19599 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19600 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19601 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19602 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19603 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19604 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19605 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19606 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19607 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19608 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19609 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19610 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19611 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19612 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19613 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19614 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19615 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19616 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19617 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19618 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19619 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19620 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19621 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19622 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19623 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19624 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19625 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19626 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19627 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19628 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19629 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19630 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19631 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19632 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19633 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19634 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19635 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19636 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19637 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19638 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19639 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19640 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19641 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19642 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19643 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19644 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19645 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19646 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19647 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19648 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19649 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19650 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19651 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19652 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19653 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19654 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19655 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19656 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19657 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19658 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19659 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19660 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19661 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19662 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19663 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19664 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19665 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19666 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19667 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19668 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19669 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19670 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19671 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19672 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19673 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19674 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19675 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19676 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19677 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19678 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19679 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19680 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19681 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19682 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19683 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19684 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19685 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19686 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19687 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19688 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19689 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19690 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19691 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19692 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19693 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19694 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19695 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19696 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19697 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19698 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19699 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19700 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19701 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19702 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19703 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19704 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19705 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19706 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19707 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19708 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19709 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19710 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19711 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19712 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19713 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19714 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19715 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19716 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19717 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19718 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19719 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19720 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19721 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19722 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19723 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19724 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19725 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19726
19727 // Work around a chicken/egg problem in drawlist.cpp
19728 wxPyDrawList_SetAPIPtr();
19729
19730 }
19731