]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
CommitLineData
d55e5bfc
RD
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
15template<class T> class SwigValueWrapper {
16 T *tt;
17public:
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; }
25private:
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
94extern "C" {
95#endif
96
97typedef void *(*swig_converter_func)(void *);
98typedef struct swig_type_info *(*swig_dycast_func)(void **);
99
100typedef 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
111SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *);
112SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *);
113SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *);
114SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **);
115SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *);
116SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *);
117SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *);
118SWIGIMPORT(char *) SWIG_PackData(char *, void *, int);
119SWIGIMPORT(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
139extern "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 */
157typedef 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
186typedef double (*py_objasdbl_conv)(PyObject *obj);
187
188SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int);
189SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own);
190SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int);
191SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void);
192SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *));
193SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int);
194SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *);
195SWIGIMPORT(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]
d6c14a4c
RD
249#define SWIGTYPE_p_wxLanguageInfo swig_types[40]
250#define SWIGTYPE_p_wxConfigBase swig_types[41]
d55e5bfc
RD
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]
d6c14a4c
RD
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]
264static swig_type_info *swig_types[56];
d55e5bfc
RD
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
325SWIGSTATICINLINE(bool)
326SWIG_AsBool(PyObject *obj)
327{
328 return PyObject_IsTrue(obj) ? true : false;
329}
330
331
332SWIGSTATICINLINE(int)
333SWIG_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
348SWIGSTATICINLINE(unsigned long)
349SWIG_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
365SWIGSTATICINLINE(long)
366SWIG_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
380SWIGSTATICINLINE(unsigned long)
381SWIG_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
395SWIGSTATICINLINE(unsigned char)
396SWIG_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
404SWIGSTATICINLINE(int)
405SWIG_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
417SWIGSTATICINLINE(int)
418SWIG_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
429PyObject *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 }
444unsigned long wxColour_GetRGB(wxColour *self){
445 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
446 }
447
448SWIGSTATICINLINE(PyObject* )
449SWIG_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
457SWIGSTATICINLINE(long)
458SWIG_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
482SWIGSTATICINLINE(int)
483SWIG_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
494SWIGSTATICINLINE(int)
495SWIG_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
507static 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
533PyObject *wxPen_GetDashes(wxPen *self){
534 wxDash* dashes;
535 int count = self->GetDashes(&dashes);
536 bool blocked = wxPyBeginBlockThreads();
537 PyObject* retval = PyList_New(0);
68e533f8
RD
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 }
d55e5bfc
RD
543 wxPyEndBlockThreads(blocked);
544 return retval;
545 }
d6c14a4c
RD
546void 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 }
d55e5bfc
RD
565bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : False; }
566bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : True; }
567
d55e5bfc
RD
568SWIGSTATICINLINE(short)
569SWIG_AsShort(PyObject *obj)
570{
571 return swig_numeric_cast(short,
572 SWIG_CheckLongInRange(SWIG_AsLong(obj),
573 "short", SHRT_MIN, SHRT_MAX));
574}
575
576
577SWIGSTATICINLINE(int)
578SWIG_CheckShort(PyObject* obj)
579{
580 SWIG_AsShort(obj);
581 if (PyErr_Occurred()) {
582 PyErr_Clear();
583 return 0;
584 } else {
585 return 1;
586 }
587}
588
589
590#include <wx/image.h>
591
592 static char** ConvertListOfStrings(PyObject* listOfStrings) {
593 char** cArray = NULL;
594 int count;
595
596 if (!PyList_Check(listOfStrings)) {
597 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
598 return NULL;
599 }
600 count = PyList_Size(listOfStrings);
601 cArray = new char*[count];
602
603 for(int x=0; x<count; x++) {
604 // TODO: Need some validation and error checking here
605 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
606 }
607 return cArray;
608 }
609
610
611wxBitmap *new_wxBitmap(PyObject *listOfStrings){
612 char** cArray = NULL;
613 wxBitmap* bmp;
614
615 cArray = ConvertListOfStrings(listOfStrings);
616 if (! cArray)
617 return NULL;
618 bmp = new wxBitmap(cArray);
619 delete [] cArray;
620 return bmp;
621 }
622wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth){
623 char* buf;
624 int length;
625 PyString_AsStringAndSize(bits, &buf, &length);
626 return new wxBitmap(buf, width, height, depth);
627 }
d55e5bfc
RD
628wxSize wxBitmap_GetSize(wxBitmap *self){
629 wxSize size(self->GetWidth(), self->GetHeight());
630 return size;
631 }
632void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
633 wxMask *mask = new wxMask(*self, colour);
634 self->SetMask(mask);
635 }
636void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
637 self->SetWidth(size.x);
638 self->SetHeight(size.y);
639 }
640bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : False; }
641bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : True; }
642wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour){
643 if ( !colour.Ok() )
644 return new wxMask(bitmap, *wxBLACK);
645 else
646 return new wxMask(bitmap, colour);
647 }
648
649#include <wx/iconbndl.h>
650
651wxIcon *new_wxIcon(wxBitmap const &bmp){
652 wxIcon* icon = new wxIcon();
653 icon->CopyFromBitmap(bmp);
654 return icon;
655 }
656wxIcon *new_wxIcon(PyObject *listOfStrings){
657 char** cArray = NULL;
658 wxIcon* icon;
659
660 cArray = ConvertListOfStrings(listOfStrings);
661 if (! cArray)
662 return NULL;
663 icon = new wxIcon(cArray);
664 delete [] cArray;
665 return icon;
666 }
667wxIconLocation *new_wxIconLocation(wxString const *filename,int num){
668
669
670
671 return new wxIconLocation(*filename);
672
673 }
674void wxIconLocation_SetIndex(wxIconLocation *self,int num){
675
676
677
678 // do nothing
679
680 }
681int wxIconLocation_GetIndex(wxIconLocation *self){
682
683
684
685 return -1;
686
687 }
688
689SWIGSTATICINLINE(int)
690SWIG_CheckLong(PyObject* obj)
691{
692 SWIG_AsLong(obj);
693 if (PyErr_Occurred()) {
694 PyErr_Clear();
695 return 0;
696 } else {
697 return 1;
698 }
699}
700
701wxCursor *new_wxCursor(wxString const *cursorName,long type,int hotSpotX,int hotSpotY){
702#ifdef __WXGTK__
703 wxCHECK_MSG(False, NULL,
704 wxT("wx.Cursor constructor not implemented for wxGTK, use wx.StockCursor, wx.CursorFromImage, or wx.CursorFromBits instead."));
705#else
706 return new wxCursor(*cursorName, type, hotSpotX, hotSpotY);
707#endif
708 }
709
710
711wxRegion *new_wxRegion(int points,wxPoint *points_array,int fillStyle){
712 wxPyRaiseNotImplemented();
713 return NULL;
714 }
715void wxRegionIterator_Next(wxRegionIterator *self){
716 (*self) ++;
717 }
718bool wxRegionIterator___nonzero__(wxRegionIterator *self){
719 return self->operator bool();
720 }
721
722#include <wx/fontutil.h>
723#include <wx/fontmap.h>
724#include <wx/fontenum.h>
725
726wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
727 return self->ToString();
728 }
729
730 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
731 static wxNativeEncodingInfo info;
732 if ( wxGetNativeFontEncoding(encoding, &info) )
733 return &info;
734 else
735 return NULL;
736 }
737
738PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename,bool interactive){
739 wxFontEncoding alt_enc;
740 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
741 return PyInt_FromLong(alt_enc);
742 else {
743 Py_INCREF(Py_None);
744 return Py_None;
745 }
746 }
747wxFont *new_wxFont(wxString const &info){
748 wxNativeFontInfo nfi;
749 nfi.FromString(info);
750 return new wxFont(nfi);
751 }
752wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags,wxString const &face,wxFontEncoding encoding){
753 return wxFont::New(pointSize, family, flags, face, encoding);
754 }
755bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : False; }
756bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : True; }
757
758class wxPyFontEnumerator : public wxFontEnumerator {
759public:
760 wxPyFontEnumerator() {}
761 ~wxPyFontEnumerator() {}
762
763 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
764 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
765
766 PYPRIVATE;
767};
768
769IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
770IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
771
772
773PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
774 wxArrayString* arr = self->GetEncodings();
92379a03
RD
775 if (arr)
776 return wxArrayString2PyList_helper(*arr);
777 else
778 return PyList_New(0);
d55e5bfc
RD
779 }
780PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
781 wxArrayString* arr = self->GetFacenames();
92379a03
RD
782 if (arr)
783 return wxArrayString2PyList_helper(*arr);
784 else
785 return PyList_New(0);
d55e5bfc
RD
786 }
787
788
15817c7e
RD
789wxLocale *new_wxLocale(int language,int flags){
790 if (language == -1)
791 return new wxLocale();
792 else
793 return new wxLocale(language, flags);
794 }
d55e5bfc
RD
795
796#include "wx/wxPython/pydrawxxx.h"
797
d6c14a4c 798wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d55e5bfc
RD
799 wxColour col;
800 self->GetPixel(x, y, &col);
801 return col;
802 }
d6c14a4c 803wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d55e5bfc
RD
804 wxColour col;
805 self->GetPixel(pt, &col);
806 return col;
807 }
808
809SWIGSTATICINLINE(double)
810SWIG_AsDouble(PyObject *obj)
811{
812 if (PyNumber_Check(obj))
813 return PyFloat_AsDouble(obj);
814 else {
815 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
816 obj->ob_type->tp_name);
817 PyErr_SetObject(PyExc_TypeError, errmsg);
818 Py_DECREF(errmsg);
819 return 0;
820 }
821}
822
823
824SWIGSTATICINLINE(int)
825SWIG_CheckDouble(PyObject* obj)
826{
827 SWIG_AsDouble(obj);
828 if (PyErr_Occurred()) {
829 PyErr_Clear();
830 return 0;
831 } else {
832 return 1;
833 }
834}
835
836wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
837 wxRect rv;
838 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
839 return rv;
840 }
841wxRect wxDC_GetClippingRect(wxDC *self){
842 wxRect rect;
843 self->GetClippingBox(rect);
844 return rect;
845 }
846wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
847 wxArrayInt widths;
848 self->GetPartialTextExtents(text, widths);
849 return widths;
850 }
d6c14a4c
RD
851void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
852 self->SetLogicalOrigin(point.x, point.y);
853 }
854void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
855 self->SetDeviceOrigin(point.x, point.y);
856 }
857void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
858 self->CalcBoundingBox(point.x, point.y);
859 }
d55e5bfc
RD
860PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
861 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
862 }
863PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
864 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
865 }
866PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
867 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
868 }
869PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
870 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
871 }
872PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
873 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
874 }
875PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
876 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
877 }
878
879static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
880 *x1 = dc->MinX();
881 *y1 = dc->MinY();
882 *x2 = dc->MaxX();
883 *y2 = dc->MaxY();
884}
885
886
887#include <wx/dcbuffer.h>
888
889
890#include <wx/dcps.h>
891
892
893#include <wx/metafile.h>
894
895
896
897void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
898 self->AddColour(name, wxColour(red, green, blue));
899 }
900
901#include <wx/effects.h>
902
903#ifdef __cplusplus
904extern "C" {
905#endif
906static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
907 PyObject *resultobj;
908 wxGDIObject *result;
909 char *kwnames[] = {
910 NULL
911 };
912
913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
914 {
0439c23b 915 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
916 PyThreadState* __tstate = wxPyBeginAllowThreads();
917 result = (wxGDIObject *)new wxGDIObject();
918
919 wxPyEndAllowThreads(__tstate);
110da5b0 920 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
921 }
922 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
923 return resultobj;
924 fail:
925 return NULL;
926}
927
928
929static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
930 PyObject *resultobj;
931 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
932 PyObject * obj0 = 0 ;
933 char *kwnames[] = {
934 (char *) "self", NULL
935 };
936
937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
940 {
941 PyThreadState* __tstate = wxPyBeginAllowThreads();
942 delete arg1;
943
944 wxPyEndAllowThreads(__tstate);
945 if (PyErr_Occurred()) SWIG_fail;
946 }
947 Py_INCREF(Py_None); resultobj = Py_None;
948 return resultobj;
949 fail:
950 return NULL;
951}
952
953
954static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
955 PyObject *resultobj;
956 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
957 bool result;
958 PyObject * obj0 = 0 ;
959 char *kwnames[] = {
960 (char *) "self", NULL
961 };
962
963 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
964 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
965 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
966 {
967 PyThreadState* __tstate = wxPyBeginAllowThreads();
968 result = (bool)(arg1)->GetVisible();
969
970 wxPyEndAllowThreads(__tstate);
971 if (PyErr_Occurred()) SWIG_fail;
972 }
973 {
974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
975 }
976 return resultobj;
977 fail:
978 return NULL;
979}
980
981
982static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
983 PyObject *resultobj;
984 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
985 bool arg2 ;
986 PyObject * obj0 = 0 ;
987 PyObject * obj1 = 0 ;
988 char *kwnames[] = {
989 (char *) "self",(char *) "visible", NULL
990 };
991
992 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
993 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
994 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
995 arg2 = (bool) SWIG_AsBool(obj1);
996 if (PyErr_Occurred()) SWIG_fail;
997 {
998 PyThreadState* __tstate = wxPyBeginAllowThreads();
999 (arg1)->SetVisible(arg2);
1000
1001 wxPyEndAllowThreads(__tstate);
1002 if (PyErr_Occurred()) SWIG_fail;
1003 }
1004 Py_INCREF(Py_None); resultobj = Py_None;
1005 return resultobj;
1006 fail:
1007 return NULL;
1008}
1009
1010
1011static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1012 PyObject *resultobj;
1013 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1014 bool result;
1015 PyObject * obj0 = 0 ;
1016 char *kwnames[] = {
1017 (char *) "self", NULL
1018 };
1019
1020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1023 {
1024 PyThreadState* __tstate = wxPyBeginAllowThreads();
1025 result = (bool)(arg1)->IsNull();
1026
1027 wxPyEndAllowThreads(__tstate);
1028 if (PyErr_Occurred()) SWIG_fail;
1029 }
1030 {
1031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1032 }
1033 return resultobj;
1034 fail:
1035 return NULL;
1036}
1037
1038
1039static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1040 PyObject *obj;
1041 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1042 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1043 Py_INCREF(obj);
1044 return Py_BuildValue((char *)"");
1045}
1046static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1047 PyObject *resultobj;
15817c7e
RD
1048 byte arg1 = (byte) 0 ;
1049 byte arg2 = (byte) 0 ;
1050 byte arg3 = (byte) 0 ;
d55e5bfc
RD
1051 wxColour *result;
1052 PyObject * obj0 = 0 ;
1053 PyObject * obj1 = 0 ;
1054 PyObject * obj2 = 0 ;
1055 char *kwnames[] = {
1056 (char *) "red",(char *) "green",(char *) "blue", NULL
1057 };
1058
1059 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1060 if (obj0) {
15817c7e 1061 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
d55e5bfc
RD
1062 if (PyErr_Occurred()) SWIG_fail;
1063 }
1064 if (obj1) {
15817c7e 1065 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
d55e5bfc
RD
1066 if (PyErr_Occurred()) SWIG_fail;
1067 }
1068 if (obj2) {
15817c7e 1069 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
d55e5bfc
RD
1070 if (PyErr_Occurred()) SWIG_fail;
1071 }
1072 {
1073 PyThreadState* __tstate = wxPyBeginAllowThreads();
1074 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1075
1076 wxPyEndAllowThreads(__tstate);
1077 if (PyErr_Occurred()) SWIG_fail;
1078 }
1079 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1080 return resultobj;
1081 fail:
1082 return NULL;
1083}
1084
1085
1086static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1087 PyObject *resultobj;
1088 wxString *arg1 = 0 ;
1089 wxColour *result;
1090 bool temp1 = False ;
1091 PyObject * obj0 = 0 ;
1092 char *kwnames[] = {
1093 (char *) "colorName", NULL
1094 };
1095
1096 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1097 {
1098 arg1 = wxString_in_helper(obj0);
1099 if (arg1 == NULL) SWIG_fail;
1100 temp1 = True;
1101 }
1102 {
eab6e45e 1103 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1104 PyThreadState* __tstate = wxPyBeginAllowThreads();
1105 result = (wxColour *)new wxColour((wxString const &)*arg1);
1106
1107 wxPyEndAllowThreads(__tstate);
1108 if (PyErr_Occurred()) SWIG_fail;
1109 }
1110 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1111 {
1112 if (temp1)
1113 delete arg1;
1114 }
1115 return resultobj;
1116 fail:
1117 {
1118 if (temp1)
1119 delete arg1;
1120 }
1121 return NULL;
1122}
1123
1124
1125static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1126 PyObject *resultobj;
1127 unsigned long arg1 ;
1128 wxColour *result;
1129 PyObject * obj0 = 0 ;
1130 char *kwnames[] = {
1131 (char *) "colRGB", NULL
1132 };
1133
1134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1135 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1136 if (PyErr_Occurred()) SWIG_fail;
1137 {
1138 PyThreadState* __tstate = wxPyBeginAllowThreads();
1139 result = (wxColour *)new wxColour(arg1);
1140
1141 wxPyEndAllowThreads(__tstate);
1142 if (PyErr_Occurred()) SWIG_fail;
1143 }
1144 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1145 return resultobj;
1146 fail:
1147 return NULL;
1148}
1149
1150
1151static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1152 PyObject *resultobj;
1153 wxColour *arg1 = (wxColour *) 0 ;
1154 PyObject * obj0 = 0 ;
1155 char *kwnames[] = {
1156 (char *) "self", NULL
1157 };
1158
1159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1162 {
1163 PyThreadState* __tstate = wxPyBeginAllowThreads();
1164 delete arg1;
1165
1166 wxPyEndAllowThreads(__tstate);
1167 if (PyErr_Occurred()) SWIG_fail;
1168 }
1169 Py_INCREF(Py_None); resultobj = Py_None;
1170 return resultobj;
1171 fail:
1172 return NULL;
1173}
1174
1175
1176static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1177 PyObject *resultobj;
1178 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1179 byte result;
d55e5bfc
RD
1180 PyObject * obj0 = 0 ;
1181 char *kwnames[] = {
1182 (char *) "self", NULL
1183 };
1184
1185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1188 {
1189 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1190 result = (byte)(arg1)->Red();
d55e5bfc
RD
1191
1192 wxPyEndAllowThreads(__tstate);
1193 if (PyErr_Occurred()) SWIG_fail;
1194 }
1195 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1196 return resultobj;
1197 fail:
1198 return NULL;
1199}
1200
1201
1202static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1203 PyObject *resultobj;
1204 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1205 byte result;
d55e5bfc
RD
1206 PyObject * obj0 = 0 ;
1207 char *kwnames[] = {
1208 (char *) "self", NULL
1209 };
1210
1211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1214 {
1215 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1216 result = (byte)(arg1)->Green();
d55e5bfc
RD
1217
1218 wxPyEndAllowThreads(__tstate);
1219 if (PyErr_Occurred()) SWIG_fail;
1220 }
1221 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1222 return resultobj;
1223 fail:
1224 return NULL;
1225}
1226
1227
1228static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1229 PyObject *resultobj;
1230 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1231 byte result;
d55e5bfc
RD
1232 PyObject * obj0 = 0 ;
1233 char *kwnames[] = {
1234 (char *) "self", NULL
1235 };
1236
1237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1240 {
1241 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1242 result = (byte)(arg1)->Blue();
d55e5bfc
RD
1243
1244 wxPyEndAllowThreads(__tstate);
1245 if (PyErr_Occurred()) SWIG_fail;
1246 }
1247 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1248 return resultobj;
1249 fail:
1250 return NULL;
1251}
1252
1253
1254static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1255 PyObject *resultobj;
1256 wxColour *arg1 = (wxColour *) 0 ;
1257 bool result;
1258 PyObject * obj0 = 0 ;
1259 char *kwnames[] = {
1260 (char *) "self", NULL
1261 };
1262
1263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1266 {
1267 PyThreadState* __tstate = wxPyBeginAllowThreads();
1268 result = (bool)(arg1)->Ok();
1269
1270 wxPyEndAllowThreads(__tstate);
1271 if (PyErr_Occurred()) SWIG_fail;
1272 }
1273 {
1274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1275 }
1276 return resultobj;
1277 fail:
1278 return NULL;
1279}
1280
1281
1282static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1283 PyObject *resultobj;
1284 wxColour *arg1 = (wxColour *) 0 ;
15817c7e
RD
1285 byte arg2 ;
1286 byte arg3 ;
1287 byte arg4 ;
d55e5bfc
RD
1288 PyObject * obj0 = 0 ;
1289 PyObject * obj1 = 0 ;
1290 PyObject * obj2 = 0 ;
1291 PyObject * obj3 = 0 ;
1292 char *kwnames[] = {
1293 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1294 };
1295
1296 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1297 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1298 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15817c7e 1299 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
d55e5bfc 1300 if (PyErr_Occurred()) SWIG_fail;
15817c7e 1301 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
d55e5bfc 1302 if (PyErr_Occurred()) SWIG_fail;
15817c7e 1303 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
d55e5bfc
RD
1304 if (PyErr_Occurred()) SWIG_fail;
1305 {
1306 PyThreadState* __tstate = wxPyBeginAllowThreads();
1307 (arg1)->Set(arg2,arg3,arg4);
1308
1309 wxPyEndAllowThreads(__tstate);
1310 if (PyErr_Occurred()) SWIG_fail;
1311 }
1312 Py_INCREF(Py_None); resultobj = Py_None;
1313 return resultobj;
1314 fail:
1315 return NULL;
1316}
1317
1318
1319static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1320 PyObject *resultobj;
1321 wxColour *arg1 = (wxColour *) 0 ;
1322 unsigned long arg2 ;
1323 PyObject * obj0 = 0 ;
1324 PyObject * obj1 = 0 ;
1325 char *kwnames[] = {
1326 (char *) "self",(char *) "colRGB", NULL
1327 };
1328
1329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1332 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1333 if (PyErr_Occurred()) SWIG_fail;
1334 {
1335 PyThreadState* __tstate = wxPyBeginAllowThreads();
1336 (arg1)->Set(arg2);
1337
1338 wxPyEndAllowThreads(__tstate);
1339 if (PyErr_Occurred()) SWIG_fail;
1340 }
1341 Py_INCREF(Py_None); resultobj = Py_None;
1342 return resultobj;
1343 fail:
1344 return NULL;
1345}
1346
1347
1348static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1349 PyObject *resultobj;
1350 wxColour *arg1 = (wxColour *) 0 ;
1351 wxString *arg2 = 0 ;
1352 bool temp2 = False ;
1353 PyObject * obj0 = 0 ;
1354 PyObject * obj1 = 0 ;
1355 char *kwnames[] = {
1356 (char *) "self",(char *) "colourName", NULL
1357 };
1358
1359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1362 {
1363 arg2 = wxString_in_helper(obj1);
1364 if (arg2 == NULL) SWIG_fail;
1365 temp2 = True;
1366 }
1367 {
1368 PyThreadState* __tstate = wxPyBeginAllowThreads();
1369 (arg1)->InitFromName((wxString const &)*arg2);
1370
1371 wxPyEndAllowThreads(__tstate);
1372 if (PyErr_Occurred()) SWIG_fail;
1373 }
1374 Py_INCREF(Py_None); resultobj = Py_None;
1375 {
1376 if (temp2)
1377 delete arg2;
1378 }
1379 return resultobj;
1380 fail:
1381 {
1382 if (temp2)
1383 delete arg2;
1384 }
1385 return NULL;
1386}
1387
1388
1389static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1390 PyObject *resultobj;
1391 wxColour *arg1 = (wxColour *) 0 ;
1392 long result;
1393 PyObject * obj0 = 0 ;
1394 char *kwnames[] = {
1395 (char *) "self", NULL
1396 };
1397
1398 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1399 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1400 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1401 {
1402 PyThreadState* __tstate = wxPyBeginAllowThreads();
1403 result = (long)((wxColour const *)arg1)->GetPixel();
1404
1405 wxPyEndAllowThreads(__tstate);
1406 if (PyErr_Occurred()) SWIG_fail;
1407 }
1408 resultobj = SWIG_FromLong((long)result);
1409 return resultobj;
1410 fail:
1411 return NULL;
1412}
1413
1414
1415static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1416 PyObject *resultobj;
1417 wxColour *arg1 = (wxColour *) 0 ;
1418 wxColour *arg2 = 0 ;
1419 bool result;
1420 wxColour temp2 ;
1421 PyObject * obj0 = 0 ;
1422 PyObject * obj1 = 0 ;
1423 char *kwnames[] = {
1424 (char *) "self",(char *) "colour", NULL
1425 };
1426
1427 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1428 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1430 {
1431 arg2 = &temp2;
1432 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1433 }
1434 {
1435 PyThreadState* __tstate = wxPyBeginAllowThreads();
1436 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1437
1438 wxPyEndAllowThreads(__tstate);
1439 if (PyErr_Occurred()) SWIG_fail;
1440 }
1441 {
1442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1443 }
1444 return resultobj;
1445 fail:
1446 return NULL;
1447}
1448
1449
1450static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1451 PyObject *resultobj;
1452 wxColour *arg1 = (wxColour *) 0 ;
1453 wxColour *arg2 = 0 ;
1454 bool result;
1455 wxColour temp2 ;
1456 PyObject * obj0 = 0 ;
1457 PyObject * obj1 = 0 ;
1458 char *kwnames[] = {
1459 (char *) "self",(char *) "colour", NULL
1460 };
1461
1462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1465 {
1466 arg2 = &temp2;
1467 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1468 }
1469 {
1470 PyThreadState* __tstate = wxPyBeginAllowThreads();
1471 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1472
1473 wxPyEndAllowThreads(__tstate);
1474 if (PyErr_Occurred()) SWIG_fail;
1475 }
1476 {
1477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1478 }
1479 return resultobj;
1480 fail:
1481 return NULL;
1482}
1483
1484
1485static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1486 PyObject *resultobj;
1487 wxColour *arg1 = (wxColour *) 0 ;
1488 PyObject *result;
1489 PyObject * obj0 = 0 ;
1490 char *kwnames[] = {
1491 (char *) "self", NULL
1492 };
1493
1494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1497 {
1498 PyThreadState* __tstate = wxPyBeginAllowThreads();
1499 result = (PyObject *)wxColour_Get(arg1);
1500
1501 wxPyEndAllowThreads(__tstate);
1502 if (PyErr_Occurred()) SWIG_fail;
1503 }
1504 resultobj = result;
1505 return resultobj;
1506 fail:
1507 return NULL;
1508}
1509
1510
1511static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1512 PyObject *resultobj;
1513 wxColour *arg1 = (wxColour *) 0 ;
1514 unsigned long result;
1515 PyObject * obj0 = 0 ;
1516 char *kwnames[] = {
1517 (char *) "self", NULL
1518 };
1519
1520 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1521 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1522 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1523 {
1524 PyThreadState* __tstate = wxPyBeginAllowThreads();
1525 result = (unsigned long)wxColour_GetRGB(arg1);
1526
1527 wxPyEndAllowThreads(__tstate);
1528 if (PyErr_Occurred()) SWIG_fail;
1529 }
1530 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1531 return resultobj;
1532 fail:
1533 return NULL;
1534}
1535
1536
1537static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1538 PyObject *obj;
1539 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1540 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1541 Py_INCREF(obj);
1542 return Py_BuildValue((char *)"");
1543}
1544static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1545 PyObject *resultobj;
1546 int arg1 ;
1547 unsigned char *arg2 = (unsigned char *) 0 ;
1548 unsigned char *arg3 = (unsigned char *) 0 ;
1549 unsigned char *arg4 = (unsigned char *) 0 ;
1550 wxPalette *result;
1551 PyObject * obj0 = 0 ;
1552 PyObject * obj1 = 0 ;
1553 PyObject * obj2 = 0 ;
1554 PyObject * obj3 = 0 ;
1555 char *kwnames[] = {
1556 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1557 };
1558
1559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1560 arg1 = (int) SWIG_AsInt(obj0);
1561 if (PyErr_Occurred()) SWIG_fail;
1562 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1563 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1564 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1566 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1567 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1568 {
0439c23b 1569 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1570 PyThreadState* __tstate = wxPyBeginAllowThreads();
1571 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1572
1573 wxPyEndAllowThreads(__tstate);
110da5b0 1574 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1575 }
1576 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1577 return resultobj;
1578 fail:
1579 return NULL;
1580}
1581
1582
1583static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1584 PyObject *resultobj;
1585 wxPalette *arg1 = (wxPalette *) 0 ;
1586 PyObject * obj0 = 0 ;
1587 char *kwnames[] = {
1588 (char *) "self", NULL
1589 };
1590
1591 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1592 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1593 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1594 {
1595 PyThreadState* __tstate = wxPyBeginAllowThreads();
1596 delete arg1;
1597
1598 wxPyEndAllowThreads(__tstate);
1599 if (PyErr_Occurred()) SWIG_fail;
1600 }
1601 Py_INCREF(Py_None); resultobj = Py_None;
1602 return resultobj;
1603 fail:
1604 return NULL;
1605}
1606
1607
1608static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1609 PyObject *resultobj;
1610 wxPalette *arg1 = (wxPalette *) 0 ;
1611 byte arg2 ;
1612 byte arg3 ;
1613 byte arg4 ;
1614 int result;
1615 PyObject * obj0 = 0 ;
1616 PyObject * obj1 = 0 ;
1617 PyObject * obj2 = 0 ;
1618 PyObject * obj3 = 0 ;
1619 char *kwnames[] = {
1620 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1621 };
1622
1623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1626 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1627 if (PyErr_Occurred()) SWIG_fail;
1628 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1629 if (PyErr_Occurred()) SWIG_fail;
1630 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1631 if (PyErr_Occurred()) SWIG_fail;
1632 {
1633 PyThreadState* __tstate = wxPyBeginAllowThreads();
1634 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1635
1636 wxPyEndAllowThreads(__tstate);
1637 if (PyErr_Occurred()) SWIG_fail;
1638 }
1639 resultobj = SWIG_FromInt((int)result);
1640 return resultobj;
1641 fail:
1642 return NULL;
1643}
1644
1645
1646static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1647 PyObject *resultobj;
1648 wxPalette *arg1 = (wxPalette *) 0 ;
1649 int arg2 ;
1650 byte *arg3 = (byte *) 0 ;
1651 byte *arg4 = (byte *) 0 ;
1652 byte *arg5 = (byte *) 0 ;
1653 bool result;
1654 byte temp3 ;
1655 byte temp4 ;
1656 byte temp5 ;
1657 PyObject * obj0 = 0 ;
1658 PyObject * obj1 = 0 ;
1659 char *kwnames[] = {
1660 (char *) "self",(char *) "pixel", NULL
1661 };
1662
1663 arg3 = &temp3;
1664 arg4 = &temp4;
1665 arg5 = &temp5;
1666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1669 arg2 = (int) SWIG_AsInt(obj1);
1670 if (PyErr_Occurred()) SWIG_fail;
1671 {
1672 PyThreadState* __tstate = wxPyBeginAllowThreads();
1673 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1674
1675 wxPyEndAllowThreads(__tstate);
1676 if (PyErr_Occurred()) SWIG_fail;
1677 }
1678 {
1679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1680 }
1681 {
1682 PyObject *o = PyInt_FromLong((long) (*arg3));
1683 resultobj = t_output_helper(resultobj,o);
1684 }
1685 {
1686 PyObject *o = PyInt_FromLong((long) (*arg4));
1687 resultobj = t_output_helper(resultobj,o);
1688 }
1689 {
1690 PyObject *o = PyInt_FromLong((long) (*arg5));
1691 resultobj = t_output_helper(resultobj,o);
1692 }
1693 return resultobj;
1694 fail:
1695 return NULL;
1696}
1697
1698
1699static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1700 PyObject *resultobj;
1701 wxPalette *arg1 = (wxPalette *) 0 ;
1702 bool result;
1703 PyObject * obj0 = 0 ;
1704 char *kwnames[] = {
1705 (char *) "self", NULL
1706 };
1707
1708 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1709 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1710 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1711 {
1712 PyThreadState* __tstate = wxPyBeginAllowThreads();
1713 result = (bool)(arg1)->Ok();
1714
1715 wxPyEndAllowThreads(__tstate);
1716 if (PyErr_Occurred()) SWIG_fail;
1717 }
1718 {
1719 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1720 }
1721 return resultobj;
1722 fail:
1723 return NULL;
1724}
1725
1726
1727static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1728 PyObject *obj;
1729 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1730 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1731 Py_INCREF(obj);
1732 return Py_BuildValue((char *)"");
1733}
1734static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1735 PyObject *resultobj;
1736 wxColour *arg1 = 0 ;
1737 int arg2 = (int) 1 ;
1738 int arg3 = (int) wxSOLID ;
1739 wxPen *result;
1740 wxColour temp1 ;
1741 PyObject * obj0 = 0 ;
1742 PyObject * obj1 = 0 ;
1743 PyObject * obj2 = 0 ;
1744 char *kwnames[] = {
1745 (char *) "colour",(char *) "width",(char *) "style", NULL
1746 };
1747
1748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1749 {
1750 arg1 = &temp1;
1751 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1752 }
1753 if (obj1) {
1754 arg2 = (int) SWIG_AsInt(obj1);
1755 if (PyErr_Occurred()) SWIG_fail;
1756 }
1757 if (obj2) {
1758 arg3 = (int) SWIG_AsInt(obj2);
1759 if (PyErr_Occurred()) SWIG_fail;
1760 }
1761 {
0439c23b 1762 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1763 PyThreadState* __tstate = wxPyBeginAllowThreads();
1764 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1765
1766 wxPyEndAllowThreads(__tstate);
110da5b0 1767 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1768 }
1769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1770 return resultobj;
1771 fail:
1772 return NULL;
1773}
1774
1775
1776static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1777 PyObject *resultobj;
1778 wxPen *arg1 = (wxPen *) 0 ;
1779 PyObject * obj0 = 0 ;
1780 char *kwnames[] = {
1781 (char *) "self", NULL
1782 };
1783
1784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1787 {
1788 PyThreadState* __tstate = wxPyBeginAllowThreads();
1789 delete arg1;
1790
1791 wxPyEndAllowThreads(__tstate);
1792 if (PyErr_Occurred()) SWIG_fail;
1793 }
1794 Py_INCREF(Py_None); resultobj = Py_None;
1795 return resultobj;
1796 fail:
1797 return NULL;
1798}
1799
1800
1801static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1802 PyObject *resultobj;
1803 wxPen *arg1 = (wxPen *) 0 ;
1804 int result;
1805 PyObject * obj0 = 0 ;
1806 char *kwnames[] = {
1807 (char *) "self", NULL
1808 };
1809
1810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1813 {
1814 PyThreadState* __tstate = wxPyBeginAllowThreads();
1815 result = (int)(arg1)->GetCap();
1816
1817 wxPyEndAllowThreads(__tstate);
1818 if (PyErr_Occurred()) SWIG_fail;
1819 }
1820 resultobj = SWIG_FromInt((int)result);
1821 return resultobj;
1822 fail:
1823 return NULL;
1824}
1825
1826
1827static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1828 PyObject *resultobj;
1829 wxPen *arg1 = (wxPen *) 0 ;
1830 wxColour result;
1831 PyObject * obj0 = 0 ;
1832 char *kwnames[] = {
1833 (char *) "self", NULL
1834 };
1835
1836 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1839 {
1840 PyThreadState* __tstate = wxPyBeginAllowThreads();
1841 result = (arg1)->GetColour();
1842
1843 wxPyEndAllowThreads(__tstate);
1844 if (PyErr_Occurred()) SWIG_fail;
1845 }
1846 {
1847 wxColour * resultptr;
1848 resultptr = new wxColour((wxColour &) result);
1849 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1850 }
1851 return resultobj;
1852 fail:
1853 return NULL;
1854}
1855
1856
1857static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1858 PyObject *resultobj;
1859 wxPen *arg1 = (wxPen *) 0 ;
1860 int result;
1861 PyObject * obj0 = 0 ;
1862 char *kwnames[] = {
1863 (char *) "self", NULL
1864 };
1865
1866 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1867 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1868 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1869 {
1870 PyThreadState* __tstate = wxPyBeginAllowThreads();
1871 result = (int)(arg1)->GetJoin();
1872
1873 wxPyEndAllowThreads(__tstate);
1874 if (PyErr_Occurred()) SWIG_fail;
1875 }
1876 resultobj = SWIG_FromInt((int)result);
1877 return resultobj;
1878 fail:
1879 return NULL;
1880}
1881
1882
1883static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1884 PyObject *resultobj;
1885 wxPen *arg1 = (wxPen *) 0 ;
1886 int result;
1887 PyObject * obj0 = 0 ;
1888 char *kwnames[] = {
1889 (char *) "self", NULL
1890 };
1891
1892 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1893 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1894 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1895 {
1896 PyThreadState* __tstate = wxPyBeginAllowThreads();
1897 result = (int)(arg1)->GetStyle();
1898
1899 wxPyEndAllowThreads(__tstate);
1900 if (PyErr_Occurred()) SWIG_fail;
1901 }
1902 resultobj = SWIG_FromInt((int)result);
1903 return resultobj;
1904 fail:
1905 return NULL;
1906}
1907
1908
1909static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1910 PyObject *resultobj;
1911 wxPen *arg1 = (wxPen *) 0 ;
1912 int result;
1913 PyObject * obj0 = 0 ;
1914 char *kwnames[] = {
1915 (char *) "self", NULL
1916 };
1917
1918 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1919 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1920 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1921 {
1922 PyThreadState* __tstate = wxPyBeginAllowThreads();
1923 result = (int)(arg1)->GetWidth();
1924
1925 wxPyEndAllowThreads(__tstate);
1926 if (PyErr_Occurred()) SWIG_fail;
1927 }
1928 resultobj = SWIG_FromInt((int)result);
1929 return resultobj;
1930 fail:
1931 return NULL;
1932}
1933
1934
1935static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1936 PyObject *resultobj;
1937 wxPen *arg1 = (wxPen *) 0 ;
1938 bool result;
1939 PyObject * obj0 = 0 ;
1940 char *kwnames[] = {
1941 (char *) "self", NULL
1942 };
1943
1944 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1945 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1946 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1947 {
1948 PyThreadState* __tstate = wxPyBeginAllowThreads();
1949 result = (bool)(arg1)->Ok();
1950
1951 wxPyEndAllowThreads(__tstate);
1952 if (PyErr_Occurred()) SWIG_fail;
1953 }
1954 {
1955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1956 }
1957 return resultobj;
1958 fail:
1959 return NULL;
1960}
1961
1962
1963static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1964 PyObject *resultobj;
1965 wxPen *arg1 = (wxPen *) 0 ;
1966 int arg2 ;
1967 PyObject * obj0 = 0 ;
1968 PyObject * obj1 = 0 ;
1969 char *kwnames[] = {
1970 (char *) "self",(char *) "cap_style", NULL
1971 };
1972
1973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1976 arg2 = (int) SWIG_AsInt(obj1);
1977 if (PyErr_Occurred()) SWIG_fail;
1978 {
1979 PyThreadState* __tstate = wxPyBeginAllowThreads();
1980 (arg1)->SetCap(arg2);
1981
1982 wxPyEndAllowThreads(__tstate);
1983 if (PyErr_Occurred()) SWIG_fail;
1984 }
1985 Py_INCREF(Py_None); resultobj = Py_None;
1986 return resultobj;
1987 fail:
1988 return NULL;
1989}
1990
1991
1992static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1993 PyObject *resultobj;
1994 wxPen *arg1 = (wxPen *) 0 ;
1995 wxColour *arg2 = 0 ;
1996 wxColour temp2 ;
1997 PyObject * obj0 = 0 ;
1998 PyObject * obj1 = 0 ;
1999 char *kwnames[] = {
2000 (char *) "self",(char *) "colour", NULL
2001 };
2002
2003 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
2004 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2005 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2006 {
2007 arg2 = &temp2;
2008 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2009 }
2010 {
2011 PyThreadState* __tstate = wxPyBeginAllowThreads();
2012 (arg1)->SetColour(*arg2);
2013
2014 wxPyEndAllowThreads(__tstate);
2015 if (PyErr_Occurred()) SWIG_fail;
2016 }
2017 Py_INCREF(Py_None); resultobj = Py_None;
2018 return resultobj;
2019 fail:
2020 return NULL;
2021}
2022
2023
2024static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2025 PyObject *resultobj;
2026 wxPen *arg1 = (wxPen *) 0 ;
2027 int arg2 ;
2028 PyObject * obj0 = 0 ;
2029 PyObject * obj1 = 0 ;
2030 char *kwnames[] = {
2031 (char *) "self",(char *) "join_style", NULL
2032 };
2033
2034 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2035 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2036 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2037 arg2 = (int) SWIG_AsInt(obj1);
2038 if (PyErr_Occurred()) SWIG_fail;
2039 {
2040 PyThreadState* __tstate = wxPyBeginAllowThreads();
2041 (arg1)->SetJoin(arg2);
2042
2043 wxPyEndAllowThreads(__tstate);
2044 if (PyErr_Occurred()) SWIG_fail;
2045 }
2046 Py_INCREF(Py_None); resultobj = Py_None;
2047 return resultobj;
2048 fail:
2049 return NULL;
2050}
2051
2052
2053static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2054 PyObject *resultobj;
2055 wxPen *arg1 = (wxPen *) 0 ;
2056 int arg2 ;
2057 PyObject * obj0 = 0 ;
2058 PyObject * obj1 = 0 ;
2059 char *kwnames[] = {
2060 (char *) "self",(char *) "style", NULL
2061 };
2062
2063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2066 arg2 = (int) SWIG_AsInt(obj1);
2067 if (PyErr_Occurred()) SWIG_fail;
2068 {
2069 PyThreadState* __tstate = wxPyBeginAllowThreads();
2070 (arg1)->SetStyle(arg2);
2071
2072 wxPyEndAllowThreads(__tstate);
2073 if (PyErr_Occurred()) SWIG_fail;
2074 }
2075 Py_INCREF(Py_None); resultobj = Py_None;
2076 return resultobj;
2077 fail:
2078 return NULL;
2079}
2080
2081
2082static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2083 PyObject *resultobj;
2084 wxPen *arg1 = (wxPen *) 0 ;
2085 int arg2 ;
2086 PyObject * obj0 = 0 ;
2087 PyObject * obj1 = 0 ;
2088 char *kwnames[] = {
2089 (char *) "self",(char *) "width", NULL
2090 };
2091
2092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2095 arg2 = (int) SWIG_AsInt(obj1);
2096 if (PyErr_Occurred()) SWIG_fail;
2097 {
2098 PyThreadState* __tstate = wxPyBeginAllowThreads();
2099 (arg1)->SetWidth(arg2);
2100
2101 wxPyEndAllowThreads(__tstate);
2102 if (PyErr_Occurred()) SWIG_fail;
2103 }
2104 Py_INCREF(Py_None); resultobj = Py_None;
2105 return resultobj;
2106 fail:
2107 return NULL;
2108}
2109
2110
2111static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2112 PyObject *resultobj;
2113 wxPen *arg1 = (wxPen *) 0 ;
2114 int arg2 ;
2115 wxDash *arg3 = (wxDash *) 0 ;
2116 PyObject * obj0 = 0 ;
2117 PyObject * obj1 = 0 ;
2118 char *kwnames[] = {
2119 (char *) "self",(char *) "dashes", NULL
2120 };
2121
2122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2125 {
2126 arg2 = PyList_Size(obj1);
2127 arg3 = (wxDash*)byte_LIST_helper(obj1);
2128 if (arg3 == NULL) SWIG_fail;
2129 }
2130 {
2131 PyThreadState* __tstate = wxPyBeginAllowThreads();
2132 (arg1)->SetDashes(arg2,arg3);
2133
2134 wxPyEndAllowThreads(__tstate);
2135 if (PyErr_Occurred()) SWIG_fail;
2136 }
2137 Py_INCREF(Py_None); resultobj = Py_None;
2138 {
2139 if (arg3) delete [] arg3;
2140 }
2141 return resultobj;
2142 fail:
2143 {
2144 if (arg3) delete [] arg3;
2145 }
2146 return NULL;
2147}
2148
2149
2150static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2151 PyObject *resultobj;
2152 wxPen *arg1 = (wxPen *) 0 ;
2153 PyObject *result;
2154 PyObject * obj0 = 0 ;
2155 char *kwnames[] = {
2156 (char *) "self", NULL
2157 };
2158
2159 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2160 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2161 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2162 {
2163 PyThreadState* __tstate = wxPyBeginAllowThreads();
2164 result = (PyObject *)wxPen_GetDashes(arg1);
2165
2166 wxPyEndAllowThreads(__tstate);
2167 if (PyErr_Occurred()) SWIG_fail;
2168 }
2169 resultobj = result;
2170 return resultobj;
2171 fail:
2172 return NULL;
2173}
2174
2175
d6c14a4c 2176static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2177 PyObject *resultobj;
2178 wxPen *arg1 = (wxPen *) 0 ;
d6c14a4c
RD
2179 PyObject *arg2 = (PyObject *) 0 ;
2180 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
2181 PyObject * obj0 = 0 ;
2182 PyObject * obj1 = 0 ;
d6c14a4c 2183 PyObject * obj2 = 0 ;
d55e5bfc 2184 char *kwnames[] = {
d6c14a4c 2185 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d55e5bfc
RD
2186 };
2187
d6c14a4c 2188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
2189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d6c14a4c
RD
2191 arg2 = obj1;
2192 arg3 = obj2;
d55e5bfc
RD
2193 {
2194 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2195 wxPen__SetDashes(arg1,arg2,arg3);
d55e5bfc
RD
2196
2197 wxPyEndAllowThreads(__tstate);
2198 if (PyErr_Occurred()) SWIG_fail;
2199 }
d6c14a4c 2200 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2201 return resultobj;
2202 fail:
2203 return NULL;
2204}
2205
2206
d6c14a4c 2207static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2208 PyObject *resultobj;
2209 wxPen *arg1 = (wxPen *) 0 ;
2210 wxPen *arg2 = (wxPen *) 0 ;
2211 bool result;
2212 PyObject * obj0 = 0 ;
2213 PyObject * obj1 = 0 ;
2214 char *kwnames[] = {
2215 (char *) "self",(char *) "other", NULL
2216 };
2217
d6c14a4c 2218 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
2219 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2220 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2221 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2223 {
2224 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2225 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2226
2227 wxPyEndAllowThreads(__tstate);
2228 if (PyErr_Occurred()) SWIG_fail;
2229 }
2230 {
2231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2232 }
2233 return resultobj;
2234 fail:
2235 return NULL;
2236}
2237
2238
d6c14a4c 2239static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 2240 PyObject *resultobj;
d6c14a4c
RD
2241 wxPen *arg1 = (wxPen *) 0 ;
2242 wxPen *arg2 = (wxPen *) 0 ;
2243 bool result;
d55e5bfc
RD
2244 PyObject * obj0 = 0 ;
2245 PyObject * obj1 = 0 ;
d55e5bfc 2246 char *kwnames[] = {
d6c14a4c 2247 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2248 };
2249
d6c14a4c
RD
2250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
d55e5bfc 2252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d6c14a4c 2253 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
d55e5bfc 2254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2255 {
2256 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2257 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2258
2259 wxPyEndAllowThreads(__tstate);
2260 if (PyErr_Occurred()) SWIG_fail;
2261 }
d55e5bfc 2262 {
d6c14a4c 2263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
2264 }
2265 return resultobj;
2266 fail:
d55e5bfc
RD
2267 return NULL;
2268}
2269
2270
d6c14a4c 2271static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
d55e5bfc
RD
2272 PyObject *obj;
2273 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
d6c14a4c 2274 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d55e5bfc
RD
2275 Py_INCREF(obj);
2276 return Py_BuildValue((char *)"");
2277}
2278static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2279 PyObject *resultobj;
2280 wxColour *arg1 = 0 ;
2281 int arg2 = (int) wxSOLID ;
2282 wxBrush *result;
2283 wxColour temp1 ;
2284 PyObject * obj0 = 0 ;
2285 PyObject * obj1 = 0 ;
2286 char *kwnames[] = {
2287 (char *) "colour",(char *) "style", NULL
2288 };
2289
2290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2291 {
2292 arg1 = &temp1;
2293 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2294 }
2295 if (obj1) {
2296 arg2 = (int) SWIG_AsInt(obj1);
2297 if (PyErr_Occurred()) SWIG_fail;
2298 }
2299 {
0439c23b 2300 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2301 PyThreadState* __tstate = wxPyBeginAllowThreads();
2302 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2303
2304 wxPyEndAllowThreads(__tstate);
110da5b0 2305 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2306 }
2307 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2308 return resultobj;
2309 fail:
2310 return NULL;
2311}
2312
2313
2314static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2315 PyObject *resultobj;
2316 wxBrush *arg1 = (wxBrush *) 0 ;
2317 PyObject * obj0 = 0 ;
2318 char *kwnames[] = {
2319 (char *) "self", NULL
2320 };
2321
2322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2325 {
2326 PyThreadState* __tstate = wxPyBeginAllowThreads();
2327 delete arg1;
2328
2329 wxPyEndAllowThreads(__tstate);
2330 if (PyErr_Occurred()) SWIG_fail;
2331 }
2332 Py_INCREF(Py_None); resultobj = Py_None;
2333 return resultobj;
2334 fail:
2335 return NULL;
2336}
2337
2338
2339static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2340 PyObject *resultobj;
2341 wxBrush *arg1 = (wxBrush *) 0 ;
2342 wxColour *arg2 = 0 ;
2343 wxColour temp2 ;
2344 PyObject * obj0 = 0 ;
2345 PyObject * obj1 = 0 ;
2346 char *kwnames[] = {
2347 (char *) "self",(char *) "col", NULL
2348 };
2349
2350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2353 {
2354 arg2 = &temp2;
2355 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2356 }
2357 {
2358 PyThreadState* __tstate = wxPyBeginAllowThreads();
2359 (arg1)->SetColour((wxColour const &)*arg2);
2360
2361 wxPyEndAllowThreads(__tstate);
2362 if (PyErr_Occurred()) SWIG_fail;
2363 }
2364 Py_INCREF(Py_None); resultobj = Py_None;
2365 return resultobj;
2366 fail:
2367 return NULL;
2368}
2369
2370
2371static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2372 PyObject *resultobj;
2373 wxBrush *arg1 = (wxBrush *) 0 ;
2374 int arg2 ;
2375 PyObject * obj0 = 0 ;
2376 PyObject * obj1 = 0 ;
2377 char *kwnames[] = {
2378 (char *) "self",(char *) "style", NULL
2379 };
2380
2381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2384 arg2 = (int) SWIG_AsInt(obj1);
2385 if (PyErr_Occurred()) SWIG_fail;
2386 {
2387 PyThreadState* __tstate = wxPyBeginAllowThreads();
2388 (arg1)->SetStyle(arg2);
2389
2390 wxPyEndAllowThreads(__tstate);
2391 if (PyErr_Occurred()) SWIG_fail;
2392 }
2393 Py_INCREF(Py_None); resultobj = Py_None;
2394 return resultobj;
2395 fail:
2396 return NULL;
2397}
2398
2399
2400static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2401 PyObject *resultobj;
2402 wxBrush *arg1 = (wxBrush *) 0 ;
2403 wxBitmap *arg2 = 0 ;
2404 PyObject * obj0 = 0 ;
2405 PyObject * obj1 = 0 ;
2406 char *kwnames[] = {
2407 (char *) "self",(char *) "stipple", NULL
2408 };
2409
2410 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2411 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2413 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2414 SWIG_POINTER_EXCEPTION | 0)) == -1)
2415 SWIG_fail;
2416 if (arg2 == NULL) {
2417 PyErr_SetString(PyExc_TypeError,"null reference");
2418 SWIG_fail;
2419 }
2420 {
2421 PyThreadState* __tstate = wxPyBeginAllowThreads();
2422 (arg1)->SetStipple((wxBitmap const &)*arg2);
2423
2424 wxPyEndAllowThreads(__tstate);
2425 if (PyErr_Occurred()) SWIG_fail;
2426 }
2427 Py_INCREF(Py_None); resultobj = Py_None;
2428 return resultobj;
2429 fail:
2430 return NULL;
2431}
2432
2433
2434static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2435 PyObject *resultobj;
2436 wxBrush *arg1 = (wxBrush *) 0 ;
2437 wxColour result;
2438 PyObject * obj0 = 0 ;
2439 char *kwnames[] = {
2440 (char *) "self", NULL
2441 };
2442
2443 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2444 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2445 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2446 {
2447 PyThreadState* __tstate = wxPyBeginAllowThreads();
2448 result = ((wxBrush const *)arg1)->GetColour();
2449
2450 wxPyEndAllowThreads(__tstate);
2451 if (PyErr_Occurred()) SWIG_fail;
2452 }
2453 {
2454 wxColour * resultptr;
2455 resultptr = new wxColour((wxColour &) result);
2456 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2457 }
2458 return resultobj;
2459 fail:
2460 return NULL;
2461}
2462
2463
2464static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2465 PyObject *resultobj;
2466 wxBrush *arg1 = (wxBrush *) 0 ;
2467 int result;
2468 PyObject * obj0 = 0 ;
2469 char *kwnames[] = {
2470 (char *) "self", NULL
2471 };
2472
2473 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2474 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2475 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2476 {
2477 PyThreadState* __tstate = wxPyBeginAllowThreads();
2478 result = (int)((wxBrush const *)arg1)->GetStyle();
2479
2480 wxPyEndAllowThreads(__tstate);
2481 if (PyErr_Occurred()) SWIG_fail;
2482 }
2483 resultobj = SWIG_FromInt((int)result);
2484 return resultobj;
2485 fail:
2486 return NULL;
2487}
2488
2489
2490static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2491 PyObject *resultobj;
2492 wxBrush *arg1 = (wxBrush *) 0 ;
2493 wxBitmap *result;
2494 PyObject * obj0 = 0 ;
2495 char *kwnames[] = {
2496 (char *) "self", NULL
2497 };
2498
2499 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2500 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2501 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2502 {
2503 PyThreadState* __tstate = wxPyBeginAllowThreads();
2504 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2505
2506 wxPyEndAllowThreads(__tstate);
2507 if (PyErr_Occurred()) SWIG_fail;
2508 }
2509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2510 return resultobj;
2511 fail:
2512 return NULL;
2513}
2514
2515
2516static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2517 PyObject *resultobj;
2518 wxBrush *arg1 = (wxBrush *) 0 ;
2519 bool result;
2520 PyObject * obj0 = 0 ;
2521 char *kwnames[] = {
2522 (char *) "self", NULL
2523 };
2524
2525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2528 {
2529 PyThreadState* __tstate = wxPyBeginAllowThreads();
2530 result = (bool)(arg1)->Ok();
2531
2532 wxPyEndAllowThreads(__tstate);
2533 if (PyErr_Occurred()) SWIG_fail;
2534 }
2535 {
2536 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2537 }
2538 return resultobj;
2539 fail:
2540 return NULL;
2541}
2542
2543
2544static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2545 PyObject *resultobj;
2546 wxBrush *arg1 = (wxBrush *) 0 ;
2547 short result;
2548 PyObject * obj0 = 0 ;
2549 char *kwnames[] = {
2550 (char *) "self", NULL
2551 };
2552
2553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2556 {
2557 PyThreadState* __tstate = wxPyBeginAllowThreads();
2558 result = (short)(arg1)->MacGetTheme();
2559
2560 wxPyEndAllowThreads(__tstate);
2561 if (PyErr_Occurred()) SWIG_fail;
2562 }
2563 resultobj = SWIG_FromShort((short)result);
2564 return resultobj;
2565 fail:
2566 return NULL;
2567}
2568
2569
2570static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2571 PyObject *resultobj;
2572 wxBrush *arg1 = (wxBrush *) 0 ;
2573 short arg2 ;
2574 PyObject * obj0 = 0 ;
2575 PyObject * obj1 = 0 ;
2576 char *kwnames[] = {
2577 (char *) "self",(char *) "macThemeBrush", NULL
2578 };
2579
2580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2583 arg2 = (short) SWIG_AsShort(obj1);
2584 if (PyErr_Occurred()) SWIG_fail;
2585 {
2586 PyThreadState* __tstate = wxPyBeginAllowThreads();
2587 (arg1)->MacSetTheme(arg2);
2588
2589 wxPyEndAllowThreads(__tstate);
2590 if (PyErr_Occurred()) SWIG_fail;
2591 }
2592 Py_INCREF(Py_None); resultobj = Py_None;
2593 return resultobj;
2594 fail:
2595 return NULL;
2596}
2597
2598
2599static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2600 PyObject *obj;
2601 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2602 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2603 Py_INCREF(obj);
2604 return Py_BuildValue((char *)"");
2605}
2606static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2607 PyObject *resultobj;
2608 wxString *arg1 = 0 ;
2609 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2610 wxBitmap *result;
2611 bool temp1 = False ;
2612 PyObject * obj0 = 0 ;
2613 PyObject * obj1 = 0 ;
2614 char *kwnames[] = {
2615 (char *) "name",(char *) "type", NULL
2616 };
2617
2618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2619 {
2620 arg1 = wxString_in_helper(obj0);
2621 if (arg1 == NULL) SWIG_fail;
2622 temp1 = True;
2623 }
2624 if (obj1) {
2625 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2626 if (PyErr_Occurred()) SWIG_fail;
2627 }
2628 {
0439c23b 2629 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2630 PyThreadState* __tstate = wxPyBeginAllowThreads();
2631 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2632
2633 wxPyEndAllowThreads(__tstate);
110da5b0 2634 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2635 }
2636 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2637 {
2638 if (temp1)
2639 delete arg1;
2640 }
2641 return resultobj;
2642 fail:
2643 {
2644 if (temp1)
2645 delete arg1;
2646 }
2647 return NULL;
2648}
2649
2650
2651static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2652 PyObject *resultobj;
2653 wxBitmap *arg1 = (wxBitmap *) 0 ;
2654 PyObject * obj0 = 0 ;
2655 char *kwnames[] = {
2656 (char *) "self", NULL
2657 };
2658
2659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2662 {
2663 PyThreadState* __tstate = wxPyBeginAllowThreads();
2664 delete arg1;
2665
2666 wxPyEndAllowThreads(__tstate);
2667 if (PyErr_Occurred()) SWIG_fail;
2668 }
2669 Py_INCREF(Py_None); resultobj = Py_None;
2670 return resultobj;
2671 fail:
2672 return NULL;
2673}
2674
2675
d6c14a4c
RD
2676static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2677 PyObject *resultobj;
2678 int arg1 ;
2679 int arg2 ;
2680 int arg3 = (int) -1 ;
2681 wxBitmap *result;
2682 PyObject * obj0 = 0 ;
2683 PyObject * obj1 = 0 ;
2684 PyObject * obj2 = 0 ;
2685 char *kwnames[] = {
2686 (char *) "width",(char *) "height",(char *) "depth", NULL
2687 };
2688
2689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2690 arg1 = (int) SWIG_AsInt(obj0);
2691 if (PyErr_Occurred()) SWIG_fail;
2692 arg2 = (int) SWIG_AsInt(obj1);
2693 if (PyErr_Occurred()) SWIG_fail;
2694 if (obj2) {
2695 arg3 = (int) SWIG_AsInt(obj2);
2696 if (PyErr_Occurred()) SWIG_fail;
2697 }
2698 {
0439c23b 2699 if (!wxPyCheckForApp()) SWIG_fail;
d6c14a4c
RD
2700 PyThreadState* __tstate = wxPyBeginAllowThreads();
2701 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2702
2703 wxPyEndAllowThreads(__tstate);
110da5b0 2704 if (PyErr_Occurred()) SWIG_fail;
d6c14a4c
RD
2705 }
2706 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2707 return resultobj;
2708 fail:
2709 return NULL;
2710}
2711
2712
d55e5bfc
RD
2713static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2714 PyObject *resultobj;
2715 wxIcon *arg1 = 0 ;
2716 wxBitmap *result;
2717 PyObject * obj0 = 0 ;
2718 char *kwnames[] = {
2719 (char *) "icon", NULL
2720 };
2721
2722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2724 SWIG_POINTER_EXCEPTION | 0)) == -1)
2725 SWIG_fail;
2726 if (arg1 == NULL) {
2727 PyErr_SetString(PyExc_TypeError,"null reference");
2728 SWIG_fail;
2729 }
2730 {
0439c23b 2731 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2732 PyThreadState* __tstate = wxPyBeginAllowThreads();
2733 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2734
2735 wxPyEndAllowThreads(__tstate);
110da5b0 2736 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2737 }
2738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2739 return resultobj;
2740 fail:
2741 return NULL;
2742}
2743
2744
2745static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2746 PyObject *resultobj;
2747 wxImage *arg1 = 0 ;
2748 int arg2 = (int) -1 ;
2749 wxBitmap *result;
2750 PyObject * obj0 = 0 ;
2751 PyObject * obj1 = 0 ;
2752 char *kwnames[] = {
2753 (char *) "image",(char *) "depth", NULL
2754 };
2755
2756 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2757 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2758 SWIG_POINTER_EXCEPTION | 0)) == -1)
2759 SWIG_fail;
2760 if (arg1 == NULL) {
2761 PyErr_SetString(PyExc_TypeError,"null reference");
2762 SWIG_fail;
2763 }
2764 if (obj1) {
2765 arg2 = (int) SWIG_AsInt(obj1);
2766 if (PyErr_Occurred()) SWIG_fail;
2767 }
2768 {
0439c23b 2769 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2770 PyThreadState* __tstate = wxPyBeginAllowThreads();
2771 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2772
2773 wxPyEndAllowThreads(__tstate);
110da5b0 2774 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2775 }
2776 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2777 return resultobj;
2778 fail:
2779 return NULL;
2780}
2781
2782
2783static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2784 PyObject *resultobj;
2785 PyObject *arg1 = (PyObject *) 0 ;
2786 wxBitmap *result;
2787 PyObject * obj0 = 0 ;
2788 char *kwnames[] = {
2789 (char *) "listOfStrings", NULL
2790 };
2791
2792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2793 arg1 = obj0;
2794 {
0439c23b 2795 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2796 PyThreadState* __tstate = wxPyBeginAllowThreads();
2797 result = (wxBitmap *)new_wxBitmap(arg1);
2798
2799 wxPyEndAllowThreads(__tstate);
110da5b0 2800 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2801 }
2802 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2803 return resultobj;
2804 fail:
2805 return NULL;
2806}
2807
2808
2809static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2810 PyObject *resultobj;
2811 PyObject *arg1 = (PyObject *) 0 ;
2812 int arg2 ;
2813 int arg3 ;
2814 int arg4 = (int) 1 ;
2815 wxBitmap *result;
2816 PyObject * obj0 = 0 ;
2817 PyObject * obj1 = 0 ;
2818 PyObject * obj2 = 0 ;
2819 PyObject * obj3 = 0 ;
2820 char *kwnames[] = {
2821 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2822 };
2823
2824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2825 arg1 = obj0;
2826 arg2 = (int) SWIG_AsInt(obj1);
2827 if (PyErr_Occurred()) SWIG_fail;
2828 arg3 = (int) SWIG_AsInt(obj2);
2829 if (PyErr_Occurred()) SWIG_fail;
2830 if (obj3) {
2831 arg4 = (int) SWIG_AsInt(obj3);
2832 if (PyErr_Occurred()) SWIG_fail;
2833 }
2834 {
0439c23b 2835 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2836 PyThreadState* __tstate = wxPyBeginAllowThreads();
2837 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2838
2839 wxPyEndAllowThreads(__tstate);
110da5b0 2840 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2841 }
2842 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2843 return resultobj;
2844 fail:
2845 return NULL;
2846}
2847
2848
d55e5bfc
RD
2849static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2850 PyObject *resultobj;
2851 wxBitmap *arg1 = (wxBitmap *) 0 ;
2852 bool result;
2853 PyObject * obj0 = 0 ;
2854 char *kwnames[] = {
2855 (char *) "self", NULL
2856 };
2857
2858 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2859 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2860 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2861 {
2862 PyThreadState* __tstate = wxPyBeginAllowThreads();
2863 result = (bool)(arg1)->Ok();
2864
2865 wxPyEndAllowThreads(__tstate);
2866 if (PyErr_Occurred()) SWIG_fail;
2867 }
2868 {
2869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2870 }
2871 return resultobj;
2872 fail:
2873 return NULL;
2874}
2875
2876
2877static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2878 PyObject *resultobj;
2879 wxBitmap *arg1 = (wxBitmap *) 0 ;
2880 int result;
2881 PyObject * obj0 = 0 ;
2882 char *kwnames[] = {
2883 (char *) "self", NULL
2884 };
2885
2886 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2887 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2888 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2889 {
2890 PyThreadState* __tstate = wxPyBeginAllowThreads();
2891 result = (int)(arg1)->GetWidth();
2892
2893 wxPyEndAllowThreads(__tstate);
2894 if (PyErr_Occurred()) SWIG_fail;
2895 }
2896 resultobj = SWIG_FromInt((int)result);
2897 return resultobj;
2898 fail:
2899 return NULL;
2900}
2901
2902
2903static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2904 PyObject *resultobj;
2905 wxBitmap *arg1 = (wxBitmap *) 0 ;
2906 int result;
2907 PyObject * obj0 = 0 ;
2908 char *kwnames[] = {
2909 (char *) "self", NULL
2910 };
2911
2912 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2913 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2914 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2915 {
2916 PyThreadState* __tstate = wxPyBeginAllowThreads();
2917 result = (int)(arg1)->GetHeight();
2918
2919 wxPyEndAllowThreads(__tstate);
2920 if (PyErr_Occurred()) SWIG_fail;
2921 }
2922 resultobj = SWIG_FromInt((int)result);
2923 return resultobj;
2924 fail:
2925 return NULL;
2926}
2927
2928
2929static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2930 PyObject *resultobj;
2931 wxBitmap *arg1 = (wxBitmap *) 0 ;
2932 int result;
2933 PyObject * obj0 = 0 ;
2934 char *kwnames[] = {
2935 (char *) "self", NULL
2936 };
2937
2938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2941 {
2942 PyThreadState* __tstate = wxPyBeginAllowThreads();
2943 result = (int)(arg1)->GetDepth();
2944
2945 wxPyEndAllowThreads(__tstate);
2946 if (PyErr_Occurred()) SWIG_fail;
2947 }
2948 resultobj = SWIG_FromInt((int)result);
2949 return resultobj;
2950 fail:
2951 return NULL;
2952}
2953
2954
2955static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2956 PyObject *resultobj;
2957 wxBitmap *arg1 = (wxBitmap *) 0 ;
2958 wxSize result;
2959 PyObject * obj0 = 0 ;
2960 char *kwnames[] = {
2961 (char *) "self", NULL
2962 };
2963
2964 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2965 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2966 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2967 {
2968 PyThreadState* __tstate = wxPyBeginAllowThreads();
2969 result = wxBitmap_GetSize(arg1);
2970
2971 wxPyEndAllowThreads(__tstate);
2972 if (PyErr_Occurred()) SWIG_fail;
2973 }
2974 {
2975 wxSize * resultptr;
2976 resultptr = new wxSize((wxSize &) result);
2977 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2978 }
2979 return resultobj;
2980 fail:
2981 return NULL;
2982}
2983
2984
2985static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2986 PyObject *resultobj;
2987 wxBitmap *arg1 = (wxBitmap *) 0 ;
2988 SwigValueWrapper< wxImage > result;
2989 PyObject * obj0 = 0 ;
2990 char *kwnames[] = {
2991 (char *) "self", NULL
2992 };
2993
2994 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2995 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2996 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2997 {
2998 PyThreadState* __tstate = wxPyBeginAllowThreads();
2999 result = ((wxBitmap const *)arg1)->ConvertToImage();
3000
3001 wxPyEndAllowThreads(__tstate);
3002 if (PyErr_Occurred()) SWIG_fail;
3003 }
3004 {
3005 wxImage * resultptr;
3006 resultptr = new wxImage((wxImage &) result);
3007 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3008 }
3009 return resultobj;
3010 fail:
3011 return NULL;
3012}
3013
3014
3015static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3016 PyObject *resultobj;
3017 wxBitmap *arg1 = (wxBitmap *) 0 ;
3018 wxMask *result;
3019 PyObject * obj0 = 0 ;
3020 char *kwnames[] = {
3021 (char *) "self", NULL
3022 };
3023
3024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3027 {
3028 PyThreadState* __tstate = wxPyBeginAllowThreads();
3029 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3030
3031 wxPyEndAllowThreads(__tstate);
3032 if (PyErr_Occurred()) SWIG_fail;
3033 }
3034 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3035 return resultobj;
3036 fail:
3037 return NULL;
3038}
3039
3040
3041static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3042 PyObject *resultobj;
3043 wxBitmap *arg1 = (wxBitmap *) 0 ;
3044 wxMask *arg2 = (wxMask *) 0 ;
3045 PyObject * obj0 = 0 ;
3046 PyObject * obj1 = 0 ;
3047 char *kwnames[] = {
3048 (char *) "self",(char *) "mask", NULL
3049 };
3050
3051 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3052 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3053 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3054 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3056 {
3057 PyThreadState* __tstate = wxPyBeginAllowThreads();
3058 (arg1)->SetMask(arg2);
3059
3060 wxPyEndAllowThreads(__tstate);
3061 if (PyErr_Occurred()) SWIG_fail;
3062 }
3063 Py_INCREF(Py_None); resultobj = Py_None;
3064 return resultobj;
3065 fail:
3066 return NULL;
3067}
3068
3069
3070static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3071 PyObject *resultobj;
3072 wxBitmap *arg1 = (wxBitmap *) 0 ;
3073 wxColour *arg2 = 0 ;
3074 wxColour temp2 ;
3075 PyObject * obj0 = 0 ;
3076 PyObject * obj1 = 0 ;
3077 char *kwnames[] = {
3078 (char *) "self",(char *) "colour", NULL
3079 };
3080
3081 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3082 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3083 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3084 {
3085 arg2 = &temp2;
3086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3087 }
3088 {
3089 PyThreadState* __tstate = wxPyBeginAllowThreads();
3090 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3091
3092 wxPyEndAllowThreads(__tstate);
3093 if (PyErr_Occurred()) SWIG_fail;
3094 }
3095 Py_INCREF(Py_None); resultobj = Py_None;
3096 return resultobj;
3097 fail:
3098 return NULL;
3099}
3100
3101
3102static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3103 PyObject *resultobj;
3104 wxBitmap *arg1 = (wxBitmap *) 0 ;
3105 wxRect *arg2 = 0 ;
3106 SwigValueWrapper< wxBitmap > result;
3107 wxRect temp2 ;
3108 PyObject * obj0 = 0 ;
3109 PyObject * obj1 = 0 ;
3110 char *kwnames[] = {
3111 (char *) "self",(char *) "rect", NULL
3112 };
3113
3114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3117 {
3118 arg2 = &temp2;
3119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3120 }
3121 {
3122 PyThreadState* __tstate = wxPyBeginAllowThreads();
3123 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3124
3125 wxPyEndAllowThreads(__tstate);
3126 if (PyErr_Occurred()) SWIG_fail;
3127 }
3128 {
3129 wxBitmap * resultptr;
3130 resultptr = new wxBitmap((wxBitmap &) result);
3131 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3132 }
3133 return resultobj;
3134 fail:
3135 return NULL;
3136}
3137
3138
3139static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3140 PyObject *resultobj;
3141 wxBitmap *arg1 = (wxBitmap *) 0 ;
3142 wxString *arg2 = 0 ;
3143 int arg3 ;
d6c14a4c 3144 wxPalette *arg4 = (wxPalette *) NULL ;
d55e5bfc
RD
3145 bool result;
3146 bool temp2 = False ;
3147 PyObject * obj0 = 0 ;
3148 PyObject * obj1 = 0 ;
3149 PyObject * obj2 = 0 ;
3150 PyObject * obj3 = 0 ;
3151 char *kwnames[] = {
3152 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3153 };
3154
3155 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3156 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3157 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3158 {
3159 arg2 = wxString_in_helper(obj1);
3160 if (arg2 == NULL) SWIG_fail;
3161 temp2 = True;
3162 }
3163 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3164 if (PyErr_Occurred()) SWIG_fail;
3165 if (obj3) {
3166 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3168 }
3169 {
3170 PyThreadState* __tstate = wxPyBeginAllowThreads();
3171 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3172
3173 wxPyEndAllowThreads(__tstate);
3174 if (PyErr_Occurred()) SWIG_fail;
3175 }
3176 {
3177 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3178 }
3179 {
3180 if (temp2)
3181 delete arg2;
3182 }
3183 return resultobj;
3184 fail:
3185 {
3186 if (temp2)
3187 delete arg2;
3188 }
3189 return NULL;
3190}
3191
3192
3193static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3194 PyObject *resultobj;
3195 wxBitmap *arg1 = (wxBitmap *) 0 ;
3196 wxString *arg2 = 0 ;
3197 int arg3 ;
3198 bool result;
3199 bool temp2 = False ;
3200 PyObject * obj0 = 0 ;
3201 PyObject * obj1 = 0 ;
3202 PyObject * obj2 = 0 ;
3203 char *kwnames[] = {
3204 (char *) "self",(char *) "name",(char *) "type", NULL
3205 };
3206
3207 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3208 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3209 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3210 {
3211 arg2 = wxString_in_helper(obj1);
3212 if (arg2 == NULL) SWIG_fail;
3213 temp2 = True;
3214 }
3215 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3216 if (PyErr_Occurred()) SWIG_fail;
3217 {
3218 PyThreadState* __tstate = wxPyBeginAllowThreads();
3219 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3220
3221 wxPyEndAllowThreads(__tstate);
3222 if (PyErr_Occurred()) SWIG_fail;
3223 }
3224 {
3225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3226 }
3227 {
3228 if (temp2)
3229 delete arg2;
3230 }
3231 return resultobj;
3232 fail:
3233 {
3234 if (temp2)
3235 delete arg2;
3236 }
3237 return NULL;
3238}
3239
3240
3241static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3242 PyObject *resultobj;
3243 wxBitmap *arg1 = (wxBitmap *) 0 ;
3244 wxIcon *arg2 = 0 ;
3245 bool result;
3246 PyObject * obj0 = 0 ;
3247 PyObject * obj1 = 0 ;
3248 char *kwnames[] = {
3249 (char *) "self",(char *) "icon", NULL
3250 };
3251
3252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3256 SWIG_POINTER_EXCEPTION | 0)) == -1)
3257 SWIG_fail;
3258 if (arg2 == NULL) {
3259 PyErr_SetString(PyExc_TypeError,"null reference");
3260 SWIG_fail;
3261 }
3262 {
3263 PyThreadState* __tstate = wxPyBeginAllowThreads();
3264 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3265
3266 wxPyEndAllowThreads(__tstate);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 {
3270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3271 }
3272 return resultobj;
3273 fail:
3274 return NULL;
3275}
3276
3277
3278static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3279 PyObject *resultobj;
3280 wxBitmap *arg1 = (wxBitmap *) 0 ;
3281 int arg2 ;
3282 PyObject * obj0 = 0 ;
3283 PyObject * obj1 = 0 ;
3284 char *kwnames[] = {
3285 (char *) "self",(char *) "height", NULL
3286 };
3287
3288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3291 arg2 = (int) SWIG_AsInt(obj1);
3292 if (PyErr_Occurred()) SWIG_fail;
3293 {
3294 PyThreadState* __tstate = wxPyBeginAllowThreads();
3295 (arg1)->SetHeight(arg2);
3296
3297 wxPyEndAllowThreads(__tstate);
3298 if (PyErr_Occurred()) SWIG_fail;
3299 }
3300 Py_INCREF(Py_None); resultobj = Py_None;
3301 return resultobj;
3302 fail:
3303 return NULL;
3304}
3305
3306
3307static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3308 PyObject *resultobj;
3309 wxBitmap *arg1 = (wxBitmap *) 0 ;
3310 int arg2 ;
3311 PyObject * obj0 = 0 ;
3312 PyObject * obj1 = 0 ;
3313 char *kwnames[] = {
3314 (char *) "self",(char *) "width", NULL
3315 };
3316
3317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3320 arg2 = (int) SWIG_AsInt(obj1);
3321 if (PyErr_Occurred()) SWIG_fail;
3322 {
3323 PyThreadState* __tstate = wxPyBeginAllowThreads();
3324 (arg1)->SetWidth(arg2);
3325
3326 wxPyEndAllowThreads(__tstate);
3327 if (PyErr_Occurred()) SWIG_fail;
3328 }
3329 Py_INCREF(Py_None); resultobj = Py_None;
3330 return resultobj;
3331 fail:
3332 return NULL;
3333}
3334
3335
3336static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3337 PyObject *resultobj;
3338 wxBitmap *arg1 = (wxBitmap *) 0 ;
3339 int arg2 ;
3340 PyObject * obj0 = 0 ;
3341 PyObject * obj1 = 0 ;
3342 char *kwnames[] = {
3343 (char *) "self",(char *) "depth", NULL
3344 };
3345
3346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3349 arg2 = (int) SWIG_AsInt(obj1);
3350 if (PyErr_Occurred()) SWIG_fail;
3351 {
3352 PyThreadState* __tstate = wxPyBeginAllowThreads();
3353 (arg1)->SetDepth(arg2);
3354
3355 wxPyEndAllowThreads(__tstate);
3356 if (PyErr_Occurred()) SWIG_fail;
3357 }
3358 Py_INCREF(Py_None); resultobj = Py_None;
3359 return resultobj;
3360 fail:
3361 return NULL;
3362}
3363
3364
3365static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3366 PyObject *resultobj;
3367 wxBitmap *arg1 = (wxBitmap *) 0 ;
3368 wxSize *arg2 = 0 ;
3369 wxSize temp2 ;
3370 PyObject * obj0 = 0 ;
3371 PyObject * obj1 = 0 ;
3372 char *kwnames[] = {
3373 (char *) "self",(char *) "size", NULL
3374 };
3375
3376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3379 {
3380 arg2 = &temp2;
3381 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3382 }
3383 {
3384 PyThreadState* __tstate = wxPyBeginAllowThreads();
3385 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3386
3387 wxPyEndAllowThreads(__tstate);
3388 if (PyErr_Occurred()) SWIG_fail;
3389 }
3390 Py_INCREF(Py_None); resultobj = Py_None;
3391 return resultobj;
3392 fail:
3393 return NULL;
3394}
3395
3396
3397static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3398 PyObject *resultobj;
3399 wxBitmap *arg1 = (wxBitmap *) 0 ;
3400 wxBitmap *arg2 = (wxBitmap *) 0 ;
3401 bool result;
3402 PyObject * obj0 = 0 ;
3403 PyObject * obj1 = 0 ;
3404 char *kwnames[] = {
3405 (char *) "self",(char *) "other", NULL
3406 };
3407
3408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3411 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3412 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3413 {
3414 PyThreadState* __tstate = wxPyBeginAllowThreads();
3415 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3416
3417 wxPyEndAllowThreads(__tstate);
3418 if (PyErr_Occurred()) SWIG_fail;
3419 }
3420 {
3421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3422 }
3423 return resultobj;
3424 fail:
3425 return NULL;
3426}
3427
3428
3429static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3430 PyObject *resultobj;
3431 wxBitmap *arg1 = (wxBitmap *) 0 ;
3432 wxBitmap *arg2 = (wxBitmap *) 0 ;
3433 bool result;
3434 PyObject * obj0 = 0 ;
3435 PyObject * obj1 = 0 ;
3436 char *kwnames[] = {
3437 (char *) "self",(char *) "other", NULL
3438 };
3439
3440 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3441 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3442 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3443 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3444 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3448
3449 wxPyEndAllowThreads(__tstate);
3450 if (PyErr_Occurred()) SWIG_fail;
3451 }
3452 {
3453 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3454 }
3455 return resultobj;
3456 fail:
3457 return NULL;
3458}
3459
3460
3461static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3462 PyObject *obj;
3463 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3464 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3465 Py_INCREF(obj);
3466 return Py_BuildValue((char *)"");
3467}
3468static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3469 PyObject *resultobj;
3470 wxBitmap *arg1 = 0 ;
3471 wxColour const &arg2_defvalue = wxNullColour ;
3472 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3473 wxMask *result;
3474 wxColour temp2 ;
3475 PyObject * obj0 = 0 ;
3476 PyObject * obj1 = 0 ;
3477 char *kwnames[] = {
3478 (char *) "bitmap",(char *) "colour", NULL
3479 };
3480
3481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3483 SWIG_POINTER_EXCEPTION | 0)) == -1)
3484 SWIG_fail;
3485 if (arg1 == NULL) {
3486 PyErr_SetString(PyExc_TypeError,"null reference");
3487 SWIG_fail;
3488 }
3489 if (obj1) {
3490 {
3491 arg2 = &temp2;
3492 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3493 }
3494 }
3495 {
0439c23b 3496 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3497 PyThreadState* __tstate = wxPyBeginAllowThreads();
3498 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3499
3500 wxPyEndAllowThreads(__tstate);
110da5b0 3501 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3502 }
3503 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3504 return resultobj;
3505 fail:
3506 return NULL;
3507}
3508
3509
3510static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3511 PyObject *obj;
3512 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3513 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3514 Py_INCREF(obj);
3515 return Py_BuildValue((char *)"");
3516}
3517static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3518 PyObject *resultobj;
3519 wxString *arg1 = 0 ;
3520 int arg2 ;
3521 int arg3 = (int) -1 ;
3522 int arg4 = (int) -1 ;
3523 wxIcon *result;
3524 bool temp1 = False ;
3525 PyObject * obj0 = 0 ;
3526 PyObject * obj1 = 0 ;
3527 PyObject * obj2 = 0 ;
3528 PyObject * obj3 = 0 ;
3529 char *kwnames[] = {
3530 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3531 };
3532
3533 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3534 {
3535 arg1 = wxString_in_helper(obj0);
3536 if (arg1 == NULL) SWIG_fail;
3537 temp1 = True;
3538 }
3539 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 if (obj2) {
3542 arg3 = (int) SWIG_AsInt(obj2);
3543 if (PyErr_Occurred()) SWIG_fail;
3544 }
3545 if (obj3) {
3546 arg4 = (int) SWIG_AsInt(obj3);
3547 if (PyErr_Occurred()) SWIG_fail;
3548 }
3549 {
0439c23b 3550 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3551 PyThreadState* __tstate = wxPyBeginAllowThreads();
3552 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3553
3554 wxPyEndAllowThreads(__tstate);
110da5b0 3555 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3556 }
3557 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3558 {
3559 if (temp1)
3560 delete arg1;
3561 }
3562 return resultobj;
3563 fail:
3564 {
3565 if (temp1)
3566 delete arg1;
3567 }
3568 return NULL;
3569}
3570
3571
3572static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3573 PyObject *resultobj;
3574 wxIcon *arg1 = (wxIcon *) 0 ;
3575 PyObject * obj0 = 0 ;
3576 char *kwnames[] = {
3577 (char *) "self", NULL
3578 };
3579
3580 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3581 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3582 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3583 {
3584 PyThreadState* __tstate = wxPyBeginAllowThreads();
3585 delete arg1;
3586
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 Py_INCREF(Py_None); resultobj = Py_None;
3591 return resultobj;
3592 fail:
3593 return NULL;
3594}
3595
3596
3597static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3598 PyObject *resultobj;
3599 wxIcon *result;
3600 char *kwnames[] = {
3601 NULL
3602 };
3603
3604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3605 {
0439c23b 3606 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3607 PyThreadState* __tstate = wxPyBeginAllowThreads();
3608 result = (wxIcon *)new wxIcon();
3609
3610 wxPyEndAllowThreads(__tstate);
110da5b0 3611 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3612 }
3613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3614 return resultobj;
3615 fail:
3616 return NULL;
3617}
3618
3619
3620static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3621 PyObject *resultobj;
3622 wxIconLocation *arg1 = 0 ;
3623 wxIcon *result;
3624 PyObject * obj0 = 0 ;
3625 char *kwnames[] = {
3626 (char *) "loc", NULL
3627 };
3628
3629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3631 SWIG_POINTER_EXCEPTION | 0)) == -1)
3632 SWIG_fail;
3633 if (arg1 == NULL) {
3634 PyErr_SetString(PyExc_TypeError,"null reference");
3635 SWIG_fail;
3636 }
3637 {
0439c23b 3638 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3639 PyThreadState* __tstate = wxPyBeginAllowThreads();
3640 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3641
3642 wxPyEndAllowThreads(__tstate);
110da5b0 3643 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3644 }
3645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3646 return resultobj;
3647 fail:
3648 return NULL;
3649}
3650
3651
3652static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3653 PyObject *resultobj;
3654 wxBitmap *arg1 = 0 ;
3655 wxIcon *result;
3656 PyObject * obj0 = 0 ;
3657 char *kwnames[] = {
3658 (char *) "bmp", NULL
3659 };
3660
3661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3663 SWIG_POINTER_EXCEPTION | 0)) == -1)
3664 SWIG_fail;
3665 if (arg1 == NULL) {
3666 PyErr_SetString(PyExc_TypeError,"null reference");
3667 SWIG_fail;
3668 }
3669 {
0439c23b 3670 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3671 PyThreadState* __tstate = wxPyBeginAllowThreads();
3672 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3673
3674 wxPyEndAllowThreads(__tstate);
110da5b0 3675 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3676 }
3677 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3678 return resultobj;
3679 fail:
3680 return NULL;
3681}
3682
3683
3684static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3685 PyObject *resultobj;
3686 PyObject *arg1 = (PyObject *) 0 ;
3687 wxIcon *result;
3688 PyObject * obj0 = 0 ;
3689 char *kwnames[] = {
3690 (char *) "listOfStrings", NULL
3691 };
3692
3693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3694 arg1 = obj0;
3695 {
0439c23b 3696 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3697 PyThreadState* __tstate = wxPyBeginAllowThreads();
3698 result = (wxIcon *)new_wxIcon(arg1);
3699
3700 wxPyEndAllowThreads(__tstate);
110da5b0 3701 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3702 }
3703 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3704 return resultobj;
3705 fail:
3706 return NULL;
3707}
3708
3709
3710static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3711 PyObject *resultobj;
3712 wxIcon *arg1 = (wxIcon *) 0 ;
3713 bool result;
3714 PyObject * obj0 = 0 ;
3715 char *kwnames[] = {
3716 (char *) "self", NULL
3717 };
3718
3719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3722 {
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = (bool)(arg1)->Ok();
3725
3726 wxPyEndAllowThreads(__tstate);
3727 if (PyErr_Occurred()) SWIG_fail;
3728 }
3729 {
3730 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3731 }
3732 return resultobj;
3733 fail:
3734 return NULL;
3735}
3736
3737
3738static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3739 PyObject *resultobj;
3740 wxIcon *arg1 = (wxIcon *) 0 ;
3741 int result;
3742 PyObject * obj0 = 0 ;
3743 char *kwnames[] = {
3744 (char *) "self", NULL
3745 };
3746
3747 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3748 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3749 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3750 {
3751 PyThreadState* __tstate = wxPyBeginAllowThreads();
3752 result = (int)(arg1)->GetWidth();
3753
3754 wxPyEndAllowThreads(__tstate);
3755 if (PyErr_Occurred()) SWIG_fail;
3756 }
3757 resultobj = SWIG_FromInt((int)result);
3758 return resultobj;
3759 fail:
3760 return NULL;
3761}
3762
3763
3764static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3765 PyObject *resultobj;
3766 wxIcon *arg1 = (wxIcon *) 0 ;
3767 int result;
3768 PyObject * obj0 = 0 ;
3769 char *kwnames[] = {
3770 (char *) "self", NULL
3771 };
3772
3773 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3774 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3775 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3776 {
3777 PyThreadState* __tstate = wxPyBeginAllowThreads();
3778 result = (int)(arg1)->GetHeight();
3779
3780 wxPyEndAllowThreads(__tstate);
3781 if (PyErr_Occurred()) SWIG_fail;
3782 }
3783 resultobj = SWIG_FromInt((int)result);
3784 return resultobj;
3785 fail:
3786 return NULL;
3787}
3788
3789
3790static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3791 PyObject *resultobj;
3792 wxIcon *arg1 = (wxIcon *) 0 ;
3793 int result;
3794 PyObject * obj0 = 0 ;
3795 char *kwnames[] = {
3796 (char *) "self", NULL
3797 };
3798
3799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3802 {
3803 PyThreadState* __tstate = wxPyBeginAllowThreads();
3804 result = (int)(arg1)->GetDepth();
3805
3806 wxPyEndAllowThreads(__tstate);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 resultobj = SWIG_FromInt((int)result);
3810 return resultobj;
3811 fail:
3812 return NULL;
3813}
3814
3815
3816static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3817 PyObject *resultobj;
3818 wxIcon *arg1 = (wxIcon *) 0 ;
3819 int arg2 ;
3820 PyObject * obj0 = 0 ;
3821 PyObject * obj1 = 0 ;
3822 char *kwnames[] = {
3823 (char *) "self",(char *) "w", NULL
3824 };
3825
3826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3829 arg2 = (int) SWIG_AsInt(obj1);
3830 if (PyErr_Occurred()) SWIG_fail;
3831 {
3832 PyThreadState* __tstate = wxPyBeginAllowThreads();
3833 (arg1)->SetWidth(arg2);
3834
3835 wxPyEndAllowThreads(__tstate);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 }
3838 Py_INCREF(Py_None); resultobj = Py_None;
3839 return resultobj;
3840 fail:
3841 return NULL;
3842}
3843
3844
3845static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3846 PyObject *resultobj;
3847 wxIcon *arg1 = (wxIcon *) 0 ;
3848 int arg2 ;
3849 PyObject * obj0 = 0 ;
3850 PyObject * obj1 = 0 ;
3851 char *kwnames[] = {
3852 (char *) "self",(char *) "h", NULL
3853 };
3854
3855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3858 arg2 = (int) SWIG_AsInt(obj1);
3859 if (PyErr_Occurred()) SWIG_fail;
3860 {
3861 PyThreadState* __tstate = wxPyBeginAllowThreads();
3862 (arg1)->SetHeight(arg2);
3863
3864 wxPyEndAllowThreads(__tstate);
3865 if (PyErr_Occurred()) SWIG_fail;
3866 }
3867 Py_INCREF(Py_None); resultobj = Py_None;
3868 return resultobj;
3869 fail:
3870 return NULL;
3871}
3872
3873
3874static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3875 PyObject *resultobj;
3876 wxIcon *arg1 = (wxIcon *) 0 ;
3877 int arg2 ;
3878 PyObject * obj0 = 0 ;
3879 PyObject * obj1 = 0 ;
3880 char *kwnames[] = {
3881 (char *) "self",(char *) "d", NULL
3882 };
3883
3884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3887 arg2 = (int) SWIG_AsInt(obj1);
3888 if (PyErr_Occurred()) SWIG_fail;
3889 {
3890 PyThreadState* __tstate = wxPyBeginAllowThreads();
3891 (arg1)->SetDepth(arg2);
3892
3893 wxPyEndAllowThreads(__tstate);
3894 if (PyErr_Occurred()) SWIG_fail;
3895 }
3896 Py_INCREF(Py_None); resultobj = Py_None;
3897 return resultobj;
3898 fail:
3899 return NULL;
3900}
3901
3902
3903static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3904 PyObject *resultobj;
3905 wxIcon *arg1 = (wxIcon *) 0 ;
3906 wxBitmap *arg2 = 0 ;
3907 PyObject * obj0 = 0 ;
3908 PyObject * obj1 = 0 ;
3909 char *kwnames[] = {
3910 (char *) "self",(char *) "bmp", NULL
3911 };
3912
3913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3916 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3917 SWIG_POINTER_EXCEPTION | 0)) == -1)
3918 SWIG_fail;
3919 if (arg2 == NULL) {
3920 PyErr_SetString(PyExc_TypeError,"null reference");
3921 SWIG_fail;
3922 }
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3926
3927 wxPyEndAllowThreads(__tstate);
3928 if (PyErr_Occurred()) SWIG_fail;
3929 }
3930 Py_INCREF(Py_None); resultobj = Py_None;
3931 return resultobj;
3932 fail:
3933 return NULL;
3934}
3935
3936
3937static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3938 PyObject *obj;
3939 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3940 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3941 Py_INCREF(obj);
3942 return Py_BuildValue((char *)"");
3943}
3944static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3945 PyObject *resultobj;
3946 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3947 int arg2 = (int) 0 ;
3948 wxIconLocation *result;
3949 bool temp1 = False ;
3950 PyObject * obj0 = 0 ;
3951 PyObject * obj1 = 0 ;
3952 char *kwnames[] = {
3953 (char *) "filename",(char *) "num", NULL
3954 };
3955
3956 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3957 if (obj0) {
3958 {
3959 arg1 = wxString_in_helper(obj0);
3960 if (arg1 == NULL) SWIG_fail;
3961 temp1 = True;
3962 }
3963 }
3964 if (obj1) {
3965 arg2 = (int) SWIG_AsInt(obj1);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 {
3969 PyThreadState* __tstate = wxPyBeginAllowThreads();
3970 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3971
3972 wxPyEndAllowThreads(__tstate);
3973 if (PyErr_Occurred()) SWIG_fail;
3974 }
3975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3976 {
3977 if (temp1)
3978 delete arg1;
3979 }
3980 return resultobj;
3981 fail:
3982 {
3983 if (temp1)
3984 delete arg1;
3985 }
3986 return NULL;
3987}
3988
3989
3990static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3991 PyObject *resultobj;
3992 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3993 PyObject * obj0 = 0 ;
3994 char *kwnames[] = {
3995 (char *) "self", NULL
3996 };
3997
3998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4001 {
4002 PyThreadState* __tstate = wxPyBeginAllowThreads();
4003 delete arg1;
4004
4005 wxPyEndAllowThreads(__tstate);
4006 if (PyErr_Occurred()) SWIG_fail;
4007 }
4008 Py_INCREF(Py_None); resultobj = Py_None;
4009 return resultobj;
4010 fail:
4011 return NULL;
4012}
4013
4014
4015static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4016 PyObject *resultobj;
4017 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4018 bool result;
4019 PyObject * obj0 = 0 ;
4020 char *kwnames[] = {
4021 (char *) "self", NULL
4022 };
4023
4024 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4025 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4026 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4030
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 {
4035 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4036 }
4037 return resultobj;
4038 fail:
4039 return NULL;
4040}
4041
4042
4043static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4044 PyObject *resultobj;
4045 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4046 wxString *arg2 = 0 ;
4047 bool temp2 = False ;
4048 PyObject * obj0 = 0 ;
4049 PyObject * obj1 = 0 ;
4050 char *kwnames[] = {
4051 (char *) "self",(char *) "filename", NULL
4052 };
4053
4054 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4055 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4057 {
4058 arg2 = wxString_in_helper(obj1);
4059 if (arg2 == NULL) SWIG_fail;
4060 temp2 = True;
4061 }
4062 {
4063 PyThreadState* __tstate = wxPyBeginAllowThreads();
4064 (arg1)->SetFileName((wxString const &)*arg2);
4065
4066 wxPyEndAllowThreads(__tstate);
4067 if (PyErr_Occurred()) SWIG_fail;
4068 }
4069 Py_INCREF(Py_None); resultobj = Py_None;
4070 {
4071 if (temp2)
4072 delete arg2;
4073 }
4074 return resultobj;
4075 fail:
4076 {
4077 if (temp2)
4078 delete arg2;
4079 }
4080 return NULL;
4081}
4082
4083
4084static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4085 PyObject *resultobj;
4086 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4087 wxString *result;
4088 PyObject * obj0 = 0 ;
4089 char *kwnames[] = {
4090 (char *) "self", NULL
4091 };
4092
4093 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4094 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4095 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4096 {
4097 PyThreadState* __tstate = wxPyBeginAllowThreads();
4098 {
4099 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4100 result = (wxString *) &_result_ref;
4101 }
4102
4103 wxPyEndAllowThreads(__tstate);
4104 if (PyErr_Occurred()) SWIG_fail;
4105 }
4106 {
4107#if wxUSE_UNICODE
4108 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4109#else
4110 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4111#endif
4112 }
4113 return resultobj;
4114 fail:
4115 return NULL;
4116}
4117
4118
4119static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4120 PyObject *resultobj;
4121 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4122 int arg2 ;
4123 PyObject * obj0 = 0 ;
4124 PyObject * obj1 = 0 ;
4125 char *kwnames[] = {
4126 (char *) "self",(char *) "num", NULL
4127 };
4128
4129 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4130 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4131 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4132 arg2 = (int) SWIG_AsInt(obj1);
4133 if (PyErr_Occurred()) SWIG_fail;
4134 {
4135 PyThreadState* __tstate = wxPyBeginAllowThreads();
4136 wxIconLocation_SetIndex(arg1,arg2);
4137
4138 wxPyEndAllowThreads(__tstate);
4139 if (PyErr_Occurred()) SWIG_fail;
4140 }
4141 Py_INCREF(Py_None); resultobj = Py_None;
4142 return resultobj;
4143 fail:
4144 return NULL;
4145}
4146
4147
4148static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4149 PyObject *resultobj;
4150 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4151 int result;
4152 PyObject * obj0 = 0 ;
4153 char *kwnames[] = {
4154 (char *) "self", NULL
4155 };
4156
4157 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4158 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4159 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4160 {
4161 PyThreadState* __tstate = wxPyBeginAllowThreads();
4162 result = (int)wxIconLocation_GetIndex(arg1);
4163
4164 wxPyEndAllowThreads(__tstate);
4165 if (PyErr_Occurred()) SWIG_fail;
4166 }
4167 resultobj = SWIG_FromInt((int)result);
4168 return resultobj;
4169 fail:
4170 return NULL;
4171}
4172
4173
4174static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4175 PyObject *obj;
4176 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4177 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4178 Py_INCREF(obj);
4179 return Py_BuildValue((char *)"");
4180}
4181static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4182 PyObject *resultobj;
4183 wxIconBundle *result;
4184 char *kwnames[] = {
4185 NULL
4186 };
4187
4188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 result = (wxIconBundle *)new wxIconBundle();
4192
4193 wxPyEndAllowThreads(__tstate);
4194 if (PyErr_Occurred()) SWIG_fail;
4195 }
4196 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4197 return resultobj;
4198 fail:
4199 return NULL;
4200}
4201
4202
4203static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4204 PyObject *resultobj;
4205 wxString *arg1 = 0 ;
4206 long arg2 ;
4207 wxIconBundle *result;
4208 bool temp1 = False ;
4209 PyObject * obj0 = 0 ;
4210 PyObject * obj1 = 0 ;
4211 char *kwnames[] = {
4212 (char *) "file",(char *) "type", NULL
4213 };
4214
4215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4216 {
4217 arg1 = wxString_in_helper(obj0);
4218 if (arg1 == NULL) SWIG_fail;
4219 temp1 = True;
4220 }
4221 arg2 = (long) SWIG_AsLong(obj1);
4222 if (PyErr_Occurred()) SWIG_fail;
4223 {
4224 PyThreadState* __tstate = wxPyBeginAllowThreads();
4225 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4226
4227 wxPyEndAllowThreads(__tstate);
4228 if (PyErr_Occurred()) SWIG_fail;
4229 }
4230 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4231 {
4232 if (temp1)
4233 delete arg1;
4234 }
4235 return resultobj;
4236 fail:
4237 {
4238 if (temp1)
4239 delete arg1;
4240 }
4241 return NULL;
4242}
4243
4244
4245static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4246 PyObject *resultobj;
4247 wxIcon *arg1 = 0 ;
4248 wxIconBundle *result;
4249 PyObject * obj0 = 0 ;
4250 char *kwnames[] = {
4251 (char *) "icon", NULL
4252 };
4253
4254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4256 SWIG_POINTER_EXCEPTION | 0)) == -1)
4257 SWIG_fail;
4258 if (arg1 == NULL) {
4259 PyErr_SetString(PyExc_TypeError,"null reference");
4260 SWIG_fail;
4261 }
4262 {
4263 PyThreadState* __tstate = wxPyBeginAllowThreads();
4264 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4265
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4270 return resultobj;
4271 fail:
4272 return NULL;
4273}
4274
4275
4276static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4277 PyObject *resultobj;
4278 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4279 PyObject * obj0 = 0 ;
4280 char *kwnames[] = {
4281 (char *) "self", NULL
4282 };
4283
4284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4287 {
4288 PyThreadState* __tstate = wxPyBeginAllowThreads();
4289 delete arg1;
4290
4291 wxPyEndAllowThreads(__tstate);
4292 if (PyErr_Occurred()) SWIG_fail;
4293 }
4294 Py_INCREF(Py_None); resultobj = Py_None;
4295 return resultobj;
4296 fail:
4297 return NULL;
4298}
4299
4300
4301static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4302 PyObject *resultobj;
4303 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4304 wxIcon *arg2 = 0 ;
4305 PyObject * obj0 = 0 ;
4306 PyObject * obj1 = 0 ;
4307 char *kwnames[] = {
4308 (char *) "self",(char *) "icon", NULL
4309 };
4310
4311 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4312 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4313 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4314 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4315 SWIG_POINTER_EXCEPTION | 0)) == -1)
4316 SWIG_fail;
4317 if (arg2 == NULL) {
4318 PyErr_SetString(PyExc_TypeError,"null reference");
4319 SWIG_fail;
4320 }
4321 {
4322 PyThreadState* __tstate = wxPyBeginAllowThreads();
4323 (arg1)->AddIcon((wxIcon const &)*arg2);
4324
4325 wxPyEndAllowThreads(__tstate);
4326 if (PyErr_Occurred()) SWIG_fail;
4327 }
4328 Py_INCREF(Py_None); resultobj = Py_None;
4329 return resultobj;
4330 fail:
4331 return NULL;
4332}
4333
4334
4335static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4336 PyObject *resultobj;
4337 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4338 wxString *arg2 = 0 ;
4339 long arg3 ;
4340 bool temp2 = False ;
4341 PyObject * obj0 = 0 ;
4342 PyObject * obj1 = 0 ;
4343 PyObject * obj2 = 0 ;
4344 char *kwnames[] = {
4345 (char *) "self",(char *) "file",(char *) "type", NULL
4346 };
4347
4348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4351 {
4352 arg2 = wxString_in_helper(obj1);
4353 if (arg2 == NULL) SWIG_fail;
4354 temp2 = True;
4355 }
4356 arg3 = (long) SWIG_AsLong(obj2);
4357 if (PyErr_Occurred()) SWIG_fail;
4358 {
4359 PyThreadState* __tstate = wxPyBeginAllowThreads();
4360 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4361
4362 wxPyEndAllowThreads(__tstate);
4363 if (PyErr_Occurred()) SWIG_fail;
4364 }
4365 Py_INCREF(Py_None); resultobj = Py_None;
4366 {
4367 if (temp2)
4368 delete arg2;
4369 }
4370 return resultobj;
4371 fail:
4372 {
4373 if (temp2)
4374 delete arg2;
4375 }
4376 return NULL;
4377}
4378
4379
4380static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4381 PyObject *resultobj;
4382 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4383 wxSize *arg2 = 0 ;
4384 wxIcon *result;
4385 wxSize temp2 ;
4386 PyObject * obj0 = 0 ;
4387 PyObject * obj1 = 0 ;
4388 char *kwnames[] = {
4389 (char *) "self",(char *) "size", NULL
4390 };
4391
4392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4395 {
4396 arg2 = &temp2;
4397 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4398 }
4399 {
4400 PyThreadState* __tstate = wxPyBeginAllowThreads();
4401 {
4402 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4403 result = (wxIcon *) &_result_ref;
4404 }
4405
4406 wxPyEndAllowThreads(__tstate);
4407 if (PyErr_Occurred()) SWIG_fail;
4408 }
4409 {
4410 wxIcon* resultptr = new wxIcon(*result);
4411 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4412 }
4413 return resultobj;
4414 fail:
4415 return NULL;
4416}
4417
4418
4419static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4420 PyObject *obj;
4421 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4422 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4423 Py_INCREF(obj);
4424 return Py_BuildValue((char *)"");
4425}
4426static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj;
4428 wxString *arg1 = (wxString *) 0 ;
4429 long arg2 ;
4430 int arg3 = (int) 0 ;
4431 int arg4 = (int) 0 ;
4432 wxCursor *result;
4433 bool temp1 = False ;
4434 PyObject * obj0 = 0 ;
4435 PyObject * obj1 = 0 ;
4436 PyObject * obj2 = 0 ;
4437 PyObject * obj3 = 0 ;
4438 char *kwnames[] = {
4439 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4440 };
4441
4442 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4443 {
4444 arg1 = wxString_in_helper(obj0);
4445 if (arg1 == NULL) SWIG_fail;
4446 temp1 = True;
4447 }
4448 arg2 = (long) SWIG_AsLong(obj1);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 if (obj2) {
4451 arg3 = (int) SWIG_AsInt(obj2);
4452 if (PyErr_Occurred()) SWIG_fail;
4453 }
4454 if (obj3) {
4455 arg4 = (int) SWIG_AsInt(obj3);
4456 if (PyErr_Occurred()) SWIG_fail;
4457 }
4458 {
0439c23b 4459 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4460 PyThreadState* __tstate = wxPyBeginAllowThreads();
4461 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4462
4463 wxPyEndAllowThreads(__tstate);
110da5b0 4464 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4465 }
4466 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4467 {
4468 if (temp1)
4469 delete arg1;
4470 }
4471 return resultobj;
4472 fail:
4473 {
4474 if (temp1)
4475 delete arg1;
4476 }
4477 return NULL;
4478}
4479
4480
4481static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4482 PyObject *resultobj;
4483 wxCursor *arg1 = (wxCursor *) 0 ;
4484 PyObject * obj0 = 0 ;
4485 char *kwnames[] = {
4486 (char *) "self", NULL
4487 };
4488
4489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4492 {
4493 PyThreadState* __tstate = wxPyBeginAllowThreads();
4494 delete arg1;
4495
4496 wxPyEndAllowThreads(__tstate);
4497 if (PyErr_Occurred()) SWIG_fail;
4498 }
4499 Py_INCREF(Py_None); resultobj = Py_None;
4500 return resultobj;
4501 fail:
4502 return NULL;
4503}
4504
4505
4506static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4507 PyObject *resultobj;
4508 int arg1 ;
4509 wxCursor *result;
4510 PyObject * obj0 = 0 ;
4511 char *kwnames[] = {
4512 (char *) "id", NULL
4513 };
4514
4515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4516 arg1 = (int) SWIG_AsInt(obj0);
4517 if (PyErr_Occurred()) SWIG_fail;
4518 {
0439c23b 4519 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4520 PyThreadState* __tstate = wxPyBeginAllowThreads();
4521 result = (wxCursor *)new wxCursor(arg1);
4522
4523 wxPyEndAllowThreads(__tstate);
110da5b0 4524 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4525 }
4526 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4527 return resultobj;
4528 fail:
4529 return NULL;
4530}
4531
4532
4533static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4534 PyObject *resultobj;
4535 wxImage *arg1 = 0 ;
4536 wxCursor *result;
4537 PyObject * obj0 = 0 ;
4538 char *kwnames[] = {
4539 (char *) "image", NULL
4540 };
4541
4542 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4543 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4544 SWIG_POINTER_EXCEPTION | 0)) == -1)
4545 SWIG_fail;
4546 if (arg1 == NULL) {
4547 PyErr_SetString(PyExc_TypeError,"null reference");
4548 SWIG_fail;
4549 }
4550 {
0439c23b 4551 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4552 PyThreadState* __tstate = wxPyBeginAllowThreads();
4553 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4554
4555 wxPyEndAllowThreads(__tstate);
110da5b0 4556 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4557 }
4558 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4559 return resultobj;
4560 fail:
4561 return NULL;
4562}
4563
4564
4565static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4566 PyObject *resultobj;
4567 wxCursor *arg1 = (wxCursor *) 0 ;
4568 bool result;
4569 PyObject * obj0 = 0 ;
4570 char *kwnames[] = {
4571 (char *) "self", NULL
4572 };
4573
4574 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4575 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4576 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 result = (bool)(arg1)->Ok();
4580
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 {
4585 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4586 }
4587 return resultobj;
4588 fail:
4589 return NULL;
4590}
4591
4592
4593static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4594 PyObject *obj;
4595 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4596 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4597 Py_INCREF(obj);
4598 return Py_BuildValue((char *)"");
4599}
4600static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj;
4602 int arg1 = (int) 0 ;
4603 int arg2 = (int) 0 ;
4604 int arg3 = (int) 0 ;
4605 int arg4 = (int) 0 ;
4606 wxRegion *result;
4607 PyObject * obj0 = 0 ;
4608 PyObject * obj1 = 0 ;
4609 PyObject * obj2 = 0 ;
4610 PyObject * obj3 = 0 ;
4611 char *kwnames[] = {
4612 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4613 };
4614
4615 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4616 if (obj0) {
4617 arg1 = (int) SWIG_AsInt(obj0);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 if (obj1) {
4621 arg2 = (int) SWIG_AsInt(obj1);
4622 if (PyErr_Occurred()) SWIG_fail;
4623 }
4624 if (obj2) {
4625 arg3 = (int) SWIG_AsInt(obj2);
4626 if (PyErr_Occurred()) SWIG_fail;
4627 }
4628 if (obj3) {
4629 arg4 = (int) SWIG_AsInt(obj3);
4630 if (PyErr_Occurred()) SWIG_fail;
4631 }
4632 {
0439c23b 4633 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4634 PyThreadState* __tstate = wxPyBeginAllowThreads();
4635 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4636
4637 wxPyEndAllowThreads(__tstate);
110da5b0 4638 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4639 }
4640 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4641 return resultobj;
4642 fail:
4643 return NULL;
4644}
4645
4646
4647static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4648 PyObject *resultobj;
4649 wxBitmap *arg1 = 0 ;
d07096ad
RD
4650 wxRegion *result;
4651 PyObject * obj0 = 0 ;
4652 char *kwnames[] = {
4653 (char *) "bmp", NULL
4654 };
4655
4656 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4657 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4658 SWIG_POINTER_EXCEPTION | 0)) == -1)
4659 SWIG_fail;
4660 if (arg1 == NULL) {
4661 PyErr_SetString(PyExc_TypeError,"null reference");
4662 SWIG_fail;
4663 }
4664 {
4665 if (!wxPyCheckForApp()) SWIG_fail;
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4668
4669 wxPyEndAllowThreads(__tstate);
110da5b0 4670 if (PyErr_Occurred()) SWIG_fail;
d07096ad
RD
4671 }
4672 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4673 return resultobj;
4674 fail:
4675 return NULL;
4676}
4677
4678
4679static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4680 PyObject *resultobj;
4681 wxBitmap *arg1 = 0 ;
4682 wxColour *arg2 = 0 ;
d55e5bfc
RD
4683 int arg3 = (int) 0 ;
4684 wxRegion *result;
4685 wxColour temp2 ;
4686 PyObject * obj0 = 0 ;
4687 PyObject * obj1 = 0 ;
4688 PyObject * obj2 = 0 ;
4689 char *kwnames[] = {
4690 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4691 };
4692
d07096ad 4693 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
4694 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4695 SWIG_POINTER_EXCEPTION | 0)) == -1)
4696 SWIG_fail;
4697 if (arg1 == NULL) {
4698 PyErr_SetString(PyExc_TypeError,"null reference");
4699 SWIG_fail;
4700 }
d07096ad
RD
4701 {
4702 arg2 = &temp2;
4703 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
4704 }
4705 if (obj2) {
4706 arg3 = (int) SWIG_AsInt(obj2);
4707 if (PyErr_Occurred()) SWIG_fail;
4708 }
4709 {
0439c23b 4710 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4711 PyThreadState* __tstate = wxPyBeginAllowThreads();
4712 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4713
4714 wxPyEndAllowThreads(__tstate);
110da5b0 4715 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4716 }
4717 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4718 return resultobj;
4719 fail:
4720 return NULL;
4721}
4722
4723
4724static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4725 PyObject *resultobj;
4726 int arg1 ;
4727 wxPoint *arg2 = (wxPoint *) 0 ;
4728 int arg3 = (int) wxWINDING_RULE ;
4729 wxRegion *result;
4730 PyObject * obj0 = 0 ;
4731 PyObject * obj1 = 0 ;
4732 char *kwnames[] = {
4733 (char *) "points",(char *) "fillStyle", NULL
4734 };
4735
4736 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4737 {
4738 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4739 if (arg2 == NULL) SWIG_fail;
4740 }
4741 if (obj1) {
4742 arg3 = (int) SWIG_AsInt(obj1);
4743 if (PyErr_Occurred()) SWIG_fail;
4744 }
4745 {
0439c23b 4746 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4747 PyThreadState* __tstate = wxPyBeginAllowThreads();
4748 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4749
4750 wxPyEndAllowThreads(__tstate);
110da5b0 4751 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4752 }
4753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4754 {
4755 if (arg2) delete [] arg2;
4756 }
4757 return resultobj;
4758 fail:
4759 {
4760 if (arg2) delete [] arg2;
4761 }
4762 return NULL;
4763}
4764
4765
4766static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4767 PyObject *resultobj;
4768 wxRegion *arg1 = (wxRegion *) 0 ;
4769 PyObject * obj0 = 0 ;
4770 char *kwnames[] = {
4771 (char *) "self", NULL
4772 };
4773
4774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4777 {
4778 PyThreadState* __tstate = wxPyBeginAllowThreads();
4779 delete arg1;
4780
4781 wxPyEndAllowThreads(__tstate);
4782 if (PyErr_Occurred()) SWIG_fail;
4783 }
4784 Py_INCREF(Py_None); resultobj = Py_None;
4785 return resultobj;
4786 fail:
4787 return NULL;
4788}
4789
4790
4791static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4792 PyObject *resultobj;
4793 wxRegion *arg1 = (wxRegion *) 0 ;
4794 PyObject * obj0 = 0 ;
4795 char *kwnames[] = {
4796 (char *) "self", NULL
4797 };
4798
4799 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4800 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4801 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4802 {
4803 PyThreadState* __tstate = wxPyBeginAllowThreads();
4804 (arg1)->Clear();
4805
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 Py_INCREF(Py_None); resultobj = Py_None;
4810 return resultobj;
4811 fail:
4812 return NULL;
4813}
4814
4815
4816static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4817 PyObject *resultobj;
4818 wxRegion *arg1 = (wxRegion *) 0 ;
4819 int arg2 ;
4820 int arg3 ;
4821 int result;
4822 PyObject * obj0 = 0 ;
4823 PyObject * obj1 = 0 ;
4824 PyObject * obj2 = 0 ;
4825 char *kwnames[] = {
4826 (char *) "self",(char *) "x",(char *) "y", NULL
4827 };
4828
4829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4832 arg2 = (int) SWIG_AsInt(obj1);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 arg3 = (int) SWIG_AsInt(obj2);
4835 if (PyErr_Occurred()) SWIG_fail;
4836 {
4837 PyThreadState* __tstate = wxPyBeginAllowThreads();
4838 result = (int)(arg1)->Contains(arg2,arg3);
4839
4840 wxPyEndAllowThreads(__tstate);
4841 if (PyErr_Occurred()) SWIG_fail;
4842 }
4843 resultobj = SWIG_FromInt((int)result);
4844 return resultobj;
4845 fail:
4846 return NULL;
4847}
4848
4849
4850static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4851 PyObject *resultobj;
4852 wxRegion *arg1 = (wxRegion *) 0 ;
4853 wxPoint *arg2 = 0 ;
4854 int result;
4855 wxPoint temp2 ;
4856 PyObject * obj0 = 0 ;
4857 PyObject * obj1 = 0 ;
4858 char *kwnames[] = {
4859 (char *) "self",(char *) "pt", NULL
4860 };
4861
4862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4865 {
4866 arg2 = &temp2;
4867 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4868 }
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4872
4873 wxPyEndAllowThreads(__tstate);
4874 if (PyErr_Occurred()) SWIG_fail;
4875 }
4876 resultobj = SWIG_FromInt((int)result);
4877 return resultobj;
4878 fail:
4879 return NULL;
4880}
4881
4882
4883static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4884 PyObject *resultobj;
4885 wxRegion *arg1 = (wxRegion *) 0 ;
4886 wxRect *arg2 = 0 ;
4887 int result;
4888 wxRect temp2 ;
4889 PyObject * obj0 = 0 ;
4890 PyObject * obj1 = 0 ;
4891 char *kwnames[] = {
4892 (char *) "self",(char *) "rect", NULL
4893 };
4894
4895 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4896 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4897 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4898 {
4899 arg2 = &temp2;
4900 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4901 }
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4905
4906 wxPyEndAllowThreads(__tstate);
4907 if (PyErr_Occurred()) SWIG_fail;
4908 }
4909 resultobj = SWIG_FromInt((int)result);
4910 return resultobj;
4911 fail:
4912 return NULL;
4913}
4914
4915
4916static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4917 PyObject *resultobj;
4918 wxRegion *arg1 = (wxRegion *) 0 ;
4919 int arg2 ;
4920 int arg3 ;
4921 int arg4 ;
4922 int arg5 ;
4923 int result;
4924 PyObject * obj0 = 0 ;
4925 PyObject * obj1 = 0 ;
4926 PyObject * obj2 = 0 ;
4927 PyObject * obj3 = 0 ;
4928 PyObject * obj4 = 0 ;
4929 char *kwnames[] = {
4930 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4931 };
4932
4933 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4934 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4935 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4936 arg2 = (int) SWIG_AsInt(obj1);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 arg3 = (int) SWIG_AsInt(obj2);
4939 if (PyErr_Occurred()) SWIG_fail;
4940 arg4 = (int) SWIG_AsInt(obj3);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 arg5 = (int) SWIG_AsInt(obj4);
4943 if (PyErr_Occurred()) SWIG_fail;
4944 {
4945 PyThreadState* __tstate = wxPyBeginAllowThreads();
4946 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4947
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 resultobj = SWIG_FromInt((int)result);
4952 return resultobj;
4953 fail:
4954 return NULL;
4955}
4956
4957
4958static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4959 PyObject *resultobj;
4960 wxRegion *arg1 = (wxRegion *) 0 ;
4961 wxRect result;
4962 PyObject * obj0 = 0 ;
4963 char *kwnames[] = {
4964 (char *) "self", NULL
4965 };
4966
4967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4970 {
4971 PyThreadState* __tstate = wxPyBeginAllowThreads();
4972 result = (arg1)->GetBox();
4973
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 }
4977 {
4978 wxRect * resultptr;
4979 resultptr = new wxRect((wxRect &) result);
4980 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4981 }
4982 return resultobj;
4983 fail:
4984 return NULL;
4985}
4986
4987
4988static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4989 PyObject *resultobj;
4990 wxRegion *arg1 = (wxRegion *) 0 ;
4991 int arg2 ;
4992 int arg3 ;
4993 int arg4 ;
4994 int arg5 ;
4995 bool result;
4996 PyObject * obj0 = 0 ;
4997 PyObject * obj1 = 0 ;
4998 PyObject * obj2 = 0 ;
4999 PyObject * obj3 = 0 ;
5000 PyObject * obj4 = 0 ;
5001 char *kwnames[] = {
5002 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5003 };
5004
5005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5008 arg2 = (int) SWIG_AsInt(obj1);
5009 if (PyErr_Occurred()) SWIG_fail;
5010 arg3 = (int) SWIG_AsInt(obj2);
5011 if (PyErr_Occurred()) SWIG_fail;
5012 arg4 = (int) SWIG_AsInt(obj3);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 arg5 = (int) SWIG_AsInt(obj4);
5015 if (PyErr_Occurred()) SWIG_fail;
5016 {
5017 PyThreadState* __tstate = wxPyBeginAllowThreads();
5018 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5019
5020 wxPyEndAllowThreads(__tstate);
5021 if (PyErr_Occurred()) SWIG_fail;
5022 }
5023 {
5024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5025 }
5026 return resultobj;
5027 fail:
5028 return NULL;
5029}
5030
5031
5032static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5033 PyObject *resultobj;
5034 wxRegion *arg1 = (wxRegion *) 0 ;
5035 wxRect *arg2 = 0 ;
5036 bool result;
5037 wxRect temp2 ;
5038 PyObject * obj0 = 0 ;
5039 PyObject * obj1 = 0 ;
5040 char *kwnames[] = {
5041 (char *) "self",(char *) "rect", NULL
5042 };
5043
5044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5047 {
5048 arg2 = &temp2;
5049 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5050 }
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5054
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 {
5059 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5060 }
5061 return resultobj;
5062 fail:
5063 return NULL;
5064}
5065
5066
5067static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5068 PyObject *resultobj;
5069 wxRegion *arg1 = (wxRegion *) 0 ;
5070 wxRegion *arg2 = 0 ;
5071 bool result;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 char *kwnames[] = {
5075 (char *) "self",(char *) "region", NULL
5076 };
5077
5078 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5079 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5080 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5081 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5082 SWIG_POINTER_EXCEPTION | 0)) == -1)
5083 SWIG_fail;
5084 if (arg2 == NULL) {
5085 PyErr_SetString(PyExc_TypeError,"null reference");
5086 SWIG_fail;
5087 }
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5091
5092 wxPyEndAllowThreads(__tstate);
5093 if (PyErr_Occurred()) SWIG_fail;
5094 }
5095 {
5096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5097 }
5098 return resultobj;
5099 fail:
5100 return NULL;
5101}
5102
5103
5104static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5105 PyObject *resultobj;
5106 wxRegion *arg1 = (wxRegion *) 0 ;
5107 bool result;
5108 PyObject * obj0 = 0 ;
5109 char *kwnames[] = {
5110 (char *) "self", NULL
5111 };
5112
5113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5114 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5115 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5116 {
5117 PyThreadState* __tstate = wxPyBeginAllowThreads();
5118 result = (bool)(arg1)->IsEmpty();
5119
5120 wxPyEndAllowThreads(__tstate);
5121 if (PyErr_Occurred()) SWIG_fail;
5122 }
5123 {
5124 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5125 }
5126 return resultobj;
5127 fail:
5128 return NULL;
5129}
5130
5131
5132static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5133 PyObject *resultobj;
5134 wxRegion *arg1 = (wxRegion *) 0 ;
5135 int arg2 ;
5136 int arg3 ;
5137 int arg4 ;
5138 int arg5 ;
5139 bool result;
5140 PyObject * obj0 = 0 ;
5141 PyObject * obj1 = 0 ;
5142 PyObject * obj2 = 0 ;
5143 PyObject * obj3 = 0 ;
5144 PyObject * obj4 = 0 ;
5145 char *kwnames[] = {
5146 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5147 };
5148
5149 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5150 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5151 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5152 arg2 = (int) SWIG_AsInt(obj1);
5153 if (PyErr_Occurred()) SWIG_fail;
5154 arg3 = (int) SWIG_AsInt(obj2);
5155 if (PyErr_Occurred()) SWIG_fail;
5156 arg4 = (int) SWIG_AsInt(obj3);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 arg5 = (int) SWIG_AsInt(obj4);
5159 if (PyErr_Occurred()) SWIG_fail;
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5163
5164 wxPyEndAllowThreads(__tstate);
5165 if (PyErr_Occurred()) SWIG_fail;
5166 }
5167 {
5168 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5169 }
5170 return resultobj;
5171 fail:
5172 return NULL;
5173}
5174
5175
5176static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5177 PyObject *resultobj;
5178 wxRegion *arg1 = (wxRegion *) 0 ;
5179 wxRect *arg2 = 0 ;
5180 bool result;
5181 wxRect temp2 ;
5182 PyObject * obj0 = 0 ;
5183 PyObject * obj1 = 0 ;
5184 char *kwnames[] = {
5185 (char *) "self",(char *) "rect", NULL
5186 };
5187
5188 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5189 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5190 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5191 {
5192 arg2 = &temp2;
5193 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5194 }
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5198
5199 wxPyEndAllowThreads(__tstate);
5200 if (PyErr_Occurred()) SWIG_fail;
5201 }
5202 {
5203 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5204 }
5205 return resultobj;
5206 fail:
5207 return NULL;
5208}
5209
5210
5211static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5212 PyObject *resultobj;
5213 wxRegion *arg1 = (wxRegion *) 0 ;
5214 wxRegion *arg2 = 0 ;
5215 bool result;
5216 PyObject * obj0 = 0 ;
5217 PyObject * obj1 = 0 ;
5218 char *kwnames[] = {
5219 (char *) "self",(char *) "region", NULL
5220 };
5221
5222 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5223 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5224 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5225 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5226 SWIG_POINTER_EXCEPTION | 0)) == -1)
5227 SWIG_fail;
5228 if (arg2 == NULL) {
5229 PyErr_SetString(PyExc_TypeError,"null reference");
5230 SWIG_fail;
5231 }
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5235
5236 wxPyEndAllowThreads(__tstate);
5237 if (PyErr_Occurred()) SWIG_fail;
5238 }
5239 {
5240 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5241 }
5242 return resultobj;
5243 fail:
5244 return NULL;
5245}
5246
5247
5248static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5249 PyObject *resultobj;
5250 wxRegion *arg1 = (wxRegion *) 0 ;
5251 int arg2 ;
5252 int arg3 ;
5253 int arg4 ;
5254 int arg5 ;
5255 bool result;
5256 PyObject * obj0 = 0 ;
5257 PyObject * obj1 = 0 ;
5258 PyObject * obj2 = 0 ;
5259 PyObject * obj3 = 0 ;
5260 PyObject * obj4 = 0 ;
5261 char *kwnames[] = {
5262 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5263 };
5264
5265 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5266 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5267 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5268 arg2 = (int) SWIG_AsInt(obj1);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 arg3 = (int) SWIG_AsInt(obj2);
5271 if (PyErr_Occurred()) SWIG_fail;
5272 arg4 = (int) SWIG_AsInt(obj3);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 arg5 = (int) SWIG_AsInt(obj4);
5275 if (PyErr_Occurred()) SWIG_fail;
5276 {
5277 PyThreadState* __tstate = wxPyBeginAllowThreads();
5278 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5279
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 {
5284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5285 }
5286 return resultobj;
5287 fail:
5288 return NULL;
5289}
5290
5291
5292static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5293 PyObject *resultobj;
5294 wxRegion *arg1 = (wxRegion *) 0 ;
5295 wxRect *arg2 = 0 ;
5296 bool result;
5297 wxRect temp2 ;
5298 PyObject * obj0 = 0 ;
5299 PyObject * obj1 = 0 ;
5300 char *kwnames[] = {
5301 (char *) "self",(char *) "rect", NULL
5302 };
5303
5304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5307 {
5308 arg2 = &temp2;
5309 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5310 }
5311 {
5312 PyThreadState* __tstate = wxPyBeginAllowThreads();
5313 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5314
5315 wxPyEndAllowThreads(__tstate);
5316 if (PyErr_Occurred()) SWIG_fail;
5317 }
5318 {
5319 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5320 }
5321 return resultobj;
5322 fail:
5323 return NULL;
5324}
5325
5326
5327static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj;
5329 wxRegion *arg1 = (wxRegion *) 0 ;
5330 wxRegion *arg2 = 0 ;
5331 bool result;
5332 PyObject * obj0 = 0 ;
5333 PyObject * obj1 = 0 ;
5334 char *kwnames[] = {
5335 (char *) "self",(char *) "region", NULL
5336 };
5337
5338 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5339 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5340 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5341 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5342 SWIG_POINTER_EXCEPTION | 0)) == -1)
5343 SWIG_fail;
5344 if (arg2 == NULL) {
5345 PyErr_SetString(PyExc_TypeError,"null reference");
5346 SWIG_fail;
5347 }
5348 {
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5351
5352 wxPyEndAllowThreads(__tstate);
5353 if (PyErr_Occurred()) SWIG_fail;
5354 }
5355 {
5356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5357 }
5358 return resultobj;
5359 fail:
5360 return NULL;
5361}
5362
5363
5364static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5365 PyObject *resultobj;
5366 wxRegion *arg1 = (wxRegion *) 0 ;
5367 int arg2 ;
5368 int arg3 ;
5369 int arg4 ;
5370 int arg5 ;
5371 bool result;
5372 PyObject * obj0 = 0 ;
5373 PyObject * obj1 = 0 ;
5374 PyObject * obj2 = 0 ;
5375 PyObject * obj3 = 0 ;
5376 PyObject * obj4 = 0 ;
5377 char *kwnames[] = {
5378 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5379 };
5380
5381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5384 arg2 = (int) SWIG_AsInt(obj1);
5385 if (PyErr_Occurred()) SWIG_fail;
5386 arg3 = (int) SWIG_AsInt(obj2);
5387 if (PyErr_Occurred()) SWIG_fail;
5388 arg4 = (int) SWIG_AsInt(obj3);
5389 if (PyErr_Occurred()) SWIG_fail;
5390 arg5 = (int) SWIG_AsInt(obj4);
5391 if (PyErr_Occurred()) SWIG_fail;
5392 {
5393 PyThreadState* __tstate = wxPyBeginAllowThreads();
5394 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5395
5396 wxPyEndAllowThreads(__tstate);
5397 if (PyErr_Occurred()) SWIG_fail;
5398 }
5399 {
5400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5401 }
5402 return resultobj;
5403 fail:
5404 return NULL;
5405}
5406
5407
5408static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5409 PyObject *resultobj;
5410 wxRegion *arg1 = (wxRegion *) 0 ;
5411 wxRect *arg2 = 0 ;
5412 bool result;
5413 wxRect temp2 ;
5414 PyObject * obj0 = 0 ;
5415 PyObject * obj1 = 0 ;
5416 char *kwnames[] = {
5417 (char *) "self",(char *) "rect", NULL
5418 };
5419
5420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5423 {
5424 arg2 = &temp2;
5425 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5426 }
5427 {
5428 PyThreadState* __tstate = wxPyBeginAllowThreads();
5429 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5430
5431 wxPyEndAllowThreads(__tstate);
5432 if (PyErr_Occurred()) SWIG_fail;
5433 }
5434 {
5435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5436 }
5437 return resultobj;
5438 fail:
5439 return NULL;
5440}
5441
5442
5443static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5444 PyObject *resultobj;
5445 wxRegion *arg1 = (wxRegion *) 0 ;
5446 wxRegion *arg2 = 0 ;
5447 bool result;
5448 PyObject * obj0 = 0 ;
5449 PyObject * obj1 = 0 ;
5450 char *kwnames[] = {
5451 (char *) "self",(char *) "region", NULL
5452 };
5453
5454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5457 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5458 SWIG_POINTER_EXCEPTION | 0)) == -1)
5459 SWIG_fail;
5460 if (arg2 == NULL) {
5461 PyErr_SetString(PyExc_TypeError,"null reference");
5462 SWIG_fail;
5463 }
5464 {
5465 PyThreadState* __tstate = wxPyBeginAllowThreads();
5466 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5467
5468 wxPyEndAllowThreads(__tstate);
5469 if (PyErr_Occurred()) SWIG_fail;
5470 }
5471 {
5472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5473 }
5474 return resultobj;
5475 fail:
5476 return NULL;
5477}
5478
5479
5480static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5481 PyObject *resultobj;
5482 wxRegion *arg1 = (wxRegion *) 0 ;
5483 SwigValueWrapper< wxBitmap > result;
5484 PyObject * obj0 = 0 ;
5485 char *kwnames[] = {
5486 (char *) "self", NULL
5487 };
5488
5489 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5490 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5491 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5492 {
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = (arg1)->ConvertToBitmap();
5495
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 {
5500 wxBitmap * resultptr;
5501 resultptr = new wxBitmap((wxBitmap &) result);
5502 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5503 }
5504 return resultobj;
5505 fail:
5506 return NULL;
5507}
5508
5509
5510static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5511 PyObject *resultobj;
5512 wxRegion *arg1 = (wxRegion *) 0 ;
5513 wxBitmap *arg2 = 0 ;
d07096ad
RD
5514 bool result;
5515 PyObject * obj0 = 0 ;
5516 PyObject * obj1 = 0 ;
5517 char *kwnames[] = {
5518 (char *) "self",(char *) "bmp", NULL
5519 };
5520
5521 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5522 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5523 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5524 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5525 SWIG_POINTER_EXCEPTION | 0)) == -1)
5526 SWIG_fail;
5527 if (arg2 == NULL) {
5528 PyErr_SetString(PyExc_TypeError,"null reference");
5529 SWIG_fail;
5530 }
5531 {
5532 PyThreadState* __tstate = wxPyBeginAllowThreads();
5533 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5534
5535 wxPyEndAllowThreads(__tstate);
5536 if (PyErr_Occurred()) SWIG_fail;
5537 }
5538 {
5539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5540 }
5541 return resultobj;
5542 fail:
5543 return NULL;
5544}
5545
5546
5547static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5548 PyObject *resultobj;
5549 wxRegion *arg1 = (wxRegion *) 0 ;
5550 wxBitmap *arg2 = 0 ;
5551 wxColour *arg3 = 0 ;
d55e5bfc
RD
5552 int arg4 = (int) 0 ;
5553 bool result;
5554 wxColour temp3 ;
5555 PyObject * obj0 = 0 ;
5556 PyObject * obj1 = 0 ;
5557 PyObject * obj2 = 0 ;
5558 PyObject * obj3 = 0 ;
5559 char *kwnames[] = {
5560 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5561 };
5562
d07096ad 5563 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
5564 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5565 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5566 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5567 SWIG_POINTER_EXCEPTION | 0)) == -1)
5568 SWIG_fail;
5569 if (arg2 == NULL) {
5570 PyErr_SetString(PyExc_TypeError,"null reference");
5571 SWIG_fail;
5572 }
d07096ad
RD
5573 {
5574 arg3 = &temp3;
5575 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
5576 }
5577 if (obj3) {
5578 arg4 = (int) SWIG_AsInt(obj3);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 {
5582 PyThreadState* __tstate = wxPyBeginAllowThreads();
5583 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5584
5585 wxPyEndAllowThreads(__tstate);
5586 if (PyErr_Occurred()) SWIG_fail;
5587 }
5588 {
5589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5590 }
5591 return resultobj;
5592 fail:
5593 return NULL;
5594}
5595
5596
5597static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5598 PyObject *obj;
5599 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5600 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5601 Py_INCREF(obj);
5602 return Py_BuildValue((char *)"");
5603}
5604static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5605 PyObject *resultobj;
5606 wxRegion *arg1 = 0 ;
5607 wxRegionIterator *result;
5608 PyObject * obj0 = 0 ;
5609 char *kwnames[] = {
5610 (char *) "region", NULL
5611 };
5612
5613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5615 SWIG_POINTER_EXCEPTION | 0)) == -1)
5616 SWIG_fail;
5617 if (arg1 == NULL) {
5618 PyErr_SetString(PyExc_TypeError,"null reference");
5619 SWIG_fail;
5620 }
5621 {
0439c23b 5622 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5623 PyThreadState* __tstate = wxPyBeginAllowThreads();
5624 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5625
5626 wxPyEndAllowThreads(__tstate);
110da5b0 5627 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5628 }
5629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5630 return resultobj;
5631 fail:
5632 return NULL;
5633}
5634
5635
5636static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5637 PyObject *resultobj;
5638 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5639 PyObject * obj0 = 0 ;
5640 char *kwnames[] = {
5641 (char *) "self", NULL
5642 };
5643
5644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5645 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5646 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5647 {
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 delete arg1;
5650
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
5654 Py_INCREF(Py_None); resultobj = Py_None;
5655 return resultobj;
5656 fail:
5657 return NULL;
5658}
5659
5660
5661static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5662 PyObject *resultobj;
5663 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5664 int result;
5665 PyObject * obj0 = 0 ;
5666 char *kwnames[] = {
5667 (char *) "self", NULL
5668 };
5669
5670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5671 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5672 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5673 {
5674 PyThreadState* __tstate = wxPyBeginAllowThreads();
5675 result = (int)(arg1)->GetX();
5676
5677 wxPyEndAllowThreads(__tstate);
5678 if (PyErr_Occurred()) SWIG_fail;
5679 }
5680 resultobj = SWIG_FromInt((int)result);
5681 return resultobj;
5682 fail:
5683 return NULL;
5684}
5685
5686
5687static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5688 PyObject *resultobj;
5689 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5690 int result;
5691 PyObject * obj0 = 0 ;
5692 char *kwnames[] = {
5693 (char *) "self", NULL
5694 };
5695
5696 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5697 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5698 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5699 {
5700 PyThreadState* __tstate = wxPyBeginAllowThreads();
5701 result = (int)(arg1)->GetY();
5702
5703 wxPyEndAllowThreads(__tstate);
5704 if (PyErr_Occurred()) SWIG_fail;
5705 }
5706 resultobj = SWIG_FromInt((int)result);
5707 return resultobj;
5708 fail:
5709 return NULL;
5710}
5711
5712
5713static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5714 PyObject *resultobj;
5715 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5716 int result;
5717 PyObject * obj0 = 0 ;
5718 char *kwnames[] = {
5719 (char *) "self", NULL
5720 };
5721
5722 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5723 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5724 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5725 {
5726 PyThreadState* __tstate = wxPyBeginAllowThreads();
5727 result = (int)(arg1)->GetW();
5728
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 resultobj = SWIG_FromInt((int)result);
5733 return resultobj;
5734 fail:
5735 return NULL;
5736}
5737
5738
5739static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5740 PyObject *resultobj;
5741 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5742 int result;
5743 PyObject * obj0 = 0 ;
5744 char *kwnames[] = {
5745 (char *) "self", NULL
5746 };
5747
5748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5751 {
5752 PyThreadState* __tstate = wxPyBeginAllowThreads();
5753 result = (int)(arg1)->GetWidth();
5754
5755 wxPyEndAllowThreads(__tstate);
5756 if (PyErr_Occurred()) SWIG_fail;
5757 }
5758 resultobj = SWIG_FromInt((int)result);
5759 return resultobj;
5760 fail:
5761 return NULL;
5762}
5763
5764
5765static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5766 PyObject *resultobj;
5767 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5768 int result;
5769 PyObject * obj0 = 0 ;
5770 char *kwnames[] = {
5771 (char *) "self", NULL
5772 };
5773
5774 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5775 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5776 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5777 {
5778 PyThreadState* __tstate = wxPyBeginAllowThreads();
5779 result = (int)(arg1)->GetH();
5780
5781 wxPyEndAllowThreads(__tstate);
5782 if (PyErr_Occurred()) SWIG_fail;
5783 }
5784 resultobj = SWIG_FromInt((int)result);
5785 return resultobj;
5786 fail:
5787 return NULL;
5788}
5789
5790
5791static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5792 PyObject *resultobj;
5793 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5794 int result;
5795 PyObject * obj0 = 0 ;
5796 char *kwnames[] = {
5797 (char *) "self", NULL
5798 };
5799
5800 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5801 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5802 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5803 {
5804 PyThreadState* __tstate = wxPyBeginAllowThreads();
5805 result = (int)(arg1)->GetHeight();
5806
5807 wxPyEndAllowThreads(__tstate);
5808 if (PyErr_Occurred()) SWIG_fail;
5809 }
5810 resultobj = SWIG_FromInt((int)result);
5811 return resultobj;
5812 fail:
5813 return NULL;
5814}
5815
5816
5817static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5818 PyObject *resultobj;
5819 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5820 wxRect result;
5821 PyObject * obj0 = 0 ;
5822 char *kwnames[] = {
5823 (char *) "self", NULL
5824 };
5825
5826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5829 {
5830 PyThreadState* __tstate = wxPyBeginAllowThreads();
5831 result = (arg1)->GetRect();
5832
5833 wxPyEndAllowThreads(__tstate);
5834 if (PyErr_Occurred()) SWIG_fail;
5835 }
5836 {
5837 wxRect * resultptr;
5838 resultptr = new wxRect((wxRect &) result);
5839 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5840 }
5841 return resultobj;
5842 fail:
5843 return NULL;
5844}
5845
5846
5847static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5848 PyObject *resultobj;
5849 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5850 bool result;
5851 PyObject * obj0 = 0 ;
5852 char *kwnames[] = {
5853 (char *) "self", NULL
5854 };
5855
5856 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5857 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5858 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5859 {
5860 PyThreadState* __tstate = wxPyBeginAllowThreads();
5861 result = (bool)(arg1)->HaveRects();
5862
5863 wxPyEndAllowThreads(__tstate);
5864 if (PyErr_Occurred()) SWIG_fail;
5865 }
5866 {
5867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5868 }
5869 return resultobj;
5870 fail:
5871 return NULL;
5872}
5873
5874
5875static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5876 PyObject *resultobj;
5877 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5878 PyObject * obj0 = 0 ;
5879 char *kwnames[] = {
5880 (char *) "self", NULL
5881 };
5882
5883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5886 {
5887 PyThreadState* __tstate = wxPyBeginAllowThreads();
5888 (arg1)->Reset();
5889
5890 wxPyEndAllowThreads(__tstate);
5891 if (PyErr_Occurred()) SWIG_fail;
5892 }
5893 Py_INCREF(Py_None); resultobj = Py_None;
5894 return resultobj;
5895 fail:
5896 return NULL;
5897}
5898
5899
5900static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5901 PyObject *resultobj;
5902 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5903 PyObject * obj0 = 0 ;
5904 char *kwnames[] = {
5905 (char *) "self", NULL
5906 };
5907
5908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5911 {
5912 PyThreadState* __tstate = wxPyBeginAllowThreads();
5913 wxRegionIterator_Next(arg1);
5914
5915 wxPyEndAllowThreads(__tstate);
5916 if (PyErr_Occurred()) SWIG_fail;
5917 }
5918 Py_INCREF(Py_None); resultobj = Py_None;
5919 return resultobj;
5920 fail:
5921 return NULL;
5922}
5923
5924
5925static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5926 PyObject *resultobj;
5927 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5928 bool result;
5929 PyObject * obj0 = 0 ;
5930 char *kwnames[] = {
5931 (char *) "self", NULL
5932 };
5933
5934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5937 {
5938 PyThreadState* __tstate = wxPyBeginAllowThreads();
5939 result = (bool)wxRegionIterator___nonzero__(arg1);
5940
5941 wxPyEndAllowThreads(__tstate);
5942 if (PyErr_Occurred()) SWIG_fail;
5943 }
5944 {
5945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5946 }
5947 return resultobj;
5948 fail:
5949 return NULL;
5950}
5951
5952
5953static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5954 PyObject *obj;
5955 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5956 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5957 Py_INCREF(obj);
5958 return Py_BuildValue((char *)"");
5959}
5960static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5961 PyObject *resultobj;
5962 wxNativeFontInfo *result;
5963 char *kwnames[] = {
5964 NULL
5965 };
5966
5967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5968 {
5969 PyThreadState* __tstate = wxPyBeginAllowThreads();
5970 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5971
5972 wxPyEndAllowThreads(__tstate);
5973 if (PyErr_Occurred()) SWIG_fail;
5974 }
5975 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5976 return resultobj;
5977 fail:
5978 return NULL;
5979}
5980
5981
5982static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5983 PyObject *resultobj;
5984 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5985 PyObject * obj0 = 0 ;
5986 char *kwnames[] = {
5987 (char *) "self", NULL
5988 };
5989
5990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5993 {
5994 PyThreadState* __tstate = wxPyBeginAllowThreads();
5995 delete arg1;
5996
5997 wxPyEndAllowThreads(__tstate);
5998 if (PyErr_Occurred()) SWIG_fail;
5999 }
6000 Py_INCREF(Py_None); resultobj = Py_None;
6001 return resultobj;
6002 fail:
6003 return NULL;
6004}
6005
6006
6007static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6008 PyObject *resultobj;
6009 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6010 PyObject * obj0 = 0 ;
6011 char *kwnames[] = {
6012 (char *) "self", NULL
6013 };
6014
6015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6018 {
6019 PyThreadState* __tstate = wxPyBeginAllowThreads();
6020 (arg1)->Init();
6021
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 Py_INCREF(Py_None); resultobj = Py_None;
6026 return resultobj;
6027 fail:
6028 return NULL;
6029}
6030
6031
6032static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6033 PyObject *resultobj;
6034 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6035 wxFont *arg2 = 0 ;
6036 PyObject * obj0 = 0 ;
6037 PyObject * obj1 = 0 ;
6038 char *kwnames[] = {
6039 (char *) "self",(char *) "font", NULL
6040 };
6041
6042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6045 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6046 SWIG_POINTER_EXCEPTION | 0)) == -1)
6047 SWIG_fail;
6048 if (arg2 == NULL) {
6049 PyErr_SetString(PyExc_TypeError,"null reference");
6050 SWIG_fail;
6051 }
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->InitFromFont((wxFont const &)*arg2);
6055
6056 wxPyEndAllowThreads(__tstate);
6057 if (PyErr_Occurred()) SWIG_fail;
6058 }
6059 Py_INCREF(Py_None); resultobj = Py_None;
6060 return resultobj;
6061 fail:
6062 return NULL;
6063}
6064
6065
6066static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6067 PyObject *resultobj;
6068 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6069 int result;
6070 PyObject * obj0 = 0 ;
6071 char *kwnames[] = {
6072 (char *) "self", NULL
6073 };
6074
6075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6078 {
6079 PyThreadState* __tstate = wxPyBeginAllowThreads();
6080 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6081
6082 wxPyEndAllowThreads(__tstate);
6083 if (PyErr_Occurred()) SWIG_fail;
6084 }
6085 resultobj = SWIG_FromInt((int)result);
6086 return resultobj;
6087 fail:
6088 return NULL;
6089}
6090
6091
6092static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6093 PyObject *resultobj;
6094 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6095 int result;
6096 PyObject * obj0 = 0 ;
6097 char *kwnames[] = {
6098 (char *) "self", NULL
6099 };
6100
6101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6104 {
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6107
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 resultobj = SWIG_FromInt((int)result);
6112 return resultobj;
6113 fail:
6114 return NULL;
6115}
6116
6117
6118static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6119 PyObject *resultobj;
6120 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6121 int result;
6122 PyObject * obj0 = 0 ;
6123 char *kwnames[] = {
6124 (char *) "self", NULL
6125 };
6126
6127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6128 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6129 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6130 {
6131 PyThreadState* __tstate = wxPyBeginAllowThreads();
6132 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6133
6134 wxPyEndAllowThreads(__tstate);
6135 if (PyErr_Occurred()) SWIG_fail;
6136 }
6137 resultobj = SWIG_FromInt((int)result);
6138 return resultobj;
6139 fail:
6140 return NULL;
6141}
6142
6143
6144static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6145 PyObject *resultobj;
6146 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6147 bool result;
6148 PyObject * obj0 = 0 ;
6149 char *kwnames[] = {
6150 (char *) "self", NULL
6151 };
6152
6153 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6154 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6155 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6156 {
6157 PyThreadState* __tstate = wxPyBeginAllowThreads();
6158 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6159
6160 wxPyEndAllowThreads(__tstate);
6161 if (PyErr_Occurred()) SWIG_fail;
6162 }
6163 {
6164 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6165 }
6166 return resultobj;
6167 fail:
6168 return NULL;
6169}
6170
6171
6172static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6173 PyObject *resultobj;
6174 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6175 wxString result;
6176 PyObject * obj0 = 0 ;
6177 char *kwnames[] = {
6178 (char *) "self", NULL
6179 };
6180
6181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6187
6188 wxPyEndAllowThreads(__tstate);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 {
6192#if wxUSE_UNICODE
6193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6194#else
6195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6196#endif
6197 }
6198 return resultobj;
6199 fail:
6200 return NULL;
6201}
6202
6203
6204static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6205 PyObject *resultobj;
6206 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6207 int result;
6208 PyObject * obj0 = 0 ;
6209 char *kwnames[] = {
6210 (char *) "self", NULL
6211 };
6212
6213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6219
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_FromInt((int)result);
6224 return resultobj;
6225 fail:
6226 return NULL;
6227}
6228
6229
6230static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj;
6232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6233 int result;
6234 PyObject * obj0 = 0 ;
6235 char *kwnames[] = {
6236 (char *) "self", NULL
6237 };
6238
6239 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6240 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6241 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6242 {
6243 PyThreadState* __tstate = wxPyBeginAllowThreads();
6244 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6245
6246 wxPyEndAllowThreads(__tstate);
6247 if (PyErr_Occurred()) SWIG_fail;
6248 }
6249 resultobj = SWIG_FromInt((int)result);
6250 return resultobj;
6251 fail:
6252 return NULL;
6253}
6254
6255
6256static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6257 PyObject *resultobj;
6258 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6259 int arg2 ;
6260 PyObject * obj0 = 0 ;
6261 PyObject * obj1 = 0 ;
6262 char *kwnames[] = {
6263 (char *) "self",(char *) "pointsize", NULL
6264 };
6265
6266 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6267 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6268 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6269 arg2 = (int) SWIG_AsInt(obj1);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 {
6272 PyThreadState* __tstate = wxPyBeginAllowThreads();
6273 (arg1)->SetPointSize(arg2);
6274
6275 wxPyEndAllowThreads(__tstate);
6276 if (PyErr_Occurred()) SWIG_fail;
6277 }
6278 Py_INCREF(Py_None); resultobj = Py_None;
6279 return resultobj;
6280 fail:
6281 return NULL;
6282}
6283
6284
6285static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6286 PyObject *resultobj;
6287 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6288 int arg2 ;
6289 PyObject * obj0 = 0 ;
6290 PyObject * obj1 = 0 ;
6291 char *kwnames[] = {
6292 (char *) "self",(char *) "style", NULL
6293 };
6294
6295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6298 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 {
6301 PyThreadState* __tstate = wxPyBeginAllowThreads();
6302 (arg1)->SetStyle((wxFontStyle )arg2);
6303
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 Py_INCREF(Py_None); resultobj = Py_None;
6308 return resultobj;
6309 fail:
6310 return NULL;
6311}
6312
6313
6314static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6315 PyObject *resultobj;
6316 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6317 int arg2 ;
6318 PyObject * obj0 = 0 ;
6319 PyObject * obj1 = 0 ;
6320 char *kwnames[] = {
6321 (char *) "self",(char *) "weight", NULL
6322 };
6323
6324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6327 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6328 if (PyErr_Occurred()) SWIG_fail;
6329 {
6330 PyThreadState* __tstate = wxPyBeginAllowThreads();
6331 (arg1)->SetWeight((wxFontWeight )arg2);
6332
6333 wxPyEndAllowThreads(__tstate);
6334 if (PyErr_Occurred()) SWIG_fail;
6335 }
6336 Py_INCREF(Py_None); resultobj = Py_None;
6337 return resultobj;
6338 fail:
6339 return NULL;
6340}
6341
6342
6343static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6344 PyObject *resultobj;
6345 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6346 bool arg2 ;
6347 PyObject * obj0 = 0 ;
6348 PyObject * obj1 = 0 ;
6349 char *kwnames[] = {
6350 (char *) "self",(char *) "underlined", NULL
6351 };
6352
6353 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6354 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6355 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6356 arg2 = (bool) SWIG_AsBool(obj1);
6357 if (PyErr_Occurred()) SWIG_fail;
6358 {
6359 PyThreadState* __tstate = wxPyBeginAllowThreads();
6360 (arg1)->SetUnderlined(arg2);
6361
6362 wxPyEndAllowThreads(__tstate);
6363 if (PyErr_Occurred()) SWIG_fail;
6364 }
6365 Py_INCREF(Py_None); resultobj = Py_None;
6366 return resultobj;
6367 fail:
6368 return NULL;
6369}
6370
6371
6372static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6373 PyObject *resultobj;
6374 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6375 wxString arg2 ;
6376 PyObject * obj0 = 0 ;
6377 PyObject * obj1 = 0 ;
6378 char *kwnames[] = {
6379 (char *) "self",(char *) "facename", NULL
6380 };
6381
6382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6385 {
6386 wxString* sptr = wxString_in_helper(obj1);
6387 if (sptr == NULL) SWIG_fail;
6388 arg2 = *sptr;
6389 delete sptr;
6390 }
6391 {
6392 PyThreadState* __tstate = wxPyBeginAllowThreads();
6393 (arg1)->SetFaceName(arg2);
6394
6395 wxPyEndAllowThreads(__tstate);
6396 if (PyErr_Occurred()) SWIG_fail;
6397 }
6398 Py_INCREF(Py_None); resultobj = Py_None;
6399 return resultobj;
6400 fail:
6401 return NULL;
6402}
6403
6404
6405static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6406 PyObject *resultobj;
6407 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6408 int arg2 ;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 char *kwnames[] = {
6412 (char *) "self",(char *) "family", NULL
6413 };
6414
6415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6418 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6419 if (PyErr_Occurred()) SWIG_fail;
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 (arg1)->SetFamily((wxFontFamily )arg2);
6423
6424 wxPyEndAllowThreads(__tstate);
6425 if (PyErr_Occurred()) SWIG_fail;
6426 }
6427 Py_INCREF(Py_None); resultobj = Py_None;
6428 return resultobj;
6429 fail:
6430 return NULL;
6431}
6432
6433
6434static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6435 PyObject *resultobj;
6436 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6437 int arg2 ;
6438 PyObject * obj0 = 0 ;
6439 PyObject * obj1 = 0 ;
6440 char *kwnames[] = {
6441 (char *) "self",(char *) "encoding", NULL
6442 };
6443
6444 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6445 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6446 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6447 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6448 if (PyErr_Occurred()) SWIG_fail;
6449 {
6450 PyThreadState* __tstate = wxPyBeginAllowThreads();
6451 (arg1)->SetEncoding((wxFontEncoding )arg2);
6452
6453 wxPyEndAllowThreads(__tstate);
6454 if (PyErr_Occurred()) SWIG_fail;
6455 }
6456 Py_INCREF(Py_None); resultobj = Py_None;
6457 return resultobj;
6458 fail:
6459 return NULL;
6460}
6461
6462
6463static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6464 PyObject *resultobj;
6465 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6466 wxString *arg2 = 0 ;
6467 bool result;
6468 bool temp2 = False ;
6469 PyObject * obj0 = 0 ;
6470 PyObject * obj1 = 0 ;
6471 char *kwnames[] = {
6472 (char *) "self",(char *) "s", NULL
6473 };
6474
6475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6478 {
6479 arg2 = wxString_in_helper(obj1);
6480 if (arg2 == NULL) SWIG_fail;
6481 temp2 = True;
6482 }
6483 {
6484 PyThreadState* __tstate = wxPyBeginAllowThreads();
6485 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6486
6487 wxPyEndAllowThreads(__tstate);
6488 if (PyErr_Occurred()) SWIG_fail;
6489 }
6490 {
6491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6492 }
6493 {
6494 if (temp2)
6495 delete arg2;
6496 }
6497 return resultobj;
6498 fail:
6499 {
6500 if (temp2)
6501 delete arg2;
6502 }
6503 return NULL;
6504}
6505
6506
6507static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6508 PyObject *resultobj;
6509 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6510 wxString result;
6511 PyObject * obj0 = 0 ;
6512 char *kwnames[] = {
6513 (char *) "self", NULL
6514 };
6515
6516 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6517 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6518 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6519 {
6520 PyThreadState* __tstate = wxPyBeginAllowThreads();
6521 result = ((wxNativeFontInfo const *)arg1)->ToString();
6522
6523 wxPyEndAllowThreads(__tstate);
6524 if (PyErr_Occurred()) SWIG_fail;
6525 }
6526 {
6527#if wxUSE_UNICODE
6528 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6529#else
6530 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6531#endif
6532 }
6533 return resultobj;
6534 fail:
6535 return NULL;
6536}
6537
6538
6539static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6540 PyObject *resultobj;
6541 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6542 wxString result;
6543 PyObject * obj0 = 0 ;
6544 char *kwnames[] = {
6545 (char *) "self", NULL
6546 };
6547
6548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6549 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6550 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6551 {
6552 PyThreadState* __tstate = wxPyBeginAllowThreads();
6553 result = wxNativeFontInfo___str__(arg1);
6554
6555 wxPyEndAllowThreads(__tstate);
6556 if (PyErr_Occurred()) SWIG_fail;
6557 }
6558 {
6559#if wxUSE_UNICODE
6560 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6561#else
6562 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6563#endif
6564 }
6565 return resultobj;
6566 fail:
6567 return NULL;
6568}
6569
6570
6571static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj;
6573 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6574 wxString *arg2 = 0 ;
6575 bool result;
6576 bool temp2 = False ;
6577 PyObject * obj0 = 0 ;
6578 PyObject * obj1 = 0 ;
6579 char *kwnames[] = {
6580 (char *) "self",(char *) "s", NULL
6581 };
6582
6583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6586 {
6587 arg2 = wxString_in_helper(obj1);
6588 if (arg2 == NULL) SWIG_fail;
6589 temp2 = True;
6590 }
6591 {
6592 PyThreadState* __tstate = wxPyBeginAllowThreads();
6593 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6594
6595 wxPyEndAllowThreads(__tstate);
6596 if (PyErr_Occurred()) SWIG_fail;
6597 }
6598 {
6599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6600 }
6601 {
6602 if (temp2)
6603 delete arg2;
6604 }
6605 return resultobj;
6606 fail:
6607 {
6608 if (temp2)
6609 delete arg2;
6610 }
6611 return NULL;
6612}
6613
6614
6615static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6616 PyObject *resultobj;
6617 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6618 wxString result;
6619 PyObject * obj0 = 0 ;
6620 char *kwnames[] = {
6621 (char *) "self", NULL
6622 };
6623
6624 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6625 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6626 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6627 {
6628 PyThreadState* __tstate = wxPyBeginAllowThreads();
6629 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6630
6631 wxPyEndAllowThreads(__tstate);
6632 if (PyErr_Occurred()) SWIG_fail;
6633 }
6634 {
6635#if wxUSE_UNICODE
6636 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6637#else
6638 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6639#endif
6640 }
6641 return resultobj;
6642 fail:
6643 return NULL;
6644}
6645
6646
6647static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6648 PyObject *obj;
6649 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6650 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6651 Py_INCREF(obj);
6652 return Py_BuildValue((char *)"");
6653}
6654static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6655 PyObject *resultobj;
6656 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6657 wxString *arg2 = (wxString *) 0 ;
6658 bool temp2 = False ;
6659 PyObject * obj0 = 0 ;
6660 PyObject * obj1 = 0 ;
6661 char *kwnames[] = {
6662 (char *) "self",(char *) "facename", NULL
6663 };
6664
6665 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6666 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6667 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6668 {
6669 arg2 = wxString_in_helper(obj1);
6670 if (arg2 == NULL) SWIG_fail;
6671 temp2 = True;
6672 }
6673 if (arg1) (arg1)->facename = *arg2;
6674
6675 Py_INCREF(Py_None); resultobj = Py_None;
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return resultobj;
6681 fail:
6682 {
6683 if (temp2)
6684 delete arg2;
6685 }
6686 return NULL;
6687}
6688
6689
6690static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6691 PyObject *resultobj;
6692 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6693 wxString *result;
6694 PyObject * obj0 = 0 ;
6695 char *kwnames[] = {
6696 (char *) "self", NULL
6697 };
6698
6699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6702 result = (wxString *)& ((arg1)->facename);
6703
6704 {
6705#if wxUSE_UNICODE
6706 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6707#else
6708 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6709#endif
6710 }
6711 return resultobj;
6712 fail:
6713 return NULL;
6714}
6715
6716
6717static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6718 PyObject *resultobj;
6719 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6720 int arg2 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 char *kwnames[] = {
6724 (char *) "self",(char *) "encoding", NULL
6725 };
6726
6727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6730 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6731 if (PyErr_Occurred()) SWIG_fail;
6732 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6733
6734 Py_INCREF(Py_None); resultobj = Py_None;
6735 return resultobj;
6736 fail:
6737 return NULL;
6738}
6739
6740
6741static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6742 PyObject *resultobj;
6743 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6744 int result;
6745 PyObject * obj0 = 0 ;
6746 char *kwnames[] = {
6747 (char *) "self", NULL
6748 };
6749
6750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6753 result = (int) ((arg1)->encoding);
6754
6755 resultobj = SWIG_FromInt((int)result);
6756 return resultobj;
6757 fail:
6758 return NULL;
6759}
6760
6761
6762static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6763 PyObject *resultobj;
6764 wxNativeEncodingInfo *result;
6765 char *kwnames[] = {
6766 NULL
6767 };
6768
6769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6770 {
6771 PyThreadState* __tstate = wxPyBeginAllowThreads();
6772 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6773
6774 wxPyEndAllowThreads(__tstate);
6775 if (PyErr_Occurred()) SWIG_fail;
6776 }
6777 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6778 return resultobj;
6779 fail:
6780 return NULL;
6781}
6782
6783
6784static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6785 PyObject *resultobj;
6786 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6787 PyObject * obj0 = 0 ;
6788 char *kwnames[] = {
6789 (char *) "self", NULL
6790 };
6791
6792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6795 {
6796 PyThreadState* __tstate = wxPyBeginAllowThreads();
6797 delete arg1;
6798
6799 wxPyEndAllowThreads(__tstate);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 Py_INCREF(Py_None); resultobj = Py_None;
6803 return resultobj;
6804 fail:
6805 return NULL;
6806}
6807
6808
6809static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj;
6811 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6812 wxString *arg2 = 0 ;
6813 bool result;
6814 bool temp2 = False ;
6815 PyObject * obj0 = 0 ;
6816 PyObject * obj1 = 0 ;
6817 char *kwnames[] = {
6818 (char *) "self",(char *) "s", NULL
6819 };
6820
6821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6824 {
6825 arg2 = wxString_in_helper(obj1);
6826 if (arg2 == NULL) SWIG_fail;
6827 temp2 = True;
6828 }
6829 {
6830 PyThreadState* __tstate = wxPyBeginAllowThreads();
6831 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6832
6833 wxPyEndAllowThreads(__tstate);
6834 if (PyErr_Occurred()) SWIG_fail;
6835 }
6836 {
6837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6838 }
6839 {
6840 if (temp2)
6841 delete arg2;
6842 }
6843 return resultobj;
6844 fail:
6845 {
6846 if (temp2)
6847 delete arg2;
6848 }
6849 return NULL;
6850}
6851
6852
6853static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6854 PyObject *resultobj;
6855 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6856 wxString result;
6857 PyObject * obj0 = 0 ;
6858 char *kwnames[] = {
6859 (char *) "self", NULL
6860 };
6861
6862 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6863 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6864 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6865 {
6866 PyThreadState* __tstate = wxPyBeginAllowThreads();
6867 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6868
6869 wxPyEndAllowThreads(__tstate);
6870 if (PyErr_Occurred()) SWIG_fail;
6871 }
6872 {
6873#if wxUSE_UNICODE
6874 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6875#else
6876 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6877#endif
6878 }
6879 return resultobj;
6880 fail:
6881 return NULL;
6882}
6883
6884
6885static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6886 PyObject *obj;
6887 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6888 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6889 Py_INCREF(obj);
6890 return Py_BuildValue((char *)"");
6891}
6892static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6893 PyObject *resultobj;
6894 int arg1 ;
6895 wxNativeEncodingInfo *result;
6896 PyObject * obj0 = 0 ;
6897 char *kwnames[] = {
6898 (char *) "encoding", NULL
6899 };
6900
6901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6902 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6903 if (PyErr_Occurred()) SWIG_fail;
6904 {
6905 PyThreadState* __tstate = wxPyBeginAllowThreads();
6906 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6907
6908 wxPyEndAllowThreads(__tstate);
6909 if (PyErr_Occurred()) SWIG_fail;
6910 }
6911 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6912 return resultobj;
6913 fail:
6914 return NULL;
6915}
6916
6917
6918static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6919 PyObject *resultobj;
6920 wxNativeEncodingInfo *arg1 = 0 ;
6921 bool result;
6922 PyObject * obj0 = 0 ;
6923 char *kwnames[] = {
6924 (char *) "info", NULL
6925 };
6926
6927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6929 SWIG_POINTER_EXCEPTION | 0)) == -1)
6930 SWIG_fail;
6931 if (arg1 == NULL) {
6932 PyErr_SetString(PyExc_TypeError,"null reference");
6933 SWIG_fail;
6934 }
6935 {
6936 PyThreadState* __tstate = wxPyBeginAllowThreads();
6937 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6938
6939 wxPyEndAllowThreads(__tstate);
6940 if (PyErr_Occurred()) SWIG_fail;
6941 }
6942 {
6943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6944 }
6945 return resultobj;
6946 fail:
6947 return NULL;
6948}
6949
6950
6951static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6952 PyObject *resultobj;
6953 wxFontMapper *result;
6954 char *kwnames[] = {
6955 NULL
6956 };
6957
6958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6959 {
6960 PyThreadState* __tstate = wxPyBeginAllowThreads();
6961 result = (wxFontMapper *)new wxFontMapper();
6962
6963 wxPyEndAllowThreads(__tstate);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6967 return resultobj;
6968 fail:
6969 return NULL;
6970}
6971
6972
6973static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6974 PyObject *resultobj;
6975 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6976 PyObject * obj0 = 0 ;
6977 char *kwnames[] = {
6978 (char *) "self", NULL
6979 };
6980
6981 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6982 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6983 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6984 {
6985 PyThreadState* __tstate = wxPyBeginAllowThreads();
6986 delete arg1;
6987
6988 wxPyEndAllowThreads(__tstate);
6989 if (PyErr_Occurred()) SWIG_fail;
6990 }
6991 Py_INCREF(Py_None); resultobj = Py_None;
6992 return resultobj;
6993 fail:
6994 return NULL;
6995}
6996
6997
6998static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6999 PyObject *resultobj;
7000 wxFontMapper *result;
7001 char *kwnames[] = {
7002 NULL
7003 };
7004
7005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 result = (wxFontMapper *)wxFontMapper::Get();
7009
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7014 return resultobj;
7015 fail:
7016 return NULL;
7017}
7018
7019
7020static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7021 PyObject *resultobj;
7022 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7023 wxFontMapper *result;
7024 PyObject * obj0 = 0 ;
7025 char *kwnames[] = {
7026 (char *) "mapper", NULL
7027 };
7028
7029 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7030 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7031 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7032 {
7033 PyThreadState* __tstate = wxPyBeginAllowThreads();
7034 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7035
7036 wxPyEndAllowThreads(__tstate);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7040 return resultobj;
7041 fail:
7042 return NULL;
7043}
7044
7045
7046static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj;
7048 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7049 wxString *arg2 = 0 ;
7050 bool arg3 = (bool) True ;
7051 int result;
7052 bool temp2 = False ;
7053 PyObject * obj0 = 0 ;
7054 PyObject * obj1 = 0 ;
7055 PyObject * obj2 = 0 ;
7056 char *kwnames[] = {
7057 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7058 };
7059
7060 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7061 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7062 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7063 {
7064 arg2 = wxString_in_helper(obj1);
7065 if (arg2 == NULL) SWIG_fail;
7066 temp2 = True;
7067 }
7068 if (obj2) {
7069 arg3 = (bool) SWIG_AsBool(obj2);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7075
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_FromInt((int)result);
7080 {
7081 if (temp2)
7082 delete arg2;
7083 }
7084 return resultobj;
7085 fail:
7086 {
7087 if (temp2)
7088 delete arg2;
7089 }
7090 return NULL;
7091}
7092
7093
7094static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7095 PyObject *resultobj;
7096 size_t result;
7097 char *kwnames[] = {
7098 NULL
7099 };
7100
7101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7102 {
7103 PyThreadState* __tstate = wxPyBeginAllowThreads();
7104 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7105
7106 wxPyEndAllowThreads(__tstate);
7107 if (PyErr_Occurred()) SWIG_fail;
7108 }
7109 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7110 return resultobj;
7111 fail:
7112 return NULL;
7113}
7114
7115
7116static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7117 PyObject *resultobj;
7118 size_t arg1 ;
7119 int result;
7120 PyObject * obj0 = 0 ;
7121 char *kwnames[] = {
7122 (char *) "n", NULL
7123 };
7124
7125 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7126 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 {
7129 PyThreadState* __tstate = wxPyBeginAllowThreads();
7130 result = (int)wxFontMapper::GetEncoding(arg1);
7131
7132 wxPyEndAllowThreads(__tstate);
7133 if (PyErr_Occurred()) SWIG_fail;
7134 }
7135 resultobj = SWIG_FromInt((int)result);
7136 return resultobj;
7137 fail:
7138 return NULL;
7139}
7140
7141
7142static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7143 PyObject *resultobj;
7144 int arg1 ;
7145 wxString result;
7146 PyObject * obj0 = 0 ;
7147 char *kwnames[] = {
7148 (char *) "encoding", NULL
7149 };
7150
7151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7152 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 {
7155 PyThreadState* __tstate = wxPyBeginAllowThreads();
7156 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7157
7158 wxPyEndAllowThreads(__tstate);
7159 if (PyErr_Occurred()) SWIG_fail;
7160 }
7161 {
7162#if wxUSE_UNICODE
7163 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7164#else
7165 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7166#endif
7167 }
7168 return resultobj;
7169 fail:
7170 return NULL;
7171}
7172
7173
7174static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7175 PyObject *resultobj;
7176 int arg1 ;
7177 wxString result;
7178 PyObject * obj0 = 0 ;
7179 char *kwnames[] = {
7180 (char *) "encoding", NULL
7181 };
7182
7183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7184 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7185 if (PyErr_Occurred()) SWIG_fail;
7186 {
7187 PyThreadState* __tstate = wxPyBeginAllowThreads();
7188 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7189
7190 wxPyEndAllowThreads(__tstate);
7191 if (PyErr_Occurred()) SWIG_fail;
7192 }
7193 {
7194#if wxUSE_UNICODE
7195 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7196#else
7197 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7198#endif
7199 }
7200 return resultobj;
7201 fail:
7202 return NULL;
7203}
7204
7205
7206static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj;
7208 wxString *arg1 = 0 ;
7209 int result;
7210 bool temp1 = False ;
7211 PyObject * obj0 = 0 ;
7212 char *kwnames[] = {
7213 (char *) "name", NULL
7214 };
7215
7216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7217 {
7218 arg1 = wxString_in_helper(obj0);
7219 if (arg1 == NULL) SWIG_fail;
7220 temp1 = True;
7221 }
7222 {
7223 PyThreadState* __tstate = wxPyBeginAllowThreads();
7224 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7225
7226 wxPyEndAllowThreads(__tstate);
7227 if (PyErr_Occurred()) SWIG_fail;
7228 }
7229 resultobj = SWIG_FromInt((int)result);
7230 {
7231 if (temp1)
7232 delete arg1;
7233 }
7234 return resultobj;
7235 fail:
7236 {
7237 if (temp1)
7238 delete arg1;
7239 }
7240 return NULL;
7241}
7242
7243
7244static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7245 PyObject *resultobj;
7246 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7247 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7248 PyObject * obj0 = 0 ;
7249 PyObject * obj1 = 0 ;
7250 char *kwnames[] = {
7251 (char *) "self",(char *) "config", NULL
7252 };
7253
7254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7257 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7259 {
7260 PyThreadState* __tstate = wxPyBeginAllowThreads();
7261 (arg1)->SetConfig(arg2);
7262
7263 wxPyEndAllowThreads(__tstate);
7264 if (PyErr_Occurred()) SWIG_fail;
7265 }
7266 Py_INCREF(Py_None); resultobj = Py_None;
7267 return resultobj;
7268 fail:
7269 return NULL;
7270}
7271
7272
7273static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7274 PyObject *resultobj;
7275 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7276 wxString *arg2 = 0 ;
7277 bool temp2 = False ;
7278 PyObject * obj0 = 0 ;
7279 PyObject * obj1 = 0 ;
7280 char *kwnames[] = {
7281 (char *) "self",(char *) "prefix", NULL
7282 };
7283
7284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7287 {
7288 arg2 = wxString_in_helper(obj1);
7289 if (arg2 == NULL) SWIG_fail;
7290 temp2 = True;
7291 }
7292 {
7293 PyThreadState* __tstate = wxPyBeginAllowThreads();
7294 (arg1)->SetConfigPath((wxString const &)*arg2);
7295
7296 wxPyEndAllowThreads(__tstate);
7297 if (PyErr_Occurred()) SWIG_fail;
7298 }
7299 Py_INCREF(Py_None); resultobj = Py_None;
7300 {
7301 if (temp2)
7302 delete arg2;
7303 }
7304 return resultobj;
7305 fail:
7306 {
7307 if (temp2)
7308 delete arg2;
7309 }
7310 return NULL;
7311}
7312
7313
7314static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7315 PyObject *resultobj;
7316 wxString result;
7317 char *kwnames[] = {
7318 NULL
7319 };
7320
7321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 result = wxFontMapper::GetDefaultConfigPath();
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 {
7330#if wxUSE_UNICODE
7331 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7332#else
7333 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7334#endif
7335 }
7336 return resultobj;
7337 fail:
7338 return NULL;
7339}
7340
7341
7342static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7343 PyObject *resultobj;
7344 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7345 int arg2 ;
7346 wxString const &arg3_defvalue = wxPyEmptyString ;
7347 wxString *arg3 = (wxString *) &arg3_defvalue ;
7348 bool arg4 = (bool) True ;
7349 PyObject *result;
7350 bool temp3 = False ;
7351 PyObject * obj0 = 0 ;
7352 PyObject * obj1 = 0 ;
7353 PyObject * obj2 = 0 ;
7354 PyObject * obj3 = 0 ;
7355 char *kwnames[] = {
7356 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7357 };
7358
7359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7362 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 if (obj2) {
7365 {
7366 arg3 = wxString_in_helper(obj2);
7367 if (arg3 == NULL) SWIG_fail;
7368 temp3 = True;
7369 }
7370 }
7371 if (obj3) {
7372 arg4 = (bool) SWIG_AsBool(obj3);
7373 if (PyErr_Occurred()) SWIG_fail;
7374 }
7375 {
7376 PyThreadState* __tstate = wxPyBeginAllowThreads();
7377 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7378
7379 wxPyEndAllowThreads(__tstate);
7380 if (PyErr_Occurred()) SWIG_fail;
7381 }
7382 resultobj = result;
7383 {
7384 if (temp3)
7385 delete arg3;
7386 }
7387 return resultobj;
7388 fail:
7389 {
7390 if (temp3)
7391 delete arg3;
7392 }
7393 return NULL;
7394}
7395
7396
7397static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7398 PyObject *resultobj;
7399 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7400 int arg2 ;
7401 wxString const &arg3_defvalue = wxPyEmptyString ;
7402 wxString *arg3 = (wxString *) &arg3_defvalue ;
7403 bool result;
7404 bool temp3 = False ;
7405 PyObject * obj0 = 0 ;
7406 PyObject * obj1 = 0 ;
7407 PyObject * obj2 = 0 ;
7408 char *kwnames[] = {
7409 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7410 };
7411
7412 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7413 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7414 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7415 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7416 if (PyErr_Occurred()) SWIG_fail;
7417 if (obj2) {
7418 {
7419 arg3 = wxString_in_helper(obj2);
7420 if (arg3 == NULL) SWIG_fail;
7421 temp3 = True;
7422 }
7423 }
7424 {
7425 PyThreadState* __tstate = wxPyBeginAllowThreads();
7426 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7427
7428 wxPyEndAllowThreads(__tstate);
7429 if (PyErr_Occurred()) SWIG_fail;
7430 }
7431 {
7432 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7433 }
7434 {
7435 if (temp3)
7436 delete arg3;
7437 }
7438 return resultobj;
7439 fail:
7440 {
7441 if (temp3)
7442 delete arg3;
7443 }
7444 return NULL;
7445}
7446
7447
7448static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj;
7450 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7451 wxWindow *arg2 = (wxWindow *) 0 ;
7452 PyObject * obj0 = 0 ;
7453 PyObject * obj1 = 0 ;
7454 char *kwnames[] = {
7455 (char *) "self",(char *) "parent", NULL
7456 };
7457
7458 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7459 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7460 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7461 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7462 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7463 {
7464 PyThreadState* __tstate = wxPyBeginAllowThreads();
7465 (arg1)->SetDialogParent(arg2);
7466
7467 wxPyEndAllowThreads(__tstate);
7468 if (PyErr_Occurred()) SWIG_fail;
7469 }
7470 Py_INCREF(Py_None); resultobj = Py_None;
7471 return resultobj;
7472 fail:
7473 return NULL;
7474}
7475
7476
7477static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7478 PyObject *resultobj;
7479 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7480 wxString *arg2 = 0 ;
7481 bool temp2 = False ;
7482 PyObject * obj0 = 0 ;
7483 PyObject * obj1 = 0 ;
7484 char *kwnames[] = {
7485 (char *) "self",(char *) "title", NULL
7486 };
7487
7488 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7489 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7490 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7491 {
7492 arg2 = wxString_in_helper(obj1);
7493 if (arg2 == NULL) SWIG_fail;
7494 temp2 = True;
7495 }
7496 {
7497 PyThreadState* __tstate = wxPyBeginAllowThreads();
7498 (arg1)->SetDialogTitle((wxString const &)*arg2);
7499
7500 wxPyEndAllowThreads(__tstate);
7501 if (PyErr_Occurred()) SWIG_fail;
7502 }
7503 Py_INCREF(Py_None); resultobj = Py_None;
7504 {
7505 if (temp2)
7506 delete arg2;
7507 }
7508 return resultobj;
7509 fail:
7510 {
7511 if (temp2)
7512 delete arg2;
7513 }
7514 return NULL;
7515}
7516
7517
7518static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7519 PyObject *obj;
7520 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7521 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7522 Py_INCREF(obj);
7523 return Py_BuildValue((char *)"");
7524}
7525static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7526 PyObject *resultobj;
7527 int arg1 ;
7528 int arg2 ;
7529 int arg3 ;
7530 int arg4 ;
7531 bool arg5 = (bool) False ;
7532 wxString const &arg6_defvalue = wxPyEmptyString ;
7533 wxString *arg6 = (wxString *) &arg6_defvalue ;
7534 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7535 wxFont *result;
7536 bool temp6 = False ;
7537 PyObject * obj0 = 0 ;
7538 PyObject * obj1 = 0 ;
7539 PyObject * obj2 = 0 ;
7540 PyObject * obj3 = 0 ;
7541 PyObject * obj4 = 0 ;
7542 PyObject * obj5 = 0 ;
7543 PyObject * obj6 = 0 ;
7544 char *kwnames[] = {
7545 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7546 };
7547
7548 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7549 arg1 = (int) SWIG_AsInt(obj0);
7550 if (PyErr_Occurred()) SWIG_fail;
7551 arg2 = (int) SWIG_AsInt(obj1);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 arg3 = (int) SWIG_AsInt(obj2);
7554 if (PyErr_Occurred()) SWIG_fail;
7555 arg4 = (int) SWIG_AsInt(obj3);
7556 if (PyErr_Occurred()) SWIG_fail;
7557 if (obj4) {
7558 arg5 = (bool) SWIG_AsBool(obj4);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 if (obj5) {
7562 {
7563 arg6 = wxString_in_helper(obj5);
7564 if (arg6 == NULL) SWIG_fail;
7565 temp6 = True;
7566 }
7567 }
7568 if (obj6) {
7569 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 {
0439c23b 7573 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7574 PyThreadState* __tstate = wxPyBeginAllowThreads();
7575 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7576
7577 wxPyEndAllowThreads(__tstate);
110da5b0 7578 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7579 }
7580 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7581 {
7582 if (temp6)
7583 delete arg6;
7584 }
7585 return resultobj;
7586 fail:
7587 {
7588 if (temp6)
7589 delete arg6;
7590 }
7591 return NULL;
7592}
7593
7594
7595static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7596 PyObject *resultobj;
7597 wxFont *arg1 = (wxFont *) 0 ;
7598 PyObject * obj0 = 0 ;
7599 char *kwnames[] = {
7600 (char *) "self", NULL
7601 };
7602
7603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7606 {
7607 PyThreadState* __tstate = wxPyBeginAllowThreads();
7608 delete arg1;
7609
7610 wxPyEndAllowThreads(__tstate);
7611 if (PyErr_Occurred()) SWIG_fail;
7612 }
7613 Py_INCREF(Py_None); resultobj = Py_None;
7614 return resultobj;
7615 fail:
7616 return NULL;
7617}
7618
7619
7620static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7621 PyObject *resultobj;
7622 wxNativeFontInfo *arg1 = 0 ;
7623 wxFont *result;
7624 PyObject * obj0 = 0 ;
7625 char *kwnames[] = {
7626 (char *) "info", NULL
7627 };
7628
7629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7631 SWIG_POINTER_EXCEPTION | 0)) == -1)
7632 SWIG_fail;
7633 if (arg1 == NULL) {
7634 PyErr_SetString(PyExc_TypeError,"null reference");
7635 SWIG_fail;
7636 }
7637 {
0439c23b 7638 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7639 PyThreadState* __tstate = wxPyBeginAllowThreads();
7640 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7641
7642 wxPyEndAllowThreads(__tstate);
110da5b0 7643 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7644 }
7645 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7646 return resultobj;
7647 fail:
7648 return NULL;
7649}
7650
7651
7652static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7653 PyObject *resultobj;
7654 wxString *arg1 = 0 ;
7655 wxFont *result;
7656 bool temp1 = False ;
7657 PyObject * obj0 = 0 ;
7658 char *kwnames[] = {
7659 (char *) "info", NULL
7660 };
7661
7662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7663 {
7664 arg1 = wxString_in_helper(obj0);
7665 if (arg1 == NULL) SWIG_fail;
7666 temp1 = True;
7667 }
7668 {
0439c23b 7669 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7672
7673 wxPyEndAllowThreads(__tstate);
110da5b0 7674 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7675 }
7676 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7677 {
7678 if (temp1)
7679 delete arg1;
7680 }
7681 return resultobj;
7682 fail:
7683 {
7684 if (temp1)
7685 delete arg1;
7686 }
7687 return NULL;
7688}
7689
7690
7691static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj;
7693 int arg1 ;
7694 int arg2 ;
7695 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7696 wxString const &arg4_defvalue = wxPyEmptyString ;
7697 wxString *arg4 = (wxString *) &arg4_defvalue ;
7698 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7699 wxFont *result;
7700 bool temp4 = False ;
7701 PyObject * obj0 = 0 ;
7702 PyObject * obj1 = 0 ;
7703 PyObject * obj2 = 0 ;
7704 PyObject * obj3 = 0 ;
7705 PyObject * obj4 = 0 ;
7706 char *kwnames[] = {
7707 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7708 };
7709
7710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7711 arg1 = (int) SWIG_AsInt(obj0);
7712 if (PyErr_Occurred()) SWIG_fail;
7713 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 if (obj2) {
7716 arg3 = (int) SWIG_AsInt(obj2);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 if (obj3) {
7720 {
7721 arg4 = wxString_in_helper(obj3);
7722 if (arg4 == NULL) SWIG_fail;
7723 temp4 = True;
7724 }
7725 }
7726 if (obj4) {
7727 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 {
0439c23b 7731 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7732 PyThreadState* __tstate = wxPyBeginAllowThreads();
7733 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7734
7735 wxPyEndAllowThreads(__tstate);
110da5b0 7736 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7737 }
7738 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7739 {
7740 if (temp4)
7741 delete arg4;
7742 }
7743 return resultobj;
7744 fail:
7745 {
7746 if (temp4)
7747 delete arg4;
7748 }
7749 return NULL;
7750}
7751
7752
7753static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7754 PyObject *resultobj;
7755 wxFont *arg1 = (wxFont *) 0 ;
7756 bool result;
7757 PyObject * obj0 = 0 ;
7758 char *kwnames[] = {
7759 (char *) "self", NULL
7760 };
7761
7762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7765 {
7766 PyThreadState* __tstate = wxPyBeginAllowThreads();
7767 result = (bool)((wxFont const *)arg1)->Ok();
7768
7769 wxPyEndAllowThreads(__tstate);
7770 if (PyErr_Occurred()) SWIG_fail;
7771 }
7772 {
7773 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7774 }
7775 return resultobj;
7776 fail:
7777 return NULL;
7778}
7779
7780
7781static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7782 PyObject *resultobj;
7783 wxFont *arg1 = (wxFont *) 0 ;
7784 wxFont *arg2 = (wxFont *) 0 ;
7785 bool result;
7786 PyObject * obj0 = 0 ;
7787 PyObject * obj1 = 0 ;
7788 char *kwnames[] = {
7789 (char *) "self",(char *) "other", NULL
7790 };
7791
7792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7795 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7796 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7797 {
7798 PyThreadState* __tstate = wxPyBeginAllowThreads();
7799 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7800
7801 wxPyEndAllowThreads(__tstate);
7802 if (PyErr_Occurred()) SWIG_fail;
7803 }
7804 {
7805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7806 }
7807 return resultobj;
7808 fail:
7809 return NULL;
7810}
7811
7812
7813static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7814 PyObject *resultobj;
7815 wxFont *arg1 = (wxFont *) 0 ;
7816 wxFont *arg2 = (wxFont *) 0 ;
7817 bool result;
7818 PyObject * obj0 = 0 ;
7819 PyObject * obj1 = 0 ;
7820 char *kwnames[] = {
7821 (char *) "self",(char *) "other", NULL
7822 };
7823
7824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7827 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7829 {
7830 PyThreadState* __tstate = wxPyBeginAllowThreads();
7831 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7832
7833 wxPyEndAllowThreads(__tstate);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 {
7837 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7838 }
7839 return resultobj;
7840 fail:
7841 return NULL;
7842}
7843
7844
7845static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7846 PyObject *resultobj;
7847 wxFont *arg1 = (wxFont *) 0 ;
7848 int result;
7849 PyObject * obj0 = 0 ;
7850 char *kwnames[] = {
7851 (char *) "self", NULL
7852 };
7853
7854 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7855 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7856 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7857 {
7858 PyThreadState* __tstate = wxPyBeginAllowThreads();
7859 result = (int)((wxFont const *)arg1)->GetPointSize();
7860
7861 wxPyEndAllowThreads(__tstate);
7862 if (PyErr_Occurred()) SWIG_fail;
7863 }
7864 resultobj = SWIG_FromInt((int)result);
7865 return resultobj;
7866 fail:
7867 return NULL;
7868}
7869
7870
7871static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7872 PyObject *resultobj;
7873 wxFont *arg1 = (wxFont *) 0 ;
7874 int result;
7875 PyObject * obj0 = 0 ;
7876 char *kwnames[] = {
7877 (char *) "self", NULL
7878 };
7879
7880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 result = (int)((wxFont const *)arg1)->GetFamily();
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 resultobj = SWIG_FromInt((int)result);
7891 return resultobj;
7892 fail:
7893 return NULL;
7894}
7895
7896
7897static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7898 PyObject *resultobj;
7899 wxFont *arg1 = (wxFont *) 0 ;
7900 int result;
7901 PyObject * obj0 = 0 ;
7902 char *kwnames[] = {
7903 (char *) "self", NULL
7904 };
7905
7906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7909 {
7910 PyThreadState* __tstate = wxPyBeginAllowThreads();
7911 result = (int)((wxFont const *)arg1)->GetStyle();
7912
7913 wxPyEndAllowThreads(__tstate);
7914 if (PyErr_Occurred()) SWIG_fail;
7915 }
7916 resultobj = SWIG_FromInt((int)result);
7917 return resultobj;
7918 fail:
7919 return NULL;
7920}
7921
7922
7923static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7924 PyObject *resultobj;
7925 wxFont *arg1 = (wxFont *) 0 ;
7926 int result;
7927 PyObject * obj0 = 0 ;
7928 char *kwnames[] = {
7929 (char *) "self", NULL
7930 };
7931
7932 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7933 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7934 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7935 {
7936 PyThreadState* __tstate = wxPyBeginAllowThreads();
7937 result = (int)((wxFont const *)arg1)->GetWeight();
7938
7939 wxPyEndAllowThreads(__tstate);
7940 if (PyErr_Occurred()) SWIG_fail;
7941 }
7942 resultobj = SWIG_FromInt((int)result);
7943 return resultobj;
7944 fail:
7945 return NULL;
7946}
7947
7948
7949static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7950 PyObject *resultobj;
7951 wxFont *arg1 = (wxFont *) 0 ;
7952 bool result;
7953 PyObject * obj0 = 0 ;
7954 char *kwnames[] = {
7955 (char *) "self", NULL
7956 };
7957
7958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7961 {
7962 PyThreadState* __tstate = wxPyBeginAllowThreads();
7963 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7964
7965 wxPyEndAllowThreads(__tstate);
7966 if (PyErr_Occurred()) SWIG_fail;
7967 }
7968 {
7969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7970 }
7971 return resultobj;
7972 fail:
7973 return NULL;
7974}
7975
7976
7977static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7978 PyObject *resultobj;
7979 wxFont *arg1 = (wxFont *) 0 ;
7980 wxString result;
7981 PyObject * obj0 = 0 ;
7982 char *kwnames[] = {
7983 (char *) "self", NULL
7984 };
7985
7986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7989 {
7990 PyThreadState* __tstate = wxPyBeginAllowThreads();
7991 result = ((wxFont const *)arg1)->GetFaceName();
7992
7993 wxPyEndAllowThreads(__tstate);
7994 if (PyErr_Occurred()) SWIG_fail;
7995 }
7996 {
7997#if wxUSE_UNICODE
7998 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7999#else
8000 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8001#endif
8002 }
8003 return resultobj;
8004 fail:
8005 return NULL;
8006}
8007
8008
8009static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8010 PyObject *resultobj;
8011 wxFont *arg1 = (wxFont *) 0 ;
8012 int result;
8013 PyObject * obj0 = 0 ;
8014 char *kwnames[] = {
8015 (char *) "self", NULL
8016 };
8017
8018 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8019 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8020 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8021 {
8022 PyThreadState* __tstate = wxPyBeginAllowThreads();
8023 result = (int)((wxFont const *)arg1)->GetEncoding();
8024
8025 wxPyEndAllowThreads(__tstate);
8026 if (PyErr_Occurred()) SWIG_fail;
8027 }
8028 resultobj = SWIG_FromInt((int)result);
8029 return resultobj;
8030 fail:
8031 return NULL;
8032}
8033
8034
8035static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8036 PyObject *resultobj;
8037 wxFont *arg1 = (wxFont *) 0 ;
8038 wxNativeFontInfo *result;
8039 PyObject * obj0 = 0 ;
8040 char *kwnames[] = {
8041 (char *) "self", NULL
8042 };
8043
8044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8047 {
8048 PyThreadState* __tstate = wxPyBeginAllowThreads();
8049 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8050
8051 wxPyEndAllowThreads(__tstate);
8052 if (PyErr_Occurred()) SWIG_fail;
8053 }
8054 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8055 return resultobj;
8056 fail:
8057 return NULL;
8058}
8059
8060
8061static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8062 PyObject *resultobj;
8063 wxFont *arg1 = (wxFont *) 0 ;
8064 bool result;
8065 PyObject * obj0 = 0 ;
8066 char *kwnames[] = {
8067 (char *) "self", NULL
8068 };
8069
8070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8076
8077 wxPyEndAllowThreads(__tstate);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 {
8081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8082 }
8083 return resultobj;
8084 fail:
8085 return NULL;
8086}
8087
8088
8089static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8090 PyObject *resultobj;
8091 wxFont *arg1 = (wxFont *) 0 ;
8092 wxString result;
8093 PyObject * obj0 = 0 ;
8094 char *kwnames[] = {
8095 (char *) "self", NULL
8096 };
8097
8098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8104
8105 wxPyEndAllowThreads(__tstate);
8106 if (PyErr_Occurred()) SWIG_fail;
8107 }
8108 {
8109#if wxUSE_UNICODE
8110 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8111#else
8112 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8113#endif
8114 }
8115 return resultobj;
8116 fail:
8117 return NULL;
8118}
8119
8120
8121static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8122 PyObject *resultobj;
8123 wxFont *arg1 = (wxFont *) 0 ;
8124 wxString result;
8125 PyObject * obj0 = 0 ;
8126 char *kwnames[] = {
8127 (char *) "self", NULL
8128 };
8129
8130 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8131 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8132 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8133 {
8134 PyThreadState* __tstate = wxPyBeginAllowThreads();
8135 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8136
8137 wxPyEndAllowThreads(__tstate);
8138 if (PyErr_Occurred()) SWIG_fail;
8139 }
8140 {
8141#if wxUSE_UNICODE
8142 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8143#else
8144 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8145#endif
8146 }
8147 return resultobj;
8148 fail:
8149 return NULL;
8150}
8151
8152
8153static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8154 PyObject *resultobj;
8155 wxFont *arg1 = (wxFont *) 0 ;
8156 int arg2 ;
8157 PyObject * obj0 = 0 ;
8158 PyObject * obj1 = 0 ;
8159 char *kwnames[] = {
8160 (char *) "self",(char *) "pointSize", NULL
8161 };
8162
8163 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8164 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8165 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8166 arg2 = (int) SWIG_AsInt(obj1);
8167 if (PyErr_Occurred()) SWIG_fail;
8168 {
8169 PyThreadState* __tstate = wxPyBeginAllowThreads();
8170 (arg1)->SetPointSize(arg2);
8171
8172 wxPyEndAllowThreads(__tstate);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 Py_INCREF(Py_None); resultobj = Py_None;
8176 return resultobj;
8177 fail:
8178 return NULL;
8179}
8180
8181
8182static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8183 PyObject *resultobj;
8184 wxFont *arg1 = (wxFont *) 0 ;
8185 int arg2 ;
8186 PyObject * obj0 = 0 ;
8187 PyObject * obj1 = 0 ;
8188 char *kwnames[] = {
8189 (char *) "self",(char *) "family", NULL
8190 };
8191
8192 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8193 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8194 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8195 arg2 = (int) SWIG_AsInt(obj1);
8196 if (PyErr_Occurred()) SWIG_fail;
8197 {
8198 PyThreadState* __tstate = wxPyBeginAllowThreads();
8199 (arg1)->SetFamily(arg2);
8200
8201 wxPyEndAllowThreads(__tstate);
8202 if (PyErr_Occurred()) SWIG_fail;
8203 }
8204 Py_INCREF(Py_None); resultobj = Py_None;
8205 return resultobj;
8206 fail:
8207 return NULL;
8208}
8209
8210
8211static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8212 PyObject *resultobj;
8213 wxFont *arg1 = (wxFont *) 0 ;
8214 int arg2 ;
8215 PyObject * obj0 = 0 ;
8216 PyObject * obj1 = 0 ;
8217 char *kwnames[] = {
8218 (char *) "self",(char *) "style", NULL
8219 };
8220
8221 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8222 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8223 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8224 arg2 = (int) SWIG_AsInt(obj1);
8225 if (PyErr_Occurred()) SWIG_fail;
8226 {
8227 PyThreadState* __tstate = wxPyBeginAllowThreads();
8228 (arg1)->SetStyle(arg2);
8229
8230 wxPyEndAllowThreads(__tstate);
8231 if (PyErr_Occurred()) SWIG_fail;
8232 }
8233 Py_INCREF(Py_None); resultobj = Py_None;
8234 return resultobj;
8235 fail:
8236 return NULL;
8237}
8238
8239
8240static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8241 PyObject *resultobj;
8242 wxFont *arg1 = (wxFont *) 0 ;
8243 int arg2 ;
8244 PyObject * obj0 = 0 ;
8245 PyObject * obj1 = 0 ;
8246 char *kwnames[] = {
8247 (char *) "self",(char *) "weight", NULL
8248 };
8249
8250 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8251 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8252 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8253 arg2 = (int) SWIG_AsInt(obj1);
8254 if (PyErr_Occurred()) SWIG_fail;
8255 {
8256 PyThreadState* __tstate = wxPyBeginAllowThreads();
8257 (arg1)->SetWeight(arg2);
8258
8259 wxPyEndAllowThreads(__tstate);
8260 if (PyErr_Occurred()) SWIG_fail;
8261 }
8262 Py_INCREF(Py_None); resultobj = Py_None;
8263 return resultobj;
8264 fail:
8265 return NULL;
8266}
8267
8268
8269static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj;
8271 wxFont *arg1 = (wxFont *) 0 ;
8272 wxString *arg2 = 0 ;
8273 bool temp2 = False ;
8274 PyObject * obj0 = 0 ;
8275 PyObject * obj1 = 0 ;
8276 char *kwnames[] = {
8277 (char *) "self",(char *) "faceName", NULL
8278 };
8279
8280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8283 {
8284 arg2 = wxString_in_helper(obj1);
8285 if (arg2 == NULL) SWIG_fail;
8286 temp2 = True;
8287 }
8288 {
8289 PyThreadState* __tstate = wxPyBeginAllowThreads();
8290 (arg1)->SetFaceName((wxString const &)*arg2);
8291
8292 wxPyEndAllowThreads(__tstate);
8293 if (PyErr_Occurred()) SWIG_fail;
8294 }
8295 Py_INCREF(Py_None); resultobj = Py_None;
8296 {
8297 if (temp2)
8298 delete arg2;
8299 }
8300 return resultobj;
8301 fail:
8302 {
8303 if (temp2)
8304 delete arg2;
8305 }
8306 return NULL;
8307}
8308
8309
8310static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8311 PyObject *resultobj;
8312 wxFont *arg1 = (wxFont *) 0 ;
8313 bool arg2 ;
8314 PyObject * obj0 = 0 ;
8315 PyObject * obj1 = 0 ;
8316 char *kwnames[] = {
8317 (char *) "self",(char *) "underlined", NULL
8318 };
8319
8320 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8321 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8322 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8323 arg2 = (bool) SWIG_AsBool(obj1);
8324 if (PyErr_Occurred()) SWIG_fail;
8325 {
8326 PyThreadState* __tstate = wxPyBeginAllowThreads();
8327 (arg1)->SetUnderlined(arg2);
8328
8329 wxPyEndAllowThreads(__tstate);
8330 if (PyErr_Occurred()) SWIG_fail;
8331 }
8332 Py_INCREF(Py_None); resultobj = Py_None;
8333 return resultobj;
8334 fail:
8335 return NULL;
8336}
8337
8338
8339static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8340 PyObject *resultobj;
8341 wxFont *arg1 = (wxFont *) 0 ;
8342 int arg2 ;
8343 PyObject * obj0 = 0 ;
8344 PyObject * obj1 = 0 ;
8345 char *kwnames[] = {
8346 (char *) "self",(char *) "encoding", NULL
8347 };
8348
8349 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8350 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8351 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8352 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8353 if (PyErr_Occurred()) SWIG_fail;
8354 {
8355 PyThreadState* __tstate = wxPyBeginAllowThreads();
8356 (arg1)->SetEncoding((wxFontEncoding )arg2);
8357
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 Py_INCREF(Py_None); resultobj = Py_None;
8362 return resultobj;
8363 fail:
8364 return NULL;
8365}
8366
8367
8368static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj;
8370 wxFont *arg1 = (wxFont *) 0 ;
8371 wxNativeFontInfo *arg2 = 0 ;
8372 PyObject * obj0 = 0 ;
8373 PyObject * obj1 = 0 ;
8374 char *kwnames[] = {
8375 (char *) "self",(char *) "info", NULL
8376 };
8377
8378 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8379 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8380 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8381 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8382 SWIG_POINTER_EXCEPTION | 0)) == -1)
8383 SWIG_fail;
8384 if (arg2 == NULL) {
8385 PyErr_SetString(PyExc_TypeError,"null reference");
8386 SWIG_fail;
8387 }
8388 {
8389 PyThreadState* __tstate = wxPyBeginAllowThreads();
8390 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8391
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 Py_INCREF(Py_None); resultobj = Py_None;
8396 return resultobj;
8397 fail:
8398 return NULL;
8399}
8400
8401
8402static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8403 PyObject *resultobj;
8404 wxFont *arg1 = (wxFont *) 0 ;
8405 wxString *arg2 = 0 ;
8406 bool temp2 = False ;
8407 PyObject * obj0 = 0 ;
8408 PyObject * obj1 = 0 ;
8409 char *kwnames[] = {
8410 (char *) "self",(char *) "info", NULL
8411 };
8412
8413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8416 {
8417 arg2 = wxString_in_helper(obj1);
8418 if (arg2 == NULL) SWIG_fail;
8419 temp2 = True;
8420 }
8421 {
8422 PyThreadState* __tstate = wxPyBeginAllowThreads();
8423 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8424
8425 wxPyEndAllowThreads(__tstate);
8426 if (PyErr_Occurred()) SWIG_fail;
8427 }
8428 Py_INCREF(Py_None); resultobj = Py_None;
8429 {
8430 if (temp2)
8431 delete arg2;
8432 }
8433 return resultobj;
8434 fail:
8435 {
8436 if (temp2)
8437 delete arg2;
8438 }
8439 return NULL;
8440}
8441
8442
8443static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8444 PyObject *resultobj;
8445 wxFont *arg1 = (wxFont *) 0 ;
8446 wxString *arg2 = 0 ;
8447 bool temp2 = False ;
8448 PyObject * obj0 = 0 ;
8449 PyObject * obj1 = 0 ;
8450 char *kwnames[] = {
8451 (char *) "self",(char *) "info", NULL
8452 };
8453
8454 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8455 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8456 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8457 {
8458 arg2 = wxString_in_helper(obj1);
8459 if (arg2 == NULL) SWIG_fail;
8460 temp2 = True;
8461 }
8462 {
8463 PyThreadState* __tstate = wxPyBeginAllowThreads();
8464 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8465
8466 wxPyEndAllowThreads(__tstate);
8467 if (PyErr_Occurred()) SWIG_fail;
8468 }
8469 Py_INCREF(Py_None); resultobj = Py_None;
8470 {
8471 if (temp2)
8472 delete arg2;
8473 }
8474 return resultobj;
8475 fail:
8476 {
8477 if (temp2)
8478 delete arg2;
8479 }
8480 return NULL;
8481}
8482
8483
8484static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8485 PyObject *resultobj;
8486 wxFont *arg1 = (wxFont *) 0 ;
8487 wxString result;
8488 PyObject * obj0 = 0 ;
8489 char *kwnames[] = {
8490 (char *) "self", NULL
8491 };
8492
8493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8496 {
8497 PyThreadState* __tstate = wxPyBeginAllowThreads();
8498 result = ((wxFont const *)arg1)->GetFamilyString();
8499
8500 wxPyEndAllowThreads(__tstate);
8501 if (PyErr_Occurred()) SWIG_fail;
8502 }
8503 {
8504#if wxUSE_UNICODE
8505 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8506#else
8507 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8508#endif
8509 }
8510 return resultobj;
8511 fail:
8512 return NULL;
8513}
8514
8515
8516static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8517 PyObject *resultobj;
8518 wxFont *arg1 = (wxFont *) 0 ;
8519 wxString result;
8520 PyObject * obj0 = 0 ;
8521 char *kwnames[] = {
8522 (char *) "self", NULL
8523 };
8524
8525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8528 {
8529 PyThreadState* __tstate = wxPyBeginAllowThreads();
8530 result = ((wxFont const *)arg1)->GetStyleString();
8531
8532 wxPyEndAllowThreads(__tstate);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 {
8536#if wxUSE_UNICODE
8537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8538#else
8539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8540#endif
8541 }
8542 return resultobj;
8543 fail:
8544 return NULL;
8545}
8546
8547
8548static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj;
8550 wxFont *arg1 = (wxFont *) 0 ;
8551 wxString result;
8552 PyObject * obj0 = 0 ;
8553 char *kwnames[] = {
8554 (char *) "self", NULL
8555 };
8556
8557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8560 {
8561 PyThreadState* __tstate = wxPyBeginAllowThreads();
8562 result = ((wxFont const *)arg1)->GetWeightString();
8563
8564 wxPyEndAllowThreads(__tstate);
8565 if (PyErr_Occurred()) SWIG_fail;
8566 }
8567 {
8568#if wxUSE_UNICODE
8569 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8570#else
8571 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8572#endif
8573 }
8574 return resultobj;
8575 fail:
8576 return NULL;
8577}
8578
8579
8580static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8581 PyObject *resultobj;
8582 wxFont *arg1 = (wxFont *) 0 ;
8583 bool arg2 = (bool) True ;
8584 PyObject * obj0 = 0 ;
8585 PyObject * obj1 = 0 ;
8586 char *kwnames[] = {
8587 (char *) "self",(char *) "no", NULL
8588 };
8589
8590 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8591 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8592 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8593 if (obj1) {
8594 arg2 = (bool) SWIG_AsBool(obj1);
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 {
8598 PyThreadState* __tstate = wxPyBeginAllowThreads();
8599 (arg1)->SetNoAntiAliasing(arg2);
8600
8601 wxPyEndAllowThreads(__tstate);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
8604 Py_INCREF(Py_None); resultobj = Py_None;
8605 return resultobj;
8606 fail:
8607 return NULL;
8608}
8609
8610
8611static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8612 PyObject *resultobj;
8613 wxFont *arg1 = (wxFont *) 0 ;
8614 bool result;
8615 PyObject * obj0 = 0 ;
8616 char *kwnames[] = {
8617 (char *) "self", NULL
8618 };
8619
8620 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8621 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8622 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8623 {
8624 PyThreadState* __tstate = wxPyBeginAllowThreads();
92379a03 8625 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
d55e5bfc
RD
8626
8627 wxPyEndAllowThreads(__tstate);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 {
8631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8632 }
8633 return resultobj;
8634 fail:
8635 return NULL;
8636}
8637
8638
8639static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8640 PyObject *resultobj;
8641 int result;
8642 char *kwnames[] = {
8643 NULL
8644 };
8645
8646 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8647 {
0439c23b 8648 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8649 PyThreadState* __tstate = wxPyBeginAllowThreads();
8650 result = (int)wxFont::GetDefaultEncoding();
8651
8652 wxPyEndAllowThreads(__tstate);
110da5b0 8653 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8654 }
8655 resultobj = SWIG_FromInt((int)result);
8656 return resultobj;
8657 fail:
8658 return NULL;
8659}
8660
8661
8662static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8663 PyObject *resultobj;
8664 int arg1 ;
8665 PyObject * obj0 = 0 ;
8666 char *kwnames[] = {
8667 (char *) "encoding", NULL
8668 };
8669
8670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8671 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 {
0439c23b 8674 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8675 PyThreadState* __tstate = wxPyBeginAllowThreads();
8676 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8677
8678 wxPyEndAllowThreads(__tstate);
110da5b0 8679 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8680 }
8681 Py_INCREF(Py_None); resultobj = Py_None;
8682 return resultobj;
8683 fail:
8684 return NULL;
8685}
8686
8687
8688static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8689 PyObject *obj;
8690 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8691 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8692 Py_INCREF(obj);
8693 return Py_BuildValue((char *)"");
8694}
8695static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj;
8697 wxPyFontEnumerator *result;
8698 char *kwnames[] = {
8699 NULL
8700 };
8701
8702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8703 {
0439c23b 8704 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8705 PyThreadState* __tstate = wxPyBeginAllowThreads();
8706 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8707
8708 wxPyEndAllowThreads(__tstate);
110da5b0 8709 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8710 }
8711 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8712 return resultobj;
8713 fail:
8714 return NULL;
8715}
8716
8717
8718static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj;
8720 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8721 PyObject * obj0 = 0 ;
8722 char *kwnames[] = {
8723 (char *) "self", NULL
8724 };
8725
8726 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8727 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8728 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8729 {
8730 PyThreadState* __tstate = wxPyBeginAllowThreads();
8731 delete arg1;
8732
8733 wxPyEndAllowThreads(__tstate);
8734 if (PyErr_Occurred()) SWIG_fail;
8735 }
8736 Py_INCREF(Py_None); resultobj = Py_None;
8737 return resultobj;
8738 fail:
8739 return NULL;
8740}
8741
8742
8743static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8744 PyObject *resultobj;
8745 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8746 PyObject *arg2 = (PyObject *) 0 ;
8747 PyObject *arg3 = (PyObject *) 0 ;
8748 bool arg4 ;
8749 PyObject * obj0 = 0 ;
8750 PyObject * obj1 = 0 ;
8751 PyObject * obj2 = 0 ;
8752 PyObject * obj3 = 0 ;
8753 char *kwnames[] = {
8754 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8755 };
8756
8757 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8758 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8759 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8760 arg2 = obj1;
8761 arg3 = obj2;
8762 arg4 = (bool) SWIG_AsBool(obj3);
8763 if (PyErr_Occurred()) SWIG_fail;
8764 {
8765 PyThreadState* __tstate = wxPyBeginAllowThreads();
8766 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8767
8768 wxPyEndAllowThreads(__tstate);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 Py_INCREF(Py_None); resultobj = Py_None;
8772 return resultobj;
8773 fail:
8774 return NULL;
8775}
8776
8777
8778static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8779 PyObject *resultobj;
8780 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8781 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8782 bool arg3 = (bool) False ;
8783 bool result;
8784 PyObject * obj0 = 0 ;
8785 PyObject * obj1 = 0 ;
8786 PyObject * obj2 = 0 ;
8787 char *kwnames[] = {
8788 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8789 };
8790
8791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8794 if (obj1) {
8795 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8796 if (PyErr_Occurred()) SWIG_fail;
8797 }
8798 if (obj2) {
8799 arg3 = (bool) SWIG_AsBool(obj2);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 }
8802 {
8803 PyThreadState* __tstate = wxPyBeginAllowThreads();
8804 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8805
8806 wxPyEndAllowThreads(__tstate);
8807 if (PyErr_Occurred()) SWIG_fail;
8808 }
8809 {
8810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8811 }
8812 return resultobj;
8813 fail:
8814 return NULL;
8815}
8816
8817
8818static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8819 PyObject *resultobj;
8820 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8821 wxString const &arg2_defvalue = wxPyEmptyString ;
8822 wxString *arg2 = (wxString *) &arg2_defvalue ;
8823 bool result;
8824 bool temp2 = False ;
8825 PyObject * obj0 = 0 ;
8826 PyObject * obj1 = 0 ;
8827 char *kwnames[] = {
8828 (char *) "self",(char *) "facename", NULL
8829 };
8830
8831 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8832 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8833 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8834 if (obj1) {
8835 {
8836 arg2 = wxString_in_helper(obj1);
8837 if (arg2 == NULL) SWIG_fail;
8838 temp2 = True;
8839 }
8840 }
8841 {
8842 PyThreadState* __tstate = wxPyBeginAllowThreads();
8843 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8844
8845 wxPyEndAllowThreads(__tstate);
8846 if (PyErr_Occurred()) SWIG_fail;
8847 }
8848 {
8849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8850 }
8851 {
8852 if (temp2)
8853 delete arg2;
8854 }
8855 return resultobj;
8856 fail:
8857 {
8858 if (temp2)
8859 delete arg2;
8860 }
8861 return NULL;
8862}
8863
8864
8865static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8866 PyObject *resultobj;
8867 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8868 PyObject *result;
8869 PyObject * obj0 = 0 ;
8870 char *kwnames[] = {
8871 (char *) "self", NULL
8872 };
8873
8874 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8875 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8876 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8877 {
8878 PyThreadState* __tstate = wxPyBeginAllowThreads();
8879 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8880
8881 wxPyEndAllowThreads(__tstate);
8882 if (PyErr_Occurred()) SWIG_fail;
8883 }
8884 resultobj = result;
8885 return resultobj;
8886 fail:
8887 return NULL;
8888}
8889
8890
8891static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8892 PyObject *resultobj;
8893 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8894 PyObject *result;
8895 PyObject * obj0 = 0 ;
8896 char *kwnames[] = {
8897 (char *) "self", NULL
8898 };
8899
8900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8901 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8902 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8903 {
8904 PyThreadState* __tstate = wxPyBeginAllowThreads();
8905 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8906
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 resultobj = result;
8911 return resultobj;
8912 fail:
8913 return NULL;
8914}
8915
8916
8917static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8918 PyObject *obj;
8919 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8920 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8921 Py_INCREF(obj);
8922 return Py_BuildValue((char *)"");
8923}
8924static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8925 PyObject *resultobj;
8926 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8927 int arg2 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 char *kwnames[] = {
8931 (char *) "self",(char *) "Language", NULL
8932 };
8933
8934 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8935 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8936 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8937 arg2 = (int) SWIG_AsInt(obj1);
8938 if (PyErr_Occurred()) SWIG_fail;
8939 if (arg1) (arg1)->Language = arg2;
8940
8941 Py_INCREF(Py_None); resultobj = Py_None;
8942 return resultobj;
8943 fail:
8944 return NULL;
8945}
8946
8947
8948static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8949 PyObject *resultobj;
8950 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8951 int result;
8952 PyObject * obj0 = 0 ;
8953 char *kwnames[] = {
8954 (char *) "self", NULL
8955 };
8956
8957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8960 result = (int) ((arg1)->Language);
8961
8962 resultobj = SWIG_FromInt((int)result);
8963 return resultobj;
8964 fail:
8965 return NULL;
8966}
8967
8968
8969static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8970 PyObject *resultobj;
8971 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8972 wxString *arg2 = (wxString *) 0 ;
8973 bool temp2 = False ;
8974 PyObject * obj0 = 0 ;
8975 PyObject * obj1 = 0 ;
8976 char *kwnames[] = {
8977 (char *) "self",(char *) "CanonicalName", NULL
8978 };
8979
8980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8983 {
8984 arg2 = wxString_in_helper(obj1);
8985 if (arg2 == NULL) SWIG_fail;
8986 temp2 = True;
8987 }
8988 if (arg1) (arg1)->CanonicalName = *arg2;
8989
8990 Py_INCREF(Py_None); resultobj = Py_None;
8991 {
8992 if (temp2)
8993 delete arg2;
8994 }
8995 return resultobj;
8996 fail:
8997 {
8998 if (temp2)
8999 delete arg2;
9000 }
9001 return NULL;
9002}
9003
9004
9005static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9006 PyObject *resultobj;
9007 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9008 wxString *result;
9009 PyObject * obj0 = 0 ;
9010 char *kwnames[] = {
9011 (char *) "self", NULL
9012 };
9013
9014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9017 result = (wxString *)& ((arg1)->CanonicalName);
9018
9019 {
9020#if wxUSE_UNICODE
9021 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9022#else
9023 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9024#endif
9025 }
9026 return resultobj;
9027 fail:
9028 return NULL;
9029}
9030
9031
9032static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9033 PyObject *resultobj;
9034 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9035 wxString *arg2 = (wxString *) 0 ;
9036 bool temp2 = False ;
9037 PyObject * obj0 = 0 ;
9038 PyObject * obj1 = 0 ;
9039 char *kwnames[] = {
9040 (char *) "self",(char *) "Description", NULL
9041 };
9042
9043 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9044 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9045 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9046 {
9047 arg2 = wxString_in_helper(obj1);
9048 if (arg2 == NULL) SWIG_fail;
9049 temp2 = True;
9050 }
9051 if (arg1) (arg1)->Description = *arg2;
9052
9053 Py_INCREF(Py_None); resultobj = Py_None;
9054 {
9055 if (temp2)
9056 delete arg2;
9057 }
9058 return resultobj;
9059 fail:
9060 {
9061 if (temp2)
9062 delete arg2;
9063 }
9064 return NULL;
9065}
9066
9067
9068static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9069 PyObject *resultobj;
9070 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9071 wxString *result;
9072 PyObject * obj0 = 0 ;
9073 char *kwnames[] = {
9074 (char *) "self", NULL
9075 };
9076
9077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9080 result = (wxString *)& ((arg1)->Description);
9081
9082 {
9083#if wxUSE_UNICODE
9084 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9085#else
9086 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9087#endif
9088 }
9089 return resultobj;
9090 fail:
9091 return NULL;
9092}
9093
9094
9095static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9096 PyObject *obj;
9097 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9098 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9099 Py_INCREF(obj);
9100 return Py_BuildValue((char *)"");
9101}
9102static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9103 PyObject *resultobj;
15817c7e 9104 int arg1 = (int) -1 ;
d55e5bfc
RD
9105 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9106 wxLocale *result;
9107 PyObject * obj0 = 0 ;
9108 PyObject * obj1 = 0 ;
9109 char *kwnames[] = {
9110 (char *) "language",(char *) "flags", NULL
9111 };
9112
9113 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9114 if (obj0) {
9115 arg1 = (int) SWIG_AsInt(obj0);
9116 if (PyErr_Occurred()) SWIG_fail;
9117 }
9118 if (obj1) {
9119 arg2 = (int) SWIG_AsInt(obj1);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 {
9123 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 9124 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
9125
9126 wxPyEndAllowThreads(__tstate);
9127 if (PyErr_Occurred()) SWIG_fail;
9128 }
9129 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9130 return resultobj;
9131 fail:
9132 return NULL;
9133}
9134
9135
9136static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9137 PyObject *resultobj;
9138 wxLocale *arg1 = (wxLocale *) 0 ;
9139 PyObject * obj0 = 0 ;
9140 char *kwnames[] = {
9141 (char *) "self", NULL
9142 };
9143
9144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9147 {
9148 PyThreadState* __tstate = wxPyBeginAllowThreads();
9149 delete arg1;
9150
9151 wxPyEndAllowThreads(__tstate);
9152 if (PyErr_Occurred()) SWIG_fail;
9153 }
9154 Py_INCREF(Py_None); resultobj = Py_None;
9155 return resultobj;
9156 fail:
9157 return NULL;
9158}
9159
9160
9161static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9162 PyObject *resultobj;
9163 wxLocale *arg1 = (wxLocale *) 0 ;
9164 wxString *arg2 = 0 ;
9165 wxString const &arg3_defvalue = wxPyEmptyString ;
9166 wxString *arg3 = (wxString *) &arg3_defvalue ;
9167 wxString const &arg4_defvalue = wxPyEmptyString ;
9168 wxString *arg4 = (wxString *) &arg4_defvalue ;
9169 bool arg5 = (bool) True ;
9170 bool arg6 = (bool) False ;
9171 bool result;
9172 bool temp2 = False ;
9173 bool temp3 = False ;
9174 bool temp4 = False ;
9175 PyObject * obj0 = 0 ;
9176 PyObject * obj1 = 0 ;
9177 PyObject * obj2 = 0 ;
9178 PyObject * obj3 = 0 ;
9179 PyObject * obj4 = 0 ;
9180 PyObject * obj5 = 0 ;
9181 char *kwnames[] = {
9182 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9183 };
9184
9185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9188 {
9189 arg2 = wxString_in_helper(obj1);
9190 if (arg2 == NULL) SWIG_fail;
9191 temp2 = True;
9192 }
9193 if (obj2) {
9194 {
9195 arg3 = wxString_in_helper(obj2);
9196 if (arg3 == NULL) SWIG_fail;
9197 temp3 = True;
9198 }
9199 }
9200 if (obj3) {
9201 {
9202 arg4 = wxString_in_helper(obj3);
9203 if (arg4 == NULL) SWIG_fail;
9204 temp4 = True;
9205 }
9206 }
9207 if (obj4) {
9208 arg5 = (bool) SWIG_AsBool(obj4);
9209 if (PyErr_Occurred()) SWIG_fail;
9210 }
9211 if (obj5) {
9212 arg6 = (bool) SWIG_AsBool(obj5);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 {
9216 PyThreadState* __tstate = wxPyBeginAllowThreads();
9217 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9218
9219 wxPyEndAllowThreads(__tstate);
9220 if (PyErr_Occurred()) SWIG_fail;
9221 }
9222 {
9223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9224 }
9225 {
9226 if (temp2)
9227 delete arg2;
9228 }
9229 {
9230 if (temp3)
9231 delete arg3;
9232 }
9233 {
9234 if (temp4)
9235 delete arg4;
9236 }
9237 return resultobj;
9238 fail:
9239 {
9240 if (temp2)
9241 delete arg2;
9242 }
9243 {
9244 if (temp3)
9245 delete arg3;
9246 }
9247 {
9248 if (temp4)
9249 delete arg4;
9250 }
9251 return NULL;
9252}
9253
9254
9255static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9256 PyObject *resultobj;
9257 wxLocale *arg1 = (wxLocale *) 0 ;
9258 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9259 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9260 bool result;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 PyObject * obj2 = 0 ;
9264 char *kwnames[] = {
9265 (char *) "self",(char *) "language",(char *) "flags", NULL
9266 };
9267
9268 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9269 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9270 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9271 if (obj1) {
9272 arg2 = (int) SWIG_AsInt(obj1);
9273 if (PyErr_Occurred()) SWIG_fail;
9274 }
9275 if (obj2) {
9276 arg3 = (int) SWIG_AsInt(obj2);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 {
9280 PyThreadState* __tstate = wxPyBeginAllowThreads();
9281 result = (bool)(arg1)->Init(arg2,arg3);
9282
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 {
9287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9288 }
9289 return resultobj;
9290 fail:
9291 return NULL;
9292}
9293
9294
9295static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj;
9297 int result;
9298 char *kwnames[] = {
9299 NULL
9300 };
9301
9302 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9303 {
9304 PyThreadState* __tstate = wxPyBeginAllowThreads();
9305 result = (int)wxLocale::GetSystemLanguage();
9306
9307 wxPyEndAllowThreads(__tstate);
9308 if (PyErr_Occurred()) SWIG_fail;
9309 }
9310 resultobj = SWIG_FromInt((int)result);
9311 return resultobj;
9312 fail:
9313 return NULL;
9314}
9315
9316
9317static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9318 PyObject *resultobj;
9319 int result;
9320 char *kwnames[] = {
9321 NULL
9322 };
9323
9324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9325 {
9326 PyThreadState* __tstate = wxPyBeginAllowThreads();
9327 result = (int)wxLocale::GetSystemEncoding();
9328
9329 wxPyEndAllowThreads(__tstate);
9330 if (PyErr_Occurred()) SWIG_fail;
9331 }
9332 resultobj = SWIG_FromInt((int)result);
9333 return resultobj;
9334 fail:
9335 return NULL;
9336}
9337
9338
9339static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9340 PyObject *resultobj;
9341 wxString result;
9342 char *kwnames[] = {
9343 NULL
9344 };
9345
9346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 result = wxLocale::GetSystemEncodingName();
9350
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 {
9355#if wxUSE_UNICODE
9356 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9357#else
9358 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9359#endif
9360 }
9361 return resultobj;
9362 fail:
9363 return NULL;
9364}
9365
9366
9367static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9368 PyObject *resultobj;
9369 wxLocale *arg1 = (wxLocale *) 0 ;
9370 bool result;
9371 PyObject * obj0 = 0 ;
9372 char *kwnames[] = {
9373 (char *) "self", NULL
9374 };
9375
9376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9379 {
9380 PyThreadState* __tstate = wxPyBeginAllowThreads();
9381 result = (bool)((wxLocale const *)arg1)->IsOk();
9382
9383 wxPyEndAllowThreads(__tstate);
9384 if (PyErr_Occurred()) SWIG_fail;
9385 }
9386 {
9387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9388 }
9389 return resultobj;
9390 fail:
9391 return NULL;
9392}
9393
9394
9395static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9396 PyObject *resultobj;
9397 wxLocale *arg1 = (wxLocale *) 0 ;
9398 wxString result;
9399 PyObject * obj0 = 0 ;
9400 char *kwnames[] = {
9401 (char *) "self", NULL
9402 };
9403
9404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9407 {
9408 PyThreadState* __tstate = wxPyBeginAllowThreads();
9409 result = ((wxLocale const *)arg1)->GetLocale();
9410
9411 wxPyEndAllowThreads(__tstate);
9412 if (PyErr_Occurred()) SWIG_fail;
9413 }
9414 {
9415#if wxUSE_UNICODE
9416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9417#else
9418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9419#endif
9420 }
9421 return resultobj;
9422 fail:
9423 return NULL;
9424}
9425
9426
9427static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9428 PyObject *resultobj;
9429 wxLocale *arg1 = (wxLocale *) 0 ;
9430 int result;
9431 PyObject * obj0 = 0 ;
9432 char *kwnames[] = {
9433 (char *) "self", NULL
9434 };
9435
9436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9439 {
9440 PyThreadState* __tstate = wxPyBeginAllowThreads();
9441 result = (int)((wxLocale const *)arg1)->GetLanguage();
9442
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 resultobj = SWIG_FromInt((int)result);
9447 return resultobj;
9448 fail:
9449 return NULL;
9450}
9451
9452
9453static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9454 PyObject *resultobj;
9455 wxLocale *arg1 = (wxLocale *) 0 ;
9456 wxString result;
9457 PyObject * obj0 = 0 ;
9458 char *kwnames[] = {
9459 (char *) "self", NULL
9460 };
9461
9462 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9463 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9464 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9465 {
9466 PyThreadState* __tstate = wxPyBeginAllowThreads();
9467 result = ((wxLocale const *)arg1)->GetSysName();
9468
9469 wxPyEndAllowThreads(__tstate);
9470 if (PyErr_Occurred()) SWIG_fail;
9471 }
9472 {
9473#if wxUSE_UNICODE
9474 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9475#else
9476 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9477#endif
9478 }
9479 return resultobj;
9480 fail:
9481 return NULL;
9482}
9483
9484
9485static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9486 PyObject *resultobj;
9487 wxLocale *arg1 = (wxLocale *) 0 ;
9488 wxString result;
9489 PyObject * obj0 = 0 ;
9490 char *kwnames[] = {
9491 (char *) "self", NULL
9492 };
9493
9494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9497 {
9498 PyThreadState* __tstate = wxPyBeginAllowThreads();
9499 result = ((wxLocale const *)arg1)->GetCanonicalName();
9500
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 {
9505#if wxUSE_UNICODE
9506 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9507#else
9508 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9509#endif
9510 }
9511 return resultobj;
9512 fail:
9513 return NULL;
9514}
9515
9516
9517static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9518 PyObject *resultobj;
9519 wxString *arg1 = 0 ;
9520 bool temp1 = False ;
9521 PyObject * obj0 = 0 ;
9522 char *kwnames[] = {
9523 (char *) "prefix", NULL
9524 };
9525
9526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9527 {
9528 arg1 = wxString_in_helper(obj0);
9529 if (arg1 == NULL) SWIG_fail;
9530 temp1 = True;
9531 }
9532 {
9533 PyThreadState* __tstate = wxPyBeginAllowThreads();
9534 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9535
9536 wxPyEndAllowThreads(__tstate);
9537 if (PyErr_Occurred()) SWIG_fail;
9538 }
9539 Py_INCREF(Py_None); resultobj = Py_None;
9540 {
9541 if (temp1)
9542 delete arg1;
9543 }
9544 return resultobj;
9545 fail:
9546 {
9547 if (temp1)
9548 delete arg1;
9549 }
9550 return NULL;
9551}
9552
9553
9554static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9555 PyObject *resultobj;
9556 wxLocale *arg1 = (wxLocale *) 0 ;
9557 wxString *arg2 = 0 ;
9558 bool result;
9559 bool temp2 = False ;
9560 PyObject * obj0 = 0 ;
9561 PyObject * obj1 = 0 ;
9562 char *kwnames[] = {
9563 (char *) "self",(char *) "szDomain", NULL
9564 };
9565
9566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9569 {
9570 arg2 = wxString_in_helper(obj1);
9571 if (arg2 == NULL) SWIG_fail;
9572 temp2 = True;
9573 }
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9577
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 {
9582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9583 }
9584 {
9585 if (temp2)
9586 delete arg2;
9587 }
9588 return resultobj;
9589 fail:
9590 {
9591 if (temp2)
9592 delete arg2;
9593 }
9594 return NULL;
9595}
9596
9597
9598static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9599 PyObject *resultobj;
9600 wxLocale *arg1 = (wxLocale *) 0 ;
9601 wxString *arg2 = 0 ;
9602 bool result;
9603 bool temp2 = False ;
9604 PyObject * obj0 = 0 ;
9605 PyObject * obj1 = 0 ;
9606 char *kwnames[] = {
9607 (char *) "self",(char *) "szDomain", NULL
9608 };
9609
9610 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9611 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9612 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9613 {
9614 arg2 = wxString_in_helper(obj1);
9615 if (arg2 == NULL) SWIG_fail;
9616 temp2 = True;
9617 }
9618 {
9619 PyThreadState* __tstate = wxPyBeginAllowThreads();
9620 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9621
9622 wxPyEndAllowThreads(__tstate);
9623 if (PyErr_Occurred()) SWIG_fail;
9624 }
9625 {
9626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9627 }
9628 {
9629 if (temp2)
9630 delete arg2;
9631 }
9632 return resultobj;
9633 fail:
9634 {
9635 if (temp2)
9636 delete arg2;
9637 }
9638 return NULL;
9639}
9640
9641
9642static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj;
9644 int arg1 ;
9645 wxLanguageInfo *result;
9646 PyObject * obj0 = 0 ;
9647 char *kwnames[] = {
9648 (char *) "lang", NULL
9649 };
9650
9651 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9652 arg1 = (int) SWIG_AsInt(obj0);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 {
9655 PyThreadState* __tstate = wxPyBeginAllowThreads();
9656 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9657
9658 wxPyEndAllowThreads(__tstate);
9659 if (PyErr_Occurred()) SWIG_fail;
9660 }
9661 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9662 return resultobj;
9663 fail:
9664 return NULL;
9665}
9666
9667
9668static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9669 PyObject *resultobj;
9670 int arg1 ;
9671 wxString result;
9672 PyObject * obj0 = 0 ;
9673 char *kwnames[] = {
9674 (char *) "lang", NULL
9675 };
9676
9677 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9678 arg1 = (int) SWIG_AsInt(obj0);
9679 if (PyErr_Occurred()) SWIG_fail;
9680 {
9681 PyThreadState* __tstate = wxPyBeginAllowThreads();
9682 result = wxLocale::GetLanguageName(arg1);
9683
9684 wxPyEndAllowThreads(__tstate);
9685 if (PyErr_Occurred()) SWIG_fail;
9686 }
9687 {
9688#if wxUSE_UNICODE
9689 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9690#else
9691 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9692#endif
9693 }
9694 return resultobj;
9695 fail:
9696 return NULL;
9697}
9698
9699
9700static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9701 PyObject *resultobj;
9702 wxString *arg1 = 0 ;
9703 wxLanguageInfo *result;
9704 bool temp1 = False ;
9705 PyObject * obj0 = 0 ;
9706 char *kwnames[] = {
9707 (char *) "locale", NULL
9708 };
9709
9710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9711 {
9712 arg1 = wxString_in_helper(obj0);
9713 if (arg1 == NULL) SWIG_fail;
9714 temp1 = True;
9715 }
9716 {
9717 PyThreadState* __tstate = wxPyBeginAllowThreads();
9718 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9719
9720 wxPyEndAllowThreads(__tstate);
9721 if (PyErr_Occurred()) SWIG_fail;
9722 }
9723 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9724 {
9725 if (temp1)
9726 delete arg1;
9727 }
9728 return resultobj;
9729 fail:
9730 {
9731 if (temp1)
9732 delete arg1;
9733 }
9734 return NULL;
9735}
9736
9737
9738static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9739 PyObject *resultobj;
9740 wxLanguageInfo *arg1 = 0 ;
9741 PyObject * obj0 = 0 ;
9742 char *kwnames[] = {
9743 (char *) "info", NULL
9744 };
9745
9746 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9747 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9748 SWIG_POINTER_EXCEPTION | 0)) == -1)
9749 SWIG_fail;
9750 if (arg1 == NULL) {
9751 PyErr_SetString(PyExc_TypeError,"null reference");
9752 SWIG_fail;
9753 }
9754 {
9755 PyThreadState* __tstate = wxPyBeginAllowThreads();
9756 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9757
9758 wxPyEndAllowThreads(__tstate);
9759 if (PyErr_Occurred()) SWIG_fail;
9760 }
9761 Py_INCREF(Py_None); resultobj = Py_None;
9762 return resultobj;
9763 fail:
9764 return NULL;
9765}
9766
9767
9768static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9769 PyObject *resultobj;
9770 wxLocale *arg1 = (wxLocale *) 0 ;
9771 wxString *arg2 = 0 ;
9772 wxString const &arg3_defvalue = wxPyEmptyString ;
9773 wxString *arg3 = (wxString *) &arg3_defvalue ;
9774 wxString result;
9775 bool temp2 = False ;
9776 bool temp3 = False ;
9777 PyObject * obj0 = 0 ;
9778 PyObject * obj1 = 0 ;
9779 PyObject * obj2 = 0 ;
9780 char *kwnames[] = {
9781 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9782 };
9783
9784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9787 {
9788 arg2 = wxString_in_helper(obj1);
9789 if (arg2 == NULL) SWIG_fail;
9790 temp2 = True;
9791 }
9792 if (obj2) {
9793 {
9794 arg3 = wxString_in_helper(obj2);
9795 if (arg3 == NULL) SWIG_fail;
9796 temp3 = True;
9797 }
9798 }
9799 {
9800 PyThreadState* __tstate = wxPyBeginAllowThreads();
9801 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9802
9803 wxPyEndAllowThreads(__tstate);
9804 if (PyErr_Occurred()) SWIG_fail;
9805 }
9806 {
9807#if wxUSE_UNICODE
9808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9809#else
9810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9811#endif
9812 }
9813 {
9814 if (temp2)
9815 delete arg2;
9816 }
9817 {
9818 if (temp3)
9819 delete arg3;
9820 }
9821 return resultobj;
9822 fail:
9823 {
9824 if (temp2)
9825 delete arg2;
9826 }
9827 {
9828 if (temp3)
9829 delete arg3;
9830 }
9831 return NULL;
9832}
9833
9834
9835static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9836 PyObject *resultobj;
9837 wxLocale *arg1 = (wxLocale *) 0 ;
9838 wxString *result;
9839 PyObject * obj0 = 0 ;
9840 char *kwnames[] = {
9841 (char *) "self", NULL
9842 };
9843
9844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9847 {
9848 PyThreadState* __tstate = wxPyBeginAllowThreads();
9849 {
9850 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9851 result = (wxString *) &_result_ref;
9852 }
9853
9854 wxPyEndAllowThreads(__tstate);
9855 if (PyErr_Occurred()) SWIG_fail;
9856 }
9857 {
9858#if wxUSE_UNICODE
9859 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9860#else
9861 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9862#endif
9863 }
9864 return resultobj;
9865 fail:
9866 return NULL;
9867}
9868
9869
9870static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9871 PyObject *obj;
9872 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9873 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9874 Py_INCREF(obj);
9875 return Py_BuildValue((char *)"");
9876}
9877static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9878 PyObject *resultobj;
9879 wxLocale *result;
9880 char *kwnames[] = {
9881 NULL
9882 };
9883
9884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 result = (wxLocale *)wxGetLocale();
9888
9889 wxPyEndAllowThreads(__tstate);
9890 if (PyErr_Occurred()) SWIG_fail;
9891 }
9892 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9893 return resultobj;
9894 fail:
9895 return NULL;
9896}
9897
9898
9899static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9900 PyObject *resultobj;
9901 wxString *arg1 = 0 ;
9902 wxString result;
9903 bool temp1 = False ;
9904 PyObject * obj0 = 0 ;
9905
9906 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9907 {
9908 arg1 = wxString_in_helper(obj0);
9909 if (arg1 == NULL) SWIG_fail;
9910 temp1 = True;
9911 }
9912 {
9913 PyThreadState* __tstate = wxPyBeginAllowThreads();
9914 result = wxGetTranslation((wxString const &)*arg1);
9915
9916 wxPyEndAllowThreads(__tstate);
9917 if (PyErr_Occurred()) SWIG_fail;
9918 }
9919 {
9920#if wxUSE_UNICODE
9921 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9922#else
9923 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9924#endif
9925 }
9926 {
9927 if (temp1)
9928 delete arg1;
9929 }
9930 return resultobj;
9931 fail:
9932 {
9933 if (temp1)
9934 delete arg1;
9935 }
9936 return NULL;
9937}
9938
9939
9940static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9941 PyObject *resultobj;
9942 wxString *arg1 = 0 ;
9943 wxString *arg2 = 0 ;
9944 size_t arg3 ;
9945 wxString result;
9946 bool temp1 = False ;
9947 bool temp2 = False ;
9948 PyObject * obj0 = 0 ;
9949 PyObject * obj1 = 0 ;
9950 PyObject * obj2 = 0 ;
9951
9952 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9953 {
9954 arg1 = wxString_in_helper(obj0);
9955 if (arg1 == NULL) SWIG_fail;
9956 temp1 = True;
9957 }
9958 {
9959 arg2 = wxString_in_helper(obj1);
9960 if (arg2 == NULL) SWIG_fail;
9961 temp2 = True;
9962 }
9963 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9964 if (PyErr_Occurred()) SWIG_fail;
9965 {
9966 PyThreadState* __tstate = wxPyBeginAllowThreads();
9967 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9968
9969 wxPyEndAllowThreads(__tstate);
9970 if (PyErr_Occurred()) SWIG_fail;
9971 }
9972 {
9973#if wxUSE_UNICODE
9974 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9975#else
9976 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9977#endif
9978 }
9979 {
9980 if (temp1)
9981 delete arg1;
9982 }
9983 {
9984 if (temp2)
9985 delete arg2;
9986 }
9987 return resultobj;
9988 fail:
9989 {
9990 if (temp1)
9991 delete arg1;
9992 }
9993 {
9994 if (temp2)
9995 delete arg2;
9996 }
9997 return NULL;
9998}
9999
10000
10001static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
10002 int argc;
10003 PyObject *argv[4];
10004 int ii;
10005
10006 argc = PyObject_Length(args);
10007 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10008 argv[ii] = PyTuple_GetItem(args,ii);
10009 }
10010 if (argc == 1) {
10011 int _v;
10012 {
10013 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10014 }
10015 if (_v) {
10016 return _wrap_GetTranslation__SWIG_0(self,args);
10017 }
10018 }
10019 if (argc == 3) {
10020 int _v;
10021 {
10022 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10023 }
10024 if (_v) {
10025 {
10026 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10027 }
10028 if (_v) {
10029 _v = SWIG_CheckUnsignedLong(argv[2]);
10030 if (_v) {
10031 return _wrap_GetTranslation__SWIG_1(self,args);
10032 }
10033 }
10034 }
10035 }
10036
10037 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10038 return NULL;
10039}
10040
10041
10042static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10043 PyObject *resultobj;
10044 wxEncodingConverter *result;
10045 char *kwnames[] = {
10046 NULL
10047 };
10048
10049 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10050 {
10051 PyThreadState* __tstate = wxPyBeginAllowThreads();
10052 result = (wxEncodingConverter *)new wxEncodingConverter();
10053
10054 wxPyEndAllowThreads(__tstate);
10055 if (PyErr_Occurred()) SWIG_fail;
10056 }
10057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10058 return resultobj;
10059 fail:
10060 return NULL;
10061}
10062
10063
10064static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10065 PyObject *resultobj;
10066 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10067 PyObject * obj0 = 0 ;
10068 char *kwnames[] = {
10069 (char *) "self", NULL
10070 };
10071
10072 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10073 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10074 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10075 {
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 delete arg1;
10078
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 Py_INCREF(Py_None); resultobj = Py_None;
10083 return resultobj;
10084 fail:
10085 return NULL;
10086}
10087
10088
10089static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10090 PyObject *resultobj;
10091 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10092 int arg2 ;
10093 int arg3 ;
10094 int arg4 = (int) wxCONVERT_STRICT ;
10095 bool result;
10096 PyObject * obj0 = 0 ;
10097 PyObject * obj1 = 0 ;
10098 PyObject * obj2 = 0 ;
10099 PyObject * obj3 = 0 ;
10100 char *kwnames[] = {
10101 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10102 };
10103
10104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10107 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10110 if (PyErr_Occurred()) SWIG_fail;
10111 if (obj3) {
10112 arg4 = (int) SWIG_AsInt(obj3);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 }
10115 {
10116 PyThreadState* __tstate = wxPyBeginAllowThreads();
10117 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10118
10119 wxPyEndAllowThreads(__tstate);
10120 if (PyErr_Occurred()) SWIG_fail;
10121 }
10122 {
10123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10124 }
10125 return resultobj;
10126 fail:
10127 return NULL;
10128}
10129
10130
10131static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10132 PyObject *resultobj;
10133 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10134 wxString *arg2 = 0 ;
10135 wxString result;
10136 bool temp2 = False ;
10137 PyObject * obj0 = 0 ;
10138 PyObject * obj1 = 0 ;
10139 char *kwnames[] = {
10140 (char *) "self",(char *) "input", NULL
10141 };
10142
10143 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10144 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10145 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10146 {
10147 arg2 = wxString_in_helper(obj1);
10148 if (arg2 == NULL) SWIG_fail;
10149 temp2 = True;
10150 }
10151 {
10152 PyThreadState* __tstate = wxPyBeginAllowThreads();
10153 result = (arg1)->Convert((wxString const &)*arg2);
10154
10155 wxPyEndAllowThreads(__tstate);
10156 if (PyErr_Occurred()) SWIG_fail;
10157 }
10158 {
10159#if wxUSE_UNICODE
10160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10161#else
10162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10163#endif
10164 }
10165 {
10166 if (temp2)
10167 delete arg2;
10168 }
10169 return resultobj;
10170 fail:
10171 {
10172 if (temp2)
10173 delete arg2;
10174 }
10175 return NULL;
10176}
10177
10178
10179static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10180 PyObject *resultobj;
10181 int arg1 ;
10182 int arg2 = (int) wxPLATFORM_CURRENT ;
10183 wxFontEncodingArray result;
10184 PyObject * obj0 = 0 ;
10185 PyObject * obj1 = 0 ;
10186 char *kwnames[] = {
10187 (char *) "enc",(char *) "platform", NULL
10188 };
10189
10190 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10191 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 if (obj1) {
10194 arg2 = (int) SWIG_AsInt(obj1);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10200
10201 wxPyEndAllowThreads(__tstate);
10202 if (PyErr_Occurred()) SWIG_fail;
10203 }
10204 {
10205 resultobj = PyList_New(0);
10206 for (size_t i=0; i < (&result)->GetCount(); i++) {
10207 PyObject* number = PyInt_FromLong((&result)->Item(i));
10208 PyList_Append(resultobj, number);
10209 Py_DECREF(number);
10210 }
10211 }
10212 return resultobj;
10213 fail:
10214 return NULL;
10215}
10216
10217
10218static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10219 PyObject *resultobj;
10220 int arg1 ;
10221 wxFontEncodingArray result;
10222 PyObject * obj0 = 0 ;
10223 char *kwnames[] = {
10224 (char *) "enc", NULL
10225 };
10226
10227 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10228 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 {
10231 PyThreadState* __tstate = wxPyBeginAllowThreads();
10232 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10233
10234 wxPyEndAllowThreads(__tstate);
10235 if (PyErr_Occurred()) SWIG_fail;
10236 }
10237 {
10238 resultobj = PyList_New(0);
10239 for (size_t i=0; i < (&result)->GetCount(); i++) {
10240 PyObject* number = PyInt_FromLong((&result)->Item(i));
10241 PyList_Append(resultobj, number);
10242 Py_DECREF(number);
10243 }
10244 }
10245 return resultobj;
10246 fail:
10247 return NULL;
10248}
10249
10250
10251static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10252 PyObject *resultobj;
10253 int arg1 ;
10254 int arg2 ;
10255 bool result;
10256 PyObject * obj0 = 0 ;
10257 PyObject * obj1 = 0 ;
10258 char *kwnames[] = {
10259 (char *) "encIn",(char *) "encOut", NULL
10260 };
10261
10262 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10263 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10264 if (PyErr_Occurred()) SWIG_fail;
10265 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 {
10275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10276 }
10277 return resultobj;
10278 fail:
10279 return NULL;
10280}
10281
10282
10283static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10284 PyObject *obj;
10285 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10286 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10287 Py_INCREF(obj);
10288 return Py_BuildValue((char *)"");
10289}
10290static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10291 PyObject *resultobj;
10292 wxDC *arg1 = (wxDC *) 0 ;
10293 PyObject * obj0 = 0 ;
10294 char *kwnames[] = {
10295 (char *) "self", NULL
10296 };
10297
10298 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10299 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10300 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10301 {
10302 PyThreadState* __tstate = wxPyBeginAllowThreads();
10303 delete arg1;
10304
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 Py_INCREF(Py_None); resultobj = Py_None;
10309 return resultobj;
10310 fail:
10311 return NULL;
10312}
10313
10314
10315static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj;
10317 wxDC *arg1 = (wxDC *) 0 ;
10318 PyObject * obj0 = 0 ;
10319 char *kwnames[] = {
10320 (char *) "self", NULL
10321 };
10322
10323 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10324 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10325 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10326 {
10327 PyThreadState* __tstate = wxPyBeginAllowThreads();
10328 (arg1)->BeginDrawing();
10329
10330 wxPyEndAllowThreads(__tstate);
10331 if (PyErr_Occurred()) SWIG_fail;
10332 }
10333 Py_INCREF(Py_None); resultobj = Py_None;
10334 return resultobj;
10335 fail:
10336 return NULL;
10337}
10338
10339
10340static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10341 PyObject *resultobj;
10342 wxDC *arg1 = (wxDC *) 0 ;
10343 PyObject * obj0 = 0 ;
10344 char *kwnames[] = {
10345 (char *) "self", NULL
10346 };
10347
10348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10351 {
10352 PyThreadState* __tstate = wxPyBeginAllowThreads();
10353 (arg1)->EndDrawing();
10354
10355 wxPyEndAllowThreads(__tstate);
10356 if (PyErr_Occurred()) SWIG_fail;
10357 }
10358 Py_INCREF(Py_None); resultobj = Py_None;
10359 return resultobj;
10360 fail:
10361 return NULL;
10362}
10363
10364
d6c14a4c 10365static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10366 PyObject *resultobj;
10367 wxDC *arg1 = (wxDC *) 0 ;
10368 int arg2 ;
10369 int arg3 ;
10370 wxColour *arg4 = 0 ;
10371 int arg5 = (int) wxFLOOD_SURFACE ;
10372 bool result;
10373 wxColour temp4 ;
10374 PyObject * obj0 = 0 ;
10375 PyObject * obj1 = 0 ;
10376 PyObject * obj2 = 0 ;
10377 PyObject * obj3 = 0 ;
10378 PyObject * obj4 = 0 ;
10379 char *kwnames[] = {
10380 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10381 };
10382
d6c14a4c 10383 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10384 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10385 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10386 arg2 = (int) SWIG_AsInt(obj1);
10387 if (PyErr_Occurred()) SWIG_fail;
10388 arg3 = (int) SWIG_AsInt(obj2);
10389 if (PyErr_Occurred()) SWIG_fail;
10390 {
10391 arg4 = &temp4;
10392 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10393 }
10394 if (obj4) {
10395 arg5 = (int) SWIG_AsInt(obj4);
10396 if (PyErr_Occurred()) SWIG_fail;
10397 }
10398 {
10399 PyThreadState* __tstate = wxPyBeginAllowThreads();
10400 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10401
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 {
10406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10407 }
10408 return resultobj;
10409 fail:
10410 return NULL;
10411}
10412
10413
d6c14a4c 10414static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10415 PyObject *resultobj;
10416 wxDC *arg1 = (wxDC *) 0 ;
10417 wxPoint *arg2 = 0 ;
10418 wxColour *arg3 = 0 ;
10419 int arg4 = (int) wxFLOOD_SURFACE ;
10420 bool result;
10421 wxPoint temp2 ;
10422 wxColour temp3 ;
10423 PyObject * obj0 = 0 ;
10424 PyObject * obj1 = 0 ;
10425 PyObject * obj2 = 0 ;
10426 PyObject * obj3 = 0 ;
10427 char *kwnames[] = {
10428 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10429 };
10430
d6c14a4c 10431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
10432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10434 {
10435 arg2 = &temp2;
10436 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10437 }
10438 {
10439 arg3 = &temp3;
10440 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10441 }
10442 if (obj3) {
10443 arg4 = (int) SWIG_AsInt(obj3);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 {
10447 PyThreadState* __tstate = wxPyBeginAllowThreads();
10448 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10449
10450 wxPyEndAllowThreads(__tstate);
10451 if (PyErr_Occurred()) SWIG_fail;
10452 }
10453 {
10454 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10455 }
10456 return resultobj;
10457 fail:
10458 return NULL;
10459}
10460
10461
d6c14a4c 10462static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10463 PyObject *resultobj;
10464 wxDC *arg1 = (wxDC *) 0 ;
10465 int arg2 ;
10466 int arg3 ;
10467 wxColour result;
10468 PyObject * obj0 = 0 ;
10469 PyObject * obj1 = 0 ;
10470 PyObject * obj2 = 0 ;
10471 char *kwnames[] = {
10472 (char *) "self",(char *) "x",(char *) "y", NULL
10473 };
10474
d6c14a4c 10475 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10476 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10477 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10478 arg2 = (int) SWIG_AsInt(obj1);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 arg3 = (int) SWIG_AsInt(obj2);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 {
10483 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10484 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
10485
10486 wxPyEndAllowThreads(__tstate);
10487 if (PyErr_Occurred()) SWIG_fail;
10488 }
10489 {
10490 wxColour * resultptr;
10491 resultptr = new wxColour((wxColour &) result);
10492 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10493 }
10494 return resultobj;
10495 fail:
10496 return NULL;
10497}
10498
10499
d6c14a4c 10500static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10501 PyObject *resultobj;
10502 wxDC *arg1 = (wxDC *) 0 ;
10503 wxPoint *arg2 = 0 ;
10504 wxColour result;
10505 wxPoint temp2 ;
10506 PyObject * obj0 = 0 ;
10507 PyObject * obj1 = 0 ;
10508 char *kwnames[] = {
10509 (char *) "self",(char *) "pt", NULL
10510 };
10511
d6c14a4c 10512 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10513 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10514 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10515 {
10516 arg2 = &temp2;
10517 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10518 }
10519 {
10520 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10521 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
10522
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 {
10527 wxColour * resultptr;
10528 resultptr = new wxColour((wxColour &) result);
10529 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10530 }
10531 return resultobj;
10532 fail:
10533 return NULL;
10534}
10535
10536
d6c14a4c 10537static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10538 PyObject *resultobj;
10539 wxDC *arg1 = (wxDC *) 0 ;
10540 int arg2 ;
10541 int arg3 ;
10542 int arg4 ;
10543 int arg5 ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10546 PyObject * obj2 = 0 ;
10547 PyObject * obj3 = 0 ;
10548 PyObject * obj4 = 0 ;
10549 char *kwnames[] = {
10550 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10551 };
10552
d6c14a4c 10553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10556 arg2 = (int) SWIG_AsInt(obj1);
10557 if (PyErr_Occurred()) SWIG_fail;
10558 arg3 = (int) SWIG_AsInt(obj2);
10559 if (PyErr_Occurred()) SWIG_fail;
10560 arg4 = (int) SWIG_AsInt(obj3);
10561 if (PyErr_Occurred()) SWIG_fail;
10562 arg5 = (int) SWIG_AsInt(obj4);
10563 if (PyErr_Occurred()) SWIG_fail;
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10567
10568 wxPyEndAllowThreads(__tstate);
10569 if (PyErr_Occurred()) SWIG_fail;
10570 }
10571 Py_INCREF(Py_None); resultobj = Py_None;
10572 return resultobj;
10573 fail:
10574 return NULL;
10575}
10576
10577
d6c14a4c 10578static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10579 PyObject *resultobj;
10580 wxDC *arg1 = (wxDC *) 0 ;
10581 wxPoint *arg2 = 0 ;
10582 wxPoint *arg3 = 0 ;
10583 wxPoint temp2 ;
10584 wxPoint temp3 ;
10585 PyObject * obj0 = 0 ;
10586 PyObject * obj1 = 0 ;
10587 PyObject * obj2 = 0 ;
10588 char *kwnames[] = {
10589 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10590 };
10591
d6c14a4c 10592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10595 {
10596 arg2 = &temp2;
10597 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10598 }
10599 {
10600 arg3 = &temp3;
10601 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10602 }
10603 {
10604 PyThreadState* __tstate = wxPyBeginAllowThreads();
10605 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10606
10607 wxPyEndAllowThreads(__tstate);
10608 if (PyErr_Occurred()) SWIG_fail;
10609 }
10610 Py_INCREF(Py_None); resultobj = Py_None;
10611 return resultobj;
10612 fail:
10613 return NULL;
10614}
10615
10616
d6c14a4c 10617static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10618 PyObject *resultobj;
10619 wxDC *arg1 = (wxDC *) 0 ;
10620 int arg2 ;
10621 int arg3 ;
10622 PyObject * obj0 = 0 ;
10623 PyObject * obj1 = 0 ;
10624 PyObject * obj2 = 0 ;
10625 char *kwnames[] = {
10626 (char *) "self",(char *) "x",(char *) "y", NULL
10627 };
10628
d6c14a4c 10629 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10630 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10631 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10632 arg2 = (int) SWIG_AsInt(obj1);
10633 if (PyErr_Occurred()) SWIG_fail;
10634 arg3 = (int) SWIG_AsInt(obj2);
10635 if (PyErr_Occurred()) SWIG_fail;
10636 {
10637 PyThreadState* __tstate = wxPyBeginAllowThreads();
10638 (arg1)->CrossHair(arg2,arg3);
10639
10640 wxPyEndAllowThreads(__tstate);
10641 if (PyErr_Occurred()) SWIG_fail;
10642 }
10643 Py_INCREF(Py_None); resultobj = Py_None;
10644 return resultobj;
10645 fail:
10646 return NULL;
10647}
10648
10649
d6c14a4c 10650static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10651 PyObject *resultobj;
10652 wxDC *arg1 = (wxDC *) 0 ;
10653 wxPoint *arg2 = 0 ;
10654 wxPoint temp2 ;
10655 PyObject * obj0 = 0 ;
10656 PyObject * obj1 = 0 ;
10657 char *kwnames[] = {
10658 (char *) "self",(char *) "pt", NULL
10659 };
10660
d6c14a4c 10661 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10662 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10663 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10664 {
10665 arg2 = &temp2;
10666 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10667 }
10668 {
10669 PyThreadState* __tstate = wxPyBeginAllowThreads();
10670 (arg1)->CrossHair((wxPoint const &)*arg2);
10671
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 Py_INCREF(Py_None); resultobj = Py_None;
10676 return resultobj;
10677 fail:
10678 return NULL;
10679}
10680
10681
d6c14a4c 10682static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10683 PyObject *resultobj;
10684 wxDC *arg1 = (wxDC *) 0 ;
10685 int arg2 ;
10686 int arg3 ;
10687 int arg4 ;
10688 int arg5 ;
10689 int arg6 ;
10690 int arg7 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 PyObject * obj2 = 0 ;
10694 PyObject * obj3 = 0 ;
10695 PyObject * obj4 = 0 ;
10696 PyObject * obj5 = 0 ;
10697 PyObject * obj6 = 0 ;
10698 char *kwnames[] = {
10699 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10700 };
10701
d6c14a4c 10702 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
10703 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10704 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10705 arg2 = (int) SWIG_AsInt(obj1);
10706 if (PyErr_Occurred()) SWIG_fail;
10707 arg3 = (int) SWIG_AsInt(obj2);
10708 if (PyErr_Occurred()) SWIG_fail;
10709 arg4 = (int) SWIG_AsInt(obj3);
10710 if (PyErr_Occurred()) SWIG_fail;
10711 arg5 = (int) SWIG_AsInt(obj4);
10712 if (PyErr_Occurred()) SWIG_fail;
10713 arg6 = (int) SWIG_AsInt(obj5);
10714 if (PyErr_Occurred()) SWIG_fail;
10715 arg7 = (int) SWIG_AsInt(obj6);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 {
10718 PyThreadState* __tstate = wxPyBeginAllowThreads();
10719 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10720
10721 wxPyEndAllowThreads(__tstate);
10722 if (PyErr_Occurred()) SWIG_fail;
10723 }
10724 Py_INCREF(Py_None); resultobj = Py_None;
10725 return resultobj;
10726 fail:
10727 return NULL;
10728}
10729
10730
d6c14a4c 10731static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10732 PyObject *resultobj;
10733 wxDC *arg1 = (wxDC *) 0 ;
10734 wxPoint *arg2 = 0 ;
10735 wxPoint *arg3 = 0 ;
10736 wxPoint *arg4 = 0 ;
10737 wxPoint temp2 ;
10738 wxPoint temp3 ;
10739 wxPoint temp4 ;
10740 PyObject * obj0 = 0 ;
10741 PyObject * obj1 = 0 ;
10742 PyObject * obj2 = 0 ;
10743 PyObject * obj3 = 0 ;
10744 char *kwnames[] = {
10745 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10746 };
10747
d6c14a4c 10748 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
10749 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10750 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10751 {
10752 arg2 = &temp2;
10753 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10754 }
10755 {
10756 arg3 = &temp3;
10757 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10758 }
10759 {
10760 arg4 = &temp4;
10761 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10762 }
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10766
10767 wxPyEndAllowThreads(__tstate);
10768 if (PyErr_Occurred()) SWIG_fail;
10769 }
10770 Py_INCREF(Py_None); resultobj = Py_None;
10771 return resultobj;
10772 fail:
10773 return NULL;
10774}
10775
10776
d6c14a4c 10777static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10778 PyObject *resultobj;
10779 wxDC *arg1 = (wxDC *) 0 ;
10780 int arg2 ;
10781 int arg3 ;
10782 int arg4 ;
10783 int arg5 ;
10784 PyObject * obj0 = 0 ;
10785 PyObject * obj1 = 0 ;
10786 PyObject * obj2 = 0 ;
10787 PyObject * obj3 = 0 ;
10788 PyObject * obj4 = 0 ;
10789 char *kwnames[] = {
10790 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10791 };
10792
d6c14a4c 10793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10796 arg2 = (int) SWIG_AsInt(obj1);
10797 if (PyErr_Occurred()) SWIG_fail;
10798 arg3 = (int) SWIG_AsInt(obj2);
10799 if (PyErr_Occurred()) SWIG_fail;
10800 arg4 = (int) SWIG_AsInt(obj3);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 arg5 = (int) SWIG_AsInt(obj4);
10803 if (PyErr_Occurred()) SWIG_fail;
10804 {
10805 PyThreadState* __tstate = wxPyBeginAllowThreads();
10806 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10807
10808 wxPyEndAllowThreads(__tstate);
10809 if (PyErr_Occurred()) SWIG_fail;
10810 }
10811 Py_INCREF(Py_None); resultobj = Py_None;
10812 return resultobj;
10813 fail:
10814 return NULL;
10815}
10816
10817
d6c14a4c 10818static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10819 PyObject *resultobj;
10820 wxDC *arg1 = (wxDC *) 0 ;
10821 wxRect *arg2 = 0 ;
10822 wxRect temp2 ;
10823 PyObject * obj0 = 0 ;
10824 PyObject * obj1 = 0 ;
10825 char *kwnames[] = {
10826 (char *) "self",(char *) "rect", NULL
10827 };
10828
d6c14a4c 10829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10832 {
10833 arg2 = &temp2;
10834 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10835 }
10836 {
10837 PyThreadState* __tstate = wxPyBeginAllowThreads();
10838 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10839
10840 wxPyEndAllowThreads(__tstate);
10841 if (PyErr_Occurred()) SWIG_fail;
10842 }
10843 Py_INCREF(Py_None); resultobj = Py_None;
10844 return resultobj;
10845 fail:
10846 return NULL;
10847}
10848
10849
d6c14a4c 10850static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10851 PyObject *resultobj;
10852 wxDC *arg1 = (wxDC *) 0 ;
10853 int arg2 ;
10854 int arg3 ;
10855 int arg4 ;
10856 int arg5 ;
10857 double arg6 ;
10858 double arg7 ;
10859 PyObject * obj0 = 0 ;
10860 PyObject * obj1 = 0 ;
10861 PyObject * obj2 = 0 ;
10862 PyObject * obj3 = 0 ;
10863 PyObject * obj4 = 0 ;
10864 PyObject * obj5 = 0 ;
10865 PyObject * obj6 = 0 ;
10866 char *kwnames[] = {
10867 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10868 };
10869
d6c14a4c 10870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
10871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10873 arg2 = (int) SWIG_AsInt(obj1);
10874 if (PyErr_Occurred()) SWIG_fail;
10875 arg3 = (int) SWIG_AsInt(obj2);
10876 if (PyErr_Occurred()) SWIG_fail;
10877 arg4 = (int) SWIG_AsInt(obj3);
10878 if (PyErr_Occurred()) SWIG_fail;
10879 arg5 = (int) SWIG_AsInt(obj4);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 arg6 = (double) SWIG_AsDouble(obj5);
10882 if (PyErr_Occurred()) SWIG_fail;
10883 arg7 = (double) SWIG_AsDouble(obj6);
10884 if (PyErr_Occurred()) SWIG_fail;
10885 {
10886 PyThreadState* __tstate = wxPyBeginAllowThreads();
10887 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10888
10889 wxPyEndAllowThreads(__tstate);
10890 if (PyErr_Occurred()) SWIG_fail;
10891 }
10892 Py_INCREF(Py_None); resultobj = Py_None;
10893 return resultobj;
10894 fail:
10895 return NULL;
10896}
10897
10898
d6c14a4c 10899static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10900 PyObject *resultobj;
10901 wxDC *arg1 = (wxDC *) 0 ;
10902 wxPoint *arg2 = 0 ;
10903 wxSize *arg3 = 0 ;
10904 double arg4 ;
10905 double arg5 ;
10906 wxPoint temp2 ;
10907 wxSize temp3 ;
10908 PyObject * obj0 = 0 ;
10909 PyObject * obj1 = 0 ;
10910 PyObject * obj2 = 0 ;
10911 PyObject * obj3 = 0 ;
10912 PyObject * obj4 = 0 ;
10913 char *kwnames[] = {
10914 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10915 };
10916
d6c14a4c 10917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10920 {
10921 arg2 = &temp2;
10922 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10923 }
10924 {
10925 arg3 = &temp3;
10926 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10927 }
10928 arg4 = (double) SWIG_AsDouble(obj3);
10929 if (PyErr_Occurred()) SWIG_fail;
10930 arg5 = (double) SWIG_AsDouble(obj4);
10931 if (PyErr_Occurred()) SWIG_fail;
10932 {
10933 PyThreadState* __tstate = wxPyBeginAllowThreads();
10934 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10935
10936 wxPyEndAllowThreads(__tstate);
10937 if (PyErr_Occurred()) SWIG_fail;
10938 }
10939 Py_INCREF(Py_None); resultobj = Py_None;
10940 return resultobj;
10941 fail:
10942 return NULL;
10943}
10944
10945
d6c14a4c 10946static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10947 PyObject *resultobj;
10948 wxDC *arg1 = (wxDC *) 0 ;
10949 int arg2 ;
10950 int arg3 ;
10951 PyObject * obj0 = 0 ;
10952 PyObject * obj1 = 0 ;
10953 PyObject * obj2 = 0 ;
10954 char *kwnames[] = {
10955 (char *) "self",(char *) "x",(char *) "y", NULL
10956 };
10957
d6c14a4c 10958 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10959 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10960 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10961 arg2 = (int) SWIG_AsInt(obj1);
10962 if (PyErr_Occurred()) SWIG_fail;
10963 arg3 = (int) SWIG_AsInt(obj2);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 {
10966 PyThreadState* __tstate = wxPyBeginAllowThreads();
10967 (arg1)->DrawPoint(arg2,arg3);
10968
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 Py_INCREF(Py_None); resultobj = Py_None;
10973 return resultobj;
10974 fail:
10975 return NULL;
10976}
10977
10978
d6c14a4c 10979static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10980 PyObject *resultobj;
10981 wxDC *arg1 = (wxDC *) 0 ;
10982 wxPoint *arg2 = 0 ;
10983 wxPoint temp2 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char *kwnames[] = {
10987 (char *) "self",(char *) "pt", NULL
10988 };
10989
d6c14a4c 10990 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10991 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10992 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10993 {
10994 arg2 = &temp2;
10995 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10996 }
10997 {
10998 PyThreadState* __tstate = wxPyBeginAllowThreads();
10999 (arg1)->DrawPoint((wxPoint const &)*arg2);
11000
11001 wxPyEndAllowThreads(__tstate);
11002 if (PyErr_Occurred()) SWIG_fail;
11003 }
11004 Py_INCREF(Py_None); resultobj = Py_None;
11005 return resultobj;
11006 fail:
11007 return NULL;
11008}
11009
11010
d6c14a4c 11011static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11012 PyObject *resultobj;
11013 wxDC *arg1 = (wxDC *) 0 ;
11014 int arg2 ;
11015 int arg3 ;
11016 int arg4 ;
11017 int arg5 ;
11018 PyObject * obj0 = 0 ;
11019 PyObject * obj1 = 0 ;
11020 PyObject * obj2 = 0 ;
11021 PyObject * obj3 = 0 ;
11022 PyObject * obj4 = 0 ;
11023 char *kwnames[] = {
11024 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11025 };
11026
d6c14a4c 11027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11030 arg2 = (int) SWIG_AsInt(obj1);
11031 if (PyErr_Occurred()) SWIG_fail;
11032 arg3 = (int) SWIG_AsInt(obj2);
11033 if (PyErr_Occurred()) SWIG_fail;
11034 arg4 = (int) SWIG_AsInt(obj3);
11035 if (PyErr_Occurred()) SWIG_fail;
11036 arg5 = (int) SWIG_AsInt(obj4);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 {
11039 PyThreadState* __tstate = wxPyBeginAllowThreads();
11040 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11041
11042 wxPyEndAllowThreads(__tstate);
11043 if (PyErr_Occurred()) SWIG_fail;
11044 }
11045 Py_INCREF(Py_None); resultobj = Py_None;
11046 return resultobj;
11047 fail:
11048 return NULL;
11049}
11050
11051
d6c14a4c 11052static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11053 PyObject *resultobj;
11054 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11055 wxRect *arg2 = 0 ;
11056 wxRect temp2 ;
d55e5bfc
RD
11057 PyObject * obj0 = 0 ;
11058 PyObject * obj1 = 0 ;
d55e5bfc 11059 char *kwnames[] = {
d6c14a4c 11060 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11061 };
11062
d6c14a4c 11063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11066 {
11067 arg2 = &temp2;
d6c14a4c 11068 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11069 }
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11072 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
11073
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 Py_INCREF(Py_None); resultobj = Py_None;
11078 return resultobj;
11079 fail:
11080 return NULL;
11081}
11082
11083
d6c14a4c 11084static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11085 PyObject *resultobj;
11086 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11087 wxPoint *arg2 = 0 ;
11088 wxSize *arg3 = 0 ;
11089 wxPoint temp2 ;
11090 wxSize temp3 ;
d55e5bfc
RD
11091 PyObject * obj0 = 0 ;
11092 PyObject * obj1 = 0 ;
d6c14a4c 11093 PyObject * obj2 = 0 ;
d55e5bfc 11094 char *kwnames[] = {
d6c14a4c 11095 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11096 };
11097
d6c14a4c 11098 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11099 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11100 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11101 {
11102 arg2 = &temp2;
d6c14a4c
RD
11103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11104 }
11105 {
11106 arg3 = &temp3;
11107 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11108 }
11109 {
11110 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11111 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11112
11113 wxPyEndAllowThreads(__tstate);
11114 if (PyErr_Occurred()) SWIG_fail;
11115 }
11116 Py_INCREF(Py_None); resultobj = Py_None;
11117 return resultobj;
11118 fail:
11119 return NULL;
11120}
11121
11122
d6c14a4c 11123static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11124 PyObject *resultobj;
11125 wxDC *arg1 = (wxDC *) 0 ;
11126 int arg2 ;
11127 int arg3 ;
11128 int arg4 ;
11129 int arg5 ;
11130 double arg6 ;
11131 PyObject * obj0 = 0 ;
11132 PyObject * obj1 = 0 ;
11133 PyObject * obj2 = 0 ;
11134 PyObject * obj3 = 0 ;
11135 PyObject * obj4 = 0 ;
11136 PyObject * obj5 = 0 ;
11137 char *kwnames[] = {
11138 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11139 };
11140
d6c14a4c 11141 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
11142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11144 arg2 = (int) SWIG_AsInt(obj1);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 arg3 = (int) SWIG_AsInt(obj2);
11147 if (PyErr_Occurred()) SWIG_fail;
11148 arg4 = (int) SWIG_AsInt(obj3);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 arg5 = (int) SWIG_AsInt(obj4);
11151 if (PyErr_Occurred()) SWIG_fail;
11152 arg6 = (double) SWIG_AsDouble(obj5);
11153 if (PyErr_Occurred()) SWIG_fail;
11154 {
11155 PyThreadState* __tstate = wxPyBeginAllowThreads();
11156 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11157
11158 wxPyEndAllowThreads(__tstate);
11159 if (PyErr_Occurred()) SWIG_fail;
11160 }
11161 Py_INCREF(Py_None); resultobj = Py_None;
11162 return resultobj;
11163 fail:
11164 return NULL;
11165}
11166
11167
d6c14a4c 11168static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11169 PyObject *resultobj;
11170 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11171 wxRect *arg2 = 0 ;
11172 double arg3 ;
11173 wxRect temp2 ;
d55e5bfc
RD
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 PyObject * obj2 = 0 ;
d55e5bfc 11177 char *kwnames[] = {
d6c14a4c 11178 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
11179 };
11180
d6c14a4c 11181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11184 {
11185 arg2 = &temp2;
d6c14a4c 11186 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11187 }
d6c14a4c 11188 arg3 = (double) SWIG_AsDouble(obj2);
d55e5bfc
RD
11189 if (PyErr_Occurred()) SWIG_fail;
11190 {
11191 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11192 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
11193
11194 wxPyEndAllowThreads(__tstate);
11195 if (PyErr_Occurred()) SWIG_fail;
11196 }
11197 Py_INCREF(Py_None); resultobj = Py_None;
11198 return resultobj;
11199 fail:
11200 return NULL;
11201}
11202
11203
d6c14a4c 11204static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11205 PyObject *resultobj;
11206 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11207 wxPoint *arg2 = 0 ;
11208 wxSize *arg3 = 0 ;
11209 double arg4 ;
11210 wxPoint temp2 ;
11211 wxSize temp3 ;
d55e5bfc
RD
11212 PyObject * obj0 = 0 ;
11213 PyObject * obj1 = 0 ;
11214 PyObject * obj2 = 0 ;
d6c14a4c 11215 PyObject * obj3 = 0 ;
d55e5bfc 11216 char *kwnames[] = {
d6c14a4c 11217 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
11218 };
11219
d6c14a4c 11220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11223 {
11224 arg2 = &temp2;
d6c14a4c 11225 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11226 }
d6c14a4c
RD
11227 {
11228 arg3 = &temp3;
11229 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11230 }
11231 arg4 = (double) SWIG_AsDouble(obj3);
d55e5bfc
RD
11232 if (PyErr_Occurred()) SWIG_fail;
11233 {
11234 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11235 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d55e5bfc
RD
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
d6c14a4c 11247static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11248 PyObject *resultobj;
11249 wxDC *arg1 = (wxDC *) 0 ;
11250 int arg2 ;
11251 int arg3 ;
11252 int arg4 ;
11253 PyObject * obj0 = 0 ;
11254 PyObject * obj1 = 0 ;
11255 PyObject * obj2 = 0 ;
11256 PyObject * obj3 = 0 ;
11257 char *kwnames[] = {
11258 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11259 };
11260
d6c14a4c 11261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11264 arg2 = (int) SWIG_AsInt(obj1);
11265 if (PyErr_Occurred()) SWIG_fail;
11266 arg3 = (int) SWIG_AsInt(obj2);
11267 if (PyErr_Occurred()) SWIG_fail;
11268 arg4 = (int) SWIG_AsInt(obj3);
11269 if (PyErr_Occurred()) SWIG_fail;
11270 {
11271 PyThreadState* __tstate = wxPyBeginAllowThreads();
11272 (arg1)->DrawCircle(arg2,arg3,arg4);
11273
11274 wxPyEndAllowThreads(__tstate);
11275 if (PyErr_Occurred()) SWIG_fail;
11276 }
11277 Py_INCREF(Py_None); resultobj = Py_None;
11278 return resultobj;
11279 fail:
11280 return NULL;
11281}
11282
11283
d6c14a4c 11284static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11285 PyObject *resultobj;
11286 wxDC *arg1 = (wxDC *) 0 ;
11287 wxPoint *arg2 = 0 ;
11288 int arg3 ;
11289 wxPoint temp2 ;
11290 PyObject * obj0 = 0 ;
11291 PyObject * obj1 = 0 ;
11292 PyObject * obj2 = 0 ;
11293 char *kwnames[] = {
11294 (char *) "self",(char *) "pt",(char *) "radius", NULL
11295 };
11296
d6c14a4c 11297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11300 {
11301 arg2 = &temp2;
11302 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11303 }
11304 arg3 = (int) SWIG_AsInt(obj2);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 {
11307 PyThreadState* __tstate = wxPyBeginAllowThreads();
11308 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11309
11310 wxPyEndAllowThreads(__tstate);
11311 if (PyErr_Occurred()) SWIG_fail;
11312 }
11313 Py_INCREF(Py_None); resultobj = Py_None;
11314 return resultobj;
11315 fail:
11316 return NULL;
11317}
11318
11319
d6c14a4c 11320static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11321 PyObject *resultobj;
11322 wxDC *arg1 = (wxDC *) 0 ;
11323 int arg2 ;
11324 int arg3 ;
11325 int arg4 ;
11326 int arg5 ;
11327 PyObject * obj0 = 0 ;
11328 PyObject * obj1 = 0 ;
11329 PyObject * obj2 = 0 ;
11330 PyObject * obj3 = 0 ;
11331 PyObject * obj4 = 0 ;
11332 char *kwnames[] = {
11333 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11334 };
11335
d6c14a4c 11336 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11337 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11338 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11339 arg2 = (int) SWIG_AsInt(obj1);
11340 if (PyErr_Occurred()) SWIG_fail;
11341 arg3 = (int) SWIG_AsInt(obj2);
11342 if (PyErr_Occurred()) SWIG_fail;
11343 arg4 = (int) SWIG_AsInt(obj3);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 arg5 = (int) SWIG_AsInt(obj4);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 {
11348 PyThreadState* __tstate = wxPyBeginAllowThreads();
11349 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11350
11351 wxPyEndAllowThreads(__tstate);
11352 if (PyErr_Occurred()) SWIG_fail;
11353 }
11354 Py_INCREF(Py_None); resultobj = Py_None;
11355 return resultobj;
11356 fail:
11357 return NULL;
11358}
11359
11360
d6c14a4c 11361static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11362 PyObject *resultobj;
11363 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11364 wxRect *arg2 = 0 ;
11365 wxRect temp2 ;
d55e5bfc
RD
11366 PyObject * obj0 = 0 ;
11367 PyObject * obj1 = 0 ;
d55e5bfc 11368 char *kwnames[] = {
d6c14a4c 11369 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11370 };
11371
d6c14a4c 11372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11373 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11374 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11375 {
11376 arg2 = &temp2;
d6c14a4c 11377 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11378 }
11379 {
11380 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11381 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
11382
11383 wxPyEndAllowThreads(__tstate);
11384 if (PyErr_Occurred()) SWIG_fail;
11385 }
11386 Py_INCREF(Py_None); resultobj = Py_None;
11387 return resultobj;
11388 fail:
11389 return NULL;
11390}
11391
11392
d6c14a4c 11393static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11394 PyObject *resultobj;
11395 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11396 wxPoint *arg2 = 0 ;
11397 wxSize *arg3 = 0 ;
11398 wxPoint temp2 ;
11399 wxSize temp3 ;
d55e5bfc
RD
11400 PyObject * obj0 = 0 ;
11401 PyObject * obj1 = 0 ;
d6c14a4c 11402 PyObject * obj2 = 0 ;
d55e5bfc 11403 char *kwnames[] = {
d6c14a4c 11404 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11405 };
11406
d6c14a4c 11407 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11408 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11409 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11410 {
11411 arg2 = &temp2;
d6c14a4c
RD
11412 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11413 }
11414 {
11415 arg3 = &temp3;
11416 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11417 }
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11420 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11421
11422 wxPyEndAllowThreads(__tstate);
11423 if (PyErr_Occurred()) SWIG_fail;
11424 }
11425 Py_INCREF(Py_None); resultobj = Py_None;
11426 return resultobj;
11427 fail:
11428 return NULL;
11429}
11430
11431
d6c14a4c 11432static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11433 PyObject *resultobj;
11434 wxDC *arg1 = (wxDC *) 0 ;
11435 wxIcon *arg2 = 0 ;
11436 int arg3 ;
11437 int arg4 ;
11438 PyObject * obj0 = 0 ;
11439 PyObject * obj1 = 0 ;
11440 PyObject * obj2 = 0 ;
11441 PyObject * obj3 = 0 ;
11442 char *kwnames[] = {
11443 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11444 };
11445
d6c14a4c 11446 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11447 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11448 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11449 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11450 SWIG_POINTER_EXCEPTION | 0)) == -1)
11451 SWIG_fail;
11452 if (arg2 == NULL) {
11453 PyErr_SetString(PyExc_TypeError,"null reference");
11454 SWIG_fail;
11455 }
11456 arg3 = (int) SWIG_AsInt(obj2);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 arg4 = (int) SWIG_AsInt(obj3);
11459 if (PyErr_Occurred()) SWIG_fail;
11460 {
11461 PyThreadState* __tstate = wxPyBeginAllowThreads();
11462 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11463
11464 wxPyEndAllowThreads(__tstate);
11465 if (PyErr_Occurred()) SWIG_fail;
11466 }
11467 Py_INCREF(Py_None); resultobj = Py_None;
11468 return resultobj;
11469 fail:
11470 return NULL;
11471}
11472
11473
d6c14a4c 11474static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11475 PyObject *resultobj;
11476 wxDC *arg1 = (wxDC *) 0 ;
11477 wxIcon *arg2 = 0 ;
11478 wxPoint *arg3 = 0 ;
11479 wxPoint temp3 ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 PyObject * obj2 = 0 ;
11483 char *kwnames[] = {
11484 (char *) "self",(char *) "icon",(char *) "pt", NULL
11485 };
11486
d6c14a4c 11487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11490 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11491 SWIG_POINTER_EXCEPTION | 0)) == -1)
11492 SWIG_fail;
11493 if (arg2 == NULL) {
11494 PyErr_SetString(PyExc_TypeError,"null reference");
11495 SWIG_fail;
11496 }
11497 {
11498 arg3 = &temp3;
11499 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11500 }
11501 {
11502 PyThreadState* __tstate = wxPyBeginAllowThreads();
11503 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11504
11505 wxPyEndAllowThreads(__tstate);
11506 if (PyErr_Occurred()) SWIG_fail;
11507 }
11508 Py_INCREF(Py_None); resultobj = Py_None;
11509 return resultobj;
11510 fail:
11511 return NULL;
11512}
11513
11514
d6c14a4c 11515static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11516 PyObject *resultobj;
11517 wxDC *arg1 = (wxDC *) 0 ;
11518 wxBitmap *arg2 = 0 ;
11519 int arg3 ;
11520 int arg4 ;
11521 bool arg5 = (bool) False ;
11522 PyObject * obj0 = 0 ;
11523 PyObject * obj1 = 0 ;
11524 PyObject * obj2 = 0 ;
11525 PyObject * obj3 = 0 ;
11526 PyObject * obj4 = 0 ;
11527 char *kwnames[] = {
11528 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11529 };
11530
d6c14a4c 11531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11534 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11535 SWIG_POINTER_EXCEPTION | 0)) == -1)
11536 SWIG_fail;
11537 if (arg2 == NULL) {
11538 PyErr_SetString(PyExc_TypeError,"null reference");
11539 SWIG_fail;
11540 }
11541 arg3 = (int) SWIG_AsInt(obj2);
11542 if (PyErr_Occurred()) SWIG_fail;
11543 arg4 = (int) SWIG_AsInt(obj3);
11544 if (PyErr_Occurred()) SWIG_fail;
11545 if (obj4) {
11546 arg5 = (bool) SWIG_AsBool(obj4);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11552
11553 wxPyEndAllowThreads(__tstate);
11554 if (PyErr_Occurred()) SWIG_fail;
11555 }
11556 Py_INCREF(Py_None); resultobj = Py_None;
11557 return resultobj;
11558 fail:
11559 return NULL;
11560}
11561
11562
d6c14a4c 11563static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11564 PyObject *resultobj;
11565 wxDC *arg1 = (wxDC *) 0 ;
11566 wxBitmap *arg2 = 0 ;
11567 wxPoint *arg3 = 0 ;
11568 bool arg4 = (bool) False ;
11569 wxPoint temp3 ;
11570 PyObject * obj0 = 0 ;
11571 PyObject * obj1 = 0 ;
11572 PyObject * obj2 = 0 ;
11573 PyObject * obj3 = 0 ;
11574 char *kwnames[] = {
11575 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11576 };
11577
d6c14a4c 11578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11581 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11582 SWIG_POINTER_EXCEPTION | 0)) == -1)
11583 SWIG_fail;
11584 if (arg2 == NULL) {
11585 PyErr_SetString(PyExc_TypeError,"null reference");
11586 SWIG_fail;
11587 }
11588 {
11589 arg3 = &temp3;
11590 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11591 }
11592 if (obj3) {
11593 arg4 = (bool) SWIG_AsBool(obj3);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 {
11597 PyThreadState* __tstate = wxPyBeginAllowThreads();
11598 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11599
11600 wxPyEndAllowThreads(__tstate);
11601 if (PyErr_Occurred()) SWIG_fail;
11602 }
11603 Py_INCREF(Py_None); resultobj = Py_None;
11604 return resultobj;
11605 fail:
11606 return NULL;
11607}
11608
11609
d6c14a4c 11610static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11611 PyObject *resultobj;
11612 wxDC *arg1 = (wxDC *) 0 ;
11613 wxString *arg2 = 0 ;
11614 int arg3 ;
11615 int arg4 ;
11616 bool temp2 = False ;
11617 PyObject * obj0 = 0 ;
11618 PyObject * obj1 = 0 ;
11619 PyObject * obj2 = 0 ;
11620 PyObject * obj3 = 0 ;
11621 char *kwnames[] = {
11622 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11623 };
11624
d6c14a4c 11625 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11626 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11627 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11628 {
11629 arg2 = wxString_in_helper(obj1);
11630 if (arg2 == NULL) SWIG_fail;
11631 temp2 = True;
11632 }
11633 arg3 = (int) SWIG_AsInt(obj2);
11634 if (PyErr_Occurred()) SWIG_fail;
11635 arg4 = (int) SWIG_AsInt(obj3);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11640
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 Py_INCREF(Py_None); resultobj = Py_None;
11645 {
11646 if (temp2)
11647 delete arg2;
11648 }
11649 return resultobj;
11650 fail:
11651 {
11652 if (temp2)
11653 delete arg2;
11654 }
11655 return NULL;
11656}
11657
11658
d6c14a4c 11659static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11660 PyObject *resultobj;
11661 wxDC *arg1 = (wxDC *) 0 ;
11662 wxString *arg2 = 0 ;
11663 wxPoint *arg3 = 0 ;
11664 bool temp2 = False ;
11665 wxPoint temp3 ;
11666 PyObject * obj0 = 0 ;
11667 PyObject * obj1 = 0 ;
11668 PyObject * obj2 = 0 ;
11669 char *kwnames[] = {
11670 (char *) "self",(char *) "text",(char *) "pt", NULL
11671 };
11672
d6c14a4c 11673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11676 {
11677 arg2 = wxString_in_helper(obj1);
11678 if (arg2 == NULL) SWIG_fail;
11679 temp2 = True;
11680 }
11681 {
11682 arg3 = &temp3;
11683 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11684 }
11685 {
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11688
11689 wxPyEndAllowThreads(__tstate);
11690 if (PyErr_Occurred()) SWIG_fail;
11691 }
11692 Py_INCREF(Py_None); resultobj = Py_None;
11693 {
11694 if (temp2)
11695 delete arg2;
11696 }
11697 return resultobj;
11698 fail:
11699 {
11700 if (temp2)
11701 delete arg2;
11702 }
11703 return NULL;
11704}
11705
11706
d6c14a4c 11707static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11708 PyObject *resultobj;
11709 wxDC *arg1 = (wxDC *) 0 ;
11710 wxString *arg2 = 0 ;
11711 int arg3 ;
11712 int arg4 ;
11713 double arg5 ;
11714 bool temp2 = False ;
11715 PyObject * obj0 = 0 ;
11716 PyObject * obj1 = 0 ;
11717 PyObject * obj2 = 0 ;
11718 PyObject * obj3 = 0 ;
11719 PyObject * obj4 = 0 ;
11720 char *kwnames[] = {
11721 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11722 };
11723
d6c14a4c 11724 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11725 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11726 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11727 {
11728 arg2 = wxString_in_helper(obj1);
11729 if (arg2 == NULL) SWIG_fail;
11730 temp2 = True;
11731 }
11732 arg3 = (int) SWIG_AsInt(obj2);
11733 if (PyErr_Occurred()) SWIG_fail;
11734 arg4 = (int) SWIG_AsInt(obj3);
11735 if (PyErr_Occurred()) SWIG_fail;
11736 arg5 = (double) SWIG_AsDouble(obj4);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 {
11739 PyThreadState* __tstate = wxPyBeginAllowThreads();
11740 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11741
11742 wxPyEndAllowThreads(__tstate);
11743 if (PyErr_Occurred()) SWIG_fail;
11744 }
11745 Py_INCREF(Py_None); resultobj = Py_None;
11746 {
11747 if (temp2)
11748 delete arg2;
11749 }
11750 return resultobj;
11751 fail:
11752 {
11753 if (temp2)
11754 delete arg2;
11755 }
11756 return NULL;
11757}
11758
11759
d6c14a4c 11760static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11761 PyObject *resultobj;
11762 wxDC *arg1 = (wxDC *) 0 ;
11763 wxString *arg2 = 0 ;
11764 wxPoint *arg3 = 0 ;
11765 double arg4 ;
11766 bool temp2 = False ;
11767 wxPoint temp3 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 PyObject * obj2 = 0 ;
11771 PyObject * obj3 = 0 ;
11772 char *kwnames[] = {
11773 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11774 };
11775
d6c14a4c 11776 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11777 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11778 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11779 {
11780 arg2 = wxString_in_helper(obj1);
11781 if (arg2 == NULL) SWIG_fail;
11782 temp2 = True;
11783 }
11784 {
11785 arg3 = &temp3;
11786 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11787 }
11788 arg4 = (double) SWIG_AsDouble(obj3);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 {
11791 PyThreadState* __tstate = wxPyBeginAllowThreads();
11792 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11793
11794 wxPyEndAllowThreads(__tstate);
11795 if (PyErr_Occurred()) SWIG_fail;
11796 }
11797 Py_INCREF(Py_None); resultobj = Py_None;
11798 {
11799 if (temp2)
11800 delete arg2;
11801 }
11802 return resultobj;
11803 fail:
11804 {
11805 if (temp2)
11806 delete arg2;
11807 }
11808 return NULL;
11809}
11810
11811
d6c14a4c 11812static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11813 PyObject *resultobj;
11814 wxDC *arg1 = (wxDC *) 0 ;
11815 int arg2 ;
11816 int arg3 ;
11817 int arg4 ;
11818 int arg5 ;
11819 wxDC *arg6 = (wxDC *) 0 ;
11820 int arg7 ;
11821 int arg8 ;
11822 int arg9 = (int) wxCOPY ;
11823 bool arg10 = (bool) False ;
11824 int arg11 = (int) -1 ;
11825 int arg12 = (int) -1 ;
11826 bool result;
11827 PyObject * obj0 = 0 ;
11828 PyObject * obj1 = 0 ;
11829 PyObject * obj2 = 0 ;
11830 PyObject * obj3 = 0 ;
11831 PyObject * obj4 = 0 ;
11832 PyObject * obj5 = 0 ;
11833 PyObject * obj6 = 0 ;
11834 PyObject * obj7 = 0 ;
11835 PyObject * obj8 = 0 ;
11836 PyObject * obj9 = 0 ;
11837 PyObject * obj10 = 0 ;
11838 PyObject * obj11 = 0 ;
11839 char *kwnames[] = {
11840 (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
11841 };
11842
d6c14a4c 11843 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;
d55e5bfc
RD
11844 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11845 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11846 arg2 = (int) SWIG_AsInt(obj1);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 arg3 = (int) SWIG_AsInt(obj2);
11849 if (PyErr_Occurred()) SWIG_fail;
11850 arg4 = (int) SWIG_AsInt(obj3);
11851 if (PyErr_Occurred()) SWIG_fail;
11852 arg5 = (int) SWIG_AsInt(obj4);
11853 if (PyErr_Occurred()) SWIG_fail;
11854 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11855 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11856 arg7 = (int) SWIG_AsInt(obj6);
11857 if (PyErr_Occurred()) SWIG_fail;
11858 arg8 = (int) SWIG_AsInt(obj7);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 if (obj8) {
11861 arg9 = (int) SWIG_AsInt(obj8);
11862 if (PyErr_Occurred()) SWIG_fail;
11863 }
11864 if (obj9) {
11865 arg10 = (bool) SWIG_AsBool(obj9);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 if (obj10) {
11869 arg11 = (int) SWIG_AsInt(obj10);
11870 if (PyErr_Occurred()) SWIG_fail;
11871 }
11872 if (obj11) {
11873 arg12 = (int) SWIG_AsInt(obj11);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 {
11877 PyThreadState* __tstate = wxPyBeginAllowThreads();
11878 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11879
11880 wxPyEndAllowThreads(__tstate);
11881 if (PyErr_Occurred()) SWIG_fail;
11882 }
11883 {
11884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11885 }
11886 return resultobj;
11887 fail:
11888 return NULL;
11889}
11890
11891
d6c14a4c 11892static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11893 PyObject *resultobj;
11894 wxDC *arg1 = (wxDC *) 0 ;
11895 wxPoint *arg2 = 0 ;
11896 wxSize *arg3 = 0 ;
11897 wxDC *arg4 = (wxDC *) 0 ;
11898 wxPoint *arg5 = 0 ;
11899 int arg6 = (int) wxCOPY ;
11900 bool arg7 = (bool) False ;
11901 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11902 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11903 bool result;
11904 wxPoint temp2 ;
11905 wxSize temp3 ;
11906 wxPoint temp5 ;
11907 wxPoint temp8 ;
11908 PyObject * obj0 = 0 ;
11909 PyObject * obj1 = 0 ;
11910 PyObject * obj2 = 0 ;
11911 PyObject * obj3 = 0 ;
11912 PyObject * obj4 = 0 ;
11913 PyObject * obj5 = 0 ;
11914 PyObject * obj6 = 0 ;
11915 PyObject * obj7 = 0 ;
11916 char *kwnames[] = {
11917 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11918 };
11919
d6c14a4c 11920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
11921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11923 {
11924 arg2 = &temp2;
11925 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11926 }
11927 {
11928 arg3 = &temp3;
11929 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11930 }
11931 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11932 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11933 {
11934 arg5 = &temp5;
11935 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11936 }
11937 if (obj5) {
11938 arg6 = (int) SWIG_AsInt(obj5);
11939 if (PyErr_Occurred()) SWIG_fail;
11940 }
11941 if (obj6) {
11942 arg7 = (bool) SWIG_AsBool(obj6);
11943 if (PyErr_Occurred()) SWIG_fail;
11944 }
11945 if (obj7) {
11946 {
11947 arg8 = &temp8;
11948 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11949 }
11950 }
11951 {
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c
RD
11953 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11954
11955 wxPyEndAllowThreads(__tstate);
11956 if (PyErr_Occurred()) SWIG_fail;
11957 }
11958 {
11959 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11960 }
11961 return resultobj;
11962 fail:
11963 return NULL;
11964}
11965
11966
11967static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11968 PyObject *resultobj;
11969 wxDC *arg1 = (wxDC *) 0 ;
11970 int arg2 ;
11971 int arg3 ;
11972 int arg4 ;
11973 int arg5 ;
11974 PyObject * obj0 = 0 ;
11975 PyObject * obj1 = 0 ;
11976 PyObject * obj2 = 0 ;
11977 PyObject * obj3 = 0 ;
11978 PyObject * obj4 = 0 ;
11979 char *kwnames[] = {
11980 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11981 };
11982
11983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11986 arg2 = (int) SWIG_AsInt(obj1);
11987 if (PyErr_Occurred()) SWIG_fail;
11988 arg3 = (int) SWIG_AsInt(obj2);
11989 if (PyErr_Occurred()) SWIG_fail;
11990 arg4 = (int) SWIG_AsInt(obj3);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 arg5 = (int) SWIG_AsInt(obj4);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 {
11995 PyThreadState* __tstate = wxPyBeginAllowThreads();
11996 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11997
11998 wxPyEndAllowThreads(__tstate);
11999 if (PyErr_Occurred()) SWIG_fail;
12000 }
12001 Py_INCREF(Py_None); resultobj = Py_None;
12002 return resultobj;
12003 fail:
12004 return NULL;
12005}
12006
12007
12008static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12009 PyObject *resultobj;
12010 wxDC *arg1 = (wxDC *) 0 ;
12011 wxPoint *arg2 = 0 ;
12012 wxSize *arg3 = 0 ;
12013 wxPoint temp2 ;
12014 wxSize temp3 ;
12015 PyObject * obj0 = 0 ;
12016 PyObject * obj1 = 0 ;
12017 PyObject * obj2 = 0 ;
12018 char *kwnames[] = {
12019 (char *) "self",(char *) "pt",(char *) "sz", NULL
12020 };
12021
12022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12025 {
12026 arg2 = &temp2;
12027 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12028 }
12029 {
12030 arg3 = &temp3;
12031 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12032 }
12033 {
12034 PyThreadState* __tstate = wxPyBeginAllowThreads();
12035 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12036
12037 wxPyEndAllowThreads(__tstate);
12038 if (PyErr_Occurred()) SWIG_fail;
12039 }
12040 Py_INCREF(Py_None); resultobj = Py_None;
12041 return resultobj;
12042 fail:
12043 return NULL;
12044}
12045
12046
12047static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12048 PyObject *resultobj;
12049 wxDC *arg1 = (wxDC *) 0 ;
12050 wxRegion *arg2 = 0 ;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 char *kwnames[] = {
12054 (char *) "self",(char *) "region", NULL
12055 };
12056
12057 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12058 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12059 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12060 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12061 SWIG_POINTER_EXCEPTION | 0)) == -1)
12062 SWIG_fail;
12063 if (arg2 == NULL) {
12064 PyErr_SetString(PyExc_TypeError,"null reference");
12065 SWIG_fail;
12066 }
12067 {
12068 PyThreadState* __tstate = wxPyBeginAllowThreads();
12069 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12070
12071 wxPyEndAllowThreads(__tstate);
12072 if (PyErr_Occurred()) SWIG_fail;
12073 }
12074 Py_INCREF(Py_None); resultobj = Py_None;
12075 return resultobj;
12076 fail:
12077 return NULL;
12078}
12079
12080
12081static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12082 PyObject *resultobj;
12083 wxDC *arg1 = (wxDC *) 0 ;
12084 wxRect *arg2 = 0 ;
12085 wxRect temp2 ;
12086 PyObject * obj0 = 0 ;
12087 PyObject * obj1 = 0 ;
12088 char *kwnames[] = {
12089 (char *) "self",(char *) "rect", NULL
12090 };
12091
12092 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12093 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12094 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12095 {
12096 arg2 = &temp2;
12097 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12098 }
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
12102
12103 wxPyEndAllowThreads(__tstate);
12104 if (PyErr_Occurred()) SWIG_fail;
12105 }
d6c14a4c 12106 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
12107 return resultobj;
12108 fail:
12109 return NULL;
12110}
12111
12112
12113static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12114 PyObject *resultobj;
12115 wxDC *arg1 = (wxDC *) 0 ;
12116 int arg2 ;
12117 wxPoint *arg3 = (wxPoint *) 0 ;
12118 int arg4 = (int) 0 ;
12119 int arg5 = (int) 0 ;
12120 PyObject * obj0 = 0 ;
12121 PyObject * obj1 = 0 ;
12122 PyObject * obj2 = 0 ;
12123 PyObject * obj3 = 0 ;
12124 char *kwnames[] = {
12125 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12126 };
12127
12128 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12129 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12130 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12131 {
12132 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12133 if (arg3 == NULL) SWIG_fail;
12134 }
12135 if (obj2) {
12136 arg4 = (int) SWIG_AsInt(obj2);
12137 if (PyErr_Occurred()) SWIG_fail;
12138 }
12139 if (obj3) {
12140 arg5 = (int) SWIG_AsInt(obj3);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 {
12144 PyThreadState* __tstate = wxPyBeginAllowThreads();
12145 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12146
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 Py_INCREF(Py_None); resultobj = Py_None;
12151 {
12152 if (arg3) delete [] arg3;
12153 }
12154 return resultobj;
12155 fail:
12156 {
12157 if (arg3) delete [] arg3;
12158 }
12159 return NULL;
12160}
12161
12162
12163static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12164 PyObject *resultobj;
12165 wxDC *arg1 = (wxDC *) 0 ;
12166 int arg2 ;
12167 wxPoint *arg3 = (wxPoint *) 0 ;
12168 int arg4 = (int) 0 ;
12169 int arg5 = (int) 0 ;
12170 int arg6 = (int) wxODDEVEN_RULE ;
12171 PyObject * obj0 = 0 ;
12172 PyObject * obj1 = 0 ;
12173 PyObject * obj2 = 0 ;
12174 PyObject * obj3 = 0 ;
12175 PyObject * obj4 = 0 ;
12176 char *kwnames[] = {
12177 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12178 };
12179
12180 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12181 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12182 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12183 {
12184 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12185 if (arg3 == NULL) SWIG_fail;
12186 }
12187 if (obj2) {
12188 arg4 = (int) SWIG_AsInt(obj2);
12189 if (PyErr_Occurred()) SWIG_fail;
12190 }
12191 if (obj3) {
12192 arg5 = (int) SWIG_AsInt(obj3);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 if (obj4) {
12196 arg6 = (int) SWIG_AsInt(obj4);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 {
12200 PyThreadState* __tstate = wxPyBeginAllowThreads();
12201 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12202
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 Py_INCREF(Py_None); resultobj = Py_None;
12207 {
12208 if (arg3) delete [] arg3;
12209 }
12210 return resultobj;
12211 fail:
12212 {
12213 if (arg3) delete [] arg3;
12214 }
12215 return NULL;
12216}
12217
12218
12219static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12220 PyObject *resultobj;
12221 wxDC *arg1 = (wxDC *) 0 ;
12222 wxString *arg2 = 0 ;
12223 wxRect *arg3 = 0 ;
12224 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12225 int arg5 = (int) -1 ;
12226 bool temp2 = False ;
12227 wxRect temp3 ;
12228 PyObject * obj0 = 0 ;
12229 PyObject * obj1 = 0 ;
12230 PyObject * obj2 = 0 ;
12231 PyObject * obj3 = 0 ;
12232 PyObject * obj4 = 0 ;
12233 char *kwnames[] = {
12234 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12235 };
12236
12237 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12238 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12239 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12240 {
12241 arg2 = wxString_in_helper(obj1);
12242 if (arg2 == NULL) SWIG_fail;
12243 temp2 = True;
12244 }
12245 {
12246 arg3 = &temp3;
12247 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12248 }
12249 if (obj3) {
12250 arg4 = (int) SWIG_AsInt(obj3);
12251 if (PyErr_Occurred()) SWIG_fail;
12252 }
12253 if (obj4) {
12254 arg5 = (int) SWIG_AsInt(obj4);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 {
12258 PyThreadState* __tstate = wxPyBeginAllowThreads();
12259 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12260
12261 wxPyEndAllowThreads(__tstate);
12262 if (PyErr_Occurred()) SWIG_fail;
12263 }
12264 Py_INCREF(Py_None); resultobj = Py_None;
12265 {
12266 if (temp2)
12267 delete arg2;
12268 }
12269 return resultobj;
12270 fail:
12271 {
12272 if (temp2)
12273 delete arg2;
12274 }
12275 return NULL;
12276}
12277
12278
12279static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12280 PyObject *resultobj;
12281 wxDC *arg1 = (wxDC *) 0 ;
12282 wxString *arg2 = 0 ;
12283 wxBitmap *arg3 = 0 ;
12284 wxRect *arg4 = 0 ;
12285 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12286 int arg6 = (int) -1 ;
12287 wxRect result;
12288 bool temp2 = False ;
12289 wxRect temp4 ;
12290 PyObject * obj0 = 0 ;
12291 PyObject * obj1 = 0 ;
12292 PyObject * obj2 = 0 ;
12293 PyObject * obj3 = 0 ;
12294 PyObject * obj4 = 0 ;
12295 PyObject * obj5 = 0 ;
12296 char *kwnames[] = {
12297 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12298 };
12299
12300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12303 {
12304 arg2 = wxString_in_helper(obj1);
12305 if (arg2 == NULL) SWIG_fail;
12306 temp2 = True;
12307 }
12308 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12309 SWIG_POINTER_EXCEPTION | 0)) == -1)
12310 SWIG_fail;
12311 if (arg3 == NULL) {
12312 PyErr_SetString(PyExc_TypeError,"null reference");
12313 SWIG_fail;
12314 }
12315 {
12316 arg4 = &temp4;
12317 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12318 }
12319 if (obj4) {
12320 arg5 = (int) SWIG_AsInt(obj4);
12321 if (PyErr_Occurred()) SWIG_fail;
12322 }
12323 if (obj5) {
12324 arg6 = (int) SWIG_AsInt(obj5);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 {
12328 PyThreadState* __tstate = wxPyBeginAllowThreads();
12329 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12330
12331 wxPyEndAllowThreads(__tstate);
12332 if (PyErr_Occurred()) SWIG_fail;
12333 }
12334 {
12335 wxRect * resultptr;
12336 resultptr = new wxRect((wxRect &) result);
12337 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12338 }
12339 {
12340 if (temp2)
12341 delete arg2;
12342 }
12343 return resultobj;
12344 fail:
12345 {
12346 if (temp2)
12347 delete arg2;
12348 }
12349 return NULL;
12350}
12351
12352
12353static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12354 PyObject *resultobj;
12355 wxDC *arg1 = (wxDC *) 0 ;
12356 int arg2 ;
12357 wxPoint *arg3 = (wxPoint *) 0 ;
12358 PyObject * obj0 = 0 ;
12359 PyObject * obj1 = 0 ;
12360 char *kwnames[] = {
12361 (char *) "self",(char *) "points", NULL
12362 };
12363
12364 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12365 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12366 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12367 {
12368 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12369 if (arg3 == NULL) SWIG_fail;
12370 }
12371 {
12372 PyThreadState* __tstate = wxPyBeginAllowThreads();
12373 (arg1)->DrawSpline(arg2,arg3);
12374
12375 wxPyEndAllowThreads(__tstate);
12376 if (PyErr_Occurred()) SWIG_fail;
12377 }
12378 Py_INCREF(Py_None); resultobj = Py_None;
12379 {
12380 if (arg3) delete [] arg3;
12381 }
12382 return resultobj;
12383 fail:
12384 {
12385 if (arg3) delete [] arg3;
12386 }
12387 return NULL;
12388}
12389
12390
12391static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12392 PyObject *resultobj;
12393 wxDC *arg1 = (wxDC *) 0 ;
12394 PyObject * obj0 = 0 ;
12395 char *kwnames[] = {
12396 (char *) "self", NULL
12397 };
12398
12399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12402 {
12403 PyThreadState* __tstate = wxPyBeginAllowThreads();
12404 (arg1)->Clear();
12405
12406 wxPyEndAllowThreads(__tstate);
12407 if (PyErr_Occurred()) SWIG_fail;
12408 }
12409 Py_INCREF(Py_None); resultobj = Py_None;
12410 return resultobj;
12411 fail:
12412 return NULL;
12413}
12414
12415
12416static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12417 PyObject *resultobj;
12418 wxDC *arg1 = (wxDC *) 0 ;
12419 wxString *arg2 = 0 ;
12420 bool result;
12421 bool temp2 = False ;
12422 PyObject * obj0 = 0 ;
12423 PyObject * obj1 = 0 ;
12424 char *kwnames[] = {
12425 (char *) "self",(char *) "message", NULL
12426 };
12427
12428 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12429 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12430 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12431 {
12432 arg2 = wxString_in_helper(obj1);
12433 if (arg2 == NULL) SWIG_fail;
12434 temp2 = True;
12435 }
12436 {
12437 PyThreadState* __tstate = wxPyBeginAllowThreads();
12438 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12439
12440 wxPyEndAllowThreads(__tstate);
12441 if (PyErr_Occurred()) SWIG_fail;
12442 }
12443 {
12444 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12445 }
12446 {
12447 if (temp2)
12448 delete arg2;
12449 }
12450 return resultobj;
12451 fail:
12452 {
12453 if (temp2)
12454 delete arg2;
12455 }
12456 return NULL;
12457}
12458
12459
12460static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12461 PyObject *resultobj;
12462 wxDC *arg1 = (wxDC *) 0 ;
12463 PyObject * obj0 = 0 ;
12464 char *kwnames[] = {
12465 (char *) "self", NULL
12466 };
12467
12468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12471 {
12472 PyThreadState* __tstate = wxPyBeginAllowThreads();
12473 (arg1)->EndDoc();
12474
12475 wxPyEndAllowThreads(__tstate);
12476 if (PyErr_Occurred()) SWIG_fail;
12477 }
12478 Py_INCREF(Py_None); resultobj = Py_None;
12479 return resultobj;
12480 fail:
12481 return NULL;
12482}
12483
12484
12485static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12486 PyObject *resultobj;
12487 wxDC *arg1 = (wxDC *) 0 ;
12488 PyObject * obj0 = 0 ;
12489 char *kwnames[] = {
12490 (char *) "self", NULL
12491 };
12492
12493 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12494 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12495 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12496 {
12497 PyThreadState* __tstate = wxPyBeginAllowThreads();
12498 (arg1)->StartPage();
12499
12500 wxPyEndAllowThreads(__tstate);
12501 if (PyErr_Occurred()) SWIG_fail;
12502 }
12503 Py_INCREF(Py_None); resultobj = Py_None;
12504 return resultobj;
12505 fail:
12506 return NULL;
12507}
12508
12509
12510static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12511 PyObject *resultobj;
12512 wxDC *arg1 = (wxDC *) 0 ;
12513 PyObject * obj0 = 0 ;
12514 char *kwnames[] = {
12515 (char *) "self", NULL
12516 };
12517
12518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12521 {
12522 PyThreadState* __tstate = wxPyBeginAllowThreads();
12523 (arg1)->EndPage();
12524
12525 wxPyEndAllowThreads(__tstate);
12526 if (PyErr_Occurred()) SWIG_fail;
12527 }
12528 Py_INCREF(Py_None); resultobj = Py_None;
12529 return resultobj;
12530 fail:
12531 return NULL;
12532}
12533
12534
12535static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12536 PyObject *resultobj;
12537 wxDC *arg1 = (wxDC *) 0 ;
12538 wxFont *arg2 = 0 ;
12539 PyObject * obj0 = 0 ;
12540 PyObject * obj1 = 0 ;
12541 char *kwnames[] = {
12542 (char *) "self",(char *) "font", NULL
12543 };
12544
12545 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12546 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12547 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12548 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12549 SWIG_POINTER_EXCEPTION | 0)) == -1)
12550 SWIG_fail;
12551 if (arg2 == NULL) {
12552 PyErr_SetString(PyExc_TypeError,"null reference");
12553 SWIG_fail;
12554 }
12555 {
12556 PyThreadState* __tstate = wxPyBeginAllowThreads();
12557 (arg1)->SetFont((wxFont const &)*arg2);
12558
12559 wxPyEndAllowThreads(__tstate);
12560 if (PyErr_Occurred()) SWIG_fail;
12561 }
12562 Py_INCREF(Py_None); resultobj = Py_None;
12563 return resultobj;
12564 fail:
12565 return NULL;
12566}
12567
12568
12569static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12570 PyObject *resultobj;
12571 wxDC *arg1 = (wxDC *) 0 ;
12572 wxPen *arg2 = 0 ;
12573 PyObject * obj0 = 0 ;
12574 PyObject * obj1 = 0 ;
12575 char *kwnames[] = {
12576 (char *) "self",(char *) "pen", NULL
12577 };
12578
12579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12582 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12583 SWIG_POINTER_EXCEPTION | 0)) == -1)
12584 SWIG_fail;
12585 if (arg2 == NULL) {
12586 PyErr_SetString(PyExc_TypeError,"null reference");
12587 SWIG_fail;
12588 }
12589 {
12590 PyThreadState* __tstate = wxPyBeginAllowThreads();
12591 (arg1)->SetPen((wxPen const &)*arg2);
12592
12593 wxPyEndAllowThreads(__tstate);
12594 if (PyErr_Occurred()) SWIG_fail;
12595 }
12596 Py_INCREF(Py_None); resultobj = Py_None;
12597 return resultobj;
12598 fail:
12599 return NULL;
12600}
12601
12602
12603static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12604 PyObject *resultobj;
12605 wxDC *arg1 = (wxDC *) 0 ;
12606 wxBrush *arg2 = 0 ;
12607 PyObject * obj0 = 0 ;
12608 PyObject * obj1 = 0 ;
12609 char *kwnames[] = {
12610 (char *) "self",(char *) "brush", NULL
12611 };
12612
12613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12616 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12617 SWIG_POINTER_EXCEPTION | 0)) == -1)
12618 SWIG_fail;
12619 if (arg2 == NULL) {
12620 PyErr_SetString(PyExc_TypeError,"null reference");
12621 SWIG_fail;
12622 }
12623 {
12624 PyThreadState* __tstate = wxPyBeginAllowThreads();
12625 (arg1)->SetBrush((wxBrush const &)*arg2);
12626
12627 wxPyEndAllowThreads(__tstate);
12628 if (PyErr_Occurred()) SWIG_fail;
12629 }
12630 Py_INCREF(Py_None); resultobj = Py_None;
12631 return resultobj;
12632 fail:
12633 return NULL;
12634}
12635
12636
12637static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12638 PyObject *resultobj;
12639 wxDC *arg1 = (wxDC *) 0 ;
12640 wxBrush *arg2 = 0 ;
12641 PyObject * obj0 = 0 ;
12642 PyObject * obj1 = 0 ;
12643 char *kwnames[] = {
12644 (char *) "self",(char *) "brush", NULL
12645 };
12646
12647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12650 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12651 SWIG_POINTER_EXCEPTION | 0)) == -1)
12652 SWIG_fail;
12653 if (arg2 == NULL) {
12654 PyErr_SetString(PyExc_TypeError,"null reference");
12655 SWIG_fail;
12656 }
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 (arg1)->SetBackground((wxBrush const &)*arg2);
12660
12661 wxPyEndAllowThreads(__tstate);
12662 if (PyErr_Occurred()) SWIG_fail;
12663 }
12664 Py_INCREF(Py_None); resultobj = Py_None;
12665 return resultobj;
12666 fail:
12667 return NULL;
12668}
12669
12670
12671static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12672 PyObject *resultobj;
12673 wxDC *arg1 = (wxDC *) 0 ;
12674 int arg2 ;
12675 PyObject * obj0 = 0 ;
12676 PyObject * obj1 = 0 ;
12677 char *kwnames[] = {
12678 (char *) "self",(char *) "mode", NULL
12679 };
12680
12681 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12682 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12683 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12684 arg2 = (int) SWIG_AsInt(obj1);
12685 if (PyErr_Occurred()) SWIG_fail;
12686 {
12687 PyThreadState* __tstate = wxPyBeginAllowThreads();
12688 (arg1)->SetBackgroundMode(arg2);
12689
12690 wxPyEndAllowThreads(__tstate);
12691 if (PyErr_Occurred()) SWIG_fail;
12692 }
12693 Py_INCREF(Py_None); resultobj = Py_None;
12694 return resultobj;
12695 fail:
12696 return NULL;
12697}
12698
12699
12700static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12701 PyObject *resultobj;
12702 wxDC *arg1 = (wxDC *) 0 ;
12703 wxPalette *arg2 = 0 ;
12704 PyObject * obj0 = 0 ;
12705 PyObject * obj1 = 0 ;
12706 char *kwnames[] = {
12707 (char *) "self",(char *) "palette", NULL
12708 };
12709
12710 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12711 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12712 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12713 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12714 SWIG_POINTER_EXCEPTION | 0)) == -1)
12715 SWIG_fail;
12716 if (arg2 == NULL) {
12717 PyErr_SetString(PyExc_TypeError,"null reference");
12718 SWIG_fail;
12719 }
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->SetPalette((wxPalette const &)*arg2);
12723
12724 wxPyEndAllowThreads(__tstate);
12725 if (PyErr_Occurred()) SWIG_fail;
12726 }
12727 Py_INCREF(Py_None); resultobj = Py_None;
12728 return resultobj;
12729 fail:
12730 return NULL;
12731}
12732
12733
d55e5bfc
RD
12734static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12735 PyObject *resultobj;
12736 wxDC *arg1 = (wxDC *) 0 ;
12737 PyObject * obj0 = 0 ;
12738 char *kwnames[] = {
12739 (char *) "self", NULL
12740 };
12741
12742 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12743 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12744 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 (arg1)->DestroyClippingRegion();
12748
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 Py_INCREF(Py_None); resultobj = Py_None;
12753 return resultobj;
12754 fail:
12755 return NULL;
12756}
12757
12758
12759static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj;
12761 wxDC *arg1 = (wxDC *) 0 ;
12762 int *arg2 = (int *) 0 ;
12763 int *arg3 = (int *) 0 ;
12764 int *arg4 = (int *) 0 ;
12765 int *arg5 = (int *) 0 ;
12766 int temp2 ;
12767 int temp3 ;
12768 int temp4 ;
12769 int temp5 ;
12770 PyObject * obj0 = 0 ;
12771 char *kwnames[] = {
12772 (char *) "self", NULL
12773 };
12774
12775 arg2 = &temp2;
12776 arg3 = &temp3;
12777 arg4 = &temp4;
12778 arg5 = &temp5;
12779 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12780 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12781 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12785
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 Py_INCREF(Py_None); resultobj = Py_None;
12790 {
12791 PyObject *o = PyInt_FromLong((long) (*arg2));
12792 resultobj = t_output_helper(resultobj,o);
12793 }
12794 {
12795 PyObject *o = PyInt_FromLong((long) (*arg3));
12796 resultobj = t_output_helper(resultobj,o);
12797 }
12798 {
12799 PyObject *o = PyInt_FromLong((long) (*arg4));
12800 resultobj = t_output_helper(resultobj,o);
12801 }
12802 {
12803 PyObject *o = PyInt_FromLong((long) (*arg5));
12804 resultobj = t_output_helper(resultobj,o);
12805 }
12806 return resultobj;
12807 fail:
12808 return NULL;
12809}
12810
12811
12812static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj;
12814 wxDC *arg1 = (wxDC *) 0 ;
12815 wxRect result;
12816 PyObject * obj0 = 0 ;
12817 char *kwnames[] = {
12818 (char *) "self", NULL
12819 };
12820
12821 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12822 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12823 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12824 {
12825 PyThreadState* __tstate = wxPyBeginAllowThreads();
12826 result = wxDC_GetClippingRect(arg1);
12827
12828 wxPyEndAllowThreads(__tstate);
12829 if (PyErr_Occurred()) SWIG_fail;
12830 }
12831 {
12832 wxRect * resultptr;
12833 resultptr = new wxRect((wxRect &) result);
12834 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12835 }
12836 return resultobj;
12837 fail:
12838 return NULL;
12839}
12840
12841
12842static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12843 PyObject *resultobj;
12844 wxDC *arg1 = (wxDC *) 0 ;
12845 int result;
12846 PyObject * obj0 = 0 ;
12847 char *kwnames[] = {
12848 (char *) "self", NULL
12849 };
12850
12851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12854 {
12855 PyThreadState* __tstate = wxPyBeginAllowThreads();
12856 result = (int)((wxDC const *)arg1)->GetCharHeight();
12857
12858 wxPyEndAllowThreads(__tstate);
12859 if (PyErr_Occurred()) SWIG_fail;
12860 }
12861 resultobj = SWIG_FromInt((int)result);
12862 return resultobj;
12863 fail:
12864 return NULL;
12865}
12866
12867
12868static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12869 PyObject *resultobj;
12870 wxDC *arg1 = (wxDC *) 0 ;
12871 int result;
12872 PyObject * obj0 = 0 ;
12873 char *kwnames[] = {
12874 (char *) "self", NULL
12875 };
12876
12877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12880 {
12881 PyThreadState* __tstate = wxPyBeginAllowThreads();
12882 result = (int)((wxDC const *)arg1)->GetCharWidth();
12883
12884 wxPyEndAllowThreads(__tstate);
12885 if (PyErr_Occurred()) SWIG_fail;
12886 }
12887 resultobj = SWIG_FromInt((int)result);
12888 return resultobj;
12889 fail:
12890 return NULL;
12891}
12892
12893
12894static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12895 PyObject *resultobj;
12896 wxDC *arg1 = (wxDC *) 0 ;
12897 wxString *arg2 = 0 ;
12898 int *arg3 = (int *) 0 ;
12899 int *arg4 = (int *) 0 ;
12900 bool temp2 = False ;
12901 int temp3 ;
12902 int temp4 ;
12903 PyObject * obj0 = 0 ;
12904 PyObject * obj1 = 0 ;
12905 char *kwnames[] = {
12906 (char *) "self",(char *) "string", NULL
12907 };
12908
12909 arg3 = &temp3;
12910 arg4 = &temp4;
12911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12914 {
12915 arg2 = wxString_in_helper(obj1);
12916 if (arg2 == NULL) SWIG_fail;
12917 temp2 = True;
12918 }
12919 {
12920 PyThreadState* __tstate = wxPyBeginAllowThreads();
12921 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12922
12923 wxPyEndAllowThreads(__tstate);
12924 if (PyErr_Occurred()) SWIG_fail;
12925 }
12926 Py_INCREF(Py_None); resultobj = Py_None;
12927 {
12928 PyObject *o = PyInt_FromLong((long) (*arg3));
12929 resultobj = t_output_helper(resultobj,o);
12930 }
12931 {
12932 PyObject *o = PyInt_FromLong((long) (*arg4));
12933 resultobj = t_output_helper(resultobj,o);
12934 }
12935 {
12936 if (temp2)
12937 delete arg2;
12938 }
12939 return resultobj;
12940 fail:
12941 {
12942 if (temp2)
12943 delete arg2;
12944 }
12945 return NULL;
12946}
12947
12948
12949static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12950 PyObject *resultobj;
12951 wxDC *arg1 = (wxDC *) 0 ;
12952 wxString *arg2 = 0 ;
12953 int *arg3 = (int *) 0 ;
12954 int *arg4 = (int *) 0 ;
12955 int *arg5 = (int *) 0 ;
12956 int *arg6 = (int *) 0 ;
12957 wxFont *arg7 = (wxFont *) NULL ;
12958 bool temp2 = False ;
12959 int temp3 ;
12960 int temp4 ;
12961 int temp5 ;
12962 int temp6 ;
12963 PyObject * obj0 = 0 ;
12964 PyObject * obj1 = 0 ;
12965 PyObject * obj2 = 0 ;
12966 char *kwnames[] = {
12967 (char *) "self",(char *) "string",(char *) "font", NULL
12968 };
12969
12970 arg3 = &temp3;
12971 arg4 = &temp4;
12972 arg5 = &temp5;
12973 arg6 = &temp6;
12974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12977 {
12978 arg2 = wxString_in_helper(obj1);
12979 if (arg2 == NULL) SWIG_fail;
12980 temp2 = True;
12981 }
12982 if (obj2) {
12983 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12984 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12985 }
12986 {
12987 PyThreadState* __tstate = wxPyBeginAllowThreads();
12988 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12989
12990 wxPyEndAllowThreads(__tstate);
12991 if (PyErr_Occurred()) SWIG_fail;
12992 }
12993 Py_INCREF(Py_None); resultobj = Py_None;
12994 {
12995 PyObject *o = PyInt_FromLong((long) (*arg3));
12996 resultobj = t_output_helper(resultobj,o);
12997 }
12998 {
12999 PyObject *o = PyInt_FromLong((long) (*arg4));
13000 resultobj = t_output_helper(resultobj,o);
13001 }
13002 {
13003 PyObject *o = PyInt_FromLong((long) (*arg5));
13004 resultobj = t_output_helper(resultobj,o);
13005 }
13006 {
13007 PyObject *o = PyInt_FromLong((long) (*arg6));
13008 resultobj = t_output_helper(resultobj,o);
13009 }
13010 {
13011 if (temp2)
13012 delete arg2;
13013 }
13014 return resultobj;
13015 fail:
13016 {
13017 if (temp2)
13018 delete arg2;
13019 }
13020 return NULL;
13021}
13022
13023
13024static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj;
13026 wxDC *arg1 = (wxDC *) 0 ;
13027 wxString *arg2 = 0 ;
13028 int *arg3 = (int *) 0 ;
13029 int *arg4 = (int *) 0 ;
13030 int *arg5 = (int *) 0 ;
13031 wxFont *arg6 = (wxFont *) NULL ;
13032 bool temp2 = False ;
13033 int temp3 ;
13034 int temp4 ;
13035 int temp5 ;
13036 PyObject * obj0 = 0 ;
13037 PyObject * obj1 = 0 ;
13038 PyObject * obj2 = 0 ;
13039 char *kwnames[] = {
13040 (char *) "self",(char *) "text",(char *) "font", NULL
13041 };
13042
13043 arg3 = &temp3;
13044 arg4 = &temp4;
13045 arg5 = &temp5;
13046 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13047 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13049 {
13050 arg2 = wxString_in_helper(obj1);
13051 if (arg2 == NULL) SWIG_fail;
13052 temp2 = True;
13053 }
13054 if (obj2) {
13055 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13056 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13057 }
13058 {
13059 PyThreadState* __tstate = wxPyBeginAllowThreads();
13060 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13061
13062 wxPyEndAllowThreads(__tstate);
13063 if (PyErr_Occurred()) SWIG_fail;
13064 }
13065 Py_INCREF(Py_None); resultobj = Py_None;
13066 {
13067 PyObject *o = PyInt_FromLong((long) (*arg3));
13068 resultobj = t_output_helper(resultobj,o);
13069 }
13070 {
13071 PyObject *o = PyInt_FromLong((long) (*arg4));
13072 resultobj = t_output_helper(resultobj,o);
13073 }
13074 {
13075 PyObject *o = PyInt_FromLong((long) (*arg5));
13076 resultobj = t_output_helper(resultobj,o);
13077 }
13078 {
13079 if (temp2)
13080 delete arg2;
13081 }
13082 return resultobj;
13083 fail:
13084 {
13085 if (temp2)
13086 delete arg2;
13087 }
13088 return NULL;
13089}
13090
13091
13092static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13093 PyObject *resultobj;
13094 wxDC *arg1 = (wxDC *) 0 ;
13095 wxString *arg2 = 0 ;
13096 wxArrayInt result;
13097 bool temp2 = False ;
13098 PyObject * obj0 = 0 ;
13099 PyObject * obj1 = 0 ;
13100 char *kwnames[] = {
13101 (char *) "self",(char *) "text", NULL
13102 };
13103
13104 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13105 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13106 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13107 {
13108 arg2 = wxString_in_helper(obj1);
13109 if (arg2 == NULL) SWIG_fail;
13110 temp2 = True;
13111 }
13112 {
13113 PyThreadState* __tstate = wxPyBeginAllowThreads();
13114 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13115
13116 wxPyEndAllowThreads(__tstate);
13117 if (PyErr_Occurred()) SWIG_fail;
13118 }
13119 {
13120 resultobj = PyList_New(0);
13121 size_t idx;
13122 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13123 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13124 PyList_Append(resultobj, val);
13125 Py_DECREF(val);
13126 }
13127 }
13128 {
13129 if (temp2)
13130 delete arg2;
13131 }
13132 return resultobj;
13133 fail:
13134 {
13135 if (temp2)
13136 delete arg2;
13137 }
13138 return NULL;
13139}
13140
13141
13142static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13143 PyObject *resultobj;
13144 wxDC *arg1 = (wxDC *) 0 ;
13145 wxSize result;
13146 PyObject * obj0 = 0 ;
13147 char *kwnames[] = {
13148 (char *) "self", NULL
13149 };
13150
13151 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13152 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13153 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13154 {
13155 PyThreadState* __tstate = wxPyBeginAllowThreads();
13156 result = (arg1)->GetSize();
13157
13158 wxPyEndAllowThreads(__tstate);
13159 if (PyErr_Occurred()) SWIG_fail;
13160 }
13161 {
13162 wxSize * resultptr;
13163 resultptr = new wxSize((wxSize &) result);
13164 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13165 }
13166 return resultobj;
13167 fail:
13168 return NULL;
13169}
13170
13171
13172static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13173 PyObject *resultobj;
13174 wxDC *arg1 = (wxDC *) 0 ;
13175 int *arg2 = (int *) 0 ;
13176 int *arg3 = (int *) 0 ;
13177 int temp2 ;
13178 int temp3 ;
13179 PyObject * obj0 = 0 ;
13180 char *kwnames[] = {
13181 (char *) "self", NULL
13182 };
13183
13184 arg2 = &temp2;
13185 arg3 = &temp3;
13186 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13187 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13188 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13189 {
13190 PyThreadState* __tstate = wxPyBeginAllowThreads();
13191 (arg1)->GetSize(arg2,arg3);
13192
13193 wxPyEndAllowThreads(__tstate);
13194 if (PyErr_Occurred()) SWIG_fail;
13195 }
13196 Py_INCREF(Py_None); resultobj = Py_None;
13197 {
13198 PyObject *o = PyInt_FromLong((long) (*arg2));
13199 resultobj = t_output_helper(resultobj,o);
13200 }
13201 {
13202 PyObject *o = PyInt_FromLong((long) (*arg3));
13203 resultobj = t_output_helper(resultobj,o);
13204 }
13205 return resultobj;
13206 fail:
13207 return NULL;
13208}
13209
13210
13211static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13212 PyObject *resultobj;
13213 wxDC *arg1 = (wxDC *) 0 ;
13214 wxSize result;
13215 PyObject * obj0 = 0 ;
13216 char *kwnames[] = {
13217 (char *) "self", NULL
13218 };
13219
13220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13221 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13222 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13223 {
13224 PyThreadState* __tstate = wxPyBeginAllowThreads();
13225 result = ((wxDC const *)arg1)->GetSizeMM();
13226
13227 wxPyEndAllowThreads(__tstate);
13228 if (PyErr_Occurred()) SWIG_fail;
13229 }
13230 {
13231 wxSize * resultptr;
13232 resultptr = new wxSize((wxSize &) result);
13233 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13234 }
13235 return resultobj;
13236 fail:
13237 return NULL;
13238}
13239
13240
13241static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj;
13243 wxDC *arg1 = (wxDC *) 0 ;
13244 int *arg2 = (int *) 0 ;
13245 int *arg3 = (int *) 0 ;
13246 int temp2 ;
13247 int temp3 ;
13248 PyObject * obj0 = 0 ;
13249 char *kwnames[] = {
13250 (char *) "self", NULL
13251 };
13252
13253 arg2 = &temp2;
13254 arg3 = &temp3;
13255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13256 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13257 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13261
13262 wxPyEndAllowThreads(__tstate);
13263 if (PyErr_Occurred()) SWIG_fail;
13264 }
13265 Py_INCREF(Py_None); resultobj = Py_None;
13266 {
13267 PyObject *o = PyInt_FromLong((long) (*arg2));
13268 resultobj = t_output_helper(resultobj,o);
13269 }
13270 {
13271 PyObject *o = PyInt_FromLong((long) (*arg3));
13272 resultobj = t_output_helper(resultobj,o);
13273 }
13274 return resultobj;
13275 fail:
13276 return NULL;
13277}
13278
13279
13280static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13281 PyObject *resultobj;
13282 wxDC *arg1 = (wxDC *) 0 ;
13283 int arg2 ;
13284 int result;
13285 PyObject * obj0 = 0 ;
13286 PyObject * obj1 = 0 ;
13287 char *kwnames[] = {
13288 (char *) "self",(char *) "x", NULL
13289 };
13290
13291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13294 arg2 = (int) SWIG_AsInt(obj1);
13295 if (PyErr_Occurred()) SWIG_fail;
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13299
13300 wxPyEndAllowThreads(__tstate);
13301 if (PyErr_Occurred()) SWIG_fail;
13302 }
13303 resultobj = SWIG_FromInt((int)result);
13304 return resultobj;
13305 fail:
13306 return NULL;
13307}
13308
13309
13310static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13311 PyObject *resultobj;
13312 wxDC *arg1 = (wxDC *) 0 ;
13313 int arg2 ;
13314 int result;
13315 PyObject * obj0 = 0 ;
13316 PyObject * obj1 = 0 ;
13317 char *kwnames[] = {
13318 (char *) "self",(char *) "y", NULL
13319 };
13320
13321 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13322 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13323 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13324 arg2 = (int) SWIG_AsInt(obj1);
13325 if (PyErr_Occurred()) SWIG_fail;
13326 {
13327 PyThreadState* __tstate = wxPyBeginAllowThreads();
13328 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13329
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 resultobj = SWIG_FromInt((int)result);
13334 return resultobj;
13335 fail:
13336 return NULL;
13337}
13338
13339
13340static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13341 PyObject *resultobj;
13342 wxDC *arg1 = (wxDC *) 0 ;
13343 int arg2 ;
13344 int result;
13345 PyObject * obj0 = 0 ;
13346 PyObject * obj1 = 0 ;
13347 char *kwnames[] = {
13348 (char *) "self",(char *) "x", NULL
13349 };
13350
13351 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13352 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13353 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13354 arg2 = (int) SWIG_AsInt(obj1);
13355 if (PyErr_Occurred()) SWIG_fail;
13356 {
13357 PyThreadState* __tstate = wxPyBeginAllowThreads();
13358 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13359
13360 wxPyEndAllowThreads(__tstate);
13361 if (PyErr_Occurred()) SWIG_fail;
13362 }
13363 resultobj = SWIG_FromInt((int)result);
13364 return resultobj;
13365 fail:
13366 return NULL;
13367}
13368
13369
13370static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13371 PyObject *resultobj;
13372 wxDC *arg1 = (wxDC *) 0 ;
13373 int arg2 ;
13374 int result;
13375 PyObject * obj0 = 0 ;
13376 PyObject * obj1 = 0 ;
13377 char *kwnames[] = {
13378 (char *) "self",(char *) "y", NULL
13379 };
13380
13381 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13382 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13383 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13384 arg2 = (int) SWIG_AsInt(obj1);
13385 if (PyErr_Occurred()) SWIG_fail;
13386 {
13387 PyThreadState* __tstate = wxPyBeginAllowThreads();
13388 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13389
13390 wxPyEndAllowThreads(__tstate);
13391 if (PyErr_Occurred()) SWIG_fail;
13392 }
13393 resultobj = SWIG_FromInt((int)result);
13394 return resultobj;
13395 fail:
13396 return NULL;
13397}
13398
13399
13400static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13401 PyObject *resultobj;
13402 wxDC *arg1 = (wxDC *) 0 ;
13403 int arg2 ;
13404 int result;
13405 PyObject * obj0 = 0 ;
13406 PyObject * obj1 = 0 ;
13407 char *kwnames[] = {
13408 (char *) "self",(char *) "x", NULL
13409 };
13410
13411 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13412 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13413 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13414 arg2 = (int) SWIG_AsInt(obj1);
13415 if (PyErr_Occurred()) SWIG_fail;
13416 {
13417 PyThreadState* __tstate = wxPyBeginAllowThreads();
13418 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13419
13420 wxPyEndAllowThreads(__tstate);
13421 if (PyErr_Occurred()) SWIG_fail;
13422 }
13423 resultobj = SWIG_FromInt((int)result);
13424 return resultobj;
13425 fail:
13426 return NULL;
13427}
13428
13429
13430static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj;
13432 wxDC *arg1 = (wxDC *) 0 ;
13433 int arg2 ;
13434 int result;
13435 PyObject * obj0 = 0 ;
13436 PyObject * obj1 = 0 ;
13437 char *kwnames[] = {
13438 (char *) "self",(char *) "y", NULL
13439 };
13440
13441 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13442 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13443 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13444 arg2 = (int) SWIG_AsInt(obj1);
13445 if (PyErr_Occurred()) SWIG_fail;
13446 {
13447 PyThreadState* __tstate = wxPyBeginAllowThreads();
13448 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13449
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 resultobj = SWIG_FromInt((int)result);
13454 return resultobj;
13455 fail:
13456 return NULL;
13457}
13458
13459
13460static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13461 PyObject *resultobj;
13462 wxDC *arg1 = (wxDC *) 0 ;
13463 int arg2 ;
13464 int result;
13465 PyObject * obj0 = 0 ;
13466 PyObject * obj1 = 0 ;
13467 char *kwnames[] = {
13468 (char *) "self",(char *) "x", NULL
13469 };
13470
13471 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13472 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13473 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13474 arg2 = (int) SWIG_AsInt(obj1);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 {
13477 PyThreadState* __tstate = wxPyBeginAllowThreads();
13478 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13479
13480 wxPyEndAllowThreads(__tstate);
13481 if (PyErr_Occurred()) SWIG_fail;
13482 }
13483 resultobj = SWIG_FromInt((int)result);
13484 return resultobj;
13485 fail:
13486 return NULL;
13487}
13488
13489
13490static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13491 PyObject *resultobj;
13492 wxDC *arg1 = (wxDC *) 0 ;
13493 int arg2 ;
13494 int result;
13495 PyObject * obj0 = 0 ;
13496 PyObject * obj1 = 0 ;
13497 char *kwnames[] = {
13498 (char *) "self",(char *) "y", NULL
13499 };
13500
13501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13504 arg2 = (int) SWIG_AsInt(obj1);
13505 if (PyErr_Occurred()) SWIG_fail;
13506 {
13507 PyThreadState* __tstate = wxPyBeginAllowThreads();
13508 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13509
13510 wxPyEndAllowThreads(__tstate);
13511 if (PyErr_Occurred()) SWIG_fail;
13512 }
13513 resultobj = SWIG_FromInt((int)result);
13514 return resultobj;
13515 fail:
13516 return NULL;
13517}
13518
13519
13520static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13521 PyObject *resultobj;
13522 wxDC *arg1 = (wxDC *) 0 ;
13523 bool result;
13524 PyObject * obj0 = 0 ;
13525 char *kwnames[] = {
13526 (char *) "self", NULL
13527 };
13528
13529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13535
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13541 }
13542 return resultobj;
13543 fail:
13544 return NULL;
13545}
13546
13547
13548static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13549 PyObject *resultobj;
13550 wxDC *arg1 = (wxDC *) 0 ;
13551 bool result;
13552 PyObject * obj0 = 0 ;
13553 char *kwnames[] = {
13554 (char *) "self", NULL
13555 };
13556
13557 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13558 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13559 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13560 {
13561 PyThreadState* __tstate = wxPyBeginAllowThreads();
13562 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13563
13564 wxPyEndAllowThreads(__tstate);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 {
13568 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13569 }
13570 return resultobj;
13571 fail:
13572 return NULL;
13573}
13574
13575
13576static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13577 PyObject *resultobj;
13578 wxDC *arg1 = (wxDC *) 0 ;
13579 int result;
13580 PyObject * obj0 = 0 ;
13581 char *kwnames[] = {
13582 (char *) "self", NULL
13583 };
13584
13585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13588 {
13589 PyThreadState* __tstate = wxPyBeginAllowThreads();
13590 result = (int)((wxDC const *)arg1)->GetDepth();
13591
13592 wxPyEndAllowThreads(__tstate);
13593 if (PyErr_Occurred()) SWIG_fail;
13594 }
13595 resultobj = SWIG_FromInt((int)result);
13596 return resultobj;
13597 fail:
13598 return NULL;
13599}
13600
13601
13602static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13603 PyObject *resultobj;
13604 wxDC *arg1 = (wxDC *) 0 ;
13605 wxSize result;
13606 PyObject * obj0 = 0 ;
13607 char *kwnames[] = {
13608 (char *) "self", NULL
13609 };
13610
13611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13612 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13613 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13614 {
13615 PyThreadState* __tstate = wxPyBeginAllowThreads();
13616 result = ((wxDC const *)arg1)->GetPPI();
13617
13618 wxPyEndAllowThreads(__tstate);
13619 if (PyErr_Occurred()) SWIG_fail;
13620 }
13621 {
13622 wxSize * resultptr;
13623 resultptr = new wxSize((wxSize &) result);
13624 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13625 }
13626 return resultobj;
13627 fail:
13628 return NULL;
13629}
13630
13631
13632static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13633 PyObject *resultobj;
13634 wxDC *arg1 = (wxDC *) 0 ;
13635 bool result;
13636 PyObject * obj0 = 0 ;
13637 char *kwnames[] = {
13638 (char *) "self", NULL
13639 };
13640
13641 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13642 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13643 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13644 {
13645 PyThreadState* __tstate = wxPyBeginAllowThreads();
13646 result = (bool)((wxDC const *)arg1)->Ok();
13647
13648 wxPyEndAllowThreads(__tstate);
13649 if (PyErr_Occurred()) SWIG_fail;
13650 }
13651 {
13652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13653 }
13654 return resultobj;
13655 fail:
13656 return NULL;
13657}
13658
13659
13660static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13661 PyObject *resultobj;
13662 wxDC *arg1 = (wxDC *) 0 ;
13663 int result;
13664 PyObject * obj0 = 0 ;
13665 char *kwnames[] = {
13666 (char *) "self", NULL
13667 };
13668
13669 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13670 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13671 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13672 {
13673 PyThreadState* __tstate = wxPyBeginAllowThreads();
13674 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13675
13676 wxPyEndAllowThreads(__tstate);
13677 if (PyErr_Occurred()) SWIG_fail;
13678 }
13679 resultobj = SWIG_FromInt((int)result);
13680 return resultobj;
13681 fail:
13682 return NULL;
13683}
13684
13685
13686static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13687 PyObject *resultobj;
13688 wxDC *arg1 = (wxDC *) 0 ;
13689 wxBrush *result;
13690 PyObject * obj0 = 0 ;
13691 char *kwnames[] = {
13692 (char *) "self", NULL
13693 };
13694
13695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13698 {
13699 PyThreadState* __tstate = wxPyBeginAllowThreads();
13700 {
13701 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13702 result = (wxBrush *) &_result_ref;
13703 }
13704
13705 wxPyEndAllowThreads(__tstate);
13706 if (PyErr_Occurred()) SWIG_fail;
13707 }
13708 {
13709 wxBrush* resultptr = new wxBrush(*result);
13710 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13711 }
13712 return resultobj;
13713 fail:
13714 return NULL;
13715}
13716
13717
13718static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13719 PyObject *resultobj;
13720 wxDC *arg1 = (wxDC *) 0 ;
13721 wxBrush *result;
13722 PyObject * obj0 = 0 ;
13723 char *kwnames[] = {
13724 (char *) "self", NULL
13725 };
13726
13727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13730 {
13731 PyThreadState* __tstate = wxPyBeginAllowThreads();
13732 {
13733 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13734 result = (wxBrush *) &_result_ref;
13735 }
13736
13737 wxPyEndAllowThreads(__tstate);
13738 if (PyErr_Occurred()) SWIG_fail;
13739 }
13740 {
13741 wxBrush* resultptr = new wxBrush(*result);
13742 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13743 }
13744 return resultobj;
13745 fail:
13746 return NULL;
13747}
13748
13749
13750static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13751 PyObject *resultobj;
13752 wxDC *arg1 = (wxDC *) 0 ;
13753 wxFont *result;
13754 PyObject * obj0 = 0 ;
13755 char *kwnames[] = {
13756 (char *) "self", NULL
13757 };
13758
13759 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13760 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13761 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13762 {
13763 PyThreadState* __tstate = wxPyBeginAllowThreads();
13764 {
13765 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13766 result = (wxFont *) &_result_ref;
13767 }
13768
13769 wxPyEndAllowThreads(__tstate);
13770 if (PyErr_Occurred()) SWIG_fail;
13771 }
13772 {
13773 wxFont* resultptr = new wxFont(*result);
13774 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13775 }
13776 return resultobj;
13777 fail:
13778 return NULL;
13779}
13780
13781
13782static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13783 PyObject *resultobj;
13784 wxDC *arg1 = (wxDC *) 0 ;
13785 wxPen *result;
13786 PyObject * obj0 = 0 ;
13787 char *kwnames[] = {
13788 (char *) "self", NULL
13789 };
13790
13791 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13792 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13793 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13794 {
13795 PyThreadState* __tstate = wxPyBeginAllowThreads();
13796 {
13797 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13798 result = (wxPen *) &_result_ref;
13799 }
13800
13801 wxPyEndAllowThreads(__tstate);
13802 if (PyErr_Occurred()) SWIG_fail;
13803 }
13804 {
13805 wxPen* resultptr = new wxPen(*result);
13806 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13807 }
13808 return resultobj;
13809 fail:
13810 return NULL;
13811}
13812
13813
13814static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13815 PyObject *resultobj;
13816 wxDC *arg1 = (wxDC *) 0 ;
13817 wxColour *result;
13818 PyObject * obj0 = 0 ;
13819 char *kwnames[] = {
13820 (char *) "self", NULL
13821 };
13822
13823 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13824 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13825 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13826 {
13827 PyThreadState* __tstate = wxPyBeginAllowThreads();
13828 {
13829 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13830 result = (wxColour *) &_result_ref;
13831 }
13832
13833 wxPyEndAllowThreads(__tstate);
13834 if (PyErr_Occurred()) SWIG_fail;
13835 }
13836 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13837 return resultobj;
13838 fail:
13839 return NULL;
13840}
13841
13842
13843static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13844 PyObject *resultobj;
13845 wxDC *arg1 = (wxDC *) 0 ;
13846 wxColour *result;
13847 PyObject * obj0 = 0 ;
13848 char *kwnames[] = {
13849 (char *) "self", NULL
13850 };
13851
13852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13855 {
13856 PyThreadState* __tstate = wxPyBeginAllowThreads();
13857 {
13858 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13859 result = (wxColour *) &_result_ref;
13860 }
13861
13862 wxPyEndAllowThreads(__tstate);
13863 if (PyErr_Occurred()) SWIG_fail;
13864 }
13865 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13866 return resultobj;
13867 fail:
13868 return NULL;
13869}
13870
13871
13872static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13873 PyObject *resultobj;
13874 wxDC *arg1 = (wxDC *) 0 ;
13875 wxColour *arg2 = 0 ;
13876 wxColour temp2 ;
13877 PyObject * obj0 = 0 ;
13878 PyObject * obj1 = 0 ;
13879 char *kwnames[] = {
13880 (char *) "self",(char *) "colour", NULL
13881 };
13882
13883 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13884 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13885 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13886 {
13887 arg2 = &temp2;
13888 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13889 }
13890 {
13891 PyThreadState* __tstate = wxPyBeginAllowThreads();
13892 (arg1)->SetTextForeground((wxColour const &)*arg2);
13893
13894 wxPyEndAllowThreads(__tstate);
13895 if (PyErr_Occurred()) SWIG_fail;
13896 }
13897 Py_INCREF(Py_None); resultobj = Py_None;
13898 return resultobj;
13899 fail:
13900 return NULL;
13901}
13902
13903
13904static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13905 PyObject *resultobj;
13906 wxDC *arg1 = (wxDC *) 0 ;
13907 wxColour *arg2 = 0 ;
13908 wxColour temp2 ;
13909 PyObject * obj0 = 0 ;
13910 PyObject * obj1 = 0 ;
13911 char *kwnames[] = {
13912 (char *) "self",(char *) "colour", NULL
13913 };
13914
13915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13918 {
13919 arg2 = &temp2;
13920 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13921 }
13922 {
13923 PyThreadState* __tstate = wxPyBeginAllowThreads();
13924 (arg1)->SetTextBackground((wxColour const &)*arg2);
13925
13926 wxPyEndAllowThreads(__tstate);
13927 if (PyErr_Occurred()) SWIG_fail;
13928 }
13929 Py_INCREF(Py_None); resultobj = Py_None;
13930 return resultobj;
13931 fail:
13932 return NULL;
13933}
13934
13935
13936static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13937 PyObject *resultobj;
13938 wxDC *arg1 = (wxDC *) 0 ;
13939 int result;
13940 PyObject * obj0 = 0 ;
13941 char *kwnames[] = {
13942 (char *) "self", NULL
13943 };
13944
13945 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13946 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13947 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13948 {
13949 PyThreadState* __tstate = wxPyBeginAllowThreads();
13950 result = (int)((wxDC const *)arg1)->GetMapMode();
13951
13952 wxPyEndAllowThreads(__tstate);
13953 if (PyErr_Occurred()) SWIG_fail;
13954 }
13955 resultobj = SWIG_FromInt((int)result);
13956 return resultobj;
13957 fail:
13958 return NULL;
13959}
13960
13961
13962static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13963 PyObject *resultobj;
13964 wxDC *arg1 = (wxDC *) 0 ;
13965 int arg2 ;
13966 PyObject * obj0 = 0 ;
13967 PyObject * obj1 = 0 ;
13968 char *kwnames[] = {
13969 (char *) "self",(char *) "mode", NULL
13970 };
13971
13972 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13973 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13974 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13975 arg2 = (int) SWIG_AsInt(obj1);
13976 if (PyErr_Occurred()) SWIG_fail;
13977 {
13978 PyThreadState* __tstate = wxPyBeginAllowThreads();
13979 (arg1)->SetMapMode(arg2);
13980
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 Py_INCREF(Py_None); resultobj = Py_None;
13985 return resultobj;
13986 fail:
13987 return NULL;
13988}
13989
13990
13991static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13992 PyObject *resultobj;
13993 wxDC *arg1 = (wxDC *) 0 ;
13994 double *arg2 = (double *) 0 ;
13995 double *arg3 = (double *) 0 ;
13996 double temp2 ;
13997 double temp3 ;
13998 PyObject * obj0 = 0 ;
13999 char *kwnames[] = {
14000 (char *) "self", NULL
14001 };
14002
14003 arg2 = &temp2;
14004 arg3 = &temp3;
14005 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
14006 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14007 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14008 {
14009 PyThreadState* __tstate = wxPyBeginAllowThreads();
14010 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14011
14012 wxPyEndAllowThreads(__tstate);
14013 if (PyErr_Occurred()) SWIG_fail;
14014 }
14015 Py_INCREF(Py_None); resultobj = Py_None;
14016 {
14017 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14018 resultobj = t_output_helper(resultobj,o);
14019 }
14020 {
14021 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14022 resultobj = t_output_helper(resultobj,o);
14023 }
14024 return resultobj;
14025 fail:
14026 return NULL;
14027}
14028
14029
14030static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14031 PyObject *resultobj;
14032 wxDC *arg1 = (wxDC *) 0 ;
14033 double arg2 ;
14034 double arg3 ;
14035 PyObject * obj0 = 0 ;
14036 PyObject * obj1 = 0 ;
14037 PyObject * obj2 = 0 ;
14038 char *kwnames[] = {
14039 (char *) "self",(char *) "x",(char *) "y", NULL
14040 };
14041
14042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14043 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14044 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14045 arg2 = (double) SWIG_AsDouble(obj1);
14046 if (PyErr_Occurred()) SWIG_fail;
14047 arg3 = (double) SWIG_AsDouble(obj2);
14048 if (PyErr_Occurred()) SWIG_fail;
14049 {
14050 PyThreadState* __tstate = wxPyBeginAllowThreads();
14051 (arg1)->SetUserScale(arg2,arg3);
14052
14053 wxPyEndAllowThreads(__tstate);
14054 if (PyErr_Occurred()) SWIG_fail;
14055 }
14056 Py_INCREF(Py_None); resultobj = Py_None;
14057 return resultobj;
14058 fail:
14059 return NULL;
14060}
14061
14062
14063static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14064 PyObject *resultobj;
14065 wxDC *arg1 = (wxDC *) 0 ;
14066 double *arg2 = (double *) 0 ;
14067 double *arg3 = (double *) 0 ;
14068 double temp2 ;
14069 double temp3 ;
14070 PyObject * obj0 = 0 ;
14071 char *kwnames[] = {
14072 (char *) "self", NULL
14073 };
14074
14075 arg2 = &temp2;
14076 arg3 = &temp3;
14077 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14078 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14079 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14080 {
14081 PyThreadState* __tstate = wxPyBeginAllowThreads();
14082 (arg1)->GetLogicalScale(arg2,arg3);
14083
14084 wxPyEndAllowThreads(__tstate);
14085 if (PyErr_Occurred()) SWIG_fail;
14086 }
14087 Py_INCREF(Py_None); resultobj = Py_None;
14088 {
14089 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14090 resultobj = t_output_helper(resultobj,o);
14091 }
14092 {
14093 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14094 resultobj = t_output_helper(resultobj,o);
14095 }
14096 return resultobj;
14097 fail:
14098 return NULL;
14099}
14100
14101
14102static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14103 PyObject *resultobj;
14104 wxDC *arg1 = (wxDC *) 0 ;
14105 double arg2 ;
14106 double arg3 ;
14107 PyObject * obj0 = 0 ;
14108 PyObject * obj1 = 0 ;
14109 PyObject * obj2 = 0 ;
14110 char *kwnames[] = {
14111 (char *) "self",(char *) "x",(char *) "y", NULL
14112 };
14113
14114 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14117 arg2 = (double) SWIG_AsDouble(obj1);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 arg3 = (double) SWIG_AsDouble(obj2);
14120 if (PyErr_Occurred()) SWIG_fail;
14121 {
14122 PyThreadState* __tstate = wxPyBeginAllowThreads();
14123 (arg1)->SetLogicalScale(arg2,arg3);
14124
14125 wxPyEndAllowThreads(__tstate);
14126 if (PyErr_Occurred()) SWIG_fail;
14127 }
14128 Py_INCREF(Py_None); resultobj = Py_None;
14129 return resultobj;
14130 fail:
14131 return NULL;
14132}
14133
14134
14135static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14136 PyObject *resultobj;
14137 wxDC *arg1 = (wxDC *) 0 ;
14138 wxPoint result;
14139 PyObject * obj0 = 0 ;
14140 char *kwnames[] = {
14141 (char *) "self", NULL
14142 };
14143
14144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14147 {
14148 PyThreadState* __tstate = wxPyBeginAllowThreads();
14149 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14150
14151 wxPyEndAllowThreads(__tstate);
14152 if (PyErr_Occurred()) SWIG_fail;
14153 }
14154 {
14155 wxPoint * resultptr;
14156 resultptr = new wxPoint((wxPoint &) result);
14157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14158 }
14159 return resultobj;
14160 fail:
14161 return NULL;
14162}
14163
14164
14165static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14166 PyObject *resultobj;
14167 wxDC *arg1 = (wxDC *) 0 ;
14168 int *arg2 = (int *) 0 ;
14169 int *arg3 = (int *) 0 ;
14170 int temp2 ;
14171 int temp3 ;
14172 PyObject * obj0 = 0 ;
14173 char *kwnames[] = {
14174 (char *) "self", NULL
14175 };
14176
14177 arg2 = &temp2;
14178 arg3 = &temp3;
14179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14182 {
14183 PyThreadState* __tstate = wxPyBeginAllowThreads();
14184 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14185
14186 wxPyEndAllowThreads(__tstate);
14187 if (PyErr_Occurred()) SWIG_fail;
14188 }
14189 Py_INCREF(Py_None); resultobj = Py_None;
14190 {
14191 PyObject *o = PyInt_FromLong((long) (*arg2));
14192 resultobj = t_output_helper(resultobj,o);
14193 }
14194 {
14195 PyObject *o = PyInt_FromLong((long) (*arg3));
14196 resultobj = t_output_helper(resultobj,o);
14197 }
14198 return resultobj;
14199 fail:
14200 return NULL;
14201}
14202
14203
14204static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14205 PyObject *resultobj;
14206 wxDC *arg1 = (wxDC *) 0 ;
14207 int arg2 ;
14208 int arg3 ;
14209 PyObject * obj0 = 0 ;
14210 PyObject * obj1 = 0 ;
14211 PyObject * obj2 = 0 ;
14212 char *kwnames[] = {
14213 (char *) "self",(char *) "x",(char *) "y", NULL
14214 };
14215
14216 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14217 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14218 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14219 arg2 = (int) SWIG_AsInt(obj1);
14220 if (PyErr_Occurred()) SWIG_fail;
14221 arg3 = (int) SWIG_AsInt(obj2);
14222 if (PyErr_Occurred()) SWIG_fail;
14223 {
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 (arg1)->SetLogicalOrigin(arg2,arg3);
14226
14227 wxPyEndAllowThreads(__tstate);
14228 if (PyErr_Occurred()) SWIG_fail;
14229 }
14230 Py_INCREF(Py_None); resultobj = Py_None;
14231 return resultobj;
14232 fail:
14233 return NULL;
14234}
14235
14236
d6c14a4c
RD
14237static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14238 PyObject *resultobj;
14239 wxDC *arg1 = (wxDC *) 0 ;
14240 wxPoint *arg2 = 0 ;
14241 wxPoint temp2 ;
14242 PyObject * obj0 = 0 ;
14243 PyObject * obj1 = 0 ;
14244 char *kwnames[] = {
14245 (char *) "self",(char *) "point", NULL
14246 };
14247
14248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14251 {
14252 arg2 = &temp2;
14253 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14254 }
14255 {
14256 PyThreadState* __tstate = wxPyBeginAllowThreads();
14257 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14258
14259 wxPyEndAllowThreads(__tstate);
14260 if (PyErr_Occurred()) SWIG_fail;
14261 }
14262 Py_INCREF(Py_None); resultobj = Py_None;
14263 return resultobj;
14264 fail:
14265 return NULL;
14266}
14267
14268
d55e5bfc
RD
14269static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14270 PyObject *resultobj;
14271 wxDC *arg1 = (wxDC *) 0 ;
14272 wxPoint result;
14273 PyObject * obj0 = 0 ;
14274 char *kwnames[] = {
14275 (char *) "self", NULL
14276 };
14277
14278 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14279 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14280 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14281 {
14282 PyThreadState* __tstate = wxPyBeginAllowThreads();
14283 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14284
14285 wxPyEndAllowThreads(__tstate);
14286 if (PyErr_Occurred()) SWIG_fail;
14287 }
14288 {
14289 wxPoint * resultptr;
14290 resultptr = new wxPoint((wxPoint &) result);
14291 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14292 }
14293 return resultobj;
14294 fail:
14295 return NULL;
14296}
14297
14298
14299static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14300 PyObject *resultobj;
14301 wxDC *arg1 = (wxDC *) 0 ;
14302 int *arg2 = (int *) 0 ;
14303 int *arg3 = (int *) 0 ;
14304 int temp2 ;
14305 int temp3 ;
14306 PyObject * obj0 = 0 ;
14307 char *kwnames[] = {
14308 (char *) "self", NULL
14309 };
14310
14311 arg2 = &temp2;
14312 arg3 = &temp3;
14313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14316 {
14317 PyThreadState* __tstate = wxPyBeginAllowThreads();
14318 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14319
14320 wxPyEndAllowThreads(__tstate);
14321 if (PyErr_Occurred()) SWIG_fail;
14322 }
14323 Py_INCREF(Py_None); resultobj = Py_None;
14324 {
14325 PyObject *o = PyInt_FromLong((long) (*arg2));
14326 resultobj = t_output_helper(resultobj,o);
14327 }
14328 {
14329 PyObject *o = PyInt_FromLong((long) (*arg3));
14330 resultobj = t_output_helper(resultobj,o);
14331 }
14332 return resultobj;
14333 fail:
14334 return NULL;
14335}
14336
14337
14338static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14339 PyObject *resultobj;
14340 wxDC *arg1 = (wxDC *) 0 ;
14341 int arg2 ;
14342 int arg3 ;
14343 PyObject * obj0 = 0 ;
14344 PyObject * obj1 = 0 ;
14345 PyObject * obj2 = 0 ;
14346 char *kwnames[] = {
14347 (char *) "self",(char *) "x",(char *) "y", NULL
14348 };
14349
14350 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14351 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14352 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14353 arg2 = (int) SWIG_AsInt(obj1);
14354 if (PyErr_Occurred()) SWIG_fail;
14355 arg3 = (int) SWIG_AsInt(obj2);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 {
14358 PyThreadState* __tstate = wxPyBeginAllowThreads();
14359 (arg1)->SetDeviceOrigin(arg2,arg3);
14360
14361 wxPyEndAllowThreads(__tstate);
14362 if (PyErr_Occurred()) SWIG_fail;
14363 }
14364 Py_INCREF(Py_None); resultobj = Py_None;
14365 return resultobj;
14366 fail:
14367 return NULL;
14368}
14369
14370
d6c14a4c
RD
14371static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14372 PyObject *resultobj;
14373 wxDC *arg1 = (wxDC *) 0 ;
14374 wxPoint *arg2 = 0 ;
14375 wxPoint temp2 ;
14376 PyObject * obj0 = 0 ;
14377 PyObject * obj1 = 0 ;
14378 char *kwnames[] = {
14379 (char *) "self",(char *) "point", NULL
14380 };
14381
14382 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14383 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14385 {
14386 arg2 = &temp2;
14387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14388 }
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14392
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 Py_INCREF(Py_None); resultobj = Py_None;
14397 return resultobj;
14398 fail:
14399 return NULL;
14400}
14401
14402
d55e5bfc
RD
14403static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14404 PyObject *resultobj;
14405 wxDC *arg1 = (wxDC *) 0 ;
14406 bool arg2 ;
14407 bool arg3 ;
14408 PyObject * obj0 = 0 ;
14409 PyObject * obj1 = 0 ;
14410 PyObject * obj2 = 0 ;
14411 char *kwnames[] = {
14412 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14413 };
14414
14415 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14416 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14417 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14418 arg2 = (bool) SWIG_AsBool(obj1);
14419 if (PyErr_Occurred()) SWIG_fail;
14420 arg3 = (bool) SWIG_AsBool(obj2);
14421 if (PyErr_Occurred()) SWIG_fail;
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 (arg1)->SetAxisOrientation(arg2,arg3);
14425
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 Py_INCREF(Py_None); resultobj = Py_None;
14430 return resultobj;
14431 fail:
14432 return NULL;
14433}
14434
14435
14436static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14437 PyObject *resultobj;
14438 wxDC *arg1 = (wxDC *) 0 ;
14439 int result;
14440 PyObject * obj0 = 0 ;
14441 char *kwnames[] = {
14442 (char *) "self", NULL
14443 };
14444
14445 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14446 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14447 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14448 {
14449 PyThreadState* __tstate = wxPyBeginAllowThreads();
14450 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14451
14452 wxPyEndAllowThreads(__tstate);
14453 if (PyErr_Occurred()) SWIG_fail;
14454 }
14455 resultobj = SWIG_FromInt((int)result);
14456 return resultobj;
14457 fail:
14458 return NULL;
14459}
14460
14461
14462static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14463 PyObject *resultobj;
14464 wxDC *arg1 = (wxDC *) 0 ;
14465 int arg2 ;
14466 PyObject * obj0 = 0 ;
14467 PyObject * obj1 = 0 ;
14468 char *kwnames[] = {
14469 (char *) "self",(char *) "function", NULL
14470 };
14471
14472 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14473 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14474 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14475 arg2 = (int) SWIG_AsInt(obj1);
14476 if (PyErr_Occurred()) SWIG_fail;
14477 {
14478 PyThreadState* __tstate = wxPyBeginAllowThreads();
14479 (arg1)->SetLogicalFunction(arg2);
14480
14481 wxPyEndAllowThreads(__tstate);
14482 if (PyErr_Occurred()) SWIG_fail;
14483 }
14484 Py_INCREF(Py_None); resultobj = Py_None;
14485 return resultobj;
14486 fail:
14487 return NULL;
14488}
14489
14490
14491static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14492 PyObject *resultobj;
14493 wxDC *arg1 = (wxDC *) 0 ;
14494 bool arg2 ;
14495 PyObject * obj0 = 0 ;
14496 PyObject * obj1 = 0 ;
14497 char *kwnames[] = {
14498 (char *) "self",(char *) "opt", NULL
14499 };
14500
14501 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14502 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14503 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14504 arg2 = (bool) SWIG_AsBool(obj1);
14505 if (PyErr_Occurred()) SWIG_fail;
14506 {
14507 PyThreadState* __tstate = wxPyBeginAllowThreads();
14508 (arg1)->SetOptimization(arg2);
14509
14510 wxPyEndAllowThreads(__tstate);
14511 if (PyErr_Occurred()) SWIG_fail;
14512 }
14513 Py_INCREF(Py_None); resultobj = Py_None;
14514 return resultobj;
14515 fail:
14516 return NULL;
14517}
14518
14519
14520static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14521 PyObject *resultobj;
14522 wxDC *arg1 = (wxDC *) 0 ;
14523 bool result;
14524 PyObject * obj0 = 0 ;
14525 char *kwnames[] = {
14526 (char *) "self", NULL
14527 };
14528
14529 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14530 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14531 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14532 {
14533 PyThreadState* __tstate = wxPyBeginAllowThreads();
14534 result = (bool)(arg1)->GetOptimization();
14535
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 {
14540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14541 }
14542 return resultobj;
14543 fail:
14544 return NULL;
14545}
14546
14547
14548static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj;
14550 wxDC *arg1 = (wxDC *) 0 ;
14551 int arg2 ;
14552 int arg3 ;
14553 PyObject * obj0 = 0 ;
14554 PyObject * obj1 = 0 ;
14555 PyObject * obj2 = 0 ;
14556 char *kwnames[] = {
14557 (char *) "self",(char *) "x",(char *) "y", NULL
14558 };
14559
14560 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14561 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14562 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14563 arg2 = (int) SWIG_AsInt(obj1);
14564 if (PyErr_Occurred()) SWIG_fail;
14565 arg3 = (int) SWIG_AsInt(obj2);
14566 if (PyErr_Occurred()) SWIG_fail;
14567 {
14568 PyThreadState* __tstate = wxPyBeginAllowThreads();
14569 (arg1)->CalcBoundingBox(arg2,arg3);
14570
14571 wxPyEndAllowThreads(__tstate);
14572 if (PyErr_Occurred()) SWIG_fail;
14573 }
14574 Py_INCREF(Py_None); resultobj = Py_None;
14575 return resultobj;
14576 fail:
14577 return NULL;
14578}
14579
14580
d6c14a4c
RD
14581static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj;
14583 wxDC *arg1 = (wxDC *) 0 ;
14584 wxPoint *arg2 = 0 ;
14585 wxPoint temp2 ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 char *kwnames[] = {
14589 (char *) "self",(char *) "point", NULL
14590 };
14591
14592 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14593 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14594 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14595 {
14596 arg2 = &temp2;
14597 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14598 }
14599 {
14600 PyThreadState* __tstate = wxPyBeginAllowThreads();
14601 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14602
14603 wxPyEndAllowThreads(__tstate);
14604 if (PyErr_Occurred()) SWIG_fail;
14605 }
14606 Py_INCREF(Py_None); resultobj = Py_None;
14607 return resultobj;
14608 fail:
14609 return NULL;
14610}
14611
14612
d55e5bfc
RD
14613static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14614 PyObject *resultobj;
14615 wxDC *arg1 = (wxDC *) 0 ;
14616 PyObject * obj0 = 0 ;
14617 char *kwnames[] = {
14618 (char *) "self", NULL
14619 };
14620
14621 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14622 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14623 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14624 {
14625 PyThreadState* __tstate = wxPyBeginAllowThreads();
14626 (arg1)->ResetBoundingBox();
14627
14628 wxPyEndAllowThreads(__tstate);
14629 if (PyErr_Occurred()) SWIG_fail;
14630 }
14631 Py_INCREF(Py_None); resultobj = Py_None;
14632 return resultobj;
14633 fail:
14634 return NULL;
14635}
14636
14637
14638static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14639 PyObject *resultobj;
14640 wxDC *arg1 = (wxDC *) 0 ;
14641 int result;
14642 PyObject * obj0 = 0 ;
14643 char *kwnames[] = {
14644 (char *) "self", NULL
14645 };
14646
14647 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14648 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14649 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14650 {
14651 PyThreadState* __tstate = wxPyBeginAllowThreads();
14652 result = (int)((wxDC const *)arg1)->MinX();
14653
14654 wxPyEndAllowThreads(__tstate);
14655 if (PyErr_Occurred()) SWIG_fail;
14656 }
14657 resultobj = SWIG_FromInt((int)result);
14658 return resultobj;
14659 fail:
14660 return NULL;
14661}
14662
14663
14664static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14665 PyObject *resultobj;
14666 wxDC *arg1 = (wxDC *) 0 ;
14667 int result;
14668 PyObject * obj0 = 0 ;
14669 char *kwnames[] = {
14670 (char *) "self", NULL
14671 };
14672
14673 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14674 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14675 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14676 {
14677 PyThreadState* __tstate = wxPyBeginAllowThreads();
14678 result = (int)((wxDC const *)arg1)->MaxX();
14679
14680 wxPyEndAllowThreads(__tstate);
14681 if (PyErr_Occurred()) SWIG_fail;
14682 }
14683 resultobj = SWIG_FromInt((int)result);
14684 return resultobj;
14685 fail:
14686 return NULL;
14687}
14688
14689
14690static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14691 PyObject *resultobj;
14692 wxDC *arg1 = (wxDC *) 0 ;
14693 int result;
14694 PyObject * obj0 = 0 ;
14695 char *kwnames[] = {
14696 (char *) "self", NULL
14697 };
14698
14699 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14700 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14701 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14702 {
14703 PyThreadState* __tstate = wxPyBeginAllowThreads();
14704 result = (int)((wxDC const *)arg1)->MinY();
14705
14706 wxPyEndAllowThreads(__tstate);
14707 if (PyErr_Occurred()) SWIG_fail;
14708 }
14709 resultobj = SWIG_FromInt((int)result);
14710 return resultobj;
14711 fail:
14712 return NULL;
14713}
14714
14715
14716static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14717 PyObject *resultobj;
14718 wxDC *arg1 = (wxDC *) 0 ;
14719 int result;
14720 PyObject * obj0 = 0 ;
14721 char *kwnames[] = {
14722 (char *) "self", NULL
14723 };
14724
14725 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14726 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14727 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14728 {
14729 PyThreadState* __tstate = wxPyBeginAllowThreads();
14730 result = (int)((wxDC const *)arg1)->MaxY();
14731
14732 wxPyEndAllowThreads(__tstate);
14733 if (PyErr_Occurred()) SWIG_fail;
14734 }
14735 resultobj = SWIG_FromInt((int)result);
14736 return resultobj;
14737 fail:
14738 return NULL;
14739}
14740
14741
14742static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14743 PyObject *resultobj;
14744 wxDC *arg1 = (wxDC *) 0 ;
14745 int *arg2 = (int *) 0 ;
14746 int *arg3 = (int *) 0 ;
14747 int *arg4 = (int *) 0 ;
14748 int *arg5 = (int *) 0 ;
14749 int temp2 ;
14750 int temp3 ;
14751 int temp4 ;
14752 int temp5 ;
14753 PyObject * obj0 = 0 ;
14754 char *kwnames[] = {
14755 (char *) "self", NULL
14756 };
14757
14758 arg2 = &temp2;
14759 arg3 = &temp3;
14760 arg4 = &temp4;
14761 arg5 = &temp5;
14762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14763 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14764 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14765 {
14766 PyThreadState* __tstate = wxPyBeginAllowThreads();
14767 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14768
14769 wxPyEndAllowThreads(__tstate);
14770 if (PyErr_Occurred()) SWIG_fail;
14771 }
14772 Py_INCREF(Py_None); resultobj = Py_None;
14773 {
14774 PyObject *o = PyInt_FromLong((long) (*arg2));
14775 resultobj = t_output_helper(resultobj,o);
14776 }
14777 {
14778 PyObject *o = PyInt_FromLong((long) (*arg3));
14779 resultobj = t_output_helper(resultobj,o);
14780 }
14781 {
14782 PyObject *o = PyInt_FromLong((long) (*arg4));
14783 resultobj = t_output_helper(resultobj,o);
14784 }
14785 {
14786 PyObject *o = PyInt_FromLong((long) (*arg5));
14787 resultobj = t_output_helper(resultobj,o);
14788 }
14789 return resultobj;
14790 fail:
14791 return NULL;
14792}
14793
14794
14795static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14796 PyObject *resultobj;
14797 wxDC *arg1 = (wxDC *) 0 ;
14798 PyObject *arg2 = (PyObject *) 0 ;
14799 PyObject *arg3 = (PyObject *) 0 ;
14800 PyObject *arg4 = (PyObject *) 0 ;
14801 PyObject *result;
14802 PyObject * obj0 = 0 ;
14803 PyObject * obj1 = 0 ;
14804 PyObject * obj2 = 0 ;
14805 PyObject * obj3 = 0 ;
14806 char *kwnames[] = {
14807 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14808 };
14809
14810 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14811 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14812 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14813 arg2 = obj1;
14814 arg3 = obj2;
14815 arg4 = obj3;
14816 {
14817 PyThreadState* __tstate = wxPyBeginAllowThreads();
14818 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14819
14820 wxPyEndAllowThreads(__tstate);
14821 if (PyErr_Occurred()) SWIG_fail;
14822 }
14823 resultobj = result;
14824 return resultobj;
14825 fail:
14826 return NULL;
14827}
14828
14829
14830static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14831 PyObject *resultobj;
14832 wxDC *arg1 = (wxDC *) 0 ;
14833 PyObject *arg2 = (PyObject *) 0 ;
14834 PyObject *arg3 = (PyObject *) 0 ;
14835 PyObject *arg4 = (PyObject *) 0 ;
14836 PyObject *result;
14837 PyObject * obj0 = 0 ;
14838 PyObject * obj1 = 0 ;
14839 PyObject * obj2 = 0 ;
14840 PyObject * obj3 = 0 ;
14841 char *kwnames[] = {
14842 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14843 };
14844
14845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14848 arg2 = obj1;
14849 arg3 = obj2;
14850 arg4 = obj3;
14851 {
14852 PyThreadState* __tstate = wxPyBeginAllowThreads();
14853 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14854
14855 wxPyEndAllowThreads(__tstate);
14856 if (PyErr_Occurred()) SWIG_fail;
14857 }
14858 resultobj = result;
14859 return resultobj;
14860 fail:
14861 return NULL;
14862}
14863
14864
14865static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14866 PyObject *resultobj;
14867 wxDC *arg1 = (wxDC *) 0 ;
14868 PyObject *arg2 = (PyObject *) 0 ;
14869 PyObject *arg3 = (PyObject *) 0 ;
14870 PyObject *arg4 = (PyObject *) 0 ;
14871 PyObject *result;
14872 PyObject * obj0 = 0 ;
14873 PyObject * obj1 = 0 ;
14874 PyObject * obj2 = 0 ;
14875 PyObject * obj3 = 0 ;
14876 char *kwnames[] = {
14877 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14878 };
14879
14880 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14881 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14882 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14883 arg2 = obj1;
14884 arg3 = obj2;
14885 arg4 = obj3;
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14889
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = result;
14894 return resultobj;
14895 fail:
14896 return NULL;
14897}
14898
14899
14900static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj;
14902 wxDC *arg1 = (wxDC *) 0 ;
14903 PyObject *arg2 = (PyObject *) 0 ;
14904 PyObject *arg3 = (PyObject *) 0 ;
14905 PyObject *arg4 = (PyObject *) 0 ;
14906 PyObject *result;
14907 PyObject * obj0 = 0 ;
14908 PyObject * obj1 = 0 ;
14909 PyObject * obj2 = 0 ;
14910 PyObject * obj3 = 0 ;
14911 char *kwnames[] = {
14912 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14913 };
14914
14915 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14916 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14917 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14918 arg2 = obj1;
14919 arg3 = obj2;
14920 arg4 = obj3;
14921 {
14922 PyThreadState* __tstate = wxPyBeginAllowThreads();
14923 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14924
14925 wxPyEndAllowThreads(__tstate);
14926 if (PyErr_Occurred()) SWIG_fail;
14927 }
14928 resultobj = result;
14929 return resultobj;
14930 fail:
14931 return NULL;
14932}
14933
14934
14935static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14936 PyObject *resultobj;
14937 wxDC *arg1 = (wxDC *) 0 ;
14938 PyObject *arg2 = (PyObject *) 0 ;
14939 PyObject *arg3 = (PyObject *) 0 ;
14940 PyObject *arg4 = (PyObject *) 0 ;
14941 PyObject *result;
14942 PyObject * obj0 = 0 ;
14943 PyObject * obj1 = 0 ;
14944 PyObject * obj2 = 0 ;
14945 PyObject * obj3 = 0 ;
14946 char *kwnames[] = {
14947 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14948 };
14949
14950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14953 arg2 = obj1;
14954 arg3 = obj2;
14955 arg4 = obj3;
14956 {
14957 PyThreadState* __tstate = wxPyBeginAllowThreads();
14958 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14959
14960 wxPyEndAllowThreads(__tstate);
14961 if (PyErr_Occurred()) SWIG_fail;
14962 }
14963 resultobj = result;
14964 return resultobj;
14965 fail:
14966 return NULL;
14967}
14968
14969
14970static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14971 PyObject *resultobj;
14972 wxDC *arg1 = (wxDC *) 0 ;
14973 PyObject *arg2 = (PyObject *) 0 ;
14974 PyObject *arg3 = (PyObject *) 0 ;
14975 PyObject *arg4 = (PyObject *) 0 ;
14976 PyObject *arg5 = (PyObject *) 0 ;
14977 PyObject *result;
14978 PyObject * obj0 = 0 ;
14979 PyObject * obj1 = 0 ;
14980 PyObject * obj2 = 0 ;
14981 PyObject * obj3 = 0 ;
14982 PyObject * obj4 = 0 ;
14983 char *kwnames[] = {
14984 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14985 };
14986
14987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14990 arg2 = obj1;
14991 arg3 = obj2;
14992 arg4 = obj3;
14993 arg5 = obj4;
14994 {
14995 PyThreadState* __tstate = wxPyBeginAllowThreads();
14996 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14997
14998 wxPyEndAllowThreads(__tstate);
14999 if (PyErr_Occurred()) SWIG_fail;
15000 }
15001 resultobj = result;
15002 return resultobj;
15003 fail:
15004 return NULL;
15005}
15006
15007
15008static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15009 PyObject *obj;
15010 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15011 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15012 Py_INCREF(obj);
15013 return Py_BuildValue((char *)"");
15014}
15015static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15016 PyObject *resultobj;
15017 wxMemoryDC *result;
15018 char *kwnames[] = {
15019 NULL
15020 };
15021
15022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15023 {
0439c23b 15024 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15025 PyThreadState* __tstate = wxPyBeginAllowThreads();
15026 result = (wxMemoryDC *)new wxMemoryDC();
15027
15028 wxPyEndAllowThreads(__tstate);
110da5b0 15029 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15030 }
15031 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15032 return resultobj;
15033 fail:
15034 return NULL;
15035}
15036
15037
15038static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15039 PyObject *resultobj;
15040 wxDC *arg1 = (wxDC *) 0 ;
15041 wxMemoryDC *result;
15042 PyObject * obj0 = 0 ;
15043 char *kwnames[] = {
15044 (char *) "oldDC", NULL
15045 };
15046
15047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15050 {
0439c23b 15051 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15052 PyThreadState* __tstate = wxPyBeginAllowThreads();
15053 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15054
15055 wxPyEndAllowThreads(__tstate);
110da5b0 15056 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15057 }
15058 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15059 return resultobj;
15060 fail:
15061 return NULL;
15062}
15063
15064
15065static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15066 PyObject *resultobj;
15067 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15068 wxBitmap *arg2 = 0 ;
15069 PyObject * obj0 = 0 ;
15070 PyObject * obj1 = 0 ;
15071 char *kwnames[] = {
15072 (char *) "self",(char *) "bitmap", NULL
15073 };
15074
15075 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15076 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15077 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15078 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15079 SWIG_POINTER_EXCEPTION | 0)) == -1)
15080 SWIG_fail;
15081 if (arg2 == NULL) {
15082 PyErr_SetString(PyExc_TypeError,"null reference");
15083 SWIG_fail;
15084 }
15085 {
15086 PyThreadState* __tstate = wxPyBeginAllowThreads();
15087 (arg1)->SelectObject((wxBitmap const &)*arg2);
15088
15089 wxPyEndAllowThreads(__tstate);
15090 if (PyErr_Occurred()) SWIG_fail;
15091 }
15092 Py_INCREF(Py_None); resultobj = Py_None;
15093 return resultobj;
15094 fail:
15095 return NULL;
15096}
15097
15098
15099static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15100 PyObject *obj;
15101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15102 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15103 Py_INCREF(obj);
15104 return Py_BuildValue((char *)"");
15105}
15106static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15107 PyObject *resultobj;
15108 wxDC *arg1 = (wxDC *) 0 ;
15109 wxBitmap *arg2 = 0 ;
15110 wxBufferedDC *result;
15111 PyObject * obj0 = 0 ;
15112 PyObject * obj1 = 0 ;
15113
15114 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15115 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15116 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15117 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15118 SWIG_POINTER_EXCEPTION | 0)) == -1)
15119 SWIG_fail;
15120 if (arg2 == NULL) {
15121 PyErr_SetString(PyExc_TypeError,"null reference");
15122 SWIG_fail;
15123 }
15124 {
0439c23b 15125 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15126 PyThreadState* __tstate = wxPyBeginAllowThreads();
15127 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15128
15129 wxPyEndAllowThreads(__tstate);
110da5b0 15130 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15131 }
15132 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15133 return resultobj;
15134 fail:
15135 return NULL;
15136}
15137
15138
15139static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15140 PyObject *resultobj;
15141 wxDC *arg1 = (wxDC *) 0 ;
15142 wxSize *arg2 = 0 ;
15143 wxBufferedDC *result;
15144 wxSize temp2 ;
15145 PyObject * obj0 = 0 ;
15146 PyObject * obj1 = 0 ;
15147
15148 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15151 {
15152 arg2 = &temp2;
15153 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15154 }
15155 {
0439c23b 15156 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15157 PyThreadState* __tstate = wxPyBeginAllowThreads();
15158 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15159
15160 wxPyEndAllowThreads(__tstate);
110da5b0 15161 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15162 }
15163 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15164 return resultobj;
15165 fail:
15166 return NULL;
15167}
15168
15169
15170static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15171 int argc;
15172 PyObject *argv[3];
15173 int ii;
15174
15175 argc = PyObject_Length(args);
15176 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15177 argv[ii] = PyTuple_GetItem(args,ii);
15178 }
15179 if (argc == 2) {
15180 int _v;
15181 {
15182 void *ptr;
15183 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15184 _v = 0;
15185 PyErr_Clear();
15186 } else {
15187 _v = 1;
15188 }
15189 }
15190 if (_v) {
15191 {
15192 void *ptr;
15193 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15194 _v = 0;
15195 PyErr_Clear();
15196 } else {
15197 _v = 1;
15198 }
15199 }
15200 if (_v) {
15201 return _wrap_new_BufferedDC__SWIG_0(self,args);
15202 }
15203 }
15204 }
15205 if (argc == 2) {
15206 int _v;
15207 {
15208 void *ptr;
15209 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15210 _v = 0;
15211 PyErr_Clear();
15212 } else {
15213 _v = 1;
15214 }
15215 }
15216 if (_v) {
15217 {
15218 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15219 }
15220 if (_v) {
15221 return _wrap_new_BufferedDC__SWIG_1(self,args);
15222 }
15223 }
15224 }
15225
15226 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15227 return NULL;
15228}
15229
15230
15231static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15232 PyObject *resultobj;
15233 wxDC *arg1 = (wxDC *) 0 ;
15234 wxSize *arg2 = 0 ;
15235 wxBufferedDC *result;
15236 wxSize temp2 ;
15237 PyObject * obj0 = 0 ;
15238 PyObject * obj1 = 0 ;
15239
15240 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15241 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15242 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15243 {
15244 arg2 = &temp2;
15245 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15246 }
15247 {
0439c23b 15248 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15249 PyThreadState* __tstate = wxPyBeginAllowThreads();
15250 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15251
15252 wxPyEndAllowThreads(__tstate);
110da5b0 15253 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15254 }
15255 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15256 return resultobj;
15257 fail:
15258 return NULL;
15259}
15260
15261
15262static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15263 PyObject *resultobj;
15264 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15265 PyObject * obj0 = 0 ;
15266 char *kwnames[] = {
15267 (char *) "self", NULL
15268 };
15269
15270 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15271 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15272 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15273 {
15274 PyThreadState* __tstate = wxPyBeginAllowThreads();
15275 delete arg1;
15276
15277 wxPyEndAllowThreads(__tstate);
15278 if (PyErr_Occurred()) SWIG_fail;
15279 }
15280 Py_INCREF(Py_None); resultobj = Py_None;
15281 return resultobj;
15282 fail:
15283 return NULL;
15284}
15285
15286
15287static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15288 PyObject *resultobj;
15289 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15290 PyObject * obj0 = 0 ;
15291 char *kwnames[] = {
15292 (char *) "self", NULL
15293 };
15294
15295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15296 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15297 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15298 {
15299 PyThreadState* __tstate = wxPyBeginAllowThreads();
15300 (arg1)->UnMask();
15301
15302 wxPyEndAllowThreads(__tstate);
15303 if (PyErr_Occurred()) SWIG_fail;
15304 }
15305 Py_INCREF(Py_None); resultobj = Py_None;
15306 return resultobj;
15307 fail:
15308 return NULL;
15309}
15310
15311
15312static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15313 PyObject *obj;
15314 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15315 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15316 Py_INCREF(obj);
15317 return Py_BuildValue((char *)"");
15318}
15319static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15320 PyObject *resultobj;
15321 wxWindow *arg1 = (wxWindow *) 0 ;
15322 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15323 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15324 wxBufferedPaintDC *result;
15325 PyObject * obj0 = 0 ;
15326 PyObject * obj1 = 0 ;
15327 char *kwnames[] = {
15328 (char *) "window",(char *) "buffer", NULL
15329 };
15330
15331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15334 if (obj1) {
15335 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15336 SWIG_POINTER_EXCEPTION | 0)) == -1)
15337 SWIG_fail;
15338 if (arg2 == NULL) {
15339 PyErr_SetString(PyExc_TypeError,"null reference");
15340 SWIG_fail;
15341 }
15342 }
15343 {
0439c23b 15344 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15345 PyThreadState* __tstate = wxPyBeginAllowThreads();
15346 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15347
15348 wxPyEndAllowThreads(__tstate);
110da5b0 15349 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15350 }
15351 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15352 return resultobj;
15353 fail:
15354 return NULL;
15355}
15356
15357
15358static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15359 PyObject *obj;
15360 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15361 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15362 Py_INCREF(obj);
15363 return Py_BuildValue((char *)"");
15364}
15365static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15366 PyObject *resultobj;
15367 wxScreenDC *result;
15368 char *kwnames[] = {
15369 NULL
15370 };
15371
15372 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15373 {
0439c23b 15374 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15375 PyThreadState* __tstate = wxPyBeginAllowThreads();
15376 result = (wxScreenDC *)new wxScreenDC();
15377
15378 wxPyEndAllowThreads(__tstate);
110da5b0 15379 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15380 }
15381 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15382 return resultobj;
15383 fail:
15384 return NULL;
15385}
15386
15387
15388static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj;
15390 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15391 wxWindow *arg2 = (wxWindow *) 0 ;
15392 bool result;
15393 PyObject * obj0 = 0 ;
15394 PyObject * obj1 = 0 ;
15395 char *kwnames[] = {
15396 (char *) "self",(char *) "window", NULL
15397 };
15398
15399 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15400 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15401 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15402 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15404 {
15405 PyThreadState* __tstate = wxPyBeginAllowThreads();
15406 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15407
15408 wxPyEndAllowThreads(__tstate);
15409 if (PyErr_Occurred()) SWIG_fail;
15410 }
15411 {
15412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15413 }
15414 return resultobj;
15415 fail:
15416 return NULL;
15417}
15418
15419
15420static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15421 PyObject *resultobj;
15422 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15423 wxRect *arg2 = (wxRect *) NULL ;
15424 bool result;
15425 PyObject * obj0 = 0 ;
15426 PyObject * obj1 = 0 ;
15427 char *kwnames[] = {
15428 (char *) "self",(char *) "rect", NULL
15429 };
15430
15431 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15432 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15433 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15434 if (obj1) {
15435 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15437 }
15438 {
15439 PyThreadState* __tstate = wxPyBeginAllowThreads();
15440 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15441
15442 wxPyEndAllowThreads(__tstate);
15443 if (PyErr_Occurred()) SWIG_fail;
15444 }
15445 {
15446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15447 }
15448 return resultobj;
15449 fail:
15450 return NULL;
15451}
15452
15453
15454static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15455 PyObject *resultobj;
15456 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15457 bool result;
15458 PyObject * obj0 = 0 ;
15459 char *kwnames[] = {
15460 (char *) "self", NULL
15461 };
15462
15463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15466 {
15467 PyThreadState* __tstate = wxPyBeginAllowThreads();
15468 result = (bool)(arg1)->EndDrawingOnTop();
15469
15470 wxPyEndAllowThreads(__tstate);
15471 if (PyErr_Occurred()) SWIG_fail;
15472 }
15473 {
15474 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15475 }
15476 return resultobj;
15477 fail:
15478 return NULL;
15479}
15480
15481
15482static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15483 PyObject *obj;
15484 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15485 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15486 Py_INCREF(obj);
15487 return Py_BuildValue((char *)"");
15488}
15489static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15490 PyObject *resultobj;
15491 wxWindow *arg1 = (wxWindow *) 0 ;
15492 wxClientDC *result;
15493 PyObject * obj0 = 0 ;
15494 char *kwnames[] = {
15495 (char *) "win", NULL
15496 };
15497
15498 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15499 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15500 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15501 {
0439c23b 15502 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15503 PyThreadState* __tstate = wxPyBeginAllowThreads();
15504 result = (wxClientDC *)new wxClientDC(arg1);
15505
15506 wxPyEndAllowThreads(__tstate);
110da5b0 15507 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15508 }
15509 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15510 return resultobj;
15511 fail:
15512 return NULL;
15513}
15514
15515
15516static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15517 PyObject *obj;
15518 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15519 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15520 Py_INCREF(obj);
15521 return Py_BuildValue((char *)"");
15522}
15523static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15524 PyObject *resultobj;
15525 wxWindow *arg1 = (wxWindow *) 0 ;
15526 wxPaintDC *result;
15527 PyObject * obj0 = 0 ;
15528 char *kwnames[] = {
15529 (char *) "win", NULL
15530 };
15531
15532 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15533 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15534 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15535 {
0439c23b 15536 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15537 PyThreadState* __tstate = wxPyBeginAllowThreads();
15538 result = (wxPaintDC *)new wxPaintDC(arg1);
15539
15540 wxPyEndAllowThreads(__tstate);
110da5b0 15541 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15542 }
15543 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15544 return resultobj;
15545 fail:
15546 return NULL;
15547}
15548
15549
15550static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15551 PyObject *obj;
15552 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15553 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15554 Py_INCREF(obj);
15555 return Py_BuildValue((char *)"");
15556}
15557static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15558 PyObject *resultobj;
15559 wxWindow *arg1 = (wxWindow *) 0 ;
15560 wxWindowDC *result;
15561 PyObject * obj0 = 0 ;
15562 char *kwnames[] = {
15563 (char *) "win", NULL
15564 };
15565
15566 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15567 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15568 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15569 {
0439c23b 15570 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15571 PyThreadState* __tstate = wxPyBeginAllowThreads();
15572 result = (wxWindowDC *)new wxWindowDC(arg1);
15573
15574 wxPyEndAllowThreads(__tstate);
110da5b0 15575 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15576 }
15577 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15578 return resultobj;
15579 fail:
15580 return NULL;
15581}
15582
15583
15584static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15585 PyObject *obj;
15586 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15587 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15588 Py_INCREF(obj);
15589 return Py_BuildValue((char *)"");
15590}
15591static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15592 PyObject *resultobj;
15593 wxDC *arg1 = 0 ;
15594 bool arg2 ;
15595 wxMirrorDC *result;
15596 PyObject * obj0 = 0 ;
15597 PyObject * obj1 = 0 ;
15598 char *kwnames[] = {
15599 (char *) "dc",(char *) "mirror", NULL
15600 };
15601
15602 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15603 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15604 SWIG_POINTER_EXCEPTION | 0)) == -1)
15605 SWIG_fail;
15606 if (arg1 == NULL) {
15607 PyErr_SetString(PyExc_TypeError,"null reference");
15608 SWIG_fail;
15609 }
15610 arg2 = (bool) SWIG_AsBool(obj1);
15611 if (PyErr_Occurred()) SWIG_fail;
15612 {
0439c23b 15613 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15614 PyThreadState* __tstate = wxPyBeginAllowThreads();
15615 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15616
15617 wxPyEndAllowThreads(__tstate);
110da5b0 15618 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15619 }
15620 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15621 return resultobj;
15622 fail:
15623 return NULL;
15624}
15625
15626
15627static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15628 PyObject *obj;
15629 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15630 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15631 Py_INCREF(obj);
15632 return Py_BuildValue((char *)"");
15633}
15634static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15635 PyObject *resultobj;
15636 wxPrintData *arg1 = 0 ;
15637 wxPostScriptDC *result;
15638 PyObject * obj0 = 0 ;
15639 char *kwnames[] = {
15640 (char *) "printData", NULL
15641 };
15642
15643 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15644 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15645 SWIG_POINTER_EXCEPTION | 0)) == -1)
15646 SWIG_fail;
15647 if (arg1 == NULL) {
15648 PyErr_SetString(PyExc_TypeError,"null reference");
15649 SWIG_fail;
15650 }
15651 {
0439c23b 15652 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15653 PyThreadState* __tstate = wxPyBeginAllowThreads();
15654 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15655
15656 wxPyEndAllowThreads(__tstate);
110da5b0 15657 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15658 }
15659 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15660 return resultobj;
15661 fail:
15662 return NULL;
15663}
15664
15665
15666static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj;
15668 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15669 wxPrintData *result;
15670 PyObject * obj0 = 0 ;
15671 char *kwnames[] = {
15672 (char *) "self", NULL
15673 };
15674
15675 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15676 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15677 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15678 {
15679 PyThreadState* __tstate = wxPyBeginAllowThreads();
15680 {
15681 wxPrintData &_result_ref = (arg1)->GetPrintData();
15682 result = (wxPrintData *) &_result_ref;
15683 }
15684
15685 wxPyEndAllowThreads(__tstate);
15686 if (PyErr_Occurred()) SWIG_fail;
15687 }
15688 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15689 return resultobj;
15690 fail:
15691 return NULL;
15692}
15693
15694
15695static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15696 PyObject *resultobj;
15697 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15698 wxPrintData *arg2 = 0 ;
15699 PyObject * obj0 = 0 ;
15700 PyObject * obj1 = 0 ;
15701 char *kwnames[] = {
15702 (char *) "self",(char *) "data", NULL
15703 };
15704
15705 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15706 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15707 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15708 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15709 SWIG_POINTER_EXCEPTION | 0)) == -1)
15710 SWIG_fail;
15711 if (arg2 == NULL) {
15712 PyErr_SetString(PyExc_TypeError,"null reference");
15713 SWIG_fail;
15714 }
15715 {
15716 PyThreadState* __tstate = wxPyBeginAllowThreads();
15717 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15718
15719 wxPyEndAllowThreads(__tstate);
15720 if (PyErr_Occurred()) SWIG_fail;
15721 }
15722 Py_INCREF(Py_None); resultobj = Py_None;
15723 return resultobj;
15724 fail:
15725 return NULL;
15726}
15727
15728
15729static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15730 PyObject *resultobj;
15731 int arg1 ;
15732 PyObject * obj0 = 0 ;
15733 char *kwnames[] = {
15734 (char *) "ppi", NULL
15735 };
15736
15737 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15738 arg1 = (int) SWIG_AsInt(obj0);
15739 if (PyErr_Occurred()) SWIG_fail;
15740 {
15741 PyThreadState* __tstate = wxPyBeginAllowThreads();
15742 wxPostScriptDC::SetResolution(arg1);
15743
15744 wxPyEndAllowThreads(__tstate);
15745 if (PyErr_Occurred()) SWIG_fail;
15746 }
15747 Py_INCREF(Py_None); resultobj = Py_None;
15748 return resultobj;
15749 fail:
15750 return NULL;
15751}
15752
15753
15754static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15755 PyObject *resultobj;
15756 int result;
15757 char *kwnames[] = {
15758 NULL
15759 };
15760
15761 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15762 {
15763 PyThreadState* __tstate = wxPyBeginAllowThreads();
15764 result = (int)wxPostScriptDC::GetResolution();
15765
15766 wxPyEndAllowThreads(__tstate);
15767 if (PyErr_Occurred()) SWIG_fail;
15768 }
15769 resultobj = SWIG_FromInt((int)result);
15770 return resultobj;
15771 fail:
15772 return NULL;
15773}
15774
15775
15776static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15777 PyObject *obj;
15778 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15779 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15780 Py_INCREF(obj);
15781 return Py_BuildValue((char *)"");
15782}
15783static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15784 PyObject *resultobj;
15785 wxString const &arg1_defvalue = wxPyEmptyString ;
15786 wxString *arg1 = (wxString *) &arg1_defvalue ;
15787 wxMetaFile *result;
15788 bool temp1 = False ;
15789 PyObject * obj0 = 0 ;
15790 char *kwnames[] = {
15791 (char *) "filename", NULL
15792 };
15793
15794 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15795 if (obj0) {
15796 {
15797 arg1 = wxString_in_helper(obj0);
15798 if (arg1 == NULL) SWIG_fail;
15799 temp1 = True;
15800 }
15801 }
15802 {
0439c23b 15803 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15804 PyThreadState* __tstate = wxPyBeginAllowThreads();
15805 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15806
15807 wxPyEndAllowThreads(__tstate);
110da5b0 15808 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15809 }
15810 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15811 {
15812 if (temp1)
15813 delete arg1;
15814 }
15815 return resultobj;
15816 fail:
15817 {
15818 if (temp1)
15819 delete arg1;
15820 }
15821 return NULL;
15822}
15823
15824
15825static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15826 PyObject *resultobj;
15827 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15828 PyObject * obj0 = 0 ;
15829 char *kwnames[] = {
15830 (char *) "self", NULL
15831 };
15832
15833 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15834 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15835 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15836 {
15837 PyThreadState* __tstate = wxPyBeginAllowThreads();
15838 delete arg1;
15839
15840 wxPyEndAllowThreads(__tstate);
15841 if (PyErr_Occurred()) SWIG_fail;
15842 }
15843 Py_INCREF(Py_None); resultobj = Py_None;
15844 return resultobj;
15845 fail:
15846 return NULL;
15847}
15848
15849
15850static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15851 PyObject *resultobj;
15852 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15853 bool result;
15854 PyObject * obj0 = 0 ;
15855 char *kwnames[] = {
15856 (char *) "self", NULL
15857 };
15858
15859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15862 {
15863 PyThreadState* __tstate = wxPyBeginAllowThreads();
15864 result = (bool)(arg1)->Ok();
15865
15866 wxPyEndAllowThreads(__tstate);
15867 if (PyErr_Occurred()) SWIG_fail;
15868 }
15869 {
15870 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15871 }
15872 return resultobj;
15873 fail:
15874 return NULL;
15875}
15876
15877
15878static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15879 PyObject *resultobj;
15880 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15881 int arg2 = (int) 0 ;
15882 int arg3 = (int) 0 ;
15883 bool result;
15884 PyObject * obj0 = 0 ;
15885 PyObject * obj1 = 0 ;
15886 PyObject * obj2 = 0 ;
15887 char *kwnames[] = {
15888 (char *) "self",(char *) "width",(char *) "height", NULL
15889 };
15890
15891 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15892 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15893 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15894 if (obj1) {
15895 arg2 = (int) SWIG_AsInt(obj1);
15896 if (PyErr_Occurred()) SWIG_fail;
15897 }
15898 if (obj2) {
15899 arg3 = (int) SWIG_AsInt(obj2);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 {
15903 PyThreadState* __tstate = wxPyBeginAllowThreads();
15904 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15905
15906 wxPyEndAllowThreads(__tstate);
15907 if (PyErr_Occurred()) SWIG_fail;
15908 }
15909 {
15910 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15911 }
15912 return resultobj;
15913 fail:
15914 return NULL;
15915}
15916
15917
15918static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15919 PyObject *resultobj;
15920 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15921 wxSize result;
15922 PyObject * obj0 = 0 ;
15923 char *kwnames[] = {
15924 (char *) "self", NULL
15925 };
15926
15927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15930 {
15931 PyThreadState* __tstate = wxPyBeginAllowThreads();
15932 result = (arg1)->GetSize();
15933
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 {
15938 wxSize * resultptr;
15939 resultptr = new wxSize((wxSize &) result);
15940 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15941 }
15942 return resultobj;
15943 fail:
15944 return NULL;
15945}
15946
15947
15948static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15949 PyObject *resultobj;
15950 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15951 int result;
15952 PyObject * obj0 = 0 ;
15953 char *kwnames[] = {
15954 (char *) "self", NULL
15955 };
15956
15957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (int)(arg1)->GetWidth();
15963
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 resultobj = SWIG_FromInt((int)result);
15968 return resultobj;
15969 fail:
15970 return NULL;
15971}
15972
15973
15974static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15975 PyObject *resultobj;
15976 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15977 int result;
15978 PyObject * obj0 = 0 ;
15979 char *kwnames[] = {
15980 (char *) "self", NULL
15981 };
15982
15983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15986 {
15987 PyThreadState* __tstate = wxPyBeginAllowThreads();
15988 result = (int)(arg1)->GetHeight();
15989
15990 wxPyEndAllowThreads(__tstate);
15991 if (PyErr_Occurred()) SWIG_fail;
15992 }
15993 resultobj = SWIG_FromInt((int)result);
15994 return resultobj;
15995 fail:
15996 return NULL;
15997}
15998
15999
16000static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
16001 PyObject *obj;
16002 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16003 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
16004 Py_INCREF(obj);
16005 return Py_BuildValue((char *)"");
16006}
16007static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16008 PyObject *resultobj;
16009 wxString const &arg1_defvalue = wxPyEmptyString ;
16010 wxString *arg1 = (wxString *) &arg1_defvalue ;
16011 int arg2 = (int) 0 ;
16012 int arg3 = (int) 0 ;
16013 wxString const &arg4_defvalue = wxPyEmptyString ;
16014 wxString *arg4 = (wxString *) &arg4_defvalue ;
16015 wxMetaFileDC *result;
16016 bool temp1 = False ;
16017 bool temp4 = False ;
16018 PyObject * obj0 = 0 ;
16019 PyObject * obj1 = 0 ;
16020 PyObject * obj2 = 0 ;
16021 PyObject * obj3 = 0 ;
16022 char *kwnames[] = {
16023 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16024 };
16025
16026 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16027 if (obj0) {
16028 {
16029 arg1 = wxString_in_helper(obj0);
16030 if (arg1 == NULL) SWIG_fail;
16031 temp1 = True;
16032 }
16033 }
16034 if (obj1) {
16035 arg2 = (int) SWIG_AsInt(obj1);
16036 if (PyErr_Occurred()) SWIG_fail;
16037 }
16038 if (obj2) {
16039 arg3 = (int) SWIG_AsInt(obj2);
16040 if (PyErr_Occurred()) SWIG_fail;
16041 }
16042 if (obj3) {
16043 {
16044 arg4 = wxString_in_helper(obj3);
16045 if (arg4 == NULL) SWIG_fail;
16046 temp4 = True;
16047 }
16048 }
16049 {
0439c23b 16050 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16051 PyThreadState* __tstate = wxPyBeginAllowThreads();
16052 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16053
16054 wxPyEndAllowThreads(__tstate);
110da5b0 16055 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16056 }
16057 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16058 {
16059 if (temp1)
16060 delete arg1;
16061 }
16062 {
16063 if (temp4)
16064 delete arg4;
16065 }
16066 return resultobj;
16067 fail:
16068 {
16069 if (temp1)
16070 delete arg1;
16071 }
16072 {
16073 if (temp4)
16074 delete arg4;
16075 }
16076 return NULL;
16077}
16078
16079
16080static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16081 PyObject *resultobj;
16082 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16083 wxMetaFile *result;
16084 PyObject * obj0 = 0 ;
16085 char *kwnames[] = {
16086 (char *) "self", NULL
16087 };
16088
16089 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16090 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16091 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16092 {
16093 PyThreadState* __tstate = wxPyBeginAllowThreads();
16094 result = (wxMetaFile *)(arg1)->Close();
16095
16096 wxPyEndAllowThreads(__tstate);
16097 if (PyErr_Occurred()) SWIG_fail;
16098 }
16099 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16100 return resultobj;
16101 fail:
16102 return NULL;
16103}
16104
16105
16106static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16107 PyObject *obj;
16108 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16109 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16110 Py_INCREF(obj);
16111 return Py_BuildValue((char *)"");
16112}
16113static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16114 PyObject *resultobj;
16115 wxPrintData *arg1 = 0 ;
16116 wxPrinterDC *result;
16117 PyObject * obj0 = 0 ;
16118 char *kwnames[] = {
16119 (char *) "printData", NULL
16120 };
16121
16122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16124 SWIG_POINTER_EXCEPTION | 0)) == -1)
16125 SWIG_fail;
16126 if (arg1 == NULL) {
16127 PyErr_SetString(PyExc_TypeError,"null reference");
16128 SWIG_fail;
16129 }
16130 {
0439c23b 16131 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16132 PyThreadState* __tstate = wxPyBeginAllowThreads();
16133 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16134
16135 wxPyEndAllowThreads(__tstate);
110da5b0 16136 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16137 }
16138 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16139 return resultobj;
16140 fail:
16141 return NULL;
16142}
16143
16144
16145static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16146 PyObject *obj;
16147 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16148 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16149 Py_INCREF(obj);
16150 return Py_BuildValue((char *)"");
16151}
16152static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16153 PyObject *resultobj;
16154 int arg1 ;
16155 int arg2 ;
16156 int arg3 = (int) True ;
16157 int arg4 = (int) 1 ;
16158 wxImageList *result;
16159 PyObject * obj0 = 0 ;
16160 PyObject * obj1 = 0 ;
16161 PyObject * obj2 = 0 ;
16162 PyObject * obj3 = 0 ;
16163 char *kwnames[] = {
16164 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16165 };
16166
16167 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16168 arg1 = (int) SWIG_AsInt(obj0);
16169 if (PyErr_Occurred()) SWIG_fail;
16170 arg2 = (int) SWIG_AsInt(obj1);
16171 if (PyErr_Occurred()) SWIG_fail;
16172 if (obj2) {
16173 arg3 = (int) SWIG_AsInt(obj2);
16174 if (PyErr_Occurred()) SWIG_fail;
16175 }
16176 if (obj3) {
16177 arg4 = (int) SWIG_AsInt(obj3);
16178 if (PyErr_Occurred()) SWIG_fail;
16179 }
16180 {
0439c23b 16181 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16182 PyThreadState* __tstate = wxPyBeginAllowThreads();
16183 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16184
16185 wxPyEndAllowThreads(__tstate);
110da5b0 16186 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16187 }
16188 {
412d302d 16189 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
16190 }
16191 return resultobj;
16192 fail:
16193 return NULL;
16194}
16195
16196
16197static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16198 PyObject *resultobj;
16199 wxImageList *arg1 = (wxImageList *) 0 ;
16200 PyObject * obj0 = 0 ;
16201 char *kwnames[] = {
16202 (char *) "self", NULL
16203 };
16204
16205 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16206 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16207 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16208 {
16209 PyThreadState* __tstate = wxPyBeginAllowThreads();
16210 delete arg1;
16211
16212 wxPyEndAllowThreads(__tstate);
16213 if (PyErr_Occurred()) SWIG_fail;
16214 }
16215 Py_INCREF(Py_None); resultobj = Py_None;
16216 return resultobj;
16217 fail:
16218 return NULL;
16219}
16220
16221
16222static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16223 PyObject *resultobj;
16224 wxImageList *arg1 = (wxImageList *) 0 ;
16225 wxBitmap *arg2 = 0 ;
16226 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16227 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16228 int result;
16229 PyObject * obj0 = 0 ;
16230 PyObject * obj1 = 0 ;
16231 PyObject * obj2 = 0 ;
16232 char *kwnames[] = {
16233 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16234 };
16235
16236 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16237 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16238 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16239 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16240 SWIG_POINTER_EXCEPTION | 0)) == -1)
16241 SWIG_fail;
16242 if (arg2 == NULL) {
16243 PyErr_SetString(PyExc_TypeError,"null reference");
16244 SWIG_fail;
16245 }
16246 if (obj2) {
16247 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16248 SWIG_POINTER_EXCEPTION | 0)) == -1)
16249 SWIG_fail;
16250 if (arg3 == NULL) {
16251 PyErr_SetString(PyExc_TypeError,"null reference");
16252 SWIG_fail;
16253 }
16254 }
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16258
16259 wxPyEndAllowThreads(__tstate);
16260 if (PyErr_Occurred()) SWIG_fail;
16261 }
16262 resultobj = SWIG_FromInt((int)result);
16263 return resultobj;
16264 fail:
16265 return NULL;
16266}
16267
16268
16269static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16270 PyObject *resultobj;
16271 wxImageList *arg1 = (wxImageList *) 0 ;
16272 wxBitmap *arg2 = 0 ;
16273 wxColour *arg3 = 0 ;
16274 int result;
16275 wxColour temp3 ;
16276 PyObject * obj0 = 0 ;
16277 PyObject * obj1 = 0 ;
16278 PyObject * obj2 = 0 ;
16279 char *kwnames[] = {
16280 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16281 };
16282
16283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16284 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16285 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16286 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16287 SWIG_POINTER_EXCEPTION | 0)) == -1)
16288 SWIG_fail;
16289 if (arg2 == NULL) {
16290 PyErr_SetString(PyExc_TypeError,"null reference");
16291 SWIG_fail;
16292 }
16293 {
16294 arg3 = &temp3;
16295 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16296 }
16297 {
16298 PyThreadState* __tstate = wxPyBeginAllowThreads();
16299 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16300
16301 wxPyEndAllowThreads(__tstate);
16302 if (PyErr_Occurred()) SWIG_fail;
16303 }
16304 resultobj = SWIG_FromInt((int)result);
16305 return resultobj;
16306 fail:
16307 return NULL;
16308}
16309
16310
16311static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16312 PyObject *resultobj;
16313 wxImageList *arg1 = (wxImageList *) 0 ;
16314 wxIcon *arg2 = 0 ;
16315 int result;
16316 PyObject * obj0 = 0 ;
16317 PyObject * obj1 = 0 ;
16318 char *kwnames[] = {
16319 (char *) "self",(char *) "icon", NULL
16320 };
16321
16322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16325 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16326 SWIG_POINTER_EXCEPTION | 0)) == -1)
16327 SWIG_fail;
16328 if (arg2 == NULL) {
16329 PyErr_SetString(PyExc_TypeError,"null reference");
16330 SWIG_fail;
16331 }
16332 {
16333 PyThreadState* __tstate = wxPyBeginAllowThreads();
16334 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16335
16336 wxPyEndAllowThreads(__tstate);
16337 if (PyErr_Occurred()) SWIG_fail;
16338 }
16339 resultobj = SWIG_FromInt((int)result);
16340 return resultobj;
16341 fail:
16342 return NULL;
16343}
16344
16345
16346static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16347 PyObject *resultobj;
16348 wxImageList *arg1 = (wxImageList *) 0 ;
16349 int arg2 ;
16350 wxBitmap *arg3 = 0 ;
16351 bool result;
16352 PyObject * obj0 = 0 ;
16353 PyObject * obj1 = 0 ;
16354 PyObject * obj2 = 0 ;
16355 char *kwnames[] = {
16356 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16357 };
16358
16359 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16360 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16361 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16362 arg2 = (int) SWIG_AsInt(obj1);
16363 if (PyErr_Occurred()) SWIG_fail;
16364 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16365 SWIG_POINTER_EXCEPTION | 0)) == -1)
16366 SWIG_fail;
16367 if (arg3 == NULL) {
16368 PyErr_SetString(PyExc_TypeError,"null reference");
16369 SWIG_fail;
16370 }
16371 {
16372 PyThreadState* __tstate = wxPyBeginAllowThreads();
16373 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16374
16375 wxPyEndAllowThreads(__tstate);
16376 if (PyErr_Occurred()) SWIG_fail;
16377 }
16378 {
16379 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16380 }
16381 return resultobj;
16382 fail:
16383 return NULL;
16384}
16385
16386
16387static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16388 PyObject *resultobj;
16389 wxImageList *arg1 = (wxImageList *) 0 ;
16390 int arg2 ;
16391 wxDC *arg3 = 0 ;
16392 int arg4 ;
16393 int arg5 ;
16394 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16395 bool arg7 = (bool) (bool)False ;
16396 bool result;
16397 PyObject * obj0 = 0 ;
16398 PyObject * obj1 = 0 ;
16399 PyObject * obj2 = 0 ;
16400 PyObject * obj3 = 0 ;
16401 PyObject * obj4 = 0 ;
16402 PyObject * obj5 = 0 ;
16403 PyObject * obj6 = 0 ;
16404 char *kwnames[] = {
16405 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16406 };
16407
16408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16411 arg2 = (int) SWIG_AsInt(obj1);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16414 SWIG_POINTER_EXCEPTION | 0)) == -1)
16415 SWIG_fail;
16416 if (arg3 == NULL) {
16417 PyErr_SetString(PyExc_TypeError,"null reference");
16418 SWIG_fail;
16419 }
16420 arg4 = (int) SWIG_AsInt(obj3);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 arg5 = (int) SWIG_AsInt(obj4);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 if (obj5) {
16425 arg6 = (int) SWIG_AsInt(obj5);
16426 if (PyErr_Occurred()) SWIG_fail;
16427 }
16428 if (obj6) {
16429 arg7 = (bool const) SWIG_AsBool(obj6);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 {
16433 PyThreadState* __tstate = wxPyBeginAllowThreads();
16434 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16435
16436 wxPyEndAllowThreads(__tstate);
16437 if (PyErr_Occurred()) SWIG_fail;
16438 }
16439 {
16440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16441 }
16442 return resultobj;
16443 fail:
16444 return NULL;
16445}
16446
16447
16448static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16449 PyObject *resultobj;
16450 wxImageList *arg1 = (wxImageList *) 0 ;
16451 int result;
16452 PyObject * obj0 = 0 ;
16453 char *kwnames[] = {
16454 (char *) "self", NULL
16455 };
16456
16457 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16458 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16459 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = (int)(arg1)->GetImageCount();
16463
16464 wxPyEndAllowThreads(__tstate);
16465 if (PyErr_Occurred()) SWIG_fail;
16466 }
16467 resultobj = SWIG_FromInt((int)result);
16468 return resultobj;
16469 fail:
16470 return NULL;
16471}
16472
16473
16474static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16475 PyObject *resultobj;
16476 wxImageList *arg1 = (wxImageList *) 0 ;
16477 int arg2 ;
16478 bool result;
16479 PyObject * obj0 = 0 ;
16480 PyObject * obj1 = 0 ;
16481 char *kwnames[] = {
16482 (char *) "self",(char *) "index", NULL
16483 };
16484
16485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16488 arg2 = (int) SWIG_AsInt(obj1);
16489 if (PyErr_Occurred()) SWIG_fail;
16490 {
16491 PyThreadState* __tstate = wxPyBeginAllowThreads();
16492 result = (bool)(arg1)->Remove(arg2);
16493
16494 wxPyEndAllowThreads(__tstate);
16495 if (PyErr_Occurred()) SWIG_fail;
16496 }
16497 {
16498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16499 }
16500 return resultobj;
16501 fail:
16502 return NULL;
16503}
16504
16505
16506static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16507 PyObject *resultobj;
16508 wxImageList *arg1 = (wxImageList *) 0 ;
16509 bool result;
16510 PyObject * obj0 = 0 ;
16511 char *kwnames[] = {
16512 (char *) "self", NULL
16513 };
16514
16515 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16516 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16517 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16518 {
16519 PyThreadState* __tstate = wxPyBeginAllowThreads();
16520 result = (bool)(arg1)->RemoveAll();
16521
16522 wxPyEndAllowThreads(__tstate);
16523 if (PyErr_Occurred()) SWIG_fail;
16524 }
16525 {
16526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16527 }
16528 return resultobj;
16529 fail:
16530 return NULL;
16531}
16532
16533
16534static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj;
16536 wxImageList *arg1 = (wxImageList *) 0 ;
16537 int arg2 ;
16538 int *arg3 = 0 ;
16539 int *arg4 = 0 ;
16540 int temp3 ;
16541 int temp4 ;
16542 PyObject * obj0 = 0 ;
16543 PyObject * obj1 = 0 ;
16544 char *kwnames[] = {
16545 (char *) "self",(char *) "index", NULL
16546 };
16547
16548 arg3 = &temp3;
16549 arg4 = &temp4;
16550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16553 arg2 = (int) SWIG_AsInt(obj1);
16554 if (PyErr_Occurred()) SWIG_fail;
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 (arg1)->GetSize(arg2,*arg3,*arg4);
16558
16559 wxPyEndAllowThreads(__tstate);
16560 if (PyErr_Occurred()) SWIG_fail;
16561 }
16562 Py_INCREF(Py_None); resultobj = Py_None;
16563 {
16564 PyObject *o = PyInt_FromLong((long) (*arg3));
16565 resultobj = t_output_helper(resultobj,o);
16566 }
16567 {
16568 PyObject *o = PyInt_FromLong((long) (*arg4));
16569 resultobj = t_output_helper(resultobj,o);
16570 }
16571 return resultobj;
16572 fail:
16573 return NULL;
16574}
16575
16576
16577static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16578 PyObject *obj;
16579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16580 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16581 Py_INCREF(obj);
16582 return Py_BuildValue((char *)"");
16583}
16584static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16585 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16586 return 1;
16587}
16588
16589
16590static PyObject *_wrap_NORMAL_FONT_get() {
16591 PyObject *pyobj;
16592
16593 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16594 return pyobj;
16595}
16596
16597
16598static int _wrap_SMALL_FONT_set(PyObject *_val) {
16599 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16600 return 1;
16601}
16602
16603
16604static PyObject *_wrap_SMALL_FONT_get() {
16605 PyObject *pyobj;
16606
16607 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16608 return pyobj;
16609}
16610
16611
16612static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16613 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16614 return 1;
16615}
16616
16617
16618static PyObject *_wrap_ITALIC_FONT_get() {
16619 PyObject *pyobj;
16620
16621 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16622 return pyobj;
16623}
16624
16625
16626static int _wrap_SWISS_FONT_set(PyObject *_val) {
16627 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16628 return 1;
16629}
16630
16631
16632static PyObject *_wrap_SWISS_FONT_get() {
16633 PyObject *pyobj;
16634
16635 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16636 return pyobj;
16637}
16638
16639
16640static int _wrap_RED_PEN_set(PyObject *_val) {
16641 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16642 return 1;
16643}
16644
16645
16646static PyObject *_wrap_RED_PEN_get() {
16647 PyObject *pyobj;
16648
16649 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16650 return pyobj;
16651}
16652
16653
16654static int _wrap_CYAN_PEN_set(PyObject *_val) {
16655 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16656 return 1;
16657}
16658
16659
16660static PyObject *_wrap_CYAN_PEN_get() {
16661 PyObject *pyobj;
16662
16663 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16664 return pyobj;
16665}
16666
16667
16668static int _wrap_GREEN_PEN_set(PyObject *_val) {
16669 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16670 return 1;
16671}
16672
16673
16674static PyObject *_wrap_GREEN_PEN_get() {
16675 PyObject *pyobj;
16676
16677 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16678 return pyobj;
16679}
16680
16681
16682static int _wrap_BLACK_PEN_set(PyObject *_val) {
16683 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16684 return 1;
16685}
16686
16687
16688static PyObject *_wrap_BLACK_PEN_get() {
16689 PyObject *pyobj;
16690
16691 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16692 return pyobj;
16693}
16694
16695
16696static int _wrap_WHITE_PEN_set(PyObject *_val) {
16697 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16698 return 1;
16699}
16700
16701
16702static PyObject *_wrap_WHITE_PEN_get() {
16703 PyObject *pyobj;
16704
16705 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16706 return pyobj;
16707}
16708
16709
16710static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16711 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16712 return 1;
16713}
16714
16715
16716static PyObject *_wrap_TRANSPARENT_PEN_get() {
16717 PyObject *pyobj;
16718
16719 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16720 return pyobj;
16721}
16722
16723
16724static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16725 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16726 return 1;
16727}
16728
16729
16730static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16731 PyObject *pyobj;
16732
16733 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16734 return pyobj;
16735}
16736
16737
16738static int _wrap_GREY_PEN_set(PyObject *_val) {
16739 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16740 return 1;
16741}
16742
16743
16744static PyObject *_wrap_GREY_PEN_get() {
16745 PyObject *pyobj;
16746
16747 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16748 return pyobj;
16749}
16750
16751
16752static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16753 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16754 return 1;
16755}
16756
16757
16758static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16759 PyObject *pyobj;
16760
16761 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16762 return pyobj;
16763}
16764
16765
16766static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16767 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16768 return 1;
16769}
16770
16771
16772static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16773 PyObject *pyobj;
16774
16775 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16776 return pyobj;
16777}
16778
16779
16780static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16781 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16782 return 1;
16783}
16784
16785
16786static PyObject *_wrap_BLUE_BRUSH_get() {
16787 PyObject *pyobj;
16788
16789 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16790 return pyobj;
16791}
16792
16793
16794static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16795 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16796 return 1;
16797}
16798
16799
16800static PyObject *_wrap_GREEN_BRUSH_get() {
16801 PyObject *pyobj;
16802
16803 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16804 return pyobj;
16805}
16806
16807
16808static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16809 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16810 return 1;
16811}
16812
16813
16814static PyObject *_wrap_WHITE_BRUSH_get() {
16815 PyObject *pyobj;
16816
16817 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16818 return pyobj;
16819}
16820
16821
16822static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16823 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16824 return 1;
16825}
16826
16827
16828static PyObject *_wrap_BLACK_BRUSH_get() {
16829 PyObject *pyobj;
16830
16831 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16832 return pyobj;
16833}
16834
16835
16836static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16837 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16838 return 1;
16839}
16840
16841
16842static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16843 PyObject *pyobj;
16844
16845 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16846 return pyobj;
16847}
16848
16849
16850static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16851 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16852 return 1;
16853}
16854
16855
16856static PyObject *_wrap_CYAN_BRUSH_get() {
16857 PyObject *pyobj;
16858
16859 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16860 return pyobj;
16861}
16862
16863
16864static int _wrap_RED_BRUSH_set(PyObject *_val) {
16865 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16866 return 1;
16867}
16868
16869
16870static PyObject *_wrap_RED_BRUSH_get() {
16871 PyObject *pyobj;
16872
16873 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16874 return pyobj;
16875}
16876
16877
16878static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16879 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16880 return 1;
16881}
16882
16883
16884static PyObject *_wrap_GREY_BRUSH_get() {
16885 PyObject *pyobj;
16886
16887 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16888 return pyobj;
16889}
16890
16891
16892static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16893 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16894 return 1;
16895}
16896
16897
16898static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16899 PyObject *pyobj;
16900
16901 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16902 return pyobj;
16903}
16904
16905
16906static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16907 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16908 return 1;
16909}
16910
16911
16912static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16913 PyObject *pyobj;
16914
16915 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16916 return pyobj;
16917}
16918
16919
16920static int _wrap_BLACK_set(PyObject *_val) {
16921 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16922 return 1;
16923}
16924
16925
16926static PyObject *_wrap_BLACK_get() {
16927 PyObject *pyobj;
16928
16929 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16930 return pyobj;
16931}
16932
16933
16934static int _wrap_WHITE_set(PyObject *_val) {
16935 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16936 return 1;
16937}
16938
16939
16940static PyObject *_wrap_WHITE_get() {
16941 PyObject *pyobj;
16942
16943 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16944 return pyobj;
16945}
16946
16947
16948static int _wrap_RED_set(PyObject *_val) {
16949 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16950 return 1;
16951}
16952
16953
16954static PyObject *_wrap_RED_get() {
16955 PyObject *pyobj;
16956
16957 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16958 return pyobj;
16959}
16960
16961
16962static int _wrap_BLUE_set(PyObject *_val) {
16963 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16964 return 1;
16965}
16966
16967
16968static PyObject *_wrap_BLUE_get() {
16969 PyObject *pyobj;
16970
16971 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16972 return pyobj;
16973}
16974
16975
16976static int _wrap_GREEN_set(PyObject *_val) {
16977 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16978 return 1;
16979}
16980
16981
16982static PyObject *_wrap_GREEN_get() {
16983 PyObject *pyobj;
16984
16985 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16986 return pyobj;
16987}
16988
16989
16990static int _wrap_CYAN_set(PyObject *_val) {
16991 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16992 return 1;
16993}
16994
16995
16996static PyObject *_wrap_CYAN_get() {
16997 PyObject *pyobj;
16998
16999 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
17000 return pyobj;
17001}
17002
17003
17004static int _wrap_LIGHT_GREY_set(PyObject *_val) {
17005 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
17006 return 1;
17007}
17008
17009
17010static PyObject *_wrap_LIGHT_GREY_get() {
17011 PyObject *pyobj;
17012
17013 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17014 return pyobj;
17015}
17016
17017
17018static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17019 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17020 return 1;
17021}
17022
17023
17024static PyObject *_wrap_STANDARD_CURSOR_get() {
17025 PyObject *pyobj;
17026
17027 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17028 return pyobj;
17029}
17030
17031
17032static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17033 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17034 return 1;
17035}
17036
17037
17038static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17039 PyObject *pyobj;
17040
17041 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17042 return pyobj;
17043}
17044
17045
17046static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17047 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17048 return 1;
17049}
17050
17051
17052static PyObject *_wrap_CROSS_CURSOR_get() {
17053 PyObject *pyobj;
17054
17055 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17056 return pyobj;
17057}
17058
17059
17060static int _wrap_NullBitmap_set(PyObject *_val) {
17061 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17062 return 1;
17063}
17064
17065
17066static PyObject *_wrap_NullBitmap_get() {
17067 PyObject *pyobj;
17068
17069 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17070 return pyobj;
17071}
17072
17073
17074static int _wrap_NullIcon_set(PyObject *_val) {
17075 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17076 return 1;
17077}
17078
17079
17080static PyObject *_wrap_NullIcon_get() {
17081 PyObject *pyobj;
17082
17083 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17084 return pyobj;
17085}
17086
17087
17088static int _wrap_NullCursor_set(PyObject *_val) {
17089 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17090 return 1;
17091}
17092
17093
17094static PyObject *_wrap_NullCursor_get() {
17095 PyObject *pyobj;
17096
17097 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17098 return pyobj;
17099}
17100
17101
17102static int _wrap_NullPen_set(PyObject *_val) {
17103 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17104 return 1;
17105}
17106
17107
17108static PyObject *_wrap_NullPen_get() {
17109 PyObject *pyobj;
17110
17111 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17112 return pyobj;
17113}
17114
17115
17116static int _wrap_NullBrush_set(PyObject *_val) {
17117 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17118 return 1;
17119}
17120
17121
17122static PyObject *_wrap_NullBrush_get() {
17123 PyObject *pyobj;
17124
17125 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17126 return pyobj;
17127}
17128
17129
17130static int _wrap_NullPalette_set(PyObject *_val) {
17131 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17132 return 1;
17133}
17134
17135
17136static PyObject *_wrap_NullPalette_get() {
17137 PyObject *pyobj;
17138
17139 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17140 return pyobj;
17141}
17142
17143
17144static int _wrap_NullFont_set(PyObject *_val) {
17145 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17146 return 1;
17147}
17148
17149
17150static PyObject *_wrap_NullFont_get() {
17151 PyObject *pyobj;
17152
17153 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17154 return pyobj;
17155}
17156
17157
17158static int _wrap_NullColour_set(PyObject *_val) {
17159 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17160 return 1;
17161}
17162
17163
17164static PyObject *_wrap_NullColour_get() {
17165 PyObject *pyobj;
17166
17167 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17168 return pyobj;
17169}
17170
17171
17172static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17173 PyObject *resultobj;
17174 wxPenList *arg1 = (wxPenList *) 0 ;
17175 wxPen *arg2 = (wxPen *) 0 ;
17176 PyObject * obj0 = 0 ;
17177 PyObject * obj1 = 0 ;
17178 char *kwnames[] = {
17179 (char *) "self",(char *) "pen", NULL
17180 };
17181
17182 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17183 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17184 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17185 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17186 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17187 {
17188 PyThreadState* __tstate = wxPyBeginAllowThreads();
17189 (arg1)->AddPen(arg2);
17190
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 Py_INCREF(Py_None); resultobj = Py_None;
17195 return resultobj;
17196 fail:
17197 return NULL;
17198}
17199
17200
17201static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17202 PyObject *resultobj;
17203 wxPenList *arg1 = (wxPenList *) 0 ;
17204 wxColour *arg2 = 0 ;
17205 int arg3 ;
17206 int arg4 ;
17207 wxPen *result;
17208 wxColour temp2 ;
17209 PyObject * obj0 = 0 ;
17210 PyObject * obj1 = 0 ;
17211 PyObject * obj2 = 0 ;
17212 PyObject * obj3 = 0 ;
17213 char *kwnames[] = {
17214 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17215 };
17216
17217 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17218 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17219 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17220 {
17221 arg2 = &temp2;
17222 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17223 }
17224 arg3 = (int) SWIG_AsInt(obj2);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 arg4 = (int) SWIG_AsInt(obj3);
17227 if (PyErr_Occurred()) SWIG_fail;
17228 {
17229 PyThreadState* __tstate = wxPyBeginAllowThreads();
17230 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17231
17232 wxPyEndAllowThreads(__tstate);
17233 if (PyErr_Occurred()) SWIG_fail;
17234 }
17235 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17236 return resultobj;
17237 fail:
17238 return NULL;
17239}
17240
17241
17242static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17243 PyObject *resultobj;
17244 wxPenList *arg1 = (wxPenList *) 0 ;
17245 wxPen *arg2 = (wxPen *) 0 ;
17246 PyObject * obj0 = 0 ;
17247 PyObject * obj1 = 0 ;
17248 char *kwnames[] = {
17249 (char *) "self",(char *) "pen", NULL
17250 };
17251
17252 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17253 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17254 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17255 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17257 {
17258 PyThreadState* __tstate = wxPyBeginAllowThreads();
17259 (arg1)->RemovePen(arg2);
17260
17261 wxPyEndAllowThreads(__tstate);
17262 if (PyErr_Occurred()) SWIG_fail;
17263 }
17264 Py_INCREF(Py_None); resultobj = Py_None;
17265 return resultobj;
17266 fail:
17267 return NULL;
17268}
17269
17270
17271static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17272 PyObject *resultobj;
17273 wxPenList *arg1 = (wxPenList *) 0 ;
17274 int result;
17275 PyObject * obj0 = 0 ;
17276 char *kwnames[] = {
17277 (char *) "self", NULL
17278 };
17279
17280 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17281 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17282 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 result = (int)(arg1)->GetCount();
17286
17287 wxPyEndAllowThreads(__tstate);
17288 if (PyErr_Occurred()) SWIG_fail;
17289 }
17290 resultobj = SWIG_FromInt((int)result);
17291 return resultobj;
17292 fail:
17293 return NULL;
17294}
17295
17296
17297static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17298 PyObject *obj;
17299 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17300 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17301 Py_INCREF(obj);
17302 return Py_BuildValue((char *)"");
17303}
17304static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17305 PyObject *resultobj;
17306 wxBrushList *arg1 = (wxBrushList *) 0 ;
17307 wxBrush *arg2 = (wxBrush *) 0 ;
17308 PyObject * obj0 = 0 ;
17309 PyObject * obj1 = 0 ;
17310 char *kwnames[] = {
17311 (char *) "self",(char *) "brush", NULL
17312 };
17313
17314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17317 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17319 {
17320 PyThreadState* __tstate = wxPyBeginAllowThreads();
17321 (arg1)->AddBrush(arg2);
17322
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 Py_INCREF(Py_None); resultobj = Py_None;
17327 return resultobj;
17328 fail:
17329 return NULL;
17330}
17331
17332
17333static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17334 PyObject *resultobj;
17335 wxBrushList *arg1 = (wxBrushList *) 0 ;
17336 wxColour *arg2 = 0 ;
17337 int arg3 ;
17338 wxBrush *result;
17339 wxColour temp2 ;
17340 PyObject * obj0 = 0 ;
17341 PyObject * obj1 = 0 ;
17342 PyObject * obj2 = 0 ;
17343 char *kwnames[] = {
17344 (char *) "self",(char *) "colour",(char *) "style", NULL
17345 };
17346
17347 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17348 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17349 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17350 {
17351 arg2 = &temp2;
17352 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17353 }
17354 arg3 = (int) SWIG_AsInt(obj2);
17355 if (PyErr_Occurred()) SWIG_fail;
17356 {
17357 PyThreadState* __tstate = wxPyBeginAllowThreads();
17358 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17359
17360 wxPyEndAllowThreads(__tstate);
17361 if (PyErr_Occurred()) SWIG_fail;
17362 }
17363 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17364 return resultobj;
17365 fail:
17366 return NULL;
17367}
17368
17369
17370static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17371 PyObject *resultobj;
17372 wxBrushList *arg1 = (wxBrushList *) 0 ;
17373 wxBrush *arg2 = (wxBrush *) 0 ;
17374 PyObject * obj0 = 0 ;
17375 PyObject * obj1 = 0 ;
17376 char *kwnames[] = {
17377 (char *) "self",(char *) "brush", NULL
17378 };
17379
17380 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17381 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17382 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17383 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17384 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 (arg1)->RemoveBrush(arg2);
17388
17389 wxPyEndAllowThreads(__tstate);
17390 if (PyErr_Occurred()) SWIG_fail;
17391 }
17392 Py_INCREF(Py_None); resultobj = Py_None;
17393 return resultobj;
17394 fail:
17395 return NULL;
17396}
17397
17398
17399static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17400 PyObject *resultobj;
17401 wxBrushList *arg1 = (wxBrushList *) 0 ;
17402 int result;
17403 PyObject * obj0 = 0 ;
17404 char *kwnames[] = {
17405 (char *) "self", NULL
17406 };
17407
17408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17411 {
17412 PyThreadState* __tstate = wxPyBeginAllowThreads();
17413 result = (int)(arg1)->GetCount();
17414
17415 wxPyEndAllowThreads(__tstate);
17416 if (PyErr_Occurred()) SWIG_fail;
17417 }
17418 resultobj = SWIG_FromInt((int)result);
17419 return resultobj;
17420 fail:
17421 return NULL;
17422}
17423
17424
17425static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17426 PyObject *obj;
17427 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17428 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17429 Py_INCREF(obj);
17430 return Py_BuildValue((char *)"");
17431}
17432static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17433 PyObject *resultobj;
17434 wxColourDatabase *result;
17435 char *kwnames[] = {
17436 NULL
17437 };
17438
17439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17440 {
0439c23b 17441 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17442 PyThreadState* __tstate = wxPyBeginAllowThreads();
17443 result = (wxColourDatabase *)new wxColourDatabase();
17444
17445 wxPyEndAllowThreads(__tstate);
110da5b0 17446 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17447 }
17448 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17449 return resultobj;
17450 fail:
17451 return NULL;
17452}
17453
17454
17455static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17456 PyObject *resultobj;
17457 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17458 PyObject * obj0 = 0 ;
17459 char *kwnames[] = {
17460 (char *) "self", NULL
17461 };
17462
17463 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17464 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17465 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17466 {
17467 PyThreadState* __tstate = wxPyBeginAllowThreads();
17468 delete arg1;
17469
17470 wxPyEndAllowThreads(__tstate);
17471 if (PyErr_Occurred()) SWIG_fail;
17472 }
17473 Py_INCREF(Py_None); resultobj = Py_None;
17474 return resultobj;
17475 fail:
17476 return NULL;
17477}
17478
17479
17480static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17481 PyObject *resultobj;
17482 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17483 wxString *arg2 = 0 ;
17484 wxColour result;
17485 bool temp2 = False ;
17486 PyObject * obj0 = 0 ;
17487 PyObject * obj1 = 0 ;
17488 char *kwnames[] = {
17489 (char *) "self",(char *) "name", NULL
17490 };
17491
17492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17495 {
17496 arg2 = wxString_in_helper(obj1);
17497 if (arg2 == NULL) SWIG_fail;
17498 temp2 = True;
17499 }
17500 {
17501 PyThreadState* __tstate = wxPyBeginAllowThreads();
17502 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17503
17504 wxPyEndAllowThreads(__tstate);
17505 if (PyErr_Occurred()) SWIG_fail;
17506 }
17507 {
17508 wxColour * resultptr;
17509 resultptr = new wxColour((wxColour &) result);
17510 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17511 }
17512 {
17513 if (temp2)
17514 delete arg2;
17515 }
17516 return resultobj;
17517 fail:
17518 {
17519 if (temp2)
17520 delete arg2;
17521 }
17522 return NULL;
17523}
17524
17525
17526static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17527 PyObject *resultobj;
17528 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17529 wxColour *arg2 = 0 ;
17530 wxString result;
17531 wxColour temp2 ;
17532 PyObject * obj0 = 0 ;
17533 PyObject * obj1 = 0 ;
17534 char *kwnames[] = {
17535 (char *) "self",(char *) "colour", NULL
17536 };
17537
17538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17541 {
17542 arg2 = &temp2;
17543 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17544 }
17545 {
17546 PyThreadState* __tstate = wxPyBeginAllowThreads();
17547 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17548
17549 wxPyEndAllowThreads(__tstate);
17550 if (PyErr_Occurred()) SWIG_fail;
17551 }
17552 {
17553#if wxUSE_UNICODE
17554 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17555#else
17556 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17557#endif
17558 }
17559 return resultobj;
17560 fail:
17561 return NULL;
17562}
17563
17564
17565static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17566 PyObject *resultobj;
17567 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17568 wxString *arg2 = 0 ;
17569 wxColour *arg3 = 0 ;
17570 bool temp2 = False ;
17571 wxColour temp3 ;
17572 PyObject * obj0 = 0 ;
17573 PyObject * obj1 = 0 ;
17574 PyObject * obj2 = 0 ;
17575 char *kwnames[] = {
17576 (char *) "self",(char *) "name",(char *) "colour", NULL
17577 };
17578
17579 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17580 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17581 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17582 {
17583 arg2 = wxString_in_helper(obj1);
17584 if (arg2 == NULL) SWIG_fail;
17585 temp2 = True;
17586 }
17587 {
17588 arg3 = &temp3;
17589 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17590 }
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17594
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 Py_INCREF(Py_None); resultobj = Py_None;
17599 {
17600 if (temp2)
17601 delete arg2;
17602 }
17603 return resultobj;
17604 fail:
17605 {
17606 if (temp2)
17607 delete arg2;
17608 }
17609 return NULL;
17610}
17611
17612
17613static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17614 PyObject *resultobj;
17615 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17616 wxString *arg2 = 0 ;
17617 int arg3 ;
17618 int arg4 ;
17619 int arg5 ;
17620 bool temp2 = False ;
17621 PyObject * obj0 = 0 ;
17622 PyObject * obj1 = 0 ;
17623 PyObject * obj2 = 0 ;
17624 PyObject * obj3 = 0 ;
17625 PyObject * obj4 = 0 ;
17626 char *kwnames[] = {
17627 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17628 };
17629
17630 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17631 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17632 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17633 {
17634 arg2 = wxString_in_helper(obj1);
17635 if (arg2 == NULL) SWIG_fail;
17636 temp2 = True;
17637 }
17638 arg3 = (int) SWIG_AsInt(obj2);
17639 if (PyErr_Occurred()) SWIG_fail;
17640 arg4 = (int) SWIG_AsInt(obj3);
17641 if (PyErr_Occurred()) SWIG_fail;
17642 arg5 = (int) SWIG_AsInt(obj4);
17643 if (PyErr_Occurred()) SWIG_fail;
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17647
17648 wxPyEndAllowThreads(__tstate);
17649 if (PyErr_Occurred()) SWIG_fail;
17650 }
17651 Py_INCREF(Py_None); resultobj = Py_None;
17652 {
17653 if (temp2)
17654 delete arg2;
17655 }
17656 return resultobj;
17657 fail:
17658 {
17659 if (temp2)
17660 delete arg2;
17661 }
17662 return NULL;
17663}
17664
17665
17666static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17667 PyObject *obj;
17668 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17669 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17670 Py_INCREF(obj);
17671 return Py_BuildValue((char *)"");
17672}
17673static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17674 PyObject *resultobj;
17675 wxFontList *arg1 = (wxFontList *) 0 ;
17676 wxFont *arg2 = (wxFont *) 0 ;
17677 PyObject * obj0 = 0 ;
17678 PyObject * obj1 = 0 ;
17679 char *kwnames[] = {
17680 (char *) "self",(char *) "font", NULL
17681 };
17682
17683 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17684 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17685 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17686 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17687 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17688 {
17689 PyThreadState* __tstate = wxPyBeginAllowThreads();
17690 (arg1)->AddFont(arg2);
17691
17692 wxPyEndAllowThreads(__tstate);
17693 if (PyErr_Occurred()) SWIG_fail;
17694 }
17695 Py_INCREF(Py_None); resultobj = Py_None;
17696 return resultobj;
17697 fail:
17698 return NULL;
17699}
17700
17701
17702static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17703 PyObject *resultobj;
17704 wxFontList *arg1 = (wxFontList *) 0 ;
17705 int arg2 ;
17706 int arg3 ;
17707 int arg4 ;
17708 int arg5 ;
17709 bool arg6 = (bool) False ;
17710 wxString const &arg7_defvalue = wxPyEmptyString ;
17711 wxString *arg7 = (wxString *) &arg7_defvalue ;
17712 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17713 wxFont *result;
17714 bool temp7 = False ;
17715 PyObject * obj0 = 0 ;
17716 PyObject * obj1 = 0 ;
17717 PyObject * obj2 = 0 ;
17718 PyObject * obj3 = 0 ;
17719 PyObject * obj4 = 0 ;
17720 PyObject * obj5 = 0 ;
17721 PyObject * obj6 = 0 ;
17722 PyObject * obj7 = 0 ;
17723 char *kwnames[] = {
17724 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17725 };
17726
17727 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17728 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17729 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17730 arg2 = (int) SWIG_AsInt(obj1);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 arg3 = (int) SWIG_AsInt(obj2);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 arg4 = (int) SWIG_AsInt(obj3);
17735 if (PyErr_Occurred()) SWIG_fail;
17736 arg5 = (int) SWIG_AsInt(obj4);
17737 if (PyErr_Occurred()) SWIG_fail;
17738 if (obj5) {
17739 arg6 = (bool) SWIG_AsBool(obj5);
17740 if (PyErr_Occurred()) SWIG_fail;
17741 }
17742 if (obj6) {
17743 {
17744 arg7 = wxString_in_helper(obj6);
17745 if (arg7 == NULL) SWIG_fail;
17746 temp7 = True;
17747 }
17748 }
17749 if (obj7) {
17750 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 {
17754 PyThreadState* __tstate = wxPyBeginAllowThreads();
17755 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17756
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17761 {
17762 if (temp7)
17763 delete arg7;
17764 }
17765 return resultobj;
17766 fail:
17767 {
17768 if (temp7)
17769 delete arg7;
17770 }
17771 return NULL;
17772}
17773
17774
17775static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17776 PyObject *resultobj;
17777 wxFontList *arg1 = (wxFontList *) 0 ;
17778 wxFont *arg2 = (wxFont *) 0 ;
17779 PyObject * obj0 = 0 ;
17780 PyObject * obj1 = 0 ;
17781 char *kwnames[] = {
17782 (char *) "self",(char *) "font", NULL
17783 };
17784
17785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17790 {
17791 PyThreadState* __tstate = wxPyBeginAllowThreads();
17792 (arg1)->RemoveFont(arg2);
17793
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 Py_INCREF(Py_None); resultobj = Py_None;
17798 return resultobj;
17799 fail:
17800 return NULL;
17801}
17802
17803
17804static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17805 PyObject *resultobj;
17806 wxFontList *arg1 = (wxFontList *) 0 ;
17807 int result;
17808 PyObject * obj0 = 0 ;
17809 char *kwnames[] = {
17810 (char *) "self", NULL
17811 };
17812
17813 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17814 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17815 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 result = (int)(arg1)->GetCount();
17819
17820 wxPyEndAllowThreads(__tstate);
17821 if (PyErr_Occurred()) SWIG_fail;
17822 }
17823 resultobj = SWIG_FromInt((int)result);
17824 return resultobj;
17825 fail:
17826 return NULL;
17827}
17828
17829
17830static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17831 PyObject *obj;
17832 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17833 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17834 Py_INCREF(obj);
17835 return Py_BuildValue((char *)"");
17836}
17837static int _wrap_TheFontList_set(PyObject *_val) {
17838 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17839 return 1;
17840}
17841
17842
17843static PyObject *_wrap_TheFontList_get() {
17844 PyObject *pyobj;
17845
17846 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17847 return pyobj;
17848}
17849
17850
17851static int _wrap_ThePenList_set(PyObject *_val) {
17852 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17853 return 1;
17854}
17855
17856
17857static PyObject *_wrap_ThePenList_get() {
17858 PyObject *pyobj;
17859
17860 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17861 return pyobj;
17862}
17863
17864
17865static int _wrap_TheBrushList_set(PyObject *_val) {
17866 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17867 return 1;
17868}
17869
17870
17871static PyObject *_wrap_TheBrushList_get() {
17872 PyObject *pyobj;
17873
17874 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17875 return pyobj;
17876}
17877
17878
17879static int _wrap_TheColourDatabase_set(PyObject *_val) {
17880 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17881 return 1;
17882}
17883
17884
17885static PyObject *_wrap_TheColourDatabase_get() {
17886 PyObject *pyobj;
17887
17888 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17889 return pyobj;
17890}
17891
17892
17893static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17894 PyObject *resultobj;
17895 wxEffects *result;
17896 char *kwnames[] = {
17897 NULL
17898 };
17899
17900 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17901 {
17902 PyThreadState* __tstate = wxPyBeginAllowThreads();
17903 result = (wxEffects *)new wxEffects();
17904
17905 wxPyEndAllowThreads(__tstate);
17906 if (PyErr_Occurred()) SWIG_fail;
17907 }
17908 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17909 return resultobj;
17910 fail:
17911 return NULL;
17912}
17913
17914
17915static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17916 PyObject *resultobj;
17917 wxEffects *arg1 = (wxEffects *) 0 ;
17918 wxColour result;
17919 PyObject * obj0 = 0 ;
17920 char *kwnames[] = {
17921 (char *) "self", NULL
17922 };
17923
17924 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17925 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17926 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17927 {
17928 PyThreadState* __tstate = wxPyBeginAllowThreads();
17929 result = ((wxEffects const *)arg1)->GetHighlightColour();
17930
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 {
17935 wxColour * resultptr;
17936 resultptr = new wxColour((wxColour &) result);
17937 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17938 }
17939 return resultobj;
17940 fail:
17941 return NULL;
17942}
17943
17944
17945static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17946 PyObject *resultobj;
17947 wxEffects *arg1 = (wxEffects *) 0 ;
17948 wxColour result;
17949 PyObject * obj0 = 0 ;
17950 char *kwnames[] = {
17951 (char *) "self", NULL
17952 };
17953
17954 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17955 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17956 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17957 {
17958 PyThreadState* __tstate = wxPyBeginAllowThreads();
17959 result = ((wxEffects const *)arg1)->GetLightShadow();
17960
17961 wxPyEndAllowThreads(__tstate);
17962 if (PyErr_Occurred()) SWIG_fail;
17963 }
17964 {
17965 wxColour * resultptr;
17966 resultptr = new wxColour((wxColour &) result);
17967 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17968 }
17969 return resultobj;
17970 fail:
17971 return NULL;
17972}
17973
17974
17975static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17976 PyObject *resultobj;
17977 wxEffects *arg1 = (wxEffects *) 0 ;
17978 wxColour result;
17979 PyObject * obj0 = 0 ;
17980 char *kwnames[] = {
17981 (char *) "self", NULL
17982 };
17983
17984 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17985 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17986 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17987 {
17988 PyThreadState* __tstate = wxPyBeginAllowThreads();
17989 result = ((wxEffects const *)arg1)->GetFaceColour();
17990
17991 wxPyEndAllowThreads(__tstate);
17992 if (PyErr_Occurred()) SWIG_fail;
17993 }
17994 {
17995 wxColour * resultptr;
17996 resultptr = new wxColour((wxColour &) result);
17997 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17998 }
17999 return resultobj;
18000 fail:
18001 return NULL;
18002}
18003
18004
18005static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18006 PyObject *resultobj;
18007 wxEffects *arg1 = (wxEffects *) 0 ;
18008 wxColour result;
18009 PyObject * obj0 = 0 ;
18010 char *kwnames[] = {
18011 (char *) "self", NULL
18012 };
18013
18014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18017 {
18018 PyThreadState* __tstate = wxPyBeginAllowThreads();
18019 result = ((wxEffects const *)arg1)->GetMediumShadow();
18020
18021 wxPyEndAllowThreads(__tstate);
18022 if (PyErr_Occurred()) SWIG_fail;
18023 }
18024 {
18025 wxColour * resultptr;
18026 resultptr = new wxColour((wxColour &) result);
18027 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18028 }
18029 return resultobj;
18030 fail:
18031 return NULL;
18032}
18033
18034
18035static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18036 PyObject *resultobj;
18037 wxEffects *arg1 = (wxEffects *) 0 ;
18038 wxColour result;
18039 PyObject * obj0 = 0 ;
18040 char *kwnames[] = {
18041 (char *) "self", NULL
18042 };
18043
18044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18047 {
18048 PyThreadState* __tstate = wxPyBeginAllowThreads();
18049 result = ((wxEffects const *)arg1)->GetDarkShadow();
18050
18051 wxPyEndAllowThreads(__tstate);
18052 if (PyErr_Occurred()) SWIG_fail;
18053 }
18054 {
18055 wxColour * resultptr;
18056 resultptr = new wxColour((wxColour &) result);
18057 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18058 }
18059 return resultobj;
18060 fail:
18061 return NULL;
18062}
18063
18064
18065static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18066 PyObject *resultobj;
18067 wxEffects *arg1 = (wxEffects *) 0 ;
18068 wxColour *arg2 = 0 ;
18069 wxColour temp2 ;
18070 PyObject * obj0 = 0 ;
18071 PyObject * obj1 = 0 ;
18072 char *kwnames[] = {
18073 (char *) "self",(char *) "c", NULL
18074 };
18075
18076 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18077 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18078 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18079 {
18080 arg2 = &temp2;
18081 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18082 }
18083 {
18084 PyThreadState* __tstate = wxPyBeginAllowThreads();
18085 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18086
18087 wxPyEndAllowThreads(__tstate);
18088 if (PyErr_Occurred()) SWIG_fail;
18089 }
18090 Py_INCREF(Py_None); resultobj = Py_None;
18091 return resultobj;
18092 fail:
18093 return NULL;
18094}
18095
18096
18097static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18098 PyObject *resultobj;
18099 wxEffects *arg1 = (wxEffects *) 0 ;
18100 wxColour *arg2 = 0 ;
18101 wxColour temp2 ;
18102 PyObject * obj0 = 0 ;
18103 PyObject * obj1 = 0 ;
18104 char *kwnames[] = {
18105 (char *) "self",(char *) "c", NULL
18106 };
18107
18108 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18109 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18110 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18111 {
18112 arg2 = &temp2;
18113 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18114 }
18115 {
18116 PyThreadState* __tstate = wxPyBeginAllowThreads();
18117 (arg1)->SetLightShadow((wxColour const &)*arg2);
18118
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 Py_INCREF(Py_None); resultobj = Py_None;
18123 return resultobj;
18124 fail:
18125 return NULL;
18126}
18127
18128
18129static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18130 PyObject *resultobj;
18131 wxEffects *arg1 = (wxEffects *) 0 ;
18132 wxColour *arg2 = 0 ;
18133 wxColour temp2 ;
18134 PyObject * obj0 = 0 ;
18135 PyObject * obj1 = 0 ;
18136 char *kwnames[] = {
18137 (char *) "self",(char *) "c", NULL
18138 };
18139
18140 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18141 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18142 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18143 {
18144 arg2 = &temp2;
18145 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18146 }
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 (arg1)->SetFaceColour((wxColour const &)*arg2);
18150
18151 wxPyEndAllowThreads(__tstate);
18152 if (PyErr_Occurred()) SWIG_fail;
18153 }
18154 Py_INCREF(Py_None); resultobj = Py_None;
18155 return resultobj;
18156 fail:
18157 return NULL;
18158}
18159
18160
18161static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18162 PyObject *resultobj;
18163 wxEffects *arg1 = (wxEffects *) 0 ;
18164 wxColour *arg2 = 0 ;
18165 wxColour temp2 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 char *kwnames[] = {
18169 (char *) "self",(char *) "c", NULL
18170 };
18171
18172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18175 {
18176 arg2 = &temp2;
18177 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18178 }
18179 {
18180 PyThreadState* __tstate = wxPyBeginAllowThreads();
18181 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18182
18183 wxPyEndAllowThreads(__tstate);
18184 if (PyErr_Occurred()) SWIG_fail;
18185 }
18186 Py_INCREF(Py_None); resultobj = Py_None;
18187 return resultobj;
18188 fail:
18189 return NULL;
18190}
18191
18192
18193static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18194 PyObject *resultobj;
18195 wxEffects *arg1 = (wxEffects *) 0 ;
18196 wxColour *arg2 = 0 ;
18197 wxColour temp2 ;
18198 PyObject * obj0 = 0 ;
18199 PyObject * obj1 = 0 ;
18200 char *kwnames[] = {
18201 (char *) "self",(char *) "c", NULL
18202 };
18203
18204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18207 {
18208 arg2 = &temp2;
18209 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18210 }
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18214
18215 wxPyEndAllowThreads(__tstate);
18216 if (PyErr_Occurred()) SWIG_fail;
18217 }
18218 Py_INCREF(Py_None); resultobj = Py_None;
18219 return resultobj;
18220 fail:
18221 return NULL;
18222}
18223
18224
18225static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18226 PyObject *resultobj;
18227 wxEffects *arg1 = (wxEffects *) 0 ;
18228 wxColour *arg2 = 0 ;
18229 wxColour *arg3 = 0 ;
18230 wxColour *arg4 = 0 ;
18231 wxColour *arg5 = 0 ;
18232 wxColour *arg6 = 0 ;
18233 wxColour temp2 ;
18234 wxColour temp3 ;
18235 wxColour temp4 ;
18236 wxColour temp5 ;
18237 wxColour temp6 ;
18238 PyObject * obj0 = 0 ;
18239 PyObject * obj1 = 0 ;
18240 PyObject * obj2 = 0 ;
18241 PyObject * obj3 = 0 ;
18242 PyObject * obj4 = 0 ;
18243 PyObject * obj5 = 0 ;
18244 char *kwnames[] = {
18245 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18246 };
18247
18248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18251 {
18252 arg2 = &temp2;
18253 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18254 }
18255 {
18256 arg3 = &temp3;
18257 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18258 }
18259 {
18260 arg4 = &temp4;
18261 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18262 }
18263 {
18264 arg5 = &temp5;
18265 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18266 }
18267 {
18268 arg6 = &temp6;
18269 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18270 }
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18274
18275 wxPyEndAllowThreads(__tstate);
18276 if (PyErr_Occurred()) SWIG_fail;
18277 }
18278 Py_INCREF(Py_None); resultobj = Py_None;
18279 return resultobj;
18280 fail:
18281 return NULL;
18282}
18283
18284
18285static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18286 PyObject *resultobj;
18287 wxEffects *arg1 = (wxEffects *) 0 ;
18288 wxDC *arg2 = 0 ;
18289 wxRect *arg3 = 0 ;
18290 int arg4 = (int) 1 ;
18291 wxRect temp3 ;
18292 PyObject * obj0 = 0 ;
18293 PyObject * obj1 = 0 ;
18294 PyObject * obj2 = 0 ;
18295 PyObject * obj3 = 0 ;
18296 char *kwnames[] = {
18297 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18298 };
18299
18300 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18301 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18302 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18303 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18304 SWIG_POINTER_EXCEPTION | 0)) == -1)
18305 SWIG_fail;
18306 if (arg2 == NULL) {
18307 PyErr_SetString(PyExc_TypeError,"null reference");
18308 SWIG_fail;
18309 }
18310 {
18311 arg3 = &temp3;
18312 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18313 }
18314 if (obj3) {
18315 arg4 = (int) SWIG_AsInt(obj3);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 {
18319 PyThreadState* __tstate = wxPyBeginAllowThreads();
18320 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18321
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 Py_INCREF(Py_None); resultobj = Py_None;
18326 return resultobj;
18327 fail:
18328 return NULL;
18329}
18330
18331
18332static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj;
18334 wxEffects *arg1 = (wxEffects *) 0 ;
18335 wxRect *arg2 = 0 ;
18336 wxDC *arg3 = 0 ;
18337 wxBitmap *arg4 = 0 ;
18338 bool result;
18339 wxRect temp2 ;
18340 PyObject * obj0 = 0 ;
18341 PyObject * obj1 = 0 ;
18342 PyObject * obj2 = 0 ;
18343 PyObject * obj3 = 0 ;
18344 char *kwnames[] = {
18345 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18346 };
18347
18348 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18349 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18350 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18351 {
18352 arg2 = &temp2;
18353 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18354 }
18355 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18356 SWIG_POINTER_EXCEPTION | 0)) == -1)
18357 SWIG_fail;
18358 if (arg3 == NULL) {
18359 PyErr_SetString(PyExc_TypeError,"null reference");
18360 SWIG_fail;
18361 }
18362 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18363 SWIG_POINTER_EXCEPTION | 0)) == -1)
18364 SWIG_fail;
18365 if (arg4 == NULL) {
18366 PyErr_SetString(PyExc_TypeError,"null reference");
18367 SWIG_fail;
18368 }
18369 {
18370 PyThreadState* __tstate = wxPyBeginAllowThreads();
18371 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18372
18373 wxPyEndAllowThreads(__tstate);
18374 if (PyErr_Occurred()) SWIG_fail;
18375 }
18376 {
18377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18378 }
18379 return resultobj;
18380 fail:
18381 return NULL;
18382}
18383
18384
18385static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18386 PyObject *obj;
18387 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18388 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18389 Py_INCREF(obj);
18390 return Py_BuildValue((char *)"");
18391}
18392static PyMethodDef SwigMethods[] = {
18393 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18399 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18409 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18415 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18416 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18422 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18430 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18431 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18434 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18437 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18438 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
d55e5bfc
RD
18441 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18446 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18448 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18449 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18453 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18455 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18456 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18460 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18473 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18475 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18480 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18482 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18490 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18497 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18498 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18505 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18506 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18512 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18513 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18514 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18515 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18519 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
d07096ad 18521 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18522 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18538 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18539 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18540 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
d07096ad 18545 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18546 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18547 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18554 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18561 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18578 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18585 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18587 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18594 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18607 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18614 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18644 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18651 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18652 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18659 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18666 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18681 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18683 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18688 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18690 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18691 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18694 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18695 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18696 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18697 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18698 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18699 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18700 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18701 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18702 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18703 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18704 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18705 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18706 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18707 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18708 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18709 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18710 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18711 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18712 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18713 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18714 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18715 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18716 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18717 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18718 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18719 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18720 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18721 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18722 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18723 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18724 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18725 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18726 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18727 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18728 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18729 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18730 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18731 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18732 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18733 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18734 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18735 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18736 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
d6c14a4c
RD
18737 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18742 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18751 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18758 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18795 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18796 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18799 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18800 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18802 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18803 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18806 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18807 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18813 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18814 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18820 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18824 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18825 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18826 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18827 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18829 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18831 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18832 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18833 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18836 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18838 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18840 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18842 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18843 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18844 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18845 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18847 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18849 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18850 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18851 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18856 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18857 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18858 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18861 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18863 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18865 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18868 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18870 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18875 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18880 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18882 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18885 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18887 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18892 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18897 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18899 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18904 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18912 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18913 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18914 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18915 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18916 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18917 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18918 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18919 { NULL, NULL }
18920};
18921
18922
18923/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18924
18925static void *_p_wxControlTo_p_wxWindow(void *x) {
18926 return (void *)((wxWindow *) ((wxControl *) x));
18927}
18928static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18929 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18930}
18931static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18932 return (void *)((wxWindow *) ((wxMenuBar *) x));
18933}
18934static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18935 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18936}
18937static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18938 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18939}
18940static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18941 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18942}
18943static void *_p_wxPenTo_p_wxObject(void *x) {
18944 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18945}
18946static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18947 return (void *)((wxObject *) ((wxRegionIterator *) x));
18948}
18949static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18950 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18951}
18952static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18953 return (void *)((wxObject *) ((wxSizerItem *) x));
18954}
18955static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18956 return (void *)((wxObject *) ((wxColourDatabase *) x));
18957}
18958static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18959 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18960}
18961static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18962 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18963}
18964static void *_p_wxIconTo_p_wxObject(void *x) {
18965 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18966}
18967static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18968 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18969}
18970static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18971 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18972}
18973static void *_p_wxSizerTo_p_wxObject(void *x) {
18974 return (void *)((wxObject *) ((wxSizer *) x));
18975}
18976static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18977 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18978}
18979static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18980 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18981}
18982static void *_p_wxPenListTo_p_wxObject(void *x) {
18983 return (void *)((wxObject *) ((wxPenList *) x));
18984}
18985static void *_p_wxEventTo_p_wxObject(void *x) {
18986 return (void *)((wxObject *) ((wxEvent *) x));
18987}
18988static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18989 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18990}
18991static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18992 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18993}
18994static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18995 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18996}
18997static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18998 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18999}
19000static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
19001 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
19002}
19003static void *_p_wxDCTo_p_wxObject(void *x) {
19004 return (void *)((wxObject *) ((wxDC *) x));
19005}
19006static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19007 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19008}
19009static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19010 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19011}
19012static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19013 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19014}
19015static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19016 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19017}
19018static void *_p_wxControlTo_p_wxObject(void *x) {
19019 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19020}
19021static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19022 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19023}
19024static void *_p_wxClientDCTo_p_wxObject(void *x) {
19025 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19026}
19027static void *_p_wxFSFileTo_p_wxObject(void *x) {
19028 return (void *)((wxObject *) ((wxFSFile *) x));
19029}
19030static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19031 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19032}
19033static void *_p_wxRegionTo_p_wxObject(void *x) {
19034 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19035}
19036static void *_p_wxPySizerTo_p_wxObject(void *x) {
19037 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19038}
19039static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19040 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19041}
19042static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19043 return (void *)((wxObject *) ((wxGDIObject *) x));
19044}
19045static void *_p_wxEffectsTo_p_wxObject(void *x) {
19046 return (void *)((wxObject *) ((wxEffects *) x));
19047}
19048static void *_p_wxPyEventTo_p_wxObject(void *x) {
19049 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19050}
19051static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19052 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19053}
19054static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19055 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19056}
19057static void *_p_wxShowEventTo_p_wxObject(void *x) {
19058 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19059}
19060static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19061 return (void *)((wxObject *) ((wxMenuItem *) x));
19062}
19063static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19064 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19065}
19066static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19067 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19068}
19069static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19070 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19071}
19072static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19073 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19074}
19075static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19076 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19077}
19078static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19079 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19080}
19081static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19082 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19083}
19084static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19085 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19086}
19087static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19088 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19089}
19090static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19091 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19092}
19093static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19094 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19095}
19096static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19097 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19098}
19099static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19100 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19101}
19102static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19103 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19104}
19105static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19106 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19107}
19108static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19109 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19110}
19111static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19112 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19113}
19114static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19115 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19116}
19117static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19118 return (void *)((wxObject *) ((wxImageHandler *) x));
19119}
19120static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19121 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19122}
19123static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19124 return (void *)((wxObject *) ((wxEvtHandler *) x));
19125}
19126static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19127 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19128}
19129static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19130 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19131}
19132static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19133 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19134}
19135static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19136 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19137}
19138static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19139 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19140}
19141static void *_p_wxImageTo_p_wxObject(void *x) {
19142 return (void *)((wxObject *) ((wxImage *) x));
19143}
19144static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19145 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19146}
19147static void *_p_wxPaletteTo_p_wxObject(void *x) {
19148 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19149}
19150static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19151 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19152}
19153static void *_p_wxImageListTo_p_wxObject(void *x) {
19154 return (void *)((wxObject *) ((wxImageList *) x));
19155}
19156static void *_p_wxCursorTo_p_wxObject(void *x) {
19157 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19158}
19159static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19160 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19161}
19162static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19163 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19164}
19165static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19166 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19167}
19168static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19169 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19170}
19171static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19172 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19173}
19174static void *_p_wxWindowTo_p_wxObject(void *x) {
19175 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19176}
19177static void *_p_wxMenuTo_p_wxObject(void *x) {
19178 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19179}
19180static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19181 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19182}
19183static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19184 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19185}
19186static void *_p_wxBrushListTo_p_wxObject(void *x) {
19187 return (void *)((wxObject *) ((wxBrushList *) x));
19188}
d55e5bfc
RD
19189static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19190 return (void *)((wxObject *) ((wxFileSystem *) x));
19191}
19192static void *_p_wxBitmapTo_p_wxObject(void *x) {
19193 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19194}
19195static void *_p_wxMaskTo_p_wxObject(void *x) {
19196 return (void *)((wxObject *) ((wxMask *) x));
19197}
19198static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19199 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19200}
19201static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19202 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19203}
19204static void *_p_wxPyAppTo_p_wxObject(void *x) {
19205 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19206}
19207static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19208 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19209}
19210static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19211 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19212}
19213static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19214 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19215}
19216static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19217 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19218}
19219static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19220 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19221}
19222static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19223 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19224}
19225static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19226 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19227}
19228static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19229 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19230}
19231static void *_p_wxFontTo_p_wxObject(void *x) {
19232 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19233}
19234static void *_p_wxBrushTo_p_wxObject(void *x) {
19235 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19236}
19237static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19238 return (void *)((wxObject *) ((wxMetaFile *) x));
19239}
19240static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19241 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19242}
19243static void *_p_wxColourTo_p_wxObject(void *x) {
19244 return (void *)((wxObject *) ((wxColour *) x));
19245}
19246static void *_p_wxFontListTo_p_wxObject(void *x) {
19247 return (void *)((wxObject *) ((wxFontList *) x));
19248}
19249static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19250 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19251}
19252static void *_p_wxValidatorTo_p_wxObject(void *x) {
19253 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19254}
19255static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19256 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19257}
19258static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19259 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19260}
19261static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19262 return (void *)((wxDC *) ((wxScreenDC *) x));
19263}
19264static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19265 return (void *)((wxDC *) ((wxMirrorDC *) x));
19266}
19267static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19268 return (void *)((wxDC *) ((wxMemoryDC *) x));
19269}
19270static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19271 return (void *)((wxDC *) ((wxWindowDC *) x));
19272}
19273static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19274 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19275}
19276static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19277 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19278}
19279static void *_p_wxClientDCTo_p_wxDC(void *x) {
19280 return (void *)((wxDC *) ((wxClientDC *) x));
19281}
19282static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19283 return (void *)((wxDC *) ((wxPaintDC *) x));
19284}
19285static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19286 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19287}
19288static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19289 return (void *)((wxDC *) ((wxPrinterDC *) x));
19290}
d55e5bfc
RD
19291static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19292 return (void *)((wxGDIObject *) ((wxIcon *) x));
19293}
19294static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19295 return (void *)((wxGDIObject *) ((wxPalette *) x));
19296}
19297static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19298 return (void *)((wxGDIObject *) ((wxPen *) x));
19299}
19300static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19301 return (void *)((wxGDIObject *) ((wxFont *) x));
19302}
19303static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19304 return (void *)((wxGDIObject *) ((wxCursor *) x));
19305}
19306static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19307 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19308}
19309static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19310 return (void *)((wxGDIObject *) ((wxRegion *) x));
19311}
19312static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19313 return (void *)((wxGDIObject *) ((wxBrush *) x));
19314}
d55e5bfc
RD
19315static 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}};
19316static 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}};
19317static 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}};
19318static 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}};
19319static 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}};
19320static 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}};
19321static 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}};
19322static 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}};
19323static 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}};
19324static 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}};
19325static 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}};
19326static 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}};
19327static 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}};
19328static 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}};
19329static 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}};
19330static 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}};
19331static 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}};
19332static 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}};
19333static 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}};
19334static 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}};
19335static 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}};
19336static 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}};
d6c14a4c 19337static 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}};
d55e5bfc
RD
19338static 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}};
19339static 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}};
19340static 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}};
19341static 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}};
19342static 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}};
19343static 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}};
19344static 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}};
19345static 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}};
19346static 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}};
19347static 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}};
19348static 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}};
19349static 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}};
19350static 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}};
d6c14a4c 19351static 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}};
d55e5bfc
RD
19352static 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}};
19353static 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}};
19354static 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}};
d55e5bfc 19355static 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}};
d6c14a4c 19356static 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}};
d55e5bfc
RD
19357static 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}};
19358static 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}};
19359static 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}};
19360static 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}};
d6c14a4c 19361static 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}};
d55e5bfc
RD
19362static 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}};
19363static 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}};
19364static 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}};
d55e5bfc
RD
19365static 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}};
19366static 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}};
19367static 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}};
19368static 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}};
19369static 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}};
19370
19371static swig_type_info *swig_types_initial[] = {
19372_swigt__p_wxPostScriptDC,
19373_swigt__p_wxBrush,
19374_swigt__p_wxColour,
19375_swigt__p_wxDC,
19376_swigt__p_wxMirrorDC,
19377_swigt__p_byte,
19378_swigt__p_wxPyFontEnumerator,
19379_swigt__p_char,
19380_swigt__p_wxIconLocation,
19381_swigt__p_wxImage,
19382_swigt__p_wxMetaFileDC,
19383_swigt__p_wxMask,
19384_swigt__p_wxSize,
19385_swigt__p_wxFont,
19386_swigt__p_wxWindow,
19387_swigt__p_double,
19388_swigt__p_wxMemoryDC,
19389_swigt__p_wxFontMapper,
19390_swigt__p_wxEffects,
19391_swigt__p_wxNativeEncodingInfo,
19392_swigt__p_wxPalette,
19393_swigt__p_wxBitmap,
19394_swigt__p_wxObject,
19395_swigt__p_wxRegionIterator,
19396_swigt__p_wxRect,
19397_swigt__p_wxString,
19398_swigt__p_wxPrinterDC,
19399_swigt__p_wxIconBundle,
19400_swigt__p_wxPoint,
19401_swigt__p_wxDash,
19402_swigt__p_wxScreenDC,
19403_swigt__p_wxCursor,
19404_swigt__p_wxClientDC,
19405_swigt__p_wxBufferedDC,
19406_swigt__p_wxImageList,
19407_swigt__p_unsigned_char,
19408_swigt__p_wxGDIObject,
19409_swigt__p_wxIcon,
19410_swigt__p_wxLocale,
19411_swigt__p_wxRegion,
d55e5bfc 19412_swigt__p_wxLanguageInfo,
d6c14a4c 19413_swigt__p_wxConfigBase,
d55e5bfc
RD
19414_swigt__p_wxWindowDC,
19415_swigt__p_wxPrintData,
19416_swigt__p_wxBrushList,
19417_swigt__p_wxFontList,
19418_swigt__p_wxPen,
19419_swigt__p_wxBufferedPaintDC,
19420_swigt__p_wxPaintDC,
19421_swigt__p_wxPenList,
d55e5bfc
RD
19422_swigt__p_int,
19423_swigt__p_wxMetaFile,
19424_swigt__p_wxNativeFontInfo,
19425_swigt__p_wxEncodingConverter,
19426_swigt__p_wxColourDatabase,
194270
19428};
19429
19430
19431/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19432
19433static swig_const_info swig_const_table[] = {
19434{0}};
19435
19436#ifdef __cplusplus
19437}
19438#endif
19439
19440#ifdef __cplusplus
19441extern "C"
19442#endif
19443SWIGEXPORT(void) SWIG_init(void) {
19444 static PyObject *SWIG_globals = 0;
19445 static int typeinit = 0;
19446 PyObject *m, *d;
19447 int i;
19448 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19449 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19450 d = PyModule_GetDict(m);
19451
19452 if (!typeinit) {
19453 for (i = 0; swig_types_initial[i]; i++) {
19454 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19455 }
19456 typeinit = 1;
19457 }
19458 SWIG_InstallConstants(d,swig_const_table);
19459
19460 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19461 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19462 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19463 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19464 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19465 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19466 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19467 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19468 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19469 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19470 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19471 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19472 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19473 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19474 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19475 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19476 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19477 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19478 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19479 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19480 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19481 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19482 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19483 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19484 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19485 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19486 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19487 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19488 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19489 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19490 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19491 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19492 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19493 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19494 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19495 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19496 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19497 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19498 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19499 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19500 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19501 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19502 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19503 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19504 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19505 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19506 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19507 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19508 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19509 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19510 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19511 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19512 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19513 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19514 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19515 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19516 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19517 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19518 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19519 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19520 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19521 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19522 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19523 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19524 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19525 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19526 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19527 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19528 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19529 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19530 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19531 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19532 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19533 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19534 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19535 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19536 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19537 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19538 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19539 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19540 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19541 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19542 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19543 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19544 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19545 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19546 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19547 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19548 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19549 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19550 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19551 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19552 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19553 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19554 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19555 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19556 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19557 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19558 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19559 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19560 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19561 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19562 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19563 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19564 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19565 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19566 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19567 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19568 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19569 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19570 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19571 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19572 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19573 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19574 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19575 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19576 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19577 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19578 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19579 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19580 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19581 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19582 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19583 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19584 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19585 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19586 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19587
19588 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19589
19590 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19591 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19592 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19593 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19594 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19595 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19596 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19597 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19598 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19599 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19600 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19601 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19602 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19603 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19604 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19605 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19606 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19607 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19608 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19609 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19610 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19611 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19612 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19613 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19614 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19615 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19616 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19617 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19618 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19619 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19620 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19621 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19622 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19623 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19624 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19625 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19626 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19627 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19628 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19629 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19630 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19631 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19632 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19633 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19634 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19635 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19636 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19637 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19638 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19639 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19640 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19641 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19642 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19643 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19644 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19645 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19646 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19647 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19648 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19649 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19650 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19651 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19652 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19653 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19654 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19655 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19656 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19657 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19658 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19659 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19660 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19661 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19662 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19663 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19664 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19665 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19666 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19667 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19668 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19669 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19670 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19671 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19672 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19673 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19674 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19675 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19676 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19677 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19678 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19679 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19680 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19681 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19682 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19683 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19684 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19685 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19686 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19687 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19688 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19689 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19690 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19691 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19692 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19693 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19694 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19695 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19696 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19697 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19698 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19699 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19700 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19701 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19702 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19703 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19704 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19705 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19706 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19707 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19708 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19709 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19710 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19711 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19712 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19713 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19714 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19715 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19716 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19717 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19718 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19719 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19720 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19721 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19722 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19723 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19724 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19725 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19726 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19727 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19728 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19729 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19730 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19731 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19732 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19733 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19734 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19735 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19736 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19737 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19738 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19739 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19740 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19741 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19742 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19743 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19744 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19745 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19746 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19747 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19748 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19749 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19750 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19751 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19752 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19753 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19754 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19755 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19756 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19757 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19758 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19759 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19760 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19761 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19762 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19763 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19764 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19765 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19766 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19767 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19768 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19769 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19770 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19771 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19772 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19773 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19774 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19775 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19776 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19777 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19778 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19779 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19780 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19781 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19782 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19783 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19784 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19785 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19786 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19787 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19788 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19789 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19790 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19791 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19792 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19793 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19794 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19795 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19796 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19797 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19798 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19799 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19800 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19801 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19802 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19803 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19804 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19805 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19806 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19807 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19808 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19809 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19810 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19811 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19812 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19813 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19814 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19815 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19816 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19817 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19818 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19819 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19820 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19821 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19822 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19823 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19824 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19825 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19826 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19827 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19828 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19829 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19830 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19831 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19832 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19833 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19834 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19835 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19836 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19837 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19838 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19839 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19840 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19841 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19842 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19843 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19844 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19845 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19846 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19847 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19848 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19849 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19850 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19851 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19852 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19853 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19854 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19855 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19856 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19857 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19858 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19859 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19860 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19861 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19862 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19863 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19864 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19865 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19866 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19867 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19868 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19869 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19870 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19871 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19872 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19873 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19874 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19875 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19876 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19877 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19878 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19879 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19880 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19881 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19882 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19883 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19884 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19885 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19886 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19887 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19888 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19889 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19890
19891 // Work around a chicken/egg problem in drawlist.cpp
19892 wxPyDrawList_SetAPIPtr();
19893
19894}
19895