]> 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();
775 return wxArrayString2PyList_helper(*arr);
776 }
777PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
778 wxArrayString* arr = self->GetFacenames();
779 return wxArrayString2PyList_helper(*arr);
780 }
781
782
15817c7e
RD
783wxLocale *new_wxLocale(int language,int flags){
784 if (language == -1)
785 return new wxLocale();
786 else
787 return new wxLocale(language, flags);
788 }
d55e5bfc
RD
789
790#include "wx/wxPython/pydrawxxx.h"
791
d6c14a4c 792wxColour wxDC_GetPixel(wxDC *self,int x,int y){
d55e5bfc
RD
793 wxColour col;
794 self->GetPixel(x, y, &col);
795 return col;
796 }
d6c14a4c 797wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
d55e5bfc
RD
798 wxColour col;
799 self->GetPixel(pt, &col);
800 return col;
801 }
802
803SWIGSTATICINLINE(double)
804SWIG_AsDouble(PyObject *obj)
805{
806 if (PyNumber_Check(obj))
807 return PyFloat_AsDouble(obj);
808 else {
809 PyObject* errmsg = PyString_FromFormat("Expected number, got %s",
810 obj->ob_type->tp_name);
811 PyErr_SetObject(PyExc_TypeError, errmsg);
812 Py_DECREF(errmsg);
813 return 0;
814 }
815}
816
817
818SWIGSTATICINLINE(int)
819SWIG_CheckDouble(PyObject* obj)
820{
821 SWIG_AsDouble(obj);
822 if (PyErr_Occurred()) {
823 PyErr_Clear();
824 return 0;
825 } else {
826 return 1;
827 }
828}
829
830wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment,int indexAccel){
831 wxRect rv;
832 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
833 return rv;
834 }
835wxRect wxDC_GetClippingRect(wxDC *self){
836 wxRect rect;
837 self->GetClippingBox(rect);
838 return rect;
839 }
840wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
841 wxArrayInt widths;
842 self->GetPartialTextExtents(text, widths);
843 return widths;
844 }
d6c14a4c
RD
845void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
846 self->SetLogicalOrigin(point.x, point.y);
847 }
848void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
849 self->SetDeviceOrigin(point.x, point.y);
850 }
851void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
852 self->CalcBoundingBox(point.x, point.y);
853 }
d55e5bfc
RD
854PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
855 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
856 }
857PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
858 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
859 }
860PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
861 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
862 }
863PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
864 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
865 }
866PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
867 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
868 }
869PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
870 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
871 }
872
873static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
874 *x1 = dc->MinX();
875 *y1 = dc->MinY();
876 *x2 = dc->MaxX();
877 *y2 = dc->MaxY();
878}
879
880
881#include <wx/dcbuffer.h>
882
883
884#include <wx/dcps.h>
885
886
887#include <wx/metafile.h>
888
889
890
891void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
892 self->AddColour(name, wxColour(red, green, blue));
893 }
894
895#include <wx/effects.h>
896
897#ifdef __cplusplus
898extern "C" {
899#endif
900static PyObject *_wrap_new_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
901 PyObject *resultobj;
902 wxGDIObject *result;
903 char *kwnames[] = {
904 NULL
905 };
906
907 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_GDIObject",kwnames)) goto fail;
908 {
0439c23b 909 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
910 PyThreadState* __tstate = wxPyBeginAllowThreads();
911 result = (wxGDIObject *)new wxGDIObject();
912
913 wxPyEndAllowThreads(__tstate);
110da5b0 914 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
915 }
916 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGDIObject, 1);
917 return resultobj;
918 fail:
919 return NULL;
920}
921
922
923static PyObject *_wrap_delete_GDIObject(PyObject *self, PyObject *args, PyObject *kwargs) {
924 PyObject *resultobj;
925 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
926 PyObject * obj0 = 0 ;
927 char *kwnames[] = {
928 (char *) "self", NULL
929 };
930
931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_GDIObject",kwnames,&obj0)) goto fail;
932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
934 {
935 PyThreadState* __tstate = wxPyBeginAllowThreads();
936 delete arg1;
937
938 wxPyEndAllowThreads(__tstate);
939 if (PyErr_Occurred()) SWIG_fail;
940 }
941 Py_INCREF(Py_None); resultobj = Py_None;
942 return resultobj;
943 fail:
944 return NULL;
945}
946
947
948static PyObject *_wrap_GDIObject_GetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
949 PyObject *resultobj;
950 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
951 bool result;
952 PyObject * obj0 = 0 ;
953 char *kwnames[] = {
954 (char *) "self", NULL
955 };
956
957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_GetVisible",kwnames,&obj0)) goto fail;
958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
960 {
961 PyThreadState* __tstate = wxPyBeginAllowThreads();
962 result = (bool)(arg1)->GetVisible();
963
964 wxPyEndAllowThreads(__tstate);
965 if (PyErr_Occurred()) SWIG_fail;
966 }
967 {
968 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
969 }
970 return resultobj;
971 fail:
972 return NULL;
973}
974
975
976static PyObject *_wrap_GDIObject_SetVisible(PyObject *self, PyObject *args, PyObject *kwargs) {
977 PyObject *resultobj;
978 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
979 bool arg2 ;
980 PyObject * obj0 = 0 ;
981 PyObject * obj1 = 0 ;
982 char *kwnames[] = {
983 (char *) "self",(char *) "visible", NULL
984 };
985
986 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GDIObject_SetVisible",kwnames,&obj0,&obj1)) goto fail;
987 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
988 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
989 arg2 = (bool) SWIG_AsBool(obj1);
990 if (PyErr_Occurred()) SWIG_fail;
991 {
992 PyThreadState* __tstate = wxPyBeginAllowThreads();
993 (arg1)->SetVisible(arg2);
994
995 wxPyEndAllowThreads(__tstate);
996 if (PyErr_Occurred()) SWIG_fail;
997 }
998 Py_INCREF(Py_None); resultobj = Py_None;
999 return resultobj;
1000 fail:
1001 return NULL;
1002}
1003
1004
1005static PyObject *_wrap_GDIObject_IsNull(PyObject *self, PyObject *args, PyObject *kwargs) {
1006 PyObject *resultobj;
1007 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
1008 bool result;
1009 PyObject * obj0 = 0 ;
1010 char *kwnames[] = {
1011 (char *) "self", NULL
1012 };
1013
1014 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GDIObject_IsNull",kwnames,&obj0)) goto fail;
1015 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGDIObject,
1016 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1017 {
1018 PyThreadState* __tstate = wxPyBeginAllowThreads();
1019 result = (bool)(arg1)->IsNull();
1020
1021 wxPyEndAllowThreads(__tstate);
1022 if (PyErr_Occurred()) SWIG_fail;
1023 }
1024 {
1025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1026 }
1027 return resultobj;
1028 fail:
1029 return NULL;
1030}
1031
1032
1033static PyObject * GDIObject_swigregister(PyObject *self, PyObject *args) {
1034 PyObject *obj;
1035 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1036 SWIG_TypeClientData(SWIGTYPE_p_wxGDIObject, obj);
1037 Py_INCREF(obj);
1038 return Py_BuildValue((char *)"");
1039}
1040static PyObject *_wrap_new_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1041 PyObject *resultobj;
15817c7e
RD
1042 byte arg1 = (byte) 0 ;
1043 byte arg2 = (byte) 0 ;
1044 byte arg3 = (byte) 0 ;
d55e5bfc
RD
1045 wxColour *result;
1046 PyObject * obj0 = 0 ;
1047 PyObject * obj1 = 0 ;
1048 PyObject * obj2 = 0 ;
1049 char *kwnames[] = {
1050 (char *) "red",(char *) "green",(char *) "blue", NULL
1051 };
1052
1053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) goto fail;
1054 if (obj0) {
15817c7e 1055 arg1 = (byte) SWIG_AsUnsignedChar(obj0);
d55e5bfc
RD
1056 if (PyErr_Occurred()) SWIG_fail;
1057 }
1058 if (obj1) {
15817c7e 1059 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
d55e5bfc
RD
1060 if (PyErr_Occurred()) SWIG_fail;
1061 }
1062 if (obj2) {
15817c7e 1063 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
d55e5bfc
RD
1064 if (PyErr_Occurred()) SWIG_fail;
1065 }
1066 {
1067 PyThreadState* __tstate = wxPyBeginAllowThreads();
1068 result = (wxColour *)new wxColour(arg1,arg2,arg3);
1069
1070 wxPyEndAllowThreads(__tstate);
1071 if (PyErr_Occurred()) SWIG_fail;
1072 }
1073 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1074 return resultobj;
1075 fail:
1076 return NULL;
1077}
1078
1079
1080static PyObject *_wrap_new_NamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1081 PyObject *resultobj;
1082 wxString *arg1 = 0 ;
1083 wxColour *result;
1084 bool temp1 = False ;
1085 PyObject * obj0 = 0 ;
1086 char *kwnames[] = {
1087 (char *) "colorName", NULL
1088 };
1089
1090 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) goto fail;
1091 {
1092 arg1 = wxString_in_helper(obj0);
1093 if (arg1 == NULL) SWIG_fail;
1094 temp1 = True;
1095 }
1096 {
1097 PyThreadState* __tstate = wxPyBeginAllowThreads();
1098 result = (wxColour *)new wxColour((wxString const &)*arg1);
1099
1100 wxPyEndAllowThreads(__tstate);
1101 if (PyErr_Occurred()) SWIG_fail;
1102 }
1103 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1104 {
1105 if (temp1)
1106 delete arg1;
1107 }
1108 return resultobj;
1109 fail:
1110 {
1111 if (temp1)
1112 delete arg1;
1113 }
1114 return NULL;
1115}
1116
1117
1118static PyObject *_wrap_new_ColourRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1119 PyObject *resultobj;
1120 unsigned long arg1 ;
1121 wxColour *result;
1122 PyObject * obj0 = 0 ;
1123 char *kwnames[] = {
1124 (char *) "colRGB", NULL
1125 };
1126
1127 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) goto fail;
1128 arg1 = (unsigned long) SWIG_AsUnsignedLong(obj0);
1129 if (PyErr_Occurred()) SWIG_fail;
1130 {
1131 PyThreadState* __tstate = wxPyBeginAllowThreads();
1132 result = (wxColour *)new wxColour(arg1);
1133
1134 wxPyEndAllowThreads(__tstate);
1135 if (PyErr_Occurred()) SWIG_fail;
1136 }
1137 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 1);
1138 return resultobj;
1139 fail:
1140 return NULL;
1141}
1142
1143
1144static PyObject *_wrap_delete_Colour(PyObject *self, PyObject *args, PyObject *kwargs) {
1145 PyObject *resultobj;
1146 wxColour *arg1 = (wxColour *) 0 ;
1147 PyObject * obj0 = 0 ;
1148 char *kwnames[] = {
1149 (char *) "self", NULL
1150 };
1151
1152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Colour",kwnames,&obj0)) goto fail;
1153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1155 {
1156 PyThreadState* __tstate = wxPyBeginAllowThreads();
1157 delete arg1;
1158
1159 wxPyEndAllowThreads(__tstate);
1160 if (PyErr_Occurred()) SWIG_fail;
1161 }
1162 Py_INCREF(Py_None); resultobj = Py_None;
1163 return resultobj;
1164 fail:
1165 return NULL;
1166}
1167
1168
1169static PyObject *_wrap_Colour_Red(PyObject *self, PyObject *args, PyObject *kwargs) {
1170 PyObject *resultobj;
1171 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1172 byte result;
d55e5bfc
RD
1173 PyObject * obj0 = 0 ;
1174 char *kwnames[] = {
1175 (char *) "self", NULL
1176 };
1177
1178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Red",kwnames,&obj0)) goto fail;
1179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1181 {
1182 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1183 result = (byte)(arg1)->Red();
d55e5bfc
RD
1184
1185 wxPyEndAllowThreads(__tstate);
1186 if (PyErr_Occurred()) SWIG_fail;
1187 }
1188 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1189 return resultobj;
1190 fail:
1191 return NULL;
1192}
1193
1194
1195static PyObject *_wrap_Colour_Green(PyObject *self, PyObject *args, PyObject *kwargs) {
1196 PyObject *resultobj;
1197 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1198 byte result;
d55e5bfc
RD
1199 PyObject * obj0 = 0 ;
1200 char *kwnames[] = {
1201 (char *) "self", NULL
1202 };
1203
1204 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Green",kwnames,&obj0)) goto fail;
1205 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1206 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1207 {
1208 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1209 result = (byte)(arg1)->Green();
d55e5bfc
RD
1210
1211 wxPyEndAllowThreads(__tstate);
1212 if (PyErr_Occurred()) SWIG_fail;
1213 }
1214 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1215 return resultobj;
1216 fail:
1217 return NULL;
1218}
1219
1220
1221static PyObject *_wrap_Colour_Blue(PyObject *self, PyObject *args, PyObject *kwargs) {
1222 PyObject *resultobj;
1223 wxColour *arg1 = (wxColour *) 0 ;
15817c7e 1224 byte result;
d55e5bfc
RD
1225 PyObject * obj0 = 0 ;
1226 char *kwnames[] = {
1227 (char *) "self", NULL
1228 };
1229
1230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Blue",kwnames,&obj0)) goto fail;
1231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1233 {
1234 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 1235 result = (byte)(arg1)->Blue();
d55e5bfc
RD
1236
1237 wxPyEndAllowThreads(__tstate);
1238 if (PyErr_Occurred()) SWIG_fail;
1239 }
1240 resultobj = SWIG_FromUnsignedChar((unsigned char)result);
1241 return resultobj;
1242 fail:
1243 return NULL;
1244}
1245
1246
1247static PyObject *_wrap_Colour_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1248 PyObject *resultobj;
1249 wxColour *arg1 = (wxColour *) 0 ;
1250 bool result;
1251 PyObject * obj0 = 0 ;
1252 char *kwnames[] = {
1253 (char *) "self", NULL
1254 };
1255
1256 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Ok",kwnames,&obj0)) goto fail;
1257 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1258 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1259 {
1260 PyThreadState* __tstate = wxPyBeginAllowThreads();
1261 result = (bool)(arg1)->Ok();
1262
1263 wxPyEndAllowThreads(__tstate);
1264 if (PyErr_Occurred()) SWIG_fail;
1265 }
1266 {
1267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1268 }
1269 return resultobj;
1270 fail:
1271 return NULL;
1272}
1273
1274
1275static PyObject *_wrap_Colour_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
1276 PyObject *resultobj;
1277 wxColour *arg1 = (wxColour *) 0 ;
15817c7e
RD
1278 byte arg2 ;
1279 byte arg3 ;
1280 byte arg4 ;
d55e5bfc
RD
1281 PyObject * obj0 = 0 ;
1282 PyObject * obj1 = 0 ;
1283 PyObject * obj2 = 0 ;
1284 PyObject * obj3 = 0 ;
1285 char *kwnames[] = {
1286 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1287 };
1288
1289 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1290 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1291 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15817c7e 1292 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
d55e5bfc 1293 if (PyErr_Occurred()) SWIG_fail;
15817c7e 1294 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
d55e5bfc 1295 if (PyErr_Occurred()) SWIG_fail;
15817c7e 1296 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
d55e5bfc
RD
1297 if (PyErr_Occurred()) SWIG_fail;
1298 {
1299 PyThreadState* __tstate = wxPyBeginAllowThreads();
1300 (arg1)->Set(arg2,arg3,arg4);
1301
1302 wxPyEndAllowThreads(__tstate);
1303 if (PyErr_Occurred()) SWIG_fail;
1304 }
1305 Py_INCREF(Py_None); resultobj = Py_None;
1306 return resultobj;
1307 fail:
1308 return NULL;
1309}
1310
1311
1312static PyObject *_wrap_Colour_SetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1313 PyObject *resultobj;
1314 wxColour *arg1 = (wxColour *) 0 ;
1315 unsigned long arg2 ;
1316 PyObject * obj0 = 0 ;
1317 PyObject * obj1 = 0 ;
1318 char *kwnames[] = {
1319 (char *) "self",(char *) "colRGB", NULL
1320 };
1321
1322 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) goto fail;
1323 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1324 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1325 arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1);
1326 if (PyErr_Occurred()) SWIG_fail;
1327 {
1328 PyThreadState* __tstate = wxPyBeginAllowThreads();
1329 (arg1)->Set(arg2);
1330
1331 wxPyEndAllowThreads(__tstate);
1332 if (PyErr_Occurred()) SWIG_fail;
1333 }
1334 Py_INCREF(Py_None); resultobj = Py_None;
1335 return resultobj;
1336 fail:
1337 return NULL;
1338}
1339
1340
1341static PyObject *_wrap_Colour_SetFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
1342 PyObject *resultobj;
1343 wxColour *arg1 = (wxColour *) 0 ;
1344 wxString *arg2 = 0 ;
1345 bool temp2 = False ;
1346 PyObject * obj0 = 0 ;
1347 PyObject * obj1 = 0 ;
1348 char *kwnames[] = {
1349 (char *) "self",(char *) "colourName", NULL
1350 };
1351
1352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) goto fail;
1353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1355 {
1356 arg2 = wxString_in_helper(obj1);
1357 if (arg2 == NULL) SWIG_fail;
1358 temp2 = True;
1359 }
1360 {
1361 PyThreadState* __tstate = wxPyBeginAllowThreads();
1362 (arg1)->InitFromName((wxString const &)*arg2);
1363
1364 wxPyEndAllowThreads(__tstate);
1365 if (PyErr_Occurred()) SWIG_fail;
1366 }
1367 Py_INCREF(Py_None); resultobj = Py_None;
1368 {
1369 if (temp2)
1370 delete arg2;
1371 }
1372 return resultobj;
1373 fail:
1374 {
1375 if (temp2)
1376 delete arg2;
1377 }
1378 return NULL;
1379}
1380
1381
1382static PyObject *_wrap_Colour_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1383 PyObject *resultobj;
1384 wxColour *arg1 = (wxColour *) 0 ;
1385 long result;
1386 PyObject * obj0 = 0 ;
1387 char *kwnames[] = {
1388 (char *) "self", NULL
1389 };
1390
1391 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetPixel",kwnames,&obj0)) goto fail;
1392 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1393 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1394 {
1395 PyThreadState* __tstate = wxPyBeginAllowThreads();
1396 result = (long)((wxColour const *)arg1)->GetPixel();
1397
1398 wxPyEndAllowThreads(__tstate);
1399 if (PyErr_Occurred()) SWIG_fail;
1400 }
1401 resultobj = SWIG_FromLong((long)result);
1402 return resultobj;
1403 fail:
1404 return NULL;
1405}
1406
1407
1408static PyObject *_wrap_Colour___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
1409 PyObject *resultobj;
1410 wxColour *arg1 = (wxColour *) 0 ;
1411 wxColour *arg2 = 0 ;
1412 bool result;
1413 wxColour temp2 ;
1414 PyObject * obj0 = 0 ;
1415 PyObject * obj1 = 0 ;
1416 char *kwnames[] = {
1417 (char *) "self",(char *) "colour", NULL
1418 };
1419
1420 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) goto fail;
1421 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1422 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1423 {
1424 arg2 = &temp2;
1425 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1426 }
1427 {
1428 PyThreadState* __tstate = wxPyBeginAllowThreads();
1429 result = (bool)((wxColour const *)arg1)->operator ==((wxColour const &)*arg2);
1430
1431 wxPyEndAllowThreads(__tstate);
1432 if (PyErr_Occurred()) SWIG_fail;
1433 }
1434 {
1435 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1436 }
1437 return resultobj;
1438 fail:
1439 return NULL;
1440}
1441
1442
1443static PyObject *_wrap_Colour___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
1444 PyObject *resultobj;
1445 wxColour *arg1 = (wxColour *) 0 ;
1446 wxColour *arg2 = 0 ;
1447 bool result;
1448 wxColour temp2 ;
1449 PyObject * obj0 = 0 ;
1450 PyObject * obj1 = 0 ;
1451 char *kwnames[] = {
1452 (char *) "self",(char *) "colour", NULL
1453 };
1454
1455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) goto fail;
1456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1458 {
1459 arg2 = &temp2;
1460 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
1461 }
1462 {
1463 PyThreadState* __tstate = wxPyBeginAllowThreads();
1464 result = (bool)((wxColour const *)arg1)->operator !=((wxColour const &)*arg2);
1465
1466 wxPyEndAllowThreads(__tstate);
1467 if (PyErr_Occurred()) SWIG_fail;
1468 }
1469 {
1470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1471 }
1472 return resultobj;
1473 fail:
1474 return NULL;
1475}
1476
1477
1478static PyObject *_wrap_Colour_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
1479 PyObject *resultobj;
1480 wxColour *arg1 = (wxColour *) 0 ;
1481 PyObject *result;
1482 PyObject * obj0 = 0 ;
1483 char *kwnames[] = {
1484 (char *) "self", NULL
1485 };
1486
1487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_Get",kwnames,&obj0)) goto fail;
1488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1490 {
1491 PyThreadState* __tstate = wxPyBeginAllowThreads();
1492 result = (PyObject *)wxColour_Get(arg1);
1493
1494 wxPyEndAllowThreads(__tstate);
1495 if (PyErr_Occurred()) SWIG_fail;
1496 }
1497 resultobj = result;
1498 return resultobj;
1499 fail:
1500 return NULL;
1501}
1502
1503
1504static PyObject *_wrap_Colour_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1505 PyObject *resultobj;
1506 wxColour *arg1 = (wxColour *) 0 ;
1507 unsigned long result;
1508 PyObject * obj0 = 0 ;
1509 char *kwnames[] = {
1510 (char *) "self", NULL
1511 };
1512
1513 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Colour_GetRGB",kwnames,&obj0)) goto fail;
1514 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColour,
1515 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1516 {
1517 PyThreadState* __tstate = wxPyBeginAllowThreads();
1518 result = (unsigned long)wxColour_GetRGB(arg1);
1519
1520 wxPyEndAllowThreads(__tstate);
1521 if (PyErr_Occurred()) SWIG_fail;
1522 }
1523 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
1524 return resultobj;
1525 fail:
1526 return NULL;
1527}
1528
1529
1530static PyObject * Colour_swigregister(PyObject *self, PyObject *args) {
1531 PyObject *obj;
1532 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1533 SWIG_TypeClientData(SWIGTYPE_p_wxColour, obj);
1534 Py_INCREF(obj);
1535 return Py_BuildValue((char *)"");
1536}
1537static PyObject *_wrap_new_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1538 PyObject *resultobj;
1539 int arg1 ;
1540 unsigned char *arg2 = (unsigned char *) 0 ;
1541 unsigned char *arg3 = (unsigned char *) 0 ;
1542 unsigned char *arg4 = (unsigned char *) 0 ;
1543 wxPalette *result;
1544 PyObject * obj0 = 0 ;
1545 PyObject * obj1 = 0 ;
1546 PyObject * obj2 = 0 ;
1547 PyObject * obj3 = 0 ;
1548 char *kwnames[] = {
1549 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
1550 };
1551
1552 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1553 arg1 = (int) SWIG_AsInt(obj0);
1554 if (PyErr_Occurred()) SWIG_fail;
1555 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_unsigned_char,
1556 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1557 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_unsigned_char,
1558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1559 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_unsigned_char,
1560 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1561 {
0439c23b 1562 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1563 PyThreadState* __tstate = wxPyBeginAllowThreads();
1564 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
1565
1566 wxPyEndAllowThreads(__tstate);
110da5b0 1567 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1568 }
1569 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPalette, 1);
1570 return resultobj;
1571 fail:
1572 return NULL;
1573}
1574
1575
1576static PyObject *_wrap_delete_Palette(PyObject *self, PyObject *args, PyObject *kwargs) {
1577 PyObject *resultobj;
1578 wxPalette *arg1 = (wxPalette *) 0 ;
1579 PyObject * obj0 = 0 ;
1580 char *kwnames[] = {
1581 (char *) "self", NULL
1582 };
1583
1584 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Palette",kwnames,&obj0)) goto fail;
1585 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1586 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1587 {
1588 PyThreadState* __tstate = wxPyBeginAllowThreads();
1589 delete arg1;
1590
1591 wxPyEndAllowThreads(__tstate);
1592 if (PyErr_Occurred()) SWIG_fail;
1593 }
1594 Py_INCREF(Py_None); resultobj = Py_None;
1595 return resultobj;
1596 fail:
1597 return NULL;
1598}
1599
1600
1601static PyObject *_wrap_Palette_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
1602 PyObject *resultobj;
1603 wxPalette *arg1 = (wxPalette *) 0 ;
1604 byte arg2 ;
1605 byte arg3 ;
1606 byte arg4 ;
1607 int result;
1608 PyObject * obj0 = 0 ;
1609 PyObject * obj1 = 0 ;
1610 PyObject * obj2 = 0 ;
1611 PyObject * obj3 = 0 ;
1612 char *kwnames[] = {
1613 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
1614 };
1615
1616 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
1617 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1618 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1619 arg2 = (byte) SWIG_AsUnsignedChar(obj1);
1620 if (PyErr_Occurred()) SWIG_fail;
1621 arg3 = (byte) SWIG_AsUnsignedChar(obj2);
1622 if (PyErr_Occurred()) SWIG_fail;
1623 arg4 = (byte) SWIG_AsUnsignedChar(obj3);
1624 if (PyErr_Occurred()) SWIG_fail;
1625 {
1626 PyThreadState* __tstate = wxPyBeginAllowThreads();
1627 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
1628
1629 wxPyEndAllowThreads(__tstate);
1630 if (PyErr_Occurred()) SWIG_fail;
1631 }
1632 resultobj = SWIG_FromInt((int)result);
1633 return resultobj;
1634 fail:
1635 return NULL;
1636}
1637
1638
1639static PyObject *_wrap_Palette_GetRGB(PyObject *self, PyObject *args, PyObject *kwargs) {
1640 PyObject *resultobj;
1641 wxPalette *arg1 = (wxPalette *) 0 ;
1642 int arg2 ;
1643 byte *arg3 = (byte *) 0 ;
1644 byte *arg4 = (byte *) 0 ;
1645 byte *arg5 = (byte *) 0 ;
1646 bool result;
1647 byte temp3 ;
1648 byte temp4 ;
1649 byte temp5 ;
1650 PyObject * obj0 = 0 ;
1651 PyObject * obj1 = 0 ;
1652 char *kwnames[] = {
1653 (char *) "self",(char *) "pixel", NULL
1654 };
1655
1656 arg3 = &temp3;
1657 arg4 = &temp4;
1658 arg5 = &temp5;
1659 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) goto fail;
1660 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1661 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1662 arg2 = (int) SWIG_AsInt(obj1);
1663 if (PyErr_Occurred()) SWIG_fail;
1664 {
1665 PyThreadState* __tstate = wxPyBeginAllowThreads();
1666 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
1667
1668 wxPyEndAllowThreads(__tstate);
1669 if (PyErr_Occurred()) SWIG_fail;
1670 }
1671 {
1672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1673 }
1674 {
1675 PyObject *o = PyInt_FromLong((long) (*arg3));
1676 resultobj = t_output_helper(resultobj,o);
1677 }
1678 {
1679 PyObject *o = PyInt_FromLong((long) (*arg4));
1680 resultobj = t_output_helper(resultobj,o);
1681 }
1682 {
1683 PyObject *o = PyInt_FromLong((long) (*arg5));
1684 resultobj = t_output_helper(resultobj,o);
1685 }
1686 return resultobj;
1687 fail:
1688 return NULL;
1689}
1690
1691
1692static PyObject *_wrap_Palette_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1693 PyObject *resultobj;
1694 wxPalette *arg1 = (wxPalette *) 0 ;
1695 bool result;
1696 PyObject * obj0 = 0 ;
1697 char *kwnames[] = {
1698 (char *) "self", NULL
1699 };
1700
1701 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Palette_Ok",kwnames,&obj0)) goto fail;
1702 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPalette,
1703 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1704 {
1705 PyThreadState* __tstate = wxPyBeginAllowThreads();
1706 result = (bool)(arg1)->Ok();
1707
1708 wxPyEndAllowThreads(__tstate);
1709 if (PyErr_Occurred()) SWIG_fail;
1710 }
1711 {
1712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1713 }
1714 return resultobj;
1715 fail:
1716 return NULL;
1717}
1718
1719
1720static PyObject * Palette_swigregister(PyObject *self, PyObject *args) {
1721 PyObject *obj;
1722 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
1723 SWIG_TypeClientData(SWIGTYPE_p_wxPalette, obj);
1724 Py_INCREF(obj);
1725 return Py_BuildValue((char *)"");
1726}
1727static PyObject *_wrap_new_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1728 PyObject *resultobj;
1729 wxColour *arg1 = 0 ;
1730 int arg2 = (int) 1 ;
1731 int arg3 = (int) wxSOLID ;
1732 wxPen *result;
1733 wxColour temp1 ;
1734 PyObject * obj0 = 0 ;
1735 PyObject * obj1 = 0 ;
1736 PyObject * obj2 = 0 ;
1737 char *kwnames[] = {
1738 (char *) "colour",(char *) "width",(char *) "style", NULL
1739 };
1740
1741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) goto fail;
1742 {
1743 arg1 = &temp1;
1744 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
1745 }
1746 if (obj1) {
1747 arg2 = (int) SWIG_AsInt(obj1);
1748 if (PyErr_Occurred()) SWIG_fail;
1749 }
1750 if (obj2) {
1751 arg3 = (int) SWIG_AsInt(obj2);
1752 if (PyErr_Occurred()) SWIG_fail;
1753 }
1754 {
0439c23b 1755 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
1756 PyThreadState* __tstate = wxPyBeginAllowThreads();
1757 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
1758
1759 wxPyEndAllowThreads(__tstate);
110da5b0 1760 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
1761 }
1762 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 1);
1763 return resultobj;
1764 fail:
1765 return NULL;
1766}
1767
1768
1769static PyObject *_wrap_delete_Pen(PyObject *self, PyObject *args, PyObject *kwargs) {
1770 PyObject *resultobj;
1771 wxPen *arg1 = (wxPen *) 0 ;
1772 PyObject * obj0 = 0 ;
1773 char *kwnames[] = {
1774 (char *) "self", NULL
1775 };
1776
1777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Pen",kwnames,&obj0)) goto fail;
1778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1780 {
1781 PyThreadState* __tstate = wxPyBeginAllowThreads();
1782 delete arg1;
1783
1784 wxPyEndAllowThreads(__tstate);
1785 if (PyErr_Occurred()) SWIG_fail;
1786 }
1787 Py_INCREF(Py_None); resultobj = Py_None;
1788 return resultobj;
1789 fail:
1790 return NULL;
1791}
1792
1793
1794static PyObject *_wrap_Pen_GetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1795 PyObject *resultobj;
1796 wxPen *arg1 = (wxPen *) 0 ;
1797 int result;
1798 PyObject * obj0 = 0 ;
1799 char *kwnames[] = {
1800 (char *) "self", NULL
1801 };
1802
1803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetCap",kwnames,&obj0)) goto fail;
1804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1806 {
1807 PyThreadState* __tstate = wxPyBeginAllowThreads();
1808 result = (int)(arg1)->GetCap();
1809
1810 wxPyEndAllowThreads(__tstate);
1811 if (PyErr_Occurred()) SWIG_fail;
1812 }
1813 resultobj = SWIG_FromInt((int)result);
1814 return resultobj;
1815 fail:
1816 return NULL;
1817}
1818
1819
1820static PyObject *_wrap_Pen_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1821 PyObject *resultobj;
1822 wxPen *arg1 = (wxPen *) 0 ;
1823 wxColour result;
1824 PyObject * obj0 = 0 ;
1825 char *kwnames[] = {
1826 (char *) "self", NULL
1827 };
1828
1829 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetColour",kwnames,&obj0)) goto fail;
1830 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1831 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1832 {
1833 PyThreadState* __tstate = wxPyBeginAllowThreads();
1834 result = (arg1)->GetColour();
1835
1836 wxPyEndAllowThreads(__tstate);
1837 if (PyErr_Occurred()) SWIG_fail;
1838 }
1839 {
1840 wxColour * resultptr;
1841 resultptr = new wxColour((wxColour &) result);
1842 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
1843 }
1844 return resultobj;
1845 fail:
1846 return NULL;
1847}
1848
1849
1850static PyObject *_wrap_Pen_GetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
1851 PyObject *resultobj;
1852 wxPen *arg1 = (wxPen *) 0 ;
1853 int result;
1854 PyObject * obj0 = 0 ;
1855 char *kwnames[] = {
1856 (char *) "self", NULL
1857 };
1858
1859 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetJoin",kwnames,&obj0)) goto fail;
1860 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1861 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1862 {
1863 PyThreadState* __tstate = wxPyBeginAllowThreads();
1864 result = (int)(arg1)->GetJoin();
1865
1866 wxPyEndAllowThreads(__tstate);
1867 if (PyErr_Occurred()) SWIG_fail;
1868 }
1869 resultobj = SWIG_FromInt((int)result);
1870 return resultobj;
1871 fail:
1872 return NULL;
1873}
1874
1875
1876static PyObject *_wrap_Pen_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
1877 PyObject *resultobj;
1878 wxPen *arg1 = (wxPen *) 0 ;
1879 int result;
1880 PyObject * obj0 = 0 ;
1881 char *kwnames[] = {
1882 (char *) "self", NULL
1883 };
1884
1885 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetStyle",kwnames,&obj0)) goto fail;
1886 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1887 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1888 {
1889 PyThreadState* __tstate = wxPyBeginAllowThreads();
1890 result = (int)(arg1)->GetStyle();
1891
1892 wxPyEndAllowThreads(__tstate);
1893 if (PyErr_Occurred()) SWIG_fail;
1894 }
1895 resultobj = SWIG_FromInt((int)result);
1896 return resultobj;
1897 fail:
1898 return NULL;
1899}
1900
1901
1902static PyObject *_wrap_Pen_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
1903 PyObject *resultobj;
1904 wxPen *arg1 = (wxPen *) 0 ;
1905 int result;
1906 PyObject * obj0 = 0 ;
1907 char *kwnames[] = {
1908 (char *) "self", NULL
1909 };
1910
1911 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetWidth",kwnames,&obj0)) goto fail;
1912 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1913 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1914 {
1915 PyThreadState* __tstate = wxPyBeginAllowThreads();
1916 result = (int)(arg1)->GetWidth();
1917
1918 wxPyEndAllowThreads(__tstate);
1919 if (PyErr_Occurred()) SWIG_fail;
1920 }
1921 resultobj = SWIG_FromInt((int)result);
1922 return resultobj;
1923 fail:
1924 return NULL;
1925}
1926
1927
1928static PyObject *_wrap_Pen_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
1929 PyObject *resultobj;
1930 wxPen *arg1 = (wxPen *) 0 ;
1931 bool result;
1932 PyObject * obj0 = 0 ;
1933 char *kwnames[] = {
1934 (char *) "self", NULL
1935 };
1936
1937 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_Ok",kwnames,&obj0)) goto fail;
1938 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1939 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1940 {
1941 PyThreadState* __tstate = wxPyBeginAllowThreads();
1942 result = (bool)(arg1)->Ok();
1943
1944 wxPyEndAllowThreads(__tstate);
1945 if (PyErr_Occurred()) SWIG_fail;
1946 }
1947 {
1948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
1949 }
1950 return resultobj;
1951 fail:
1952 return NULL;
1953}
1954
1955
1956static PyObject *_wrap_Pen_SetCap(PyObject *self, PyObject *args, PyObject *kwargs) {
1957 PyObject *resultobj;
1958 wxPen *arg1 = (wxPen *) 0 ;
1959 int arg2 ;
1960 PyObject * obj0 = 0 ;
1961 PyObject * obj1 = 0 ;
1962 char *kwnames[] = {
1963 (char *) "self",(char *) "cap_style", NULL
1964 };
1965
1966 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) goto fail;
1967 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1968 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1969 arg2 = (int) SWIG_AsInt(obj1);
1970 if (PyErr_Occurred()) SWIG_fail;
1971 {
1972 PyThreadState* __tstate = wxPyBeginAllowThreads();
1973 (arg1)->SetCap(arg2);
1974
1975 wxPyEndAllowThreads(__tstate);
1976 if (PyErr_Occurred()) SWIG_fail;
1977 }
1978 Py_INCREF(Py_None); resultobj = Py_None;
1979 return resultobj;
1980 fail:
1981 return NULL;
1982}
1983
1984
1985static PyObject *_wrap_Pen_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
1986 PyObject *resultobj;
1987 wxPen *arg1 = (wxPen *) 0 ;
1988 wxColour *arg2 = 0 ;
1989 wxColour temp2 ;
1990 PyObject * obj0 = 0 ;
1991 PyObject * obj1 = 0 ;
1992 char *kwnames[] = {
1993 (char *) "self",(char *) "colour", NULL
1994 };
1995
1996 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) goto fail;
1997 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
1998 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
1999 {
2000 arg2 = &temp2;
2001 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2002 }
2003 {
2004 PyThreadState* __tstate = wxPyBeginAllowThreads();
2005 (arg1)->SetColour(*arg2);
2006
2007 wxPyEndAllowThreads(__tstate);
2008 if (PyErr_Occurred()) SWIG_fail;
2009 }
2010 Py_INCREF(Py_None); resultobj = Py_None;
2011 return resultobj;
2012 fail:
2013 return NULL;
2014}
2015
2016
2017static PyObject *_wrap_Pen_SetJoin(PyObject *self, PyObject *args, PyObject *kwargs) {
2018 PyObject *resultobj;
2019 wxPen *arg1 = (wxPen *) 0 ;
2020 int arg2 ;
2021 PyObject * obj0 = 0 ;
2022 PyObject * obj1 = 0 ;
2023 char *kwnames[] = {
2024 (char *) "self",(char *) "join_style", NULL
2025 };
2026
2027 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) goto fail;
2028 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2029 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2030 arg2 = (int) SWIG_AsInt(obj1);
2031 if (PyErr_Occurred()) SWIG_fail;
2032 {
2033 PyThreadState* __tstate = wxPyBeginAllowThreads();
2034 (arg1)->SetJoin(arg2);
2035
2036 wxPyEndAllowThreads(__tstate);
2037 if (PyErr_Occurred()) SWIG_fail;
2038 }
2039 Py_INCREF(Py_None); resultobj = Py_None;
2040 return resultobj;
2041 fail:
2042 return NULL;
2043}
2044
2045
2046static PyObject *_wrap_Pen_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2047 PyObject *resultobj;
2048 wxPen *arg1 = (wxPen *) 0 ;
2049 int arg2 ;
2050 PyObject * obj0 = 0 ;
2051 PyObject * obj1 = 0 ;
2052 char *kwnames[] = {
2053 (char *) "self",(char *) "style", NULL
2054 };
2055
2056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2059 arg2 = (int) SWIG_AsInt(obj1);
2060 if (PyErr_Occurred()) SWIG_fail;
2061 {
2062 PyThreadState* __tstate = wxPyBeginAllowThreads();
2063 (arg1)->SetStyle(arg2);
2064
2065 wxPyEndAllowThreads(__tstate);
2066 if (PyErr_Occurred()) SWIG_fail;
2067 }
2068 Py_INCREF(Py_None); resultobj = Py_None;
2069 return resultobj;
2070 fail:
2071 return NULL;
2072}
2073
2074
2075static PyObject *_wrap_Pen_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2076 PyObject *resultobj;
2077 wxPen *arg1 = (wxPen *) 0 ;
2078 int arg2 ;
2079 PyObject * obj0 = 0 ;
2080 PyObject * obj1 = 0 ;
2081 char *kwnames[] = {
2082 (char *) "self",(char *) "width", NULL
2083 };
2084
2085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) goto fail;
2086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2088 arg2 = (int) SWIG_AsInt(obj1);
2089 if (PyErr_Occurred()) SWIG_fail;
2090 {
2091 PyThreadState* __tstate = wxPyBeginAllowThreads();
2092 (arg1)->SetWidth(arg2);
2093
2094 wxPyEndAllowThreads(__tstate);
2095 if (PyErr_Occurred()) SWIG_fail;
2096 }
2097 Py_INCREF(Py_None); resultobj = Py_None;
2098 return resultobj;
2099 fail:
2100 return NULL;
2101}
2102
2103
2104static PyObject *_wrap_Pen_SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2105 PyObject *resultobj;
2106 wxPen *arg1 = (wxPen *) 0 ;
2107 int arg2 ;
2108 wxDash *arg3 = (wxDash *) 0 ;
2109 PyObject * obj0 = 0 ;
2110 PyObject * obj1 = 0 ;
2111 char *kwnames[] = {
2112 (char *) "self",(char *) "dashes", NULL
2113 };
2114
2115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) goto fail;
2116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2117 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2118 {
2119 arg2 = PyList_Size(obj1);
2120 arg3 = (wxDash*)byte_LIST_helper(obj1);
2121 if (arg3 == NULL) SWIG_fail;
2122 }
2123 {
2124 PyThreadState* __tstate = wxPyBeginAllowThreads();
2125 (arg1)->SetDashes(arg2,arg3);
2126
2127 wxPyEndAllowThreads(__tstate);
2128 if (PyErr_Occurred()) SWIG_fail;
2129 }
2130 Py_INCREF(Py_None); resultobj = Py_None;
2131 {
2132 if (arg3) delete [] arg3;
2133 }
2134 return resultobj;
2135 fail:
2136 {
2137 if (arg3) delete [] arg3;
2138 }
2139 return NULL;
2140}
2141
2142
2143static PyObject *_wrap_Pen_GetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
2144 PyObject *resultobj;
2145 wxPen *arg1 = (wxPen *) 0 ;
2146 PyObject *result;
2147 PyObject * obj0 = 0 ;
2148 char *kwnames[] = {
2149 (char *) "self", NULL
2150 };
2151
2152 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Pen_GetDashes",kwnames,&obj0)) goto fail;
2153 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2154 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2155 {
2156 PyThreadState* __tstate = wxPyBeginAllowThreads();
2157 result = (PyObject *)wxPen_GetDashes(arg1);
2158
2159 wxPyEndAllowThreads(__tstate);
2160 if (PyErr_Occurred()) SWIG_fail;
2161 }
2162 resultobj = result;
2163 return resultobj;
2164 fail:
2165 return NULL;
2166}
2167
2168
d6c14a4c 2169static PyObject *_wrap_Pen__SetDashes(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2170 PyObject *resultobj;
2171 wxPen *arg1 = (wxPen *) 0 ;
d6c14a4c
RD
2172 PyObject *arg2 = (PyObject *) 0 ;
2173 PyObject *arg3 = (PyObject *) 0 ;
d55e5bfc
RD
2174 PyObject * obj0 = 0 ;
2175 PyObject * obj1 = 0 ;
d6c14a4c 2176 PyObject * obj2 = 0 ;
d55e5bfc 2177 char *kwnames[] = {
d6c14a4c 2178 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
d55e5bfc
RD
2179 };
2180
d6c14a4c 2181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
2182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d6c14a4c
RD
2184 arg2 = obj1;
2185 arg3 = obj2;
d55e5bfc
RD
2186 {
2187 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2188 wxPen__SetDashes(arg1,arg2,arg3);
d55e5bfc
RD
2189
2190 wxPyEndAllowThreads(__tstate);
2191 if (PyErr_Occurred()) SWIG_fail;
2192 }
d6c14a4c 2193 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
2194 return resultobj;
2195 fail:
2196 return NULL;
2197}
2198
2199
d6c14a4c 2200static PyObject *_wrap_Pen___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
2201 PyObject *resultobj;
2202 wxPen *arg1 = (wxPen *) 0 ;
2203 wxPen *arg2 = (wxPen *) 0 ;
2204 bool result;
2205 PyObject * obj0 = 0 ;
2206 PyObject * obj1 = 0 ;
2207 char *kwnames[] = {
2208 (char *) "self",(char *) "other", NULL
2209 };
2210
d6c14a4c 2211 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
2212 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
2213 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2214 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
2215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2216 {
2217 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2218 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2219
2220 wxPyEndAllowThreads(__tstate);
2221 if (PyErr_Occurred()) SWIG_fail;
2222 }
2223 {
2224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2225 }
2226 return resultobj;
2227 fail:
2228 return NULL;
2229}
2230
2231
d6c14a4c 2232static PyObject *_wrap_Pen___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc 2233 PyObject *resultobj;
d6c14a4c
RD
2234 wxPen *arg1 = (wxPen *) 0 ;
2235 wxPen *arg2 = (wxPen *) 0 ;
2236 bool result;
d55e5bfc
RD
2237 PyObject * obj0 = 0 ;
2238 PyObject * obj1 = 0 ;
d55e5bfc 2239 char *kwnames[] = {
d6c14a4c 2240 (char *) "self",(char *) "other", NULL
d55e5bfc
RD
2241 };
2242
d6c14a4c
RD
2243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) goto fail;
2244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPen,
d55e5bfc 2245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d6c14a4c 2246 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
d55e5bfc 2247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
d55e5bfc
RD
2248 {
2249 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 2250 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
d55e5bfc
RD
2251
2252 wxPyEndAllowThreads(__tstate);
2253 if (PyErr_Occurred()) SWIG_fail;
2254 }
d55e5bfc 2255 {
d6c14a4c 2256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
d55e5bfc
RD
2257 }
2258 return resultobj;
2259 fail:
d55e5bfc
RD
2260 return NULL;
2261}
2262
2263
d6c14a4c 2264static PyObject * Pen_swigregister(PyObject *self, PyObject *args) {
d55e5bfc
RD
2265 PyObject *obj;
2266 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
d6c14a4c 2267 SWIG_TypeClientData(SWIGTYPE_p_wxPen, obj);
d55e5bfc
RD
2268 Py_INCREF(obj);
2269 return Py_BuildValue((char *)"");
2270}
2271static PyObject *_wrap_new_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2272 PyObject *resultobj;
2273 wxColour *arg1 = 0 ;
2274 int arg2 = (int) wxSOLID ;
2275 wxBrush *result;
2276 wxColour temp1 ;
2277 PyObject * obj0 = 0 ;
2278 PyObject * obj1 = 0 ;
2279 char *kwnames[] = {
2280 (char *) "colour",(char *) "style", NULL
2281 };
2282
2283 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) goto fail;
2284 {
2285 arg1 = &temp1;
2286 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
2287 }
2288 if (obj1) {
2289 arg2 = (int) SWIG_AsInt(obj1);
2290 if (PyErr_Occurred()) SWIG_fail;
2291 }
2292 {
0439c23b 2293 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2294 PyThreadState* __tstate = wxPyBeginAllowThreads();
2295 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
2296
2297 wxPyEndAllowThreads(__tstate);
110da5b0 2298 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2299 }
2300 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 1);
2301 return resultobj;
2302 fail:
2303 return NULL;
2304}
2305
2306
2307static PyObject *_wrap_delete_Brush(PyObject *self, PyObject *args, PyObject *kwargs) {
2308 PyObject *resultobj;
2309 wxBrush *arg1 = (wxBrush *) 0 ;
2310 PyObject * obj0 = 0 ;
2311 char *kwnames[] = {
2312 (char *) "self", NULL
2313 };
2314
2315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Brush",kwnames,&obj0)) goto fail;
2316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2318 {
2319 PyThreadState* __tstate = wxPyBeginAllowThreads();
2320 delete arg1;
2321
2322 wxPyEndAllowThreads(__tstate);
2323 if (PyErr_Occurred()) SWIG_fail;
2324 }
2325 Py_INCREF(Py_None); resultobj = Py_None;
2326 return resultobj;
2327 fail:
2328 return NULL;
2329}
2330
2331
2332static PyObject *_wrap_Brush_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2333 PyObject *resultobj;
2334 wxBrush *arg1 = (wxBrush *) 0 ;
2335 wxColour *arg2 = 0 ;
2336 wxColour temp2 ;
2337 PyObject * obj0 = 0 ;
2338 PyObject * obj1 = 0 ;
2339 char *kwnames[] = {
2340 (char *) "self",(char *) "col", NULL
2341 };
2342
2343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) goto fail;
2344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2346 {
2347 arg2 = &temp2;
2348 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
2349 }
2350 {
2351 PyThreadState* __tstate = wxPyBeginAllowThreads();
2352 (arg1)->SetColour((wxColour const &)*arg2);
2353
2354 wxPyEndAllowThreads(__tstate);
2355 if (PyErr_Occurred()) SWIG_fail;
2356 }
2357 Py_INCREF(Py_None); resultobj = Py_None;
2358 return resultobj;
2359 fail:
2360 return NULL;
2361}
2362
2363
2364static PyObject *_wrap_Brush_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2365 PyObject *resultobj;
2366 wxBrush *arg1 = (wxBrush *) 0 ;
2367 int arg2 ;
2368 PyObject * obj0 = 0 ;
2369 PyObject * obj1 = 0 ;
2370 char *kwnames[] = {
2371 (char *) "self",(char *) "style", NULL
2372 };
2373
2374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) goto fail;
2375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2377 arg2 = (int) SWIG_AsInt(obj1);
2378 if (PyErr_Occurred()) SWIG_fail;
2379 {
2380 PyThreadState* __tstate = wxPyBeginAllowThreads();
2381 (arg1)->SetStyle(arg2);
2382
2383 wxPyEndAllowThreads(__tstate);
2384 if (PyErr_Occurred()) SWIG_fail;
2385 }
2386 Py_INCREF(Py_None); resultobj = Py_None;
2387 return resultobj;
2388 fail:
2389 return NULL;
2390}
2391
2392
2393static PyObject *_wrap_Brush_SetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2394 PyObject *resultobj;
2395 wxBrush *arg1 = (wxBrush *) 0 ;
2396 wxBitmap *arg2 = 0 ;
2397 PyObject * obj0 = 0 ;
2398 PyObject * obj1 = 0 ;
2399 char *kwnames[] = {
2400 (char *) "self",(char *) "stipple", NULL
2401 };
2402
2403 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) goto fail;
2404 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2406 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
2407 SWIG_POINTER_EXCEPTION | 0)) == -1)
2408 SWIG_fail;
2409 if (arg2 == NULL) {
2410 PyErr_SetString(PyExc_TypeError,"null reference");
2411 SWIG_fail;
2412 }
2413 {
2414 PyThreadState* __tstate = wxPyBeginAllowThreads();
2415 (arg1)->SetStipple((wxBitmap const &)*arg2);
2416
2417 wxPyEndAllowThreads(__tstate);
2418 if (PyErr_Occurred()) SWIG_fail;
2419 }
2420 Py_INCREF(Py_None); resultobj = Py_None;
2421 return resultobj;
2422 fail:
2423 return NULL;
2424}
2425
2426
2427static PyObject *_wrap_Brush_GetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
2428 PyObject *resultobj;
2429 wxBrush *arg1 = (wxBrush *) 0 ;
2430 wxColour result;
2431 PyObject * obj0 = 0 ;
2432 char *kwnames[] = {
2433 (char *) "self", NULL
2434 };
2435
2436 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetColour",kwnames,&obj0)) goto fail;
2437 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2438 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2439 {
2440 PyThreadState* __tstate = wxPyBeginAllowThreads();
2441 result = ((wxBrush const *)arg1)->GetColour();
2442
2443 wxPyEndAllowThreads(__tstate);
2444 if (PyErr_Occurred()) SWIG_fail;
2445 }
2446 {
2447 wxColour * resultptr;
2448 resultptr = new wxColour((wxColour &) result);
2449 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
2450 }
2451 return resultobj;
2452 fail:
2453 return NULL;
2454}
2455
2456
2457static PyObject *_wrap_Brush_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
2458 PyObject *resultobj;
2459 wxBrush *arg1 = (wxBrush *) 0 ;
2460 int result;
2461 PyObject * obj0 = 0 ;
2462 char *kwnames[] = {
2463 (char *) "self", NULL
2464 };
2465
2466 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStyle",kwnames,&obj0)) goto fail;
2467 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2468 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2469 {
2470 PyThreadState* __tstate = wxPyBeginAllowThreads();
2471 result = (int)((wxBrush const *)arg1)->GetStyle();
2472
2473 wxPyEndAllowThreads(__tstate);
2474 if (PyErr_Occurred()) SWIG_fail;
2475 }
2476 resultobj = SWIG_FromInt((int)result);
2477 return resultobj;
2478 fail:
2479 return NULL;
2480}
2481
2482
2483static PyObject *_wrap_Brush_GetStipple(PyObject *self, PyObject *args, PyObject *kwargs) {
2484 PyObject *resultobj;
2485 wxBrush *arg1 = (wxBrush *) 0 ;
2486 wxBitmap *result;
2487 PyObject * obj0 = 0 ;
2488 char *kwnames[] = {
2489 (char *) "self", NULL
2490 };
2491
2492 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_GetStipple",kwnames,&obj0)) goto fail;
2493 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2494 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2495 {
2496 PyThreadState* __tstate = wxPyBeginAllowThreads();
2497 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
2498
2499 wxPyEndAllowThreads(__tstate);
2500 if (PyErr_Occurred()) SWIG_fail;
2501 }
2502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 0);
2503 return resultobj;
2504 fail:
2505 return NULL;
2506}
2507
2508
2509static PyObject *_wrap_Brush_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2510 PyObject *resultobj;
2511 wxBrush *arg1 = (wxBrush *) 0 ;
2512 bool result;
2513 PyObject * obj0 = 0 ;
2514 char *kwnames[] = {
2515 (char *) "self", NULL
2516 };
2517
2518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_Ok",kwnames,&obj0)) goto fail;
2519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2521 {
2522 PyThreadState* __tstate = wxPyBeginAllowThreads();
2523 result = (bool)(arg1)->Ok();
2524
2525 wxPyEndAllowThreads(__tstate);
2526 if (PyErr_Occurred()) SWIG_fail;
2527 }
2528 {
2529 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2530 }
2531 return resultobj;
2532 fail:
2533 return NULL;
2534}
2535
2536
2537static PyObject *_wrap_Brush_MacGetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2538 PyObject *resultobj;
2539 wxBrush *arg1 = (wxBrush *) 0 ;
2540 short result;
2541 PyObject * obj0 = 0 ;
2542 char *kwnames[] = {
2543 (char *) "self", NULL
2544 };
2545
2546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Brush_MacGetTheme",kwnames,&obj0)) goto fail;
2547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2549 {
2550 PyThreadState* __tstate = wxPyBeginAllowThreads();
2551 result = (short)(arg1)->MacGetTheme();
2552
2553 wxPyEndAllowThreads(__tstate);
2554 if (PyErr_Occurred()) SWIG_fail;
2555 }
2556 resultobj = SWIG_FromShort((short)result);
2557 return resultobj;
2558 fail:
2559 return NULL;
2560}
2561
2562
2563static PyObject *_wrap_Brush_MacSetTheme(PyObject *self, PyObject *args, PyObject *kwargs) {
2564 PyObject *resultobj;
2565 wxBrush *arg1 = (wxBrush *) 0 ;
2566 short arg2 ;
2567 PyObject * obj0 = 0 ;
2568 PyObject * obj1 = 0 ;
2569 char *kwnames[] = {
2570 (char *) "self",(char *) "macThemeBrush", NULL
2571 };
2572
2573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) goto fail;
2574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrush,
2575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2576 arg2 = (short) SWIG_AsShort(obj1);
2577 if (PyErr_Occurred()) SWIG_fail;
2578 {
2579 PyThreadState* __tstate = wxPyBeginAllowThreads();
2580 (arg1)->MacSetTheme(arg2);
2581
2582 wxPyEndAllowThreads(__tstate);
2583 if (PyErr_Occurred()) SWIG_fail;
2584 }
2585 Py_INCREF(Py_None); resultobj = Py_None;
2586 return resultobj;
2587 fail:
2588 return NULL;
2589}
2590
2591
2592static PyObject * Brush_swigregister(PyObject *self, PyObject *args) {
2593 PyObject *obj;
2594 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
2595 SWIG_TypeClientData(SWIGTYPE_p_wxBrush, obj);
2596 Py_INCREF(obj);
2597 return Py_BuildValue((char *)"");
2598}
2599static PyObject *_wrap_new_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2600 PyObject *resultobj;
2601 wxString *arg1 = 0 ;
2602 int arg2 = (int) wxBITMAP_TYPE_ANY ;
2603 wxBitmap *result;
2604 bool temp1 = False ;
2605 PyObject * obj0 = 0 ;
2606 PyObject * obj1 = 0 ;
2607 char *kwnames[] = {
2608 (char *) "name",(char *) "type", NULL
2609 };
2610
2611 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) goto fail;
2612 {
2613 arg1 = wxString_in_helper(obj0);
2614 if (arg1 == NULL) SWIG_fail;
2615 temp1 = True;
2616 }
2617 if (obj1) {
2618 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
2619 if (PyErr_Occurred()) SWIG_fail;
2620 }
2621 {
0439c23b 2622 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2623 PyThreadState* __tstate = wxPyBeginAllowThreads();
2624 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,(wxBitmapType )arg2);
2625
2626 wxPyEndAllowThreads(__tstate);
110da5b0 2627 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2628 }
2629 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2630 {
2631 if (temp1)
2632 delete arg1;
2633 }
2634 return resultobj;
2635 fail:
2636 {
2637 if (temp1)
2638 delete arg1;
2639 }
2640 return NULL;
2641}
2642
2643
2644static PyObject *_wrap_delete_Bitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2645 PyObject *resultobj;
2646 wxBitmap *arg1 = (wxBitmap *) 0 ;
2647 PyObject * obj0 = 0 ;
2648 char *kwnames[] = {
2649 (char *) "self", NULL
2650 };
2651
2652 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Bitmap",kwnames,&obj0)) goto fail;
2653 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2654 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2655 {
2656 PyThreadState* __tstate = wxPyBeginAllowThreads();
2657 delete arg1;
2658
2659 wxPyEndAllowThreads(__tstate);
2660 if (PyErr_Occurred()) SWIG_fail;
2661 }
2662 Py_INCREF(Py_None); resultobj = Py_None;
2663 return resultobj;
2664 fail:
2665 return NULL;
2666}
2667
2668
d6c14a4c
RD
2669static PyObject *_wrap_new_EmptyBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
2670 PyObject *resultobj;
2671 int arg1 ;
2672 int arg2 ;
2673 int arg3 = (int) -1 ;
2674 wxBitmap *result;
2675 PyObject * obj0 = 0 ;
2676 PyObject * obj1 = 0 ;
2677 PyObject * obj2 = 0 ;
2678 char *kwnames[] = {
2679 (char *) "width",(char *) "height",(char *) "depth", NULL
2680 };
2681
2682 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) goto fail;
2683 arg1 = (int) SWIG_AsInt(obj0);
2684 if (PyErr_Occurred()) SWIG_fail;
2685 arg2 = (int) SWIG_AsInt(obj1);
2686 if (PyErr_Occurred()) SWIG_fail;
2687 if (obj2) {
2688 arg3 = (int) SWIG_AsInt(obj2);
2689 if (PyErr_Occurred()) SWIG_fail;
2690 }
2691 {
0439c23b 2692 if (!wxPyCheckForApp()) SWIG_fail;
d6c14a4c
RD
2693 PyThreadState* __tstate = wxPyBeginAllowThreads();
2694 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
2695
2696 wxPyEndAllowThreads(__tstate);
110da5b0 2697 if (PyErr_Occurred()) SWIG_fail;
d6c14a4c
RD
2698 }
2699 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2700 return resultobj;
2701 fail:
2702 return NULL;
2703}
2704
2705
d55e5bfc
RD
2706static PyObject *_wrap_new_BitmapFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
2707 PyObject *resultobj;
2708 wxIcon *arg1 = 0 ;
2709 wxBitmap *result;
2710 PyObject * obj0 = 0 ;
2711 char *kwnames[] = {
2712 (char *) "icon", NULL
2713 };
2714
2715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) goto fail;
2716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
2717 SWIG_POINTER_EXCEPTION | 0)) == -1)
2718 SWIG_fail;
2719 if (arg1 == NULL) {
2720 PyErr_SetString(PyExc_TypeError,"null reference");
2721 SWIG_fail;
2722 }
2723 {
0439c23b 2724 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2725 PyThreadState* __tstate = wxPyBeginAllowThreads();
2726 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
2727
2728 wxPyEndAllowThreads(__tstate);
110da5b0 2729 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2730 }
2731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2732 return resultobj;
2733 fail:
2734 return NULL;
2735}
2736
2737
2738static PyObject *_wrap_new_BitmapFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2739 PyObject *resultobj;
2740 wxImage *arg1 = 0 ;
2741 int arg2 = (int) -1 ;
2742 wxBitmap *result;
2743 PyObject * obj0 = 0 ;
2744 PyObject * obj1 = 0 ;
2745 char *kwnames[] = {
2746 (char *) "image",(char *) "depth", NULL
2747 };
2748
2749 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) goto fail;
2750 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
2751 SWIG_POINTER_EXCEPTION | 0)) == -1)
2752 SWIG_fail;
2753 if (arg1 == NULL) {
2754 PyErr_SetString(PyExc_TypeError,"null reference");
2755 SWIG_fail;
2756 }
2757 if (obj1) {
2758 arg2 = (int) SWIG_AsInt(obj1);
2759 if (PyErr_Occurred()) SWIG_fail;
2760 }
2761 {
0439c23b 2762 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2763 PyThreadState* __tstate = wxPyBeginAllowThreads();
2764 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
2765
2766 wxPyEndAllowThreads(__tstate);
110da5b0 2767 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2768 }
2769 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2770 return resultobj;
2771 fail:
2772 return NULL;
2773}
2774
2775
2776static PyObject *_wrap_new_BitmapFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
2777 PyObject *resultobj;
2778 PyObject *arg1 = (PyObject *) 0 ;
2779 wxBitmap *result;
2780 PyObject * obj0 = 0 ;
2781 char *kwnames[] = {
2782 (char *) "listOfStrings", NULL
2783 };
2784
2785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) goto fail;
2786 arg1 = obj0;
2787 {
0439c23b 2788 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2789 PyThreadState* __tstate = wxPyBeginAllowThreads();
2790 result = (wxBitmap *)new_wxBitmap(arg1);
2791
2792 wxPyEndAllowThreads(__tstate);
110da5b0 2793 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2794 }
2795 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2796 return resultobj;
2797 fail:
2798 return NULL;
2799}
2800
2801
2802static PyObject *_wrap_new_BitmapFromBits(PyObject *self, PyObject *args, PyObject *kwargs) {
2803 PyObject *resultobj;
2804 PyObject *arg1 = (PyObject *) 0 ;
2805 int arg2 ;
2806 int arg3 ;
2807 int arg4 = (int) 1 ;
2808 wxBitmap *result;
2809 PyObject * obj0 = 0 ;
2810 PyObject * obj1 = 0 ;
2811 PyObject * obj2 = 0 ;
2812 PyObject * obj3 = 0 ;
2813 char *kwnames[] = {
2814 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
2815 };
2816
2817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
2818 arg1 = obj0;
2819 arg2 = (int) SWIG_AsInt(obj1);
2820 if (PyErr_Occurred()) SWIG_fail;
2821 arg3 = (int) SWIG_AsInt(obj2);
2822 if (PyErr_Occurred()) SWIG_fail;
2823 if (obj3) {
2824 arg4 = (int) SWIG_AsInt(obj3);
2825 if (PyErr_Occurred()) SWIG_fail;
2826 }
2827 {
0439c23b 2828 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
2829 PyThreadState* __tstate = wxPyBeginAllowThreads();
2830 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
2831
2832 wxPyEndAllowThreads(__tstate);
110da5b0 2833 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
2834 }
2835 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmap, 1);
2836 return resultobj;
2837 fail:
2838 return NULL;
2839}
2840
2841
d55e5bfc
RD
2842static PyObject *_wrap_Bitmap_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
2843 PyObject *resultobj;
2844 wxBitmap *arg1 = (wxBitmap *) 0 ;
2845 bool result;
2846 PyObject * obj0 = 0 ;
2847 char *kwnames[] = {
2848 (char *) "self", NULL
2849 };
2850
2851 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_Ok",kwnames,&obj0)) goto fail;
2852 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2853 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2854 {
2855 PyThreadState* __tstate = wxPyBeginAllowThreads();
2856 result = (bool)(arg1)->Ok();
2857
2858 wxPyEndAllowThreads(__tstate);
2859 if (PyErr_Occurred()) SWIG_fail;
2860 }
2861 {
2862 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
2863 }
2864 return resultobj;
2865 fail:
2866 return NULL;
2867}
2868
2869
2870static PyObject *_wrap_Bitmap_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
2871 PyObject *resultobj;
2872 wxBitmap *arg1 = (wxBitmap *) 0 ;
2873 int result;
2874 PyObject * obj0 = 0 ;
2875 char *kwnames[] = {
2876 (char *) "self", NULL
2877 };
2878
2879 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetWidth",kwnames,&obj0)) goto fail;
2880 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2881 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2882 {
2883 PyThreadState* __tstate = wxPyBeginAllowThreads();
2884 result = (int)(arg1)->GetWidth();
2885
2886 wxPyEndAllowThreads(__tstate);
2887 if (PyErr_Occurred()) SWIG_fail;
2888 }
2889 resultobj = SWIG_FromInt((int)result);
2890 return resultobj;
2891 fail:
2892 return NULL;
2893}
2894
2895
2896static PyObject *_wrap_Bitmap_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
2897 PyObject *resultobj;
2898 wxBitmap *arg1 = (wxBitmap *) 0 ;
2899 int result;
2900 PyObject * obj0 = 0 ;
2901 char *kwnames[] = {
2902 (char *) "self", NULL
2903 };
2904
2905 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetHeight",kwnames,&obj0)) goto fail;
2906 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2907 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2908 {
2909 PyThreadState* __tstate = wxPyBeginAllowThreads();
2910 result = (int)(arg1)->GetHeight();
2911
2912 wxPyEndAllowThreads(__tstate);
2913 if (PyErr_Occurred()) SWIG_fail;
2914 }
2915 resultobj = SWIG_FromInt((int)result);
2916 return resultobj;
2917 fail:
2918 return NULL;
2919}
2920
2921
2922static PyObject *_wrap_Bitmap_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
2923 PyObject *resultobj;
2924 wxBitmap *arg1 = (wxBitmap *) 0 ;
2925 int result;
2926 PyObject * obj0 = 0 ;
2927 char *kwnames[] = {
2928 (char *) "self", NULL
2929 };
2930
2931 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetDepth",kwnames,&obj0)) goto fail;
2932 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2933 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2934 {
2935 PyThreadState* __tstate = wxPyBeginAllowThreads();
2936 result = (int)(arg1)->GetDepth();
2937
2938 wxPyEndAllowThreads(__tstate);
2939 if (PyErr_Occurred()) SWIG_fail;
2940 }
2941 resultobj = SWIG_FromInt((int)result);
2942 return resultobj;
2943 fail:
2944 return NULL;
2945}
2946
2947
2948static PyObject *_wrap_Bitmap_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
2949 PyObject *resultobj;
2950 wxBitmap *arg1 = (wxBitmap *) 0 ;
2951 wxSize result;
2952 PyObject * obj0 = 0 ;
2953 char *kwnames[] = {
2954 (char *) "self", NULL
2955 };
2956
2957 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetSize",kwnames,&obj0)) goto fail;
2958 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2959 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2960 {
2961 PyThreadState* __tstate = wxPyBeginAllowThreads();
2962 result = wxBitmap_GetSize(arg1);
2963
2964 wxPyEndAllowThreads(__tstate);
2965 if (PyErr_Occurred()) SWIG_fail;
2966 }
2967 {
2968 wxSize * resultptr;
2969 resultptr = new wxSize((wxSize &) result);
2970 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
2971 }
2972 return resultobj;
2973 fail:
2974 return NULL;
2975}
2976
2977
2978static PyObject *_wrap_Bitmap_ConvertToImage(PyObject *self, PyObject *args, PyObject *kwargs) {
2979 PyObject *resultobj;
2980 wxBitmap *arg1 = (wxBitmap *) 0 ;
2981 SwigValueWrapper< wxImage > result;
2982 PyObject * obj0 = 0 ;
2983 char *kwnames[] = {
2984 (char *) "self", NULL
2985 };
2986
2987 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_ConvertToImage",kwnames,&obj0)) goto fail;
2988 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
2989 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
2990 {
2991 PyThreadState* __tstate = wxPyBeginAllowThreads();
2992 result = ((wxBitmap const *)arg1)->ConvertToImage();
2993
2994 wxPyEndAllowThreads(__tstate);
2995 if (PyErr_Occurred()) SWIG_fail;
2996 }
2997 {
2998 wxImage * resultptr;
2999 resultptr = new wxImage((wxImage &) result);
3000 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxImage, 1);
3001 }
3002 return resultobj;
3003 fail:
3004 return NULL;
3005}
3006
3007
3008static PyObject *_wrap_Bitmap_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3009 PyObject *resultobj;
3010 wxBitmap *arg1 = (wxBitmap *) 0 ;
3011 wxMask *result;
3012 PyObject * obj0 = 0 ;
3013 char *kwnames[] = {
3014 (char *) "self", NULL
3015 };
3016
3017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Bitmap_GetMask",kwnames,&obj0)) goto fail;
3018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3020 {
3021 PyThreadState* __tstate = wxPyBeginAllowThreads();
3022 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
3023
3024 wxPyEndAllowThreads(__tstate);
3025 if (PyErr_Occurred()) SWIG_fail;
3026 }
3027 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 0);
3028 return resultobj;
3029 fail:
3030 return NULL;
3031}
3032
3033
3034static PyObject *_wrap_Bitmap_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) {
3035 PyObject *resultobj;
3036 wxBitmap *arg1 = (wxBitmap *) 0 ;
3037 wxMask *arg2 = (wxMask *) 0 ;
3038 PyObject * obj0 = 0 ;
3039 PyObject * obj1 = 0 ;
3040 char *kwnames[] = {
3041 (char *) "self",(char *) "mask", NULL
3042 };
3043
3044 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) goto fail;
3045 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3046 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3047 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMask,
3048 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3049 {
3050 PyThreadState* __tstate = wxPyBeginAllowThreads();
3051 (arg1)->SetMask(arg2);
3052
3053 wxPyEndAllowThreads(__tstate);
3054 if (PyErr_Occurred()) SWIG_fail;
3055 }
3056 Py_INCREF(Py_None); resultobj = Py_None;
3057 return resultobj;
3058 fail:
3059 return NULL;
3060}
3061
3062
3063static PyObject *_wrap_Bitmap_SetMaskColour(PyObject *self, PyObject *args, PyObject *kwargs) {
3064 PyObject *resultobj;
3065 wxBitmap *arg1 = (wxBitmap *) 0 ;
3066 wxColour *arg2 = 0 ;
3067 wxColour temp2 ;
3068 PyObject * obj0 = 0 ;
3069 PyObject * obj1 = 0 ;
3070 char *kwnames[] = {
3071 (char *) "self",(char *) "colour", NULL
3072 };
3073
3074 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) goto fail;
3075 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3076 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3077 {
3078 arg2 = &temp2;
3079 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3080 }
3081 {
3082 PyThreadState* __tstate = wxPyBeginAllowThreads();
3083 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
3084
3085 wxPyEndAllowThreads(__tstate);
3086 if (PyErr_Occurred()) SWIG_fail;
3087 }
3088 Py_INCREF(Py_None); resultobj = Py_None;
3089 return resultobj;
3090 fail:
3091 return NULL;
3092}
3093
3094
3095static PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3096 PyObject *resultobj;
3097 wxBitmap *arg1 = (wxBitmap *) 0 ;
3098 wxRect *arg2 = 0 ;
3099 SwigValueWrapper< wxBitmap > result;
3100 wxRect temp2 ;
3101 PyObject * obj0 = 0 ;
3102 PyObject * obj1 = 0 ;
3103 char *kwnames[] = {
3104 (char *) "self",(char *) "rect", NULL
3105 };
3106
3107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) goto fail;
3108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3110 {
3111 arg2 = &temp2;
3112 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
3113 }
3114 {
3115 PyThreadState* __tstate = wxPyBeginAllowThreads();
3116 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
3117
3118 wxPyEndAllowThreads(__tstate);
3119 if (PyErr_Occurred()) SWIG_fail;
3120 }
3121 {
3122 wxBitmap * resultptr;
3123 resultptr = new wxBitmap((wxBitmap &) result);
3124 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
3125 }
3126 return resultobj;
3127 fail:
3128 return NULL;
3129}
3130
3131
3132static PyObject *_wrap_Bitmap_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3133 PyObject *resultobj;
3134 wxBitmap *arg1 = (wxBitmap *) 0 ;
3135 wxString *arg2 = 0 ;
3136 int arg3 ;
d6c14a4c 3137 wxPalette *arg4 = (wxPalette *) NULL ;
d55e5bfc
RD
3138 bool result;
3139 bool temp2 = False ;
3140 PyObject * obj0 = 0 ;
3141 PyObject * obj1 = 0 ;
3142 PyObject * obj2 = 0 ;
3143 PyObject * obj3 = 0 ;
3144 char *kwnames[] = {
3145 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
3146 };
3147
3148 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3149 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3150 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3151 {
3152 arg2 = wxString_in_helper(obj1);
3153 if (arg2 == NULL) SWIG_fail;
3154 temp2 = True;
3155 }
3156 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3157 if (PyErr_Occurred()) SWIG_fail;
3158 if (obj3) {
3159 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxPalette,
3160 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3161 }
3162 {
3163 PyThreadState* __tstate = wxPyBeginAllowThreads();
3164 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,(wxBitmapType )arg3,arg4);
3165
3166 wxPyEndAllowThreads(__tstate);
3167 if (PyErr_Occurred()) SWIG_fail;
3168 }
3169 {
3170 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3171 }
3172 {
3173 if (temp2)
3174 delete arg2;
3175 }
3176 return resultobj;
3177 fail:
3178 {
3179 if (temp2)
3180 delete arg2;
3181 }
3182 return NULL;
3183}
3184
3185
3186static PyObject *_wrap_Bitmap_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) {
3187 PyObject *resultobj;
3188 wxBitmap *arg1 = (wxBitmap *) 0 ;
3189 wxString *arg2 = 0 ;
3190 int arg3 ;
3191 bool result;
3192 bool temp2 = False ;
3193 PyObject * obj0 = 0 ;
3194 PyObject * obj1 = 0 ;
3195 PyObject * obj2 = 0 ;
3196 char *kwnames[] = {
3197 (char *) "self",(char *) "name",(char *) "type", NULL
3198 };
3199
3200 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
3201 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3202 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3203 {
3204 arg2 = wxString_in_helper(obj1);
3205 if (arg2 == NULL) SWIG_fail;
3206 temp2 = True;
3207 }
3208 arg3 = (wxBitmapType) SWIG_AsInt(obj2);
3209 if (PyErr_Occurred()) SWIG_fail;
3210 {
3211 PyThreadState* __tstate = wxPyBeginAllowThreads();
3212 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,(wxBitmapType )arg3);
3213
3214 wxPyEndAllowThreads(__tstate);
3215 if (PyErr_Occurred()) SWIG_fail;
3216 }
3217 {
3218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3219 }
3220 {
3221 if (temp2)
3222 delete arg2;
3223 }
3224 return resultobj;
3225 fail:
3226 {
3227 if (temp2)
3228 delete arg2;
3229 }
3230 return NULL;
3231}
3232
3233
3234static PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3235 PyObject *resultobj;
3236 wxBitmap *arg1 = (wxBitmap *) 0 ;
3237 wxIcon *arg2 = 0 ;
3238 bool result;
3239 PyObject * obj0 = 0 ;
3240 PyObject * obj1 = 0 ;
3241 char *kwnames[] = {
3242 (char *) "self",(char *) "icon", NULL
3243 };
3244
3245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) goto fail;
3246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
3249 SWIG_POINTER_EXCEPTION | 0)) == -1)
3250 SWIG_fail;
3251 if (arg2 == NULL) {
3252 PyErr_SetString(PyExc_TypeError,"null reference");
3253 SWIG_fail;
3254 }
3255 {
3256 PyThreadState* __tstate = wxPyBeginAllowThreads();
3257 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
3258
3259 wxPyEndAllowThreads(__tstate);
3260 if (PyErr_Occurred()) SWIG_fail;
3261 }
3262 {
3263 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3264 }
3265 return resultobj;
3266 fail:
3267 return NULL;
3268}
3269
3270
3271static PyObject *_wrap_Bitmap_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3272 PyObject *resultobj;
3273 wxBitmap *arg1 = (wxBitmap *) 0 ;
3274 int arg2 ;
3275 PyObject * obj0 = 0 ;
3276 PyObject * obj1 = 0 ;
3277 char *kwnames[] = {
3278 (char *) "self",(char *) "height", NULL
3279 };
3280
3281 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3282 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3283 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3284 arg2 = (int) SWIG_AsInt(obj1);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 {
3287 PyThreadState* __tstate = wxPyBeginAllowThreads();
3288 (arg1)->SetHeight(arg2);
3289
3290 wxPyEndAllowThreads(__tstate);
3291 if (PyErr_Occurred()) SWIG_fail;
3292 }
3293 Py_INCREF(Py_None); resultobj = Py_None;
3294 return resultobj;
3295 fail:
3296 return NULL;
3297}
3298
3299
3300static PyObject *_wrap_Bitmap_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3301 PyObject *resultobj;
3302 wxBitmap *arg1 = (wxBitmap *) 0 ;
3303 int arg2 ;
3304 PyObject * obj0 = 0 ;
3305 PyObject * obj1 = 0 ;
3306 char *kwnames[] = {
3307 (char *) "self",(char *) "width", NULL
3308 };
3309
3310 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3311 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3312 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3313 arg2 = (int) SWIG_AsInt(obj1);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 {
3316 PyThreadState* __tstate = wxPyBeginAllowThreads();
3317 (arg1)->SetWidth(arg2);
3318
3319 wxPyEndAllowThreads(__tstate);
3320 if (PyErr_Occurred()) SWIG_fail;
3321 }
3322 Py_INCREF(Py_None); resultobj = Py_None;
3323 return resultobj;
3324 fail:
3325 return NULL;
3326}
3327
3328
3329static PyObject *_wrap_Bitmap_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3330 PyObject *resultobj;
3331 wxBitmap *arg1 = (wxBitmap *) 0 ;
3332 int arg2 ;
3333 PyObject * obj0 = 0 ;
3334 PyObject * obj1 = 0 ;
3335 char *kwnames[] = {
3336 (char *) "self",(char *) "depth", NULL
3337 };
3338
3339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3340 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3341 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3342 arg2 = (int) SWIG_AsInt(obj1);
3343 if (PyErr_Occurred()) SWIG_fail;
3344 {
3345 PyThreadState* __tstate = wxPyBeginAllowThreads();
3346 (arg1)->SetDepth(arg2);
3347
3348 wxPyEndAllowThreads(__tstate);
3349 if (PyErr_Occurred()) SWIG_fail;
3350 }
3351 Py_INCREF(Py_None); resultobj = Py_None;
3352 return resultobj;
3353 fail:
3354 return NULL;
3355}
3356
3357
3358static PyObject *_wrap_Bitmap_SetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
3359 PyObject *resultobj;
3360 wxBitmap *arg1 = (wxBitmap *) 0 ;
3361 wxSize *arg2 = 0 ;
3362 wxSize temp2 ;
3363 PyObject * obj0 = 0 ;
3364 PyObject * obj1 = 0 ;
3365 char *kwnames[] = {
3366 (char *) "self",(char *) "size", NULL
3367 };
3368
3369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) goto fail;
3370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3372 {
3373 arg2 = &temp2;
3374 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
3375 }
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
3379
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 Py_INCREF(Py_None); resultobj = Py_None;
3384 return resultobj;
3385 fail:
3386 return NULL;
3387}
3388
3389
3390static PyObject *_wrap_Bitmap___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj;
3392 wxBitmap *arg1 = (wxBitmap *) 0 ;
3393 wxBitmap *arg2 = (wxBitmap *) 0 ;
3394 bool result;
3395 PyObject * obj0 = 0 ;
3396 PyObject * obj1 = 0 ;
3397 char *kwnames[] = {
3398 (char *) "self",(char *) "other", NULL
3399 };
3400
3401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) goto fail;
3402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3404 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3405 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3406 {
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
3409
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 {
3414 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3415 }
3416 return resultobj;
3417 fail:
3418 return NULL;
3419}
3420
3421
3422static PyObject *_wrap_Bitmap___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
3423 PyObject *resultobj;
3424 wxBitmap *arg1 = (wxBitmap *) 0 ;
3425 wxBitmap *arg2 = (wxBitmap *) 0 ;
3426 bool result;
3427 PyObject * obj0 = 0 ;
3428 PyObject * obj1 = 0 ;
3429 char *kwnames[] = {
3430 (char *) "self",(char *) "other", NULL
3431 };
3432
3433 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) goto fail;
3434 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3435 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3436 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3437 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3438 {
3439 PyThreadState* __tstate = wxPyBeginAllowThreads();
3440 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
3441
3442 wxPyEndAllowThreads(__tstate);
3443 if (PyErr_Occurred()) SWIG_fail;
3444 }
3445 {
3446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3447 }
3448 return resultobj;
3449 fail:
3450 return NULL;
3451}
3452
3453
3454static PyObject * Bitmap_swigregister(PyObject *self, PyObject *args) {
3455 PyObject *obj;
3456 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3457 SWIG_TypeClientData(SWIGTYPE_p_wxBitmap, obj);
3458 Py_INCREF(obj);
3459 return Py_BuildValue((char *)"");
3460}
3461static PyObject *_wrap_new_Mask(PyObject *self, PyObject *args, PyObject *kwargs) {
3462 PyObject *resultobj;
3463 wxBitmap *arg1 = 0 ;
3464 wxColour const &arg2_defvalue = wxNullColour ;
3465 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
3466 wxMask *result;
3467 wxColour temp2 ;
3468 PyObject * obj0 = 0 ;
3469 PyObject * obj1 = 0 ;
3470 char *kwnames[] = {
3471 (char *) "bitmap",(char *) "colour", NULL
3472 };
3473
3474 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) goto fail;
3475 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3476 SWIG_POINTER_EXCEPTION | 0)) == -1)
3477 SWIG_fail;
3478 if (arg1 == NULL) {
3479 PyErr_SetString(PyExc_TypeError,"null reference");
3480 SWIG_fail;
3481 }
3482 if (obj1) {
3483 {
3484 arg2 = &temp2;
3485 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
3486 }
3487 }
3488 {
0439c23b 3489 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3490 PyThreadState* __tstate = wxPyBeginAllowThreads();
3491 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
3492
3493 wxPyEndAllowThreads(__tstate);
110da5b0 3494 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3495 }
3496 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMask, 1);
3497 return resultobj;
3498 fail:
3499 return NULL;
3500}
3501
3502
3503static PyObject * Mask_swigregister(PyObject *self, PyObject *args) {
3504 PyObject *obj;
3505 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3506 SWIG_TypeClientData(SWIGTYPE_p_wxMask, obj);
3507 Py_INCREF(obj);
3508 return Py_BuildValue((char *)"");
3509}
3510static PyObject *_wrap_new_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3511 PyObject *resultobj;
3512 wxString *arg1 = 0 ;
3513 int arg2 ;
3514 int arg3 = (int) -1 ;
3515 int arg4 = (int) -1 ;
3516 wxIcon *result;
3517 bool temp1 = False ;
3518 PyObject * obj0 = 0 ;
3519 PyObject * obj1 = 0 ;
3520 PyObject * obj2 = 0 ;
3521 PyObject * obj3 = 0 ;
3522 char *kwnames[] = {
3523 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
3524 };
3525
3526 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
3527 {
3528 arg1 = wxString_in_helper(obj0);
3529 if (arg1 == NULL) SWIG_fail;
3530 temp1 = True;
3531 }
3532 arg2 = (wxBitmapType) SWIG_AsInt(obj1);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 if (obj2) {
3535 arg3 = (int) SWIG_AsInt(obj2);
3536 if (PyErr_Occurred()) SWIG_fail;
3537 }
3538 if (obj3) {
3539 arg4 = (int) SWIG_AsInt(obj3);
3540 if (PyErr_Occurred()) SWIG_fail;
3541 }
3542 {
0439c23b 3543 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3544 PyThreadState* __tstate = wxPyBeginAllowThreads();
3545 result = (wxIcon *)new wxIcon((wxString const &)*arg1,(wxBitmapType )arg2,arg3,arg4);
3546
3547 wxPyEndAllowThreads(__tstate);
110da5b0 3548 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3549 }
3550 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3551 {
3552 if (temp1)
3553 delete arg1;
3554 }
3555 return resultobj;
3556 fail:
3557 {
3558 if (temp1)
3559 delete arg1;
3560 }
3561 return NULL;
3562}
3563
3564
3565static PyObject *_wrap_delete_Icon(PyObject *self, PyObject *args, PyObject *kwargs) {
3566 PyObject *resultobj;
3567 wxIcon *arg1 = (wxIcon *) 0 ;
3568 PyObject * obj0 = 0 ;
3569 char *kwnames[] = {
3570 (char *) "self", NULL
3571 };
3572
3573 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Icon",kwnames,&obj0)) goto fail;
3574 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3575 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3576 {
3577 PyThreadState* __tstate = wxPyBeginAllowThreads();
3578 delete arg1;
3579
3580 wxPyEndAllowThreads(__tstate);
3581 if (PyErr_Occurred()) SWIG_fail;
3582 }
3583 Py_INCREF(Py_None); resultobj = Py_None;
3584 return resultobj;
3585 fail:
3586 return NULL;
3587}
3588
3589
3590static PyObject *_wrap_new_EmptyIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
3591 PyObject *resultobj;
3592 wxIcon *result;
3593 char *kwnames[] = {
3594 NULL
3595 };
3596
3597 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EmptyIcon",kwnames)) goto fail;
3598 {
0439c23b 3599 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3600 PyThreadState* __tstate = wxPyBeginAllowThreads();
3601 result = (wxIcon *)new wxIcon();
3602
3603 wxPyEndAllowThreads(__tstate);
110da5b0 3604 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3605 }
3606 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3607 return resultobj;
3608 fail:
3609 return NULL;
3610}
3611
3612
3613static PyObject *_wrap_new_IconFromLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3614 PyObject *resultobj;
3615 wxIconLocation *arg1 = 0 ;
3616 wxIcon *result;
3617 PyObject * obj0 = 0 ;
3618 char *kwnames[] = {
3619 (char *) "loc", NULL
3620 };
3621
3622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) goto fail;
3623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3624 SWIG_POINTER_EXCEPTION | 0)) == -1)
3625 SWIG_fail;
3626 if (arg1 == NULL) {
3627 PyErr_SetString(PyExc_TypeError,"null reference");
3628 SWIG_fail;
3629 }
3630 {
0439c23b 3631 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3632 PyThreadState* __tstate = wxPyBeginAllowThreads();
3633 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
3634
3635 wxPyEndAllowThreads(__tstate);
110da5b0 3636 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3637 }
3638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3639 return resultobj;
3640 fail:
3641 return NULL;
3642}
3643
3644
3645static PyObject *_wrap_new_IconFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3646 PyObject *resultobj;
3647 wxBitmap *arg1 = 0 ;
3648 wxIcon *result;
3649 PyObject * obj0 = 0 ;
3650 char *kwnames[] = {
3651 (char *) "bmp", NULL
3652 };
3653
3654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) goto fail;
3655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
3656 SWIG_POINTER_EXCEPTION | 0)) == -1)
3657 SWIG_fail;
3658 if (arg1 == NULL) {
3659 PyErr_SetString(PyExc_TypeError,"null reference");
3660 SWIG_fail;
3661 }
3662 {
0439c23b 3663 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3664 PyThreadState* __tstate = wxPyBeginAllowThreads();
3665 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
3666
3667 wxPyEndAllowThreads(__tstate);
110da5b0 3668 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3669 }
3670 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3671 return resultobj;
3672 fail:
3673 return NULL;
3674}
3675
3676
3677static PyObject *_wrap_new_IconFromXPMData(PyObject *self, PyObject *args, PyObject *kwargs) {
3678 PyObject *resultobj;
3679 PyObject *arg1 = (PyObject *) 0 ;
3680 wxIcon *result;
3681 PyObject * obj0 = 0 ;
3682 char *kwnames[] = {
3683 (char *) "listOfStrings", NULL
3684 };
3685
3686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) goto fail;
3687 arg1 = obj0;
3688 {
0439c23b 3689 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 result = (wxIcon *)new_wxIcon(arg1);
3692
3693 wxPyEndAllowThreads(__tstate);
110da5b0 3694 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
3695 }
3696 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIcon, 1);
3697 return resultobj;
3698 fail:
3699 return NULL;
3700}
3701
3702
3703static PyObject *_wrap_Icon_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
3704 PyObject *resultobj;
3705 wxIcon *arg1 = (wxIcon *) 0 ;
3706 bool result;
3707 PyObject * obj0 = 0 ;
3708 char *kwnames[] = {
3709 (char *) "self", NULL
3710 };
3711
3712 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_Ok",kwnames,&obj0)) goto fail;
3713 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3714 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3715 {
3716 PyThreadState* __tstate = wxPyBeginAllowThreads();
3717 result = (bool)(arg1)->Ok();
3718
3719 wxPyEndAllowThreads(__tstate);
3720 if (PyErr_Occurred()) SWIG_fail;
3721 }
3722 {
3723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3724 }
3725 return resultobj;
3726 fail:
3727 return NULL;
3728}
3729
3730
3731static PyObject *_wrap_Icon_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3732 PyObject *resultobj;
3733 wxIcon *arg1 = (wxIcon *) 0 ;
3734 int result;
3735 PyObject * obj0 = 0 ;
3736 char *kwnames[] = {
3737 (char *) "self", NULL
3738 };
3739
3740 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetWidth",kwnames,&obj0)) goto fail;
3741 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3742 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3743 {
3744 PyThreadState* __tstate = wxPyBeginAllowThreads();
3745 result = (int)(arg1)->GetWidth();
3746
3747 wxPyEndAllowThreads(__tstate);
3748 if (PyErr_Occurred()) SWIG_fail;
3749 }
3750 resultobj = SWIG_FromInt((int)result);
3751 return resultobj;
3752 fail:
3753 return NULL;
3754}
3755
3756
3757static PyObject *_wrap_Icon_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3758 PyObject *resultobj;
3759 wxIcon *arg1 = (wxIcon *) 0 ;
3760 int result;
3761 PyObject * obj0 = 0 ;
3762 char *kwnames[] = {
3763 (char *) "self", NULL
3764 };
3765
3766 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetHeight",kwnames,&obj0)) goto fail;
3767 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3768 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3769 {
3770 PyThreadState* __tstate = wxPyBeginAllowThreads();
3771 result = (int)(arg1)->GetHeight();
3772
3773 wxPyEndAllowThreads(__tstate);
3774 if (PyErr_Occurred()) SWIG_fail;
3775 }
3776 resultobj = SWIG_FromInt((int)result);
3777 return resultobj;
3778 fail:
3779 return NULL;
3780}
3781
3782
3783static PyObject *_wrap_Icon_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3784 PyObject *resultobj;
3785 wxIcon *arg1 = (wxIcon *) 0 ;
3786 int result;
3787 PyObject * obj0 = 0 ;
3788 char *kwnames[] = {
3789 (char *) "self", NULL
3790 };
3791
3792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Icon_GetDepth",kwnames,&obj0)) goto fail;
3793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 result = (int)(arg1)->GetDepth();
3798
3799 wxPyEndAllowThreads(__tstate);
3800 if (PyErr_Occurred()) SWIG_fail;
3801 }
3802 resultobj = SWIG_FromInt((int)result);
3803 return resultobj;
3804 fail:
3805 return NULL;
3806}
3807
3808
3809static PyObject *_wrap_Icon_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
3810 PyObject *resultobj;
3811 wxIcon *arg1 = (wxIcon *) 0 ;
3812 int arg2 ;
3813 PyObject * obj0 = 0 ;
3814 PyObject * obj1 = 0 ;
3815 char *kwnames[] = {
3816 (char *) "self",(char *) "w", NULL
3817 };
3818
3819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) goto fail;
3820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3822 arg2 = (int) SWIG_AsInt(obj1);
3823 if (PyErr_Occurred()) SWIG_fail;
3824 {
3825 PyThreadState* __tstate = wxPyBeginAllowThreads();
3826 (arg1)->SetWidth(arg2);
3827
3828 wxPyEndAllowThreads(__tstate);
3829 if (PyErr_Occurred()) SWIG_fail;
3830 }
3831 Py_INCREF(Py_None); resultobj = Py_None;
3832 return resultobj;
3833 fail:
3834 return NULL;
3835}
3836
3837
3838static PyObject *_wrap_Icon_SetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
3839 PyObject *resultobj;
3840 wxIcon *arg1 = (wxIcon *) 0 ;
3841 int arg2 ;
3842 PyObject * obj0 = 0 ;
3843 PyObject * obj1 = 0 ;
3844 char *kwnames[] = {
3845 (char *) "self",(char *) "h", NULL
3846 };
3847
3848 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) goto fail;
3849 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3850 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3851 arg2 = (int) SWIG_AsInt(obj1);
3852 if (PyErr_Occurred()) SWIG_fail;
3853 {
3854 PyThreadState* __tstate = wxPyBeginAllowThreads();
3855 (arg1)->SetHeight(arg2);
3856
3857 wxPyEndAllowThreads(__tstate);
3858 if (PyErr_Occurred()) SWIG_fail;
3859 }
3860 Py_INCREF(Py_None); resultobj = Py_None;
3861 return resultobj;
3862 fail:
3863 return NULL;
3864}
3865
3866
3867static PyObject *_wrap_Icon_SetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
3868 PyObject *resultobj;
3869 wxIcon *arg1 = (wxIcon *) 0 ;
3870 int arg2 ;
3871 PyObject * obj0 = 0 ;
3872 PyObject * obj1 = 0 ;
3873 char *kwnames[] = {
3874 (char *) "self",(char *) "d", NULL
3875 };
3876
3877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) goto fail;
3878 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3879 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3880 arg2 = (int) SWIG_AsInt(obj1);
3881 if (PyErr_Occurred()) SWIG_fail;
3882 {
3883 PyThreadState* __tstate = wxPyBeginAllowThreads();
3884 (arg1)->SetDepth(arg2);
3885
3886 wxPyEndAllowThreads(__tstate);
3887 if (PyErr_Occurred()) SWIG_fail;
3888 }
3889 Py_INCREF(Py_None); resultobj = Py_None;
3890 return resultobj;
3891 fail:
3892 return NULL;
3893}
3894
3895
3896static PyObject *_wrap_Icon_CopyFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
3897 PyObject *resultobj;
3898 wxIcon *arg1 = (wxIcon *) 0 ;
3899 wxBitmap *arg2 = 0 ;
3900 PyObject * obj0 = 0 ;
3901 PyObject * obj1 = 0 ;
3902 char *kwnames[] = {
3903 (char *) "self",(char *) "bmp", NULL
3904 };
3905
3906 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) goto fail;
3907 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
3908 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3909 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
3910 SWIG_POINTER_EXCEPTION | 0)) == -1)
3911 SWIG_fail;
3912 if (arg2 == NULL) {
3913 PyErr_SetString(PyExc_TypeError,"null reference");
3914 SWIG_fail;
3915 }
3916 {
3917 PyThreadState* __tstate = wxPyBeginAllowThreads();
3918 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
3919
3920 wxPyEndAllowThreads(__tstate);
3921 if (PyErr_Occurred()) SWIG_fail;
3922 }
3923 Py_INCREF(Py_None); resultobj = Py_None;
3924 return resultobj;
3925 fail:
3926 return NULL;
3927}
3928
3929
3930static PyObject * Icon_swigregister(PyObject *self, PyObject *args) {
3931 PyObject *obj;
3932 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
3933 SWIG_TypeClientData(SWIGTYPE_p_wxIcon, obj);
3934 Py_INCREF(obj);
3935 return Py_BuildValue((char *)"");
3936}
3937static PyObject *_wrap_new_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3938 PyObject *resultobj;
3939 wxString *arg1 = (wxString *) &wxPyEmptyString ;
3940 int arg2 = (int) 0 ;
3941 wxIconLocation *result;
3942 bool temp1 = False ;
3943 PyObject * obj0 = 0 ;
3944 PyObject * obj1 = 0 ;
3945 char *kwnames[] = {
3946 (char *) "filename",(char *) "num", NULL
3947 };
3948
3949 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) goto fail;
3950 if (obj0) {
3951 {
3952 arg1 = wxString_in_helper(obj0);
3953 if (arg1 == NULL) SWIG_fail;
3954 temp1 = True;
3955 }
3956 }
3957 if (obj1) {
3958 arg2 = (int) SWIG_AsInt(obj1);
3959 if (PyErr_Occurred()) SWIG_fail;
3960 }
3961 {
3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
3963 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
3964
3965 wxPyEndAllowThreads(__tstate);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconLocation, 1);
3969 {
3970 if (temp1)
3971 delete arg1;
3972 }
3973 return resultobj;
3974 fail:
3975 {
3976 if (temp1)
3977 delete arg1;
3978 }
3979 return NULL;
3980}
3981
3982
3983static PyObject *_wrap_delete_IconLocation(PyObject *self, PyObject *args, PyObject *kwargs) {
3984 PyObject *resultobj;
3985 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
3986 PyObject * obj0 = 0 ;
3987 char *kwnames[] = {
3988 (char *) "self", NULL
3989 };
3990
3991 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconLocation",kwnames,&obj0)) goto fail;
3992 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
3993 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
3994 {
3995 PyThreadState* __tstate = wxPyBeginAllowThreads();
3996 delete arg1;
3997
3998 wxPyEndAllowThreads(__tstate);
3999 if (PyErr_Occurred()) SWIG_fail;
4000 }
4001 Py_INCREF(Py_None); resultobj = Py_None;
4002 return resultobj;
4003 fail:
4004 return NULL;
4005}
4006
4007
4008static PyObject *_wrap_IconLocation_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
4009 PyObject *resultobj;
4010 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4011 bool result;
4012 PyObject * obj0 = 0 ;
4013 char *kwnames[] = {
4014 (char *) "self", NULL
4015 };
4016
4017 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_IsOk",kwnames,&obj0)) goto fail;
4018 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4019 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4020 {
4021 PyThreadState* __tstate = wxPyBeginAllowThreads();
4022 result = (bool)((wxIconLocation const *)arg1)->IsOk();
4023
4024 wxPyEndAllowThreads(__tstate);
4025 if (PyErr_Occurred()) SWIG_fail;
4026 }
4027 {
4028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4029 }
4030 return resultobj;
4031 fail:
4032 return NULL;
4033}
4034
4035
4036static PyObject *_wrap_IconLocation_SetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4037 PyObject *resultobj;
4038 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4039 wxString *arg2 = 0 ;
4040 bool temp2 = False ;
4041 PyObject * obj0 = 0 ;
4042 PyObject * obj1 = 0 ;
4043 char *kwnames[] = {
4044 (char *) "self",(char *) "filename", NULL
4045 };
4046
4047 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) goto fail;
4048 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4050 {
4051 arg2 = wxString_in_helper(obj1);
4052 if (arg2 == NULL) SWIG_fail;
4053 temp2 = True;
4054 }
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 (arg1)->SetFileName((wxString const &)*arg2);
4058
4059 wxPyEndAllowThreads(__tstate);
4060 if (PyErr_Occurred()) SWIG_fail;
4061 }
4062 Py_INCREF(Py_None); resultobj = Py_None;
4063 {
4064 if (temp2)
4065 delete arg2;
4066 }
4067 return resultobj;
4068 fail:
4069 {
4070 if (temp2)
4071 delete arg2;
4072 }
4073 return NULL;
4074}
4075
4076
4077static PyObject *_wrap_IconLocation_GetFileName(PyObject *self, PyObject *args, PyObject *kwargs) {
4078 PyObject *resultobj;
4079 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4080 wxString *result;
4081 PyObject * obj0 = 0 ;
4082 char *kwnames[] = {
4083 (char *) "self", NULL
4084 };
4085
4086 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetFileName",kwnames,&obj0)) goto fail;
4087 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4088 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4089 {
4090 PyThreadState* __tstate = wxPyBeginAllowThreads();
4091 {
4092 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
4093 result = (wxString *) &_result_ref;
4094 }
4095
4096 wxPyEndAllowThreads(__tstate);
4097 if (PyErr_Occurred()) SWIG_fail;
4098 }
4099 {
4100#if wxUSE_UNICODE
4101 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
4102#else
4103 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
4104#endif
4105 }
4106 return resultobj;
4107 fail:
4108 return NULL;
4109}
4110
4111
4112static PyObject *_wrap_IconLocation_SetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4113 PyObject *resultobj;
4114 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4115 int arg2 ;
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 char *kwnames[] = {
4119 (char *) "self",(char *) "num", NULL
4120 };
4121
4122 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) goto fail;
4123 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4124 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4125 arg2 = (int) SWIG_AsInt(obj1);
4126 if (PyErr_Occurred()) SWIG_fail;
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 wxIconLocation_SetIndex(arg1,arg2);
4130
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 Py_INCREF(Py_None); resultobj = Py_None;
4135 return resultobj;
4136 fail:
4137 return NULL;
4138}
4139
4140
4141static PyObject *_wrap_IconLocation_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) {
4142 PyObject *resultobj;
4143 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
4144 int result;
4145 PyObject * obj0 = 0 ;
4146 char *kwnames[] = {
4147 (char *) "self", NULL
4148 };
4149
4150 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:IconLocation_GetIndex",kwnames,&obj0)) goto fail;
4151 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconLocation,
4152 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4153 {
4154 PyThreadState* __tstate = wxPyBeginAllowThreads();
4155 result = (int)wxIconLocation_GetIndex(arg1);
4156
4157 wxPyEndAllowThreads(__tstate);
4158 if (PyErr_Occurred()) SWIG_fail;
4159 }
4160 resultobj = SWIG_FromInt((int)result);
4161 return resultobj;
4162 fail:
4163 return NULL;
4164}
4165
4166
4167static PyObject * IconLocation_swigregister(PyObject *self, PyObject *args) {
4168 PyObject *obj;
4169 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4170 SWIG_TypeClientData(SWIGTYPE_p_wxIconLocation, obj);
4171 Py_INCREF(obj);
4172 return Py_BuildValue((char *)"");
4173}
4174static PyObject *_wrap_new_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4175 PyObject *resultobj;
4176 wxIconBundle *result;
4177 char *kwnames[] = {
4178 NULL
4179 };
4180
4181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_IconBundle",kwnames)) goto fail;
4182 {
4183 PyThreadState* __tstate = wxPyBeginAllowThreads();
4184 result = (wxIconBundle *)new wxIconBundle();
4185
4186 wxPyEndAllowThreads(__tstate);
4187 if (PyErr_Occurred()) SWIG_fail;
4188 }
4189 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4190 return resultobj;
4191 fail:
4192 return NULL;
4193}
4194
4195
4196static PyObject *_wrap_new_IconBundleFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4197 PyObject *resultobj;
4198 wxString *arg1 = 0 ;
4199 long arg2 ;
4200 wxIconBundle *result;
4201 bool temp1 = False ;
4202 PyObject * obj0 = 0 ;
4203 PyObject * obj1 = 0 ;
4204 char *kwnames[] = {
4205 (char *) "file",(char *) "type", NULL
4206 };
4207
4208 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) goto fail;
4209 {
4210 arg1 = wxString_in_helper(obj0);
4211 if (arg1 == NULL) SWIG_fail;
4212 temp1 = True;
4213 }
4214 arg2 = (long) SWIG_AsLong(obj1);
4215 if (PyErr_Occurred()) SWIG_fail;
4216 {
4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
4218 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
4219
4220 wxPyEndAllowThreads(__tstate);
4221 if (PyErr_Occurred()) SWIG_fail;
4222 }
4223 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4224 {
4225 if (temp1)
4226 delete arg1;
4227 }
4228 return resultobj;
4229 fail:
4230 {
4231 if (temp1)
4232 delete arg1;
4233 }
4234 return NULL;
4235}
4236
4237
4238static PyObject *_wrap_new_IconBundleFromIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj;
4240 wxIcon *arg1 = 0 ;
4241 wxIconBundle *result;
4242 PyObject * obj0 = 0 ;
4243 char *kwnames[] = {
4244 (char *) "icon", NULL
4245 };
4246
4247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) goto fail;
4248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon,
4249 SWIG_POINTER_EXCEPTION | 0)) == -1)
4250 SWIG_fail;
4251 if (arg1 == NULL) {
4252 PyErr_SetString(PyExc_TypeError,"null reference");
4253 SWIG_fail;
4254 }
4255 {
4256 PyThreadState* __tstate = wxPyBeginAllowThreads();
4257 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
4258
4259 wxPyEndAllowThreads(__tstate);
4260 if (PyErr_Occurred()) SWIG_fail;
4261 }
4262 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxIconBundle, 1);
4263 return resultobj;
4264 fail:
4265 return NULL;
4266}
4267
4268
4269static PyObject *_wrap_delete_IconBundle(PyObject *self, PyObject *args, PyObject *kwargs) {
4270 PyObject *resultobj;
4271 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4272 PyObject * obj0 = 0 ;
4273 char *kwnames[] = {
4274 (char *) "self", NULL
4275 };
4276
4277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_IconBundle",kwnames,&obj0)) goto fail;
4278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 delete arg1;
4283
4284 wxPyEndAllowThreads(__tstate);
4285 if (PyErr_Occurred()) SWIG_fail;
4286 }
4287 Py_INCREF(Py_None); resultobj = Py_None;
4288 return resultobj;
4289 fail:
4290 return NULL;
4291}
4292
4293
4294static PyObject *_wrap_IconBundle_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4295 PyObject *resultobj;
4296 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4297 wxIcon *arg2 = 0 ;
4298 PyObject * obj0 = 0 ;
4299 PyObject * obj1 = 0 ;
4300 char *kwnames[] = {
4301 (char *) "self",(char *) "icon", NULL
4302 };
4303
4304 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) goto fail;
4305 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4306 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4307 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
4308 SWIG_POINTER_EXCEPTION | 0)) == -1)
4309 SWIG_fail;
4310 if (arg2 == NULL) {
4311 PyErr_SetString(PyExc_TypeError,"null reference");
4312 SWIG_fail;
4313 }
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 (arg1)->AddIcon((wxIcon const &)*arg2);
4317
4318 wxPyEndAllowThreads(__tstate);
4319 if (PyErr_Occurred()) SWIG_fail;
4320 }
4321 Py_INCREF(Py_None); resultobj = Py_None;
4322 return resultobj;
4323 fail:
4324 return NULL;
4325}
4326
4327
4328static PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *self, PyObject *args, PyObject *kwargs) {
4329 PyObject *resultobj;
4330 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4331 wxString *arg2 = 0 ;
4332 long arg3 ;
4333 bool temp2 = False ;
4334 PyObject * obj0 = 0 ;
4335 PyObject * obj1 = 0 ;
4336 PyObject * obj2 = 0 ;
4337 char *kwnames[] = {
4338 (char *) "self",(char *) "file",(char *) "type", NULL
4339 };
4340
4341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) goto fail;
4342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4344 {
4345 arg2 = wxString_in_helper(obj1);
4346 if (arg2 == NULL) SWIG_fail;
4347 temp2 = True;
4348 }
4349 arg3 = (long) SWIG_AsLong(obj2);
4350 if (PyErr_Occurred()) SWIG_fail;
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 (arg1)->AddIcon((wxString const &)*arg2,arg3);
4354
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 Py_INCREF(Py_None); resultobj = Py_None;
4359 {
4360 if (temp2)
4361 delete arg2;
4362 }
4363 return resultobj;
4364 fail:
4365 {
4366 if (temp2)
4367 delete arg2;
4368 }
4369 return NULL;
4370}
4371
4372
4373static PyObject *_wrap_IconBundle_GetIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj;
4375 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
4376 wxSize *arg2 = 0 ;
4377 wxIcon *result;
4378 wxSize temp2 ;
4379 PyObject * obj0 = 0 ;
4380 PyObject * obj1 = 0 ;
4381 char *kwnames[] = {
4382 (char *) "self",(char *) "size", NULL
4383 };
4384
4385 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) goto fail;
4386 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIconBundle,
4387 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4388 {
4389 arg2 = &temp2;
4390 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
4391 }
4392 {
4393 PyThreadState* __tstate = wxPyBeginAllowThreads();
4394 {
4395 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
4396 result = (wxIcon *) &_result_ref;
4397 }
4398
4399 wxPyEndAllowThreads(__tstate);
4400 if (PyErr_Occurred()) SWIG_fail;
4401 }
4402 {
4403 wxIcon* resultptr = new wxIcon(*result);
4404 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
4405 }
4406 return resultobj;
4407 fail:
4408 return NULL;
4409}
4410
4411
4412static PyObject * IconBundle_swigregister(PyObject *self, PyObject *args) {
4413 PyObject *obj;
4414 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4415 SWIG_TypeClientData(SWIGTYPE_p_wxIconBundle, obj);
4416 Py_INCREF(obj);
4417 return Py_BuildValue((char *)"");
4418}
4419static PyObject *_wrap_new_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4420 PyObject *resultobj;
4421 wxString *arg1 = (wxString *) 0 ;
4422 long arg2 ;
4423 int arg3 = (int) 0 ;
4424 int arg4 = (int) 0 ;
4425 wxCursor *result;
4426 bool temp1 = False ;
4427 PyObject * obj0 = 0 ;
4428 PyObject * obj1 = 0 ;
4429 PyObject * obj2 = 0 ;
4430 PyObject * obj3 = 0 ;
4431 char *kwnames[] = {
4432 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
4433 };
4434
4435 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4436 {
4437 arg1 = wxString_in_helper(obj0);
4438 if (arg1 == NULL) SWIG_fail;
4439 temp1 = True;
4440 }
4441 arg2 = (long) SWIG_AsLong(obj1);
4442 if (PyErr_Occurred()) SWIG_fail;
4443 if (obj2) {
4444 arg3 = (int) SWIG_AsInt(obj2);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 if (obj3) {
4448 arg4 = (int) SWIG_AsInt(obj3);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 {
0439c23b 4452 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4453 PyThreadState* __tstate = wxPyBeginAllowThreads();
4454 result = (wxCursor *)new_wxCursor((wxString const *)arg1,arg2,arg3,arg4);
4455
4456 wxPyEndAllowThreads(__tstate);
110da5b0 4457 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4458 }
4459 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4460 {
4461 if (temp1)
4462 delete arg1;
4463 }
4464 return resultobj;
4465 fail:
4466 {
4467 if (temp1)
4468 delete arg1;
4469 }
4470 return NULL;
4471}
4472
4473
4474static PyObject *_wrap_delete_Cursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4475 PyObject *resultobj;
4476 wxCursor *arg1 = (wxCursor *) 0 ;
4477 PyObject * obj0 = 0 ;
4478 char *kwnames[] = {
4479 (char *) "self", NULL
4480 };
4481
4482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Cursor",kwnames,&obj0)) goto fail;
4483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4485 {
4486 PyThreadState* __tstate = wxPyBeginAllowThreads();
4487 delete arg1;
4488
4489 wxPyEndAllowThreads(__tstate);
4490 if (PyErr_Occurred()) SWIG_fail;
4491 }
4492 Py_INCREF(Py_None); resultobj = Py_None;
4493 return resultobj;
4494 fail:
4495 return NULL;
4496}
4497
4498
4499static PyObject *_wrap_new_StockCursor(PyObject *self, PyObject *args, PyObject *kwargs) {
4500 PyObject *resultobj;
4501 int arg1 ;
4502 wxCursor *result;
4503 PyObject * obj0 = 0 ;
4504 char *kwnames[] = {
4505 (char *) "id", NULL
4506 };
4507
4508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) goto fail;
4509 arg1 = (int) SWIG_AsInt(obj0);
4510 if (PyErr_Occurred()) SWIG_fail;
4511 {
0439c23b 4512 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 result = (wxCursor *)new wxCursor(arg1);
4515
4516 wxPyEndAllowThreads(__tstate);
110da5b0 4517 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4518 }
4519 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4520 return resultobj;
4521 fail:
4522 return NULL;
4523}
4524
4525
4526static PyObject *_wrap_new_CursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj;
4528 wxImage *arg1 = 0 ;
4529 wxCursor *result;
4530 PyObject * obj0 = 0 ;
4531 char *kwnames[] = {
4532 (char *) "image", NULL
4533 };
4534
4535 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) goto fail;
4536 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImage,
4537 SWIG_POINTER_EXCEPTION | 0)) == -1)
4538 SWIG_fail;
4539 if (arg1 == NULL) {
4540 PyErr_SetString(PyExc_TypeError,"null reference");
4541 SWIG_fail;
4542 }
4543 {
0439c23b 4544 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4545 PyThreadState* __tstate = wxPyBeginAllowThreads();
4546 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
4547
4548 wxPyEndAllowThreads(__tstate);
110da5b0 4549 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4550 }
4551 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCursor, 1);
4552 return resultobj;
4553 fail:
4554 return NULL;
4555}
4556
4557
4558static PyObject *_wrap_Cursor_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
4559 PyObject *resultobj;
4560 wxCursor *arg1 = (wxCursor *) 0 ;
4561 bool result;
4562 PyObject * obj0 = 0 ;
4563 char *kwnames[] = {
4564 (char *) "self", NULL
4565 };
4566
4567 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Cursor_Ok",kwnames,&obj0)) goto fail;
4568 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCursor,
4569 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4570 {
4571 PyThreadState* __tstate = wxPyBeginAllowThreads();
4572 result = (bool)(arg1)->Ok();
4573
4574 wxPyEndAllowThreads(__tstate);
4575 if (PyErr_Occurred()) SWIG_fail;
4576 }
4577 {
4578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4579 }
4580 return resultobj;
4581 fail:
4582 return NULL;
4583}
4584
4585
4586static PyObject * Cursor_swigregister(PyObject *self, PyObject *args) {
4587 PyObject *obj;
4588 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
4589 SWIG_TypeClientData(SWIGTYPE_p_wxCursor, obj);
4590 Py_INCREF(obj);
4591 return Py_BuildValue((char *)"");
4592}
4593static PyObject *_wrap_new_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4594 PyObject *resultobj;
4595 int arg1 = (int) 0 ;
4596 int arg2 = (int) 0 ;
4597 int arg3 = (int) 0 ;
4598 int arg4 = (int) 0 ;
4599 wxRegion *result;
4600 PyObject * obj0 = 0 ;
4601 PyObject * obj1 = 0 ;
4602 PyObject * obj2 = 0 ;
4603 PyObject * obj3 = 0 ;
4604 char *kwnames[] = {
4605 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4606 };
4607
4608 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
4609 if (obj0) {
4610 arg1 = (int) SWIG_AsInt(obj0);
4611 if (PyErr_Occurred()) SWIG_fail;
4612 }
4613 if (obj1) {
4614 arg2 = (int) SWIG_AsInt(obj1);
4615 if (PyErr_Occurred()) SWIG_fail;
4616 }
4617 if (obj2) {
4618 arg3 = (int) SWIG_AsInt(obj2);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 if (obj3) {
4622 arg4 = (int) SWIG_AsInt(obj3);
4623 if (PyErr_Occurred()) SWIG_fail;
4624 }
4625 {
0439c23b 4626 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4627 PyThreadState* __tstate = wxPyBeginAllowThreads();
4628 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
4629
4630 wxPyEndAllowThreads(__tstate);
110da5b0 4631 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4632 }
4633 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4634 return resultobj;
4635 fail:
4636 return NULL;
4637}
4638
4639
4640static PyObject *_wrap_new_RegionFromBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
4641 PyObject *resultobj;
4642 wxBitmap *arg1 = 0 ;
d07096ad
RD
4643 wxRegion *result;
4644 PyObject * obj0 = 0 ;
4645 char *kwnames[] = {
4646 (char *) "bmp", NULL
4647 };
4648
4649 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) goto fail;
4650 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4651 SWIG_POINTER_EXCEPTION | 0)) == -1)
4652 SWIG_fail;
4653 if (arg1 == NULL) {
4654 PyErr_SetString(PyExc_TypeError,"null reference");
4655 SWIG_fail;
4656 }
4657 {
4658 if (!wxPyCheckForApp()) SWIG_fail;
4659 PyThreadState* __tstate = wxPyBeginAllowThreads();
4660 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
4661
4662 wxPyEndAllowThreads(__tstate);
110da5b0 4663 if (PyErr_Occurred()) SWIG_fail;
d07096ad
RD
4664 }
4665 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4666 return resultobj;
4667 fail:
4668 return NULL;
4669}
4670
4671
4672static PyObject *_wrap_new_RegionFromBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
4673 PyObject *resultobj;
4674 wxBitmap *arg1 = 0 ;
4675 wxColour *arg2 = 0 ;
d55e5bfc
RD
4676 int arg3 = (int) 0 ;
4677 wxRegion *result;
4678 wxColour temp2 ;
4679 PyObject * obj0 = 0 ;
4680 PyObject * obj1 = 0 ;
4681 PyObject * obj2 = 0 ;
4682 char *kwnames[] = {
4683 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
4684 };
4685
d07096ad 4686 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
4687 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap,
4688 SWIG_POINTER_EXCEPTION | 0)) == -1)
4689 SWIG_fail;
4690 if (arg1 == NULL) {
4691 PyErr_SetString(PyExc_TypeError,"null reference");
4692 SWIG_fail;
4693 }
d07096ad
RD
4694 {
4695 arg2 = &temp2;
4696 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
4697 }
4698 if (obj2) {
4699 arg3 = (int) SWIG_AsInt(obj2);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 }
4702 {
0439c23b 4703 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4704 PyThreadState* __tstate = wxPyBeginAllowThreads();
4705 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
4706
4707 wxPyEndAllowThreads(__tstate);
110da5b0 4708 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4709 }
4710 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4711 return resultobj;
4712 fail:
4713 return NULL;
4714}
4715
4716
4717static PyObject *_wrap_new_RegionFromPoints(PyObject *self, PyObject *args, PyObject *kwargs) {
4718 PyObject *resultobj;
4719 int arg1 ;
4720 wxPoint *arg2 = (wxPoint *) 0 ;
4721 int arg3 = (int) wxWINDING_RULE ;
4722 wxRegion *result;
4723 PyObject * obj0 = 0 ;
4724 PyObject * obj1 = 0 ;
4725 char *kwnames[] = {
4726 (char *) "points",(char *) "fillStyle", NULL
4727 };
4728
4729 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) goto fail;
4730 {
4731 arg2 = wxPoint_LIST_helper(obj0, &arg1);
4732 if (arg2 == NULL) SWIG_fail;
4733 }
4734 if (obj1) {
4735 arg3 = (int) SWIG_AsInt(obj1);
4736 if (PyErr_Occurred()) SWIG_fail;
4737 }
4738 {
0439c23b 4739 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
4740 PyThreadState* __tstate = wxPyBeginAllowThreads();
4741 result = (wxRegion *)new_wxRegion(arg1,arg2,arg3);
4742
4743 wxPyEndAllowThreads(__tstate);
110da5b0 4744 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
4745 }
4746 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegion, 1);
4747 {
4748 if (arg2) delete [] arg2;
4749 }
4750 return resultobj;
4751 fail:
4752 {
4753 if (arg2) delete [] arg2;
4754 }
4755 return NULL;
4756}
4757
4758
4759static PyObject *_wrap_delete_Region(PyObject *self, PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj;
4761 wxRegion *arg1 = (wxRegion *) 0 ;
4762 PyObject * obj0 = 0 ;
4763 char *kwnames[] = {
4764 (char *) "self", NULL
4765 };
4766
4767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Region",kwnames,&obj0)) goto fail;
4768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4770 {
4771 PyThreadState* __tstate = wxPyBeginAllowThreads();
4772 delete arg1;
4773
4774 wxPyEndAllowThreads(__tstate);
4775 if (PyErr_Occurred()) SWIG_fail;
4776 }
4777 Py_INCREF(Py_None); resultobj = Py_None;
4778 return resultobj;
4779 fail:
4780 return NULL;
4781}
4782
4783
4784static PyObject *_wrap_Region_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
4785 PyObject *resultobj;
4786 wxRegion *arg1 = (wxRegion *) 0 ;
4787 PyObject * obj0 = 0 ;
4788 char *kwnames[] = {
4789 (char *) "self", NULL
4790 };
4791
4792 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_Clear",kwnames,&obj0)) goto fail;
4793 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4794 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4795 {
4796 PyThreadState* __tstate = wxPyBeginAllowThreads();
4797 (arg1)->Clear();
4798
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 Py_INCREF(Py_None); resultobj = Py_None;
4803 return resultobj;
4804 fail:
4805 return NULL;
4806}
4807
4808
4809static PyObject *_wrap_Region_Contains(PyObject *self, PyObject *args, PyObject *kwargs) {
4810 PyObject *resultobj;
4811 wxRegion *arg1 = (wxRegion *) 0 ;
4812 int arg2 ;
4813 int arg3 ;
4814 int result;
4815 PyObject * obj0 = 0 ;
4816 PyObject * obj1 = 0 ;
4817 PyObject * obj2 = 0 ;
4818 char *kwnames[] = {
4819 (char *) "self",(char *) "x",(char *) "y", NULL
4820 };
4821
4822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) goto fail;
4823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4825 arg2 = (int) SWIG_AsInt(obj1);
4826 if (PyErr_Occurred()) SWIG_fail;
4827 arg3 = (int) SWIG_AsInt(obj2);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (int)(arg1)->Contains(arg2,arg3);
4832
4833 wxPyEndAllowThreads(__tstate);
4834 if (PyErr_Occurred()) SWIG_fail;
4835 }
4836 resultobj = SWIG_FromInt((int)result);
4837 return resultobj;
4838 fail:
4839 return NULL;
4840}
4841
4842
4843static PyObject *_wrap_Region_ContainsPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
4844 PyObject *resultobj;
4845 wxRegion *arg1 = (wxRegion *) 0 ;
4846 wxPoint *arg2 = 0 ;
4847 int result;
4848 wxPoint temp2 ;
4849 PyObject * obj0 = 0 ;
4850 PyObject * obj1 = 0 ;
4851 char *kwnames[] = {
4852 (char *) "self",(char *) "pt", NULL
4853 };
4854
4855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) goto fail;
4856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4858 {
4859 arg2 = &temp2;
4860 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
4861 }
4862 {
4863 PyThreadState* __tstate = wxPyBeginAllowThreads();
4864 result = (int)(arg1)->Contains((wxPoint const &)*arg2);
4865
4866 wxPyEndAllowThreads(__tstate);
4867 if (PyErr_Occurred()) SWIG_fail;
4868 }
4869 resultobj = SWIG_FromInt((int)result);
4870 return resultobj;
4871 fail:
4872 return NULL;
4873}
4874
4875
4876static PyObject *_wrap_Region_ContainsRect(PyObject *self, PyObject *args, PyObject *kwargs) {
4877 PyObject *resultobj;
4878 wxRegion *arg1 = (wxRegion *) 0 ;
4879 wxRect *arg2 = 0 ;
4880 int result;
4881 wxRect temp2 ;
4882 PyObject * obj0 = 0 ;
4883 PyObject * obj1 = 0 ;
4884 char *kwnames[] = {
4885 (char *) "self",(char *) "rect", NULL
4886 };
4887
4888 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) goto fail;
4889 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4890 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4891 {
4892 arg2 = &temp2;
4893 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
4894 }
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (int)(arg1)->Contains((wxRect const &)*arg2);
4898
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_FromInt((int)result);
4903 return resultobj;
4904 fail:
4905 return NULL;
4906}
4907
4908
4909static PyObject *_wrap_Region_ContainsRectDim(PyObject *self, PyObject *args, PyObject *kwargs) {
4910 PyObject *resultobj;
4911 wxRegion *arg1 = (wxRegion *) 0 ;
4912 int arg2 ;
4913 int arg3 ;
4914 int arg4 ;
4915 int arg5 ;
4916 int result;
4917 PyObject * obj0 = 0 ;
4918 PyObject * obj1 = 0 ;
4919 PyObject * obj2 = 0 ;
4920 PyObject * obj3 = 0 ;
4921 PyObject * obj4 = 0 ;
4922 char *kwnames[] = {
4923 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
4924 };
4925
4926 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4927 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4928 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4929 arg2 = (int) SWIG_AsInt(obj1);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 arg3 = (int) SWIG_AsInt(obj2);
4932 if (PyErr_Occurred()) SWIG_fail;
4933 arg4 = (int) SWIG_AsInt(obj3);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 arg5 = (int) SWIG_AsInt(obj4);
4936 if (PyErr_Occurred()) SWIG_fail;
4937 {
4938 PyThreadState* __tstate = wxPyBeginAllowThreads();
4939 result = (int)(arg1)->Contains(arg2,arg3,arg4,arg5);
4940
4941 wxPyEndAllowThreads(__tstate);
4942 if (PyErr_Occurred()) SWIG_fail;
4943 }
4944 resultobj = SWIG_FromInt((int)result);
4945 return resultobj;
4946 fail:
4947 return NULL;
4948}
4949
4950
4951static PyObject *_wrap_Region_GetBox(PyObject *self, PyObject *args, PyObject *kwargs) {
4952 PyObject *resultobj;
4953 wxRegion *arg1 = (wxRegion *) 0 ;
4954 wxRect result;
4955 PyObject * obj0 = 0 ;
4956 char *kwnames[] = {
4957 (char *) "self", NULL
4958 };
4959
4960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_GetBox",kwnames,&obj0)) goto fail;
4961 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
4962 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
4963 {
4964 PyThreadState* __tstate = wxPyBeginAllowThreads();
4965 result = (arg1)->GetBox();
4966
4967 wxPyEndAllowThreads(__tstate);
4968 if (PyErr_Occurred()) SWIG_fail;
4969 }
4970 {
4971 wxRect * resultptr;
4972 resultptr = new wxRect((wxRect &) result);
4973 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
4974 }
4975 return resultobj;
4976 fail:
4977 return NULL;
4978}
4979
4980
4981static PyObject *_wrap_Region_Intersect(PyObject *self, PyObject *args, PyObject *kwargs) {
4982 PyObject *resultobj;
4983 wxRegion *arg1 = (wxRegion *) 0 ;
4984 int arg2 ;
4985 int arg3 ;
4986 int arg4 ;
4987 int arg5 ;
4988 bool result;
4989 PyObject * obj0 = 0 ;
4990 PyObject * obj1 = 0 ;
4991 PyObject * obj2 = 0 ;
4992 PyObject * obj3 = 0 ;
4993 PyObject * obj4 = 0 ;
4994 char *kwnames[] = {
4995 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
4996 };
4997
4998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
4999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5001 arg2 = (int) SWIG_AsInt(obj1);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 arg3 = (int) SWIG_AsInt(obj2);
5004 if (PyErr_Occurred()) SWIG_fail;
5005 arg4 = (int) SWIG_AsInt(obj3);
5006 if (PyErr_Occurred()) SWIG_fail;
5007 arg5 = (int) SWIG_AsInt(obj4);
5008 if (PyErr_Occurred()) SWIG_fail;
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
5012
5013 wxPyEndAllowThreads(__tstate);
5014 if (PyErr_Occurred()) SWIG_fail;
5015 }
5016 {
5017 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5018 }
5019 return resultobj;
5020 fail:
5021 return NULL;
5022}
5023
5024
5025static PyObject *_wrap_Region_IntersectRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5026 PyObject *resultobj;
5027 wxRegion *arg1 = (wxRegion *) 0 ;
5028 wxRect *arg2 = 0 ;
5029 bool result;
5030 wxRect temp2 ;
5031 PyObject * obj0 = 0 ;
5032 PyObject * obj1 = 0 ;
5033 char *kwnames[] = {
5034 (char *) "self",(char *) "rect", NULL
5035 };
5036
5037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) goto fail;
5038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5040 {
5041 arg2 = &temp2;
5042 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5043 }
5044 {
5045 PyThreadState* __tstate = wxPyBeginAllowThreads();
5046 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
5047
5048 wxPyEndAllowThreads(__tstate);
5049 if (PyErr_Occurred()) SWIG_fail;
5050 }
5051 {
5052 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5053 }
5054 return resultobj;
5055 fail:
5056 return NULL;
5057}
5058
5059
5060static PyObject *_wrap_Region_IntersectRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj;
5062 wxRegion *arg1 = (wxRegion *) 0 ;
5063 wxRegion *arg2 = 0 ;
5064 bool result;
5065 PyObject * obj0 = 0 ;
5066 PyObject * obj1 = 0 ;
5067 char *kwnames[] = {
5068 (char *) "self",(char *) "region", NULL
5069 };
5070
5071 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) goto fail;
5072 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5073 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5074 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5075 SWIG_POINTER_EXCEPTION | 0)) == -1)
5076 SWIG_fail;
5077 if (arg2 == NULL) {
5078 PyErr_SetString(PyExc_TypeError,"null reference");
5079 SWIG_fail;
5080 }
5081 {
5082 PyThreadState* __tstate = wxPyBeginAllowThreads();
5083 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
5084
5085 wxPyEndAllowThreads(__tstate);
5086 if (PyErr_Occurred()) SWIG_fail;
5087 }
5088 {
5089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5090 }
5091 return resultobj;
5092 fail:
5093 return NULL;
5094}
5095
5096
5097static PyObject *_wrap_Region_IsEmpty(PyObject *self, PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj;
5099 wxRegion *arg1 = (wxRegion *) 0 ;
5100 bool result;
5101 PyObject * obj0 = 0 ;
5102 char *kwnames[] = {
5103 (char *) "self", NULL
5104 };
5105
5106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_IsEmpty",kwnames,&obj0)) goto fail;
5107 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5108 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5109 {
5110 PyThreadState* __tstate = wxPyBeginAllowThreads();
5111 result = (bool)(arg1)->IsEmpty();
5112
5113 wxPyEndAllowThreads(__tstate);
5114 if (PyErr_Occurred()) SWIG_fail;
5115 }
5116 {
5117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5118 }
5119 return resultobj;
5120 fail:
5121 return NULL;
5122}
5123
5124
5125static PyObject *_wrap_Region_Union(PyObject *self, PyObject *args, PyObject *kwargs) {
5126 PyObject *resultobj;
5127 wxRegion *arg1 = (wxRegion *) 0 ;
5128 int arg2 ;
5129 int arg3 ;
5130 int arg4 ;
5131 int arg5 ;
5132 bool result;
5133 PyObject * obj0 = 0 ;
5134 PyObject * obj1 = 0 ;
5135 PyObject * obj2 = 0 ;
5136 PyObject * obj3 = 0 ;
5137 PyObject * obj4 = 0 ;
5138 char *kwnames[] = {
5139 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5140 };
5141
5142 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5143 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5144 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5145 arg2 = (int) SWIG_AsInt(obj1);
5146 if (PyErr_Occurred()) SWIG_fail;
5147 arg3 = (int) SWIG_AsInt(obj2);
5148 if (PyErr_Occurred()) SWIG_fail;
5149 arg4 = (int) SWIG_AsInt(obj3);
5150 if (PyErr_Occurred()) SWIG_fail;
5151 arg5 = (int) SWIG_AsInt(obj4);
5152 if (PyErr_Occurred()) SWIG_fail;
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
5156
5157 wxPyEndAllowThreads(__tstate);
5158 if (PyErr_Occurred()) SWIG_fail;
5159 }
5160 {
5161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5162 }
5163 return resultobj;
5164 fail:
5165 return NULL;
5166}
5167
5168
5169static PyObject *_wrap_Region_UnionRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5170 PyObject *resultobj;
5171 wxRegion *arg1 = (wxRegion *) 0 ;
5172 wxRect *arg2 = 0 ;
5173 bool result;
5174 wxRect temp2 ;
5175 PyObject * obj0 = 0 ;
5176 PyObject * obj1 = 0 ;
5177 char *kwnames[] = {
5178 (char *) "self",(char *) "rect", NULL
5179 };
5180
5181 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) goto fail;
5182 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5183 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5184 {
5185 arg2 = &temp2;
5186 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5187 }
5188 {
5189 PyThreadState* __tstate = wxPyBeginAllowThreads();
5190 result = (bool)(arg1)->Union((wxRect const &)*arg2);
5191
5192 wxPyEndAllowThreads(__tstate);
5193 if (PyErr_Occurred()) SWIG_fail;
5194 }
5195 {
5196 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5197 }
5198 return resultobj;
5199 fail:
5200 return NULL;
5201}
5202
5203
5204static PyObject *_wrap_Region_UnionRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5205 PyObject *resultobj;
5206 wxRegion *arg1 = (wxRegion *) 0 ;
5207 wxRegion *arg2 = 0 ;
5208 bool result;
5209 PyObject * obj0 = 0 ;
5210 PyObject * obj1 = 0 ;
5211 char *kwnames[] = {
5212 (char *) "self",(char *) "region", NULL
5213 };
5214
5215 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) goto fail;
5216 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5217 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5218 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5219 SWIG_POINTER_EXCEPTION | 0)) == -1)
5220 SWIG_fail;
5221 if (arg2 == NULL) {
5222 PyErr_SetString(PyExc_TypeError,"null reference");
5223 SWIG_fail;
5224 }
5225 {
5226 PyThreadState* __tstate = wxPyBeginAllowThreads();
5227 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
5228
5229 wxPyEndAllowThreads(__tstate);
5230 if (PyErr_Occurred()) SWIG_fail;
5231 }
5232 {
5233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5234 }
5235 return resultobj;
5236 fail:
5237 return NULL;
5238}
5239
5240
5241static PyObject *_wrap_Region_Subtract(PyObject *self, PyObject *args, PyObject *kwargs) {
5242 PyObject *resultobj;
5243 wxRegion *arg1 = (wxRegion *) 0 ;
5244 int arg2 ;
5245 int arg3 ;
5246 int arg4 ;
5247 int arg5 ;
5248 bool result;
5249 PyObject * obj0 = 0 ;
5250 PyObject * obj1 = 0 ;
5251 PyObject * obj2 = 0 ;
5252 PyObject * obj3 = 0 ;
5253 PyObject * obj4 = 0 ;
5254 char *kwnames[] = {
5255 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5256 };
5257
5258 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5259 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5260 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5261 arg2 = (int) SWIG_AsInt(obj1);
5262 if (PyErr_Occurred()) SWIG_fail;
5263 arg3 = (int) SWIG_AsInt(obj2);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 arg4 = (int) SWIG_AsInt(obj3);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 arg5 = (int) SWIG_AsInt(obj4);
5268 if (PyErr_Occurred()) SWIG_fail;
5269 {
5270 PyThreadState* __tstate = wxPyBeginAllowThreads();
5271 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
5272
5273 wxPyEndAllowThreads(__tstate);
5274 if (PyErr_Occurred()) SWIG_fail;
5275 }
5276 {
5277 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5278 }
5279 return resultobj;
5280 fail:
5281 return NULL;
5282}
5283
5284
5285static PyObject *_wrap_Region_SubtractRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5286 PyObject *resultobj;
5287 wxRegion *arg1 = (wxRegion *) 0 ;
5288 wxRect *arg2 = 0 ;
5289 bool result;
5290 wxRect temp2 ;
5291 PyObject * obj0 = 0 ;
5292 PyObject * obj1 = 0 ;
5293 char *kwnames[] = {
5294 (char *) "self",(char *) "rect", NULL
5295 };
5296
5297 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) goto fail;
5298 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5299 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5300 {
5301 arg2 = &temp2;
5302 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5303 }
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
5307
5308 wxPyEndAllowThreads(__tstate);
5309 if (PyErr_Occurred()) SWIG_fail;
5310 }
5311 {
5312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5313 }
5314 return resultobj;
5315 fail:
5316 return NULL;
5317}
5318
5319
5320static PyObject *_wrap_Region_SubtractRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5321 PyObject *resultobj;
5322 wxRegion *arg1 = (wxRegion *) 0 ;
5323 wxRegion *arg2 = 0 ;
5324 bool result;
5325 PyObject * obj0 = 0 ;
5326 PyObject * obj1 = 0 ;
5327 char *kwnames[] = {
5328 (char *) "self",(char *) "region", NULL
5329 };
5330
5331 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) goto fail;
5332 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5333 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5334 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5335 SWIG_POINTER_EXCEPTION | 0)) == -1)
5336 SWIG_fail;
5337 if (arg2 == NULL) {
5338 PyErr_SetString(PyExc_TypeError,"null reference");
5339 SWIG_fail;
5340 }
5341 {
5342 PyThreadState* __tstate = wxPyBeginAllowThreads();
5343 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
5344
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 {
5349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5350 }
5351 return resultobj;
5352 fail:
5353 return NULL;
5354}
5355
5356
5357static PyObject *_wrap_Region_Xor(PyObject *self, PyObject *args, PyObject *kwargs) {
5358 PyObject *resultobj;
5359 wxRegion *arg1 = (wxRegion *) 0 ;
5360 int arg2 ;
5361 int arg3 ;
5362 int arg4 ;
5363 int arg5 ;
5364 bool result;
5365 PyObject * obj0 = 0 ;
5366 PyObject * obj1 = 0 ;
5367 PyObject * obj2 = 0 ;
5368 PyObject * obj3 = 0 ;
5369 PyObject * obj4 = 0 ;
5370 char *kwnames[] = {
5371 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
5372 };
5373
5374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
5375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5377 arg2 = (int) SWIG_AsInt(obj1);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 arg3 = (int) SWIG_AsInt(obj2);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 arg4 = (int) SWIG_AsInt(obj3);
5382 if (PyErr_Occurred()) SWIG_fail;
5383 arg5 = (int) SWIG_AsInt(obj4);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 {
5386 PyThreadState* __tstate = wxPyBeginAllowThreads();
5387 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
5388
5389 wxPyEndAllowThreads(__tstate);
5390 if (PyErr_Occurred()) SWIG_fail;
5391 }
5392 {
5393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5394 }
5395 return resultobj;
5396 fail:
5397 return NULL;
5398}
5399
5400
5401static PyObject *_wrap_Region_XorRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5402 PyObject *resultobj;
5403 wxRegion *arg1 = (wxRegion *) 0 ;
5404 wxRect *arg2 = 0 ;
5405 bool result;
5406 wxRect temp2 ;
5407 PyObject * obj0 = 0 ;
5408 PyObject * obj1 = 0 ;
5409 char *kwnames[] = {
5410 (char *) "self",(char *) "rect", NULL
5411 };
5412
5413 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) goto fail;
5414 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5415 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5416 {
5417 arg2 = &temp2;
5418 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5419 }
5420 {
5421 PyThreadState* __tstate = wxPyBeginAllowThreads();
5422 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
5423
5424 wxPyEndAllowThreads(__tstate);
5425 if (PyErr_Occurred()) SWIG_fail;
5426 }
5427 {
5428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5429 }
5430 return resultobj;
5431 fail:
5432 return NULL;
5433}
5434
5435
5436static PyObject *_wrap_Region_XorRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
5437 PyObject *resultobj;
5438 wxRegion *arg1 = (wxRegion *) 0 ;
5439 wxRegion *arg2 = 0 ;
5440 bool result;
5441 PyObject * obj0 = 0 ;
5442 PyObject * obj1 = 0 ;
5443 char *kwnames[] = {
5444 (char *) "self",(char *) "region", NULL
5445 };
5446
5447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) goto fail;
5448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5450 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
5451 SWIG_POINTER_EXCEPTION | 0)) == -1)
5452 SWIG_fail;
5453 if (arg2 == NULL) {
5454 PyErr_SetString(PyExc_TypeError,"null reference");
5455 SWIG_fail;
5456 }
5457 {
5458 PyThreadState* __tstate = wxPyBeginAllowThreads();
5459 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
5460
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 {
5465 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5466 }
5467 return resultobj;
5468 fail:
5469 return NULL;
5470}
5471
5472
5473static PyObject *_wrap_Region_ConvertToBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5474 PyObject *resultobj;
5475 wxRegion *arg1 = (wxRegion *) 0 ;
5476 SwigValueWrapper< wxBitmap > result;
5477 PyObject * obj0 = 0 ;
5478 char *kwnames[] = {
5479 (char *) "self", NULL
5480 };
5481
5482 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Region_ConvertToBitmap",kwnames,&obj0)) goto fail;
5483 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5484 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5485 {
5486 PyThreadState* __tstate = wxPyBeginAllowThreads();
5487 result = (arg1)->ConvertToBitmap();
5488
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 {
5493 wxBitmap * resultptr;
5494 resultptr = new wxBitmap((wxBitmap &) result);
5495 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1);
5496 }
5497 return resultobj;
5498 fail:
5499 return NULL;
5500}
5501
5502
5503static PyObject *_wrap_Region_UnionBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
5504 PyObject *resultobj;
5505 wxRegion *arg1 = (wxRegion *) 0 ;
5506 wxBitmap *arg2 = 0 ;
d07096ad
RD
5507 bool result;
5508 PyObject * obj0 = 0 ;
5509 PyObject * obj1 = 0 ;
5510 char *kwnames[] = {
5511 (char *) "self",(char *) "bmp", NULL
5512 };
5513
5514 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) goto fail;
5515 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5516 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5517 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5518 SWIG_POINTER_EXCEPTION | 0)) == -1)
5519 SWIG_fail;
5520 if (arg2 == NULL) {
5521 PyErr_SetString(PyExc_TypeError,"null reference");
5522 SWIG_fail;
5523 }
5524 {
5525 PyThreadState* __tstate = wxPyBeginAllowThreads();
5526 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
5527
5528 wxPyEndAllowThreads(__tstate);
5529 if (PyErr_Occurred()) SWIG_fail;
5530 }
5531 {
5532 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5533 }
5534 return resultobj;
5535 fail:
5536 return NULL;
5537}
5538
5539
5540static PyObject *_wrap_Region_UnionBitmapColour(PyObject *self, PyObject *args, PyObject *kwargs) {
5541 PyObject *resultobj;
5542 wxRegion *arg1 = (wxRegion *) 0 ;
5543 wxBitmap *arg2 = 0 ;
5544 wxColour *arg3 = 0 ;
d55e5bfc
RD
5545 int arg4 = (int) 0 ;
5546 bool result;
5547 wxColour temp3 ;
5548 PyObject * obj0 = 0 ;
5549 PyObject * obj1 = 0 ;
5550 PyObject * obj2 = 0 ;
5551 PyObject * obj3 = 0 ;
5552 char *kwnames[] = {
5553 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
5554 };
5555
d07096ad 5556 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
5557 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5558 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5559 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
5560 SWIG_POINTER_EXCEPTION | 0)) == -1)
5561 SWIG_fail;
5562 if (arg2 == NULL) {
5563 PyErr_SetString(PyExc_TypeError,"null reference");
5564 SWIG_fail;
5565 }
d07096ad
RD
5566 {
5567 arg3 = &temp3;
5568 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
5569 }
5570 if (obj3) {
5571 arg4 = (int) SWIG_AsInt(obj3);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 }
5574 {
5575 PyThreadState* __tstate = wxPyBeginAllowThreads();
5576 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
5577
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 {
5582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5583 }
5584 return resultobj;
5585 fail:
5586 return NULL;
5587}
5588
5589
5590static PyObject * Region_swigregister(PyObject *self, PyObject *args) {
5591 PyObject *obj;
5592 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5593 SWIG_TypeClientData(SWIGTYPE_p_wxRegion, obj);
5594 Py_INCREF(obj);
5595 return Py_BuildValue((char *)"");
5596}
5597static PyObject *_wrap_new_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5598 PyObject *resultobj;
5599 wxRegion *arg1 = 0 ;
5600 wxRegionIterator *result;
5601 PyObject * obj0 = 0 ;
5602 char *kwnames[] = {
5603 (char *) "region", NULL
5604 };
5605
5606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) goto fail;
5607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegion,
5608 SWIG_POINTER_EXCEPTION | 0)) == -1)
5609 SWIG_fail;
5610 if (arg1 == NULL) {
5611 PyErr_SetString(PyExc_TypeError,"null reference");
5612 SWIG_fail;
5613 }
5614 {
0439c23b 5615 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
5616 PyThreadState* __tstate = wxPyBeginAllowThreads();
5617 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
5618
5619 wxPyEndAllowThreads(__tstate);
110da5b0 5620 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
5621 }
5622 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRegionIterator, 1);
5623 return resultobj;
5624 fail:
5625 return NULL;
5626}
5627
5628
5629static PyObject *_wrap_delete_RegionIterator(PyObject *self, PyObject *args, PyObject *kwargs) {
5630 PyObject *resultobj;
5631 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5632 PyObject * obj0 = 0 ;
5633 char *kwnames[] = {
5634 (char *) "self", NULL
5635 };
5636
5637 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_RegionIterator",kwnames,&obj0)) goto fail;
5638 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5639 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5640 {
5641 PyThreadState* __tstate = wxPyBeginAllowThreads();
5642 delete arg1;
5643
5644 wxPyEndAllowThreads(__tstate);
5645 if (PyErr_Occurred()) SWIG_fail;
5646 }
5647 Py_INCREF(Py_None); resultobj = Py_None;
5648 return resultobj;
5649 fail:
5650 return NULL;
5651}
5652
5653
5654static PyObject *_wrap_RegionIterator_GetX(PyObject *self, PyObject *args, PyObject *kwargs) {
5655 PyObject *resultobj;
5656 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5657 int result;
5658 PyObject * obj0 = 0 ;
5659 char *kwnames[] = {
5660 (char *) "self", NULL
5661 };
5662
5663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetX",kwnames,&obj0)) goto fail;
5664 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5665 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5666 {
5667 PyThreadState* __tstate = wxPyBeginAllowThreads();
5668 result = (int)(arg1)->GetX();
5669
5670 wxPyEndAllowThreads(__tstate);
5671 if (PyErr_Occurred()) SWIG_fail;
5672 }
5673 resultobj = SWIG_FromInt((int)result);
5674 return resultobj;
5675 fail:
5676 return NULL;
5677}
5678
5679
5680static PyObject *_wrap_RegionIterator_GetY(PyObject *self, PyObject *args, PyObject *kwargs) {
5681 PyObject *resultobj;
5682 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5683 int result;
5684 PyObject * obj0 = 0 ;
5685 char *kwnames[] = {
5686 (char *) "self", NULL
5687 };
5688
5689 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetY",kwnames,&obj0)) goto fail;
5690 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5691 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5692 {
5693 PyThreadState* __tstate = wxPyBeginAllowThreads();
5694 result = (int)(arg1)->GetY();
5695
5696 wxPyEndAllowThreads(__tstate);
5697 if (PyErr_Occurred()) SWIG_fail;
5698 }
5699 resultobj = SWIG_FromInt((int)result);
5700 return resultobj;
5701 fail:
5702 return NULL;
5703}
5704
5705
5706static PyObject *_wrap_RegionIterator_GetW(PyObject *self, PyObject *args, PyObject *kwargs) {
5707 PyObject *resultobj;
5708 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5709 int result;
5710 PyObject * obj0 = 0 ;
5711 char *kwnames[] = {
5712 (char *) "self", NULL
5713 };
5714
5715 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetW",kwnames,&obj0)) goto fail;
5716 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5717 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5718 {
5719 PyThreadState* __tstate = wxPyBeginAllowThreads();
5720 result = (int)(arg1)->GetW();
5721
5722 wxPyEndAllowThreads(__tstate);
5723 if (PyErr_Occurred()) SWIG_fail;
5724 }
5725 resultobj = SWIG_FromInt((int)result);
5726 return resultobj;
5727 fail:
5728 return NULL;
5729}
5730
5731
5732static PyObject *_wrap_RegionIterator_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
5733 PyObject *resultobj;
5734 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5735 int result;
5736 PyObject * obj0 = 0 ;
5737 char *kwnames[] = {
5738 (char *) "self", NULL
5739 };
5740
5741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetWidth",kwnames,&obj0)) goto fail;
5742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 result = (int)(arg1)->GetWidth();
5747
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_FromInt((int)result);
5752 return resultobj;
5753 fail:
5754 return NULL;
5755}
5756
5757
5758static PyObject *_wrap_RegionIterator_GetH(PyObject *self, PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj;
5760 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5761 int result;
5762 PyObject * obj0 = 0 ;
5763 char *kwnames[] = {
5764 (char *) "self", NULL
5765 };
5766
5767 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetH",kwnames,&obj0)) goto fail;
5768 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5769 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5770 {
5771 PyThreadState* __tstate = wxPyBeginAllowThreads();
5772 result = (int)(arg1)->GetH();
5773
5774 wxPyEndAllowThreads(__tstate);
5775 if (PyErr_Occurred()) SWIG_fail;
5776 }
5777 resultobj = SWIG_FromInt((int)result);
5778 return resultobj;
5779 fail:
5780 return NULL;
5781}
5782
5783
5784static PyObject *_wrap_RegionIterator_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
5785 PyObject *resultobj;
5786 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5787 int result;
5788 PyObject * obj0 = 0 ;
5789 char *kwnames[] = {
5790 (char *) "self", NULL
5791 };
5792
5793 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetHeight",kwnames,&obj0)) goto fail;
5794 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5795 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (int)(arg1)->GetHeight();
5799
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 resultobj = SWIG_FromInt((int)result);
5804 return resultobj;
5805 fail:
5806 return NULL;
5807}
5808
5809
5810static PyObject *_wrap_RegionIterator_GetRect(PyObject *self, PyObject *args, PyObject *kwargs) {
5811 PyObject *resultobj;
5812 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5813 wxRect result;
5814 PyObject * obj0 = 0 ;
5815 char *kwnames[] = {
5816 (char *) "self", NULL
5817 };
5818
5819 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_GetRect",kwnames,&obj0)) goto fail;
5820 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5822 {
5823 PyThreadState* __tstate = wxPyBeginAllowThreads();
5824 result = (arg1)->GetRect();
5825
5826 wxPyEndAllowThreads(__tstate);
5827 if (PyErr_Occurred()) SWIG_fail;
5828 }
5829 {
5830 wxRect * resultptr;
5831 resultptr = new wxRect((wxRect &) result);
5832 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
5833 }
5834 return resultobj;
5835 fail:
5836 return NULL;
5837}
5838
5839
5840static PyObject *_wrap_RegionIterator_HaveRects(PyObject *self, PyObject *args, PyObject *kwargs) {
5841 PyObject *resultobj;
5842 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5843 bool result;
5844 PyObject * obj0 = 0 ;
5845 char *kwnames[] = {
5846 (char *) "self", NULL
5847 };
5848
5849 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_HaveRects",kwnames,&obj0)) goto fail;
5850 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5851 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = (bool)(arg1)->HaveRects();
5855
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 {
5860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5861 }
5862 return resultobj;
5863 fail:
5864 return NULL;
5865}
5866
5867
5868static PyObject *_wrap_RegionIterator_Reset(PyObject *self, PyObject *args, PyObject *kwargs) {
5869 PyObject *resultobj;
5870 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5871 PyObject * obj0 = 0 ;
5872 char *kwnames[] = {
5873 (char *) "self", NULL
5874 };
5875
5876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Reset",kwnames,&obj0)) goto fail;
5877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5879 {
5880 PyThreadState* __tstate = wxPyBeginAllowThreads();
5881 (arg1)->Reset();
5882
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 Py_INCREF(Py_None); resultobj = Py_None;
5887 return resultobj;
5888 fail:
5889 return NULL;
5890}
5891
5892
5893static PyObject *_wrap_RegionIterator_Next(PyObject *self, PyObject *args, PyObject *kwargs) {
5894 PyObject *resultobj;
5895 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5896 PyObject * obj0 = 0 ;
5897 char *kwnames[] = {
5898 (char *) "self", NULL
5899 };
5900
5901 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator_Next",kwnames,&obj0)) goto fail;
5902 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5903 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5904 {
5905 PyThreadState* __tstate = wxPyBeginAllowThreads();
5906 wxRegionIterator_Next(arg1);
5907
5908 wxPyEndAllowThreads(__tstate);
5909 if (PyErr_Occurred()) SWIG_fail;
5910 }
5911 Py_INCREF(Py_None); resultobj = Py_None;
5912 return resultobj;
5913 fail:
5914 return NULL;
5915}
5916
5917
5918static PyObject *_wrap_RegionIterator___nonzero__(PyObject *self, PyObject *args, PyObject *kwargs) {
5919 PyObject *resultobj;
5920 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
5921 bool result;
5922 PyObject * obj0 = 0 ;
5923 char *kwnames[] = {
5924 (char *) "self", NULL
5925 };
5926
5927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RegionIterator___nonzero__",kwnames,&obj0)) goto fail;
5928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRegionIterator,
5929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5930 {
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (bool)wxRegionIterator___nonzero__(arg1);
5933
5934 wxPyEndAllowThreads(__tstate);
5935 if (PyErr_Occurred()) SWIG_fail;
5936 }
5937 {
5938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5939 }
5940 return resultobj;
5941 fail:
5942 return NULL;
5943}
5944
5945
5946static PyObject * RegionIterator_swigregister(PyObject *self, PyObject *args) {
5947 PyObject *obj;
5948 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
5949 SWIG_TypeClientData(SWIGTYPE_p_wxRegionIterator, obj);
5950 Py_INCREF(obj);
5951 return Py_BuildValue((char *)"");
5952}
5953static PyObject *_wrap_new_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5954 PyObject *resultobj;
5955 wxNativeFontInfo *result;
5956 char *kwnames[] = {
5957 NULL
5958 };
5959
5960 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeFontInfo",kwnames)) goto fail;
5961 {
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 result = (wxNativeFontInfo *)new wxNativeFontInfo();
5964
5965 wxPyEndAllowThreads(__tstate);
5966 if (PyErr_Occurred()) SWIG_fail;
5967 }
5968 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 1);
5969 return resultobj;
5970 fail:
5971 return NULL;
5972}
5973
5974
5975static PyObject *_wrap_delete_NativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
5976 PyObject *resultobj;
5977 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
5978 PyObject * obj0 = 0 ;
5979 char *kwnames[] = {
5980 (char *) "self", NULL
5981 };
5982
5983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeFontInfo",kwnames,&obj0)) goto fail;
5984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
5985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
5986 {
5987 PyThreadState* __tstate = wxPyBeginAllowThreads();
5988 delete arg1;
5989
5990 wxPyEndAllowThreads(__tstate);
5991 if (PyErr_Occurred()) SWIG_fail;
5992 }
5993 Py_INCREF(Py_None); resultobj = Py_None;
5994 return resultobj;
5995 fail:
5996 return NULL;
5997}
5998
5999
6000static PyObject *_wrap_NativeFontInfo_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
6001 PyObject *resultobj;
6002 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6003 PyObject * obj0 = 0 ;
6004 char *kwnames[] = {
6005 (char *) "self", NULL
6006 };
6007
6008 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_Init",kwnames,&obj0)) goto fail;
6009 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6010 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6011 {
6012 PyThreadState* __tstate = wxPyBeginAllowThreads();
6013 (arg1)->Init();
6014
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 Py_INCREF(Py_None); resultobj = Py_None;
6019 return resultobj;
6020 fail:
6021 return NULL;
6022}
6023
6024
6025static PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *self, PyObject *args, PyObject *kwargs) {
6026 PyObject *resultobj;
6027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6028 wxFont *arg2 = 0 ;
6029 PyObject * obj0 = 0 ;
6030 PyObject * obj1 = 0 ;
6031 char *kwnames[] = {
6032 (char *) "self",(char *) "font", NULL
6033 };
6034
6035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) goto fail;
6036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6038 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
6039 SWIG_POINTER_EXCEPTION | 0)) == -1)
6040 SWIG_fail;
6041 if (arg2 == NULL) {
6042 PyErr_SetString(PyExc_TypeError,"null reference");
6043 SWIG_fail;
6044 }
6045 {
6046 PyThreadState* __tstate = wxPyBeginAllowThreads();
6047 (arg1)->InitFromFont((wxFont const &)*arg2);
6048
6049 wxPyEndAllowThreads(__tstate);
6050 if (PyErr_Occurred()) SWIG_fail;
6051 }
6052 Py_INCREF(Py_None); resultobj = Py_None;
6053 return resultobj;
6054 fail:
6055 return NULL;
6056}
6057
6058
6059static PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6060 PyObject *resultobj;
6061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6062 int result;
6063 PyObject * obj0 = 0 ;
6064 char *kwnames[] = {
6065 (char *) "self", NULL
6066 };
6067
6068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetPointSize",kwnames,&obj0)) goto fail;
6069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6071 {
6072 PyThreadState* __tstate = wxPyBeginAllowThreads();
6073 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
6074
6075 wxPyEndAllowThreads(__tstate);
6076 if (PyErr_Occurred()) SWIG_fail;
6077 }
6078 resultobj = SWIG_FromInt((int)result);
6079 return resultobj;
6080 fail:
6081 return NULL;
6082}
6083
6084
6085static PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6086 PyObject *resultobj;
6087 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6088 int result;
6089 PyObject * obj0 = 0 ;
6090 char *kwnames[] = {
6091 (char *) "self", NULL
6092 };
6093
6094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetStyle",kwnames,&obj0)) goto fail;
6095 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6096 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6097 {
6098 PyThreadState* __tstate = wxPyBeginAllowThreads();
6099 result = (int)((wxNativeFontInfo const *)arg1)->GetStyle();
6100
6101 wxPyEndAllowThreads(__tstate);
6102 if (PyErr_Occurred()) SWIG_fail;
6103 }
6104 resultobj = SWIG_FromInt((int)result);
6105 return resultobj;
6106 fail:
6107 return NULL;
6108}
6109
6110
6111static PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6112 PyObject *resultobj;
6113 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6114 int result;
6115 PyObject * obj0 = 0 ;
6116 char *kwnames[] = {
6117 (char *) "self", NULL
6118 };
6119
6120 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetWeight",kwnames,&obj0)) goto fail;
6121 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6122 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6123 {
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (int)((wxNativeFontInfo const *)arg1)->GetWeight();
6126
6127 wxPyEndAllowThreads(__tstate);
6128 if (PyErr_Occurred()) SWIG_fail;
6129 }
6130 resultobj = SWIG_FromInt((int)result);
6131 return resultobj;
6132 fail:
6133 return NULL;
6134}
6135
6136
6137static PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6138 PyObject *resultobj;
6139 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6140 bool result;
6141 PyObject * obj0 = 0 ;
6142 char *kwnames[] = {
6143 (char *) "self", NULL
6144 };
6145
6146 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetUnderlined",kwnames,&obj0)) goto fail;
6147 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6148 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6149 {
6150 PyThreadState* __tstate = wxPyBeginAllowThreads();
6151 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
6152
6153 wxPyEndAllowThreads(__tstate);
6154 if (PyErr_Occurred()) SWIG_fail;
6155 }
6156 {
6157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6158 }
6159 return resultobj;
6160 fail:
6161 return NULL;
6162}
6163
6164
6165static PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6166 PyObject *resultobj;
6167 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6168 wxString result;
6169 PyObject * obj0 = 0 ;
6170 char *kwnames[] = {
6171 (char *) "self", NULL
6172 };
6173
6174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFaceName",kwnames,&obj0)) goto fail;
6175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6177 {
6178 PyThreadState* __tstate = wxPyBeginAllowThreads();
6179 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
6180
6181 wxPyEndAllowThreads(__tstate);
6182 if (PyErr_Occurred()) SWIG_fail;
6183 }
6184 {
6185#if wxUSE_UNICODE
6186 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6187#else
6188 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6189#endif
6190 }
6191 return resultobj;
6192 fail:
6193 return NULL;
6194}
6195
6196
6197static PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj;
6199 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6200 int result;
6201 PyObject * obj0 = 0 ;
6202 char *kwnames[] = {
6203 (char *) "self", NULL
6204 };
6205
6206 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetFamily",kwnames,&obj0)) goto fail;
6207 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6208 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6209 {
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (int)((wxNativeFontInfo const *)arg1)->GetFamily();
6212
6213 wxPyEndAllowThreads(__tstate);
6214 if (PyErr_Occurred()) SWIG_fail;
6215 }
6216 resultobj = SWIG_FromInt((int)result);
6217 return resultobj;
6218 fail:
6219 return NULL;
6220}
6221
6222
6223static PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6224 PyObject *resultobj;
6225 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6226 int result;
6227 PyObject * obj0 = 0 ;
6228 char *kwnames[] = {
6229 (char *) "self", NULL
6230 };
6231
6232 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_GetEncoding",kwnames,&obj0)) goto fail;
6233 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6234 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6235 {
6236 PyThreadState* __tstate = wxPyBeginAllowThreads();
6237 result = (int)((wxNativeFontInfo const *)arg1)->GetEncoding();
6238
6239 wxPyEndAllowThreads(__tstate);
6240 if (PyErr_Occurred()) SWIG_fail;
6241 }
6242 resultobj = SWIG_FromInt((int)result);
6243 return resultobj;
6244 fail:
6245 return NULL;
6246}
6247
6248
6249static PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
6250 PyObject *resultobj;
6251 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6252 int arg2 ;
6253 PyObject * obj0 = 0 ;
6254 PyObject * obj1 = 0 ;
6255 char *kwnames[] = {
6256 (char *) "self",(char *) "pointsize", NULL
6257 };
6258
6259 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
6260 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6261 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6262 arg2 = (int) SWIG_AsInt(obj1);
6263 if (PyErr_Occurred()) SWIG_fail;
6264 {
6265 PyThreadState* __tstate = wxPyBeginAllowThreads();
6266 (arg1)->SetPointSize(arg2);
6267
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 Py_INCREF(Py_None); resultobj = Py_None;
6272 return resultobj;
6273 fail:
6274 return NULL;
6275}
6276
6277
6278static PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
6279 PyObject *resultobj;
6280 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6281 int arg2 ;
6282 PyObject * obj0 = 0 ;
6283 PyObject * obj1 = 0 ;
6284 char *kwnames[] = {
6285 (char *) "self",(char *) "style", NULL
6286 };
6287
6288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) goto fail;
6289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6291 arg2 = (wxFontStyle) SWIG_AsInt(obj1);
6292 if (PyErr_Occurred()) SWIG_fail;
6293 {
6294 PyThreadState* __tstate = wxPyBeginAllowThreads();
6295 (arg1)->SetStyle((wxFontStyle )arg2);
6296
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 Py_INCREF(Py_None); resultobj = Py_None;
6301 return resultobj;
6302 fail:
6303 return NULL;
6304}
6305
6306
6307static PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj;
6309 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6310 int arg2 ;
6311 PyObject * obj0 = 0 ;
6312 PyObject * obj1 = 0 ;
6313 char *kwnames[] = {
6314 (char *) "self",(char *) "weight", NULL
6315 };
6316
6317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) goto fail;
6318 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6319 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6320 arg2 = (wxFontWeight) SWIG_AsInt(obj1);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 {
6323 PyThreadState* __tstate = wxPyBeginAllowThreads();
6324 (arg1)->SetWeight((wxFontWeight )arg2);
6325
6326 wxPyEndAllowThreads(__tstate);
6327 if (PyErr_Occurred()) SWIG_fail;
6328 }
6329 Py_INCREF(Py_None); resultobj = Py_None;
6330 return resultobj;
6331 fail:
6332 return NULL;
6333}
6334
6335
6336static PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
6337 PyObject *resultobj;
6338 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6339 bool arg2 ;
6340 PyObject * obj0 = 0 ;
6341 PyObject * obj1 = 0 ;
6342 char *kwnames[] = {
6343 (char *) "self",(char *) "underlined", NULL
6344 };
6345
6346 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
6347 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6348 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6349 arg2 = (bool) SWIG_AsBool(obj1);
6350 if (PyErr_Occurred()) SWIG_fail;
6351 {
6352 PyThreadState* __tstate = wxPyBeginAllowThreads();
6353 (arg1)->SetUnderlined(arg2);
6354
6355 wxPyEndAllowThreads(__tstate);
6356 if (PyErr_Occurred()) SWIG_fail;
6357 }
6358 Py_INCREF(Py_None); resultobj = Py_None;
6359 return resultobj;
6360 fail:
6361 return NULL;
6362}
6363
6364
6365static PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
6366 PyObject *resultobj;
6367 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6368 wxString arg2 ;
6369 PyObject * obj0 = 0 ;
6370 PyObject * obj1 = 0 ;
6371 char *kwnames[] = {
6372 (char *) "self",(char *) "facename", NULL
6373 };
6374
6375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
6376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6378 {
6379 wxString* sptr = wxString_in_helper(obj1);
6380 if (sptr == NULL) SWIG_fail;
6381 arg2 = *sptr;
6382 delete sptr;
6383 }
6384 {
6385 PyThreadState* __tstate = wxPyBeginAllowThreads();
6386 (arg1)->SetFaceName(arg2);
6387
6388 wxPyEndAllowThreads(__tstate);
6389 if (PyErr_Occurred()) SWIG_fail;
6390 }
6391 Py_INCREF(Py_None); resultobj = Py_None;
6392 return resultobj;
6393 fail:
6394 return NULL;
6395}
6396
6397
6398static PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
6399 PyObject *resultobj;
6400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6401 int arg2 ;
6402 PyObject * obj0 = 0 ;
6403 PyObject * obj1 = 0 ;
6404 char *kwnames[] = {
6405 (char *) "self",(char *) "family", NULL
6406 };
6407
6408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) goto fail;
6409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6411 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 {
6414 PyThreadState* __tstate = wxPyBeginAllowThreads();
6415 (arg1)->SetFamily((wxFontFamily )arg2);
6416
6417 wxPyEndAllowThreads(__tstate);
6418 if (PyErr_Occurred()) SWIG_fail;
6419 }
6420 Py_INCREF(Py_None); resultobj = Py_None;
6421 return resultobj;
6422 fail:
6423 return NULL;
6424}
6425
6426
6427static PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6428 PyObject *resultobj;
6429 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6430 int arg2 ;
6431 PyObject * obj0 = 0 ;
6432 PyObject * obj1 = 0 ;
6433 char *kwnames[] = {
6434 (char *) "self",(char *) "encoding", NULL
6435 };
6436
6437 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
6438 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6439 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6440 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 {
6443 PyThreadState* __tstate = wxPyBeginAllowThreads();
6444 (arg1)->SetEncoding((wxFontEncoding )arg2);
6445
6446 wxPyEndAllowThreads(__tstate);
6447 if (PyErr_Occurred()) SWIG_fail;
6448 }
6449 Py_INCREF(Py_None); resultobj = Py_None;
6450 return resultobj;
6451 fail:
6452 return NULL;
6453}
6454
6455
6456static PyObject *_wrap_NativeFontInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6457 PyObject *resultobj;
6458 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6459 wxString *arg2 = 0 ;
6460 bool result;
6461 bool temp2 = False ;
6462 PyObject * obj0 = 0 ;
6463 PyObject * obj1 = 0 ;
6464 char *kwnames[] = {
6465 (char *) "self",(char *) "s", NULL
6466 };
6467
6468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6471 {
6472 arg2 = wxString_in_helper(obj1);
6473 if (arg2 == NULL) SWIG_fail;
6474 temp2 = True;
6475 }
6476 {
6477 PyThreadState* __tstate = wxPyBeginAllowThreads();
6478 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6479
6480 wxPyEndAllowThreads(__tstate);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 {
6484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6485 }
6486 {
6487 if (temp2)
6488 delete arg2;
6489 }
6490 return resultobj;
6491 fail:
6492 {
6493 if (temp2)
6494 delete arg2;
6495 }
6496 return NULL;
6497}
6498
6499
6500static PyObject *_wrap_NativeFontInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6501 PyObject *resultobj;
6502 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6503 wxString result;
6504 PyObject * obj0 = 0 ;
6505 char *kwnames[] = {
6506 (char *) "self", NULL
6507 };
6508
6509 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToString",kwnames,&obj0)) goto fail;
6510 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6511 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6512 {
6513 PyThreadState* __tstate = wxPyBeginAllowThreads();
6514 result = ((wxNativeFontInfo const *)arg1)->ToString();
6515
6516 wxPyEndAllowThreads(__tstate);
6517 if (PyErr_Occurred()) SWIG_fail;
6518 }
6519 {
6520#if wxUSE_UNICODE
6521 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6522#else
6523 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6524#endif
6525 }
6526 return resultobj;
6527 fail:
6528 return NULL;
6529}
6530
6531
6532static PyObject *_wrap_NativeFontInfo___str__(PyObject *self, PyObject *args, PyObject *kwargs) {
6533 PyObject *resultobj;
6534 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6535 wxString result;
6536 PyObject * obj0 = 0 ;
6537 char *kwnames[] = {
6538 (char *) "self", NULL
6539 };
6540
6541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo___str__",kwnames,&obj0)) goto fail;
6542 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6543 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6544 {
6545 PyThreadState* __tstate = wxPyBeginAllowThreads();
6546 result = wxNativeFontInfo___str__(arg1);
6547
6548 wxPyEndAllowThreads(__tstate);
6549 if (PyErr_Occurred()) SWIG_fail;
6550 }
6551 {
6552#if wxUSE_UNICODE
6553 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6554#else
6555 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6556#endif
6557 }
6558 return resultobj;
6559 fail:
6560 return NULL;
6561}
6562
6563
6564static PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6565 PyObject *resultobj;
6566 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6567 wxString *arg2 = 0 ;
6568 bool result;
6569 bool temp2 = False ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char *kwnames[] = {
6573 (char *) "self",(char *) "s", NULL
6574 };
6575
6576 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) goto fail;
6577 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6578 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6579 {
6580 arg2 = wxString_in_helper(obj1);
6581 if (arg2 == NULL) SWIG_fail;
6582 temp2 = True;
6583 }
6584 {
6585 PyThreadState* __tstate = wxPyBeginAllowThreads();
6586 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
6587
6588 wxPyEndAllowThreads(__tstate);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 {
6592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6593 }
6594 {
6595 if (temp2)
6596 delete arg2;
6597 }
6598 return resultobj;
6599 fail:
6600 {
6601 if (temp2)
6602 delete arg2;
6603 }
6604 return NULL;
6605}
6606
6607
6608static PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *self, PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj;
6610 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
6611 wxString result;
6612 PyObject * obj0 = 0 ;
6613 char *kwnames[] = {
6614 (char *) "self", NULL
6615 };
6616
6617 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeFontInfo_ToUserString",kwnames,&obj0)) goto fail;
6618 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
6619 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6620 {
6621 PyThreadState* __tstate = wxPyBeginAllowThreads();
6622 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
6623
6624 wxPyEndAllowThreads(__tstate);
6625 if (PyErr_Occurred()) SWIG_fail;
6626 }
6627 {
6628#if wxUSE_UNICODE
6629 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6630#else
6631 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6632#endif
6633 }
6634 return resultobj;
6635 fail:
6636 return NULL;
6637}
6638
6639
6640static PyObject * NativeFontInfo_swigregister(PyObject *self, PyObject *args) {
6641 PyObject *obj;
6642 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6643 SWIG_TypeClientData(SWIGTYPE_p_wxNativeFontInfo, obj);
6644 Py_INCREF(obj);
6645 return Py_BuildValue((char *)"");
6646}
6647static PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6648 PyObject *resultobj;
6649 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6650 wxString *arg2 = (wxString *) 0 ;
6651 bool temp2 = False ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char *kwnames[] = {
6655 (char *) "self",(char *) "facename", NULL
6656 };
6657
6658 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_facename_set",kwnames,&obj0,&obj1)) goto fail;
6659 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6660 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6661 {
6662 arg2 = wxString_in_helper(obj1);
6663 if (arg2 == NULL) SWIG_fail;
6664 temp2 = True;
6665 }
6666 if (arg1) (arg1)->facename = *arg2;
6667
6668 Py_INCREF(Py_None); resultobj = Py_None;
6669 {
6670 if (temp2)
6671 delete arg2;
6672 }
6673 return resultobj;
6674 fail:
6675 {
6676 if (temp2)
6677 delete arg2;
6678 }
6679 return NULL;
6680}
6681
6682
6683static PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6684 PyObject *resultobj;
6685 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6686 wxString *result;
6687 PyObject * obj0 = 0 ;
6688 char *kwnames[] = {
6689 (char *) "self", NULL
6690 };
6691
6692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_facename_get",kwnames,&obj0)) goto fail;
6693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6695 result = (wxString *)& ((arg1)->facename);
6696
6697 {
6698#if wxUSE_UNICODE
6699 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
6700#else
6701 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
6702#endif
6703 }
6704 return resultobj;
6705 fail:
6706 return NULL;
6707}
6708
6709
6710static PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *self, PyObject *args, PyObject *kwargs) {
6711 PyObject *resultobj;
6712 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6713 int arg2 ;
6714 PyObject * obj0 = 0 ;
6715 PyObject * obj1 = 0 ;
6716 char *kwnames[] = {
6717 (char *) "self",(char *) "encoding", NULL
6718 };
6719
6720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_encoding_set",kwnames,&obj0,&obj1)) goto fail;
6721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6723 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 if (arg1) (arg1)->encoding = (wxFontEncoding )arg2;
6726
6727 Py_INCREF(Py_None); resultobj = Py_None;
6728 return resultobj;
6729 fail:
6730 return NULL;
6731}
6732
6733
6734static PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *self, PyObject *args, PyObject *kwargs) {
6735 PyObject *resultobj;
6736 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6737 int result;
6738 PyObject * obj0 = 0 ;
6739 char *kwnames[] = {
6740 (char *) "self", NULL
6741 };
6742
6743 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_encoding_get",kwnames,&obj0)) goto fail;
6744 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6745 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6746 result = (int) ((arg1)->encoding);
6747
6748 resultobj = SWIG_FromInt((int)result);
6749 return resultobj;
6750 fail:
6751 return NULL;
6752}
6753
6754
6755static PyObject *_wrap_new_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6756 PyObject *resultobj;
6757 wxNativeEncodingInfo *result;
6758 char *kwnames[] = {
6759 NULL
6760 };
6761
6762 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_NativeEncodingInfo",kwnames)) goto fail;
6763 {
6764 PyThreadState* __tstate = wxPyBeginAllowThreads();
6765 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
6766
6767 wxPyEndAllowThreads(__tstate);
6768 if (PyErr_Occurred()) SWIG_fail;
6769 }
6770 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 1);
6771 return resultobj;
6772 fail:
6773 return NULL;
6774}
6775
6776
6777static PyObject *_wrap_delete_NativeEncodingInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
6778 PyObject *resultobj;
6779 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6780 PyObject * obj0 = 0 ;
6781 char *kwnames[] = {
6782 (char *) "self", NULL
6783 };
6784
6785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_NativeEncodingInfo",kwnames,&obj0)) goto fail;
6786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6788 {
6789 PyThreadState* __tstate = wxPyBeginAllowThreads();
6790 delete arg1;
6791
6792 wxPyEndAllowThreads(__tstate);
6793 if (PyErr_Occurred()) SWIG_fail;
6794 }
6795 Py_INCREF(Py_None); resultobj = Py_None;
6796 return resultobj;
6797 fail:
6798 return NULL;
6799}
6800
6801
6802static PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *self, PyObject *args, PyObject *kwargs) {
6803 PyObject *resultobj;
6804 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6805 wxString *arg2 = 0 ;
6806 bool result;
6807 bool temp2 = False ;
6808 PyObject * obj0 = 0 ;
6809 PyObject * obj1 = 0 ;
6810 char *kwnames[] = {
6811 (char *) "self",(char *) "s", NULL
6812 };
6813
6814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) goto fail;
6815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6817 {
6818 arg2 = wxString_in_helper(obj1);
6819 if (arg2 == NULL) SWIG_fail;
6820 temp2 = True;
6821 }
6822 {
6823 PyThreadState* __tstate = wxPyBeginAllowThreads();
6824 result = (bool)(arg1)->FromString((wxString const &)*arg2);
6825
6826 wxPyEndAllowThreads(__tstate);
6827 if (PyErr_Occurred()) SWIG_fail;
6828 }
6829 {
6830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6831 }
6832 {
6833 if (temp2)
6834 delete arg2;
6835 }
6836 return resultobj;
6837 fail:
6838 {
6839 if (temp2)
6840 delete arg2;
6841 }
6842 return NULL;
6843}
6844
6845
6846static PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *self, PyObject *args, PyObject *kwargs) {
6847 PyObject *resultobj;
6848 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
6849 wxString result;
6850 PyObject * obj0 = 0 ;
6851 char *kwnames[] = {
6852 (char *) "self", NULL
6853 };
6854
6855 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NativeEncodingInfo_ToString",kwnames,&obj0)) goto fail;
6856 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6857 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6858 {
6859 PyThreadState* __tstate = wxPyBeginAllowThreads();
6860 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
6861
6862 wxPyEndAllowThreads(__tstate);
6863 if (PyErr_Occurred()) SWIG_fail;
6864 }
6865 {
6866#if wxUSE_UNICODE
6867 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
6868#else
6869 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
6870#endif
6871 }
6872 return resultobj;
6873 fail:
6874 return NULL;
6875}
6876
6877
6878static PyObject * NativeEncodingInfo_swigregister(PyObject *self, PyObject *args) {
6879 PyObject *obj;
6880 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
6881 SWIG_TypeClientData(SWIGTYPE_p_wxNativeEncodingInfo, obj);
6882 Py_INCREF(obj);
6883 return Py_BuildValue((char *)"");
6884}
6885static PyObject *_wrap_GetNativeFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6886 PyObject *resultobj;
6887 int arg1 ;
6888 wxNativeEncodingInfo *result;
6889 PyObject * obj0 = 0 ;
6890 char *kwnames[] = {
6891 (char *) "encoding", NULL
6892 };
6893
6894 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) goto fail;
6895 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 {
6898 PyThreadState* __tstate = wxPyBeginAllowThreads();
6899 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding((wxFontEncoding )arg1);
6900
6901 wxPyEndAllowThreads(__tstate);
6902 if (PyErr_Occurred()) SWIG_fail;
6903 }
6904 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeEncodingInfo, 0);
6905 return resultobj;
6906 fail:
6907 return NULL;
6908}
6909
6910
6911static PyObject *_wrap_TestFontEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
6912 PyObject *resultobj;
6913 wxNativeEncodingInfo *arg1 = 0 ;
6914 bool result;
6915 PyObject * obj0 = 0 ;
6916 char *kwnames[] = {
6917 (char *) "info", NULL
6918 };
6919
6920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) goto fail;
6921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeEncodingInfo,
6922 SWIG_POINTER_EXCEPTION | 0)) == -1)
6923 SWIG_fail;
6924 if (arg1 == NULL) {
6925 PyErr_SetString(PyExc_TypeError,"null reference");
6926 SWIG_fail;
6927 }
6928 {
6929 PyThreadState* __tstate = wxPyBeginAllowThreads();
6930 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
6931
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 {
6936 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6937 }
6938 return resultobj;
6939 fail:
6940 return NULL;
6941}
6942
6943
6944static PyObject *_wrap_new_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6945 PyObject *resultobj;
6946 wxFontMapper *result;
6947 char *kwnames[] = {
6948 NULL
6949 };
6950
6951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontMapper",kwnames)) goto fail;
6952 {
6953 PyThreadState* __tstate = wxPyBeginAllowThreads();
6954 result = (wxFontMapper *)new wxFontMapper();
6955
6956 wxPyEndAllowThreads(__tstate);
6957 if (PyErr_Occurred()) SWIG_fail;
6958 }
6959 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 1);
6960 return resultobj;
6961 fail:
6962 return NULL;
6963}
6964
6965
6966static PyObject *_wrap_delete_FontMapper(PyObject *self, PyObject *args, PyObject *kwargs) {
6967 PyObject *resultobj;
6968 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
6969 PyObject * obj0 = 0 ;
6970 char *kwnames[] = {
6971 (char *) "self", NULL
6972 };
6973
6974 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontMapper",kwnames,&obj0)) goto fail;
6975 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
6976 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
6977 {
6978 PyThreadState* __tstate = wxPyBeginAllowThreads();
6979 delete arg1;
6980
6981 wxPyEndAllowThreads(__tstate);
6982 if (PyErr_Occurred()) SWIG_fail;
6983 }
6984 Py_INCREF(Py_None); resultobj = Py_None;
6985 return resultobj;
6986 fail:
6987 return NULL;
6988}
6989
6990
6991static PyObject *_wrap_FontMapper_Get(PyObject *self, PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj;
6993 wxFontMapper *result;
6994 char *kwnames[] = {
6995 NULL
6996 };
6997
6998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_Get",kwnames)) goto fail;
6999 {
7000 PyThreadState* __tstate = wxPyBeginAllowThreads();
7001 result = (wxFontMapper *)wxFontMapper::Get();
7002
7003 wxPyEndAllowThreads(__tstate);
7004 if (PyErr_Occurred()) SWIG_fail;
7005 }
7006 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7007 return resultobj;
7008 fail:
7009 return NULL;
7010}
7011
7012
7013static PyObject *_wrap_FontMapper_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
7014 PyObject *resultobj;
7015 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7016 wxFontMapper *result;
7017 PyObject * obj0 = 0 ;
7018 char *kwnames[] = {
7019 (char *) "mapper", NULL
7020 };
7021
7022 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) goto fail;
7023 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7024 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7025 {
7026 PyThreadState* __tstate = wxPyBeginAllowThreads();
7027 result = (wxFontMapper *)wxFontMapper::Set(arg1);
7028
7029 wxPyEndAllowThreads(__tstate);
7030 if (PyErr_Occurred()) SWIG_fail;
7031 }
7032 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFontMapper, 0);
7033 return resultobj;
7034 fail:
7035 return NULL;
7036}
7037
7038
7039static PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7040 PyObject *resultobj;
7041 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7042 wxString *arg2 = 0 ;
7043 bool arg3 = (bool) True ;
7044 int result;
7045 bool temp2 = False ;
7046 PyObject * obj0 = 0 ;
7047 PyObject * obj1 = 0 ;
7048 PyObject * obj2 = 0 ;
7049 char *kwnames[] = {
7050 (char *) "self",(char *) "charset",(char *) "interactive", NULL
7051 };
7052
7053 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) goto fail;
7054 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7055 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7056 {
7057 arg2 = wxString_in_helper(obj1);
7058 if (arg2 == NULL) SWIG_fail;
7059 temp2 = True;
7060 }
7061 if (obj2) {
7062 arg3 = (bool) SWIG_AsBool(obj2);
7063 if (PyErr_Occurred()) SWIG_fail;
7064 }
7065 {
7066 PyThreadState* __tstate = wxPyBeginAllowThreads();
7067 result = (int)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
7068
7069 wxPyEndAllowThreads(__tstate);
7070 if (PyErr_Occurred()) SWIG_fail;
7071 }
7072 resultobj = SWIG_FromInt((int)result);
7073 {
7074 if (temp2)
7075 delete arg2;
7076 }
7077 return resultobj;
7078 fail:
7079 {
7080 if (temp2)
7081 delete arg2;
7082 }
7083 return NULL;
7084}
7085
7086
7087static PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *self, PyObject *args, PyObject *kwargs) {
7088 PyObject *resultobj;
7089 size_t result;
7090 char *kwnames[] = {
7091 NULL
7092 };
7093
7094 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetSupportedEncodingsCount",kwnames)) goto fail;
7095 {
7096 PyThreadState* __tstate = wxPyBeginAllowThreads();
7097 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
7098
7099 wxPyEndAllowThreads(__tstate);
7100 if (PyErr_Occurred()) SWIG_fail;
7101 }
7102 resultobj = SWIG_FromUnsignedLong((unsigned long)result);
7103 return resultobj;
7104 fail:
7105 return NULL;
7106}
7107
7108
7109static PyObject *_wrap_FontMapper_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7110 PyObject *resultobj;
7111 size_t arg1 ;
7112 int result;
7113 PyObject * obj0 = 0 ;
7114 char *kwnames[] = {
7115 (char *) "n", NULL
7116 };
7117
7118 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) goto fail;
7119 arg1 = (size_t) SWIG_AsUnsignedLong(obj0);
7120 if (PyErr_Occurred()) SWIG_fail;
7121 {
7122 PyThreadState* __tstate = wxPyBeginAllowThreads();
7123 result = (int)wxFontMapper::GetEncoding(arg1);
7124
7125 wxPyEndAllowThreads(__tstate);
7126 if (PyErr_Occurred()) SWIG_fail;
7127 }
7128 resultobj = SWIG_FromInt((int)result);
7129 return resultobj;
7130 fail:
7131 return NULL;
7132}
7133
7134
7135static PyObject *_wrap_FontMapper_GetEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
7136 PyObject *resultobj;
7137 int arg1 ;
7138 wxString result;
7139 PyObject * obj0 = 0 ;
7140 char *kwnames[] = {
7141 (char *) "encoding", NULL
7142 };
7143
7144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) goto fail;
7145 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 {
7148 PyThreadState* __tstate = wxPyBeginAllowThreads();
7149 result = wxFontMapper::GetEncodingName((wxFontEncoding )arg1);
7150
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 {
7155#if wxUSE_UNICODE
7156 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7157#else
7158 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7159#endif
7160 }
7161 return resultobj;
7162 fail:
7163 return NULL;
7164}
7165
7166
7167static PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *self, PyObject *args, PyObject *kwargs) {
7168 PyObject *resultobj;
7169 int arg1 ;
7170 wxString result;
7171 PyObject * obj0 = 0 ;
7172 char *kwnames[] = {
7173 (char *) "encoding", NULL
7174 };
7175
7176 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) goto fail;
7177 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
7178 if (PyErr_Occurred()) SWIG_fail;
7179 {
7180 PyThreadState* __tstate = wxPyBeginAllowThreads();
7181 result = wxFontMapper::GetEncodingDescription((wxFontEncoding )arg1);
7182
7183 wxPyEndAllowThreads(__tstate);
7184 if (PyErr_Occurred()) SWIG_fail;
7185 }
7186 {
7187#if wxUSE_UNICODE
7188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7189#else
7190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7191#endif
7192 }
7193 return resultobj;
7194 fail:
7195 return NULL;
7196}
7197
7198
7199static PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *self, PyObject *args, PyObject *kwargs) {
7200 PyObject *resultobj;
7201 wxString *arg1 = 0 ;
7202 int result;
7203 bool temp1 = False ;
7204 PyObject * obj0 = 0 ;
7205 char *kwnames[] = {
7206 (char *) "name", NULL
7207 };
7208
7209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) goto fail;
7210 {
7211 arg1 = wxString_in_helper(obj0);
7212 if (arg1 == NULL) SWIG_fail;
7213 temp1 = True;
7214 }
7215 {
7216 PyThreadState* __tstate = wxPyBeginAllowThreads();
7217 result = (int)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
7218
7219 wxPyEndAllowThreads(__tstate);
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 resultobj = SWIG_FromInt((int)result);
7223 {
7224 if (temp1)
7225 delete arg1;
7226 }
7227 return resultobj;
7228 fail:
7229 {
7230 if (temp1)
7231 delete arg1;
7232 }
7233 return NULL;
7234}
7235
7236
7237static PyObject *_wrap_FontMapper_SetConfig(PyObject *self, PyObject *args, PyObject *kwargs) {
7238 PyObject *resultobj;
7239 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7240 wxConfigBase *arg2 = (wxConfigBase *) 0 ;
7241 PyObject * obj0 = 0 ;
7242 PyObject * obj1 = 0 ;
7243 char *kwnames[] = {
7244 (char *) "self",(char *) "config", NULL
7245 };
7246
7247 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfig",kwnames,&obj0,&obj1)) goto fail;
7248 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7250 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxConfigBase,
7251 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7252 {
7253 PyThreadState* __tstate = wxPyBeginAllowThreads();
7254 (arg1)->SetConfig(arg2);
7255
7256 wxPyEndAllowThreads(__tstate);
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 Py_INCREF(Py_None); resultobj = Py_None;
7260 return resultobj;
7261 fail:
7262 return NULL;
7263}
7264
7265
7266static PyObject *_wrap_FontMapper_SetConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7267 PyObject *resultobj;
7268 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7269 wxString *arg2 = 0 ;
7270 bool temp2 = False ;
7271 PyObject * obj0 = 0 ;
7272 PyObject * obj1 = 0 ;
7273 char *kwnames[] = {
7274 (char *) "self",(char *) "prefix", NULL
7275 };
7276
7277 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) goto fail;
7278 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7279 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7280 {
7281 arg2 = wxString_in_helper(obj1);
7282 if (arg2 == NULL) SWIG_fail;
7283 temp2 = True;
7284 }
7285 {
7286 PyThreadState* __tstate = wxPyBeginAllowThreads();
7287 (arg1)->SetConfigPath((wxString const &)*arg2);
7288
7289 wxPyEndAllowThreads(__tstate);
7290 if (PyErr_Occurred()) SWIG_fail;
7291 }
7292 Py_INCREF(Py_None); resultobj = Py_None;
7293 {
7294 if (temp2)
7295 delete arg2;
7296 }
7297 return resultobj;
7298 fail:
7299 {
7300 if (temp2)
7301 delete arg2;
7302 }
7303 return NULL;
7304}
7305
7306
7307static PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *self, PyObject *args, PyObject *kwargs) {
7308 PyObject *resultobj;
7309 wxString result;
7310 char *kwnames[] = {
7311 NULL
7312 };
7313
7314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":FontMapper_GetDefaultConfigPath",kwnames)) goto fail;
7315 {
7316 PyThreadState* __tstate = wxPyBeginAllowThreads();
7317 result = wxFontMapper::GetDefaultConfigPath();
7318
7319 wxPyEndAllowThreads(__tstate);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 {
7323#if wxUSE_UNICODE
7324 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7325#else
7326 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7327#endif
7328 }
7329 return resultobj;
7330 fail:
7331 return NULL;
7332}
7333
7334
7335static PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
7336 PyObject *resultobj;
7337 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7338 int arg2 ;
7339 wxString const &arg3_defvalue = wxPyEmptyString ;
7340 wxString *arg3 = (wxString *) &arg3_defvalue ;
7341 bool arg4 = (bool) True ;
7342 PyObject *result;
7343 bool temp3 = False ;
7344 PyObject * obj0 = 0 ;
7345 PyObject * obj1 = 0 ;
7346 PyObject * obj2 = 0 ;
7347 PyObject * obj3 = 0 ;
7348 char *kwnames[] = {
7349 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
7350 };
7351
7352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
7353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7355 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 if (obj2) {
7358 {
7359 arg3 = wxString_in_helper(obj2);
7360 if (arg3 == NULL) SWIG_fail;
7361 temp3 = True;
7362 }
7363 }
7364 if (obj3) {
7365 arg4 = (bool) SWIG_AsBool(obj3);
7366 if (PyErr_Occurred()) SWIG_fail;
7367 }
7368 {
7369 PyThreadState* __tstate = wxPyBeginAllowThreads();
7370 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,(wxFontEncoding )arg2,(wxString const &)*arg3,arg4);
7371
7372 wxPyEndAllowThreads(__tstate);
7373 if (PyErr_Occurred()) SWIG_fail;
7374 }
7375 resultobj = result;
7376 {
7377 if (temp3)
7378 delete arg3;
7379 }
7380 return resultobj;
7381 fail:
7382 {
7383 if (temp3)
7384 delete arg3;
7385 }
7386 return NULL;
7387}
7388
7389
7390static PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *self, PyObject *args, PyObject *kwargs) {
7391 PyObject *resultobj;
7392 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7393 int arg2 ;
7394 wxString const &arg3_defvalue = wxPyEmptyString ;
7395 wxString *arg3 = (wxString *) &arg3_defvalue ;
7396 bool result;
7397 bool temp3 = False ;
7398 PyObject * obj0 = 0 ;
7399 PyObject * obj1 = 0 ;
7400 PyObject * obj2 = 0 ;
7401 char *kwnames[] = {
7402 (char *) "self",(char *) "encoding",(char *) "facename", NULL
7403 };
7404
7405 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) goto fail;
7406 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7407 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7408 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
7409 if (PyErr_Occurred()) SWIG_fail;
7410 if (obj2) {
7411 {
7412 arg3 = wxString_in_helper(obj2);
7413 if (arg3 == NULL) SWIG_fail;
7414 temp3 = True;
7415 }
7416 }
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 result = (bool)(arg1)->IsEncodingAvailable((wxFontEncoding )arg2,(wxString const &)*arg3);
7420
7421 wxPyEndAllowThreads(__tstate);
7422 if (PyErr_Occurred()) SWIG_fail;
7423 }
7424 {
7425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7426 }
7427 {
7428 if (temp3)
7429 delete arg3;
7430 }
7431 return resultobj;
7432 fail:
7433 {
7434 if (temp3)
7435 delete arg3;
7436 }
7437 return NULL;
7438}
7439
7440
7441static PyObject *_wrap_FontMapper_SetDialogParent(PyObject *self, PyObject *args, PyObject *kwargs) {
7442 PyObject *resultobj;
7443 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7444 wxWindow *arg2 = (wxWindow *) 0 ;
7445 PyObject * obj0 = 0 ;
7446 PyObject * obj1 = 0 ;
7447 char *kwnames[] = {
7448 (char *) "self",(char *) "parent", NULL
7449 };
7450
7451 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) goto fail;
7452 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7453 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7454 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
7455 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7456 {
7457 PyThreadState* __tstate = wxPyBeginAllowThreads();
7458 (arg1)->SetDialogParent(arg2);
7459
7460 wxPyEndAllowThreads(__tstate);
7461 if (PyErr_Occurred()) SWIG_fail;
7462 }
7463 Py_INCREF(Py_None); resultobj = Py_None;
7464 return resultobj;
7465 fail:
7466 return NULL;
7467}
7468
7469
7470static PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *self, PyObject *args, PyObject *kwargs) {
7471 PyObject *resultobj;
7472 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
7473 wxString *arg2 = 0 ;
7474 bool temp2 = False ;
7475 PyObject * obj0 = 0 ;
7476 PyObject * obj1 = 0 ;
7477 char *kwnames[] = {
7478 (char *) "self",(char *) "title", NULL
7479 };
7480
7481 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) goto fail;
7482 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontMapper,
7483 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7484 {
7485 arg2 = wxString_in_helper(obj1);
7486 if (arg2 == NULL) SWIG_fail;
7487 temp2 = True;
7488 }
7489 {
7490 PyThreadState* __tstate = wxPyBeginAllowThreads();
7491 (arg1)->SetDialogTitle((wxString const &)*arg2);
7492
7493 wxPyEndAllowThreads(__tstate);
7494 if (PyErr_Occurred()) SWIG_fail;
7495 }
7496 Py_INCREF(Py_None); resultobj = Py_None;
7497 {
7498 if (temp2)
7499 delete arg2;
7500 }
7501 return resultobj;
7502 fail:
7503 {
7504 if (temp2)
7505 delete arg2;
7506 }
7507 return NULL;
7508}
7509
7510
7511static PyObject * FontMapper_swigregister(PyObject *self, PyObject *args) {
7512 PyObject *obj;
7513 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
7514 SWIG_TypeClientData(SWIGTYPE_p_wxFontMapper, obj);
7515 Py_INCREF(obj);
7516 return Py_BuildValue((char *)"");
7517}
7518static PyObject *_wrap_new_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7519 PyObject *resultobj;
7520 int arg1 ;
7521 int arg2 ;
7522 int arg3 ;
7523 int arg4 ;
7524 bool arg5 = (bool) False ;
7525 wxString const &arg6_defvalue = wxPyEmptyString ;
7526 wxString *arg6 = (wxString *) &arg6_defvalue ;
7527 int arg7 = (int) wxFONTENCODING_DEFAULT ;
7528 wxFont *result;
7529 bool temp6 = False ;
7530 PyObject * obj0 = 0 ;
7531 PyObject * obj1 = 0 ;
7532 PyObject * obj2 = 0 ;
7533 PyObject * obj3 = 0 ;
7534 PyObject * obj4 = 0 ;
7535 PyObject * obj5 = 0 ;
7536 PyObject * obj6 = 0 ;
7537 char *kwnames[] = {
7538 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
7539 };
7540
7541 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
7542 arg1 = (int) SWIG_AsInt(obj0);
7543 if (PyErr_Occurred()) SWIG_fail;
7544 arg2 = (int) SWIG_AsInt(obj1);
7545 if (PyErr_Occurred()) SWIG_fail;
7546 arg3 = (int) SWIG_AsInt(obj2);
7547 if (PyErr_Occurred()) SWIG_fail;
7548 arg4 = (int) SWIG_AsInt(obj3);
7549 if (PyErr_Occurred()) SWIG_fail;
7550 if (obj4) {
7551 arg5 = (bool) SWIG_AsBool(obj4);
7552 if (PyErr_Occurred()) SWIG_fail;
7553 }
7554 if (obj5) {
7555 {
7556 arg6 = wxString_in_helper(obj5);
7557 if (arg6 == NULL) SWIG_fail;
7558 temp6 = True;
7559 }
7560 }
7561 if (obj6) {
7562 arg7 = (wxFontEncoding) SWIG_AsInt(obj6);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 {
0439c23b 7566 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7567 PyThreadState* __tstate = wxPyBeginAllowThreads();
7568 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,(wxFontEncoding )arg7);
7569
7570 wxPyEndAllowThreads(__tstate);
110da5b0 7571 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7572 }
7573 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7574 {
7575 if (temp6)
7576 delete arg6;
7577 }
7578 return resultobj;
7579 fail:
7580 {
7581 if (temp6)
7582 delete arg6;
7583 }
7584 return NULL;
7585}
7586
7587
7588static PyObject *_wrap_delete_Font(PyObject *self, PyObject *args, PyObject *kwargs) {
7589 PyObject *resultobj;
7590 wxFont *arg1 = (wxFont *) 0 ;
7591 PyObject * obj0 = 0 ;
7592 char *kwnames[] = {
7593 (char *) "self", NULL
7594 };
7595
7596 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Font",kwnames,&obj0)) goto fail;
7597 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7598 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7599 {
7600 PyThreadState* __tstate = wxPyBeginAllowThreads();
7601 delete arg1;
7602
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 Py_INCREF(Py_None); resultobj = Py_None;
7607 return resultobj;
7608 fail:
7609 return NULL;
7610}
7611
7612
7613static PyObject *_wrap_new_FontFromNativeInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
7614 PyObject *resultobj;
7615 wxNativeFontInfo *arg1 = 0 ;
7616 wxFont *result;
7617 PyObject * obj0 = 0 ;
7618 char *kwnames[] = {
7619 (char *) "info", NULL
7620 };
7621
7622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) goto fail;
7623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNativeFontInfo,
7624 SWIG_POINTER_EXCEPTION | 0)) == -1)
7625 SWIG_fail;
7626 if (arg1 == NULL) {
7627 PyErr_SetString(PyExc_TypeError,"null reference");
7628 SWIG_fail;
7629 }
7630 {
0439c23b 7631 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7632 PyThreadState* __tstate = wxPyBeginAllowThreads();
7633 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
7634
7635 wxPyEndAllowThreads(__tstate);
110da5b0 7636 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7637 }
7638 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7639 return resultobj;
7640 fail:
7641 return NULL;
7642}
7643
7644
7645static PyObject *_wrap_new_FontFromNativeInfoString(PyObject *self, PyObject *args, PyObject *kwargs) {
7646 PyObject *resultobj;
7647 wxString *arg1 = 0 ;
7648 wxFont *result;
7649 bool temp1 = False ;
7650 PyObject * obj0 = 0 ;
7651 char *kwnames[] = {
7652 (char *) "info", NULL
7653 };
7654
7655 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) goto fail;
7656 {
7657 arg1 = wxString_in_helper(obj0);
7658 if (arg1 == NULL) SWIG_fail;
7659 temp1 = True;
7660 }
7661 {
0439c23b 7662 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7663 PyThreadState* __tstate = wxPyBeginAllowThreads();
7664 result = (wxFont *)new_wxFont((wxString const &)*arg1);
7665
7666 wxPyEndAllowThreads(__tstate);
110da5b0 7667 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7668 }
7669 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7670 {
7671 if (temp1)
7672 delete arg1;
7673 }
7674 return resultobj;
7675 fail:
7676 {
7677 if (temp1)
7678 delete arg1;
7679 }
7680 return NULL;
7681}
7682
7683
7684static PyObject *_wrap_new_Font2(PyObject *self, PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj;
7686 int arg1 ;
7687 int arg2 ;
7688 int arg3 = (int) wxFONTFLAG_DEFAULT ;
7689 wxString const &arg4_defvalue = wxPyEmptyString ;
7690 wxString *arg4 = (wxString *) &arg4_defvalue ;
7691 int arg5 = (int) wxFONTENCODING_DEFAULT ;
7692 wxFont *result;
7693 bool temp4 = False ;
7694 PyObject * obj0 = 0 ;
7695 PyObject * obj1 = 0 ;
7696 PyObject * obj2 = 0 ;
7697 PyObject * obj3 = 0 ;
7698 PyObject * obj4 = 0 ;
7699 char *kwnames[] = {
7700 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
7701 };
7702
7703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_Font2",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
7704 arg1 = (int) SWIG_AsInt(obj0);
7705 if (PyErr_Occurred()) SWIG_fail;
7706 arg2 = (wxFontFamily) SWIG_AsInt(obj1);
7707 if (PyErr_Occurred()) SWIG_fail;
7708 if (obj2) {
7709 arg3 = (int) SWIG_AsInt(obj2);
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 if (obj3) {
7713 {
7714 arg4 = wxString_in_helper(obj3);
7715 if (arg4 == NULL) SWIG_fail;
7716 temp4 = True;
7717 }
7718 }
7719 if (obj4) {
7720 arg5 = (wxFontEncoding) SWIG_AsInt(obj4);
7721 if (PyErr_Occurred()) SWIG_fail;
7722 }
7723 {
0439c23b 7724 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 result = (wxFont *)new_wxFont(arg1,(wxFontFamily )arg2,arg3,(wxString const &)*arg4,(wxFontEncoding )arg5);
7727
7728 wxPyEndAllowThreads(__tstate);
110da5b0 7729 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
7730 }
7731 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 1);
7732 {
7733 if (temp4)
7734 delete arg4;
7735 }
7736 return resultobj;
7737 fail:
7738 {
7739 if (temp4)
7740 delete arg4;
7741 }
7742 return NULL;
7743}
7744
7745
7746static PyObject *_wrap_Font_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj;
7748 wxFont *arg1 = (wxFont *) 0 ;
7749 bool result;
7750 PyObject * obj0 = 0 ;
7751 char *kwnames[] = {
7752 (char *) "self", NULL
7753 };
7754
7755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_Ok",kwnames,&obj0)) goto fail;
7756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7758 {
7759 PyThreadState* __tstate = wxPyBeginAllowThreads();
7760 result = (bool)((wxFont const *)arg1)->Ok();
7761
7762 wxPyEndAllowThreads(__tstate);
7763 if (PyErr_Occurred()) SWIG_fail;
7764 }
7765 {
7766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7767 }
7768 return resultobj;
7769 fail:
7770 return NULL;
7771}
7772
7773
7774static PyObject *_wrap_Font___eq__(PyObject *self, PyObject *args, PyObject *kwargs) {
7775 PyObject *resultobj;
7776 wxFont *arg1 = (wxFont *) 0 ;
7777 wxFont *arg2 = (wxFont *) 0 ;
7778 bool result;
7779 PyObject * obj0 = 0 ;
7780 PyObject * obj1 = 0 ;
7781 char *kwnames[] = {
7782 (char *) "self",(char *) "other", NULL
7783 };
7784
7785 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) goto fail;
7786 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7787 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7788 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7789 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7790 {
7791 PyThreadState* __tstate = wxPyBeginAllowThreads();
7792 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
7793
7794 wxPyEndAllowThreads(__tstate);
7795 if (PyErr_Occurred()) SWIG_fail;
7796 }
7797 {
7798 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7799 }
7800 return resultobj;
7801 fail:
7802 return NULL;
7803}
7804
7805
7806static PyObject *_wrap_Font___ne__(PyObject *self, PyObject *args, PyObject *kwargs) {
7807 PyObject *resultobj;
7808 wxFont *arg1 = (wxFont *) 0 ;
7809 wxFont *arg2 = (wxFont *) 0 ;
7810 bool result;
7811 PyObject * obj0 = 0 ;
7812 PyObject * obj1 = 0 ;
7813 char *kwnames[] = {
7814 (char *) "self",(char *) "other", NULL
7815 };
7816
7817 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) goto fail;
7818 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7819 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7820 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
7821 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7822 {
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
7825
7826 wxPyEndAllowThreads(__tstate);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 {
7830 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7831 }
7832 return resultobj;
7833 fail:
7834 return NULL;
7835}
7836
7837
7838static PyObject *_wrap_Font_GetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
7839 PyObject *resultobj;
7840 wxFont *arg1 = (wxFont *) 0 ;
7841 int result;
7842 PyObject * obj0 = 0 ;
7843 char *kwnames[] = {
7844 (char *) "self", NULL
7845 };
7846
7847 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetPointSize",kwnames,&obj0)) goto fail;
7848 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7849 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7850 {
7851 PyThreadState* __tstate = wxPyBeginAllowThreads();
7852 result = (int)((wxFont const *)arg1)->GetPointSize();
7853
7854 wxPyEndAllowThreads(__tstate);
7855 if (PyErr_Occurred()) SWIG_fail;
7856 }
7857 resultobj = SWIG_FromInt((int)result);
7858 return resultobj;
7859 fail:
7860 return NULL;
7861}
7862
7863
7864static PyObject *_wrap_Font_GetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
7865 PyObject *resultobj;
7866 wxFont *arg1 = (wxFont *) 0 ;
7867 int result;
7868 PyObject * obj0 = 0 ;
7869 char *kwnames[] = {
7870 (char *) "self", NULL
7871 };
7872
7873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamily",kwnames,&obj0)) goto fail;
7874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7876 {
7877 PyThreadState* __tstate = wxPyBeginAllowThreads();
7878 result = (int)((wxFont const *)arg1)->GetFamily();
7879
7880 wxPyEndAllowThreads(__tstate);
7881 if (PyErr_Occurred()) SWIG_fail;
7882 }
7883 resultobj = SWIG_FromInt((int)result);
7884 return resultobj;
7885 fail:
7886 return NULL;
7887}
7888
7889
7890static PyObject *_wrap_Font_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
7891 PyObject *resultobj;
7892 wxFont *arg1 = (wxFont *) 0 ;
7893 int result;
7894 PyObject * obj0 = 0 ;
7895 char *kwnames[] = {
7896 (char *) "self", NULL
7897 };
7898
7899 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyle",kwnames,&obj0)) goto fail;
7900 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7901 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7902 {
7903 PyThreadState* __tstate = wxPyBeginAllowThreads();
7904 result = (int)((wxFont const *)arg1)->GetStyle();
7905
7906 wxPyEndAllowThreads(__tstate);
7907 if (PyErr_Occurred()) SWIG_fail;
7908 }
7909 resultobj = SWIG_FromInt((int)result);
7910 return resultobj;
7911 fail:
7912 return NULL;
7913}
7914
7915
7916static PyObject *_wrap_Font_GetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
7917 PyObject *resultobj;
7918 wxFont *arg1 = (wxFont *) 0 ;
7919 int result;
7920 PyObject * obj0 = 0 ;
7921 char *kwnames[] = {
7922 (char *) "self", NULL
7923 };
7924
7925 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeight",kwnames,&obj0)) goto fail;
7926 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7927 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7928 {
7929 PyThreadState* __tstate = wxPyBeginAllowThreads();
7930 result = (int)((wxFont const *)arg1)->GetWeight();
7931
7932 wxPyEndAllowThreads(__tstate);
7933 if (PyErr_Occurred()) SWIG_fail;
7934 }
7935 resultobj = SWIG_FromInt((int)result);
7936 return resultobj;
7937 fail:
7938 return NULL;
7939}
7940
7941
7942static PyObject *_wrap_Font_GetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
7943 PyObject *resultobj;
7944 wxFont *arg1 = (wxFont *) 0 ;
7945 bool result;
7946 PyObject * obj0 = 0 ;
7947 char *kwnames[] = {
7948 (char *) "self", NULL
7949 };
7950
7951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetUnderlined",kwnames,&obj0)) goto fail;
7952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7954 {
7955 PyThreadState* __tstate = wxPyBeginAllowThreads();
7956 result = (bool)((wxFont const *)arg1)->GetUnderlined();
7957
7958 wxPyEndAllowThreads(__tstate);
7959 if (PyErr_Occurred()) SWIG_fail;
7960 }
7961 {
7962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7963 }
7964 return resultobj;
7965 fail:
7966 return NULL;
7967}
7968
7969
7970static PyObject *_wrap_Font_GetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
7971 PyObject *resultobj;
7972 wxFont *arg1 = (wxFont *) 0 ;
7973 wxString result;
7974 PyObject * obj0 = 0 ;
7975 char *kwnames[] = {
7976 (char *) "self", NULL
7977 };
7978
7979 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFaceName",kwnames,&obj0)) goto fail;
7980 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
7981 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
7982 {
7983 PyThreadState* __tstate = wxPyBeginAllowThreads();
7984 result = ((wxFont const *)arg1)->GetFaceName();
7985
7986 wxPyEndAllowThreads(__tstate);
7987 if (PyErr_Occurred()) SWIG_fail;
7988 }
7989 {
7990#if wxUSE_UNICODE
7991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
7992#else
7993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
7994#endif
7995 }
7996 return resultobj;
7997 fail:
7998 return NULL;
7999}
8000
8001
8002static PyObject *_wrap_Font_GetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8003 PyObject *resultobj;
8004 wxFont *arg1 = (wxFont *) 0 ;
8005 int result;
8006 PyObject * obj0 = 0 ;
8007 char *kwnames[] = {
8008 (char *) "self", NULL
8009 };
8010
8011 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetEncoding",kwnames,&obj0)) goto fail;
8012 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8013 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8014 {
8015 PyThreadState* __tstate = wxPyBeginAllowThreads();
8016 result = (int)((wxFont const *)arg1)->GetEncoding();
8017
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 resultobj = SWIG_FromInt((int)result);
8022 return resultobj;
8023 fail:
8024 return NULL;
8025}
8026
8027
8028static PyObject *_wrap_Font_GetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8029 PyObject *resultobj;
8030 wxFont *arg1 = (wxFont *) 0 ;
8031 wxNativeFontInfo *result;
8032 PyObject * obj0 = 0 ;
8033 char *kwnames[] = {
8034 (char *) "self", NULL
8035 };
8036
8037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfo",kwnames,&obj0)) goto fail;
8038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8040 {
8041 PyThreadState* __tstate = wxPyBeginAllowThreads();
8042 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
8043
8044 wxPyEndAllowThreads(__tstate);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNativeFontInfo, 0);
8048 return resultobj;
8049 fail:
8050 return NULL;
8051}
8052
8053
8054static PyObject *_wrap_Font_IsFixedWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
8055 PyObject *resultobj;
8056 wxFont *arg1 = (wxFont *) 0 ;
8057 bool result;
8058 PyObject * obj0 = 0 ;
8059 char *kwnames[] = {
8060 (char *) "self", NULL
8061 };
8062
8063 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_IsFixedWidth",kwnames,&obj0)) goto fail;
8064 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8065 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8066 {
8067 PyThreadState* __tstate = wxPyBeginAllowThreads();
8068 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
8069
8070 wxPyEndAllowThreads(__tstate);
8071 if (PyErr_Occurred()) SWIG_fail;
8072 }
8073 {
8074 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8075 }
8076 return resultobj;
8077 fail:
8078 return NULL;
8079}
8080
8081
8082static PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8083 PyObject *resultobj;
8084 wxFont *arg1 = (wxFont *) 0 ;
8085 wxString result;
8086 PyObject * obj0 = 0 ;
8087 char *kwnames[] = {
8088 (char *) "self", NULL
8089 };
8090
8091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoDesc",kwnames,&obj0)) goto fail;
8092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8094 {
8095 PyThreadState* __tstate = wxPyBeginAllowThreads();
8096 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
8097
8098 wxPyEndAllowThreads(__tstate);
8099 if (PyErr_Occurred()) SWIG_fail;
8100 }
8101 {
8102#if wxUSE_UNICODE
8103 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8104#else
8105 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8106#endif
8107 }
8108 return resultobj;
8109 fail:
8110 return NULL;
8111}
8112
8113
8114static PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8115 PyObject *resultobj;
8116 wxFont *arg1 = (wxFont *) 0 ;
8117 wxString result;
8118 PyObject * obj0 = 0 ;
8119 char *kwnames[] = {
8120 (char *) "self", NULL
8121 };
8122
8123 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNativeFontInfoUserDesc",kwnames,&obj0)) goto fail;
8124 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8125 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8126 {
8127 PyThreadState* __tstate = wxPyBeginAllowThreads();
8128 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
8129
8130 wxPyEndAllowThreads(__tstate);
8131 if (PyErr_Occurred()) SWIG_fail;
8132 }
8133 {
8134#if wxUSE_UNICODE
8135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8136#else
8137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8138#endif
8139 }
8140 return resultobj;
8141 fail:
8142 return NULL;
8143}
8144
8145
8146static PyObject *_wrap_Font_SetPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
8147 PyObject *resultobj;
8148 wxFont *arg1 = (wxFont *) 0 ;
8149 int arg2 ;
8150 PyObject * obj0 = 0 ;
8151 PyObject * obj1 = 0 ;
8152 char *kwnames[] = {
8153 (char *) "self",(char *) "pointSize", NULL
8154 };
8155
8156 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) goto fail;
8157 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8158 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8159 arg2 = (int) SWIG_AsInt(obj1);
8160 if (PyErr_Occurred()) SWIG_fail;
8161 {
8162 PyThreadState* __tstate = wxPyBeginAllowThreads();
8163 (arg1)->SetPointSize(arg2);
8164
8165 wxPyEndAllowThreads(__tstate);
8166 if (PyErr_Occurred()) SWIG_fail;
8167 }
8168 Py_INCREF(Py_None); resultobj = Py_None;
8169 return resultobj;
8170 fail:
8171 return NULL;
8172}
8173
8174
8175static PyObject *_wrap_Font_SetFamily(PyObject *self, PyObject *args, PyObject *kwargs) {
8176 PyObject *resultobj;
8177 wxFont *arg1 = (wxFont *) 0 ;
8178 int arg2 ;
8179 PyObject * obj0 = 0 ;
8180 PyObject * obj1 = 0 ;
8181 char *kwnames[] = {
8182 (char *) "self",(char *) "family", NULL
8183 };
8184
8185 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) goto fail;
8186 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8187 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8188 arg2 = (int) SWIG_AsInt(obj1);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 {
8191 PyThreadState* __tstate = wxPyBeginAllowThreads();
8192 (arg1)->SetFamily(arg2);
8193
8194 wxPyEndAllowThreads(__tstate);
8195 if (PyErr_Occurred()) SWIG_fail;
8196 }
8197 Py_INCREF(Py_None); resultobj = Py_None;
8198 return resultobj;
8199 fail:
8200 return NULL;
8201}
8202
8203
8204static PyObject *_wrap_Font_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) {
8205 PyObject *resultobj;
8206 wxFont *arg1 = (wxFont *) 0 ;
8207 int arg2 ;
8208 PyObject * obj0 = 0 ;
8209 PyObject * obj1 = 0 ;
8210 char *kwnames[] = {
8211 (char *) "self",(char *) "style", NULL
8212 };
8213
8214 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) goto fail;
8215 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8216 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8217 arg2 = (int) SWIG_AsInt(obj1);
8218 if (PyErr_Occurred()) SWIG_fail;
8219 {
8220 PyThreadState* __tstate = wxPyBeginAllowThreads();
8221 (arg1)->SetStyle(arg2);
8222
8223 wxPyEndAllowThreads(__tstate);
8224 if (PyErr_Occurred()) SWIG_fail;
8225 }
8226 Py_INCREF(Py_None); resultobj = Py_None;
8227 return resultobj;
8228 fail:
8229 return NULL;
8230}
8231
8232
8233static PyObject *_wrap_Font_SetWeight(PyObject *self, PyObject *args, PyObject *kwargs) {
8234 PyObject *resultobj;
8235 wxFont *arg1 = (wxFont *) 0 ;
8236 int arg2 ;
8237 PyObject * obj0 = 0 ;
8238 PyObject * obj1 = 0 ;
8239 char *kwnames[] = {
8240 (char *) "self",(char *) "weight", NULL
8241 };
8242
8243 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) goto fail;
8244 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8245 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8246 arg2 = (int) SWIG_AsInt(obj1);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 {
8249 PyThreadState* __tstate = wxPyBeginAllowThreads();
8250 (arg1)->SetWeight(arg2);
8251
8252 wxPyEndAllowThreads(__tstate);
8253 if (PyErr_Occurred()) SWIG_fail;
8254 }
8255 Py_INCREF(Py_None); resultobj = Py_None;
8256 return resultobj;
8257 fail:
8258 return NULL;
8259}
8260
8261
8262static PyObject *_wrap_Font_SetFaceName(PyObject *self, PyObject *args, PyObject *kwargs) {
8263 PyObject *resultobj;
8264 wxFont *arg1 = (wxFont *) 0 ;
8265 wxString *arg2 = 0 ;
8266 bool temp2 = False ;
8267 PyObject * obj0 = 0 ;
8268 PyObject * obj1 = 0 ;
8269 char *kwnames[] = {
8270 (char *) "self",(char *) "faceName", NULL
8271 };
8272
8273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) goto fail;
8274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8276 {
8277 arg2 = wxString_in_helper(obj1);
8278 if (arg2 == NULL) SWIG_fail;
8279 temp2 = True;
8280 }
8281 {
8282 PyThreadState* __tstate = wxPyBeginAllowThreads();
8283 (arg1)->SetFaceName((wxString const &)*arg2);
8284
8285 wxPyEndAllowThreads(__tstate);
8286 if (PyErr_Occurred()) SWIG_fail;
8287 }
8288 Py_INCREF(Py_None); resultobj = Py_None;
8289 {
8290 if (temp2)
8291 delete arg2;
8292 }
8293 return resultobj;
8294 fail:
8295 {
8296 if (temp2)
8297 delete arg2;
8298 }
8299 return NULL;
8300}
8301
8302
8303static PyObject *_wrap_Font_SetUnderlined(PyObject *self, PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj;
8305 wxFont *arg1 = (wxFont *) 0 ;
8306 bool arg2 ;
8307 PyObject * obj0 = 0 ;
8308 PyObject * obj1 = 0 ;
8309 char *kwnames[] = {
8310 (char *) "self",(char *) "underlined", NULL
8311 };
8312
8313 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) goto fail;
8314 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8315 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8316 arg2 = (bool) SWIG_AsBool(obj1);
8317 if (PyErr_Occurred()) SWIG_fail;
8318 {
8319 PyThreadState* __tstate = wxPyBeginAllowThreads();
8320 (arg1)->SetUnderlined(arg2);
8321
8322 wxPyEndAllowThreads(__tstate);
8323 if (PyErr_Occurred()) SWIG_fail;
8324 }
8325 Py_INCREF(Py_None); resultobj = Py_None;
8326 return resultobj;
8327 fail:
8328 return NULL;
8329}
8330
8331
8332static PyObject *_wrap_Font_SetEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8333 PyObject *resultobj;
8334 wxFont *arg1 = (wxFont *) 0 ;
8335 int arg2 ;
8336 PyObject * obj0 = 0 ;
8337 PyObject * obj1 = 0 ;
8338 char *kwnames[] = {
8339 (char *) "self",(char *) "encoding", NULL
8340 };
8341
8342 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) goto fail;
8343 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8344 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8345 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8346 if (PyErr_Occurred()) SWIG_fail;
8347 {
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 (arg1)->SetEncoding((wxFontEncoding )arg2);
8350
8351 wxPyEndAllowThreads(__tstate);
8352 if (PyErr_Occurred()) SWIG_fail;
8353 }
8354 Py_INCREF(Py_None); resultobj = Py_None;
8355 return resultobj;
8356 fail:
8357 return NULL;
8358}
8359
8360
8361static PyObject *_wrap_Font_SetNativeFontInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8362 PyObject *resultobj;
8363 wxFont *arg1 = (wxFont *) 0 ;
8364 wxNativeFontInfo *arg2 = 0 ;
8365 PyObject * obj0 = 0 ;
8366 PyObject * obj1 = 0 ;
8367 char *kwnames[] = {
8368 (char *) "self",(char *) "info", NULL
8369 };
8370
8371 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) goto fail;
8372 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8373 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8374 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxNativeFontInfo,
8375 SWIG_POINTER_EXCEPTION | 0)) == -1)
8376 SWIG_fail;
8377 if (arg2 == NULL) {
8378 PyErr_SetString(PyExc_TypeError,"null reference");
8379 SWIG_fail;
8380 }
8381 {
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
8384
8385 wxPyEndAllowThreads(__tstate);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 Py_INCREF(Py_None); resultobj = Py_None;
8389 return resultobj;
8390 fail:
8391 return NULL;
8392}
8393
8394
8395static PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *self, PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj;
8397 wxFont *arg1 = (wxFont *) 0 ;
8398 wxString *arg2 = 0 ;
8399 bool temp2 = False ;
8400 PyObject * obj0 = 0 ;
8401 PyObject * obj1 = 0 ;
8402 char *kwnames[] = {
8403 (char *) "self",(char *) "info", NULL
8404 };
8405
8406 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) goto fail;
8407 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8408 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8409 {
8410 arg2 = wxString_in_helper(obj1);
8411 if (arg2 == NULL) SWIG_fail;
8412 temp2 = True;
8413 }
8414 {
8415 PyThreadState* __tstate = wxPyBeginAllowThreads();
8416 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
8417
8418 wxPyEndAllowThreads(__tstate);
8419 if (PyErr_Occurred()) SWIG_fail;
8420 }
8421 Py_INCREF(Py_None); resultobj = Py_None;
8422 {
8423 if (temp2)
8424 delete arg2;
8425 }
8426 return resultobj;
8427 fail:
8428 {
8429 if (temp2)
8430 delete arg2;
8431 }
8432 return NULL;
8433}
8434
8435
8436static PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *self, PyObject *args, PyObject *kwargs) {
8437 PyObject *resultobj;
8438 wxFont *arg1 = (wxFont *) 0 ;
8439 wxString *arg2 = 0 ;
8440 bool temp2 = False ;
8441 PyObject * obj0 = 0 ;
8442 PyObject * obj1 = 0 ;
8443 char *kwnames[] = {
8444 (char *) "self",(char *) "info", NULL
8445 };
8446
8447 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) goto fail;
8448 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8449 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8450 {
8451 arg2 = wxString_in_helper(obj1);
8452 if (arg2 == NULL) SWIG_fail;
8453 temp2 = True;
8454 }
8455 {
8456 PyThreadState* __tstate = wxPyBeginAllowThreads();
8457 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
8458
8459 wxPyEndAllowThreads(__tstate);
8460 if (PyErr_Occurred()) SWIG_fail;
8461 }
8462 Py_INCREF(Py_None); resultobj = Py_None;
8463 {
8464 if (temp2)
8465 delete arg2;
8466 }
8467 return resultobj;
8468 fail:
8469 {
8470 if (temp2)
8471 delete arg2;
8472 }
8473 return NULL;
8474}
8475
8476
8477static PyObject *_wrap_Font_GetFamilyString(PyObject *self, PyObject *args, PyObject *kwargs) {
8478 PyObject *resultobj;
8479 wxFont *arg1 = (wxFont *) 0 ;
8480 wxString result;
8481 PyObject * obj0 = 0 ;
8482 char *kwnames[] = {
8483 (char *) "self", NULL
8484 };
8485
8486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetFamilyString",kwnames,&obj0)) goto fail;
8487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8489 {
8490 PyThreadState* __tstate = wxPyBeginAllowThreads();
8491 result = ((wxFont const *)arg1)->GetFamilyString();
8492
8493 wxPyEndAllowThreads(__tstate);
8494 if (PyErr_Occurred()) SWIG_fail;
8495 }
8496 {
8497#if wxUSE_UNICODE
8498 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8499#else
8500 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8501#endif
8502 }
8503 return resultobj;
8504 fail:
8505 return NULL;
8506}
8507
8508
8509static PyObject *_wrap_Font_GetStyleString(PyObject *self, PyObject *args, PyObject *kwargs) {
8510 PyObject *resultobj;
8511 wxFont *arg1 = (wxFont *) 0 ;
8512 wxString result;
8513 PyObject * obj0 = 0 ;
8514 char *kwnames[] = {
8515 (char *) "self", NULL
8516 };
8517
8518 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetStyleString",kwnames,&obj0)) goto fail;
8519 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8520 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8521 {
8522 PyThreadState* __tstate = wxPyBeginAllowThreads();
8523 result = ((wxFont const *)arg1)->GetStyleString();
8524
8525 wxPyEndAllowThreads(__tstate);
8526 if (PyErr_Occurred()) SWIG_fail;
8527 }
8528 {
8529#if wxUSE_UNICODE
8530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8531#else
8532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8533#endif
8534 }
8535 return resultobj;
8536 fail:
8537 return NULL;
8538}
8539
8540
8541static PyObject *_wrap_Font_GetWeightString(PyObject *self, PyObject *args, PyObject *kwargs) {
8542 PyObject *resultobj;
8543 wxFont *arg1 = (wxFont *) 0 ;
8544 wxString result;
8545 PyObject * obj0 = 0 ;
8546 char *kwnames[] = {
8547 (char *) "self", NULL
8548 };
8549
8550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetWeightString",kwnames,&obj0)) goto fail;
8551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8553 {
8554 PyThreadState* __tstate = wxPyBeginAllowThreads();
8555 result = ((wxFont const *)arg1)->GetWeightString();
8556
8557 wxPyEndAllowThreads(__tstate);
8558 if (PyErr_Occurred()) SWIG_fail;
8559 }
8560 {
8561#if wxUSE_UNICODE
8562 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
8563#else
8564 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
8565#endif
8566 }
8567 return resultobj;
8568 fail:
8569 return NULL;
8570}
8571
8572
8573static PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8574 PyObject *resultobj;
8575 wxFont *arg1 = (wxFont *) 0 ;
8576 bool arg2 = (bool) True ;
8577 PyObject * obj0 = 0 ;
8578 PyObject * obj1 = 0 ;
8579 char *kwnames[] = {
8580 (char *) "self",(char *) "no", NULL
8581 };
8582
8583 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) goto fail;
8584 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8585 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8586 if (obj1) {
8587 arg2 = (bool) SWIG_AsBool(obj1);
8588 if (PyErr_Occurred()) SWIG_fail;
8589 }
8590 {
8591 PyThreadState* __tstate = wxPyBeginAllowThreads();
8592 (arg1)->SetNoAntiAliasing(arg2);
8593
8594 wxPyEndAllowThreads(__tstate);
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 Py_INCREF(Py_None); resultobj = Py_None;
8598 return resultobj;
8599 fail:
8600 return NULL;
8601}
8602
8603
8604static PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *self, PyObject *args, PyObject *kwargs) {
8605 PyObject *resultobj;
8606 wxFont *arg1 = (wxFont *) 0 ;
8607 bool result;
8608 PyObject * obj0 = 0 ;
8609 char *kwnames[] = {
8610 (char *) "self", NULL
8611 };
8612
8613 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_GetNoAntiAliasing",kwnames,&obj0)) goto fail;
8614 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFont,
8615 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8616 {
8617 PyThreadState* __tstate = wxPyBeginAllowThreads();
8618 result = (bool)(arg1)->GetNoAntiAliasing();
8619
8620 wxPyEndAllowThreads(__tstate);
8621 if (PyErr_Occurred()) SWIG_fail;
8622 }
8623 {
8624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8625 }
8626 return resultobj;
8627 fail:
8628 return NULL;
8629}
8630
8631
8632static PyObject *_wrap_Font_GetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8633 PyObject *resultobj;
8634 int result;
8635 char *kwnames[] = {
8636 NULL
8637 };
8638
8639 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Font_GetDefaultEncoding",kwnames)) goto fail;
8640 {
0439c23b 8641 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = (int)wxFont::GetDefaultEncoding();
8644
8645 wxPyEndAllowThreads(__tstate);
110da5b0 8646 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8647 }
8648 resultobj = SWIG_FromInt((int)result);
8649 return resultobj;
8650 fail:
8651 return NULL;
8652}
8653
8654
8655static PyObject *_wrap_Font_SetDefaultEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
8656 PyObject *resultobj;
8657 int arg1 ;
8658 PyObject * obj0 = 0 ;
8659 char *kwnames[] = {
8660 (char *) "encoding", NULL
8661 };
8662
8663 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) goto fail;
8664 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
8665 if (PyErr_Occurred()) SWIG_fail;
8666 {
0439c23b 8667 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8668 PyThreadState* __tstate = wxPyBeginAllowThreads();
8669 wxFont::SetDefaultEncoding((wxFontEncoding )arg1);
8670
8671 wxPyEndAllowThreads(__tstate);
110da5b0 8672 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8673 }
8674 Py_INCREF(Py_None); resultobj = Py_None;
8675 return resultobj;
8676 fail:
8677 return NULL;
8678}
8679
8680
8681static PyObject * Font_swigregister(PyObject *self, PyObject *args) {
8682 PyObject *obj;
8683 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8684 SWIG_TypeClientData(SWIGTYPE_p_wxFont, obj);
8685 Py_INCREF(obj);
8686 return Py_BuildValue((char *)"");
8687}
8688static PyObject *_wrap_new_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8689 PyObject *resultobj;
8690 wxPyFontEnumerator *result;
8691 char *kwnames[] = {
8692 NULL
8693 };
8694
8695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_FontEnumerator",kwnames)) goto fail;
8696 {
0439c23b 8697 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
8698 PyThreadState* __tstate = wxPyBeginAllowThreads();
8699 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
8700
8701 wxPyEndAllowThreads(__tstate);
110da5b0 8702 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
8703 }
8704 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyFontEnumerator, 1);
8705 return resultobj;
8706 fail:
8707 return NULL;
8708}
8709
8710
8711static PyObject *_wrap_delete_FontEnumerator(PyObject *self, PyObject *args, PyObject *kwargs) {
8712 PyObject *resultobj;
8713 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8714 PyObject * obj0 = 0 ;
8715 char *kwnames[] = {
8716 (char *) "self", NULL
8717 };
8718
8719 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_FontEnumerator",kwnames,&obj0)) goto fail;
8720 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8721 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8722 {
8723 PyThreadState* __tstate = wxPyBeginAllowThreads();
8724 delete arg1;
8725
8726 wxPyEndAllowThreads(__tstate);
8727 if (PyErr_Occurred()) SWIG_fail;
8728 }
8729 Py_INCREF(Py_None); resultobj = Py_None;
8730 return resultobj;
8731 fail:
8732 return NULL;
8733}
8734
8735
8736static PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
8737 PyObject *resultobj;
8738 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8739 PyObject *arg2 = (PyObject *) 0 ;
8740 PyObject *arg3 = (PyObject *) 0 ;
8741 bool arg4 ;
8742 PyObject * obj0 = 0 ;
8743 PyObject * obj1 = 0 ;
8744 PyObject * obj2 = 0 ;
8745 PyObject * obj3 = 0 ;
8746 char *kwnames[] = {
8747 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
8748 };
8749
8750 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
8751 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8752 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8753 arg2 = obj1;
8754 arg3 = obj2;
8755 arg4 = (bool) SWIG_AsBool(obj3);
8756 if (PyErr_Occurred()) SWIG_fail;
8757 {
8758 PyThreadState* __tstate = wxPyBeginAllowThreads();
8759 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
8760
8761 wxPyEndAllowThreads(__tstate);
8762 if (PyErr_Occurred()) SWIG_fail;
8763 }
8764 Py_INCREF(Py_None); resultobj = Py_None;
8765 return resultobj;
8766 fail:
8767 return NULL;
8768}
8769
8770
8771static PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8772 PyObject *resultobj;
8773 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8774 int arg2 = (int) wxFONTENCODING_SYSTEM ;
8775 bool arg3 = (bool) False ;
8776 bool result;
8777 PyObject * obj0 = 0 ;
8778 PyObject * obj1 = 0 ;
8779 PyObject * obj2 = 0 ;
8780 char *kwnames[] = {
8781 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
8782 };
8783
8784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) goto fail;
8785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8787 if (obj1) {
8788 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
8789 if (PyErr_Occurred()) SWIG_fail;
8790 }
8791 if (obj2) {
8792 arg3 = (bool) SWIG_AsBool(obj2);
8793 if (PyErr_Occurred()) SWIG_fail;
8794 }
8795 {
8796 PyThreadState* __tstate = wxPyBeginAllowThreads();
8797 result = (bool)(arg1)->EnumerateFacenames((wxFontEncoding )arg2,arg3);
8798
8799 wxPyEndAllowThreads(__tstate);
8800 if (PyErr_Occurred()) SWIG_fail;
8801 }
8802 {
8803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8804 }
8805 return resultobj;
8806 fail:
8807 return NULL;
8808}
8809
8810
8811static PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8812 PyObject *resultobj;
8813 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8814 wxString const &arg2_defvalue = wxPyEmptyString ;
8815 wxString *arg2 = (wxString *) &arg2_defvalue ;
8816 bool result;
8817 bool temp2 = False ;
8818 PyObject * obj0 = 0 ;
8819 PyObject * obj1 = 0 ;
8820 char *kwnames[] = {
8821 (char *) "self",(char *) "facename", NULL
8822 };
8823
8824 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) goto fail;
8825 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8826 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8827 if (obj1) {
8828 {
8829 arg2 = wxString_in_helper(obj1);
8830 if (arg2 == NULL) SWIG_fail;
8831 temp2 = True;
8832 }
8833 }
8834 {
8835 PyThreadState* __tstate = wxPyBeginAllowThreads();
8836 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
8837
8838 wxPyEndAllowThreads(__tstate);
8839 if (PyErr_Occurred()) SWIG_fail;
8840 }
8841 {
8842 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8843 }
8844 {
8845 if (temp2)
8846 delete arg2;
8847 }
8848 return resultobj;
8849 fail:
8850 {
8851 if (temp2)
8852 delete arg2;
8853 }
8854 return NULL;
8855}
8856
8857
8858static PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *self, PyObject *args, PyObject *kwargs) {
8859 PyObject *resultobj;
8860 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8861 PyObject *result;
8862 PyObject * obj0 = 0 ;
8863 char *kwnames[] = {
8864 (char *) "self", NULL
8865 };
8866
8867 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetEncodings",kwnames,&obj0)) goto fail;
8868 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8869 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8870 {
8871 PyThreadState* __tstate = wxPyBeginAllowThreads();
8872 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
8873
8874 wxPyEndAllowThreads(__tstate);
8875 if (PyErr_Occurred()) SWIG_fail;
8876 }
8877 resultobj = result;
8878 return resultobj;
8879 fail:
8880 return NULL;
8881}
8882
8883
8884static PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *self, PyObject *args, PyObject *kwargs) {
8885 PyObject *resultobj;
8886 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
8887 PyObject *result;
8888 PyObject * obj0 = 0 ;
8889 char *kwnames[] = {
8890 (char *) "self", NULL
8891 };
8892
8893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_GetFacenames",kwnames,&obj0)) goto fail;
8894 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyFontEnumerator,
8895 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8896 {
8897 PyThreadState* __tstate = wxPyBeginAllowThreads();
8898 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
8899
8900 wxPyEndAllowThreads(__tstate);
8901 if (PyErr_Occurred()) SWIG_fail;
8902 }
8903 resultobj = result;
8904 return resultobj;
8905 fail:
8906 return NULL;
8907}
8908
8909
8910static PyObject * FontEnumerator_swigregister(PyObject *self, PyObject *args) {
8911 PyObject *obj;
8912 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
8913 SWIG_TypeClientData(SWIGTYPE_p_wxPyFontEnumerator, obj);
8914 Py_INCREF(obj);
8915 return Py_BuildValue((char *)"");
8916}
8917static PyObject *_wrap_LanguageInfo_Language_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8918 PyObject *resultobj;
8919 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8920 int arg2 ;
8921 PyObject * obj0 = 0 ;
8922 PyObject * obj1 = 0 ;
8923 char *kwnames[] = {
8924 (char *) "self",(char *) "Language", NULL
8925 };
8926
8927 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Language_set",kwnames,&obj0,&obj1)) goto fail;
8928 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8929 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8930 arg2 = (int) SWIG_AsInt(obj1);
8931 if (PyErr_Occurred()) SWIG_fail;
8932 if (arg1) (arg1)->Language = arg2;
8933
8934 Py_INCREF(Py_None); resultobj = Py_None;
8935 return resultobj;
8936 fail:
8937 return NULL;
8938}
8939
8940
8941static PyObject *_wrap_LanguageInfo_Language_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj;
8943 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8944 int result;
8945 PyObject * obj0 = 0 ;
8946 char *kwnames[] = {
8947 (char *) "self", NULL
8948 };
8949
8950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Language_get",kwnames,&obj0)) goto fail;
8951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8953 result = (int) ((arg1)->Language);
8954
8955 resultobj = SWIG_FromInt((int)result);
8956 return resultobj;
8957 fail:
8958 return NULL;
8959}
8960
8961
8962static PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *self, PyObject *args, PyObject *kwargs) {
8963 PyObject *resultobj;
8964 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
8965 wxString *arg2 = (wxString *) 0 ;
8966 bool temp2 = False ;
8967 PyObject * obj0 = 0 ;
8968 PyObject * obj1 = 0 ;
8969 char *kwnames[] = {
8970 (char *) "self",(char *) "CanonicalName", NULL
8971 };
8972
8973 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_CanonicalName_set",kwnames,&obj0,&obj1)) goto fail;
8974 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
8975 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
8976 {
8977 arg2 = wxString_in_helper(obj1);
8978 if (arg2 == NULL) SWIG_fail;
8979 temp2 = True;
8980 }
8981 if (arg1) (arg1)->CanonicalName = *arg2;
8982
8983 Py_INCREF(Py_None); resultobj = Py_None;
8984 {
8985 if (temp2)
8986 delete arg2;
8987 }
8988 return resultobj;
8989 fail:
8990 {
8991 if (temp2)
8992 delete arg2;
8993 }
8994 return NULL;
8995}
8996
8997
8998static PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *self, PyObject *args, PyObject *kwargs) {
8999 PyObject *resultobj;
9000 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9001 wxString *result;
9002 PyObject * obj0 = 0 ;
9003 char *kwnames[] = {
9004 (char *) "self", NULL
9005 };
9006
9007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_CanonicalName_get",kwnames,&obj0)) goto fail;
9008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9010 result = (wxString *)& ((arg1)->CanonicalName);
9011
9012 {
9013#if wxUSE_UNICODE
9014 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9015#else
9016 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9017#endif
9018 }
9019 return resultobj;
9020 fail:
9021 return NULL;
9022}
9023
9024
9025static PyObject *_wrap_LanguageInfo_Description_set(PyObject *self, PyObject *args, PyObject *kwargs) {
9026 PyObject *resultobj;
9027 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9028 wxString *arg2 = (wxString *) 0 ;
9029 bool temp2 = False ;
9030 PyObject * obj0 = 0 ;
9031 PyObject * obj1 = 0 ;
9032 char *kwnames[] = {
9033 (char *) "self",(char *) "Description", NULL
9034 };
9035
9036 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:LanguageInfo_Description_set",kwnames,&obj0,&obj1)) goto fail;
9037 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9038 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9039 {
9040 arg2 = wxString_in_helper(obj1);
9041 if (arg2 == NULL) SWIG_fail;
9042 temp2 = True;
9043 }
9044 if (arg1) (arg1)->Description = *arg2;
9045
9046 Py_INCREF(Py_None); resultobj = Py_None;
9047 {
9048 if (temp2)
9049 delete arg2;
9050 }
9051 return resultobj;
9052 fail:
9053 {
9054 if (temp2)
9055 delete arg2;
9056 }
9057 return NULL;
9058}
9059
9060
9061static PyObject *_wrap_LanguageInfo_Description_get(PyObject *self, PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj;
9063 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
9064 wxString *result;
9065 PyObject * obj0 = 0 ;
9066 char *kwnames[] = {
9067 (char *) "self", NULL
9068 };
9069
9070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:LanguageInfo_Description_get",kwnames,&obj0)) goto fail;
9071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9073 result = (wxString *)& ((arg1)->Description);
9074
9075 {
9076#if wxUSE_UNICODE
9077 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9078#else
9079 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9080#endif
9081 }
9082 return resultobj;
9083 fail:
9084 return NULL;
9085}
9086
9087
9088static PyObject * LanguageInfo_swigregister(PyObject *self, PyObject *args) {
9089 PyObject *obj;
9090 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9091 SWIG_TypeClientData(SWIGTYPE_p_wxLanguageInfo, obj);
9092 Py_INCREF(obj);
9093 return Py_BuildValue((char *)"");
9094}
9095static PyObject *_wrap_new_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9096 PyObject *resultobj;
15817c7e 9097 int arg1 = (int) -1 ;
d55e5bfc
RD
9098 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9099 wxLocale *result;
9100 PyObject * obj0 = 0 ;
9101 PyObject * obj1 = 0 ;
9102 char *kwnames[] = {
9103 (char *) "language",(char *) "flags", NULL
9104 };
9105
9106 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) goto fail;
9107 if (obj0) {
9108 arg1 = (int) SWIG_AsInt(obj0);
9109 if (PyErr_Occurred()) SWIG_fail;
9110 }
9111 if (obj1) {
9112 arg2 = (int) SWIG_AsInt(obj1);
9113 if (PyErr_Occurred()) SWIG_fail;
9114 }
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
15817c7e 9117 result = (wxLocale *)new_wxLocale(arg1,arg2);
d55e5bfc
RD
9118
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 1);
9123 return resultobj;
9124 fail:
9125 return NULL;
9126}
9127
9128
9129static PyObject *_wrap_delete_Locale(PyObject *self, PyObject *args, PyObject *kwargs) {
9130 PyObject *resultobj;
9131 wxLocale *arg1 = (wxLocale *) 0 ;
9132 PyObject * obj0 = 0 ;
9133 char *kwnames[] = {
9134 (char *) "self", NULL
9135 };
9136
9137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_Locale",kwnames,&obj0)) goto fail;
9138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9140 {
9141 PyThreadState* __tstate = wxPyBeginAllowThreads();
9142 delete arg1;
9143
9144 wxPyEndAllowThreads(__tstate);
9145 if (PyErr_Occurred()) SWIG_fail;
9146 }
9147 Py_INCREF(Py_None); resultobj = Py_None;
9148 return resultobj;
9149 fail:
9150 return NULL;
9151}
9152
9153
9154static PyObject *_wrap_Locale_Init1(PyObject *self, PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj;
9156 wxLocale *arg1 = (wxLocale *) 0 ;
9157 wxString *arg2 = 0 ;
9158 wxString const &arg3_defvalue = wxPyEmptyString ;
9159 wxString *arg3 = (wxString *) &arg3_defvalue ;
9160 wxString const &arg4_defvalue = wxPyEmptyString ;
9161 wxString *arg4 = (wxString *) &arg4_defvalue ;
9162 bool arg5 = (bool) True ;
9163 bool arg6 = (bool) False ;
9164 bool result;
9165 bool temp2 = False ;
9166 bool temp3 = False ;
9167 bool temp4 = False ;
9168 PyObject * obj0 = 0 ;
9169 PyObject * obj1 = 0 ;
9170 PyObject * obj2 = 0 ;
9171 PyObject * obj3 = 0 ;
9172 PyObject * obj4 = 0 ;
9173 PyObject * obj5 = 0 ;
9174 char *kwnames[] = {
9175 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
9176 };
9177
9178 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
9179 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9180 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9181 {
9182 arg2 = wxString_in_helper(obj1);
9183 if (arg2 == NULL) SWIG_fail;
9184 temp2 = True;
9185 }
9186 if (obj2) {
9187 {
9188 arg3 = wxString_in_helper(obj2);
9189 if (arg3 == NULL) SWIG_fail;
9190 temp3 = True;
9191 }
9192 }
9193 if (obj3) {
9194 {
9195 arg4 = wxString_in_helper(obj3);
9196 if (arg4 == NULL) SWIG_fail;
9197 temp4 = True;
9198 }
9199 }
9200 if (obj4) {
9201 arg5 = (bool) SWIG_AsBool(obj4);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 if (obj5) {
9205 arg6 = (bool) SWIG_AsBool(obj5);
9206 if (PyErr_Occurred()) SWIG_fail;
9207 }
9208 {
9209 PyThreadState* __tstate = wxPyBeginAllowThreads();
9210 result = (bool)(arg1)->Init((wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
9211
9212 wxPyEndAllowThreads(__tstate);
9213 if (PyErr_Occurred()) SWIG_fail;
9214 }
9215 {
9216 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9217 }
9218 {
9219 if (temp2)
9220 delete arg2;
9221 }
9222 {
9223 if (temp3)
9224 delete arg3;
9225 }
9226 {
9227 if (temp4)
9228 delete arg4;
9229 }
9230 return resultobj;
9231 fail:
9232 {
9233 if (temp2)
9234 delete arg2;
9235 }
9236 {
9237 if (temp3)
9238 delete arg3;
9239 }
9240 {
9241 if (temp4)
9242 delete arg4;
9243 }
9244 return NULL;
9245}
9246
9247
9248static PyObject *_wrap_Locale_Init2(PyObject *self, PyObject *args, PyObject *kwargs) {
9249 PyObject *resultobj;
9250 wxLocale *arg1 = (wxLocale *) 0 ;
9251 int arg2 = (int) wxLANGUAGE_DEFAULT ;
9252 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
9253 bool result;
9254 PyObject * obj0 = 0 ;
9255 PyObject * obj1 = 0 ;
9256 PyObject * obj2 = 0 ;
9257 char *kwnames[] = {
9258 (char *) "self",(char *) "language",(char *) "flags", NULL
9259 };
9260
9261 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) goto fail;
9262 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9263 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9264 if (obj1) {
9265 arg2 = (int) SWIG_AsInt(obj1);
9266 if (PyErr_Occurred()) SWIG_fail;
9267 }
9268 if (obj2) {
9269 arg3 = (int) SWIG_AsInt(obj2);
9270 if (PyErr_Occurred()) SWIG_fail;
9271 }
9272 {
9273 PyThreadState* __tstate = wxPyBeginAllowThreads();
9274 result = (bool)(arg1)->Init(arg2,arg3);
9275
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 {
9280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9281 }
9282 return resultobj;
9283 fail:
9284 return NULL;
9285}
9286
9287
9288static PyObject *_wrap_Locale_GetSystemLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9289 PyObject *resultobj;
9290 int result;
9291 char *kwnames[] = {
9292 NULL
9293 };
9294
9295 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemLanguage",kwnames)) goto fail;
9296 {
9297 PyThreadState* __tstate = wxPyBeginAllowThreads();
9298 result = (int)wxLocale::GetSystemLanguage();
9299
9300 wxPyEndAllowThreads(__tstate);
9301 if (PyErr_Occurred()) SWIG_fail;
9302 }
9303 resultobj = SWIG_FromInt((int)result);
9304 return resultobj;
9305 fail:
9306 return NULL;
9307}
9308
9309
9310static PyObject *_wrap_Locale_GetSystemEncoding(PyObject *self, PyObject *args, PyObject *kwargs) {
9311 PyObject *resultobj;
9312 int result;
9313 char *kwnames[] = {
9314 NULL
9315 };
9316
9317 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncoding",kwnames)) goto fail;
9318 {
9319 PyThreadState* __tstate = wxPyBeginAllowThreads();
9320 result = (int)wxLocale::GetSystemEncoding();
9321
9322 wxPyEndAllowThreads(__tstate);
9323 if (PyErr_Occurred()) SWIG_fail;
9324 }
9325 resultobj = SWIG_FromInt((int)result);
9326 return resultobj;
9327 fail:
9328 return NULL;
9329}
9330
9331
9332static PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *self, PyObject *args, PyObject *kwargs) {
9333 PyObject *resultobj;
9334 wxString result;
9335 char *kwnames[] = {
9336 NULL
9337 };
9338
9339 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Locale_GetSystemEncodingName",kwnames)) goto fail;
9340 {
9341 PyThreadState* __tstate = wxPyBeginAllowThreads();
9342 result = wxLocale::GetSystemEncodingName();
9343
9344 wxPyEndAllowThreads(__tstate);
9345 if (PyErr_Occurred()) SWIG_fail;
9346 }
9347 {
9348#if wxUSE_UNICODE
9349 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9350#else
9351 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9352#endif
9353 }
9354 return resultobj;
9355 fail:
9356 return NULL;
9357}
9358
9359
9360static PyObject *_wrap_Locale_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj;
9362 wxLocale *arg1 = (wxLocale *) 0 ;
9363 bool result;
9364 PyObject * obj0 = 0 ;
9365 char *kwnames[] = {
9366 (char *) "self", NULL
9367 };
9368
9369 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsOk",kwnames,&obj0)) goto fail;
9370 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9371 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9372 {
9373 PyThreadState* __tstate = wxPyBeginAllowThreads();
9374 result = (bool)((wxLocale const *)arg1)->IsOk();
9375
9376 wxPyEndAllowThreads(__tstate);
9377 if (PyErr_Occurred()) SWIG_fail;
9378 }
9379 {
9380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9381 }
9382 return resultobj;
9383 fail:
9384 return NULL;
9385}
9386
9387
9388static PyObject *_wrap_Locale_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9389 PyObject *resultobj;
9390 wxLocale *arg1 = (wxLocale *) 0 ;
9391 wxString result;
9392 PyObject * obj0 = 0 ;
9393 char *kwnames[] = {
9394 (char *) "self", NULL
9395 };
9396
9397 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLocale",kwnames,&obj0)) goto fail;
9398 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9399 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9400 {
9401 PyThreadState* __tstate = wxPyBeginAllowThreads();
9402 result = ((wxLocale const *)arg1)->GetLocale();
9403
9404 wxPyEndAllowThreads(__tstate);
9405 if (PyErr_Occurred()) SWIG_fail;
9406 }
9407 {
9408#if wxUSE_UNICODE
9409 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9410#else
9411 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9412#endif
9413 }
9414 return resultobj;
9415 fail:
9416 return NULL;
9417}
9418
9419
9420static PyObject *_wrap_Locale_GetLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9421 PyObject *resultobj;
9422 wxLocale *arg1 = (wxLocale *) 0 ;
9423 int result;
9424 PyObject * obj0 = 0 ;
9425 char *kwnames[] = {
9426 (char *) "self", NULL
9427 };
9428
9429 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguage",kwnames,&obj0)) goto fail;
9430 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9431 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 result = (int)((wxLocale const *)arg1)->GetLanguage();
9435
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_FromInt((int)result);
9440 return resultobj;
9441 fail:
9442 return NULL;
9443}
9444
9445
9446static PyObject *_wrap_Locale_GetSysName(PyObject *self, PyObject *args, PyObject *kwargs) {
9447 PyObject *resultobj;
9448 wxLocale *arg1 = (wxLocale *) 0 ;
9449 wxString result;
9450 PyObject * obj0 = 0 ;
9451 char *kwnames[] = {
9452 (char *) "self", NULL
9453 };
9454
9455 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetSysName",kwnames,&obj0)) goto fail;
9456 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9457 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9458 {
9459 PyThreadState* __tstate = wxPyBeginAllowThreads();
9460 result = ((wxLocale const *)arg1)->GetSysName();
9461
9462 wxPyEndAllowThreads(__tstate);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 {
9466#if wxUSE_UNICODE
9467 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9468#else
9469 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9470#endif
9471 }
9472 return resultobj;
9473 fail:
9474 return NULL;
9475}
9476
9477
9478static PyObject *_wrap_Locale_GetCanonicalName(PyObject *self, PyObject *args, PyObject *kwargs) {
9479 PyObject *resultobj;
9480 wxLocale *arg1 = (wxLocale *) 0 ;
9481 wxString result;
9482 PyObject * obj0 = 0 ;
9483 char *kwnames[] = {
9484 (char *) "self", NULL
9485 };
9486
9487 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetCanonicalName",kwnames,&obj0)) goto fail;
9488 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9489 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9490 {
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 result = ((wxLocale const *)arg1)->GetCanonicalName();
9493
9494 wxPyEndAllowThreads(__tstate);
9495 if (PyErr_Occurred()) SWIG_fail;
9496 }
9497 {
9498#if wxUSE_UNICODE
9499 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9500#else
9501 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9502#endif
9503 }
9504 return resultobj;
9505 fail:
9506 return NULL;
9507}
9508
9509
9510static PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *self, PyObject *args, PyObject *kwargs) {
9511 PyObject *resultobj;
9512 wxString *arg1 = 0 ;
9513 bool temp1 = False ;
9514 PyObject * obj0 = 0 ;
9515 char *kwnames[] = {
9516 (char *) "prefix", NULL
9517 };
9518
9519 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) goto fail;
9520 {
9521 arg1 = wxString_in_helper(obj0);
9522 if (arg1 == NULL) SWIG_fail;
9523 temp1 = True;
9524 }
9525 {
9526 PyThreadState* __tstate = wxPyBeginAllowThreads();
9527 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
9528
9529 wxPyEndAllowThreads(__tstate);
9530 if (PyErr_Occurred()) SWIG_fail;
9531 }
9532 Py_INCREF(Py_None); resultobj = Py_None;
9533 {
9534 if (temp1)
9535 delete arg1;
9536 }
9537 return resultobj;
9538 fail:
9539 {
9540 if (temp1)
9541 delete arg1;
9542 }
9543 return NULL;
9544}
9545
9546
9547static PyObject *_wrap_Locale_AddCatalog(PyObject *self, PyObject *args, PyObject *kwargs) {
9548 PyObject *resultobj;
9549 wxLocale *arg1 = (wxLocale *) 0 ;
9550 wxString *arg2 = 0 ;
9551 bool result;
9552 bool temp2 = False ;
9553 PyObject * obj0 = 0 ;
9554 PyObject * obj1 = 0 ;
9555 char *kwnames[] = {
9556 (char *) "self",(char *) "szDomain", NULL
9557 };
9558
9559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) goto fail;
9560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9562 {
9563 arg2 = wxString_in_helper(obj1);
9564 if (arg2 == NULL) SWIG_fail;
9565 temp2 = True;
9566 }
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
9570
9571 wxPyEndAllowThreads(__tstate);
9572 if (PyErr_Occurred()) SWIG_fail;
9573 }
9574 {
9575 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9576 }
9577 {
9578 if (temp2)
9579 delete arg2;
9580 }
9581 return resultobj;
9582 fail:
9583 {
9584 if (temp2)
9585 delete arg2;
9586 }
9587 return NULL;
9588}
9589
9590
9591static PyObject *_wrap_Locale_IsLoaded(PyObject *self, PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj;
9593 wxLocale *arg1 = (wxLocale *) 0 ;
9594 wxString *arg2 = 0 ;
9595 bool result;
9596 bool temp2 = False ;
9597 PyObject * obj0 = 0 ;
9598 PyObject * obj1 = 0 ;
9599 char *kwnames[] = {
9600 (char *) "self",(char *) "szDomain", NULL
9601 };
9602
9603 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) goto fail;
9604 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9605 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9606 {
9607 arg2 = wxString_in_helper(obj1);
9608 if (arg2 == NULL) SWIG_fail;
9609 temp2 = True;
9610 }
9611 {
9612 PyThreadState* __tstate = wxPyBeginAllowThreads();
9613 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
9614
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 {
9619 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9620 }
9621 {
9622 if (temp2)
9623 delete arg2;
9624 }
9625 return resultobj;
9626 fail:
9627 {
9628 if (temp2)
9629 delete arg2;
9630 }
9631 return NULL;
9632}
9633
9634
9635static PyObject *_wrap_Locale_GetLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9636 PyObject *resultobj;
9637 int arg1 ;
9638 wxLanguageInfo *result;
9639 PyObject * obj0 = 0 ;
9640 char *kwnames[] = {
9641 (char *) "lang", NULL
9642 };
9643
9644 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) goto fail;
9645 arg1 = (int) SWIG_AsInt(obj0);
9646 if (PyErr_Occurred()) SWIG_fail;
9647 {
9648 PyThreadState* __tstate = wxPyBeginAllowThreads();
9649 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
9650
9651 wxPyEndAllowThreads(__tstate);
9652 if (PyErr_Occurred()) SWIG_fail;
9653 }
9654 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9655 return resultobj;
9656 fail:
9657 return NULL;
9658}
9659
9660
9661static PyObject *_wrap_Locale_GetLanguageName(PyObject *self, PyObject *args, PyObject *kwargs) {
9662 PyObject *resultobj;
9663 int arg1 ;
9664 wxString result;
9665 PyObject * obj0 = 0 ;
9666 char *kwnames[] = {
9667 (char *) "lang", NULL
9668 };
9669
9670 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) goto fail;
9671 arg1 = (int) SWIG_AsInt(obj0);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 {
9674 PyThreadState* __tstate = wxPyBeginAllowThreads();
9675 result = wxLocale::GetLanguageName(arg1);
9676
9677 wxPyEndAllowThreads(__tstate);
9678 if (PyErr_Occurred()) SWIG_fail;
9679 }
9680 {
9681#if wxUSE_UNICODE
9682 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9683#else
9684 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9685#endif
9686 }
9687 return resultobj;
9688 fail:
9689 return NULL;
9690}
9691
9692
9693static PyObject *_wrap_Locale_FindLanguageInfo(PyObject *self, PyObject *args, PyObject *kwargs) {
9694 PyObject *resultobj;
9695 wxString *arg1 = 0 ;
9696 wxLanguageInfo *result;
9697 bool temp1 = False ;
9698 PyObject * obj0 = 0 ;
9699 char *kwnames[] = {
9700 (char *) "locale", NULL
9701 };
9702
9703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) goto fail;
9704 {
9705 arg1 = wxString_in_helper(obj0);
9706 if (arg1 == NULL) SWIG_fail;
9707 temp1 = True;
9708 }
9709 {
9710 PyThreadState* __tstate = wxPyBeginAllowThreads();
9711 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
9712
9713 wxPyEndAllowThreads(__tstate);
9714 if (PyErr_Occurred()) SWIG_fail;
9715 }
9716 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLanguageInfo, 0);
9717 {
9718 if (temp1)
9719 delete arg1;
9720 }
9721 return resultobj;
9722 fail:
9723 {
9724 if (temp1)
9725 delete arg1;
9726 }
9727 return NULL;
9728}
9729
9730
9731static PyObject *_wrap_Locale_AddLanguage(PyObject *self, PyObject *args, PyObject *kwargs) {
9732 PyObject *resultobj;
9733 wxLanguageInfo *arg1 = 0 ;
9734 PyObject * obj0 = 0 ;
9735 char *kwnames[] = {
9736 (char *) "info", NULL
9737 };
9738
9739 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) goto fail;
9740 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLanguageInfo,
9741 SWIG_POINTER_EXCEPTION | 0)) == -1)
9742 SWIG_fail;
9743 if (arg1 == NULL) {
9744 PyErr_SetString(PyExc_TypeError,"null reference");
9745 SWIG_fail;
9746 }
9747 {
9748 PyThreadState* __tstate = wxPyBeginAllowThreads();
9749 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
9750
9751 wxPyEndAllowThreads(__tstate);
9752 if (PyErr_Occurred()) SWIG_fail;
9753 }
9754 Py_INCREF(Py_None); resultobj = Py_None;
9755 return resultobj;
9756 fail:
9757 return NULL;
9758}
9759
9760
9761static PyObject *_wrap_Locale_GetString(PyObject *self, PyObject *args, PyObject *kwargs) {
9762 PyObject *resultobj;
9763 wxLocale *arg1 = (wxLocale *) 0 ;
9764 wxString *arg2 = 0 ;
9765 wxString const &arg3_defvalue = wxPyEmptyString ;
9766 wxString *arg3 = (wxString *) &arg3_defvalue ;
9767 wxString result;
9768 bool temp2 = False ;
9769 bool temp3 = False ;
9770 PyObject * obj0 = 0 ;
9771 PyObject * obj1 = 0 ;
9772 PyObject * obj2 = 0 ;
9773 char *kwnames[] = {
9774 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
9775 };
9776
9777 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail;
9778 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9779 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9780 {
9781 arg2 = wxString_in_helper(obj1);
9782 if (arg2 == NULL) SWIG_fail;
9783 temp2 = True;
9784 }
9785 if (obj2) {
9786 {
9787 arg3 = wxString_in_helper(obj2);
9788 if (arg3 == NULL) SWIG_fail;
9789 temp3 = True;
9790 }
9791 }
9792 {
9793 PyThreadState* __tstate = wxPyBeginAllowThreads();
9794 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
9795
9796 wxPyEndAllowThreads(__tstate);
9797 if (PyErr_Occurred()) SWIG_fail;
9798 }
9799 {
9800#if wxUSE_UNICODE
9801 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9802#else
9803 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9804#endif
9805 }
9806 {
9807 if (temp2)
9808 delete arg2;
9809 }
9810 {
9811 if (temp3)
9812 delete arg3;
9813 }
9814 return resultobj;
9815 fail:
9816 {
9817 if (temp2)
9818 delete arg2;
9819 }
9820 {
9821 if (temp3)
9822 delete arg3;
9823 }
9824 return NULL;
9825}
9826
9827
9828static PyObject *_wrap_Locale_GetName(PyObject *self, PyObject *args, PyObject *kwargs) {
9829 PyObject *resultobj;
9830 wxLocale *arg1 = (wxLocale *) 0 ;
9831 wxString *result;
9832 PyObject * obj0 = 0 ;
9833 char *kwnames[] = {
9834 (char *) "self", NULL
9835 };
9836
9837 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetName",kwnames,&obj0)) goto fail;
9838 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxLocale,
9839 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
9840 {
9841 PyThreadState* __tstate = wxPyBeginAllowThreads();
9842 {
9843 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
9844 result = (wxString *) &_result_ref;
9845 }
9846
9847 wxPyEndAllowThreads(__tstate);
9848 if (PyErr_Occurred()) SWIG_fail;
9849 }
9850 {
9851#if wxUSE_UNICODE
9852 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9853#else
9854 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9855#endif
9856 }
9857 return resultobj;
9858 fail:
9859 return NULL;
9860}
9861
9862
9863static PyObject * Locale_swigregister(PyObject *self, PyObject *args) {
9864 PyObject *obj;
9865 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
9866 SWIG_TypeClientData(SWIGTYPE_p_wxLocale, obj);
9867 Py_INCREF(obj);
9868 return Py_BuildValue((char *)"");
9869}
9870static PyObject *_wrap_GetLocale(PyObject *self, PyObject *args, PyObject *kwargs) {
9871 PyObject *resultobj;
9872 wxLocale *result;
9873 char *kwnames[] = {
9874 NULL
9875 };
9876
9877 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":GetLocale",kwnames)) goto fail;
9878 {
9879 PyThreadState* __tstate = wxPyBeginAllowThreads();
9880 result = (wxLocale *)wxGetLocale();
9881
9882 wxPyEndAllowThreads(__tstate);
9883 if (PyErr_Occurred()) SWIG_fail;
9884 }
9885 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxLocale, 0);
9886 return resultobj;
9887 fail:
9888 return NULL;
9889}
9890
9891
9892static PyObject *_wrap_GetTranslation__SWIG_0(PyObject *self, PyObject *args) {
9893 PyObject *resultobj;
9894 wxString *arg1 = 0 ;
9895 wxString result;
9896 bool temp1 = False ;
9897 PyObject * obj0 = 0 ;
9898
9899 if(!PyArg_ParseTuple(args,(char *)"O:GetTranslation",&obj0)) goto fail;
9900 {
9901 arg1 = wxString_in_helper(obj0);
9902 if (arg1 == NULL) SWIG_fail;
9903 temp1 = True;
9904 }
9905 {
9906 PyThreadState* __tstate = wxPyBeginAllowThreads();
9907 result = wxGetTranslation((wxString const &)*arg1);
9908
9909 wxPyEndAllowThreads(__tstate);
9910 if (PyErr_Occurred()) SWIG_fail;
9911 }
9912 {
9913#if wxUSE_UNICODE
9914 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9915#else
9916 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9917#endif
9918 }
9919 {
9920 if (temp1)
9921 delete arg1;
9922 }
9923 return resultobj;
9924 fail:
9925 {
9926 if (temp1)
9927 delete arg1;
9928 }
9929 return NULL;
9930}
9931
9932
9933static PyObject *_wrap_GetTranslation__SWIG_1(PyObject *self, PyObject *args) {
9934 PyObject *resultobj;
9935 wxString *arg1 = 0 ;
9936 wxString *arg2 = 0 ;
9937 size_t arg3 ;
9938 wxString result;
9939 bool temp1 = False ;
9940 bool temp2 = False ;
9941 PyObject * obj0 = 0 ;
9942 PyObject * obj1 = 0 ;
9943 PyObject * obj2 = 0 ;
9944
9945 if(!PyArg_ParseTuple(args,(char *)"OOO:GetTranslation",&obj0,&obj1,&obj2)) goto fail;
9946 {
9947 arg1 = wxString_in_helper(obj0);
9948 if (arg1 == NULL) SWIG_fail;
9949 temp1 = True;
9950 }
9951 {
9952 arg2 = wxString_in_helper(obj1);
9953 if (arg2 == NULL) SWIG_fail;
9954 temp2 = True;
9955 }
9956 arg3 = (size_t) SWIG_AsUnsignedLong(obj2);
9957 if (PyErr_Occurred()) SWIG_fail;
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
9961
9962 wxPyEndAllowThreads(__tstate);
9963 if (PyErr_Occurred()) SWIG_fail;
9964 }
9965 {
9966#if wxUSE_UNICODE
9967 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9968#else
9969 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9970#endif
9971 }
9972 {
9973 if (temp1)
9974 delete arg1;
9975 }
9976 {
9977 if (temp2)
9978 delete arg2;
9979 }
9980 return resultobj;
9981 fail:
9982 {
9983 if (temp1)
9984 delete arg1;
9985 }
9986 {
9987 if (temp2)
9988 delete arg2;
9989 }
9990 return NULL;
9991}
9992
9993
9994static PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
9995 int argc;
9996 PyObject *argv[4];
9997 int ii;
9998
9999 argc = PyObject_Length(args);
10000 for (ii = 0; (ii < argc) && (ii < 3); ii++) {
10001 argv[ii] = PyTuple_GetItem(args,ii);
10002 }
10003 if (argc == 1) {
10004 int _v;
10005 {
10006 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10007 }
10008 if (_v) {
10009 return _wrap_GetTranslation__SWIG_0(self,args);
10010 }
10011 }
10012 if (argc == 3) {
10013 int _v;
10014 {
10015 _v = PyString_Check(argv[0]) || PyUnicode_Check(argv[0]);
10016 }
10017 if (_v) {
10018 {
10019 _v = PyString_Check(argv[1]) || PyUnicode_Check(argv[1]);
10020 }
10021 if (_v) {
10022 _v = SWIG_CheckUnsignedLong(argv[2]);
10023 if (_v) {
10024 return _wrap_GetTranslation__SWIG_1(self,args);
10025 }
10026 }
10027 }
10028 }
10029
10030 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'GetTranslation'");
10031 return NULL;
10032}
10033
10034
10035static PyObject *_wrap_new_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10036 PyObject *resultobj;
10037 wxEncodingConverter *result;
10038 char *kwnames[] = {
10039 NULL
10040 };
10041
10042 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_EncodingConverter",kwnames)) goto fail;
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 result = (wxEncodingConverter *)new wxEncodingConverter();
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEncodingConverter, 1);
10051 return resultobj;
10052 fail:
10053 return NULL;
10054}
10055
10056
10057static PyObject *_wrap_delete_EncodingConverter(PyObject *self, PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj;
10059 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10060 PyObject * obj0 = 0 ;
10061 char *kwnames[] = {
10062 (char *) "self", NULL
10063 };
10064
10065 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_EncodingConverter",kwnames,&obj0)) goto fail;
10066 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10067 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10068 {
10069 PyThreadState* __tstate = wxPyBeginAllowThreads();
10070 delete arg1;
10071
10072 wxPyEndAllowThreads(__tstate);
10073 if (PyErr_Occurred()) SWIG_fail;
10074 }
10075 Py_INCREF(Py_None); resultobj = Py_None;
10076 return resultobj;
10077 fail:
10078 return NULL;
10079}
10080
10081
10082static PyObject *_wrap_EncodingConverter_Init(PyObject *self, PyObject *args, PyObject *kwargs) {
10083 PyObject *resultobj;
10084 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10085 int arg2 ;
10086 int arg3 ;
10087 int arg4 = (int) wxCONVERT_STRICT ;
10088 bool result;
10089 PyObject * obj0 = 0 ;
10090 PyObject * obj1 = 0 ;
10091 PyObject * obj2 = 0 ;
10092 PyObject * obj3 = 0 ;
10093 char *kwnames[] = {
10094 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
10095 };
10096
10097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
10098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10100 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10101 if (PyErr_Occurred()) SWIG_fail;
10102 arg3 = (wxFontEncoding) SWIG_AsInt(obj2);
10103 if (PyErr_Occurred()) SWIG_fail;
10104 if (obj3) {
10105 arg4 = (int) SWIG_AsInt(obj3);
10106 if (PyErr_Occurred()) SWIG_fail;
10107 }
10108 {
10109 PyThreadState* __tstate = wxPyBeginAllowThreads();
10110 result = (bool)(arg1)->Init((wxFontEncoding )arg2,(wxFontEncoding )arg3,arg4);
10111
10112 wxPyEndAllowThreads(__tstate);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 }
10115 {
10116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10117 }
10118 return resultobj;
10119 fail:
10120 return NULL;
10121}
10122
10123
10124static PyObject *_wrap_EncodingConverter_Convert(PyObject *self, PyObject *args, PyObject *kwargs) {
10125 PyObject *resultobj;
10126 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
10127 wxString *arg2 = 0 ;
10128 wxString result;
10129 bool temp2 = False ;
10130 PyObject * obj0 = 0 ;
10131 PyObject * obj1 = 0 ;
10132 char *kwnames[] = {
10133 (char *) "self",(char *) "input", NULL
10134 };
10135
10136 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) goto fail;
10137 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEncodingConverter,
10138 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10139 {
10140 arg2 = wxString_in_helper(obj1);
10141 if (arg2 == NULL) SWIG_fail;
10142 temp2 = True;
10143 }
10144 {
10145 PyThreadState* __tstate = wxPyBeginAllowThreads();
10146 result = (arg1)->Convert((wxString const &)*arg2);
10147
10148 wxPyEndAllowThreads(__tstate);
10149 if (PyErr_Occurred()) SWIG_fail;
10150 }
10151 {
10152#if wxUSE_UNICODE
10153 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10154#else
10155 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10156#endif
10157 }
10158 {
10159 if (temp2)
10160 delete arg2;
10161 }
10162 return resultobj;
10163 fail:
10164 {
10165 if (temp2)
10166 delete arg2;
10167 }
10168 return NULL;
10169}
10170
10171
10172static PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10173 PyObject *resultobj;
10174 int arg1 ;
10175 int arg2 = (int) wxPLATFORM_CURRENT ;
10176 wxFontEncodingArray result;
10177 PyObject * obj0 = 0 ;
10178 PyObject * obj1 = 0 ;
10179 char *kwnames[] = {
10180 (char *) "enc",(char *) "platform", NULL
10181 };
10182
10183 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) goto fail;
10184 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10185 if (PyErr_Occurred()) SWIG_fail;
10186 if (obj1) {
10187 arg2 = (int) SWIG_AsInt(obj1);
10188 if (PyErr_Occurred()) SWIG_fail;
10189 }
10190 {
10191 PyThreadState* __tstate = wxPyBeginAllowThreads();
10192 result = wxEncodingConverter::GetPlatformEquivalents((wxFontEncoding )arg1,arg2);
10193
10194 wxPyEndAllowThreads(__tstate);
10195 if (PyErr_Occurred()) SWIG_fail;
10196 }
10197 {
10198 resultobj = PyList_New(0);
10199 for (size_t i=0; i < (&result)->GetCount(); i++) {
10200 PyObject* number = PyInt_FromLong((&result)->Item(i));
10201 PyList_Append(resultobj, number);
10202 Py_DECREF(number);
10203 }
10204 }
10205 return resultobj;
10206 fail:
10207 return NULL;
10208}
10209
10210
10211static PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *self, PyObject *args, PyObject *kwargs) {
10212 PyObject *resultobj;
10213 int arg1 ;
10214 wxFontEncodingArray result;
10215 PyObject * obj0 = 0 ;
10216 char *kwnames[] = {
10217 (char *) "enc", NULL
10218 };
10219
10220 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) goto fail;
10221 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10222 if (PyErr_Occurred()) SWIG_fail;
10223 {
10224 PyThreadState* __tstate = wxPyBeginAllowThreads();
10225 result = wxEncodingConverter::GetAllEquivalents((wxFontEncoding )arg1);
10226
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 {
10231 resultobj = PyList_New(0);
10232 for (size_t i=0; i < (&result)->GetCount(); i++) {
10233 PyObject* number = PyInt_FromLong((&result)->Item(i));
10234 PyList_Append(resultobj, number);
10235 Py_DECREF(number);
10236 }
10237 }
10238 return resultobj;
10239 fail:
10240 return NULL;
10241}
10242
10243
10244static PyObject *_wrap_EncodingConverter_CanConvert(PyObject *self, PyObject *args, PyObject *kwargs) {
10245 PyObject *resultobj;
10246 int arg1 ;
10247 int arg2 ;
10248 bool result;
10249 PyObject * obj0 = 0 ;
10250 PyObject * obj1 = 0 ;
10251 char *kwnames[] = {
10252 (char *) "encIn",(char *) "encOut", NULL
10253 };
10254
10255 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) goto fail;
10256 arg1 = (wxFontEncoding) SWIG_AsInt(obj0);
10257 if (PyErr_Occurred()) SWIG_fail;
10258 arg2 = (wxFontEncoding) SWIG_AsInt(obj1);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 {
10261 PyThreadState* __tstate = wxPyBeginAllowThreads();
10262 result = (bool)wxEncodingConverter::CanConvert((wxFontEncoding )arg1,(wxFontEncoding )arg2);
10263
10264 wxPyEndAllowThreads(__tstate);
10265 if (PyErr_Occurred()) SWIG_fail;
10266 }
10267 {
10268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10269 }
10270 return resultobj;
10271 fail:
10272 return NULL;
10273}
10274
10275
10276static PyObject * EncodingConverter_swigregister(PyObject *self, PyObject *args) {
10277 PyObject *obj;
10278 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
10279 SWIG_TypeClientData(SWIGTYPE_p_wxEncodingConverter, obj);
10280 Py_INCREF(obj);
10281 return Py_BuildValue((char *)"");
10282}
10283static PyObject *_wrap_delete_DC(PyObject *self, PyObject *args, PyObject *kwargs) {
10284 PyObject *resultobj;
10285 wxDC *arg1 = (wxDC *) 0 ;
10286 PyObject * obj0 = 0 ;
10287 char *kwnames[] = {
10288 (char *) "self", NULL
10289 };
10290
10291 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DC",kwnames,&obj0)) goto fail;
10292 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10293 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10294 {
10295 PyThreadState* __tstate = wxPyBeginAllowThreads();
10296 delete arg1;
10297
10298 wxPyEndAllowThreads(__tstate);
10299 if (PyErr_Occurred()) SWIG_fail;
10300 }
10301 Py_INCREF(Py_None); resultobj = Py_None;
10302 return resultobj;
10303 fail:
10304 return NULL;
10305}
10306
10307
10308static PyObject *_wrap_DC_BeginDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10309 PyObject *resultobj;
10310 wxDC *arg1 = (wxDC *) 0 ;
10311 PyObject * obj0 = 0 ;
10312 char *kwnames[] = {
10313 (char *) "self", NULL
10314 };
10315
10316 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_BeginDrawing",kwnames,&obj0)) goto fail;
10317 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10318 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10319 {
10320 PyThreadState* __tstate = wxPyBeginAllowThreads();
10321 (arg1)->BeginDrawing();
10322
10323 wxPyEndAllowThreads(__tstate);
10324 if (PyErr_Occurred()) SWIG_fail;
10325 }
10326 Py_INCREF(Py_None); resultobj = Py_None;
10327 return resultobj;
10328 fail:
10329 return NULL;
10330}
10331
10332
10333static PyObject *_wrap_DC_EndDrawing(PyObject *self, PyObject *args, PyObject *kwargs) {
10334 PyObject *resultobj;
10335 wxDC *arg1 = (wxDC *) 0 ;
10336 PyObject * obj0 = 0 ;
10337 char *kwnames[] = {
10338 (char *) "self", NULL
10339 };
10340
10341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDrawing",kwnames,&obj0)) goto fail;
10342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 (arg1)->EndDrawing();
10347
10348 wxPyEndAllowThreads(__tstate);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 Py_INCREF(Py_None); resultobj = Py_None;
10352 return resultobj;
10353 fail:
10354 return NULL;
10355}
10356
10357
d6c14a4c 10358static PyObject *_wrap_DC_FloodFill(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10359 PyObject *resultobj;
10360 wxDC *arg1 = (wxDC *) 0 ;
10361 int arg2 ;
10362 int arg3 ;
10363 wxColour *arg4 = 0 ;
10364 int arg5 = (int) wxFLOOD_SURFACE ;
10365 bool result;
10366 wxColour temp4 ;
10367 PyObject * obj0 = 0 ;
10368 PyObject * obj1 = 0 ;
10369 PyObject * obj2 = 0 ;
10370 PyObject * obj3 = 0 ;
10371 PyObject * obj4 = 0 ;
10372 char *kwnames[] = {
10373 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
10374 };
10375
d6c14a4c 10376 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10377 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10378 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10379 arg2 = (int) SWIG_AsInt(obj1);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 arg3 = (int) SWIG_AsInt(obj2);
10382 if (PyErr_Occurred()) SWIG_fail;
10383 {
10384 arg4 = &temp4;
10385 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
10386 }
10387 if (obj4) {
10388 arg5 = (int) SWIG_AsInt(obj4);
10389 if (PyErr_Occurred()) SWIG_fail;
10390 }
10391 {
10392 PyThreadState* __tstate = wxPyBeginAllowThreads();
10393 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
10394
10395 wxPyEndAllowThreads(__tstate);
10396 if (PyErr_Occurred()) SWIG_fail;
10397 }
10398 {
10399 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10400 }
10401 return resultobj;
10402 fail:
10403 return NULL;
10404}
10405
10406
d6c14a4c 10407static PyObject *_wrap_DC_FloodFillPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10408 PyObject *resultobj;
10409 wxDC *arg1 = (wxDC *) 0 ;
10410 wxPoint *arg2 = 0 ;
10411 wxColour *arg3 = 0 ;
10412 int arg4 = (int) wxFLOOD_SURFACE ;
10413 bool result;
10414 wxPoint temp2 ;
10415 wxColour temp3 ;
10416 PyObject * obj0 = 0 ;
10417 PyObject * obj1 = 0 ;
10418 PyObject * obj2 = 0 ;
10419 PyObject * obj3 = 0 ;
10420 char *kwnames[] = {
10421 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
10422 };
10423
d6c14a4c 10424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
10425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10427 {
10428 arg2 = &temp2;
10429 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10430 }
10431 {
10432 arg3 = &temp3;
10433 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
10434 }
10435 if (obj3) {
10436 arg4 = (int) SWIG_AsInt(obj3);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 {
10440 PyThreadState* __tstate = wxPyBeginAllowThreads();
10441 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
10442
10443 wxPyEndAllowThreads(__tstate);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 {
10447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10448 }
10449 return resultobj;
10450 fail:
10451 return NULL;
10452}
10453
10454
d6c14a4c 10455static PyObject *_wrap_DC_GetPixel(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10456 PyObject *resultobj;
10457 wxDC *arg1 = (wxDC *) 0 ;
10458 int arg2 ;
10459 int arg3 ;
10460 wxColour result;
10461 PyObject * obj0 = 0 ;
10462 PyObject * obj1 = 0 ;
10463 PyObject * obj2 = 0 ;
10464 char *kwnames[] = {
10465 (char *) "self",(char *) "x",(char *) "y", NULL
10466 };
10467
d6c14a4c 10468 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10469 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10470 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10471 arg2 = (int) SWIG_AsInt(obj1);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 arg3 = (int) SWIG_AsInt(obj2);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10477 result = wxDC_GetPixel(arg1,arg2,arg3);
d55e5bfc
RD
10478
10479 wxPyEndAllowThreads(__tstate);
10480 if (PyErr_Occurred()) SWIG_fail;
10481 }
10482 {
10483 wxColour * resultptr;
10484 resultptr = new wxColour((wxColour &) result);
10485 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10486 }
10487 return resultobj;
10488 fail:
10489 return NULL;
10490}
10491
10492
d6c14a4c 10493static PyObject *_wrap_DC_GetPixelPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10494 PyObject *resultobj;
10495 wxDC *arg1 = (wxDC *) 0 ;
10496 wxPoint *arg2 = 0 ;
10497 wxColour result;
10498 wxPoint temp2 ;
10499 PyObject * obj0 = 0 ;
10500 PyObject * obj1 = 0 ;
10501 char *kwnames[] = {
10502 (char *) "self",(char *) "pt", NULL
10503 };
10504
d6c14a4c 10505 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10506 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10507 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10508 {
10509 arg2 = &temp2;
10510 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10511 }
10512 {
10513 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 10514 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
d55e5bfc
RD
10515
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 {
10520 wxColour * resultptr;
10521 resultptr = new wxColour((wxColour &) result);
10522 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
10523 }
10524 return resultobj;
10525 fail:
10526 return NULL;
10527}
10528
10529
d6c14a4c 10530static PyObject *_wrap_DC_DrawLine(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10531 PyObject *resultobj;
10532 wxDC *arg1 = (wxDC *) 0 ;
10533 int arg2 ;
10534 int arg3 ;
10535 int arg4 ;
10536 int arg5 ;
10537 PyObject * obj0 = 0 ;
10538 PyObject * obj1 = 0 ;
10539 PyObject * obj2 = 0 ;
10540 PyObject * obj3 = 0 ;
10541 PyObject * obj4 = 0 ;
10542 char *kwnames[] = {
10543 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
10544 };
10545
d6c14a4c 10546 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10547 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10548 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10549 arg2 = (int) SWIG_AsInt(obj1);
10550 if (PyErr_Occurred()) SWIG_fail;
10551 arg3 = (int) SWIG_AsInt(obj2);
10552 if (PyErr_Occurred()) SWIG_fail;
10553 arg4 = (int) SWIG_AsInt(obj3);
10554 if (PyErr_Occurred()) SWIG_fail;
10555 arg5 = (int) SWIG_AsInt(obj4);
10556 if (PyErr_Occurred()) SWIG_fail;
10557 {
10558 PyThreadState* __tstate = wxPyBeginAllowThreads();
10559 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
10560
10561 wxPyEndAllowThreads(__tstate);
10562 if (PyErr_Occurred()) SWIG_fail;
10563 }
10564 Py_INCREF(Py_None); resultobj = Py_None;
10565 return resultobj;
10566 fail:
10567 return NULL;
10568}
10569
10570
d6c14a4c 10571static PyObject *_wrap_DC_DrawLinePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10572 PyObject *resultobj;
10573 wxDC *arg1 = (wxDC *) 0 ;
10574 wxPoint *arg2 = 0 ;
10575 wxPoint *arg3 = 0 ;
10576 wxPoint temp2 ;
10577 wxPoint temp3 ;
10578 PyObject * obj0 = 0 ;
10579 PyObject * obj1 = 0 ;
10580 PyObject * obj2 = 0 ;
10581 char *kwnames[] = {
10582 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
10583 };
10584
d6c14a4c 10585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10588 {
10589 arg2 = &temp2;
10590 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10591 }
10592 {
10593 arg3 = &temp3;
10594 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10595 }
10596 {
10597 PyThreadState* __tstate = wxPyBeginAllowThreads();
10598 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
10599
10600 wxPyEndAllowThreads(__tstate);
10601 if (PyErr_Occurred()) SWIG_fail;
10602 }
10603 Py_INCREF(Py_None); resultobj = Py_None;
10604 return resultobj;
10605 fail:
10606 return NULL;
10607}
10608
10609
d6c14a4c 10610static PyObject *_wrap_DC_CrossHair(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10611 PyObject *resultobj;
10612 wxDC *arg1 = (wxDC *) 0 ;
10613 int arg2 ;
10614 int arg3 ;
10615 PyObject * obj0 = 0 ;
10616 PyObject * obj1 = 0 ;
10617 PyObject * obj2 = 0 ;
10618 char *kwnames[] = {
10619 (char *) "self",(char *) "x",(char *) "y", NULL
10620 };
10621
d6c14a4c 10622 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10623 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10624 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10625 arg2 = (int) SWIG_AsInt(obj1);
10626 if (PyErr_Occurred()) SWIG_fail;
10627 arg3 = (int) SWIG_AsInt(obj2);
10628 if (PyErr_Occurred()) SWIG_fail;
10629 {
10630 PyThreadState* __tstate = wxPyBeginAllowThreads();
10631 (arg1)->CrossHair(arg2,arg3);
10632
10633 wxPyEndAllowThreads(__tstate);
10634 if (PyErr_Occurred()) SWIG_fail;
10635 }
10636 Py_INCREF(Py_None); resultobj = Py_None;
10637 return resultobj;
10638 fail:
10639 return NULL;
10640}
10641
10642
d6c14a4c 10643static PyObject *_wrap_DC_CrossHairPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10644 PyObject *resultobj;
10645 wxDC *arg1 = (wxDC *) 0 ;
10646 wxPoint *arg2 = 0 ;
10647 wxPoint temp2 ;
10648 PyObject * obj0 = 0 ;
10649 PyObject * obj1 = 0 ;
10650 char *kwnames[] = {
10651 (char *) "self",(char *) "pt", NULL
10652 };
10653
d6c14a4c 10654 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10655 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10656 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10657 {
10658 arg2 = &temp2;
10659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10660 }
10661 {
10662 PyThreadState* __tstate = wxPyBeginAllowThreads();
10663 (arg1)->CrossHair((wxPoint const &)*arg2);
10664
10665 wxPyEndAllowThreads(__tstate);
10666 if (PyErr_Occurred()) SWIG_fail;
10667 }
10668 Py_INCREF(Py_None); resultobj = Py_None;
10669 return resultobj;
10670 fail:
10671 return NULL;
10672}
10673
10674
d6c14a4c 10675static PyObject *_wrap_DC_DrawArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10676 PyObject *resultobj;
10677 wxDC *arg1 = (wxDC *) 0 ;
10678 int arg2 ;
10679 int arg3 ;
10680 int arg4 ;
10681 int arg5 ;
10682 int arg6 ;
10683 int arg7 ;
10684 PyObject * obj0 = 0 ;
10685 PyObject * obj1 = 0 ;
10686 PyObject * obj2 = 0 ;
10687 PyObject * obj3 = 0 ;
10688 PyObject * obj4 = 0 ;
10689 PyObject * obj5 = 0 ;
10690 PyObject * obj6 = 0 ;
10691 char *kwnames[] = {
10692 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
10693 };
10694
d6c14a4c 10695 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
10696 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10697 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10698 arg2 = (int) SWIG_AsInt(obj1);
10699 if (PyErr_Occurred()) SWIG_fail;
10700 arg3 = (int) SWIG_AsInt(obj2);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 arg4 = (int) SWIG_AsInt(obj3);
10703 if (PyErr_Occurred()) SWIG_fail;
10704 arg5 = (int) SWIG_AsInt(obj4);
10705 if (PyErr_Occurred()) SWIG_fail;
10706 arg6 = (int) SWIG_AsInt(obj5);
10707 if (PyErr_Occurred()) SWIG_fail;
10708 arg7 = (int) SWIG_AsInt(obj6);
10709 if (PyErr_Occurred()) SWIG_fail;
10710 {
10711 PyThreadState* __tstate = wxPyBeginAllowThreads();
10712 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
10713
10714 wxPyEndAllowThreads(__tstate);
10715 if (PyErr_Occurred()) SWIG_fail;
10716 }
10717 Py_INCREF(Py_None); resultobj = Py_None;
10718 return resultobj;
10719 fail:
10720 return NULL;
10721}
10722
10723
d6c14a4c 10724static PyObject *_wrap_DC_DrawArcPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10725 PyObject *resultobj;
10726 wxDC *arg1 = (wxDC *) 0 ;
10727 wxPoint *arg2 = 0 ;
10728 wxPoint *arg3 = 0 ;
10729 wxPoint *arg4 = 0 ;
10730 wxPoint temp2 ;
10731 wxPoint temp3 ;
10732 wxPoint temp4 ;
10733 PyObject * obj0 = 0 ;
10734 PyObject * obj1 = 0 ;
10735 PyObject * obj2 = 0 ;
10736 PyObject * obj3 = 0 ;
10737 char *kwnames[] = {
10738 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "centre", NULL
10739 };
10740
d6c14a4c 10741 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
10742 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10743 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10744 {
10745 arg2 = &temp2;
10746 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10747 }
10748 {
10749 arg3 = &temp3;
10750 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
10751 }
10752 {
10753 arg4 = &temp4;
10754 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
10755 }
10756 {
10757 PyThreadState* __tstate = wxPyBeginAllowThreads();
10758 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
10759
10760 wxPyEndAllowThreads(__tstate);
10761 if (PyErr_Occurred()) SWIG_fail;
10762 }
10763 Py_INCREF(Py_None); resultobj = Py_None;
10764 return resultobj;
10765 fail:
10766 return NULL;
10767}
10768
10769
d6c14a4c 10770static PyObject *_wrap_DC_DrawCheckMark(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10771 PyObject *resultobj;
10772 wxDC *arg1 = (wxDC *) 0 ;
10773 int arg2 ;
10774 int arg3 ;
10775 int arg4 ;
10776 int arg5 ;
10777 PyObject * obj0 = 0 ;
10778 PyObject * obj1 = 0 ;
10779 PyObject * obj2 = 0 ;
10780 PyObject * obj3 = 0 ;
10781 PyObject * obj4 = 0 ;
10782 char *kwnames[] = {
10783 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10784 };
10785
d6c14a4c 10786 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10787 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10788 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10789 arg2 = (int) SWIG_AsInt(obj1);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 arg3 = (int) SWIG_AsInt(obj2);
10792 if (PyErr_Occurred()) SWIG_fail;
10793 arg4 = (int) SWIG_AsInt(obj3);
10794 if (PyErr_Occurred()) SWIG_fail;
10795 arg5 = (int) SWIG_AsInt(obj4);
10796 if (PyErr_Occurred()) SWIG_fail;
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
10800
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 Py_INCREF(Py_None); resultobj = Py_None;
10805 return resultobj;
10806 fail:
10807 return NULL;
10808}
10809
10810
d6c14a4c 10811static PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10812 PyObject *resultobj;
10813 wxDC *arg1 = (wxDC *) 0 ;
10814 wxRect *arg2 = 0 ;
10815 wxRect temp2 ;
10816 PyObject * obj0 = 0 ;
10817 PyObject * obj1 = 0 ;
10818 char *kwnames[] = {
10819 (char *) "self",(char *) "rect", NULL
10820 };
10821
d6c14a4c 10822 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10823 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10824 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10825 {
10826 arg2 = &temp2;
10827 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10828 }
10829 {
10830 PyThreadState* __tstate = wxPyBeginAllowThreads();
10831 (arg1)->DrawCheckMark((wxRect const &)*arg2);
10832
10833 wxPyEndAllowThreads(__tstate);
10834 if (PyErr_Occurred()) SWIG_fail;
10835 }
10836 Py_INCREF(Py_None); resultobj = Py_None;
10837 return resultobj;
10838 fail:
10839 return NULL;
10840}
10841
10842
d6c14a4c 10843static PyObject *_wrap_DC_DrawEllipticArc(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10844 PyObject *resultobj;
10845 wxDC *arg1 = (wxDC *) 0 ;
10846 int arg2 ;
10847 int arg3 ;
10848 int arg4 ;
10849 int arg5 ;
10850 double arg6 ;
10851 double arg7 ;
10852 PyObject * obj0 = 0 ;
10853 PyObject * obj1 = 0 ;
10854 PyObject * obj2 = 0 ;
10855 PyObject * obj3 = 0 ;
10856 PyObject * obj4 = 0 ;
10857 PyObject * obj5 = 0 ;
10858 PyObject * obj6 = 0 ;
10859 char *kwnames[] = {
10860 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "sa",(char *) "ea", NULL
10861 };
10862
d6c14a4c 10863 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
d55e5bfc
RD
10864 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10865 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10866 arg2 = (int) SWIG_AsInt(obj1);
10867 if (PyErr_Occurred()) SWIG_fail;
10868 arg3 = (int) SWIG_AsInt(obj2);
10869 if (PyErr_Occurred()) SWIG_fail;
10870 arg4 = (int) SWIG_AsInt(obj3);
10871 if (PyErr_Occurred()) SWIG_fail;
10872 arg5 = (int) SWIG_AsInt(obj4);
10873 if (PyErr_Occurred()) SWIG_fail;
10874 arg6 = (double) SWIG_AsDouble(obj5);
10875 if (PyErr_Occurred()) SWIG_fail;
10876 arg7 = (double) SWIG_AsDouble(obj6);
10877 if (PyErr_Occurred()) SWIG_fail;
10878 {
10879 PyThreadState* __tstate = wxPyBeginAllowThreads();
10880 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
10881
10882 wxPyEndAllowThreads(__tstate);
10883 if (PyErr_Occurred()) SWIG_fail;
10884 }
10885 Py_INCREF(Py_None); resultobj = Py_None;
10886 return resultobj;
10887 fail:
10888 return NULL;
10889}
10890
10891
d6c14a4c 10892static PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10893 PyObject *resultobj;
10894 wxDC *arg1 = (wxDC *) 0 ;
10895 wxPoint *arg2 = 0 ;
10896 wxSize *arg3 = 0 ;
10897 double arg4 ;
10898 double arg5 ;
10899 wxPoint temp2 ;
10900 wxSize temp3 ;
10901 PyObject * obj0 = 0 ;
10902 PyObject * obj1 = 0 ;
10903 PyObject * obj2 = 0 ;
10904 PyObject * obj3 = 0 ;
10905 PyObject * obj4 = 0 ;
10906 char *kwnames[] = {
10907 (char *) "self",(char *) "pt",(char *) "sz",(char *) "sa",(char *) "ea", NULL
10908 };
10909
d6c14a4c 10910 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
10911 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10912 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10913 {
10914 arg2 = &temp2;
10915 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10916 }
10917 {
10918 arg3 = &temp3;
10919 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
10920 }
10921 arg4 = (double) SWIG_AsDouble(obj3);
10922 if (PyErr_Occurred()) SWIG_fail;
10923 arg5 = (double) SWIG_AsDouble(obj4);
10924 if (PyErr_Occurred()) SWIG_fail;
10925 {
10926 PyThreadState* __tstate = wxPyBeginAllowThreads();
10927 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
10928
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 Py_INCREF(Py_None); resultobj = Py_None;
10933 return resultobj;
10934 fail:
10935 return NULL;
10936}
10937
10938
d6c14a4c 10939static PyObject *_wrap_DC_DrawPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10940 PyObject *resultobj;
10941 wxDC *arg1 = (wxDC *) 0 ;
10942 int arg2 ;
10943 int arg3 ;
10944 PyObject * obj0 = 0 ;
10945 PyObject * obj1 = 0 ;
10946 PyObject * obj2 = 0 ;
10947 char *kwnames[] = {
10948 (char *) "self",(char *) "x",(char *) "y", NULL
10949 };
10950
d6c14a4c 10951 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
10952 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10953 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10954 arg2 = (int) SWIG_AsInt(obj1);
10955 if (PyErr_Occurred()) SWIG_fail;
10956 arg3 = (int) SWIG_AsInt(obj2);
10957 if (PyErr_Occurred()) SWIG_fail;
10958 {
10959 PyThreadState* __tstate = wxPyBeginAllowThreads();
10960 (arg1)->DrawPoint(arg2,arg3);
10961
10962 wxPyEndAllowThreads(__tstate);
10963 if (PyErr_Occurred()) SWIG_fail;
10964 }
10965 Py_INCREF(Py_None); resultobj = Py_None;
10966 return resultobj;
10967 fail:
10968 return NULL;
10969}
10970
10971
d6c14a4c 10972static PyObject *_wrap_DC_DrawPointPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
10973 PyObject *resultobj;
10974 wxDC *arg1 = (wxDC *) 0 ;
10975 wxPoint *arg2 = 0 ;
10976 wxPoint temp2 ;
10977 PyObject * obj0 = 0 ;
10978 PyObject * obj1 = 0 ;
10979 char *kwnames[] = {
10980 (char *) "self",(char *) "pt", NULL
10981 };
10982
d6c14a4c 10983 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
10984 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
10985 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
10986 {
10987 arg2 = &temp2;
10988 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10989 }
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 (arg1)->DrawPoint((wxPoint const &)*arg2);
10993
10994 wxPyEndAllowThreads(__tstate);
10995 if (PyErr_Occurred()) SWIG_fail;
10996 }
10997 Py_INCREF(Py_None); resultobj = Py_None;
10998 return resultobj;
10999 fail:
11000 return NULL;
11001}
11002
11003
d6c14a4c 11004static PyObject *_wrap_DC_DrawRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11005 PyObject *resultobj;
11006 wxDC *arg1 = (wxDC *) 0 ;
11007 int arg2 ;
11008 int arg3 ;
11009 int arg4 ;
11010 int arg5 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 PyObject * obj2 = 0 ;
11014 PyObject * obj3 = 0 ;
11015 PyObject * obj4 = 0 ;
11016 char *kwnames[] = {
11017 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11018 };
11019
d6c14a4c 11020 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11021 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11022 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11023 arg2 = (int) SWIG_AsInt(obj1);
11024 if (PyErr_Occurred()) SWIG_fail;
11025 arg3 = (int) SWIG_AsInt(obj2);
11026 if (PyErr_Occurred()) SWIG_fail;
11027 arg4 = (int) SWIG_AsInt(obj3);
11028 if (PyErr_Occurred()) SWIG_fail;
11029 arg5 = (int) SWIG_AsInt(obj4);
11030 if (PyErr_Occurred()) SWIG_fail;
11031 {
11032 PyThreadState* __tstate = wxPyBeginAllowThreads();
11033 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
11034
11035 wxPyEndAllowThreads(__tstate);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 Py_INCREF(Py_None); resultobj = Py_None;
11039 return resultobj;
11040 fail:
11041 return NULL;
11042}
11043
11044
d6c14a4c 11045static PyObject *_wrap_DC_DrawRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11046 PyObject *resultobj;
11047 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11048 wxRect *arg2 = 0 ;
11049 wxRect temp2 ;
d55e5bfc
RD
11050 PyObject * obj0 = 0 ;
11051 PyObject * obj1 = 0 ;
d55e5bfc 11052 char *kwnames[] = {
d6c14a4c 11053 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11054 };
11055
d6c14a4c 11056 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11057 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11058 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11059 {
11060 arg2 = &temp2;
d6c14a4c 11061 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11062 }
11063 {
11064 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11065 (arg1)->DrawRectangle((wxRect const &)*arg2);
d55e5bfc
RD
11066
11067 wxPyEndAllowThreads(__tstate);
11068 if (PyErr_Occurred()) SWIG_fail;
11069 }
11070 Py_INCREF(Py_None); resultobj = Py_None;
11071 return resultobj;
11072 fail:
11073 return NULL;
11074}
11075
11076
d6c14a4c 11077static PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11078 PyObject *resultobj;
11079 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11080 wxPoint *arg2 = 0 ;
11081 wxSize *arg3 = 0 ;
11082 wxPoint temp2 ;
11083 wxSize temp3 ;
d55e5bfc
RD
11084 PyObject * obj0 = 0 ;
11085 PyObject * obj1 = 0 ;
d6c14a4c 11086 PyObject * obj2 = 0 ;
d55e5bfc 11087 char *kwnames[] = {
d6c14a4c 11088 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11089 };
11090
d6c14a4c 11091 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11092 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11093 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11094 {
11095 arg2 = &temp2;
d6c14a4c
RD
11096 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11097 }
11098 {
11099 arg3 = &temp3;
11100 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11101 }
11102 {
11103 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11104 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11105
11106 wxPyEndAllowThreads(__tstate);
11107 if (PyErr_Occurred()) SWIG_fail;
11108 }
11109 Py_INCREF(Py_None); resultobj = Py_None;
11110 return resultobj;
11111 fail:
11112 return NULL;
11113}
11114
11115
d6c14a4c 11116static PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11117 PyObject *resultobj;
11118 wxDC *arg1 = (wxDC *) 0 ;
11119 int arg2 ;
11120 int arg3 ;
11121 int arg4 ;
11122 int arg5 ;
11123 double arg6 ;
11124 PyObject * obj0 = 0 ;
11125 PyObject * obj1 = 0 ;
11126 PyObject * obj2 = 0 ;
11127 PyObject * obj3 = 0 ;
11128 PyObject * obj4 = 0 ;
11129 PyObject * obj5 = 0 ;
11130 char *kwnames[] = {
11131 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
11132 };
11133
d6c14a4c 11134 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
d55e5bfc
RD
11135 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11136 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11137 arg2 = (int) SWIG_AsInt(obj1);
11138 if (PyErr_Occurred()) SWIG_fail;
11139 arg3 = (int) SWIG_AsInt(obj2);
11140 if (PyErr_Occurred()) SWIG_fail;
11141 arg4 = (int) SWIG_AsInt(obj3);
11142 if (PyErr_Occurred()) SWIG_fail;
11143 arg5 = (int) SWIG_AsInt(obj4);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 arg6 = (double) SWIG_AsDouble(obj5);
11146 if (PyErr_Occurred()) SWIG_fail;
11147 {
11148 PyThreadState* __tstate = wxPyBeginAllowThreads();
11149 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
11150
11151 wxPyEndAllowThreads(__tstate);
11152 if (PyErr_Occurred()) SWIG_fail;
11153 }
11154 Py_INCREF(Py_None); resultobj = Py_None;
11155 return resultobj;
11156 fail:
11157 return NULL;
11158}
11159
11160
d6c14a4c 11161static PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11162 PyObject *resultobj;
11163 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11164 wxRect *arg2 = 0 ;
11165 double arg3 ;
11166 wxRect temp2 ;
d55e5bfc
RD
11167 PyObject * obj0 = 0 ;
11168 PyObject * obj1 = 0 ;
11169 PyObject * obj2 = 0 ;
d55e5bfc 11170 char *kwnames[] = {
d6c14a4c 11171 (char *) "self",(char *) "r",(char *) "radius", NULL
d55e5bfc
RD
11172 };
11173
d6c14a4c 11174 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11175 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11176 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11177 {
11178 arg2 = &temp2;
d6c14a4c 11179 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11180 }
d6c14a4c 11181 arg3 = (double) SWIG_AsDouble(obj2);
d55e5bfc
RD
11182 if (PyErr_Occurred()) SWIG_fail;
11183 {
11184 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11185 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
d55e5bfc
RD
11186
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 Py_INCREF(Py_None); resultobj = Py_None;
11191 return resultobj;
11192 fail:
11193 return NULL;
11194}
11195
11196
d6c14a4c 11197static PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11198 PyObject *resultobj;
11199 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11200 wxPoint *arg2 = 0 ;
11201 wxSize *arg3 = 0 ;
11202 double arg4 ;
11203 wxPoint temp2 ;
11204 wxSize temp3 ;
d55e5bfc
RD
11205 PyObject * obj0 = 0 ;
11206 PyObject * obj1 = 0 ;
11207 PyObject * obj2 = 0 ;
d6c14a4c 11208 PyObject * obj3 = 0 ;
d55e5bfc 11209 char *kwnames[] = {
d6c14a4c 11210 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
d55e5bfc
RD
11211 };
11212
d6c14a4c 11213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11216 {
11217 arg2 = &temp2;
d6c14a4c 11218 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc 11219 }
d6c14a4c
RD
11220 {
11221 arg3 = &temp3;
11222 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11223 }
11224 arg4 = (double) SWIG_AsDouble(obj3);
d55e5bfc
RD
11225 if (PyErr_Occurred()) SWIG_fail;
11226 {
11227 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11228 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
d55e5bfc
RD
11229
11230 wxPyEndAllowThreads(__tstate);
11231 if (PyErr_Occurred()) SWIG_fail;
11232 }
11233 Py_INCREF(Py_None); resultobj = Py_None;
11234 return resultobj;
11235 fail:
11236 return NULL;
11237}
11238
11239
d6c14a4c 11240static PyObject *_wrap_DC_DrawCircle(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11241 PyObject *resultobj;
11242 wxDC *arg1 = (wxDC *) 0 ;
11243 int arg2 ;
11244 int arg3 ;
11245 int arg4 ;
11246 PyObject * obj0 = 0 ;
11247 PyObject * obj1 = 0 ;
11248 PyObject * obj2 = 0 ;
11249 PyObject * obj3 = 0 ;
11250 char *kwnames[] = {
11251 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
11252 };
11253
d6c14a4c 11254 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11255 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11256 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11257 arg2 = (int) SWIG_AsInt(obj1);
11258 if (PyErr_Occurred()) SWIG_fail;
11259 arg3 = (int) SWIG_AsInt(obj2);
11260 if (PyErr_Occurred()) SWIG_fail;
11261 arg4 = (int) SWIG_AsInt(obj3);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 {
11264 PyThreadState* __tstate = wxPyBeginAllowThreads();
11265 (arg1)->DrawCircle(arg2,arg3,arg4);
11266
11267 wxPyEndAllowThreads(__tstate);
11268 if (PyErr_Occurred()) SWIG_fail;
11269 }
11270 Py_INCREF(Py_None); resultobj = Py_None;
11271 return resultobj;
11272 fail:
11273 return NULL;
11274}
11275
11276
d6c14a4c 11277static PyObject *_wrap_DC_DrawCirclePoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11278 PyObject *resultobj;
11279 wxDC *arg1 = (wxDC *) 0 ;
11280 wxPoint *arg2 = 0 ;
11281 int arg3 ;
11282 wxPoint temp2 ;
11283 PyObject * obj0 = 0 ;
11284 PyObject * obj1 = 0 ;
11285 PyObject * obj2 = 0 ;
11286 char *kwnames[] = {
11287 (char *) "self",(char *) "pt",(char *) "radius", NULL
11288 };
11289
d6c14a4c 11290 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11291 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11292 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11293 {
11294 arg2 = &temp2;
11295 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11296 }
11297 arg3 = (int) SWIG_AsInt(obj2);
11298 if (PyErr_Occurred()) SWIG_fail;
11299 {
11300 PyThreadState* __tstate = wxPyBeginAllowThreads();
11301 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
11302
11303 wxPyEndAllowThreads(__tstate);
11304 if (PyErr_Occurred()) SWIG_fail;
11305 }
11306 Py_INCREF(Py_None); resultobj = Py_None;
11307 return resultobj;
11308 fail:
11309 return NULL;
11310}
11311
11312
d6c14a4c 11313static PyObject *_wrap_DC_DrawEllipse(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11314 PyObject *resultobj;
11315 wxDC *arg1 = (wxDC *) 0 ;
11316 int arg2 ;
11317 int arg3 ;
11318 int arg4 ;
11319 int arg5 ;
11320 PyObject * obj0 = 0 ;
11321 PyObject * obj1 = 0 ;
11322 PyObject * obj2 = 0 ;
11323 PyObject * obj3 = 0 ;
11324 PyObject * obj4 = 0 ;
11325 char *kwnames[] = {
11326 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11327 };
11328
d6c14a4c 11329 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11330 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11331 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11332 arg2 = (int) SWIG_AsInt(obj1);
11333 if (PyErr_Occurred()) SWIG_fail;
11334 arg3 = (int) SWIG_AsInt(obj2);
11335 if (PyErr_Occurred()) SWIG_fail;
11336 arg4 = (int) SWIG_AsInt(obj3);
11337 if (PyErr_Occurred()) SWIG_fail;
11338 arg5 = (int) SWIG_AsInt(obj4);
11339 if (PyErr_Occurred()) SWIG_fail;
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
11343
11344 wxPyEndAllowThreads(__tstate);
11345 if (PyErr_Occurred()) SWIG_fail;
11346 }
11347 Py_INCREF(Py_None); resultobj = Py_None;
11348 return resultobj;
11349 fail:
11350 return NULL;
11351}
11352
11353
d6c14a4c 11354static PyObject *_wrap_DC_DrawEllipseRect(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11355 PyObject *resultobj;
11356 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11357 wxRect *arg2 = 0 ;
11358 wxRect temp2 ;
d55e5bfc
RD
11359 PyObject * obj0 = 0 ;
11360 PyObject * obj1 = 0 ;
d55e5bfc 11361 char *kwnames[] = {
d6c14a4c 11362 (char *) "self",(char *) "rect", NULL
d55e5bfc
RD
11363 };
11364
d6c14a4c 11365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) goto fail;
d55e5bfc
RD
11366 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11367 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11368 {
11369 arg2 = &temp2;
d6c14a4c 11370 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
d55e5bfc
RD
11371 }
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11374 (arg1)->DrawEllipse((wxRect const &)*arg2);
d55e5bfc
RD
11375
11376 wxPyEndAllowThreads(__tstate);
11377 if (PyErr_Occurred()) SWIG_fail;
11378 }
11379 Py_INCREF(Py_None); resultobj = Py_None;
11380 return resultobj;
11381 fail:
11382 return NULL;
11383}
11384
11385
d6c14a4c 11386static PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11387 PyObject *resultobj;
11388 wxDC *arg1 = (wxDC *) 0 ;
d6c14a4c
RD
11389 wxPoint *arg2 = 0 ;
11390 wxSize *arg3 = 0 ;
11391 wxPoint temp2 ;
11392 wxSize temp3 ;
d55e5bfc
RD
11393 PyObject * obj0 = 0 ;
11394 PyObject * obj1 = 0 ;
d6c14a4c 11395 PyObject * obj2 = 0 ;
d55e5bfc 11396 char *kwnames[] = {
d6c14a4c 11397 (char *) "self",(char *) "pt",(char *) "sz", NULL
d55e5bfc
RD
11398 };
11399
d6c14a4c 11400 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11401 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11402 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11403 {
11404 arg2 = &temp2;
d6c14a4c
RD
11405 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11406 }
11407 {
11408 arg3 = &temp3;
11409 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
d55e5bfc
RD
11410 }
11411 {
11412 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c 11413 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
d55e5bfc
RD
11414
11415 wxPyEndAllowThreads(__tstate);
11416 if (PyErr_Occurred()) SWIG_fail;
11417 }
11418 Py_INCREF(Py_None); resultobj = Py_None;
11419 return resultobj;
11420 fail:
11421 return NULL;
11422}
11423
11424
d6c14a4c 11425static PyObject *_wrap_DC_DrawIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11426 PyObject *resultobj;
11427 wxDC *arg1 = (wxDC *) 0 ;
11428 wxIcon *arg2 = 0 ;
11429 int arg3 ;
11430 int arg4 ;
11431 PyObject * obj0 = 0 ;
11432 PyObject * obj1 = 0 ;
11433 PyObject * obj2 = 0 ;
11434 PyObject * obj3 = 0 ;
11435 char *kwnames[] = {
11436 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
11437 };
11438
d6c14a4c 11439 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11440 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11441 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11442 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11443 SWIG_POINTER_EXCEPTION | 0)) == -1)
11444 SWIG_fail;
11445 if (arg2 == NULL) {
11446 PyErr_SetString(PyExc_TypeError,"null reference");
11447 SWIG_fail;
11448 }
11449 arg3 = (int) SWIG_AsInt(obj2);
11450 if (PyErr_Occurred()) SWIG_fail;
11451 arg4 = (int) SWIG_AsInt(obj3);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
11456
11457 wxPyEndAllowThreads(__tstate);
11458 if (PyErr_Occurred()) SWIG_fail;
11459 }
11460 Py_INCREF(Py_None); resultobj = Py_None;
11461 return resultobj;
11462 fail:
11463 return NULL;
11464}
11465
11466
d6c14a4c 11467static PyObject *_wrap_DC_DrawIconPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11468 PyObject *resultobj;
11469 wxDC *arg1 = (wxDC *) 0 ;
11470 wxIcon *arg2 = 0 ;
11471 wxPoint *arg3 = 0 ;
11472 wxPoint temp3 ;
11473 PyObject * obj0 = 0 ;
11474 PyObject * obj1 = 0 ;
11475 PyObject * obj2 = 0 ;
11476 char *kwnames[] = {
11477 (char *) "self",(char *) "icon",(char *) "pt", NULL
11478 };
11479
d6c14a4c 11480 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11481 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11482 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11483 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
11484 SWIG_POINTER_EXCEPTION | 0)) == -1)
11485 SWIG_fail;
11486 if (arg2 == NULL) {
11487 PyErr_SetString(PyExc_TypeError,"null reference");
11488 SWIG_fail;
11489 }
11490 {
11491 arg3 = &temp3;
11492 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11493 }
11494 {
11495 PyThreadState* __tstate = wxPyBeginAllowThreads();
11496 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
11497
11498 wxPyEndAllowThreads(__tstate);
11499 if (PyErr_Occurred()) SWIG_fail;
11500 }
11501 Py_INCREF(Py_None); resultobj = Py_None;
11502 return resultobj;
11503 fail:
11504 return NULL;
11505}
11506
11507
d6c14a4c 11508static PyObject *_wrap_DC_DrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11509 PyObject *resultobj;
11510 wxDC *arg1 = (wxDC *) 0 ;
11511 wxBitmap *arg2 = 0 ;
11512 int arg3 ;
11513 int arg4 ;
11514 bool arg5 = (bool) False ;
11515 PyObject * obj0 = 0 ;
11516 PyObject * obj1 = 0 ;
11517 PyObject * obj2 = 0 ;
11518 PyObject * obj3 = 0 ;
11519 PyObject * obj4 = 0 ;
11520 char *kwnames[] = {
11521 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
11522 };
11523
d6c14a4c 11524 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11525 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11526 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11527 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11528 SWIG_POINTER_EXCEPTION | 0)) == -1)
11529 SWIG_fail;
11530 if (arg2 == NULL) {
11531 PyErr_SetString(PyExc_TypeError,"null reference");
11532 SWIG_fail;
11533 }
11534 arg3 = (int) SWIG_AsInt(obj2);
11535 if (PyErr_Occurred()) SWIG_fail;
11536 arg4 = (int) SWIG_AsInt(obj3);
11537 if (PyErr_Occurred()) SWIG_fail;
11538 if (obj4) {
11539 arg5 = (bool) SWIG_AsBool(obj4);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 {
11543 PyThreadState* __tstate = wxPyBeginAllowThreads();
11544 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
11545
11546 wxPyEndAllowThreads(__tstate);
11547 if (PyErr_Occurred()) SWIG_fail;
11548 }
11549 Py_INCREF(Py_None); resultobj = Py_None;
11550 return resultobj;
11551 fail:
11552 return NULL;
11553}
11554
11555
d6c14a4c 11556static PyObject *_wrap_DC_DrawBitmapPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11557 PyObject *resultobj;
11558 wxDC *arg1 = (wxDC *) 0 ;
11559 wxBitmap *arg2 = 0 ;
11560 wxPoint *arg3 = 0 ;
11561 bool arg4 = (bool) False ;
11562 wxPoint temp3 ;
11563 PyObject * obj0 = 0 ;
11564 PyObject * obj1 = 0 ;
11565 PyObject * obj2 = 0 ;
11566 PyObject * obj3 = 0 ;
11567 char *kwnames[] = {
11568 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
11569 };
11570
d6c14a4c 11571 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11572 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11573 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11574 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
11575 SWIG_POINTER_EXCEPTION | 0)) == -1)
11576 SWIG_fail;
11577 if (arg2 == NULL) {
11578 PyErr_SetString(PyExc_TypeError,"null reference");
11579 SWIG_fail;
11580 }
11581 {
11582 arg3 = &temp3;
11583 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11584 }
11585 if (obj3) {
11586 arg4 = (bool) SWIG_AsBool(obj3);
11587 if (PyErr_Occurred()) SWIG_fail;
11588 }
11589 {
11590 PyThreadState* __tstate = wxPyBeginAllowThreads();
11591 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
11592
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 Py_INCREF(Py_None); resultobj = Py_None;
11597 return resultobj;
11598 fail:
11599 return NULL;
11600}
11601
11602
d6c14a4c 11603static PyObject *_wrap_DC_DrawText(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11604 PyObject *resultobj;
11605 wxDC *arg1 = (wxDC *) 0 ;
11606 wxString *arg2 = 0 ;
11607 int arg3 ;
11608 int arg4 ;
11609 bool temp2 = False ;
11610 PyObject * obj0 = 0 ;
11611 PyObject * obj1 = 0 ;
11612 PyObject * obj2 = 0 ;
11613 PyObject * obj3 = 0 ;
11614 char *kwnames[] = {
11615 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
11616 };
11617
d6c14a4c 11618 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11619 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11620 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11621 {
11622 arg2 = wxString_in_helper(obj1);
11623 if (arg2 == NULL) SWIG_fail;
11624 temp2 = True;
11625 }
11626 arg3 = (int) SWIG_AsInt(obj2);
11627 if (PyErr_Occurred()) SWIG_fail;
11628 arg4 = (int) SWIG_AsInt(obj3);
11629 if (PyErr_Occurred()) SWIG_fail;
11630 {
11631 PyThreadState* __tstate = wxPyBeginAllowThreads();
11632 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
11633
11634 wxPyEndAllowThreads(__tstate);
11635 if (PyErr_Occurred()) SWIG_fail;
11636 }
11637 Py_INCREF(Py_None); resultobj = Py_None;
11638 {
11639 if (temp2)
11640 delete arg2;
11641 }
11642 return resultobj;
11643 fail:
11644 {
11645 if (temp2)
11646 delete arg2;
11647 }
11648 return NULL;
11649}
11650
11651
d6c14a4c 11652static PyObject *_wrap_DC_DrawTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11653 PyObject *resultobj;
11654 wxDC *arg1 = (wxDC *) 0 ;
11655 wxString *arg2 = 0 ;
11656 wxPoint *arg3 = 0 ;
11657 bool temp2 = False ;
11658 wxPoint temp3 ;
11659 PyObject * obj0 = 0 ;
11660 PyObject * obj1 = 0 ;
11661 PyObject * obj2 = 0 ;
11662 char *kwnames[] = {
11663 (char *) "self",(char *) "text",(char *) "pt", NULL
11664 };
11665
d6c14a4c 11666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) goto fail;
d55e5bfc
RD
11667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11669 {
11670 arg2 = wxString_in_helper(obj1);
11671 if (arg2 == NULL) SWIG_fail;
11672 temp2 = True;
11673 }
11674 {
11675 arg3 = &temp3;
11676 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11677 }
11678 {
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
11681
11682 wxPyEndAllowThreads(__tstate);
11683 if (PyErr_Occurred()) SWIG_fail;
11684 }
11685 Py_INCREF(Py_None); resultobj = Py_None;
11686 {
11687 if (temp2)
11688 delete arg2;
11689 }
11690 return resultobj;
11691 fail:
11692 {
11693 if (temp2)
11694 delete arg2;
11695 }
11696 return NULL;
11697}
11698
11699
d6c14a4c 11700static PyObject *_wrap_DC_DrawRotatedText(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11701 PyObject *resultobj;
11702 wxDC *arg1 = (wxDC *) 0 ;
11703 wxString *arg2 = 0 ;
11704 int arg3 ;
11705 int arg4 ;
11706 double arg5 ;
11707 bool temp2 = False ;
11708 PyObject * obj0 = 0 ;
11709 PyObject * obj1 = 0 ;
11710 PyObject * obj2 = 0 ;
11711 PyObject * obj3 = 0 ;
11712 PyObject * obj4 = 0 ;
11713 char *kwnames[] = {
11714 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
11715 };
11716
d6c14a4c 11717 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
d55e5bfc
RD
11718 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11719 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11720 {
11721 arg2 = wxString_in_helper(obj1);
11722 if (arg2 == NULL) SWIG_fail;
11723 temp2 = True;
11724 }
11725 arg3 = (int) SWIG_AsInt(obj2);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 arg4 = (int) SWIG_AsInt(obj3);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 arg5 = (double) SWIG_AsDouble(obj4);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 {
11732 PyThreadState* __tstate = wxPyBeginAllowThreads();
11733 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
11734
11735 wxPyEndAllowThreads(__tstate);
11736 if (PyErr_Occurred()) SWIG_fail;
11737 }
11738 Py_INCREF(Py_None); resultobj = Py_None;
11739 {
11740 if (temp2)
11741 delete arg2;
11742 }
11743 return resultobj;
11744 fail:
11745 {
11746 if (temp2)
11747 delete arg2;
11748 }
11749 return NULL;
11750}
11751
11752
d6c14a4c 11753static PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11754 PyObject *resultobj;
11755 wxDC *arg1 = (wxDC *) 0 ;
11756 wxString *arg2 = 0 ;
11757 wxPoint *arg3 = 0 ;
11758 double arg4 ;
11759 bool temp2 = False ;
11760 wxPoint temp3 ;
11761 PyObject * obj0 = 0 ;
11762 PyObject * obj1 = 0 ;
11763 PyObject * obj2 = 0 ;
11764 PyObject * obj3 = 0 ;
11765 char *kwnames[] = {
11766 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
11767 };
11768
d6c14a4c 11769 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
d55e5bfc
RD
11770 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11771 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11772 {
11773 arg2 = wxString_in_helper(obj1);
11774 if (arg2 == NULL) SWIG_fail;
11775 temp2 = True;
11776 }
11777 {
11778 arg3 = &temp3;
11779 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
11780 }
11781 arg4 = (double) SWIG_AsDouble(obj3);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 {
11784 PyThreadState* __tstate = wxPyBeginAllowThreads();
11785 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
11786
11787 wxPyEndAllowThreads(__tstate);
11788 if (PyErr_Occurred()) SWIG_fail;
11789 }
11790 Py_INCREF(Py_None); resultobj = Py_None;
11791 {
11792 if (temp2)
11793 delete arg2;
11794 }
11795 return resultobj;
11796 fail:
11797 {
11798 if (temp2)
11799 delete arg2;
11800 }
11801 return NULL;
11802}
11803
11804
d6c14a4c 11805static PyObject *_wrap_DC_Blit(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11806 PyObject *resultobj;
11807 wxDC *arg1 = (wxDC *) 0 ;
11808 int arg2 ;
11809 int arg3 ;
11810 int arg4 ;
11811 int arg5 ;
11812 wxDC *arg6 = (wxDC *) 0 ;
11813 int arg7 ;
11814 int arg8 ;
11815 int arg9 = (int) wxCOPY ;
11816 bool arg10 = (bool) False ;
11817 int arg11 = (int) -1 ;
11818 int arg12 = (int) -1 ;
11819 bool result;
11820 PyObject * obj0 = 0 ;
11821 PyObject * obj1 = 0 ;
11822 PyObject * obj2 = 0 ;
11823 PyObject * obj3 = 0 ;
11824 PyObject * obj4 = 0 ;
11825 PyObject * obj5 = 0 ;
11826 PyObject * obj6 = 0 ;
11827 PyObject * obj7 = 0 ;
11828 PyObject * obj8 = 0 ;
11829 PyObject * obj9 = 0 ;
11830 PyObject * obj10 = 0 ;
11831 PyObject * obj11 = 0 ;
11832 char *kwnames[] = {
11833 (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
11834 };
11835
d6c14a4c 11836 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
11837 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11838 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11839 arg2 = (int) SWIG_AsInt(obj1);
11840 if (PyErr_Occurred()) SWIG_fail;
11841 arg3 = (int) SWIG_AsInt(obj2);
11842 if (PyErr_Occurred()) SWIG_fail;
11843 arg4 = (int) SWIG_AsInt(obj3);
11844 if (PyErr_Occurred()) SWIG_fail;
11845 arg5 = (int) SWIG_AsInt(obj4);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxDC,
11848 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11849 arg7 = (int) SWIG_AsInt(obj6);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 arg8 = (int) SWIG_AsInt(obj7);
11852 if (PyErr_Occurred()) SWIG_fail;
11853 if (obj8) {
11854 arg9 = (int) SWIG_AsInt(obj8);
11855 if (PyErr_Occurred()) SWIG_fail;
11856 }
11857 if (obj9) {
11858 arg10 = (bool) SWIG_AsBool(obj9);
11859 if (PyErr_Occurred()) SWIG_fail;
11860 }
11861 if (obj10) {
11862 arg11 = (int) SWIG_AsInt(obj10);
11863 if (PyErr_Occurred()) SWIG_fail;
11864 }
11865 if (obj11) {
11866 arg12 = (int) SWIG_AsInt(obj11);
11867 if (PyErr_Occurred()) SWIG_fail;
11868 }
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
11872
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 {
11877 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11878 }
11879 return resultobj;
11880 fail:
11881 return NULL;
11882}
11883
11884
d6c14a4c 11885static PyObject *_wrap_DC_BlitPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
d55e5bfc
RD
11886 PyObject *resultobj;
11887 wxDC *arg1 = (wxDC *) 0 ;
11888 wxPoint *arg2 = 0 ;
11889 wxSize *arg3 = 0 ;
11890 wxDC *arg4 = (wxDC *) 0 ;
11891 wxPoint *arg5 = 0 ;
11892 int arg6 = (int) wxCOPY ;
11893 bool arg7 = (bool) False ;
11894 wxPoint const &arg8_defvalue = wxDefaultPosition ;
11895 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
11896 bool result;
11897 wxPoint temp2 ;
11898 wxSize temp3 ;
11899 wxPoint temp5 ;
11900 wxPoint temp8 ;
11901 PyObject * obj0 = 0 ;
11902 PyObject * obj1 = 0 ;
11903 PyObject * obj2 = 0 ;
11904 PyObject * obj3 = 0 ;
11905 PyObject * obj4 = 0 ;
11906 PyObject * obj5 = 0 ;
11907 PyObject * obj6 = 0 ;
11908 PyObject * obj7 = 0 ;
11909 char *kwnames[] = {
11910 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
11911 };
11912
d6c14a4c 11913 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
d55e5bfc
RD
11914 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11915 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11916 {
11917 arg2 = &temp2;
11918 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
11919 }
11920 {
11921 arg3 = &temp3;
11922 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
11923 }
11924 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxDC,
11925 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11926 {
11927 arg5 = &temp5;
11928 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
11929 }
11930 if (obj5) {
11931 arg6 = (int) SWIG_AsInt(obj5);
11932 if (PyErr_Occurred()) SWIG_fail;
11933 }
11934 if (obj6) {
11935 arg7 = (bool) SWIG_AsBool(obj6);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 if (obj7) {
11939 {
11940 arg8 = &temp8;
11941 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
11942 }
11943 }
11944 {
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
d6c14a4c
RD
11946 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
11947
11948 wxPyEndAllowThreads(__tstate);
11949 if (PyErr_Occurred()) SWIG_fail;
11950 }
11951 {
11952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11953 }
11954 return resultobj;
11955 fail:
11956 return NULL;
11957}
11958
11959
11960static PyObject *_wrap_DC_SetClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
11961 PyObject *resultobj;
11962 wxDC *arg1 = (wxDC *) 0 ;
11963 int arg2 ;
11964 int arg3 ;
11965 int arg4 ;
11966 int arg5 ;
11967 PyObject * obj0 = 0 ;
11968 PyObject * obj1 = 0 ;
11969 PyObject * obj2 = 0 ;
11970 PyObject * obj3 = 0 ;
11971 PyObject * obj4 = 0 ;
11972 char *kwnames[] = {
11973 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11974 };
11975
11976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
11977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
11978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
11979 arg2 = (int) SWIG_AsInt(obj1);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 arg3 = (int) SWIG_AsInt(obj2);
11982 if (PyErr_Occurred()) SWIG_fail;
11983 arg4 = (int) SWIG_AsInt(obj3);
11984 if (PyErr_Occurred()) SWIG_fail;
11985 arg5 = (int) SWIG_AsInt(obj4);
11986 if (PyErr_Occurred()) SWIG_fail;
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
11990
11991 wxPyEndAllowThreads(__tstate);
11992 if (PyErr_Occurred()) SWIG_fail;
11993 }
11994 Py_INCREF(Py_None); resultobj = Py_None;
11995 return resultobj;
11996 fail:
11997 return NULL;
11998}
11999
12000
12001static PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *self, PyObject *args, PyObject *kwargs) {
12002 PyObject *resultobj;
12003 wxDC *arg1 = (wxDC *) 0 ;
12004 wxPoint *arg2 = 0 ;
12005 wxSize *arg3 = 0 ;
12006 wxPoint temp2 ;
12007 wxSize temp3 ;
12008 PyObject * obj0 = 0 ;
12009 PyObject * obj1 = 0 ;
12010 PyObject * obj2 = 0 ;
12011 char *kwnames[] = {
12012 (char *) "self",(char *) "pt",(char *) "sz", NULL
12013 };
12014
12015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) goto fail;
12016 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12017 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12018 {
12019 arg2 = &temp2;
12020 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
12021 }
12022 {
12023 arg3 = &temp3;
12024 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
12025 }
12026 {
12027 PyThreadState* __tstate = wxPyBeginAllowThreads();
12028 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
12029
12030 wxPyEndAllowThreads(__tstate);
12031 if (PyErr_Occurred()) SWIG_fail;
12032 }
12033 Py_INCREF(Py_None); resultobj = Py_None;
12034 return resultobj;
12035 fail:
12036 return NULL;
12037}
12038
12039
12040static PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12041 PyObject *resultobj;
12042 wxDC *arg1 = (wxDC *) 0 ;
12043 wxRegion *arg2 = 0 ;
12044 PyObject * obj0 = 0 ;
12045 PyObject * obj1 = 0 ;
12046 char *kwnames[] = {
12047 (char *) "self",(char *) "region", NULL
12048 };
12049
12050 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) goto fail;
12051 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12052 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12053 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRegion,
12054 SWIG_POINTER_EXCEPTION | 0)) == -1)
12055 SWIG_fail;
12056 if (arg2 == NULL) {
12057 PyErr_SetString(PyExc_TypeError,"null reference");
12058 SWIG_fail;
12059 }
12060 {
12061 PyThreadState* __tstate = wxPyBeginAllowThreads();
12062 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
12063
12064 wxPyEndAllowThreads(__tstate);
12065 if (PyErr_Occurred()) SWIG_fail;
12066 }
12067 Py_INCREF(Py_None); resultobj = Py_None;
12068 return resultobj;
12069 fail:
12070 return NULL;
12071}
12072
12073
12074static PyObject *_wrap_DC_SetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12075 PyObject *resultobj;
12076 wxDC *arg1 = (wxDC *) 0 ;
12077 wxRect *arg2 = 0 ;
12078 wxRect temp2 ;
12079 PyObject * obj0 = 0 ;
12080 PyObject * obj1 = 0 ;
12081 char *kwnames[] = {
12082 (char *) "self",(char *) "rect", NULL
12083 };
12084
12085 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) goto fail;
12086 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12087 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12088 {
12089 arg2 = &temp2;
12090 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
12091 }
12092 {
12093 PyThreadState* __tstate = wxPyBeginAllowThreads();
12094 (arg1)->SetClippingRegion((wxRect const &)*arg2);
d55e5bfc
RD
12095
12096 wxPyEndAllowThreads(__tstate);
12097 if (PyErr_Occurred()) SWIG_fail;
12098 }
d6c14a4c 12099 Py_INCREF(Py_None); resultobj = Py_None;
d55e5bfc
RD
12100 return resultobj;
12101 fail:
12102 return NULL;
12103}
12104
12105
12106static PyObject *_wrap_DC_DrawLines(PyObject *self, PyObject *args, PyObject *kwargs) {
12107 PyObject *resultobj;
12108 wxDC *arg1 = (wxDC *) 0 ;
12109 int arg2 ;
12110 wxPoint *arg3 = (wxPoint *) 0 ;
12111 int arg4 = (int) 0 ;
12112 int arg5 = (int) 0 ;
12113 PyObject * obj0 = 0 ;
12114 PyObject * obj1 = 0 ;
12115 PyObject * obj2 = 0 ;
12116 PyObject * obj3 = 0 ;
12117 char *kwnames[] = {
12118 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
12119 };
12120
12121 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
12122 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12123 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12124 {
12125 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12126 if (arg3 == NULL) SWIG_fail;
12127 }
12128 if (obj2) {
12129 arg4 = (int) SWIG_AsInt(obj2);
12130 if (PyErr_Occurred()) SWIG_fail;
12131 }
12132 if (obj3) {
12133 arg5 = (int) SWIG_AsInt(obj3);
12134 if (PyErr_Occurred()) SWIG_fail;
12135 }
12136 {
12137 PyThreadState* __tstate = wxPyBeginAllowThreads();
12138 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
12139
12140 wxPyEndAllowThreads(__tstate);
12141 if (PyErr_Occurred()) SWIG_fail;
12142 }
12143 Py_INCREF(Py_None); resultobj = Py_None;
12144 {
12145 if (arg3) delete [] arg3;
12146 }
12147 return resultobj;
12148 fail:
12149 {
12150 if (arg3) delete [] arg3;
12151 }
12152 return NULL;
12153}
12154
12155
12156static PyObject *_wrap_DC_DrawPolygon(PyObject *self, PyObject *args, PyObject *kwargs) {
12157 PyObject *resultobj;
12158 wxDC *arg1 = (wxDC *) 0 ;
12159 int arg2 ;
12160 wxPoint *arg3 = (wxPoint *) 0 ;
12161 int arg4 = (int) 0 ;
12162 int arg5 = (int) 0 ;
12163 int arg6 = (int) wxODDEVEN_RULE ;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 PyObject * obj2 = 0 ;
12167 PyObject * obj3 = 0 ;
12168 PyObject * obj4 = 0 ;
12169 char *kwnames[] = {
12170 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
12171 };
12172
12173 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12174 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12175 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12176 {
12177 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12178 if (arg3 == NULL) SWIG_fail;
12179 }
12180 if (obj2) {
12181 arg4 = (int) SWIG_AsInt(obj2);
12182 if (PyErr_Occurred()) SWIG_fail;
12183 }
12184 if (obj3) {
12185 arg5 = (int) SWIG_AsInt(obj3);
12186 if (PyErr_Occurred()) SWIG_fail;
12187 }
12188 if (obj4) {
12189 arg6 = (int) SWIG_AsInt(obj4);
12190 if (PyErr_Occurred()) SWIG_fail;
12191 }
12192 {
12193 PyThreadState* __tstate = wxPyBeginAllowThreads();
12194 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
12195
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 Py_INCREF(Py_None); resultobj = Py_None;
12200 {
12201 if (arg3) delete [] arg3;
12202 }
12203 return resultobj;
12204 fail:
12205 {
12206 if (arg3) delete [] arg3;
12207 }
12208 return NULL;
12209}
12210
12211
12212static PyObject *_wrap_DC_DrawLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12213 PyObject *resultobj;
12214 wxDC *arg1 = (wxDC *) 0 ;
12215 wxString *arg2 = 0 ;
12216 wxRect *arg3 = 0 ;
12217 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12218 int arg5 = (int) -1 ;
12219 bool temp2 = False ;
12220 wxRect temp3 ;
12221 PyObject * obj0 = 0 ;
12222 PyObject * obj1 = 0 ;
12223 PyObject * obj2 = 0 ;
12224 PyObject * obj3 = 0 ;
12225 PyObject * obj4 = 0 ;
12226 char *kwnames[] = {
12227 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12228 };
12229
12230 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
12231 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12232 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12233 {
12234 arg2 = wxString_in_helper(obj1);
12235 if (arg2 == NULL) SWIG_fail;
12236 temp2 = True;
12237 }
12238 {
12239 arg3 = &temp3;
12240 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
12241 }
12242 if (obj3) {
12243 arg4 = (int) SWIG_AsInt(obj3);
12244 if (PyErr_Occurred()) SWIG_fail;
12245 }
12246 if (obj4) {
12247 arg5 = (int) SWIG_AsInt(obj4);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 {
12251 PyThreadState* __tstate = wxPyBeginAllowThreads();
12252 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
12253
12254 wxPyEndAllowThreads(__tstate);
12255 if (PyErr_Occurred()) SWIG_fail;
12256 }
12257 Py_INCREF(Py_None); resultobj = Py_None;
12258 {
12259 if (temp2)
12260 delete arg2;
12261 }
12262 return resultobj;
12263 fail:
12264 {
12265 if (temp2)
12266 delete arg2;
12267 }
12268 return NULL;
12269}
12270
12271
12272static PyObject *_wrap_DC_DrawImageLabel(PyObject *self, PyObject *args, PyObject *kwargs) {
12273 PyObject *resultobj;
12274 wxDC *arg1 = (wxDC *) 0 ;
12275 wxString *arg2 = 0 ;
12276 wxBitmap *arg3 = 0 ;
12277 wxRect *arg4 = 0 ;
12278 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
12279 int arg6 = (int) -1 ;
12280 wxRect result;
12281 bool temp2 = False ;
12282 wxRect temp4 ;
12283 PyObject * obj0 = 0 ;
12284 PyObject * obj1 = 0 ;
12285 PyObject * obj2 = 0 ;
12286 PyObject * obj3 = 0 ;
12287 PyObject * obj4 = 0 ;
12288 PyObject * obj5 = 0 ;
12289 char *kwnames[] = {
12290 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
12291 };
12292
12293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
12294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12296 {
12297 arg2 = wxString_in_helper(obj1);
12298 if (arg2 == NULL) SWIG_fail;
12299 temp2 = True;
12300 }
12301 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
12302 SWIG_POINTER_EXCEPTION | 0)) == -1)
12303 SWIG_fail;
12304 if (arg3 == NULL) {
12305 PyErr_SetString(PyExc_TypeError,"null reference");
12306 SWIG_fail;
12307 }
12308 {
12309 arg4 = &temp4;
12310 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
12311 }
12312 if (obj4) {
12313 arg5 = (int) SWIG_AsInt(obj4);
12314 if (PyErr_Occurred()) SWIG_fail;
12315 }
12316 if (obj5) {
12317 arg6 = (int) SWIG_AsInt(obj5);
12318 if (PyErr_Occurred()) SWIG_fail;
12319 }
12320 {
12321 PyThreadState* __tstate = wxPyBeginAllowThreads();
12322 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
12323
12324 wxPyEndAllowThreads(__tstate);
12325 if (PyErr_Occurred()) SWIG_fail;
12326 }
12327 {
12328 wxRect * resultptr;
12329 resultptr = new wxRect((wxRect &) result);
12330 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12331 }
12332 {
12333 if (temp2)
12334 delete arg2;
12335 }
12336 return resultobj;
12337 fail:
12338 {
12339 if (temp2)
12340 delete arg2;
12341 }
12342 return NULL;
12343}
12344
12345
12346static PyObject *_wrap_DC_DrawSpline(PyObject *self, PyObject *args, PyObject *kwargs) {
12347 PyObject *resultobj;
12348 wxDC *arg1 = (wxDC *) 0 ;
12349 int arg2 ;
12350 wxPoint *arg3 = (wxPoint *) 0 ;
12351 PyObject * obj0 = 0 ;
12352 PyObject * obj1 = 0 ;
12353 char *kwnames[] = {
12354 (char *) "self",(char *) "points", NULL
12355 };
12356
12357 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) goto fail;
12358 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12359 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12360 {
12361 arg3 = wxPoint_LIST_helper(obj1, &arg2);
12362 if (arg3 == NULL) SWIG_fail;
12363 }
12364 {
12365 PyThreadState* __tstate = wxPyBeginAllowThreads();
12366 (arg1)->DrawSpline(arg2,arg3);
12367
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 Py_INCREF(Py_None); resultobj = Py_None;
12372 {
12373 if (arg3) delete [] arg3;
12374 }
12375 return resultobj;
12376 fail:
12377 {
12378 if (arg3) delete [] arg3;
12379 }
12380 return NULL;
12381}
12382
12383
12384static PyObject *_wrap_DC_Clear(PyObject *self, PyObject *args, PyObject *kwargs) {
12385 PyObject *resultobj;
12386 wxDC *arg1 = (wxDC *) 0 ;
12387 PyObject * obj0 = 0 ;
12388 char *kwnames[] = {
12389 (char *) "self", NULL
12390 };
12391
12392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Clear",kwnames,&obj0)) goto fail;
12393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 (arg1)->Clear();
12398
12399 wxPyEndAllowThreads(__tstate);
12400 if (PyErr_Occurred()) SWIG_fail;
12401 }
12402 Py_INCREF(Py_None); resultobj = Py_None;
12403 return resultobj;
12404 fail:
12405 return NULL;
12406}
12407
12408
12409static PyObject *_wrap_DC_StartDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12410 PyObject *resultobj;
12411 wxDC *arg1 = (wxDC *) 0 ;
12412 wxString *arg2 = 0 ;
12413 bool result;
12414 bool temp2 = False ;
12415 PyObject * obj0 = 0 ;
12416 PyObject * obj1 = 0 ;
12417 char *kwnames[] = {
12418 (char *) "self",(char *) "message", NULL
12419 };
12420
12421 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) goto fail;
12422 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12423 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12424 {
12425 arg2 = wxString_in_helper(obj1);
12426 if (arg2 == NULL) SWIG_fail;
12427 temp2 = True;
12428 }
12429 {
12430 PyThreadState* __tstate = wxPyBeginAllowThreads();
12431 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
12432
12433 wxPyEndAllowThreads(__tstate);
12434 if (PyErr_Occurred()) SWIG_fail;
12435 }
12436 {
12437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12438 }
12439 {
12440 if (temp2)
12441 delete arg2;
12442 }
12443 return resultobj;
12444 fail:
12445 {
12446 if (temp2)
12447 delete arg2;
12448 }
12449 return NULL;
12450}
12451
12452
12453static PyObject *_wrap_DC_EndDoc(PyObject *self, PyObject *args, PyObject *kwargs) {
12454 PyObject *resultobj;
12455 wxDC *arg1 = (wxDC *) 0 ;
12456 PyObject * obj0 = 0 ;
12457 char *kwnames[] = {
12458 (char *) "self", NULL
12459 };
12460
12461 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndDoc",kwnames,&obj0)) goto fail;
12462 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12463 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12464 {
12465 PyThreadState* __tstate = wxPyBeginAllowThreads();
12466 (arg1)->EndDoc();
12467
12468 wxPyEndAllowThreads(__tstate);
12469 if (PyErr_Occurred()) SWIG_fail;
12470 }
12471 Py_INCREF(Py_None); resultobj = Py_None;
12472 return resultobj;
12473 fail:
12474 return NULL;
12475}
12476
12477
12478static PyObject *_wrap_DC_StartPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12479 PyObject *resultobj;
12480 wxDC *arg1 = (wxDC *) 0 ;
12481 PyObject * obj0 = 0 ;
12482 char *kwnames[] = {
12483 (char *) "self", NULL
12484 };
12485
12486 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_StartPage",kwnames,&obj0)) goto fail;
12487 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12488 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12489 {
12490 PyThreadState* __tstate = wxPyBeginAllowThreads();
12491 (arg1)->StartPage();
12492
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 Py_INCREF(Py_None); resultobj = Py_None;
12497 return resultobj;
12498 fail:
12499 return NULL;
12500}
12501
12502
12503static PyObject *_wrap_DC_EndPage(PyObject *self, PyObject *args, PyObject *kwargs) {
12504 PyObject *resultobj;
12505 wxDC *arg1 = (wxDC *) 0 ;
12506 PyObject * obj0 = 0 ;
12507 char *kwnames[] = {
12508 (char *) "self", NULL
12509 };
12510
12511 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_EndPage",kwnames,&obj0)) goto fail;
12512 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12513 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12514 {
12515 PyThreadState* __tstate = wxPyBeginAllowThreads();
12516 (arg1)->EndPage();
12517
12518 wxPyEndAllowThreads(__tstate);
12519 if (PyErr_Occurred()) SWIG_fail;
12520 }
12521 Py_INCREF(Py_None); resultobj = Py_None;
12522 return resultobj;
12523 fail:
12524 return NULL;
12525}
12526
12527
12528static PyObject *_wrap_DC_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
12529 PyObject *resultobj;
12530 wxDC *arg1 = (wxDC *) 0 ;
12531 wxFont *arg2 = 0 ;
12532 PyObject * obj0 = 0 ;
12533 PyObject * obj1 = 0 ;
12534 char *kwnames[] = {
12535 (char *) "self",(char *) "font", NULL
12536 };
12537
12538 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) goto fail;
12539 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12540 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12541 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
12542 SWIG_POINTER_EXCEPTION | 0)) == -1)
12543 SWIG_fail;
12544 if (arg2 == NULL) {
12545 PyErr_SetString(PyExc_TypeError,"null reference");
12546 SWIG_fail;
12547 }
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 (arg1)->SetFont((wxFont const &)*arg2);
12551
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 Py_INCREF(Py_None); resultobj = Py_None;
12556 return resultobj;
12557 fail:
12558 return NULL;
12559}
12560
12561
12562static PyObject *_wrap_DC_SetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
12563 PyObject *resultobj;
12564 wxDC *arg1 = (wxDC *) 0 ;
12565 wxPen *arg2 = 0 ;
12566 PyObject * obj0 = 0 ;
12567 PyObject * obj1 = 0 ;
12568 char *kwnames[] = {
12569 (char *) "self",(char *) "pen", NULL
12570 };
12571
12572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) goto fail;
12573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12575 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
12576 SWIG_POINTER_EXCEPTION | 0)) == -1)
12577 SWIG_fail;
12578 if (arg2 == NULL) {
12579 PyErr_SetString(PyExc_TypeError,"null reference");
12580 SWIG_fail;
12581 }
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 (arg1)->SetPen((wxPen const &)*arg2);
12585
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 Py_INCREF(Py_None); resultobj = Py_None;
12590 return resultobj;
12591 fail:
12592 return NULL;
12593}
12594
12595
12596static PyObject *_wrap_DC_SetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
12597 PyObject *resultobj;
12598 wxDC *arg1 = (wxDC *) 0 ;
12599 wxBrush *arg2 = 0 ;
12600 PyObject * obj0 = 0 ;
12601 PyObject * obj1 = 0 ;
12602 char *kwnames[] = {
12603 (char *) "self",(char *) "brush", NULL
12604 };
12605
12606 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) goto fail;
12607 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12608 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12609 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12610 SWIG_POINTER_EXCEPTION | 0)) == -1)
12611 SWIG_fail;
12612 if (arg2 == NULL) {
12613 PyErr_SetString(PyExc_TypeError,"null reference");
12614 SWIG_fail;
12615 }
12616 {
12617 PyThreadState* __tstate = wxPyBeginAllowThreads();
12618 (arg1)->SetBrush((wxBrush const &)*arg2);
12619
12620 wxPyEndAllowThreads(__tstate);
12621 if (PyErr_Occurred()) SWIG_fail;
12622 }
12623 Py_INCREF(Py_None); resultobj = Py_None;
12624 return resultobj;
12625 fail:
12626 return NULL;
12627}
12628
12629
12630static PyObject *_wrap_DC_SetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
12631 PyObject *resultobj;
12632 wxDC *arg1 = (wxDC *) 0 ;
12633 wxBrush *arg2 = 0 ;
12634 PyObject * obj0 = 0 ;
12635 PyObject * obj1 = 0 ;
12636 char *kwnames[] = {
12637 (char *) "self",(char *) "brush", NULL
12638 };
12639
12640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) goto fail;
12641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12643 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
12644 SWIG_POINTER_EXCEPTION | 0)) == -1)
12645 SWIG_fail;
12646 if (arg2 == NULL) {
12647 PyErr_SetString(PyExc_TypeError,"null reference");
12648 SWIG_fail;
12649 }
12650 {
12651 PyThreadState* __tstate = wxPyBeginAllowThreads();
12652 (arg1)->SetBackground((wxBrush const &)*arg2);
12653
12654 wxPyEndAllowThreads(__tstate);
12655 if (PyErr_Occurred()) SWIG_fail;
12656 }
12657 Py_INCREF(Py_None); resultobj = Py_None;
12658 return resultobj;
12659 fail:
12660 return NULL;
12661}
12662
12663
12664static PyObject *_wrap_DC_SetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
12665 PyObject *resultobj;
12666 wxDC *arg1 = (wxDC *) 0 ;
12667 int arg2 ;
12668 PyObject * obj0 = 0 ;
12669 PyObject * obj1 = 0 ;
12670 char *kwnames[] = {
12671 (char *) "self",(char *) "mode", NULL
12672 };
12673
12674 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) goto fail;
12675 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12676 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12677 arg2 = (int) SWIG_AsInt(obj1);
12678 if (PyErr_Occurred()) SWIG_fail;
12679 {
12680 PyThreadState* __tstate = wxPyBeginAllowThreads();
12681 (arg1)->SetBackgroundMode(arg2);
12682
12683 wxPyEndAllowThreads(__tstate);
12684 if (PyErr_Occurred()) SWIG_fail;
12685 }
12686 Py_INCREF(Py_None); resultobj = Py_None;
12687 return resultobj;
12688 fail:
12689 return NULL;
12690}
12691
12692
12693static PyObject *_wrap_DC_SetPalette(PyObject *self, PyObject *args, PyObject *kwargs) {
12694 PyObject *resultobj;
12695 wxDC *arg1 = (wxDC *) 0 ;
12696 wxPalette *arg2 = 0 ;
12697 PyObject * obj0 = 0 ;
12698 PyObject * obj1 = 0 ;
12699 char *kwnames[] = {
12700 (char *) "self",(char *) "palette", NULL
12701 };
12702
12703 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) goto fail;
12704 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12705 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12706 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPalette,
12707 SWIG_POINTER_EXCEPTION | 0)) == -1)
12708 SWIG_fail;
12709 if (arg2 == NULL) {
12710 PyErr_SetString(PyExc_TypeError,"null reference");
12711 SWIG_fail;
12712 }
12713 {
12714 PyThreadState* __tstate = wxPyBeginAllowThreads();
12715 (arg1)->SetPalette((wxPalette const &)*arg2);
12716
12717 wxPyEndAllowThreads(__tstate);
12718 if (PyErr_Occurred()) SWIG_fail;
12719 }
12720 Py_INCREF(Py_None); resultobj = Py_None;
12721 return resultobj;
12722 fail:
12723 return NULL;
12724}
12725
12726
d55e5bfc
RD
12727static PyObject *_wrap_DC_DestroyClippingRegion(PyObject *self, PyObject *args, PyObject *kwargs) {
12728 PyObject *resultobj;
12729 wxDC *arg1 = (wxDC *) 0 ;
12730 PyObject * obj0 = 0 ;
12731 char *kwnames[] = {
12732 (char *) "self", NULL
12733 };
12734
12735 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_DestroyClippingRegion",kwnames,&obj0)) goto fail;
12736 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12737 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->DestroyClippingRegion();
12741
12742 wxPyEndAllowThreads(__tstate);
12743 if (PyErr_Occurred()) SWIG_fail;
12744 }
12745 Py_INCREF(Py_None); resultobj = Py_None;
12746 return resultobj;
12747 fail:
12748 return NULL;
12749}
12750
12751
12752static PyObject *_wrap_DC_GetClippingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
12753 PyObject *resultobj;
12754 wxDC *arg1 = (wxDC *) 0 ;
12755 int *arg2 = (int *) 0 ;
12756 int *arg3 = (int *) 0 ;
12757 int *arg4 = (int *) 0 ;
12758 int *arg5 = (int *) 0 ;
12759 int temp2 ;
12760 int temp3 ;
12761 int temp4 ;
12762 int temp5 ;
12763 PyObject * obj0 = 0 ;
12764 char *kwnames[] = {
12765 (char *) "self", NULL
12766 };
12767
12768 arg2 = &temp2;
12769 arg3 = &temp3;
12770 arg4 = &temp4;
12771 arg5 = &temp5;
12772 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingBox",kwnames,&obj0)) goto fail;
12773 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12774 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12775 {
12776 PyThreadState* __tstate = wxPyBeginAllowThreads();
12777 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
12778
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 Py_INCREF(Py_None); resultobj = Py_None;
12783 {
12784 PyObject *o = PyInt_FromLong((long) (*arg2));
12785 resultobj = t_output_helper(resultobj,o);
12786 }
12787 {
12788 PyObject *o = PyInt_FromLong((long) (*arg3));
12789 resultobj = t_output_helper(resultobj,o);
12790 }
12791 {
12792 PyObject *o = PyInt_FromLong((long) (*arg4));
12793 resultobj = t_output_helper(resultobj,o);
12794 }
12795 {
12796 PyObject *o = PyInt_FromLong((long) (*arg5));
12797 resultobj = t_output_helper(resultobj,o);
12798 }
12799 return resultobj;
12800 fail:
12801 return NULL;
12802}
12803
12804
12805static PyObject *_wrap_DC_GetClippingRect(PyObject *self, PyObject *args, PyObject *kwargs) {
12806 PyObject *resultobj;
12807 wxDC *arg1 = (wxDC *) 0 ;
12808 wxRect result;
12809 PyObject * obj0 = 0 ;
12810 char *kwnames[] = {
12811 (char *) "self", NULL
12812 };
12813
12814 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetClippingRect",kwnames,&obj0)) goto fail;
12815 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12816 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12817 {
12818 PyThreadState* __tstate = wxPyBeginAllowThreads();
12819 result = wxDC_GetClippingRect(arg1);
12820
12821 wxPyEndAllowThreads(__tstate);
12822 if (PyErr_Occurred()) SWIG_fail;
12823 }
12824 {
12825 wxRect * resultptr;
12826 resultptr = new wxRect((wxRect &) result);
12827 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1);
12828 }
12829 return resultobj;
12830 fail:
12831 return NULL;
12832}
12833
12834
12835static PyObject *_wrap_DC_GetCharHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
12836 PyObject *resultobj;
12837 wxDC *arg1 = (wxDC *) 0 ;
12838 int result;
12839 PyObject * obj0 = 0 ;
12840 char *kwnames[] = {
12841 (char *) "self", NULL
12842 };
12843
12844 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharHeight",kwnames,&obj0)) goto fail;
12845 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12846 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 result = (int)((wxDC const *)arg1)->GetCharHeight();
12850
12851 wxPyEndAllowThreads(__tstate);
12852 if (PyErr_Occurred()) SWIG_fail;
12853 }
12854 resultobj = SWIG_FromInt((int)result);
12855 return resultobj;
12856 fail:
12857 return NULL;
12858}
12859
12860
12861static PyObject *_wrap_DC_GetCharWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
12862 PyObject *resultobj;
12863 wxDC *arg1 = (wxDC *) 0 ;
12864 int result;
12865 PyObject * obj0 = 0 ;
12866 char *kwnames[] = {
12867 (char *) "self", NULL
12868 };
12869
12870 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetCharWidth",kwnames,&obj0)) goto fail;
12871 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12872 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (int)((wxDC const *)arg1)->GetCharWidth();
12876
12877 wxPyEndAllowThreads(__tstate);
12878 if (PyErr_Occurred()) SWIG_fail;
12879 }
12880 resultobj = SWIG_FromInt((int)result);
12881 return resultobj;
12882 fail:
12883 return NULL;
12884}
12885
12886
12887static PyObject *_wrap_DC_GetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj;
12889 wxDC *arg1 = (wxDC *) 0 ;
12890 wxString *arg2 = 0 ;
12891 int *arg3 = (int *) 0 ;
12892 int *arg4 = (int *) 0 ;
12893 bool temp2 = False ;
12894 int temp3 ;
12895 int temp4 ;
12896 PyObject * obj0 = 0 ;
12897 PyObject * obj1 = 0 ;
12898 char *kwnames[] = {
12899 (char *) "self",(char *) "string", NULL
12900 };
12901
12902 arg3 = &temp3;
12903 arg4 = &temp4;
12904 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) goto fail;
12905 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12906 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12907 {
12908 arg2 = wxString_in_helper(obj1);
12909 if (arg2 == NULL) SWIG_fail;
12910 temp2 = True;
12911 }
12912 {
12913 PyThreadState* __tstate = wxPyBeginAllowThreads();
12914 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
12915
12916 wxPyEndAllowThreads(__tstate);
12917 if (PyErr_Occurred()) SWIG_fail;
12918 }
12919 Py_INCREF(Py_None); resultobj = Py_None;
12920 {
12921 PyObject *o = PyInt_FromLong((long) (*arg3));
12922 resultobj = t_output_helper(resultobj,o);
12923 }
12924 {
12925 PyObject *o = PyInt_FromLong((long) (*arg4));
12926 resultobj = t_output_helper(resultobj,o);
12927 }
12928 {
12929 if (temp2)
12930 delete arg2;
12931 }
12932 return resultobj;
12933 fail:
12934 {
12935 if (temp2)
12936 delete arg2;
12937 }
12938 return NULL;
12939}
12940
12941
12942static PyObject *_wrap_DC_GetFullTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
12943 PyObject *resultobj;
12944 wxDC *arg1 = (wxDC *) 0 ;
12945 wxString *arg2 = 0 ;
12946 int *arg3 = (int *) 0 ;
12947 int *arg4 = (int *) 0 ;
12948 int *arg5 = (int *) 0 ;
12949 int *arg6 = (int *) 0 ;
12950 wxFont *arg7 = (wxFont *) NULL ;
12951 bool temp2 = False ;
12952 int temp3 ;
12953 int temp4 ;
12954 int temp5 ;
12955 int temp6 ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 PyObject * obj2 = 0 ;
12959 char *kwnames[] = {
12960 (char *) "self",(char *) "string",(char *) "font", NULL
12961 };
12962
12963 arg3 = &temp3;
12964 arg4 = &temp4;
12965 arg5 = &temp5;
12966 arg6 = &temp6;
12967 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
12968 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
12969 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12970 {
12971 arg2 = wxString_in_helper(obj1);
12972 if (arg2 == NULL) SWIG_fail;
12973 temp2 = True;
12974 }
12975 if (obj2) {
12976 if ((SWIG_ConvertPtr(obj2,(void **)(&arg7),SWIGTYPE_p_wxFont,
12977 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
12978 }
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
12982
12983 wxPyEndAllowThreads(__tstate);
12984 if (PyErr_Occurred()) SWIG_fail;
12985 }
12986 Py_INCREF(Py_None); resultobj = Py_None;
12987 {
12988 PyObject *o = PyInt_FromLong((long) (*arg3));
12989 resultobj = t_output_helper(resultobj,o);
12990 }
12991 {
12992 PyObject *o = PyInt_FromLong((long) (*arg4));
12993 resultobj = t_output_helper(resultobj,o);
12994 }
12995 {
12996 PyObject *o = PyInt_FromLong((long) (*arg5));
12997 resultobj = t_output_helper(resultobj,o);
12998 }
12999 {
13000 PyObject *o = PyInt_FromLong((long) (*arg6));
13001 resultobj = t_output_helper(resultobj,o);
13002 }
13003 {
13004 if (temp2)
13005 delete arg2;
13006 }
13007 return resultobj;
13008 fail:
13009 {
13010 if (temp2)
13011 delete arg2;
13012 }
13013 return NULL;
13014}
13015
13016
13017static PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13018 PyObject *resultobj;
13019 wxDC *arg1 = (wxDC *) 0 ;
13020 wxString *arg2 = 0 ;
13021 int *arg3 = (int *) 0 ;
13022 int *arg4 = (int *) 0 ;
13023 int *arg5 = (int *) 0 ;
13024 wxFont *arg6 = (wxFont *) NULL ;
13025 bool temp2 = False ;
13026 int temp3 ;
13027 int temp4 ;
13028 int temp5 ;
13029 PyObject * obj0 = 0 ;
13030 PyObject * obj1 = 0 ;
13031 PyObject * obj2 = 0 ;
13032 char *kwnames[] = {
13033 (char *) "self",(char *) "text",(char *) "font", NULL
13034 };
13035
13036 arg3 = &temp3;
13037 arg4 = &temp4;
13038 arg5 = &temp5;
13039 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) goto fail;
13040 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13041 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13042 {
13043 arg2 = wxString_in_helper(obj1);
13044 if (arg2 == NULL) SWIG_fail;
13045 temp2 = True;
13046 }
13047 if (obj2) {
13048 if ((SWIG_ConvertPtr(obj2,(void **)(&arg6),SWIGTYPE_p_wxFont,
13049 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13050 }
13051 {
13052 PyThreadState* __tstate = wxPyBeginAllowThreads();
13053 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
13054
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 Py_INCREF(Py_None); resultobj = Py_None;
13059 {
13060 PyObject *o = PyInt_FromLong((long) (*arg3));
13061 resultobj = t_output_helper(resultobj,o);
13062 }
13063 {
13064 PyObject *o = PyInt_FromLong((long) (*arg4));
13065 resultobj = t_output_helper(resultobj,o);
13066 }
13067 {
13068 PyObject *o = PyInt_FromLong((long) (*arg5));
13069 resultobj = t_output_helper(resultobj,o);
13070 }
13071 {
13072 if (temp2)
13073 delete arg2;
13074 }
13075 return resultobj;
13076 fail:
13077 {
13078 if (temp2)
13079 delete arg2;
13080 }
13081 return NULL;
13082}
13083
13084
13085static PyObject *_wrap_DC_GetPartialTextExtents(PyObject *self, PyObject *args, PyObject *kwargs) {
13086 PyObject *resultobj;
13087 wxDC *arg1 = (wxDC *) 0 ;
13088 wxString *arg2 = 0 ;
13089 wxArrayInt result;
13090 bool temp2 = False ;
13091 PyObject * obj0 = 0 ;
13092 PyObject * obj1 = 0 ;
13093 char *kwnames[] = {
13094 (char *) "self",(char *) "text", NULL
13095 };
13096
13097 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) goto fail;
13098 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13099 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13100 {
13101 arg2 = wxString_in_helper(obj1);
13102 if (arg2 == NULL) SWIG_fail;
13103 temp2 = True;
13104 }
13105 {
13106 PyThreadState* __tstate = wxPyBeginAllowThreads();
13107 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
13108
13109 wxPyEndAllowThreads(__tstate);
13110 if (PyErr_Occurred()) SWIG_fail;
13111 }
13112 {
13113 resultobj = PyList_New(0);
13114 size_t idx;
13115 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
13116 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
13117 PyList_Append(resultobj, val);
13118 Py_DECREF(val);
13119 }
13120 }
13121 {
13122 if (temp2)
13123 delete arg2;
13124 }
13125 return resultobj;
13126 fail:
13127 {
13128 if (temp2)
13129 delete arg2;
13130 }
13131 return NULL;
13132}
13133
13134
13135static PyObject *_wrap_DC_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
13136 PyObject *resultobj;
13137 wxDC *arg1 = (wxDC *) 0 ;
13138 wxSize result;
13139 PyObject * obj0 = 0 ;
13140 char *kwnames[] = {
13141 (char *) "self", NULL
13142 };
13143
13144 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSize",kwnames,&obj0)) goto fail;
13145 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13146 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (arg1)->GetSize();
13150
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 {
13155 wxSize * resultptr;
13156 resultptr = new wxSize((wxSize &) result);
13157 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13158 }
13159 return resultobj;
13160 fail:
13161 return NULL;
13162}
13163
13164
13165static PyObject *_wrap_DC_GetSizeTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13166 PyObject *resultobj;
13167 wxDC *arg1 = (wxDC *) 0 ;
13168 int *arg2 = (int *) 0 ;
13169 int *arg3 = (int *) 0 ;
13170 int temp2 ;
13171 int temp3 ;
13172 PyObject * obj0 = 0 ;
13173 char *kwnames[] = {
13174 (char *) "self", NULL
13175 };
13176
13177 arg2 = &temp2;
13178 arg3 = &temp3;
13179 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeTuple",kwnames,&obj0)) goto fail;
13180 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13181 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13182 {
13183 PyThreadState* __tstate = wxPyBeginAllowThreads();
13184 (arg1)->GetSize(arg2,arg3);
13185
13186 wxPyEndAllowThreads(__tstate);
13187 if (PyErr_Occurred()) SWIG_fail;
13188 }
13189 Py_INCREF(Py_None); resultobj = Py_None;
13190 {
13191 PyObject *o = PyInt_FromLong((long) (*arg2));
13192 resultobj = t_output_helper(resultobj,o);
13193 }
13194 {
13195 PyObject *o = PyInt_FromLong((long) (*arg3));
13196 resultobj = t_output_helper(resultobj,o);
13197 }
13198 return resultobj;
13199 fail:
13200 return NULL;
13201}
13202
13203
13204static PyObject *_wrap_DC_GetSizeMM(PyObject *self, PyObject *args, PyObject *kwargs) {
13205 PyObject *resultobj;
13206 wxDC *arg1 = (wxDC *) 0 ;
13207 wxSize result;
13208 PyObject * obj0 = 0 ;
13209 char *kwnames[] = {
13210 (char *) "self", NULL
13211 };
13212
13213 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMM",kwnames,&obj0)) goto fail;
13214 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13215 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13216 {
13217 PyThreadState* __tstate = wxPyBeginAllowThreads();
13218 result = ((wxDC const *)arg1)->GetSizeMM();
13219
13220 wxPyEndAllowThreads(__tstate);
13221 if (PyErr_Occurred()) SWIG_fail;
13222 }
13223 {
13224 wxSize * resultptr;
13225 resultptr = new wxSize((wxSize &) result);
13226 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13227 }
13228 return resultobj;
13229 fail:
13230 return NULL;
13231}
13232
13233
13234static PyObject *_wrap_DC_GetSizeMMTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
13235 PyObject *resultobj;
13236 wxDC *arg1 = (wxDC *) 0 ;
13237 int *arg2 = (int *) 0 ;
13238 int *arg3 = (int *) 0 ;
13239 int temp2 ;
13240 int temp3 ;
13241 PyObject * obj0 = 0 ;
13242 char *kwnames[] = {
13243 (char *) "self", NULL
13244 };
13245
13246 arg2 = &temp2;
13247 arg3 = &temp3;
13248 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetSizeMMTuple",kwnames,&obj0)) goto fail;
13249 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13250 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13251 {
13252 PyThreadState* __tstate = wxPyBeginAllowThreads();
13253 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
13254
13255 wxPyEndAllowThreads(__tstate);
13256 if (PyErr_Occurred()) SWIG_fail;
13257 }
13258 Py_INCREF(Py_None); resultobj = Py_None;
13259 {
13260 PyObject *o = PyInt_FromLong((long) (*arg2));
13261 resultobj = t_output_helper(resultobj,o);
13262 }
13263 {
13264 PyObject *o = PyInt_FromLong((long) (*arg3));
13265 resultobj = t_output_helper(resultobj,o);
13266 }
13267 return resultobj;
13268 fail:
13269 return NULL;
13270}
13271
13272
13273static PyObject *_wrap_DC_DeviceToLogicalX(PyObject *self, PyObject *args, PyObject *kwargs) {
13274 PyObject *resultobj;
13275 wxDC *arg1 = (wxDC *) 0 ;
13276 int arg2 ;
13277 int result;
13278 PyObject * obj0 = 0 ;
13279 PyObject * obj1 = 0 ;
13280 char *kwnames[] = {
13281 (char *) "self",(char *) "x", NULL
13282 };
13283
13284 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) goto fail;
13285 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13286 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13287 arg2 = (int) SWIG_AsInt(obj1);
13288 if (PyErr_Occurred()) SWIG_fail;
13289 {
13290 PyThreadState* __tstate = wxPyBeginAllowThreads();
13291 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
13292
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_FromInt((int)result);
13297 return resultobj;
13298 fail:
13299 return NULL;
13300}
13301
13302
13303static PyObject *_wrap_DC_DeviceToLogicalY(PyObject *self, PyObject *args, PyObject *kwargs) {
13304 PyObject *resultobj;
13305 wxDC *arg1 = (wxDC *) 0 ;
13306 int arg2 ;
13307 int result;
13308 PyObject * obj0 = 0 ;
13309 PyObject * obj1 = 0 ;
13310 char *kwnames[] = {
13311 (char *) "self",(char *) "y", NULL
13312 };
13313
13314 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) goto fail;
13315 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13316 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13317 arg2 = (int) SWIG_AsInt(obj1);
13318 if (PyErr_Occurred()) SWIG_fail;
13319 {
13320 PyThreadState* __tstate = wxPyBeginAllowThreads();
13321 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
13322
13323 wxPyEndAllowThreads(__tstate);
13324 if (PyErr_Occurred()) SWIG_fail;
13325 }
13326 resultobj = SWIG_FromInt((int)result);
13327 return resultobj;
13328 fail:
13329 return NULL;
13330}
13331
13332
13333static PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13334 PyObject *resultobj;
13335 wxDC *arg1 = (wxDC *) 0 ;
13336 int arg2 ;
13337 int result;
13338 PyObject * obj0 = 0 ;
13339 PyObject * obj1 = 0 ;
13340 char *kwnames[] = {
13341 (char *) "self",(char *) "x", NULL
13342 };
13343
13344 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) goto fail;
13345 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13346 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13347 arg2 = (int) SWIG_AsInt(obj1);
13348 if (PyErr_Occurred()) SWIG_fail;
13349 {
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
13352
13353 wxPyEndAllowThreads(__tstate);
13354 if (PyErr_Occurred()) SWIG_fail;
13355 }
13356 resultobj = SWIG_FromInt((int)result);
13357 return resultobj;
13358 fail:
13359 return NULL;
13360}
13361
13362
13363static PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13364 PyObject *resultobj;
13365 wxDC *arg1 = (wxDC *) 0 ;
13366 int arg2 ;
13367 int result;
13368 PyObject * obj0 = 0 ;
13369 PyObject * obj1 = 0 ;
13370 char *kwnames[] = {
13371 (char *) "self",(char *) "y", NULL
13372 };
13373
13374 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) goto fail;
13375 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13376 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13377 arg2 = (int) SWIG_AsInt(obj1);
13378 if (PyErr_Occurred()) SWIG_fail;
13379 {
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
13382
13383 wxPyEndAllowThreads(__tstate);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 }
13386 resultobj = SWIG_FromInt((int)result);
13387 return resultobj;
13388 fail:
13389 return NULL;
13390}
13391
13392
13393static PyObject *_wrap_DC_LogicalToDeviceX(PyObject *self, PyObject *args, PyObject *kwargs) {
13394 PyObject *resultobj;
13395 wxDC *arg1 = (wxDC *) 0 ;
13396 int arg2 ;
13397 int result;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 char *kwnames[] = {
13401 (char *) "self",(char *) "x", NULL
13402 };
13403
13404 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) goto fail;
13405 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13406 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13407 arg2 = (int) SWIG_AsInt(obj1);
13408 if (PyErr_Occurred()) SWIG_fail;
13409 {
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
13412
13413 wxPyEndAllowThreads(__tstate);
13414 if (PyErr_Occurred()) SWIG_fail;
13415 }
13416 resultobj = SWIG_FromInt((int)result);
13417 return resultobj;
13418 fail:
13419 return NULL;
13420}
13421
13422
13423static PyObject *_wrap_DC_LogicalToDeviceY(PyObject *self, PyObject *args, PyObject *kwargs) {
13424 PyObject *resultobj;
13425 wxDC *arg1 = (wxDC *) 0 ;
13426 int arg2 ;
13427 int result;
13428 PyObject * obj0 = 0 ;
13429 PyObject * obj1 = 0 ;
13430 char *kwnames[] = {
13431 (char *) "self",(char *) "y", NULL
13432 };
13433
13434 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) goto fail;
13435 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13436 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13437 arg2 = (int) SWIG_AsInt(obj1);
13438 if (PyErr_Occurred()) SWIG_fail;
13439 {
13440 PyThreadState* __tstate = wxPyBeginAllowThreads();
13441 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
13442
13443 wxPyEndAllowThreads(__tstate);
13444 if (PyErr_Occurred()) SWIG_fail;
13445 }
13446 resultobj = SWIG_FromInt((int)result);
13447 return resultobj;
13448 fail:
13449 return NULL;
13450}
13451
13452
13453static PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13454 PyObject *resultobj;
13455 wxDC *arg1 = (wxDC *) 0 ;
13456 int arg2 ;
13457 int result;
13458 PyObject * obj0 = 0 ;
13459 PyObject * obj1 = 0 ;
13460 char *kwnames[] = {
13461 (char *) "self",(char *) "x", NULL
13462 };
13463
13464 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) goto fail;
13465 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13466 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13467 arg2 = (int) SWIG_AsInt(obj1);
13468 if (PyErr_Occurred()) SWIG_fail;
13469 {
13470 PyThreadState* __tstate = wxPyBeginAllowThreads();
13471 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
13472
13473 wxPyEndAllowThreads(__tstate);
13474 if (PyErr_Occurred()) SWIG_fail;
13475 }
13476 resultobj = SWIG_FromInt((int)result);
13477 return resultobj;
13478 fail:
13479 return NULL;
13480}
13481
13482
13483static PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *self, PyObject *args, PyObject *kwargs) {
13484 PyObject *resultobj;
13485 wxDC *arg1 = (wxDC *) 0 ;
13486 int arg2 ;
13487 int result;
13488 PyObject * obj0 = 0 ;
13489 PyObject * obj1 = 0 ;
13490 char *kwnames[] = {
13491 (char *) "self",(char *) "y", NULL
13492 };
13493
13494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) goto fail;
13495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13497 arg2 = (int) SWIG_AsInt(obj1);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 {
13500 PyThreadState* __tstate = wxPyBeginAllowThreads();
13501 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
13502
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 resultobj = SWIG_FromInt((int)result);
13507 return resultobj;
13508 fail:
13509 return NULL;
13510}
13511
13512
13513static PyObject *_wrap_DC_CanDrawBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
13514 PyObject *resultobj;
13515 wxDC *arg1 = (wxDC *) 0 ;
13516 bool result;
13517 PyObject * obj0 = 0 ;
13518 char *kwnames[] = {
13519 (char *) "self", NULL
13520 };
13521
13522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanDrawBitmap",kwnames,&obj0)) goto fail;
13523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13525 {
13526 PyThreadState* __tstate = wxPyBeginAllowThreads();
13527 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
13528
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 {
13533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13534 }
13535 return resultobj;
13536 fail:
13537 return NULL;
13538}
13539
13540
13541static PyObject *_wrap_DC_CanGetTextExtent(PyObject *self, PyObject *args, PyObject *kwargs) {
13542 PyObject *resultobj;
13543 wxDC *arg1 = (wxDC *) 0 ;
13544 bool result;
13545 PyObject * obj0 = 0 ;
13546 char *kwnames[] = {
13547 (char *) "self", NULL
13548 };
13549
13550 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_CanGetTextExtent",kwnames,&obj0)) goto fail;
13551 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13552 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13553 {
13554 PyThreadState* __tstate = wxPyBeginAllowThreads();
13555 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
13556
13557 wxPyEndAllowThreads(__tstate);
13558 if (PyErr_Occurred()) SWIG_fail;
13559 }
13560 {
13561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13562 }
13563 return resultobj;
13564 fail:
13565 return NULL;
13566}
13567
13568
13569static PyObject *_wrap_DC_GetDepth(PyObject *self, PyObject *args, PyObject *kwargs) {
13570 PyObject *resultobj;
13571 wxDC *arg1 = (wxDC *) 0 ;
13572 int result;
13573 PyObject * obj0 = 0 ;
13574 char *kwnames[] = {
13575 (char *) "self", NULL
13576 };
13577
13578 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDepth",kwnames,&obj0)) goto fail;
13579 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13580 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13581 {
13582 PyThreadState* __tstate = wxPyBeginAllowThreads();
13583 result = (int)((wxDC const *)arg1)->GetDepth();
13584
13585 wxPyEndAllowThreads(__tstate);
13586 if (PyErr_Occurred()) SWIG_fail;
13587 }
13588 resultobj = SWIG_FromInt((int)result);
13589 return resultobj;
13590 fail:
13591 return NULL;
13592}
13593
13594
13595static PyObject *_wrap_DC_GetPPI(PyObject *self, PyObject *args, PyObject *kwargs) {
13596 PyObject *resultobj;
13597 wxDC *arg1 = (wxDC *) 0 ;
13598 wxSize result;
13599 PyObject * obj0 = 0 ;
13600 char *kwnames[] = {
13601 (char *) "self", NULL
13602 };
13603
13604 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPPI",kwnames,&obj0)) goto fail;
13605 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13606 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13607 {
13608 PyThreadState* __tstate = wxPyBeginAllowThreads();
13609 result = ((wxDC const *)arg1)->GetPPI();
13610
13611 wxPyEndAllowThreads(__tstate);
13612 if (PyErr_Occurred()) SWIG_fail;
13613 }
13614 {
13615 wxSize * resultptr;
13616 resultptr = new wxSize((wxSize &) result);
13617 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
13618 }
13619 return resultobj;
13620 fail:
13621 return NULL;
13622}
13623
13624
13625static PyObject *_wrap_DC_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj;
13627 wxDC *arg1 = (wxDC *) 0 ;
13628 bool result;
13629 PyObject * obj0 = 0 ;
13630 char *kwnames[] = {
13631 (char *) "self", NULL
13632 };
13633
13634 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_Ok",kwnames,&obj0)) goto fail;
13635 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13636 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13637 {
13638 PyThreadState* __tstate = wxPyBeginAllowThreads();
13639 result = (bool)((wxDC const *)arg1)->Ok();
13640
13641 wxPyEndAllowThreads(__tstate);
13642 if (PyErr_Occurred()) SWIG_fail;
13643 }
13644 {
13645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13646 }
13647 return resultobj;
13648 fail:
13649 return NULL;
13650}
13651
13652
13653static PyObject *_wrap_DC_GetBackgroundMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13654 PyObject *resultobj;
13655 wxDC *arg1 = (wxDC *) 0 ;
13656 int result;
13657 PyObject * obj0 = 0 ;
13658 char *kwnames[] = {
13659 (char *) "self", NULL
13660 };
13661
13662 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackgroundMode",kwnames,&obj0)) goto fail;
13663 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13664 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13665 {
13666 PyThreadState* __tstate = wxPyBeginAllowThreads();
13667 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
13668
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 resultobj = SWIG_FromInt((int)result);
13673 return resultobj;
13674 fail:
13675 return NULL;
13676}
13677
13678
13679static PyObject *_wrap_DC_GetBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13680 PyObject *resultobj;
13681 wxDC *arg1 = (wxDC *) 0 ;
13682 wxBrush *result;
13683 PyObject * obj0 = 0 ;
13684 char *kwnames[] = {
13685 (char *) "self", NULL
13686 };
13687
13688 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBackground",kwnames,&obj0)) goto fail;
13689 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13690 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 {
13694 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
13695 result = (wxBrush *) &_result_ref;
13696 }
13697
13698 wxPyEndAllowThreads(__tstate);
13699 if (PyErr_Occurred()) SWIG_fail;
13700 }
13701 {
13702 wxBrush* resultptr = new wxBrush(*result);
13703 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13704 }
13705 return resultobj;
13706 fail:
13707 return NULL;
13708}
13709
13710
13711static PyObject *_wrap_DC_GetBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
13712 PyObject *resultobj;
13713 wxDC *arg1 = (wxDC *) 0 ;
13714 wxBrush *result;
13715 PyObject * obj0 = 0 ;
13716 char *kwnames[] = {
13717 (char *) "self", NULL
13718 };
13719
13720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBrush",kwnames,&obj0)) goto fail;
13721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13723 {
13724 PyThreadState* __tstate = wxPyBeginAllowThreads();
13725 {
13726 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
13727 result = (wxBrush *) &_result_ref;
13728 }
13729
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 wxBrush* resultptr = new wxBrush(*result);
13735 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
13736 }
13737 return resultobj;
13738 fail:
13739 return NULL;
13740}
13741
13742
13743static PyObject *_wrap_DC_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) {
13744 PyObject *resultobj;
13745 wxDC *arg1 = (wxDC *) 0 ;
13746 wxFont *result;
13747 PyObject * obj0 = 0 ;
13748 char *kwnames[] = {
13749 (char *) "self", NULL
13750 };
13751
13752 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetFont",kwnames,&obj0)) goto fail;
13753 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13754 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13755 {
13756 PyThreadState* __tstate = wxPyBeginAllowThreads();
13757 {
13758 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
13759 result = (wxFont *) &_result_ref;
13760 }
13761
13762 wxPyEndAllowThreads(__tstate);
13763 if (PyErr_Occurred()) SWIG_fail;
13764 }
13765 {
13766 wxFont* resultptr = new wxFont(*result);
13767 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
13768 }
13769 return resultobj;
13770 fail:
13771 return NULL;
13772}
13773
13774
13775static PyObject *_wrap_DC_GetPen(PyObject *self, PyObject *args, PyObject *kwargs) {
13776 PyObject *resultobj;
13777 wxDC *arg1 = (wxDC *) 0 ;
13778 wxPen *result;
13779 PyObject * obj0 = 0 ;
13780 char *kwnames[] = {
13781 (char *) "self", NULL
13782 };
13783
13784 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetPen",kwnames,&obj0)) goto fail;
13785 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13786 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13787 {
13788 PyThreadState* __tstate = wxPyBeginAllowThreads();
13789 {
13790 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
13791 result = (wxPen *) &_result_ref;
13792 }
13793
13794 wxPyEndAllowThreads(__tstate);
13795 if (PyErr_Occurred()) SWIG_fail;
13796 }
13797 {
13798 wxPen* resultptr = new wxPen(*result);
13799 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
13800 }
13801 return resultobj;
13802 fail:
13803 return NULL;
13804}
13805
13806
13807static PyObject *_wrap_DC_GetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13808 PyObject *resultobj;
13809 wxDC *arg1 = (wxDC *) 0 ;
13810 wxColour *result;
13811 PyObject * obj0 = 0 ;
13812 char *kwnames[] = {
13813 (char *) "self", NULL
13814 };
13815
13816 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextBackground",kwnames,&obj0)) goto fail;
13817 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13818 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13819 {
13820 PyThreadState* __tstate = wxPyBeginAllowThreads();
13821 {
13822 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
13823 result = (wxColour *) &_result_ref;
13824 }
13825
13826 wxPyEndAllowThreads(__tstate);
13827 if (PyErr_Occurred()) SWIG_fail;
13828 }
13829 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13830 return resultobj;
13831 fail:
13832 return NULL;
13833}
13834
13835
13836static PyObject *_wrap_DC_GetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13837 PyObject *resultobj;
13838 wxDC *arg1 = (wxDC *) 0 ;
13839 wxColour *result;
13840 PyObject * obj0 = 0 ;
13841 char *kwnames[] = {
13842 (char *) "self", NULL
13843 };
13844
13845 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetTextForeground",kwnames,&obj0)) goto fail;
13846 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13847 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13848 {
13849 PyThreadState* __tstate = wxPyBeginAllowThreads();
13850 {
13851 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
13852 result = (wxColour *) &_result_ref;
13853 }
13854
13855 wxPyEndAllowThreads(__tstate);
13856 if (PyErr_Occurred()) SWIG_fail;
13857 }
13858 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0);
13859 return resultobj;
13860 fail:
13861 return NULL;
13862}
13863
13864
13865static PyObject *_wrap_DC_SetTextForeground(PyObject *self, PyObject *args, PyObject *kwargs) {
13866 PyObject *resultobj;
13867 wxDC *arg1 = (wxDC *) 0 ;
13868 wxColour *arg2 = 0 ;
13869 wxColour temp2 ;
13870 PyObject * obj0 = 0 ;
13871 PyObject * obj1 = 0 ;
13872 char *kwnames[] = {
13873 (char *) "self",(char *) "colour", NULL
13874 };
13875
13876 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) goto fail;
13877 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13878 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13879 {
13880 arg2 = &temp2;
13881 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13882 }
13883 {
13884 PyThreadState* __tstate = wxPyBeginAllowThreads();
13885 (arg1)->SetTextForeground((wxColour const &)*arg2);
13886
13887 wxPyEndAllowThreads(__tstate);
13888 if (PyErr_Occurred()) SWIG_fail;
13889 }
13890 Py_INCREF(Py_None); resultobj = Py_None;
13891 return resultobj;
13892 fail:
13893 return NULL;
13894}
13895
13896
13897static PyObject *_wrap_DC_SetTextBackground(PyObject *self, PyObject *args, PyObject *kwargs) {
13898 PyObject *resultobj;
13899 wxDC *arg1 = (wxDC *) 0 ;
13900 wxColour *arg2 = 0 ;
13901 wxColour temp2 ;
13902 PyObject * obj0 = 0 ;
13903 PyObject * obj1 = 0 ;
13904 char *kwnames[] = {
13905 (char *) "self",(char *) "colour", NULL
13906 };
13907
13908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) goto fail;
13909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13911 {
13912 arg2 = &temp2;
13913 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
13914 }
13915 {
13916 PyThreadState* __tstate = wxPyBeginAllowThreads();
13917 (arg1)->SetTextBackground((wxColour const &)*arg2);
13918
13919 wxPyEndAllowThreads(__tstate);
13920 if (PyErr_Occurred()) SWIG_fail;
13921 }
13922 Py_INCREF(Py_None); resultobj = Py_None;
13923 return resultobj;
13924 fail:
13925 return NULL;
13926}
13927
13928
13929static PyObject *_wrap_DC_GetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13930 PyObject *resultobj;
13931 wxDC *arg1 = (wxDC *) 0 ;
13932 int result;
13933 PyObject * obj0 = 0 ;
13934 char *kwnames[] = {
13935 (char *) "self", NULL
13936 };
13937
13938 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetMapMode",kwnames,&obj0)) goto fail;
13939 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13940 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13941 {
13942 PyThreadState* __tstate = wxPyBeginAllowThreads();
13943 result = (int)((wxDC const *)arg1)->GetMapMode();
13944
13945 wxPyEndAllowThreads(__tstate);
13946 if (PyErr_Occurred()) SWIG_fail;
13947 }
13948 resultobj = SWIG_FromInt((int)result);
13949 return resultobj;
13950 fail:
13951 return NULL;
13952}
13953
13954
13955static PyObject *_wrap_DC_SetMapMode(PyObject *self, PyObject *args, PyObject *kwargs) {
13956 PyObject *resultobj;
13957 wxDC *arg1 = (wxDC *) 0 ;
13958 int arg2 ;
13959 PyObject * obj0 = 0 ;
13960 PyObject * obj1 = 0 ;
13961 char *kwnames[] = {
13962 (char *) "self",(char *) "mode", NULL
13963 };
13964
13965 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) goto fail;
13966 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
13967 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
13968 arg2 = (int) SWIG_AsInt(obj1);
13969 if (PyErr_Occurred()) SWIG_fail;
13970 {
13971 PyThreadState* __tstate = wxPyBeginAllowThreads();
13972 (arg1)->SetMapMode(arg2);
13973
13974 wxPyEndAllowThreads(__tstate);
13975 if (PyErr_Occurred()) SWIG_fail;
13976 }
13977 Py_INCREF(Py_None); resultobj = Py_None;
13978 return resultobj;
13979 fail:
13980 return NULL;
13981}
13982
13983
13984static PyObject *_wrap_DC_GetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
13985 PyObject *resultobj;
13986 wxDC *arg1 = (wxDC *) 0 ;
13987 double *arg2 = (double *) 0 ;
13988 double *arg3 = (double *) 0 ;
13989 double temp2 ;
13990 double temp3 ;
13991 PyObject * obj0 = 0 ;
13992 char *kwnames[] = {
13993 (char *) "self", NULL
13994 };
13995
13996 arg2 = &temp2;
13997 arg3 = &temp3;
13998 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetUserScale",kwnames,&obj0)) goto fail;
13999 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14000 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14001 {
14002 PyThreadState* __tstate = wxPyBeginAllowThreads();
14003 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
14004
14005 wxPyEndAllowThreads(__tstate);
14006 if (PyErr_Occurred()) SWIG_fail;
14007 }
14008 Py_INCREF(Py_None); resultobj = Py_None;
14009 {
14010 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14011 resultobj = t_output_helper(resultobj,o);
14012 }
14013 {
14014 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14015 resultobj = t_output_helper(resultobj,o);
14016 }
14017 return resultobj;
14018 fail:
14019 return NULL;
14020}
14021
14022
14023static PyObject *_wrap_DC_SetUserScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14024 PyObject *resultobj;
14025 wxDC *arg1 = (wxDC *) 0 ;
14026 double arg2 ;
14027 double arg3 ;
14028 PyObject * obj0 = 0 ;
14029 PyObject * obj1 = 0 ;
14030 PyObject * obj2 = 0 ;
14031 char *kwnames[] = {
14032 (char *) "self",(char *) "x",(char *) "y", NULL
14033 };
14034
14035 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14036 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14037 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14038 arg2 = (double) SWIG_AsDouble(obj1);
14039 if (PyErr_Occurred()) SWIG_fail;
14040 arg3 = (double) SWIG_AsDouble(obj2);
14041 if (PyErr_Occurred()) SWIG_fail;
14042 {
14043 PyThreadState* __tstate = wxPyBeginAllowThreads();
14044 (arg1)->SetUserScale(arg2,arg3);
14045
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 Py_INCREF(Py_None); resultobj = Py_None;
14050 return resultobj;
14051 fail:
14052 return NULL;
14053}
14054
14055
14056static PyObject *_wrap_DC_GetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj;
14058 wxDC *arg1 = (wxDC *) 0 ;
14059 double *arg2 = (double *) 0 ;
14060 double *arg3 = (double *) 0 ;
14061 double temp2 ;
14062 double temp3 ;
14063 PyObject * obj0 = 0 ;
14064 char *kwnames[] = {
14065 (char *) "self", NULL
14066 };
14067
14068 arg2 = &temp2;
14069 arg3 = &temp3;
14070 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalScale",kwnames,&obj0)) goto fail;
14071 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14072 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14073 {
14074 PyThreadState* __tstate = wxPyBeginAllowThreads();
14075 (arg1)->GetLogicalScale(arg2,arg3);
14076
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 Py_INCREF(Py_None); resultobj = Py_None;
14081 {
14082 PyObject *o = PyFloat_FromDouble((double) (*arg2));
14083 resultobj = t_output_helper(resultobj,o);
14084 }
14085 {
14086 PyObject *o = PyFloat_FromDouble((double) (*arg3));
14087 resultobj = t_output_helper(resultobj,o);
14088 }
14089 return resultobj;
14090 fail:
14091 return NULL;
14092}
14093
14094
14095static PyObject *_wrap_DC_SetLogicalScale(PyObject *self, PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj;
14097 wxDC *arg1 = (wxDC *) 0 ;
14098 double arg2 ;
14099 double arg3 ;
14100 PyObject * obj0 = 0 ;
14101 PyObject * obj1 = 0 ;
14102 PyObject * obj2 = 0 ;
14103 char *kwnames[] = {
14104 (char *) "self",(char *) "x",(char *) "y", NULL
14105 };
14106
14107 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) goto fail;
14108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14110 arg2 = (double) SWIG_AsDouble(obj1);
14111 if (PyErr_Occurred()) SWIG_fail;
14112 arg3 = (double) SWIG_AsDouble(obj2);
14113 if (PyErr_Occurred()) SWIG_fail;
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 (arg1)->SetLogicalScale(arg2,arg3);
14117
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 Py_INCREF(Py_None); resultobj = Py_None;
14122 return resultobj;
14123 fail:
14124 return NULL;
14125}
14126
14127
14128static PyObject *_wrap_DC_GetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14129 PyObject *resultobj;
14130 wxDC *arg1 = (wxDC *) 0 ;
14131 wxPoint result;
14132 PyObject * obj0 = 0 ;
14133 char *kwnames[] = {
14134 (char *) "self", NULL
14135 };
14136
14137 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOrigin",kwnames,&obj0)) goto fail;
14138 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14139 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14140 {
14141 PyThreadState* __tstate = wxPyBeginAllowThreads();
14142 result = ((wxDC const *)arg1)->GetLogicalOrigin();
14143
14144 wxPyEndAllowThreads(__tstate);
14145 if (PyErr_Occurred()) SWIG_fail;
14146 }
14147 {
14148 wxPoint * resultptr;
14149 resultptr = new wxPoint((wxPoint &) result);
14150 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14151 }
14152 return resultobj;
14153 fail:
14154 return NULL;
14155}
14156
14157
14158static PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14159 PyObject *resultobj;
14160 wxDC *arg1 = (wxDC *) 0 ;
14161 int *arg2 = (int *) 0 ;
14162 int *arg3 = (int *) 0 ;
14163 int temp2 ;
14164 int temp3 ;
14165 PyObject * obj0 = 0 ;
14166 char *kwnames[] = {
14167 (char *) "self", NULL
14168 };
14169
14170 arg2 = &temp2;
14171 arg3 = &temp3;
14172 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalOriginTuple",kwnames,&obj0)) goto fail;
14173 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14174 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
14178
14179 wxPyEndAllowThreads(__tstate);
14180 if (PyErr_Occurred()) SWIG_fail;
14181 }
14182 Py_INCREF(Py_None); resultobj = Py_None;
14183 {
14184 PyObject *o = PyInt_FromLong((long) (*arg2));
14185 resultobj = t_output_helper(resultobj,o);
14186 }
14187 {
14188 PyObject *o = PyInt_FromLong((long) (*arg3));
14189 resultobj = t_output_helper(resultobj,o);
14190 }
14191 return resultobj;
14192 fail:
14193 return NULL;
14194}
14195
14196
14197static PyObject *_wrap_DC_SetLogicalOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14198 PyObject *resultobj;
14199 wxDC *arg1 = (wxDC *) 0 ;
14200 int arg2 ;
14201 int arg3 ;
14202 PyObject * obj0 = 0 ;
14203 PyObject * obj1 = 0 ;
14204 PyObject * obj2 = 0 ;
14205 char *kwnames[] = {
14206 (char *) "self",(char *) "x",(char *) "y", NULL
14207 };
14208
14209 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14210 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14211 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14212 arg2 = (int) SWIG_AsInt(obj1);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 arg3 = (int) SWIG_AsInt(obj2);
14215 if (PyErr_Occurred()) SWIG_fail;
14216 {
14217 PyThreadState* __tstate = wxPyBeginAllowThreads();
14218 (arg1)->SetLogicalOrigin(arg2,arg3);
14219
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 Py_INCREF(Py_None); resultobj = Py_None;
14224 return resultobj;
14225 fail:
14226 return NULL;
14227}
14228
14229
d6c14a4c
RD
14230static PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14231 PyObject *resultobj;
14232 wxDC *arg1 = (wxDC *) 0 ;
14233 wxPoint *arg2 = 0 ;
14234 wxPoint temp2 ;
14235 PyObject * obj0 = 0 ;
14236 PyObject * obj1 = 0 ;
14237 char *kwnames[] = {
14238 (char *) "self",(char *) "point", NULL
14239 };
14240
14241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14244 {
14245 arg2 = &temp2;
14246 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14247 }
14248 {
14249 PyThreadState* __tstate = wxPyBeginAllowThreads();
14250 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
14251
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 Py_INCREF(Py_None); resultobj = Py_None;
14256 return resultobj;
14257 fail:
14258 return NULL;
14259}
14260
14261
d55e5bfc
RD
14262static PyObject *_wrap_DC_GetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14263 PyObject *resultobj;
14264 wxDC *arg1 = (wxDC *) 0 ;
14265 wxPoint result;
14266 PyObject * obj0 = 0 ;
14267 char *kwnames[] = {
14268 (char *) "self", NULL
14269 };
14270
14271 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOrigin",kwnames,&obj0)) goto fail;
14272 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14273 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14274 {
14275 PyThreadState* __tstate = wxPyBeginAllowThreads();
14276 result = ((wxDC const *)arg1)->GetDeviceOrigin();
14277
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 {
14282 wxPoint * resultptr;
14283 resultptr = new wxPoint((wxPoint &) result);
14284 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1);
14285 }
14286 return resultobj;
14287 fail:
14288 return NULL;
14289}
14290
14291
14292static PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *self, PyObject *args, PyObject *kwargs) {
14293 PyObject *resultobj;
14294 wxDC *arg1 = (wxDC *) 0 ;
14295 int *arg2 = (int *) 0 ;
14296 int *arg3 = (int *) 0 ;
14297 int temp2 ;
14298 int temp3 ;
14299 PyObject * obj0 = 0 ;
14300 char *kwnames[] = {
14301 (char *) "self", NULL
14302 };
14303
14304 arg2 = &temp2;
14305 arg3 = &temp3;
14306 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetDeviceOriginTuple",kwnames,&obj0)) goto fail;
14307 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14308 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14309 {
14310 PyThreadState* __tstate = wxPyBeginAllowThreads();
14311 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
14312
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 Py_INCREF(Py_None); resultobj = Py_None;
14317 {
14318 PyObject *o = PyInt_FromLong((long) (*arg2));
14319 resultobj = t_output_helper(resultobj,o);
14320 }
14321 {
14322 PyObject *o = PyInt_FromLong((long) (*arg3));
14323 resultobj = t_output_helper(resultobj,o);
14324 }
14325 return resultobj;
14326 fail:
14327 return NULL;
14328}
14329
14330
14331static PyObject *_wrap_DC_SetDeviceOrigin(PyObject *self, PyObject *args, PyObject *kwargs) {
14332 PyObject *resultobj;
14333 wxDC *arg1 = (wxDC *) 0 ;
14334 int arg2 ;
14335 int arg3 ;
14336 PyObject * obj0 = 0 ;
14337 PyObject * obj1 = 0 ;
14338 PyObject * obj2 = 0 ;
14339 char *kwnames[] = {
14340 (char *) "self",(char *) "x",(char *) "y", NULL
14341 };
14342
14343 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) goto fail;
14344 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14345 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14346 arg2 = (int) SWIG_AsInt(obj1);
14347 if (PyErr_Occurred()) SWIG_fail;
14348 arg3 = (int) SWIG_AsInt(obj2);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 {
14351 PyThreadState* __tstate = wxPyBeginAllowThreads();
14352 (arg1)->SetDeviceOrigin(arg2,arg3);
14353
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 Py_INCREF(Py_None); resultobj = Py_None;
14358 return resultobj;
14359 fail:
14360 return NULL;
14361}
14362
14363
d6c14a4c
RD
14364static PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14365 PyObject *resultobj;
14366 wxDC *arg1 = (wxDC *) 0 ;
14367 wxPoint *arg2 = 0 ;
14368 wxPoint temp2 ;
14369 PyObject * obj0 = 0 ;
14370 PyObject * obj1 = 0 ;
14371 char *kwnames[] = {
14372 (char *) "self",(char *) "point", NULL
14373 };
14374
14375 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) goto fail;
14376 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14378 {
14379 arg2 = &temp2;
14380 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14381 }
14382 {
14383 PyThreadState* __tstate = wxPyBeginAllowThreads();
14384 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
14385
14386 wxPyEndAllowThreads(__tstate);
14387 if (PyErr_Occurred()) SWIG_fail;
14388 }
14389 Py_INCREF(Py_None); resultobj = Py_None;
14390 return resultobj;
14391 fail:
14392 return NULL;
14393}
14394
14395
d55e5bfc
RD
14396static PyObject *_wrap_DC_SetAxisOrientation(PyObject *self, PyObject *args, PyObject *kwargs) {
14397 PyObject *resultobj;
14398 wxDC *arg1 = (wxDC *) 0 ;
14399 bool arg2 ;
14400 bool arg3 ;
14401 PyObject * obj0 = 0 ;
14402 PyObject * obj1 = 0 ;
14403 PyObject * obj2 = 0 ;
14404 char *kwnames[] = {
14405 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
14406 };
14407
14408 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) goto fail;
14409 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14410 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14411 arg2 = (bool) SWIG_AsBool(obj1);
14412 if (PyErr_Occurred()) SWIG_fail;
14413 arg3 = (bool) SWIG_AsBool(obj2);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 {
14416 PyThreadState* __tstate = wxPyBeginAllowThreads();
14417 (arg1)->SetAxisOrientation(arg2,arg3);
14418
14419 wxPyEndAllowThreads(__tstate);
14420 if (PyErr_Occurred()) SWIG_fail;
14421 }
14422 Py_INCREF(Py_None); resultobj = Py_None;
14423 return resultobj;
14424 fail:
14425 return NULL;
14426}
14427
14428
14429static PyObject *_wrap_DC_GetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14430 PyObject *resultobj;
14431 wxDC *arg1 = (wxDC *) 0 ;
14432 int result;
14433 PyObject * obj0 = 0 ;
14434 char *kwnames[] = {
14435 (char *) "self", NULL
14436 };
14437
14438 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetLogicalFunction",kwnames,&obj0)) goto fail;
14439 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14440 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14441 {
14442 PyThreadState* __tstate = wxPyBeginAllowThreads();
14443 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
14444
14445 wxPyEndAllowThreads(__tstate);
14446 if (PyErr_Occurred()) SWIG_fail;
14447 }
14448 resultobj = SWIG_FromInt((int)result);
14449 return resultobj;
14450 fail:
14451 return NULL;
14452}
14453
14454
14455static PyObject *_wrap_DC_SetLogicalFunction(PyObject *self, PyObject *args, PyObject *kwargs) {
14456 PyObject *resultobj;
14457 wxDC *arg1 = (wxDC *) 0 ;
14458 int arg2 ;
14459 PyObject * obj0 = 0 ;
14460 PyObject * obj1 = 0 ;
14461 char *kwnames[] = {
14462 (char *) "self",(char *) "function", NULL
14463 };
14464
14465 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) goto fail;
14466 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14467 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14468 arg2 = (int) SWIG_AsInt(obj1);
14469 if (PyErr_Occurred()) SWIG_fail;
14470 {
14471 PyThreadState* __tstate = wxPyBeginAllowThreads();
14472 (arg1)->SetLogicalFunction(arg2);
14473
14474 wxPyEndAllowThreads(__tstate);
14475 if (PyErr_Occurred()) SWIG_fail;
14476 }
14477 Py_INCREF(Py_None); resultobj = Py_None;
14478 return resultobj;
14479 fail:
14480 return NULL;
14481}
14482
14483
14484static PyObject *_wrap_DC_SetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14485 PyObject *resultobj;
14486 wxDC *arg1 = (wxDC *) 0 ;
14487 bool arg2 ;
14488 PyObject * obj0 = 0 ;
14489 PyObject * obj1 = 0 ;
14490 char *kwnames[] = {
14491 (char *) "self",(char *) "opt", NULL
14492 };
14493
14494 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetOptimization",kwnames,&obj0,&obj1)) goto fail;
14495 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14496 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14497 arg2 = (bool) SWIG_AsBool(obj1);
14498 if (PyErr_Occurred()) SWIG_fail;
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 (arg1)->SetOptimization(arg2);
14502
14503 wxPyEndAllowThreads(__tstate);
14504 if (PyErr_Occurred()) SWIG_fail;
14505 }
14506 Py_INCREF(Py_None); resultobj = Py_None;
14507 return resultobj;
14508 fail:
14509 return NULL;
14510}
14511
14512
14513static PyObject *_wrap_DC_GetOptimization(PyObject *self, PyObject *args, PyObject *kwargs) {
14514 PyObject *resultobj;
14515 wxDC *arg1 = (wxDC *) 0 ;
14516 bool result;
14517 PyObject * obj0 = 0 ;
14518 char *kwnames[] = {
14519 (char *) "self", NULL
14520 };
14521
14522 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetOptimization",kwnames,&obj0)) goto fail;
14523 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14524 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14525 {
14526 PyThreadState* __tstate = wxPyBeginAllowThreads();
14527 result = (bool)(arg1)->GetOptimization();
14528
14529 wxPyEndAllowThreads(__tstate);
14530 if (PyErr_Occurred()) SWIG_fail;
14531 }
14532 {
14533 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14534 }
14535 return resultobj;
14536 fail:
14537 return NULL;
14538}
14539
14540
14541static PyObject *_wrap_DC_CalcBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14542 PyObject *resultobj;
14543 wxDC *arg1 = (wxDC *) 0 ;
14544 int arg2 ;
14545 int arg3 ;
14546 PyObject * obj0 = 0 ;
14547 PyObject * obj1 = 0 ;
14548 PyObject * obj2 = 0 ;
14549 char *kwnames[] = {
14550 (char *) "self",(char *) "x",(char *) "y", NULL
14551 };
14552
14553 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) goto fail;
14554 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14555 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14556 arg2 = (int) SWIG_AsInt(obj1);
14557 if (PyErr_Occurred()) SWIG_fail;
14558 arg3 = (int) SWIG_AsInt(obj2);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 {
14561 PyThreadState* __tstate = wxPyBeginAllowThreads();
14562 (arg1)->CalcBoundingBox(arg2,arg3);
14563
14564 wxPyEndAllowThreads(__tstate);
14565 if (PyErr_Occurred()) SWIG_fail;
14566 }
14567 Py_INCREF(Py_None); resultobj = Py_None;
14568 return resultobj;
14569 fail:
14570 return NULL;
14571}
14572
14573
d6c14a4c
RD
14574static PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *self, PyObject *args, PyObject *kwargs) {
14575 PyObject *resultobj;
14576 wxDC *arg1 = (wxDC *) 0 ;
14577 wxPoint *arg2 = 0 ;
14578 wxPoint temp2 ;
14579 PyObject * obj0 = 0 ;
14580 PyObject * obj1 = 0 ;
14581 char *kwnames[] = {
14582 (char *) "self",(char *) "point", NULL
14583 };
14584
14585 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) goto fail;
14586 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14587 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14588 {
14589 arg2 = &temp2;
14590 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14591 }
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
14595
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 Py_INCREF(Py_None); resultobj = Py_None;
14600 return resultobj;
14601 fail:
14602 return NULL;
14603}
14604
14605
d55e5bfc
RD
14606static PyObject *_wrap_DC_ResetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14607 PyObject *resultobj;
14608 wxDC *arg1 = (wxDC *) 0 ;
14609 PyObject * obj0 = 0 ;
14610 char *kwnames[] = {
14611 (char *) "self", NULL
14612 };
14613
14614 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_ResetBoundingBox",kwnames,&obj0)) goto fail;
14615 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14616 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14617 {
14618 PyThreadState* __tstate = wxPyBeginAllowThreads();
14619 (arg1)->ResetBoundingBox();
14620
14621 wxPyEndAllowThreads(__tstate);
14622 if (PyErr_Occurred()) SWIG_fail;
14623 }
14624 Py_INCREF(Py_None); resultobj = Py_None;
14625 return resultobj;
14626 fail:
14627 return NULL;
14628}
14629
14630
14631static PyObject *_wrap_DC_MinX(PyObject *self, PyObject *args, PyObject *kwargs) {
14632 PyObject *resultobj;
14633 wxDC *arg1 = (wxDC *) 0 ;
14634 int result;
14635 PyObject * obj0 = 0 ;
14636 char *kwnames[] = {
14637 (char *) "self", NULL
14638 };
14639
14640 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinX",kwnames,&obj0)) goto fail;
14641 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14642 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 result = (int)((wxDC const *)arg1)->MinX();
14646
14647 wxPyEndAllowThreads(__tstate);
14648 if (PyErr_Occurred()) SWIG_fail;
14649 }
14650 resultobj = SWIG_FromInt((int)result);
14651 return resultobj;
14652 fail:
14653 return NULL;
14654}
14655
14656
14657static PyObject *_wrap_DC_MaxX(PyObject *self, PyObject *args, PyObject *kwargs) {
14658 PyObject *resultobj;
14659 wxDC *arg1 = (wxDC *) 0 ;
14660 int result;
14661 PyObject * obj0 = 0 ;
14662 char *kwnames[] = {
14663 (char *) "self", NULL
14664 };
14665
14666 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxX",kwnames,&obj0)) goto fail;
14667 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14668 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14669 {
14670 PyThreadState* __tstate = wxPyBeginAllowThreads();
14671 result = (int)((wxDC const *)arg1)->MaxX();
14672
14673 wxPyEndAllowThreads(__tstate);
14674 if (PyErr_Occurred()) SWIG_fail;
14675 }
14676 resultobj = SWIG_FromInt((int)result);
14677 return resultobj;
14678 fail:
14679 return NULL;
14680}
14681
14682
14683static PyObject *_wrap_DC_MinY(PyObject *self, PyObject *args, PyObject *kwargs) {
14684 PyObject *resultobj;
14685 wxDC *arg1 = (wxDC *) 0 ;
14686 int result;
14687 PyObject * obj0 = 0 ;
14688 char *kwnames[] = {
14689 (char *) "self", NULL
14690 };
14691
14692 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MinY",kwnames,&obj0)) goto fail;
14693 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14694 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14695 {
14696 PyThreadState* __tstate = wxPyBeginAllowThreads();
14697 result = (int)((wxDC const *)arg1)->MinY();
14698
14699 wxPyEndAllowThreads(__tstate);
14700 if (PyErr_Occurred()) SWIG_fail;
14701 }
14702 resultobj = SWIG_FromInt((int)result);
14703 return resultobj;
14704 fail:
14705 return NULL;
14706}
14707
14708
14709static PyObject *_wrap_DC_MaxY(PyObject *self, PyObject *args, PyObject *kwargs) {
14710 PyObject *resultobj;
14711 wxDC *arg1 = (wxDC *) 0 ;
14712 int result;
14713 PyObject * obj0 = 0 ;
14714 char *kwnames[] = {
14715 (char *) "self", NULL
14716 };
14717
14718 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_MaxY",kwnames,&obj0)) goto fail;
14719 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14720 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14721 {
14722 PyThreadState* __tstate = wxPyBeginAllowThreads();
14723 result = (int)((wxDC const *)arg1)->MaxY();
14724
14725 wxPyEndAllowThreads(__tstate);
14726 if (PyErr_Occurred()) SWIG_fail;
14727 }
14728 resultobj = SWIG_FromInt((int)result);
14729 return resultobj;
14730 fail:
14731 return NULL;
14732}
14733
14734
14735static PyObject *_wrap_DC_GetBoundingBox(PyObject *self, PyObject *args, PyObject *kwargs) {
14736 PyObject *resultobj;
14737 wxDC *arg1 = (wxDC *) 0 ;
14738 int *arg2 = (int *) 0 ;
14739 int *arg3 = (int *) 0 ;
14740 int *arg4 = (int *) 0 ;
14741 int *arg5 = (int *) 0 ;
14742 int temp2 ;
14743 int temp3 ;
14744 int temp4 ;
14745 int temp5 ;
14746 PyObject * obj0 = 0 ;
14747 char *kwnames[] = {
14748 (char *) "self", NULL
14749 };
14750
14751 arg2 = &temp2;
14752 arg3 = &temp3;
14753 arg4 = &temp4;
14754 arg5 = &temp5;
14755 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DC_GetBoundingBox",kwnames,&obj0)) goto fail;
14756 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14757 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14758 {
14759 PyThreadState* __tstate = wxPyBeginAllowThreads();
14760 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
14761
14762 wxPyEndAllowThreads(__tstate);
14763 if (PyErr_Occurred()) SWIG_fail;
14764 }
14765 Py_INCREF(Py_None); resultobj = Py_None;
14766 {
14767 PyObject *o = PyInt_FromLong((long) (*arg2));
14768 resultobj = t_output_helper(resultobj,o);
14769 }
14770 {
14771 PyObject *o = PyInt_FromLong((long) (*arg3));
14772 resultobj = t_output_helper(resultobj,o);
14773 }
14774 {
14775 PyObject *o = PyInt_FromLong((long) (*arg4));
14776 resultobj = t_output_helper(resultobj,o);
14777 }
14778 {
14779 PyObject *o = PyInt_FromLong((long) (*arg5));
14780 resultobj = t_output_helper(resultobj,o);
14781 }
14782 return resultobj;
14783 fail:
14784 return NULL;
14785}
14786
14787
14788static PyObject *_wrap_DC__DrawPointList(PyObject *self, PyObject *args, PyObject *kwargs) {
14789 PyObject *resultobj;
14790 wxDC *arg1 = (wxDC *) 0 ;
14791 PyObject *arg2 = (PyObject *) 0 ;
14792 PyObject *arg3 = (PyObject *) 0 ;
14793 PyObject *arg4 = (PyObject *) 0 ;
14794 PyObject *result;
14795 PyObject * obj0 = 0 ;
14796 PyObject * obj1 = 0 ;
14797 PyObject * obj2 = 0 ;
14798 PyObject * obj3 = 0 ;
14799 char *kwnames[] = {
14800 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14801 };
14802
14803 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14804 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14805 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14806 arg2 = obj1;
14807 arg3 = obj2;
14808 arg4 = obj3;
14809 {
14810 PyThreadState* __tstate = wxPyBeginAllowThreads();
14811 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
14812
14813 wxPyEndAllowThreads(__tstate);
14814 if (PyErr_Occurred()) SWIG_fail;
14815 }
14816 resultobj = result;
14817 return resultobj;
14818 fail:
14819 return NULL;
14820}
14821
14822
14823static PyObject *_wrap_DC__DrawLineList(PyObject *self, PyObject *args, PyObject *kwargs) {
14824 PyObject *resultobj;
14825 wxDC *arg1 = (wxDC *) 0 ;
14826 PyObject *arg2 = (PyObject *) 0 ;
14827 PyObject *arg3 = (PyObject *) 0 ;
14828 PyObject *arg4 = (PyObject *) 0 ;
14829 PyObject *result;
14830 PyObject * obj0 = 0 ;
14831 PyObject * obj1 = 0 ;
14832 PyObject * obj2 = 0 ;
14833 PyObject * obj3 = 0 ;
14834 char *kwnames[] = {
14835 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14836 };
14837
14838 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14839 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14840 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14841 arg2 = obj1;
14842 arg3 = obj2;
14843 arg4 = obj3;
14844 {
14845 PyThreadState* __tstate = wxPyBeginAllowThreads();
14846 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
14847
14848 wxPyEndAllowThreads(__tstate);
14849 if (PyErr_Occurred()) SWIG_fail;
14850 }
14851 resultobj = result;
14852 return resultobj;
14853 fail:
14854 return NULL;
14855}
14856
14857
14858static PyObject *_wrap_DC__DrawRectangleList(PyObject *self, PyObject *args, PyObject *kwargs) {
14859 PyObject *resultobj;
14860 wxDC *arg1 = (wxDC *) 0 ;
14861 PyObject *arg2 = (PyObject *) 0 ;
14862 PyObject *arg3 = (PyObject *) 0 ;
14863 PyObject *arg4 = (PyObject *) 0 ;
14864 PyObject *result;
14865 PyObject * obj0 = 0 ;
14866 PyObject * obj1 = 0 ;
14867 PyObject * obj2 = 0 ;
14868 PyObject * obj3 = 0 ;
14869 char *kwnames[] = {
14870 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14871 };
14872
14873 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14874 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14875 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14876 arg2 = obj1;
14877 arg3 = obj2;
14878 arg4 = obj3;
14879 {
14880 PyThreadState* __tstate = wxPyBeginAllowThreads();
14881 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
14882
14883 wxPyEndAllowThreads(__tstate);
14884 if (PyErr_Occurred()) SWIG_fail;
14885 }
14886 resultobj = result;
14887 return resultobj;
14888 fail:
14889 return NULL;
14890}
14891
14892
14893static PyObject *_wrap_DC__DrawEllipseList(PyObject *self, PyObject *args, PyObject *kwargs) {
14894 PyObject *resultobj;
14895 wxDC *arg1 = (wxDC *) 0 ;
14896 PyObject *arg2 = (PyObject *) 0 ;
14897 PyObject *arg3 = (PyObject *) 0 ;
14898 PyObject *arg4 = (PyObject *) 0 ;
14899 PyObject *result;
14900 PyObject * obj0 = 0 ;
14901 PyObject * obj1 = 0 ;
14902 PyObject * obj2 = 0 ;
14903 PyObject * obj3 = 0 ;
14904 char *kwnames[] = {
14905 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14906 };
14907
14908 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14909 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14910 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14911 arg2 = obj1;
14912 arg3 = obj2;
14913 arg4 = obj3;
14914 {
14915 PyThreadState* __tstate = wxPyBeginAllowThreads();
14916 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
14917
14918 wxPyEndAllowThreads(__tstate);
14919 if (PyErr_Occurred()) SWIG_fail;
14920 }
14921 resultobj = result;
14922 return resultobj;
14923 fail:
14924 return NULL;
14925}
14926
14927
14928static PyObject *_wrap_DC__DrawPolygonList(PyObject *self, PyObject *args, PyObject *kwargs) {
14929 PyObject *resultobj;
14930 wxDC *arg1 = (wxDC *) 0 ;
14931 PyObject *arg2 = (PyObject *) 0 ;
14932 PyObject *arg3 = (PyObject *) 0 ;
14933 PyObject *arg4 = (PyObject *) 0 ;
14934 PyObject *result;
14935 PyObject * obj0 = 0 ;
14936 PyObject * obj1 = 0 ;
14937 PyObject * obj2 = 0 ;
14938 PyObject * obj3 = 0 ;
14939 char *kwnames[] = {
14940 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
14941 };
14942
14943 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
14944 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14945 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14946 arg2 = obj1;
14947 arg3 = obj2;
14948 arg4 = obj3;
14949 {
14950 PyThreadState* __tstate = wxPyBeginAllowThreads();
14951 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
14952
14953 wxPyEndAllowThreads(__tstate);
14954 if (PyErr_Occurred()) SWIG_fail;
14955 }
14956 resultobj = result;
14957 return resultobj;
14958 fail:
14959 return NULL;
14960}
14961
14962
14963static PyObject *_wrap_DC__DrawTextList(PyObject *self, PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj;
14965 wxDC *arg1 = (wxDC *) 0 ;
14966 PyObject *arg2 = (PyObject *) 0 ;
14967 PyObject *arg3 = (PyObject *) 0 ;
14968 PyObject *arg4 = (PyObject *) 0 ;
14969 PyObject *arg5 = (PyObject *) 0 ;
14970 PyObject *result;
14971 PyObject * obj0 = 0 ;
14972 PyObject * obj1 = 0 ;
14973 PyObject * obj2 = 0 ;
14974 PyObject * obj3 = 0 ;
14975 PyObject * obj4 = 0 ;
14976 char *kwnames[] = {
14977 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
14978 };
14979
14980 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
14981 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
14982 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
14983 arg2 = obj1;
14984 arg3 = obj2;
14985 arg4 = obj3;
14986 arg5 = obj4;
14987 {
14988 PyThreadState* __tstate = wxPyBeginAllowThreads();
14989 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
14990
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 resultobj = result;
14995 return resultobj;
14996 fail:
14997 return NULL;
14998}
14999
15000
15001static PyObject * DC_swigregister(PyObject *self, PyObject *args) {
15002 PyObject *obj;
15003 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15004 SWIG_TypeClientData(SWIGTYPE_p_wxDC, obj);
15005 Py_INCREF(obj);
15006 return Py_BuildValue((char *)"");
15007}
15008static PyObject *_wrap_new_MemoryDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15009 PyObject *resultobj;
15010 wxMemoryDC *result;
15011 char *kwnames[] = {
15012 NULL
15013 };
15014
15015 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_MemoryDC",kwnames)) goto fail;
15016 {
0439c23b 15017 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 result = (wxMemoryDC *)new wxMemoryDC();
15020
15021 wxPyEndAllowThreads(__tstate);
110da5b0 15022 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15023 }
15024 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15025 return resultobj;
15026 fail:
15027 return NULL;
15028}
15029
15030
15031static PyObject *_wrap_new_MemoryDCFromDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj;
15033 wxDC *arg1 = (wxDC *) 0 ;
15034 wxMemoryDC *result;
15035 PyObject * obj0 = 0 ;
15036 char *kwnames[] = {
15037 (char *) "oldDC", NULL
15038 };
15039
15040 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) goto fail;
15041 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15042 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15043 {
0439c23b 15044 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15045 PyThreadState* __tstate = wxPyBeginAllowThreads();
15046 result = (wxMemoryDC *)new wxMemoryDC(arg1);
15047
15048 wxPyEndAllowThreads(__tstate);
110da5b0 15049 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15050 }
15051 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMemoryDC, 1);
15052 return resultobj;
15053 fail:
15054 return NULL;
15055}
15056
15057
15058static PyObject *_wrap_MemoryDC_SelectObject(PyObject *self, PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj;
15060 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
15061 wxBitmap *arg2 = 0 ;
15062 PyObject * obj0 = 0 ;
15063 PyObject * obj1 = 0 ;
15064 char *kwnames[] = {
15065 (char *) "self",(char *) "bitmap", NULL
15066 };
15067
15068 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) goto fail;
15069 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMemoryDC,
15070 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15071 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15072 SWIG_POINTER_EXCEPTION | 0)) == -1)
15073 SWIG_fail;
15074 if (arg2 == NULL) {
15075 PyErr_SetString(PyExc_TypeError,"null reference");
15076 SWIG_fail;
15077 }
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 (arg1)->SelectObject((wxBitmap const &)*arg2);
15081
15082 wxPyEndAllowThreads(__tstate);
15083 if (PyErr_Occurred()) SWIG_fail;
15084 }
15085 Py_INCREF(Py_None); resultobj = Py_None;
15086 return resultobj;
15087 fail:
15088 return NULL;
15089}
15090
15091
15092static PyObject * MemoryDC_swigregister(PyObject *self, PyObject *args) {
15093 PyObject *obj;
15094 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15095 SWIG_TypeClientData(SWIGTYPE_p_wxMemoryDC, obj);
15096 Py_INCREF(obj);
15097 return Py_BuildValue((char *)"");
15098}
15099static PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *self, PyObject *args) {
15100 PyObject *resultobj;
15101 wxDC *arg1 = (wxDC *) 0 ;
15102 wxBitmap *arg2 = 0 ;
15103 wxBufferedDC *result;
15104 PyObject * obj0 = 0 ;
15105 PyObject * obj1 = 0 ;
15106
15107 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15108 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15109 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15110 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15111 SWIG_POINTER_EXCEPTION | 0)) == -1)
15112 SWIG_fail;
15113 if (arg2 == NULL) {
15114 PyErr_SetString(PyExc_TypeError,"null reference");
15115 SWIG_fail;
15116 }
15117 {
0439c23b 15118 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15119 PyThreadState* __tstate = wxPyBeginAllowThreads();
15120 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2);
15121
15122 wxPyEndAllowThreads(__tstate);
110da5b0 15123 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15124 }
15125 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15126 return resultobj;
15127 fail:
15128 return NULL;
15129}
15130
15131
15132static PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *self, PyObject *args) {
15133 PyObject *resultobj;
15134 wxDC *arg1 = (wxDC *) 0 ;
15135 wxSize *arg2 = 0 ;
15136 wxBufferedDC *result;
15137 wxSize temp2 ;
15138 PyObject * obj0 = 0 ;
15139 PyObject * obj1 = 0 ;
15140
15141 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDC",&obj0,&obj1)) goto fail;
15142 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15143 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15144 {
15145 arg2 = &temp2;
15146 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15147 }
15148 {
0439c23b 15149 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15150 PyThreadState* __tstate = wxPyBeginAllowThreads();
15151 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15152
15153 wxPyEndAllowThreads(__tstate);
110da5b0 15154 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15155 }
15156 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15157 return resultobj;
15158 fail:
15159 return NULL;
15160}
15161
15162
15163static PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
15164 int argc;
15165 PyObject *argv[3];
15166 int ii;
15167
15168 argc = PyObject_Length(args);
15169 for (ii = 0; (ii < argc) && (ii < 2); ii++) {
15170 argv[ii] = PyTuple_GetItem(args,ii);
15171 }
15172 if (argc == 2) {
15173 int _v;
15174 {
15175 void *ptr;
15176 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15177 _v = 0;
15178 PyErr_Clear();
15179 } else {
15180 _v = 1;
15181 }
15182 }
15183 if (_v) {
15184 {
15185 void *ptr;
15186 if (SWIG_ConvertPtr(argv[1], &ptr, SWIGTYPE_p_wxBitmap, 0) == -1) {
15187 _v = 0;
15188 PyErr_Clear();
15189 } else {
15190 _v = 1;
15191 }
15192 }
15193 if (_v) {
15194 return _wrap_new_BufferedDC__SWIG_0(self,args);
15195 }
15196 }
15197 }
15198 if (argc == 2) {
15199 int _v;
15200 {
15201 void *ptr;
15202 if (SWIG_ConvertPtr(argv[0], &ptr, SWIGTYPE_p_wxDC, 0) == -1) {
15203 _v = 0;
15204 PyErr_Clear();
15205 } else {
15206 _v = 1;
15207 }
15208 }
15209 if (_v) {
15210 {
15211 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
15212 }
15213 if (_v) {
15214 return _wrap_new_BufferedDC__SWIG_1(self,args);
15215 }
15216 }
15217 }
15218
15219 PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_BufferedDC'");
15220 return NULL;
15221}
15222
15223
15224static PyObject *_wrap_new_BufferedDCInternalBuffer(PyObject *self, PyObject *args) {
15225 PyObject *resultobj;
15226 wxDC *arg1 = (wxDC *) 0 ;
15227 wxSize *arg2 = 0 ;
15228 wxBufferedDC *result;
15229 wxSize temp2 ;
15230 PyObject * obj0 = 0 ;
15231 PyObject * obj1 = 0 ;
15232
15233 if(!PyArg_ParseTuple(args,(char *)"OO:new_BufferedDCInternalBuffer",&obj0,&obj1)) goto fail;
15234 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15235 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15236 {
15237 arg2 = &temp2;
15238 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15239 }
15240 {
0439c23b 15241 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15242 PyThreadState* __tstate = wxPyBeginAllowThreads();
15243 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2);
15244
15245 wxPyEndAllowThreads(__tstate);
110da5b0 15246 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15247 }
15248 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedDC, 1);
15249 return resultobj;
15250 fail:
15251 return NULL;
15252}
15253
15254
15255static PyObject *_wrap_delete_BufferedDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15256 PyObject *resultobj;
15257 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15258 PyObject * obj0 = 0 ;
15259 char *kwnames[] = {
15260 (char *) "self", NULL
15261 };
15262
15263 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_BufferedDC",kwnames,&obj0)) goto fail;
15264 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15265 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15266 {
15267 PyThreadState* __tstate = wxPyBeginAllowThreads();
15268 delete arg1;
15269
15270 wxPyEndAllowThreads(__tstate);
15271 if (PyErr_Occurred()) SWIG_fail;
15272 }
15273 Py_INCREF(Py_None); resultobj = Py_None;
15274 return resultobj;
15275 fail:
15276 return NULL;
15277}
15278
15279
15280static PyObject *_wrap_BufferedDC_UnMask(PyObject *self, PyObject *args, PyObject *kwargs) {
15281 PyObject *resultobj;
15282 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
15283 PyObject * obj0 = 0 ;
15284 char *kwnames[] = {
15285 (char *) "self", NULL
15286 };
15287
15288 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BufferedDC_UnMask",kwnames,&obj0)) goto fail;
15289 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBufferedDC,
15290 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15291 {
15292 PyThreadState* __tstate = wxPyBeginAllowThreads();
15293 (arg1)->UnMask();
15294
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 Py_INCREF(Py_None); resultobj = Py_None;
15299 return resultobj;
15300 fail:
15301 return NULL;
15302}
15303
15304
15305static PyObject * BufferedDC_swigregister(PyObject *self, PyObject *args) {
15306 PyObject *obj;
15307 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15308 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedDC, obj);
15309 Py_INCREF(obj);
15310 return Py_BuildValue((char *)"");
15311}
15312static PyObject *_wrap_new_BufferedPaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15313 PyObject *resultobj;
15314 wxWindow *arg1 = (wxWindow *) 0 ;
15315 wxBitmap const &arg2_defvalue = wxNullBitmap ;
15316 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
15317 wxBufferedPaintDC *result;
15318 PyObject * obj0 = 0 ;
15319 PyObject * obj1 = 0 ;
15320 char *kwnames[] = {
15321 (char *) "window",(char *) "buffer", NULL
15322 };
15323
15324 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BufferedPaintDC",kwnames,&obj0,&obj1)) goto fail;
15325 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15326 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15327 if (obj1) {
15328 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
15329 SWIG_POINTER_EXCEPTION | 0)) == -1)
15330 SWIG_fail;
15331 if (arg2 == NULL) {
15332 PyErr_SetString(PyExc_TypeError,"null reference");
15333 SWIG_fail;
15334 }
15335 }
15336 {
0439c23b 15337 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15338 PyThreadState* __tstate = wxPyBeginAllowThreads();
15339 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2);
15340
15341 wxPyEndAllowThreads(__tstate);
110da5b0 15342 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15343 }
15344 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBufferedPaintDC, 1);
15345 return resultobj;
15346 fail:
15347 return NULL;
15348}
15349
15350
15351static PyObject * BufferedPaintDC_swigregister(PyObject *self, PyObject *args) {
15352 PyObject *obj;
15353 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15354 SWIG_TypeClientData(SWIGTYPE_p_wxBufferedPaintDC, obj);
15355 Py_INCREF(obj);
15356 return Py_BuildValue((char *)"");
15357}
15358static PyObject *_wrap_new_ScreenDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15359 PyObject *resultobj;
15360 wxScreenDC *result;
15361 char *kwnames[] = {
15362 NULL
15363 };
15364
15365 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ScreenDC",kwnames)) goto fail;
15366 {
0439c23b 15367 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15368 PyThreadState* __tstate = wxPyBeginAllowThreads();
15369 result = (wxScreenDC *)new wxScreenDC();
15370
15371 wxPyEndAllowThreads(__tstate);
110da5b0 15372 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15373 }
15374 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScreenDC, 1);
15375 return resultobj;
15376 fail:
15377 return NULL;
15378}
15379
15380
15381static PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *self, PyObject *args, PyObject *kwargs) {
15382 PyObject *resultobj;
15383 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15384 wxWindow *arg2 = (wxWindow *) 0 ;
15385 bool result;
15386 PyObject * obj0 = 0 ;
15387 PyObject * obj1 = 0 ;
15388 char *kwnames[] = {
15389 (char *) "self",(char *) "window", NULL
15390 };
15391
15392 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) goto fail;
15393 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15394 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15395 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow,
15396 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15397 {
15398 PyThreadState* __tstate = wxPyBeginAllowThreads();
15399 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15400
15401 wxPyEndAllowThreads(__tstate);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 {
15405 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15406 }
15407 return resultobj;
15408 fail:
15409 return NULL;
15410}
15411
15412
15413static PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15414 PyObject *resultobj;
15415 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15416 wxRect *arg2 = (wxRect *) NULL ;
15417 bool result;
15418 PyObject * obj0 = 0 ;
15419 PyObject * obj1 = 0 ;
15420 char *kwnames[] = {
15421 (char *) "self",(char *) "rect", NULL
15422 };
15423
15424 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) goto fail;
15425 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15426 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15427 if (obj1) {
15428 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxRect,
15429 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15430 }
15431 {
15432 PyThreadState* __tstate = wxPyBeginAllowThreads();
15433 result = (bool)(arg1)->StartDrawingOnTop(arg2);
15434
15435 wxPyEndAllowThreads(__tstate);
15436 if (PyErr_Occurred()) SWIG_fail;
15437 }
15438 {
15439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15440 }
15441 return resultobj;
15442 fail:
15443 return NULL;
15444}
15445
15446
15447static PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *self, PyObject *args, PyObject *kwargs) {
15448 PyObject *resultobj;
15449 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
15450 bool result;
15451 PyObject * obj0 = 0 ;
15452 char *kwnames[] = {
15453 (char *) "self", NULL
15454 };
15455
15456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScreenDC_EndDrawingOnTop",kwnames,&obj0)) goto fail;
15457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScreenDC,
15458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15459 {
15460 PyThreadState* __tstate = wxPyBeginAllowThreads();
15461 result = (bool)(arg1)->EndDrawingOnTop();
15462
15463 wxPyEndAllowThreads(__tstate);
15464 if (PyErr_Occurred()) SWIG_fail;
15465 }
15466 {
15467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15468 }
15469 return resultobj;
15470 fail:
15471 return NULL;
15472}
15473
15474
15475static PyObject * ScreenDC_swigregister(PyObject *self, PyObject *args) {
15476 PyObject *obj;
15477 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15478 SWIG_TypeClientData(SWIGTYPE_p_wxScreenDC, obj);
15479 Py_INCREF(obj);
15480 return Py_BuildValue((char *)"");
15481}
15482static PyObject *_wrap_new_ClientDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15483 PyObject *resultobj;
15484 wxWindow *arg1 = (wxWindow *) 0 ;
15485 wxClientDC *result;
15486 PyObject * obj0 = 0 ;
15487 char *kwnames[] = {
15488 (char *) "win", NULL
15489 };
15490
15491 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) goto fail;
15492 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15493 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15494 {
0439c23b 15495 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = (wxClientDC *)new wxClientDC(arg1);
15498
15499 wxPyEndAllowThreads(__tstate);
110da5b0 15500 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15501 }
15502 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxClientDC, 1);
15503 return resultobj;
15504 fail:
15505 return NULL;
15506}
15507
15508
15509static PyObject * ClientDC_swigregister(PyObject *self, PyObject *args) {
15510 PyObject *obj;
15511 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15512 SWIG_TypeClientData(SWIGTYPE_p_wxClientDC, obj);
15513 Py_INCREF(obj);
15514 return Py_BuildValue((char *)"");
15515}
15516static PyObject *_wrap_new_PaintDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj;
15518 wxWindow *arg1 = (wxWindow *) 0 ;
15519 wxPaintDC *result;
15520 PyObject * obj0 = 0 ;
15521 char *kwnames[] = {
15522 (char *) "win", NULL
15523 };
15524
15525 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) goto fail;
15526 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15527 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15528 {
0439c23b 15529 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = (wxPaintDC *)new wxPaintDC(arg1);
15532
15533 wxPyEndAllowThreads(__tstate);
110da5b0 15534 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15535 }
15536 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPaintDC, 1);
15537 return resultobj;
15538 fail:
15539 return NULL;
15540}
15541
15542
15543static PyObject * PaintDC_swigregister(PyObject *self, PyObject *args) {
15544 PyObject *obj;
15545 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15546 SWIG_TypeClientData(SWIGTYPE_p_wxPaintDC, obj);
15547 Py_INCREF(obj);
15548 return Py_BuildValue((char *)"");
15549}
15550static PyObject *_wrap_new_WindowDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15551 PyObject *resultobj;
15552 wxWindow *arg1 = (wxWindow *) 0 ;
15553 wxWindowDC *result;
15554 PyObject * obj0 = 0 ;
15555 char *kwnames[] = {
15556 (char *) "win", NULL
15557 };
15558
15559 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) goto fail;
15560 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow,
15561 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15562 {
0439c23b 15563 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = (wxWindowDC *)new wxWindowDC(arg1);
15566
15567 wxPyEndAllowThreads(__tstate);
110da5b0 15568 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15569 }
15570 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxWindowDC, 1);
15571 return resultobj;
15572 fail:
15573 return NULL;
15574}
15575
15576
15577static PyObject * WindowDC_swigregister(PyObject *self, PyObject *args) {
15578 PyObject *obj;
15579 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15580 SWIG_TypeClientData(SWIGTYPE_p_wxWindowDC, obj);
15581 Py_INCREF(obj);
15582 return Py_BuildValue((char *)"");
15583}
15584static PyObject *_wrap_new_MirrorDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15585 PyObject *resultobj;
15586 wxDC *arg1 = 0 ;
15587 bool arg2 ;
15588 wxMirrorDC *result;
15589 PyObject * obj0 = 0 ;
15590 PyObject * obj1 = 0 ;
15591 char *kwnames[] = {
15592 (char *) "dc",(char *) "mirror", NULL
15593 };
15594
15595 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) goto fail;
15596 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDC,
15597 SWIG_POINTER_EXCEPTION | 0)) == -1)
15598 SWIG_fail;
15599 if (arg1 == NULL) {
15600 PyErr_SetString(PyExc_TypeError,"null reference");
15601 SWIG_fail;
15602 }
15603 arg2 = (bool) SWIG_AsBool(obj1);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 {
0439c23b 15606 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15607 PyThreadState* __tstate = wxPyBeginAllowThreads();
15608 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
15609
15610 wxPyEndAllowThreads(__tstate);
110da5b0 15611 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15612 }
15613 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMirrorDC, 1);
15614 return resultobj;
15615 fail:
15616 return NULL;
15617}
15618
15619
15620static PyObject * MirrorDC_swigregister(PyObject *self, PyObject *args) {
15621 PyObject *obj;
15622 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15623 SWIG_TypeClientData(SWIGTYPE_p_wxMirrorDC, obj);
15624 Py_INCREF(obj);
15625 return Py_BuildValue((char *)"");
15626}
15627static PyObject *_wrap_new_PostScriptDC(PyObject *self, PyObject *args, PyObject *kwargs) {
15628 PyObject *resultobj;
15629 wxPrintData *arg1 = 0 ;
15630 wxPostScriptDC *result;
15631 PyObject * obj0 = 0 ;
15632 char *kwnames[] = {
15633 (char *) "printData", NULL
15634 };
15635
15636 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) goto fail;
15637 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
15638 SWIG_POINTER_EXCEPTION | 0)) == -1)
15639 SWIG_fail;
15640 if (arg1 == NULL) {
15641 PyErr_SetString(PyExc_TypeError,"null reference");
15642 SWIG_fail;
15643 }
15644 {
0439c23b 15645 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15646 PyThreadState* __tstate = wxPyBeginAllowThreads();
15647 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
15648
15649 wxPyEndAllowThreads(__tstate);
110da5b0 15650 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15651 }
15652 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPostScriptDC, 1);
15653 return resultobj;
15654 fail:
15655 return NULL;
15656}
15657
15658
15659static PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15660 PyObject *resultobj;
15661 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15662 wxPrintData *result;
15663 PyObject * obj0 = 0 ;
15664 char *kwnames[] = {
15665 (char *) "self", NULL
15666 };
15667
15668 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_GetPrintData",kwnames,&obj0)) goto fail;
15669 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15670 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15671 {
15672 PyThreadState* __tstate = wxPyBeginAllowThreads();
15673 {
15674 wxPrintData &_result_ref = (arg1)->GetPrintData();
15675 result = (wxPrintData *) &_result_ref;
15676 }
15677
15678 wxPyEndAllowThreads(__tstate);
15679 if (PyErr_Occurred()) SWIG_fail;
15680 }
15681 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrintData, 0);
15682 return resultobj;
15683 fail:
15684 return NULL;
15685}
15686
15687
15688static PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *self, PyObject *args, PyObject *kwargs) {
15689 PyObject *resultobj;
15690 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
15691 wxPrintData *arg2 = 0 ;
15692 PyObject * obj0 = 0 ;
15693 PyObject * obj1 = 0 ;
15694 char *kwnames[] = {
15695 (char *) "self",(char *) "data", NULL
15696 };
15697
15698 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) goto fail;
15699 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPostScriptDC,
15700 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15701 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPrintData,
15702 SWIG_POINTER_EXCEPTION | 0)) == -1)
15703 SWIG_fail;
15704 if (arg2 == NULL) {
15705 PyErr_SetString(PyExc_TypeError,"null reference");
15706 SWIG_fail;
15707 }
15708 {
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 (arg1)->SetPrintData((wxPrintData const &)*arg2);
15711
15712 wxPyEndAllowThreads(__tstate);
15713 if (PyErr_Occurred()) SWIG_fail;
15714 }
15715 Py_INCREF(Py_None); resultobj = Py_None;
15716 return resultobj;
15717 fail:
15718 return NULL;
15719}
15720
15721
15722static PyObject *_wrap_PostScriptDC_SetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15723 PyObject *resultobj;
15724 int arg1 ;
15725 PyObject * obj0 = 0 ;
15726 char *kwnames[] = {
15727 (char *) "ppi", NULL
15728 };
15729
15730 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) goto fail;
15731 arg1 = (int) SWIG_AsInt(obj0);
15732 if (PyErr_Occurred()) SWIG_fail;
15733 {
15734 PyThreadState* __tstate = wxPyBeginAllowThreads();
15735 wxPostScriptDC::SetResolution(arg1);
15736
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 Py_INCREF(Py_None); resultobj = Py_None;
15741 return resultobj;
15742 fail:
15743 return NULL;
15744}
15745
15746
15747static PyObject *_wrap_PostScriptDC_GetResolution(PyObject *self, PyObject *args, PyObject *kwargs) {
15748 PyObject *resultobj;
15749 int result;
15750 char *kwnames[] = {
15751 NULL
15752 };
15753
15754 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":PostScriptDC_GetResolution",kwnames)) goto fail;
15755 {
15756 PyThreadState* __tstate = wxPyBeginAllowThreads();
15757 result = (int)wxPostScriptDC::GetResolution();
15758
15759 wxPyEndAllowThreads(__tstate);
15760 if (PyErr_Occurred()) SWIG_fail;
15761 }
15762 resultobj = SWIG_FromInt((int)result);
15763 return resultobj;
15764 fail:
15765 return NULL;
15766}
15767
15768
15769static PyObject * PostScriptDC_swigregister(PyObject *self, PyObject *args) {
15770 PyObject *obj;
15771 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15772 SWIG_TypeClientData(SWIGTYPE_p_wxPostScriptDC, obj);
15773 Py_INCREF(obj);
15774 return Py_BuildValue((char *)"");
15775}
15776static PyObject *_wrap_new_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15777 PyObject *resultobj;
15778 wxString const &arg1_defvalue = wxPyEmptyString ;
15779 wxString *arg1 = (wxString *) &arg1_defvalue ;
15780 wxMetaFile *result;
15781 bool temp1 = False ;
15782 PyObject * obj0 = 0 ;
15783 char *kwnames[] = {
15784 (char *) "filename", NULL
15785 };
15786
15787 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) goto fail;
15788 if (obj0) {
15789 {
15790 arg1 = wxString_in_helper(obj0);
15791 if (arg1 == NULL) SWIG_fail;
15792 temp1 = True;
15793 }
15794 }
15795 {
0439c23b 15796 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
15797 PyThreadState* __tstate = wxPyBeginAllowThreads();
15798 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
15799
15800 wxPyEndAllowThreads(__tstate);
110da5b0 15801 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
15802 }
15803 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 1);
15804 {
15805 if (temp1)
15806 delete arg1;
15807 }
15808 return resultobj;
15809 fail:
15810 {
15811 if (temp1)
15812 delete arg1;
15813 }
15814 return NULL;
15815}
15816
15817
15818static PyObject *_wrap_delete_MetaFile(PyObject *self, PyObject *args, PyObject *kwargs) {
15819 PyObject *resultobj;
15820 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15821 PyObject * obj0 = 0 ;
15822 char *kwnames[] = {
15823 (char *) "self", NULL
15824 };
15825
15826 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_MetaFile",kwnames,&obj0)) goto fail;
15827 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15828 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15829 {
15830 PyThreadState* __tstate = wxPyBeginAllowThreads();
15831 delete arg1;
15832
15833 wxPyEndAllowThreads(__tstate);
15834 if (PyErr_Occurred()) SWIG_fail;
15835 }
15836 Py_INCREF(Py_None); resultobj = Py_None;
15837 return resultobj;
15838 fail:
15839 return NULL;
15840}
15841
15842
15843static PyObject *_wrap_MetaFile_Ok(PyObject *self, PyObject *args, PyObject *kwargs) {
15844 PyObject *resultobj;
15845 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15846 bool result;
15847 PyObject * obj0 = 0 ;
15848 char *kwnames[] = {
15849 (char *) "self", NULL
15850 };
15851
15852 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_Ok",kwnames,&obj0)) goto fail;
15853 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15854 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15855 {
15856 PyThreadState* __tstate = wxPyBeginAllowThreads();
15857 result = (bool)(arg1)->Ok();
15858
15859 wxPyEndAllowThreads(__tstate);
15860 if (PyErr_Occurred()) SWIG_fail;
15861 }
15862 {
15863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15864 }
15865 return resultobj;
15866 fail:
15867 return NULL;
15868}
15869
15870
15871static PyObject *_wrap_MetaFile_SetClipboard(PyObject *self, PyObject *args, PyObject *kwargs) {
15872 PyObject *resultobj;
15873 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15874 int arg2 = (int) 0 ;
15875 int arg3 = (int) 0 ;
15876 bool result;
15877 PyObject * obj0 = 0 ;
15878 PyObject * obj1 = 0 ;
15879 PyObject * obj2 = 0 ;
15880 char *kwnames[] = {
15881 (char *) "self",(char *) "width",(char *) "height", NULL
15882 };
15883
15884 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) goto fail;
15885 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15886 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15887 if (obj1) {
15888 arg2 = (int) SWIG_AsInt(obj1);
15889 if (PyErr_Occurred()) SWIG_fail;
15890 }
15891 if (obj2) {
15892 arg3 = (int) SWIG_AsInt(obj2);
15893 if (PyErr_Occurred()) SWIG_fail;
15894 }
15895 {
15896 PyThreadState* __tstate = wxPyBeginAllowThreads();
15897 result = (bool)(arg1)->SetClipboard(arg2,arg3);
15898
15899 wxPyEndAllowThreads(__tstate);
15900 if (PyErr_Occurred()) SWIG_fail;
15901 }
15902 {
15903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15904 }
15905 return resultobj;
15906 fail:
15907 return NULL;
15908}
15909
15910
15911static PyObject *_wrap_MetaFile_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
15912 PyObject *resultobj;
15913 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15914 wxSize result;
15915 PyObject * obj0 = 0 ;
15916 char *kwnames[] = {
15917 (char *) "self", NULL
15918 };
15919
15920 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetSize",kwnames,&obj0)) goto fail;
15921 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15922 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15923 {
15924 PyThreadState* __tstate = wxPyBeginAllowThreads();
15925 result = (arg1)->GetSize();
15926
15927 wxPyEndAllowThreads(__tstate);
15928 if (PyErr_Occurred()) SWIG_fail;
15929 }
15930 {
15931 wxSize * resultptr;
15932 resultptr = new wxSize((wxSize &) result);
15933 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1);
15934 }
15935 return resultobj;
15936 fail:
15937 return NULL;
15938}
15939
15940
15941static PyObject *_wrap_MetaFile_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) {
15942 PyObject *resultobj;
15943 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15944 int result;
15945 PyObject * obj0 = 0 ;
15946 char *kwnames[] = {
15947 (char *) "self", NULL
15948 };
15949
15950 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetWidth",kwnames,&obj0)) goto fail;
15951 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15952 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15953 {
15954 PyThreadState* __tstate = wxPyBeginAllowThreads();
15955 result = (int)(arg1)->GetWidth();
15956
15957 wxPyEndAllowThreads(__tstate);
15958 if (PyErr_Occurred()) SWIG_fail;
15959 }
15960 resultobj = SWIG_FromInt((int)result);
15961 return resultobj;
15962 fail:
15963 return NULL;
15964}
15965
15966
15967static PyObject *_wrap_MetaFile_GetHeight(PyObject *self, PyObject *args, PyObject *kwargs) {
15968 PyObject *resultobj;
15969 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
15970 int result;
15971 PyObject * obj0 = 0 ;
15972 char *kwnames[] = {
15973 (char *) "self", NULL
15974 };
15975
15976 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFile_GetHeight",kwnames,&obj0)) goto fail;
15977 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFile,
15978 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
15979 {
15980 PyThreadState* __tstate = wxPyBeginAllowThreads();
15981 result = (int)(arg1)->GetHeight();
15982
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 resultobj = SWIG_FromInt((int)result);
15987 return resultobj;
15988 fail:
15989 return NULL;
15990}
15991
15992
15993static PyObject * MetaFile_swigregister(PyObject *self, PyObject *args) {
15994 PyObject *obj;
15995 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
15996 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFile, obj);
15997 Py_INCREF(obj);
15998 return Py_BuildValue((char *)"");
15999}
16000static PyObject *_wrap_new_MetaFileDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16001 PyObject *resultobj;
16002 wxString const &arg1_defvalue = wxPyEmptyString ;
16003 wxString *arg1 = (wxString *) &arg1_defvalue ;
16004 int arg2 = (int) 0 ;
16005 int arg3 = (int) 0 ;
16006 wxString const &arg4_defvalue = wxPyEmptyString ;
16007 wxString *arg4 = (wxString *) &arg4_defvalue ;
16008 wxMetaFileDC *result;
16009 bool temp1 = False ;
16010 bool temp4 = False ;
16011 PyObject * obj0 = 0 ;
16012 PyObject * obj1 = 0 ;
16013 PyObject * obj2 = 0 ;
16014 PyObject * obj3 = 0 ;
16015 char *kwnames[] = {
16016 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
16017 };
16018
16019 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16020 if (obj0) {
16021 {
16022 arg1 = wxString_in_helper(obj0);
16023 if (arg1 == NULL) SWIG_fail;
16024 temp1 = True;
16025 }
16026 }
16027 if (obj1) {
16028 arg2 = (int) SWIG_AsInt(obj1);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 if (obj2) {
16032 arg3 = (int) SWIG_AsInt(obj2);
16033 if (PyErr_Occurred()) SWIG_fail;
16034 }
16035 if (obj3) {
16036 {
16037 arg4 = wxString_in_helper(obj3);
16038 if (arg4 == NULL) SWIG_fail;
16039 temp4 = True;
16040 }
16041 }
16042 {
0439c23b 16043 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16044 PyThreadState* __tstate = wxPyBeginAllowThreads();
16045 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
16046
16047 wxPyEndAllowThreads(__tstate);
110da5b0 16048 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16049 }
16050 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFileDC, 1);
16051 {
16052 if (temp1)
16053 delete arg1;
16054 }
16055 {
16056 if (temp4)
16057 delete arg4;
16058 }
16059 return resultobj;
16060 fail:
16061 {
16062 if (temp1)
16063 delete arg1;
16064 }
16065 {
16066 if (temp4)
16067 delete arg4;
16068 }
16069 return NULL;
16070}
16071
16072
16073static PyObject *_wrap_MetaFileDC_Close(PyObject *self, PyObject *args, PyObject *kwargs) {
16074 PyObject *resultobj;
16075 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
16076 wxMetaFile *result;
16077 PyObject * obj0 = 0 ;
16078 char *kwnames[] = {
16079 (char *) "self", NULL
16080 };
16081
16082 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:MetaFileDC_Close",kwnames,&obj0)) goto fail;
16083 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxMetaFileDC,
16084 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16085 {
16086 PyThreadState* __tstate = wxPyBeginAllowThreads();
16087 result = (wxMetaFile *)(arg1)->Close();
16088
16089 wxPyEndAllowThreads(__tstate);
16090 if (PyErr_Occurred()) SWIG_fail;
16091 }
16092 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMetaFile, 0);
16093 return resultobj;
16094 fail:
16095 return NULL;
16096}
16097
16098
16099static PyObject * MetaFileDC_swigregister(PyObject *self, PyObject *args) {
16100 PyObject *obj;
16101 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16102 SWIG_TypeClientData(SWIGTYPE_p_wxMetaFileDC, obj);
16103 Py_INCREF(obj);
16104 return Py_BuildValue((char *)"");
16105}
16106static PyObject *_wrap_new_PrinterDC(PyObject *self, PyObject *args, PyObject *kwargs) {
16107 PyObject *resultobj;
16108 wxPrintData *arg1 = 0 ;
16109 wxPrinterDC *result;
16110 PyObject * obj0 = 0 ;
16111 char *kwnames[] = {
16112 (char *) "printData", NULL
16113 };
16114
16115 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) goto fail;
16116 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPrintData,
16117 SWIG_POINTER_EXCEPTION | 0)) == -1)
16118 SWIG_fail;
16119 if (arg1 == NULL) {
16120 PyErr_SetString(PyExc_TypeError,"null reference");
16121 SWIG_fail;
16122 }
16123 {
0439c23b 16124 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16125 PyThreadState* __tstate = wxPyBeginAllowThreads();
16126 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
16127
16128 wxPyEndAllowThreads(__tstate);
110da5b0 16129 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16130 }
16131 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPrinterDC, 1);
16132 return resultobj;
16133 fail:
16134 return NULL;
16135}
16136
16137
16138static PyObject * PrinterDC_swigregister(PyObject *self, PyObject *args) {
16139 PyObject *obj;
16140 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16141 SWIG_TypeClientData(SWIGTYPE_p_wxPrinterDC, obj);
16142 Py_INCREF(obj);
16143 return Py_BuildValue((char *)"");
16144}
16145static PyObject *_wrap_new_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16146 PyObject *resultobj;
16147 int arg1 ;
16148 int arg2 ;
16149 int arg3 = (int) True ;
16150 int arg4 = (int) 1 ;
16151 wxImageList *result;
16152 PyObject * obj0 = 0 ;
16153 PyObject * obj1 = 0 ;
16154 PyObject * obj2 = 0 ;
16155 PyObject * obj3 = 0 ;
16156 char *kwnames[] = {
16157 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
16158 };
16159
16160 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
16161 arg1 = (int) SWIG_AsInt(obj0);
16162 if (PyErr_Occurred()) SWIG_fail;
16163 arg2 = (int) SWIG_AsInt(obj1);
16164 if (PyErr_Occurred()) SWIG_fail;
16165 if (obj2) {
16166 arg3 = (int) SWIG_AsInt(obj2);
16167 if (PyErr_Occurred()) SWIG_fail;
16168 }
16169 if (obj3) {
16170 arg4 = (int) SWIG_AsInt(obj3);
16171 if (PyErr_Occurred()) SWIG_fail;
16172 }
16173 {
0439c23b 16174 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
16175 PyThreadState* __tstate = wxPyBeginAllowThreads();
16176 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
16177
16178 wxPyEndAllowThreads(__tstate);
110da5b0 16179 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
16180 }
16181 {
412d302d 16182 resultobj = wxPyMake_wxObject(result, 1);
d55e5bfc
RD
16183 }
16184 return resultobj;
16185 fail:
16186 return NULL;
16187}
16188
16189
16190static PyObject *_wrap_delete_ImageList(PyObject *self, PyObject *args, PyObject *kwargs) {
16191 PyObject *resultobj;
16192 wxImageList *arg1 = (wxImageList *) 0 ;
16193 PyObject * obj0 = 0 ;
16194 char *kwnames[] = {
16195 (char *) "self", NULL
16196 };
16197
16198 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ImageList",kwnames,&obj0)) goto fail;
16199 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16200 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16201 {
16202 PyThreadState* __tstate = wxPyBeginAllowThreads();
16203 delete arg1;
16204
16205 wxPyEndAllowThreads(__tstate);
16206 if (PyErr_Occurred()) SWIG_fail;
16207 }
16208 Py_INCREF(Py_None); resultobj = Py_None;
16209 return resultobj;
16210 fail:
16211 return NULL;
16212}
16213
16214
16215static PyObject *_wrap_ImageList_Add(PyObject *self, PyObject *args, PyObject *kwargs) {
16216 PyObject *resultobj;
16217 wxImageList *arg1 = (wxImageList *) 0 ;
16218 wxBitmap *arg2 = 0 ;
16219 wxBitmap const &arg3_defvalue = wxNullBitmap ;
16220 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
16221 int result;
16222 PyObject * obj0 = 0 ;
16223 PyObject * obj1 = 0 ;
16224 PyObject * obj2 = 0 ;
16225 char *kwnames[] = {
16226 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
16227 };
16228
16229 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) goto fail;
16230 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16231 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16232 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16233 SWIG_POINTER_EXCEPTION | 0)) == -1)
16234 SWIG_fail;
16235 if (arg2 == NULL) {
16236 PyErr_SetString(PyExc_TypeError,"null reference");
16237 SWIG_fail;
16238 }
16239 if (obj2) {
16240 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16241 SWIG_POINTER_EXCEPTION | 0)) == -1)
16242 SWIG_fail;
16243 if (arg3 == NULL) {
16244 PyErr_SetString(PyExc_TypeError,"null reference");
16245 SWIG_fail;
16246 }
16247 }
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 resultobj = SWIG_FromInt((int)result);
16256 return resultobj;
16257 fail:
16258 return NULL;
16259}
16260
16261
16262static PyObject *_wrap_ImageList_AddWithColourMask(PyObject *self, PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj;
16264 wxImageList *arg1 = (wxImageList *) 0 ;
16265 wxBitmap *arg2 = 0 ;
16266 wxColour *arg3 = 0 ;
16267 int result;
16268 wxColour temp3 ;
16269 PyObject * obj0 = 0 ;
16270 PyObject * obj1 = 0 ;
16271 PyObject * obj2 = 0 ;
16272 char *kwnames[] = {
16273 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
16274 };
16275
16276 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) goto fail;
16277 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16278 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16279 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap,
16280 SWIG_POINTER_EXCEPTION | 0)) == -1)
16281 SWIG_fail;
16282 if (arg2 == NULL) {
16283 PyErr_SetString(PyExc_TypeError,"null reference");
16284 SWIG_fail;
16285 }
16286 {
16287 arg3 = &temp3;
16288 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
16289 }
16290 {
16291 PyThreadState* __tstate = wxPyBeginAllowThreads();
16292 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
16293
16294 wxPyEndAllowThreads(__tstate);
16295 if (PyErr_Occurred()) SWIG_fail;
16296 }
16297 resultobj = SWIG_FromInt((int)result);
16298 return resultobj;
16299 fail:
16300 return NULL;
16301}
16302
16303
16304static PyObject *_wrap_ImageList_AddIcon(PyObject *self, PyObject *args, PyObject *kwargs) {
16305 PyObject *resultobj;
16306 wxImageList *arg1 = (wxImageList *) 0 ;
16307 wxIcon *arg2 = 0 ;
16308 int result;
16309 PyObject * obj0 = 0 ;
16310 PyObject * obj1 = 0 ;
16311 char *kwnames[] = {
16312 (char *) "self",(char *) "icon", NULL
16313 };
16314
16315 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) goto fail;
16316 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16317 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16318 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon,
16319 SWIG_POINTER_EXCEPTION | 0)) == -1)
16320 SWIG_fail;
16321 if (arg2 == NULL) {
16322 PyErr_SetString(PyExc_TypeError,"null reference");
16323 SWIG_fail;
16324 }
16325 {
16326 PyThreadState* __tstate = wxPyBeginAllowThreads();
16327 result = (int)(arg1)->Add((wxIcon const &)*arg2);
16328
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 resultobj = SWIG_FromInt((int)result);
16333 return resultobj;
16334 fail:
16335 return NULL;
16336}
16337
16338
16339static PyObject *_wrap_ImageList_Replace(PyObject *self, PyObject *args, PyObject *kwargs) {
16340 PyObject *resultobj;
16341 wxImageList *arg1 = (wxImageList *) 0 ;
16342 int arg2 ;
16343 wxBitmap *arg3 = 0 ;
16344 bool result;
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 PyObject * obj2 = 0 ;
16348 char *kwnames[] = {
16349 (char *) "self",(char *) "index",(char *) "bitmap", NULL
16350 };
16351
16352 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) goto fail;
16353 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16354 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16355 arg2 = (int) SWIG_AsInt(obj1);
16356 if (PyErr_Occurred()) SWIG_fail;
16357 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap,
16358 SWIG_POINTER_EXCEPTION | 0)) == -1)
16359 SWIG_fail;
16360 if (arg3 == NULL) {
16361 PyErr_SetString(PyExc_TypeError,"null reference");
16362 SWIG_fail;
16363 }
16364 {
16365 PyThreadState* __tstate = wxPyBeginAllowThreads();
16366 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
16367
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 {
16372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16373 }
16374 return resultobj;
16375 fail:
16376 return NULL;
16377}
16378
16379
16380static PyObject *_wrap_ImageList_Draw(PyObject *self, PyObject *args, PyObject *kwargs) {
16381 PyObject *resultobj;
16382 wxImageList *arg1 = (wxImageList *) 0 ;
16383 int arg2 ;
16384 wxDC *arg3 = 0 ;
16385 int arg4 ;
16386 int arg5 ;
16387 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
16388 bool arg7 = (bool) (bool)False ;
16389 bool result;
16390 PyObject * obj0 = 0 ;
16391 PyObject * obj1 = 0 ;
16392 PyObject * obj2 = 0 ;
16393 PyObject * obj3 = 0 ;
16394 PyObject * obj4 = 0 ;
16395 PyObject * obj5 = 0 ;
16396 PyObject * obj6 = 0 ;
16397 char *kwnames[] = {
16398 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
16399 };
16400
16401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail;
16402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16404 arg2 = (int) SWIG_AsInt(obj1);
16405 if (PyErr_Occurred()) SWIG_fail;
16406 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
16407 SWIG_POINTER_EXCEPTION | 0)) == -1)
16408 SWIG_fail;
16409 if (arg3 == NULL) {
16410 PyErr_SetString(PyExc_TypeError,"null reference");
16411 SWIG_fail;
16412 }
16413 arg4 = (int) SWIG_AsInt(obj3);
16414 if (PyErr_Occurred()) SWIG_fail;
16415 arg5 = (int) SWIG_AsInt(obj4);
16416 if (PyErr_Occurred()) SWIG_fail;
16417 if (obj5) {
16418 arg6 = (int) SWIG_AsInt(obj5);
16419 if (PyErr_Occurred()) SWIG_fail;
16420 }
16421 if (obj6) {
16422 arg7 = (bool const) SWIG_AsBool(obj6);
16423 if (PyErr_Occurred()) SWIG_fail;
16424 }
16425 {
16426 PyThreadState* __tstate = wxPyBeginAllowThreads();
16427 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
16428
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 {
16433 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16434 }
16435 return resultobj;
16436 fail:
16437 return NULL;
16438}
16439
16440
16441static PyObject *_wrap_ImageList_GetImageCount(PyObject *self, PyObject *args, PyObject *kwargs) {
16442 PyObject *resultobj;
16443 wxImageList *arg1 = (wxImageList *) 0 ;
16444 int result;
16445 PyObject * obj0 = 0 ;
16446 char *kwnames[] = {
16447 (char *) "self", NULL
16448 };
16449
16450 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_GetImageCount",kwnames,&obj0)) goto fail;
16451 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16452 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16453 {
16454 PyThreadState* __tstate = wxPyBeginAllowThreads();
16455 result = (int)(arg1)->GetImageCount();
16456
16457 wxPyEndAllowThreads(__tstate);
16458 if (PyErr_Occurred()) SWIG_fail;
16459 }
16460 resultobj = SWIG_FromInt((int)result);
16461 return resultobj;
16462 fail:
16463 return NULL;
16464}
16465
16466
16467static PyObject *_wrap_ImageList_Remove(PyObject *self, PyObject *args, PyObject *kwargs) {
16468 PyObject *resultobj;
16469 wxImageList *arg1 = (wxImageList *) 0 ;
16470 int arg2 ;
16471 bool result;
16472 PyObject * obj0 = 0 ;
16473 PyObject * obj1 = 0 ;
16474 char *kwnames[] = {
16475 (char *) "self",(char *) "index", NULL
16476 };
16477
16478 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) goto fail;
16479 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16480 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16481 arg2 = (int) SWIG_AsInt(obj1);
16482 if (PyErr_Occurred()) SWIG_fail;
16483 {
16484 PyThreadState* __tstate = wxPyBeginAllowThreads();
16485 result = (bool)(arg1)->Remove(arg2);
16486
16487 wxPyEndAllowThreads(__tstate);
16488 if (PyErr_Occurred()) SWIG_fail;
16489 }
16490 {
16491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16492 }
16493 return resultobj;
16494 fail:
16495 return NULL;
16496}
16497
16498
16499static PyObject *_wrap_ImageList_RemoveAll(PyObject *self, PyObject *args, PyObject *kwargs) {
16500 PyObject *resultobj;
16501 wxImageList *arg1 = (wxImageList *) 0 ;
16502 bool result;
16503 PyObject * obj0 = 0 ;
16504 char *kwnames[] = {
16505 (char *) "self", NULL
16506 };
16507
16508 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ImageList_RemoveAll",kwnames,&obj0)) goto fail;
16509 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16510 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16511 {
16512 PyThreadState* __tstate = wxPyBeginAllowThreads();
16513 result = (bool)(arg1)->RemoveAll();
16514
16515 wxPyEndAllowThreads(__tstate);
16516 if (PyErr_Occurred()) SWIG_fail;
16517 }
16518 {
16519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16520 }
16521 return resultobj;
16522 fail:
16523 return NULL;
16524}
16525
16526
16527static PyObject *_wrap_ImageList_GetSize(PyObject *self, PyObject *args, PyObject *kwargs) {
16528 PyObject *resultobj;
16529 wxImageList *arg1 = (wxImageList *) 0 ;
16530 int arg2 ;
16531 int *arg3 = 0 ;
16532 int *arg4 = 0 ;
16533 int temp3 ;
16534 int temp4 ;
16535 PyObject * obj0 = 0 ;
16536 PyObject * obj1 = 0 ;
16537 char *kwnames[] = {
16538 (char *) "self",(char *) "index", NULL
16539 };
16540
16541 arg3 = &temp3;
16542 arg4 = &temp4;
16543 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) goto fail;
16544 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxImageList,
16545 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
16546 arg2 = (int) SWIG_AsInt(obj1);
16547 if (PyErr_Occurred()) SWIG_fail;
16548 {
16549 PyThreadState* __tstate = wxPyBeginAllowThreads();
16550 (arg1)->GetSize(arg2,*arg3,*arg4);
16551
16552 wxPyEndAllowThreads(__tstate);
16553 if (PyErr_Occurred()) SWIG_fail;
16554 }
16555 Py_INCREF(Py_None); resultobj = Py_None;
16556 {
16557 PyObject *o = PyInt_FromLong((long) (*arg3));
16558 resultobj = t_output_helper(resultobj,o);
16559 }
16560 {
16561 PyObject *o = PyInt_FromLong((long) (*arg4));
16562 resultobj = t_output_helper(resultobj,o);
16563 }
16564 return resultobj;
16565 fail:
16566 return NULL;
16567}
16568
16569
16570static PyObject * ImageList_swigregister(PyObject *self, PyObject *args) {
16571 PyObject *obj;
16572 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
16573 SWIG_TypeClientData(SWIGTYPE_p_wxImageList, obj);
16574 Py_INCREF(obj);
16575 return Py_BuildValue((char *)"");
16576}
16577static int _wrap_NORMAL_FONT_set(PyObject *_val) {
16578 PyErr_SetString(PyExc_TypeError,"Variable NORMAL_FONT is read-only.");
16579 return 1;
16580}
16581
16582
16583static PyObject *_wrap_NORMAL_FONT_get() {
16584 PyObject *pyobj;
16585
16586 pyobj = SWIG_NewPointerObj((void *)(wxNORMAL_FONT), SWIGTYPE_p_wxFont, 0);
16587 return pyobj;
16588}
16589
16590
16591static int _wrap_SMALL_FONT_set(PyObject *_val) {
16592 PyErr_SetString(PyExc_TypeError,"Variable SMALL_FONT is read-only.");
16593 return 1;
16594}
16595
16596
16597static PyObject *_wrap_SMALL_FONT_get() {
16598 PyObject *pyobj;
16599
16600 pyobj = SWIG_NewPointerObj((void *)(wxSMALL_FONT), SWIGTYPE_p_wxFont, 0);
16601 return pyobj;
16602}
16603
16604
16605static int _wrap_ITALIC_FONT_set(PyObject *_val) {
16606 PyErr_SetString(PyExc_TypeError,"Variable ITALIC_FONT is read-only.");
16607 return 1;
16608}
16609
16610
16611static PyObject *_wrap_ITALIC_FONT_get() {
16612 PyObject *pyobj;
16613
16614 pyobj = SWIG_NewPointerObj((void *)(wxITALIC_FONT), SWIGTYPE_p_wxFont, 0);
16615 return pyobj;
16616}
16617
16618
16619static int _wrap_SWISS_FONT_set(PyObject *_val) {
16620 PyErr_SetString(PyExc_TypeError,"Variable SWISS_FONT is read-only.");
16621 return 1;
16622}
16623
16624
16625static PyObject *_wrap_SWISS_FONT_get() {
16626 PyObject *pyobj;
16627
16628 pyobj = SWIG_NewPointerObj((void *)(wxSWISS_FONT), SWIGTYPE_p_wxFont, 0);
16629 return pyobj;
16630}
16631
16632
16633static int _wrap_RED_PEN_set(PyObject *_val) {
16634 PyErr_SetString(PyExc_TypeError,"Variable RED_PEN is read-only.");
16635 return 1;
16636}
16637
16638
16639static PyObject *_wrap_RED_PEN_get() {
16640 PyObject *pyobj;
16641
16642 pyobj = SWIG_NewPointerObj((void *)(wxRED_PEN), SWIGTYPE_p_wxPen, 0);
16643 return pyobj;
16644}
16645
16646
16647static int _wrap_CYAN_PEN_set(PyObject *_val) {
16648 PyErr_SetString(PyExc_TypeError,"Variable CYAN_PEN is read-only.");
16649 return 1;
16650}
16651
16652
16653static PyObject *_wrap_CYAN_PEN_get() {
16654 PyObject *pyobj;
16655
16656 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_PEN), SWIGTYPE_p_wxPen, 0);
16657 return pyobj;
16658}
16659
16660
16661static int _wrap_GREEN_PEN_set(PyObject *_val) {
16662 PyErr_SetString(PyExc_TypeError,"Variable GREEN_PEN is read-only.");
16663 return 1;
16664}
16665
16666
16667static PyObject *_wrap_GREEN_PEN_get() {
16668 PyObject *pyobj;
16669
16670 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_PEN), SWIGTYPE_p_wxPen, 0);
16671 return pyobj;
16672}
16673
16674
16675static int _wrap_BLACK_PEN_set(PyObject *_val) {
16676 PyErr_SetString(PyExc_TypeError,"Variable BLACK_PEN is read-only.");
16677 return 1;
16678}
16679
16680
16681static PyObject *_wrap_BLACK_PEN_get() {
16682 PyObject *pyobj;
16683
16684 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_PEN), SWIGTYPE_p_wxPen, 0);
16685 return pyobj;
16686}
16687
16688
16689static int _wrap_WHITE_PEN_set(PyObject *_val) {
16690 PyErr_SetString(PyExc_TypeError,"Variable WHITE_PEN is read-only.");
16691 return 1;
16692}
16693
16694
16695static PyObject *_wrap_WHITE_PEN_get() {
16696 PyObject *pyobj;
16697
16698 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_PEN), SWIGTYPE_p_wxPen, 0);
16699 return pyobj;
16700}
16701
16702
16703static int _wrap_TRANSPARENT_PEN_set(PyObject *_val) {
16704 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_PEN is read-only.");
16705 return 1;
16706}
16707
16708
16709static PyObject *_wrap_TRANSPARENT_PEN_get() {
16710 PyObject *pyobj;
16711
16712 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_PEN), SWIGTYPE_p_wxPen, 0);
16713 return pyobj;
16714}
16715
16716
16717static int _wrap_BLACK_DASHED_PEN_set(PyObject *_val) {
16718 PyErr_SetString(PyExc_TypeError,"Variable BLACK_DASHED_PEN is read-only.");
16719 return 1;
16720}
16721
16722
16723static PyObject *_wrap_BLACK_DASHED_PEN_get() {
16724 PyObject *pyobj;
16725
16726 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_DASHED_PEN), SWIGTYPE_p_wxPen, 0);
16727 return pyobj;
16728}
16729
16730
16731static int _wrap_GREY_PEN_set(PyObject *_val) {
16732 PyErr_SetString(PyExc_TypeError,"Variable GREY_PEN is read-only.");
16733 return 1;
16734}
16735
16736
16737static PyObject *_wrap_GREY_PEN_get() {
16738 PyObject *pyobj;
16739
16740 pyobj = SWIG_NewPointerObj((void *)(wxGREY_PEN), SWIGTYPE_p_wxPen, 0);
16741 return pyobj;
16742}
16743
16744
16745static int _wrap_MEDIUM_GREY_PEN_set(PyObject *_val) {
16746 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_PEN is read-only.");
16747 return 1;
16748}
16749
16750
16751static PyObject *_wrap_MEDIUM_GREY_PEN_get() {
16752 PyObject *pyobj;
16753
16754 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16755 return pyobj;
16756}
16757
16758
16759static int _wrap_LIGHT_GREY_PEN_set(PyObject *_val) {
16760 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_PEN is read-only.");
16761 return 1;
16762}
16763
16764
16765static PyObject *_wrap_LIGHT_GREY_PEN_get() {
16766 PyObject *pyobj;
16767
16768 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_PEN), SWIGTYPE_p_wxPen, 0);
16769 return pyobj;
16770}
16771
16772
16773static int _wrap_BLUE_BRUSH_set(PyObject *_val) {
16774 PyErr_SetString(PyExc_TypeError,"Variable BLUE_BRUSH is read-only.");
16775 return 1;
16776}
16777
16778
16779static PyObject *_wrap_BLUE_BRUSH_get() {
16780 PyObject *pyobj;
16781
16782 pyobj = SWIG_NewPointerObj((void *)(wxBLUE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16783 return pyobj;
16784}
16785
16786
16787static int _wrap_GREEN_BRUSH_set(PyObject *_val) {
16788 PyErr_SetString(PyExc_TypeError,"Variable GREEN_BRUSH is read-only.");
16789 return 1;
16790}
16791
16792
16793static PyObject *_wrap_GREEN_BRUSH_get() {
16794 PyObject *pyobj;
16795
16796 pyobj = SWIG_NewPointerObj((void *)(wxGREEN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16797 return pyobj;
16798}
16799
16800
16801static int _wrap_WHITE_BRUSH_set(PyObject *_val) {
16802 PyErr_SetString(PyExc_TypeError,"Variable WHITE_BRUSH is read-only.");
16803 return 1;
16804}
16805
16806
16807static PyObject *_wrap_WHITE_BRUSH_get() {
16808 PyObject *pyobj;
16809
16810 pyobj = SWIG_NewPointerObj((void *)(wxWHITE_BRUSH), SWIGTYPE_p_wxBrush, 0);
16811 return pyobj;
16812}
16813
16814
16815static int _wrap_BLACK_BRUSH_set(PyObject *_val) {
16816 PyErr_SetString(PyExc_TypeError,"Variable BLACK_BRUSH is read-only.");
16817 return 1;
16818}
16819
16820
16821static PyObject *_wrap_BLACK_BRUSH_get() {
16822 PyObject *pyobj;
16823
16824 pyobj = SWIG_NewPointerObj((void *)(wxBLACK_BRUSH), SWIGTYPE_p_wxBrush, 0);
16825 return pyobj;
16826}
16827
16828
16829static int _wrap_TRANSPARENT_BRUSH_set(PyObject *_val) {
16830 PyErr_SetString(PyExc_TypeError,"Variable TRANSPARENT_BRUSH is read-only.");
16831 return 1;
16832}
16833
16834
16835static PyObject *_wrap_TRANSPARENT_BRUSH_get() {
16836 PyObject *pyobj;
16837
16838 pyobj = SWIG_NewPointerObj((void *)(wxTRANSPARENT_BRUSH), SWIGTYPE_p_wxBrush, 0);
16839 return pyobj;
16840}
16841
16842
16843static int _wrap_CYAN_BRUSH_set(PyObject *_val) {
16844 PyErr_SetString(PyExc_TypeError,"Variable CYAN_BRUSH is read-only.");
16845 return 1;
16846}
16847
16848
16849static PyObject *_wrap_CYAN_BRUSH_get() {
16850 PyObject *pyobj;
16851
16852 pyobj = SWIG_NewPointerObj((void *)(wxCYAN_BRUSH), SWIGTYPE_p_wxBrush, 0);
16853 return pyobj;
16854}
16855
16856
16857static int _wrap_RED_BRUSH_set(PyObject *_val) {
16858 PyErr_SetString(PyExc_TypeError,"Variable RED_BRUSH is read-only.");
16859 return 1;
16860}
16861
16862
16863static PyObject *_wrap_RED_BRUSH_get() {
16864 PyObject *pyobj;
16865
16866 pyobj = SWIG_NewPointerObj((void *)(wxRED_BRUSH), SWIGTYPE_p_wxBrush, 0);
16867 return pyobj;
16868}
16869
16870
16871static int _wrap_GREY_BRUSH_set(PyObject *_val) {
16872 PyErr_SetString(PyExc_TypeError,"Variable GREY_BRUSH is read-only.");
16873 return 1;
16874}
16875
16876
16877static PyObject *_wrap_GREY_BRUSH_get() {
16878 PyObject *pyobj;
16879
16880 pyobj = SWIG_NewPointerObj((void *)(wxGREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16881 return pyobj;
16882}
16883
16884
16885static int _wrap_MEDIUM_GREY_BRUSH_set(PyObject *_val) {
16886 PyErr_SetString(PyExc_TypeError,"Variable MEDIUM_GREY_BRUSH is read-only.");
16887 return 1;
16888}
16889
16890
16891static PyObject *_wrap_MEDIUM_GREY_BRUSH_get() {
16892 PyObject *pyobj;
16893
16894 pyobj = SWIG_NewPointerObj((void *)(wxMEDIUM_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16895 return pyobj;
16896}
16897
16898
16899static int _wrap_LIGHT_GREY_BRUSH_set(PyObject *_val) {
16900 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY_BRUSH is read-only.");
16901 return 1;
16902}
16903
16904
16905static PyObject *_wrap_LIGHT_GREY_BRUSH_get() {
16906 PyObject *pyobj;
16907
16908 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY_BRUSH), SWIGTYPE_p_wxBrush, 0);
16909 return pyobj;
16910}
16911
16912
16913static int _wrap_BLACK_set(PyObject *_val) {
16914 PyErr_SetString(PyExc_TypeError,"Variable BLACK is read-only.");
16915 return 1;
16916}
16917
16918
16919static PyObject *_wrap_BLACK_get() {
16920 PyObject *pyobj;
16921
16922 pyobj = SWIG_NewPointerObj((void *)(wxBLACK), SWIGTYPE_p_wxColour, 0);
16923 return pyobj;
16924}
16925
16926
16927static int _wrap_WHITE_set(PyObject *_val) {
16928 PyErr_SetString(PyExc_TypeError,"Variable WHITE is read-only.");
16929 return 1;
16930}
16931
16932
16933static PyObject *_wrap_WHITE_get() {
16934 PyObject *pyobj;
16935
16936 pyobj = SWIG_NewPointerObj((void *)(wxWHITE), SWIGTYPE_p_wxColour, 0);
16937 return pyobj;
16938}
16939
16940
16941static int _wrap_RED_set(PyObject *_val) {
16942 PyErr_SetString(PyExc_TypeError,"Variable RED is read-only.");
16943 return 1;
16944}
16945
16946
16947static PyObject *_wrap_RED_get() {
16948 PyObject *pyobj;
16949
16950 pyobj = SWIG_NewPointerObj((void *)(wxRED), SWIGTYPE_p_wxColour, 0);
16951 return pyobj;
16952}
16953
16954
16955static int _wrap_BLUE_set(PyObject *_val) {
16956 PyErr_SetString(PyExc_TypeError,"Variable BLUE is read-only.");
16957 return 1;
16958}
16959
16960
16961static PyObject *_wrap_BLUE_get() {
16962 PyObject *pyobj;
16963
16964 pyobj = SWIG_NewPointerObj((void *)(wxBLUE), SWIGTYPE_p_wxColour, 0);
16965 return pyobj;
16966}
16967
16968
16969static int _wrap_GREEN_set(PyObject *_val) {
16970 PyErr_SetString(PyExc_TypeError,"Variable GREEN is read-only.");
16971 return 1;
16972}
16973
16974
16975static PyObject *_wrap_GREEN_get() {
16976 PyObject *pyobj;
16977
16978 pyobj = SWIG_NewPointerObj((void *)(wxGREEN), SWIGTYPE_p_wxColour, 0);
16979 return pyobj;
16980}
16981
16982
16983static int _wrap_CYAN_set(PyObject *_val) {
16984 PyErr_SetString(PyExc_TypeError,"Variable CYAN is read-only.");
16985 return 1;
16986}
16987
16988
16989static PyObject *_wrap_CYAN_get() {
16990 PyObject *pyobj;
16991
16992 pyobj = SWIG_NewPointerObj((void *)(wxCYAN), SWIGTYPE_p_wxColour, 0);
16993 return pyobj;
16994}
16995
16996
16997static int _wrap_LIGHT_GREY_set(PyObject *_val) {
16998 PyErr_SetString(PyExc_TypeError,"Variable LIGHT_GREY is read-only.");
16999 return 1;
17000}
17001
17002
17003static PyObject *_wrap_LIGHT_GREY_get() {
17004 PyObject *pyobj;
17005
17006 pyobj = SWIG_NewPointerObj((void *)(wxLIGHT_GREY), SWIGTYPE_p_wxColour, 0);
17007 return pyobj;
17008}
17009
17010
17011static int _wrap_STANDARD_CURSOR_set(PyObject *_val) {
17012 PyErr_SetString(PyExc_TypeError,"Variable STANDARD_CURSOR is read-only.");
17013 return 1;
17014}
17015
17016
17017static PyObject *_wrap_STANDARD_CURSOR_get() {
17018 PyObject *pyobj;
17019
17020 pyobj = SWIG_NewPointerObj((void *)(wxSTANDARD_CURSOR), SWIGTYPE_p_wxCursor, 0);
17021 return pyobj;
17022}
17023
17024
17025static int _wrap_HOURGLASS_CURSOR_set(PyObject *_val) {
17026 PyErr_SetString(PyExc_TypeError,"Variable HOURGLASS_CURSOR is read-only.");
17027 return 1;
17028}
17029
17030
17031static PyObject *_wrap_HOURGLASS_CURSOR_get() {
17032 PyObject *pyobj;
17033
17034 pyobj = SWIG_NewPointerObj((void *)(wxHOURGLASS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17035 return pyobj;
17036}
17037
17038
17039static int _wrap_CROSS_CURSOR_set(PyObject *_val) {
17040 PyErr_SetString(PyExc_TypeError,"Variable CROSS_CURSOR is read-only.");
17041 return 1;
17042}
17043
17044
17045static PyObject *_wrap_CROSS_CURSOR_get() {
17046 PyObject *pyobj;
17047
17048 pyobj = SWIG_NewPointerObj((void *)(wxCROSS_CURSOR), SWIGTYPE_p_wxCursor, 0);
17049 return pyobj;
17050}
17051
17052
17053static int _wrap_NullBitmap_set(PyObject *_val) {
17054 PyErr_SetString(PyExc_TypeError,"Variable NullBitmap is read-only.");
17055 return 1;
17056}
17057
17058
17059static PyObject *_wrap_NullBitmap_get() {
17060 PyObject *pyobj;
17061
17062 pyobj = SWIG_NewPointerObj((void *)(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0);
17063 return pyobj;
17064}
17065
17066
17067static int _wrap_NullIcon_set(PyObject *_val) {
17068 PyErr_SetString(PyExc_TypeError,"Variable NullIcon is read-only.");
17069 return 1;
17070}
17071
17072
17073static PyObject *_wrap_NullIcon_get() {
17074 PyObject *pyobj;
17075
17076 pyobj = SWIG_NewPointerObj((void *)(&wxNullIcon), SWIGTYPE_p_wxIcon, 0);
17077 return pyobj;
17078}
17079
17080
17081static int _wrap_NullCursor_set(PyObject *_val) {
17082 PyErr_SetString(PyExc_TypeError,"Variable NullCursor is read-only.");
17083 return 1;
17084}
17085
17086
17087static PyObject *_wrap_NullCursor_get() {
17088 PyObject *pyobj;
17089
17090 pyobj = SWIG_NewPointerObj((void *)(&wxNullCursor), SWIGTYPE_p_wxCursor, 0);
17091 return pyobj;
17092}
17093
17094
17095static int _wrap_NullPen_set(PyObject *_val) {
17096 PyErr_SetString(PyExc_TypeError,"Variable NullPen is read-only.");
17097 return 1;
17098}
17099
17100
17101static PyObject *_wrap_NullPen_get() {
17102 PyObject *pyobj;
17103
17104 pyobj = SWIG_NewPointerObj((void *)(&wxNullPen), SWIGTYPE_p_wxPen, 0);
17105 return pyobj;
17106}
17107
17108
17109static int _wrap_NullBrush_set(PyObject *_val) {
17110 PyErr_SetString(PyExc_TypeError,"Variable NullBrush is read-only.");
17111 return 1;
17112}
17113
17114
17115static PyObject *_wrap_NullBrush_get() {
17116 PyObject *pyobj;
17117
17118 pyobj = SWIG_NewPointerObj((void *)(&wxNullBrush), SWIGTYPE_p_wxBrush, 0);
17119 return pyobj;
17120}
17121
17122
17123static int _wrap_NullPalette_set(PyObject *_val) {
17124 PyErr_SetString(PyExc_TypeError,"Variable NullPalette is read-only.");
17125 return 1;
17126}
17127
17128
17129static PyObject *_wrap_NullPalette_get() {
17130 PyObject *pyobj;
17131
17132 pyobj = SWIG_NewPointerObj((void *)(&wxNullPalette), SWIGTYPE_p_wxPalette, 0);
17133 return pyobj;
17134}
17135
17136
17137static int _wrap_NullFont_set(PyObject *_val) {
17138 PyErr_SetString(PyExc_TypeError,"Variable NullFont is read-only.");
17139 return 1;
17140}
17141
17142
17143static PyObject *_wrap_NullFont_get() {
17144 PyObject *pyobj;
17145
17146 pyobj = SWIG_NewPointerObj((void *)(&wxNullFont), SWIGTYPE_p_wxFont, 0);
17147 return pyobj;
17148}
17149
17150
17151static int _wrap_NullColour_set(PyObject *_val) {
17152 PyErr_SetString(PyExc_TypeError,"Variable NullColour is read-only.");
17153 return 1;
17154}
17155
17156
17157static PyObject *_wrap_NullColour_get() {
17158 PyObject *pyobj;
17159
17160 pyobj = SWIG_NewPointerObj((void *)(&wxNullColour), SWIGTYPE_p_wxColour, 0);
17161 return pyobj;
17162}
17163
17164
17165static PyObject *_wrap_PenList_AddPen(PyObject *self, PyObject *args, PyObject *kwargs) {
17166 PyObject *resultobj;
17167 wxPenList *arg1 = (wxPenList *) 0 ;
17168 wxPen *arg2 = (wxPen *) 0 ;
17169 PyObject * obj0 = 0 ;
17170 PyObject * obj1 = 0 ;
17171 char *kwnames[] = {
17172 (char *) "self",(char *) "pen", NULL
17173 };
17174
17175 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) goto fail;
17176 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17177 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17178 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17179 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17180 {
17181 PyThreadState* __tstate = wxPyBeginAllowThreads();
17182 (arg1)->AddPen(arg2);
17183
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 Py_INCREF(Py_None); resultobj = Py_None;
17188 return resultobj;
17189 fail:
17190 return NULL;
17191}
17192
17193
17194static PyObject *_wrap_PenList_FindOrCreatePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17195 PyObject *resultobj;
17196 wxPenList *arg1 = (wxPenList *) 0 ;
17197 wxColour *arg2 = 0 ;
17198 int arg3 ;
17199 int arg4 ;
17200 wxPen *result;
17201 wxColour temp2 ;
17202 PyObject * obj0 = 0 ;
17203 PyObject * obj1 = 0 ;
17204 PyObject * obj2 = 0 ;
17205 PyObject * obj3 = 0 ;
17206 char *kwnames[] = {
17207 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
17208 };
17209
17210 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
17211 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17212 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17213 {
17214 arg2 = &temp2;
17215 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17216 }
17217 arg3 = (int) SWIG_AsInt(obj2);
17218 if (PyErr_Occurred()) SWIG_fail;
17219 arg4 = (int) SWIG_AsInt(obj3);
17220 if (PyErr_Occurred()) SWIG_fail;
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
17224
17225 wxPyEndAllowThreads(__tstate);
17226 if (PyErr_Occurred()) SWIG_fail;
17227 }
17228 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPen, 0);
17229 return resultobj;
17230 fail:
17231 return NULL;
17232}
17233
17234
17235static PyObject *_wrap_PenList_RemovePen(PyObject *self, PyObject *args, PyObject *kwargs) {
17236 PyObject *resultobj;
17237 wxPenList *arg1 = (wxPenList *) 0 ;
17238 wxPen *arg2 = (wxPen *) 0 ;
17239 PyObject * obj0 = 0 ;
17240 PyObject * obj1 = 0 ;
17241 char *kwnames[] = {
17242 (char *) "self",(char *) "pen", NULL
17243 };
17244
17245 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) goto fail;
17246 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17247 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17248 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPen,
17249 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17250 {
17251 PyThreadState* __tstate = wxPyBeginAllowThreads();
17252 (arg1)->RemovePen(arg2);
17253
17254 wxPyEndAllowThreads(__tstate);
17255 if (PyErr_Occurred()) SWIG_fail;
17256 }
17257 Py_INCREF(Py_None); resultobj = Py_None;
17258 return resultobj;
17259 fail:
17260 return NULL;
17261}
17262
17263
17264static PyObject *_wrap_PenList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17265 PyObject *resultobj;
17266 wxPenList *arg1 = (wxPenList *) 0 ;
17267 int result;
17268 PyObject * obj0 = 0 ;
17269 char *kwnames[] = {
17270 (char *) "self", NULL
17271 };
17272
17273 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PenList_GetCount",kwnames,&obj0)) goto fail;
17274 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPenList,
17275 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17276 {
17277 PyThreadState* __tstate = wxPyBeginAllowThreads();
17278 result = (int)(arg1)->GetCount();
17279
17280 wxPyEndAllowThreads(__tstate);
17281 if (PyErr_Occurred()) SWIG_fail;
17282 }
17283 resultobj = SWIG_FromInt((int)result);
17284 return resultobj;
17285 fail:
17286 return NULL;
17287}
17288
17289
17290static PyObject * PenList_swigregister(PyObject *self, PyObject *args) {
17291 PyObject *obj;
17292 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17293 SWIG_TypeClientData(SWIGTYPE_p_wxPenList, obj);
17294 Py_INCREF(obj);
17295 return Py_BuildValue((char *)"");
17296}
17297static PyObject *_wrap_BrushList_AddBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17298 PyObject *resultobj;
17299 wxBrushList *arg1 = (wxBrushList *) 0 ;
17300 wxBrush *arg2 = (wxBrush *) 0 ;
17301 PyObject * obj0 = 0 ;
17302 PyObject * obj1 = 0 ;
17303 char *kwnames[] = {
17304 (char *) "self",(char *) "brush", NULL
17305 };
17306
17307 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) goto fail;
17308 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17309 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17310 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17311 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17312 {
17313 PyThreadState* __tstate = wxPyBeginAllowThreads();
17314 (arg1)->AddBrush(arg2);
17315
17316 wxPyEndAllowThreads(__tstate);
17317 if (PyErr_Occurred()) SWIG_fail;
17318 }
17319 Py_INCREF(Py_None); resultobj = Py_None;
17320 return resultobj;
17321 fail:
17322 return NULL;
17323}
17324
17325
17326static PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17327 PyObject *resultobj;
17328 wxBrushList *arg1 = (wxBrushList *) 0 ;
17329 wxColour *arg2 = 0 ;
17330 int arg3 ;
17331 wxBrush *result;
17332 wxColour temp2 ;
17333 PyObject * obj0 = 0 ;
17334 PyObject * obj1 = 0 ;
17335 PyObject * obj2 = 0 ;
17336 char *kwnames[] = {
17337 (char *) "self",(char *) "colour",(char *) "style", NULL
17338 };
17339
17340 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) goto fail;
17341 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17342 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17343 {
17344 arg2 = &temp2;
17345 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17346 }
17347 arg3 = (int) SWIG_AsInt(obj2);
17348 if (PyErr_Occurred()) SWIG_fail;
17349 {
17350 PyThreadState* __tstate = wxPyBeginAllowThreads();
17351 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
17352
17353 wxPyEndAllowThreads(__tstate);
17354 if (PyErr_Occurred()) SWIG_fail;
17355 }
17356 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBrush, 0);
17357 return resultobj;
17358 fail:
17359 return NULL;
17360}
17361
17362
17363static PyObject *_wrap_BrushList_RemoveBrush(PyObject *self, PyObject *args, PyObject *kwargs) {
17364 PyObject *resultobj;
17365 wxBrushList *arg1 = (wxBrushList *) 0 ;
17366 wxBrush *arg2 = (wxBrush *) 0 ;
17367 PyObject * obj0 = 0 ;
17368 PyObject * obj1 = 0 ;
17369 char *kwnames[] = {
17370 (char *) "self",(char *) "brush", NULL
17371 };
17372
17373 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) goto fail;
17374 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17375 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17376 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBrush,
17377 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17378 {
17379 PyThreadState* __tstate = wxPyBeginAllowThreads();
17380 (arg1)->RemoveBrush(arg2);
17381
17382 wxPyEndAllowThreads(__tstate);
17383 if (PyErr_Occurred()) SWIG_fail;
17384 }
17385 Py_INCREF(Py_None); resultobj = Py_None;
17386 return resultobj;
17387 fail:
17388 return NULL;
17389}
17390
17391
17392static PyObject *_wrap_BrushList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17393 PyObject *resultobj;
17394 wxBrushList *arg1 = (wxBrushList *) 0 ;
17395 int result;
17396 PyObject * obj0 = 0 ;
17397 char *kwnames[] = {
17398 (char *) "self", NULL
17399 };
17400
17401 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BrushList_GetCount",kwnames,&obj0)) goto fail;
17402 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBrushList,
17403 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17404 {
17405 PyThreadState* __tstate = wxPyBeginAllowThreads();
17406 result = (int)(arg1)->GetCount();
17407
17408 wxPyEndAllowThreads(__tstate);
17409 if (PyErr_Occurred()) SWIG_fail;
17410 }
17411 resultobj = SWIG_FromInt((int)result);
17412 return resultobj;
17413 fail:
17414 return NULL;
17415}
17416
17417
17418static PyObject * BrushList_swigregister(PyObject *self, PyObject *args) {
17419 PyObject *obj;
17420 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17421 SWIG_TypeClientData(SWIGTYPE_p_wxBrushList, obj);
17422 Py_INCREF(obj);
17423 return Py_BuildValue((char *)"");
17424}
17425static PyObject *_wrap_new_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj;
17427 wxColourDatabase *result;
17428 char *kwnames[] = {
17429 NULL
17430 };
17431
17432 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ColourDatabase",kwnames)) goto fail;
17433 {
0439c23b 17434 if (!wxPyCheckForApp()) SWIG_fail;
d55e5bfc
RD
17435 PyThreadState* __tstate = wxPyBeginAllowThreads();
17436 result = (wxColourDatabase *)new wxColourDatabase();
17437
17438 wxPyEndAllowThreads(__tstate);
110da5b0 17439 if (PyErr_Occurred()) SWIG_fail;
d55e5bfc
RD
17440 }
17441 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColourDatabase, 1);
17442 return resultobj;
17443 fail:
17444 return NULL;
17445}
17446
17447
17448static PyObject *_wrap_delete_ColourDatabase(PyObject *self, PyObject *args, PyObject *kwargs) {
17449 PyObject *resultobj;
17450 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17451 PyObject * obj0 = 0 ;
17452 char *kwnames[] = {
17453 (char *) "self", NULL
17454 };
17455
17456 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ColourDatabase",kwnames,&obj0)) goto fail;
17457 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17458 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17459 {
17460 PyThreadState* __tstate = wxPyBeginAllowThreads();
17461 delete arg1;
17462
17463 wxPyEndAllowThreads(__tstate);
17464 if (PyErr_Occurred()) SWIG_fail;
17465 }
17466 Py_INCREF(Py_None); resultobj = Py_None;
17467 return resultobj;
17468 fail:
17469 return NULL;
17470}
17471
17472
17473static PyObject *_wrap_ColourDatabase_Find(PyObject *self, PyObject *args, PyObject *kwargs) {
17474 PyObject *resultobj;
17475 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17476 wxString *arg2 = 0 ;
17477 wxColour result;
17478 bool temp2 = False ;
17479 PyObject * obj0 = 0 ;
17480 PyObject * obj1 = 0 ;
17481 char *kwnames[] = {
17482 (char *) "self",(char *) "name", NULL
17483 };
17484
17485 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) goto fail;
17486 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17487 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17488 {
17489 arg2 = wxString_in_helper(obj1);
17490 if (arg2 == NULL) SWIG_fail;
17491 temp2 = True;
17492 }
17493 {
17494 PyThreadState* __tstate = wxPyBeginAllowThreads();
17495 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
17496
17497 wxPyEndAllowThreads(__tstate);
17498 if (PyErr_Occurred()) SWIG_fail;
17499 }
17500 {
17501 wxColour * resultptr;
17502 resultptr = new wxColour((wxColour &) result);
17503 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17504 }
17505 {
17506 if (temp2)
17507 delete arg2;
17508 }
17509 return resultobj;
17510 fail:
17511 {
17512 if (temp2)
17513 delete arg2;
17514 }
17515 return NULL;
17516}
17517
17518
17519static PyObject *_wrap_ColourDatabase_FindName(PyObject *self, PyObject *args, PyObject *kwargs) {
17520 PyObject *resultobj;
17521 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17522 wxColour *arg2 = 0 ;
17523 wxString result;
17524 wxColour temp2 ;
17525 PyObject * obj0 = 0 ;
17526 PyObject * obj1 = 0 ;
17527 char *kwnames[] = {
17528 (char *) "self",(char *) "colour", NULL
17529 };
17530
17531 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) goto fail;
17532 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17533 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17534 {
17535 arg2 = &temp2;
17536 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
17537 }
17538 {
17539 PyThreadState* __tstate = wxPyBeginAllowThreads();
17540 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
17541
17542 wxPyEndAllowThreads(__tstate);
17543 if (PyErr_Occurred()) SWIG_fail;
17544 }
17545 {
17546#if wxUSE_UNICODE
17547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17548#else
17549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17550#endif
17551 }
17552 return resultobj;
17553 fail:
17554 return NULL;
17555}
17556
17557
17558static PyObject *_wrap_ColourDatabase_AddColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17559 PyObject *resultobj;
17560 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17561 wxString *arg2 = 0 ;
17562 wxColour *arg3 = 0 ;
17563 bool temp2 = False ;
17564 wxColour temp3 ;
17565 PyObject * obj0 = 0 ;
17566 PyObject * obj1 = 0 ;
17567 PyObject * obj2 = 0 ;
17568 char *kwnames[] = {
17569 (char *) "self",(char *) "name",(char *) "colour", NULL
17570 };
17571
17572 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) goto fail;
17573 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17574 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17575 {
17576 arg2 = wxString_in_helper(obj1);
17577 if (arg2 == NULL) SWIG_fail;
17578 temp2 = True;
17579 }
17580 {
17581 arg3 = &temp3;
17582 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17583 }
17584 {
17585 PyThreadState* __tstate = wxPyBeginAllowThreads();
17586 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
17587
17588 wxPyEndAllowThreads(__tstate);
17589 if (PyErr_Occurred()) SWIG_fail;
17590 }
17591 Py_INCREF(Py_None); resultobj = Py_None;
17592 {
17593 if (temp2)
17594 delete arg2;
17595 }
17596 return resultobj;
17597 fail:
17598 {
17599 if (temp2)
17600 delete arg2;
17601 }
17602 return NULL;
17603}
17604
17605
17606static PyObject *_wrap_ColourDatabase_Append(PyObject *self, PyObject *args, PyObject *kwargs) {
17607 PyObject *resultobj;
17608 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
17609 wxString *arg2 = 0 ;
17610 int arg3 ;
17611 int arg4 ;
17612 int arg5 ;
17613 bool temp2 = False ;
17614 PyObject * obj0 = 0 ;
17615 PyObject * obj1 = 0 ;
17616 PyObject * obj2 = 0 ;
17617 PyObject * obj3 = 0 ;
17618 PyObject * obj4 = 0 ;
17619 char *kwnames[] = {
17620 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
17621 };
17622
17623 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail;
17624 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxColourDatabase,
17625 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17626 {
17627 arg2 = wxString_in_helper(obj1);
17628 if (arg2 == NULL) SWIG_fail;
17629 temp2 = True;
17630 }
17631 arg3 = (int) SWIG_AsInt(obj2);
17632 if (PyErr_Occurred()) SWIG_fail;
17633 arg4 = (int) SWIG_AsInt(obj3);
17634 if (PyErr_Occurred()) SWIG_fail;
17635 arg5 = (int) SWIG_AsInt(obj4);
17636 if (PyErr_Occurred()) SWIG_fail;
17637 {
17638 PyThreadState* __tstate = wxPyBeginAllowThreads();
17639 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
17640
17641 wxPyEndAllowThreads(__tstate);
17642 if (PyErr_Occurred()) SWIG_fail;
17643 }
17644 Py_INCREF(Py_None); resultobj = Py_None;
17645 {
17646 if (temp2)
17647 delete arg2;
17648 }
17649 return resultobj;
17650 fail:
17651 {
17652 if (temp2)
17653 delete arg2;
17654 }
17655 return NULL;
17656}
17657
17658
17659static PyObject * ColourDatabase_swigregister(PyObject *self, PyObject *args) {
17660 PyObject *obj;
17661 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17662 SWIG_TypeClientData(SWIGTYPE_p_wxColourDatabase, obj);
17663 Py_INCREF(obj);
17664 return Py_BuildValue((char *)"");
17665}
17666static PyObject *_wrap_FontList_AddFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17667 PyObject *resultobj;
17668 wxFontList *arg1 = (wxFontList *) 0 ;
17669 wxFont *arg2 = (wxFont *) 0 ;
17670 PyObject * obj0 = 0 ;
17671 PyObject * obj1 = 0 ;
17672 char *kwnames[] = {
17673 (char *) "self",(char *) "font", NULL
17674 };
17675
17676 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) goto fail;
17677 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17678 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17679 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17680 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17681 {
17682 PyThreadState* __tstate = wxPyBeginAllowThreads();
17683 (arg1)->AddFont(arg2);
17684
17685 wxPyEndAllowThreads(__tstate);
17686 if (PyErr_Occurred()) SWIG_fail;
17687 }
17688 Py_INCREF(Py_None); resultobj = Py_None;
17689 return resultobj;
17690 fail:
17691 return NULL;
17692}
17693
17694
17695static PyObject *_wrap_FontList_FindOrCreateFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17696 PyObject *resultobj;
17697 wxFontList *arg1 = (wxFontList *) 0 ;
17698 int arg2 ;
17699 int arg3 ;
17700 int arg4 ;
17701 int arg5 ;
17702 bool arg6 = (bool) False ;
17703 wxString const &arg7_defvalue = wxPyEmptyString ;
17704 wxString *arg7 = (wxString *) &arg7_defvalue ;
17705 int arg8 = (int) wxFONTENCODING_DEFAULT ;
17706 wxFont *result;
17707 bool temp7 = False ;
17708 PyObject * obj0 = 0 ;
17709 PyObject * obj1 = 0 ;
17710 PyObject * obj2 = 0 ;
17711 PyObject * obj3 = 0 ;
17712 PyObject * obj4 = 0 ;
17713 PyObject * obj5 = 0 ;
17714 PyObject * obj6 = 0 ;
17715 PyObject * obj7 = 0 ;
17716 char *kwnames[] = {
17717 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
17718 };
17719
17720 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail;
17721 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17722 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17723 arg2 = (int) SWIG_AsInt(obj1);
17724 if (PyErr_Occurred()) SWIG_fail;
17725 arg3 = (int) SWIG_AsInt(obj2);
17726 if (PyErr_Occurred()) SWIG_fail;
17727 arg4 = (int) SWIG_AsInt(obj3);
17728 if (PyErr_Occurred()) SWIG_fail;
17729 arg5 = (int) SWIG_AsInt(obj4);
17730 if (PyErr_Occurred()) SWIG_fail;
17731 if (obj5) {
17732 arg6 = (bool) SWIG_AsBool(obj5);
17733 if (PyErr_Occurred()) SWIG_fail;
17734 }
17735 if (obj6) {
17736 {
17737 arg7 = wxString_in_helper(obj6);
17738 if (arg7 == NULL) SWIG_fail;
17739 temp7 = True;
17740 }
17741 }
17742 if (obj7) {
17743 arg8 = (wxFontEncoding) SWIG_AsInt(obj7);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 {
17747 PyThreadState* __tstate = wxPyBeginAllowThreads();
17748 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,(wxFontEncoding )arg8);
17749
17750 wxPyEndAllowThreads(__tstate);
17751 if (PyErr_Occurred()) SWIG_fail;
17752 }
17753 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxFont, 0);
17754 {
17755 if (temp7)
17756 delete arg7;
17757 }
17758 return resultobj;
17759 fail:
17760 {
17761 if (temp7)
17762 delete arg7;
17763 }
17764 return NULL;
17765}
17766
17767
17768static PyObject *_wrap_FontList_RemoveFont(PyObject *self, PyObject *args, PyObject *kwargs) {
17769 PyObject *resultobj;
17770 wxFontList *arg1 = (wxFontList *) 0 ;
17771 wxFont *arg2 = (wxFont *) 0 ;
17772 PyObject * obj0 = 0 ;
17773 PyObject * obj1 = 0 ;
17774 char *kwnames[] = {
17775 (char *) "self",(char *) "font", NULL
17776 };
17777
17778 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) goto fail;
17779 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17780 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17781 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont,
17782 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17783 {
17784 PyThreadState* __tstate = wxPyBeginAllowThreads();
17785 (arg1)->RemoveFont(arg2);
17786
17787 wxPyEndAllowThreads(__tstate);
17788 if (PyErr_Occurred()) SWIG_fail;
17789 }
17790 Py_INCREF(Py_None); resultobj = Py_None;
17791 return resultobj;
17792 fail:
17793 return NULL;
17794}
17795
17796
17797static PyObject *_wrap_FontList_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) {
17798 PyObject *resultobj;
17799 wxFontList *arg1 = (wxFontList *) 0 ;
17800 int result;
17801 PyObject * obj0 = 0 ;
17802 char *kwnames[] = {
17803 (char *) "self", NULL
17804 };
17805
17806 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontList_GetCount",kwnames,&obj0)) goto fail;
17807 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxFontList,
17808 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17809 {
17810 PyThreadState* __tstate = wxPyBeginAllowThreads();
17811 result = (int)(arg1)->GetCount();
17812
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 resultobj = SWIG_FromInt((int)result);
17817 return resultobj;
17818 fail:
17819 return NULL;
17820}
17821
17822
17823static PyObject * FontList_swigregister(PyObject *self, PyObject *args) {
17824 PyObject *obj;
17825 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
17826 SWIG_TypeClientData(SWIGTYPE_p_wxFontList, obj);
17827 Py_INCREF(obj);
17828 return Py_BuildValue((char *)"");
17829}
17830static int _wrap_TheFontList_set(PyObject *_val) {
17831 PyErr_SetString(PyExc_TypeError,"Variable TheFontList is read-only.");
17832 return 1;
17833}
17834
17835
17836static PyObject *_wrap_TheFontList_get() {
17837 PyObject *pyobj;
17838
17839 pyobj = SWIG_NewPointerObj((void *)(wxTheFontList), SWIGTYPE_p_wxFontList, 0);
17840 return pyobj;
17841}
17842
17843
17844static int _wrap_ThePenList_set(PyObject *_val) {
17845 PyErr_SetString(PyExc_TypeError,"Variable ThePenList is read-only.");
17846 return 1;
17847}
17848
17849
17850static PyObject *_wrap_ThePenList_get() {
17851 PyObject *pyobj;
17852
17853 pyobj = SWIG_NewPointerObj((void *)(wxThePenList), SWIGTYPE_p_wxPenList, 0);
17854 return pyobj;
17855}
17856
17857
17858static int _wrap_TheBrushList_set(PyObject *_val) {
17859 PyErr_SetString(PyExc_TypeError,"Variable TheBrushList is read-only.");
17860 return 1;
17861}
17862
17863
17864static PyObject *_wrap_TheBrushList_get() {
17865 PyObject *pyobj;
17866
17867 pyobj = SWIG_NewPointerObj((void *)(wxTheBrushList), SWIGTYPE_p_wxBrushList, 0);
17868 return pyobj;
17869}
17870
17871
17872static int _wrap_TheColourDatabase_set(PyObject *_val) {
17873 PyErr_SetString(PyExc_TypeError,"Variable TheColourDatabase is read-only.");
17874 return 1;
17875}
17876
17877
17878static PyObject *_wrap_TheColourDatabase_get() {
17879 PyObject *pyobj;
17880
17881 pyobj = SWIG_NewPointerObj((void *)(wxTheColourDatabase), SWIGTYPE_p_wxColourDatabase, 0);
17882 return pyobj;
17883}
17884
17885
17886static PyObject *_wrap_new_Effects(PyObject *self, PyObject *args, PyObject *kwargs) {
17887 PyObject *resultobj;
17888 wxEffects *result;
17889 char *kwnames[] = {
17890 NULL
17891 };
17892
17893 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_Effects",kwnames)) goto fail;
17894 {
17895 PyThreadState* __tstate = wxPyBeginAllowThreads();
17896 result = (wxEffects *)new wxEffects();
17897
17898 wxPyEndAllowThreads(__tstate);
17899 if (PyErr_Occurred()) SWIG_fail;
17900 }
17901 resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxEffects, 1);
17902 return resultobj;
17903 fail:
17904 return NULL;
17905}
17906
17907
17908static PyObject *_wrap_Effects_GetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17909 PyObject *resultobj;
17910 wxEffects *arg1 = (wxEffects *) 0 ;
17911 wxColour result;
17912 PyObject * obj0 = 0 ;
17913 char *kwnames[] = {
17914 (char *) "self", NULL
17915 };
17916
17917 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetHighlightColour",kwnames,&obj0)) goto fail;
17918 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17919 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17920 {
17921 PyThreadState* __tstate = wxPyBeginAllowThreads();
17922 result = ((wxEffects const *)arg1)->GetHighlightColour();
17923
17924 wxPyEndAllowThreads(__tstate);
17925 if (PyErr_Occurred()) SWIG_fail;
17926 }
17927 {
17928 wxColour * resultptr;
17929 resultptr = new wxColour((wxColour &) result);
17930 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17931 }
17932 return resultobj;
17933 fail:
17934 return NULL;
17935}
17936
17937
17938static PyObject *_wrap_Effects_GetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj;
17940 wxEffects *arg1 = (wxEffects *) 0 ;
17941 wxColour result;
17942 PyObject * obj0 = 0 ;
17943 char *kwnames[] = {
17944 (char *) "self", NULL
17945 };
17946
17947 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetLightShadow",kwnames,&obj0)) goto fail;
17948 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17949 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17950 {
17951 PyThreadState* __tstate = wxPyBeginAllowThreads();
17952 result = ((wxEffects const *)arg1)->GetLightShadow();
17953
17954 wxPyEndAllowThreads(__tstate);
17955 if (PyErr_Occurred()) SWIG_fail;
17956 }
17957 {
17958 wxColour * resultptr;
17959 resultptr = new wxColour((wxColour &) result);
17960 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17961 }
17962 return resultobj;
17963 fail:
17964 return NULL;
17965}
17966
17967
17968static PyObject *_wrap_Effects_GetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
17969 PyObject *resultobj;
17970 wxEffects *arg1 = (wxEffects *) 0 ;
17971 wxColour result;
17972 PyObject * obj0 = 0 ;
17973 char *kwnames[] = {
17974 (char *) "self", NULL
17975 };
17976
17977 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetFaceColour",kwnames,&obj0)) goto fail;
17978 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
17979 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
17980 {
17981 PyThreadState* __tstate = wxPyBeginAllowThreads();
17982 result = ((wxEffects const *)arg1)->GetFaceColour();
17983
17984 wxPyEndAllowThreads(__tstate);
17985 if (PyErr_Occurred()) SWIG_fail;
17986 }
17987 {
17988 wxColour * resultptr;
17989 resultptr = new wxColour((wxColour &) result);
17990 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
17991 }
17992 return resultobj;
17993 fail:
17994 return NULL;
17995}
17996
17997
17998static PyObject *_wrap_Effects_GetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
17999 PyObject *resultobj;
18000 wxEffects *arg1 = (wxEffects *) 0 ;
18001 wxColour result;
18002 PyObject * obj0 = 0 ;
18003 char *kwnames[] = {
18004 (char *) "self", NULL
18005 };
18006
18007 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetMediumShadow",kwnames,&obj0)) goto fail;
18008 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18009 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18010 {
18011 PyThreadState* __tstate = wxPyBeginAllowThreads();
18012 result = ((wxEffects const *)arg1)->GetMediumShadow();
18013
18014 wxPyEndAllowThreads(__tstate);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 {
18018 wxColour * resultptr;
18019 resultptr = new wxColour((wxColour &) result);
18020 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18021 }
18022 return resultobj;
18023 fail:
18024 return NULL;
18025}
18026
18027
18028static PyObject *_wrap_Effects_GetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18029 PyObject *resultobj;
18030 wxEffects *arg1 = (wxEffects *) 0 ;
18031 wxColour result;
18032 PyObject * obj0 = 0 ;
18033 char *kwnames[] = {
18034 (char *) "self", NULL
18035 };
18036
18037 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Effects_GetDarkShadow",kwnames,&obj0)) goto fail;
18038 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18039 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18040 {
18041 PyThreadState* __tstate = wxPyBeginAllowThreads();
18042 result = ((wxEffects const *)arg1)->GetDarkShadow();
18043
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 {
18048 wxColour * resultptr;
18049 resultptr = new wxColour((wxColour &) result);
18050 resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1);
18051 }
18052 return resultobj;
18053 fail:
18054 return NULL;
18055}
18056
18057
18058static PyObject *_wrap_Effects_SetHighlightColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18059 PyObject *resultobj;
18060 wxEffects *arg1 = (wxEffects *) 0 ;
18061 wxColour *arg2 = 0 ;
18062 wxColour temp2 ;
18063 PyObject * obj0 = 0 ;
18064 PyObject * obj1 = 0 ;
18065 char *kwnames[] = {
18066 (char *) "self",(char *) "c", NULL
18067 };
18068
18069 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) goto fail;
18070 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18071 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18072 {
18073 arg2 = &temp2;
18074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18075 }
18076 {
18077 PyThreadState* __tstate = wxPyBeginAllowThreads();
18078 (arg1)->SetHighlightColour((wxColour const &)*arg2);
18079
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 Py_INCREF(Py_None); resultobj = Py_None;
18084 return resultobj;
18085 fail:
18086 return NULL;
18087}
18088
18089
18090static PyObject *_wrap_Effects_SetLightShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18091 PyObject *resultobj;
18092 wxEffects *arg1 = (wxEffects *) 0 ;
18093 wxColour *arg2 = 0 ;
18094 wxColour temp2 ;
18095 PyObject * obj0 = 0 ;
18096 PyObject * obj1 = 0 ;
18097 char *kwnames[] = {
18098 (char *) "self",(char *) "c", NULL
18099 };
18100
18101 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) goto fail;
18102 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18103 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18104 {
18105 arg2 = &temp2;
18106 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18107 }
18108 {
18109 PyThreadState* __tstate = wxPyBeginAllowThreads();
18110 (arg1)->SetLightShadow((wxColour const &)*arg2);
18111
18112 wxPyEndAllowThreads(__tstate);
18113 if (PyErr_Occurred()) SWIG_fail;
18114 }
18115 Py_INCREF(Py_None); resultobj = Py_None;
18116 return resultobj;
18117 fail:
18118 return NULL;
18119}
18120
18121
18122static PyObject *_wrap_Effects_SetFaceColour(PyObject *self, PyObject *args, PyObject *kwargs) {
18123 PyObject *resultobj;
18124 wxEffects *arg1 = (wxEffects *) 0 ;
18125 wxColour *arg2 = 0 ;
18126 wxColour temp2 ;
18127 PyObject * obj0 = 0 ;
18128 PyObject * obj1 = 0 ;
18129 char *kwnames[] = {
18130 (char *) "self",(char *) "c", NULL
18131 };
18132
18133 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) goto fail;
18134 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18135 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18136 {
18137 arg2 = &temp2;
18138 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18139 }
18140 {
18141 PyThreadState* __tstate = wxPyBeginAllowThreads();
18142 (arg1)->SetFaceColour((wxColour const &)*arg2);
18143
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 Py_INCREF(Py_None); resultobj = Py_None;
18148 return resultobj;
18149 fail:
18150 return NULL;
18151}
18152
18153
18154static PyObject *_wrap_Effects_SetMediumShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj;
18156 wxEffects *arg1 = (wxEffects *) 0 ;
18157 wxColour *arg2 = 0 ;
18158 wxColour temp2 ;
18159 PyObject * obj0 = 0 ;
18160 PyObject * obj1 = 0 ;
18161 char *kwnames[] = {
18162 (char *) "self",(char *) "c", NULL
18163 };
18164
18165 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) goto fail;
18166 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18167 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18168 {
18169 arg2 = &temp2;
18170 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18171 }
18172 {
18173 PyThreadState* __tstate = wxPyBeginAllowThreads();
18174 (arg1)->SetMediumShadow((wxColour const &)*arg2);
18175
18176 wxPyEndAllowThreads(__tstate);
18177 if (PyErr_Occurred()) SWIG_fail;
18178 }
18179 Py_INCREF(Py_None); resultobj = Py_None;
18180 return resultobj;
18181 fail:
18182 return NULL;
18183}
18184
18185
18186static PyObject *_wrap_Effects_SetDarkShadow(PyObject *self, PyObject *args, PyObject *kwargs) {
18187 PyObject *resultobj;
18188 wxEffects *arg1 = (wxEffects *) 0 ;
18189 wxColour *arg2 = 0 ;
18190 wxColour temp2 ;
18191 PyObject * obj0 = 0 ;
18192 PyObject * obj1 = 0 ;
18193 char *kwnames[] = {
18194 (char *) "self",(char *) "c", NULL
18195 };
18196
18197 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) goto fail;
18198 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18199 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18200 {
18201 arg2 = &temp2;
18202 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18203 }
18204 {
18205 PyThreadState* __tstate = wxPyBeginAllowThreads();
18206 (arg1)->SetDarkShadow((wxColour const &)*arg2);
18207
18208 wxPyEndAllowThreads(__tstate);
18209 if (PyErr_Occurred()) SWIG_fail;
18210 }
18211 Py_INCREF(Py_None); resultobj = Py_None;
18212 return resultobj;
18213 fail:
18214 return NULL;
18215}
18216
18217
18218static PyObject *_wrap_Effects_Set(PyObject *self, PyObject *args, PyObject *kwargs) {
18219 PyObject *resultobj;
18220 wxEffects *arg1 = (wxEffects *) 0 ;
18221 wxColour *arg2 = 0 ;
18222 wxColour *arg3 = 0 ;
18223 wxColour *arg4 = 0 ;
18224 wxColour *arg5 = 0 ;
18225 wxColour *arg6 = 0 ;
18226 wxColour temp2 ;
18227 wxColour temp3 ;
18228 wxColour temp4 ;
18229 wxColour temp5 ;
18230 wxColour temp6 ;
18231 PyObject * obj0 = 0 ;
18232 PyObject * obj1 = 0 ;
18233 PyObject * obj2 = 0 ;
18234 PyObject * obj3 = 0 ;
18235 PyObject * obj4 = 0 ;
18236 PyObject * obj5 = 0 ;
18237 char *kwnames[] = {
18238 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
18239 };
18240
18241 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail;
18242 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18243 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18244 {
18245 arg2 = &temp2;
18246 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18247 }
18248 {
18249 arg3 = &temp3;
18250 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18251 }
18252 {
18253 arg4 = &temp4;
18254 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18255 }
18256 {
18257 arg5 = &temp5;
18258 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
18259 }
18260 {
18261 arg6 = &temp6;
18262 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
18263 }
18264 {
18265 PyThreadState* __tstate = wxPyBeginAllowThreads();
18266 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
18267
18268 wxPyEndAllowThreads(__tstate);
18269 if (PyErr_Occurred()) SWIG_fail;
18270 }
18271 Py_INCREF(Py_None); resultobj = Py_None;
18272 return resultobj;
18273 fail:
18274 return NULL;
18275}
18276
18277
18278static PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *self, PyObject *args, PyObject *kwargs) {
18279 PyObject *resultobj;
18280 wxEffects *arg1 = (wxEffects *) 0 ;
18281 wxDC *arg2 = 0 ;
18282 wxRect *arg3 = 0 ;
18283 int arg4 = (int) 1 ;
18284 wxRect temp3 ;
18285 PyObject * obj0 = 0 ;
18286 PyObject * obj1 = 0 ;
18287 PyObject * obj2 = 0 ;
18288 PyObject * obj3 = 0 ;
18289 char *kwnames[] = {
18290 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
18291 };
18292
18293 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18294 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18295 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18296 if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC,
18297 SWIG_POINTER_EXCEPTION | 0)) == -1)
18298 SWIG_fail;
18299 if (arg2 == NULL) {
18300 PyErr_SetString(PyExc_TypeError,"null reference");
18301 SWIG_fail;
18302 }
18303 {
18304 arg3 = &temp3;
18305 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
18306 }
18307 if (obj3) {
18308 arg4 = (int) SWIG_AsInt(obj3);
18309 if (PyErr_Occurred()) SWIG_fail;
18310 }
18311 {
18312 PyThreadState* __tstate = wxPyBeginAllowThreads();
18313 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
18314
18315 wxPyEndAllowThreads(__tstate);
18316 if (PyErr_Occurred()) SWIG_fail;
18317 }
18318 Py_INCREF(Py_None); resultobj = Py_None;
18319 return resultobj;
18320 fail:
18321 return NULL;
18322}
18323
18324
18325static PyObject *_wrap_Effects_TileBitmap(PyObject *self, PyObject *args, PyObject *kwargs) {
18326 PyObject *resultobj;
18327 wxEffects *arg1 = (wxEffects *) 0 ;
18328 wxRect *arg2 = 0 ;
18329 wxDC *arg3 = 0 ;
18330 wxBitmap *arg4 = 0 ;
18331 bool result;
18332 wxRect temp2 ;
18333 PyObject * obj0 = 0 ;
18334 PyObject * obj1 = 0 ;
18335 PyObject * obj2 = 0 ;
18336 PyObject * obj3 = 0 ;
18337 char *kwnames[] = {
18338 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
18339 };
18340
18341 if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail;
18342 if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxEffects,
18343 SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
18344 {
18345 arg2 = &temp2;
18346 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18347 }
18348 if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxDC,
18349 SWIG_POINTER_EXCEPTION | 0)) == -1)
18350 SWIG_fail;
18351 if (arg3 == NULL) {
18352 PyErr_SetString(PyExc_TypeError,"null reference");
18353 SWIG_fail;
18354 }
18355 if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap,
18356 SWIG_POINTER_EXCEPTION | 0)) == -1)
18357 SWIG_fail;
18358 if (arg4 == NULL) {
18359 PyErr_SetString(PyExc_TypeError,"null reference");
18360 SWIG_fail;
18361 }
18362 {
18363 PyThreadState* __tstate = wxPyBeginAllowThreads();
18364 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
18365
18366 wxPyEndAllowThreads(__tstate);
18367 if (PyErr_Occurred()) SWIG_fail;
18368 }
18369 {
18370 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18371 }
18372 return resultobj;
18373 fail:
18374 return NULL;
18375}
18376
18377
18378static PyObject * Effects_swigregister(PyObject *self, PyObject *args) {
18379 PyObject *obj;
18380 if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
18381 SWIG_TypeClientData(SWIGTYPE_p_wxEffects, obj);
18382 Py_INCREF(obj);
18383 return Py_BuildValue((char *)"");
18384}
18385static PyMethodDef SwigMethods[] = {
18386 { (char *)"new_GDIObject", (PyCFunction) _wrap_new_GDIObject, METH_VARARGS | METH_KEYWORDS },
18387 { (char *)"delete_GDIObject", (PyCFunction) _wrap_delete_GDIObject, METH_VARARGS | METH_KEYWORDS },
18388 { (char *)"GDIObject_GetVisible", (PyCFunction) _wrap_GDIObject_GetVisible, METH_VARARGS | METH_KEYWORDS },
18389 { (char *)"GDIObject_SetVisible", (PyCFunction) _wrap_GDIObject_SetVisible, METH_VARARGS | METH_KEYWORDS },
18390 { (char *)"GDIObject_IsNull", (PyCFunction) _wrap_GDIObject_IsNull, METH_VARARGS | METH_KEYWORDS },
18391 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS },
18392 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS },
18393 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS },
18394 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS },
18395 { (char *)"delete_Colour", (PyCFunction) _wrap_delete_Colour, METH_VARARGS | METH_KEYWORDS },
18396 { (char *)"Colour_Red", (PyCFunction) _wrap_Colour_Red, METH_VARARGS | METH_KEYWORDS },
18397 { (char *)"Colour_Green", (PyCFunction) _wrap_Colour_Green, METH_VARARGS | METH_KEYWORDS },
18398 { (char *)"Colour_Blue", (PyCFunction) _wrap_Colour_Blue, METH_VARARGS | METH_KEYWORDS },
18399 { (char *)"Colour_Ok", (PyCFunction) _wrap_Colour_Ok, METH_VARARGS | METH_KEYWORDS },
18400 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS },
18401 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS },
18402 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS },
18403 { (char *)"Colour_GetPixel", (PyCFunction) _wrap_Colour_GetPixel, METH_VARARGS | METH_KEYWORDS },
18404 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS },
18405 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS },
18406 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS },
18407 { (char *)"Colour_GetRGB", (PyCFunction) _wrap_Colour_GetRGB, METH_VARARGS | METH_KEYWORDS },
18408 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS },
18409 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS },
18410 { (char *)"delete_Palette", (PyCFunction) _wrap_delete_Palette, METH_VARARGS | METH_KEYWORDS },
18411 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS },
18412 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS },
18413 { (char *)"Palette_Ok", (PyCFunction) _wrap_Palette_Ok, METH_VARARGS | METH_KEYWORDS },
18414 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS },
18415 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS },
18416 { (char *)"delete_Pen", (PyCFunction) _wrap_delete_Pen, METH_VARARGS | METH_KEYWORDS },
18417 { (char *)"Pen_GetCap", (PyCFunction) _wrap_Pen_GetCap, METH_VARARGS | METH_KEYWORDS },
18418 { (char *)"Pen_GetColour", (PyCFunction) _wrap_Pen_GetColour, METH_VARARGS | METH_KEYWORDS },
18419 { (char *)"Pen_GetJoin", (PyCFunction) _wrap_Pen_GetJoin, METH_VARARGS | METH_KEYWORDS },
18420 { (char *)"Pen_GetStyle", (PyCFunction) _wrap_Pen_GetStyle, METH_VARARGS | METH_KEYWORDS },
18421 { (char *)"Pen_GetWidth", (PyCFunction) _wrap_Pen_GetWidth, METH_VARARGS | METH_KEYWORDS },
18422 { (char *)"Pen_Ok", (PyCFunction) _wrap_Pen_Ok, METH_VARARGS | METH_KEYWORDS },
18423 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS },
18424 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS },
18425 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS },
18426 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS },
18427 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS },
18428 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS },
18429 { (char *)"Pen_GetDashes", (PyCFunction) _wrap_Pen_GetDashes, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18430 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18431 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS },
18432 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS },
18433 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS },
d55e5bfc
RD
18434 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS },
18435 { (char *)"delete_Brush", (PyCFunction) _wrap_delete_Brush, METH_VARARGS | METH_KEYWORDS },
18436 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS },
18437 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS },
18438 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS },
18439 { (char *)"Brush_GetColour", (PyCFunction) _wrap_Brush_GetColour, METH_VARARGS | METH_KEYWORDS },
18440 { (char *)"Brush_GetStyle", (PyCFunction) _wrap_Brush_GetStyle, METH_VARARGS | METH_KEYWORDS },
18441 { (char *)"Brush_GetStipple", (PyCFunction) _wrap_Brush_GetStipple, METH_VARARGS | METH_KEYWORDS },
18442 { (char *)"Brush_Ok", (PyCFunction) _wrap_Brush_Ok, METH_VARARGS | METH_KEYWORDS },
18443 { (char *)"Brush_MacGetTheme", (PyCFunction) _wrap_Brush_MacGetTheme, METH_VARARGS | METH_KEYWORDS },
18444 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS },
18445 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS },
18446 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS },
18447 { (char *)"delete_Bitmap", (PyCFunction) _wrap_delete_Bitmap, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18448 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18449 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS },
18450 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS },
18451 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS },
18452 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18453 { (char *)"Bitmap_Ok", (PyCFunction) _wrap_Bitmap_Ok, METH_VARARGS | METH_KEYWORDS },
18454 { (char *)"Bitmap_GetWidth", (PyCFunction) _wrap_Bitmap_GetWidth, METH_VARARGS | METH_KEYWORDS },
18455 { (char *)"Bitmap_GetHeight", (PyCFunction) _wrap_Bitmap_GetHeight, METH_VARARGS | METH_KEYWORDS },
18456 { (char *)"Bitmap_GetDepth", (PyCFunction) _wrap_Bitmap_GetDepth, METH_VARARGS | METH_KEYWORDS },
18457 { (char *)"Bitmap_GetSize", (PyCFunction) _wrap_Bitmap_GetSize, METH_VARARGS | METH_KEYWORDS },
18458 { (char *)"Bitmap_ConvertToImage", (PyCFunction) _wrap_Bitmap_ConvertToImage, METH_VARARGS | METH_KEYWORDS },
18459 { (char *)"Bitmap_GetMask", (PyCFunction) _wrap_Bitmap_GetMask, METH_VARARGS | METH_KEYWORDS },
18460 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS },
18461 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
18462 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS },
18463 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS },
18464 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS },
18465 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS },
18466 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS },
18467 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS },
18468 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS },
18469 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS },
18470 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS },
18471 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS },
18472 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS },
18473 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS },
18474 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS },
18475 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS },
18476 { (char *)"delete_Icon", (PyCFunction) _wrap_delete_Icon, METH_VARARGS | METH_KEYWORDS },
18477 { (char *)"new_EmptyIcon", (PyCFunction) _wrap_new_EmptyIcon, METH_VARARGS | METH_KEYWORDS },
18478 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS },
18479 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS },
18480 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS },
18481 { (char *)"Icon_Ok", (PyCFunction) _wrap_Icon_Ok, METH_VARARGS | METH_KEYWORDS },
18482 { (char *)"Icon_GetWidth", (PyCFunction) _wrap_Icon_GetWidth, METH_VARARGS | METH_KEYWORDS },
18483 { (char *)"Icon_GetHeight", (PyCFunction) _wrap_Icon_GetHeight, METH_VARARGS | METH_KEYWORDS },
18484 { (char *)"Icon_GetDepth", (PyCFunction) _wrap_Icon_GetDepth, METH_VARARGS | METH_KEYWORDS },
18485 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS },
18486 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS },
18487 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS },
18488 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS },
18489 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS },
18490 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS },
18491 { (char *)"delete_IconLocation", (PyCFunction) _wrap_delete_IconLocation, METH_VARARGS | METH_KEYWORDS },
18492 { (char *)"IconLocation_IsOk", (PyCFunction) _wrap_IconLocation_IsOk, METH_VARARGS | METH_KEYWORDS },
18493 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS },
18494 { (char *)"IconLocation_GetFileName", (PyCFunction) _wrap_IconLocation_GetFileName, METH_VARARGS | METH_KEYWORDS },
18495 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS },
18496 { (char *)"IconLocation_GetIndex", (PyCFunction) _wrap_IconLocation_GetIndex, METH_VARARGS | METH_KEYWORDS },
18497 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS },
18498 { (char *)"new_IconBundle", (PyCFunction) _wrap_new_IconBundle, METH_VARARGS | METH_KEYWORDS },
18499 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS },
18500 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS },
18501 { (char *)"delete_IconBundle", (PyCFunction) _wrap_delete_IconBundle, METH_VARARGS | METH_KEYWORDS },
18502 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS },
18503 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS },
18504 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS },
18505 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS },
18506 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS },
18507 { (char *)"delete_Cursor", (PyCFunction) _wrap_delete_Cursor, METH_VARARGS | METH_KEYWORDS },
18508 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS },
18509 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS },
18510 { (char *)"Cursor_Ok", (PyCFunction) _wrap_Cursor_Ok, METH_VARARGS | METH_KEYWORDS },
18511 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS },
18512 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS },
18513 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS },
d07096ad 18514 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18515 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS },
18516 { (char *)"delete_Region", (PyCFunction) _wrap_delete_Region, METH_VARARGS | METH_KEYWORDS },
18517 { (char *)"Region_Clear", (PyCFunction) _wrap_Region_Clear, METH_VARARGS | METH_KEYWORDS },
18518 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS },
18519 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS },
18520 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS },
18521 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS },
18522 { (char *)"Region_GetBox", (PyCFunction) _wrap_Region_GetBox, METH_VARARGS | METH_KEYWORDS },
18523 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS },
18524 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS },
18525 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS },
18526 { (char *)"Region_IsEmpty", (PyCFunction) _wrap_Region_IsEmpty, METH_VARARGS | METH_KEYWORDS },
18527 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS },
18528 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS },
18529 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS },
18530 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS },
18531 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS },
18532 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS },
18533 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS },
18534 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS },
18535 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS },
18536 { (char *)"Region_ConvertToBitmap", (PyCFunction) _wrap_Region_ConvertToBitmap, METH_VARARGS | METH_KEYWORDS },
18537 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS },
d07096ad 18538 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18539 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS },
18540 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18541 { (char *)"delete_RegionIterator", (PyCFunction) _wrap_delete_RegionIterator, METH_VARARGS | METH_KEYWORDS },
18542 { (char *)"RegionIterator_GetX", (PyCFunction) _wrap_RegionIterator_GetX, METH_VARARGS | METH_KEYWORDS },
18543 { (char *)"RegionIterator_GetY", (PyCFunction) _wrap_RegionIterator_GetY, METH_VARARGS | METH_KEYWORDS },
18544 { (char *)"RegionIterator_GetW", (PyCFunction) _wrap_RegionIterator_GetW, METH_VARARGS | METH_KEYWORDS },
18545 { (char *)"RegionIterator_GetWidth", (PyCFunction) _wrap_RegionIterator_GetWidth, METH_VARARGS | METH_KEYWORDS },
18546 { (char *)"RegionIterator_GetH", (PyCFunction) _wrap_RegionIterator_GetH, METH_VARARGS | METH_KEYWORDS },
18547 { (char *)"RegionIterator_GetHeight", (PyCFunction) _wrap_RegionIterator_GetHeight, METH_VARARGS | METH_KEYWORDS },
18548 { (char *)"RegionIterator_GetRect", (PyCFunction) _wrap_RegionIterator_GetRect, METH_VARARGS | METH_KEYWORDS },
18549 { (char *)"RegionIterator_HaveRects", (PyCFunction) _wrap_RegionIterator_HaveRects, METH_VARARGS | METH_KEYWORDS },
18550 { (char *)"RegionIterator_Reset", (PyCFunction) _wrap_RegionIterator_Reset, METH_VARARGS | METH_KEYWORDS },
18551 { (char *)"RegionIterator_Next", (PyCFunction) _wrap_RegionIterator_Next, METH_VARARGS | METH_KEYWORDS },
18552 { (char *)"RegionIterator___nonzero__", (PyCFunction) _wrap_RegionIterator___nonzero__, METH_VARARGS | METH_KEYWORDS },
18553 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS },
18554 { (char *)"new_NativeFontInfo", (PyCFunction) _wrap_new_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18555 { (char *)"delete_NativeFontInfo", (PyCFunction) _wrap_delete_NativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18556 { (char *)"NativeFontInfo_Init", (PyCFunction) _wrap_NativeFontInfo_Init, METH_VARARGS | METH_KEYWORDS },
18557 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS },
18558 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction) _wrap_NativeFontInfo_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18559 { (char *)"NativeFontInfo_GetStyle", (PyCFunction) _wrap_NativeFontInfo_GetStyle, METH_VARARGS | METH_KEYWORDS },
18560 { (char *)"NativeFontInfo_GetWeight", (PyCFunction) _wrap_NativeFontInfo_GetWeight, METH_VARARGS | METH_KEYWORDS },
18561 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction) _wrap_NativeFontInfo_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18562 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction) _wrap_NativeFontInfo_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18563 { (char *)"NativeFontInfo_GetFamily", (PyCFunction) _wrap_NativeFontInfo_GetFamily, METH_VARARGS | METH_KEYWORDS },
18564 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction) _wrap_NativeFontInfo_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18565 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18566 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS },
18567 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS },
18568 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18569 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18570 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS },
18571 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18572 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18573 { (char *)"NativeFontInfo_ToString", (PyCFunction) _wrap_NativeFontInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18574 { (char *)"NativeFontInfo___str__", (PyCFunction) _wrap_NativeFontInfo___str__, METH_VARARGS | METH_KEYWORDS },
18575 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS },
18576 { (char *)"NativeFontInfo_ToUserString", (PyCFunction) _wrap_NativeFontInfo_ToUserString, METH_VARARGS | METH_KEYWORDS },
18577 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS },
18578 { (char *)"NativeEncodingInfo_facename_set", (PyCFunction) _wrap_NativeEncodingInfo_facename_set, METH_VARARGS | METH_KEYWORDS },
18579 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction) _wrap_NativeEncodingInfo_facename_get, METH_VARARGS | METH_KEYWORDS },
18580 { (char *)"NativeEncodingInfo_encoding_set", (PyCFunction) _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS | METH_KEYWORDS },
18581 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction) _wrap_NativeEncodingInfo_encoding_get, METH_VARARGS | METH_KEYWORDS },
18582 { (char *)"new_NativeEncodingInfo", (PyCFunction) _wrap_new_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18583 { (char *)"delete_NativeEncodingInfo", (PyCFunction) _wrap_delete_NativeEncodingInfo, METH_VARARGS | METH_KEYWORDS },
18584 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS },
18585 { (char *)"NativeEncodingInfo_ToString", (PyCFunction) _wrap_NativeEncodingInfo_ToString, METH_VARARGS | METH_KEYWORDS },
18586 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS },
18587 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS },
18588 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS },
18589 { (char *)"new_FontMapper", (PyCFunction) _wrap_new_FontMapper, METH_VARARGS | METH_KEYWORDS },
18590 { (char *)"delete_FontMapper", (PyCFunction) _wrap_delete_FontMapper, METH_VARARGS | METH_KEYWORDS },
18591 { (char *)"FontMapper_Get", (PyCFunction) _wrap_FontMapper_Get, METH_VARARGS | METH_KEYWORDS },
18592 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS },
18593 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS },
18594 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction) _wrap_FontMapper_GetSupportedEncodingsCount, METH_VARARGS | METH_KEYWORDS },
18595 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18596 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS },
18597 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS },
18598 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS },
18599 { (char *)"FontMapper_SetConfig", (PyCFunction) _wrap_FontMapper_SetConfig, METH_VARARGS | METH_KEYWORDS },
18600 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS },
18601 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction) _wrap_FontMapper_GetDefaultConfigPath, METH_VARARGS | METH_KEYWORDS },
18602 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS },
18603 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS },
18604 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS },
18605 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS },
18606 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS },
18607 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS },
18608 { (char *)"delete_Font", (PyCFunction) _wrap_delete_Font, METH_VARARGS | METH_KEYWORDS },
18609 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS },
18610 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS },
18611 { (char *)"new_Font2", (PyCFunction) _wrap_new_Font2, METH_VARARGS | METH_KEYWORDS },
18612 { (char *)"Font_Ok", (PyCFunction) _wrap_Font_Ok, METH_VARARGS | METH_KEYWORDS },
18613 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS },
18614 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS },
18615 { (char *)"Font_GetPointSize", (PyCFunction) _wrap_Font_GetPointSize, METH_VARARGS | METH_KEYWORDS },
18616 { (char *)"Font_GetFamily", (PyCFunction) _wrap_Font_GetFamily, METH_VARARGS | METH_KEYWORDS },
18617 { (char *)"Font_GetStyle", (PyCFunction) _wrap_Font_GetStyle, METH_VARARGS | METH_KEYWORDS },
18618 { (char *)"Font_GetWeight", (PyCFunction) _wrap_Font_GetWeight, METH_VARARGS | METH_KEYWORDS },
18619 { (char *)"Font_GetUnderlined", (PyCFunction) _wrap_Font_GetUnderlined, METH_VARARGS | METH_KEYWORDS },
18620 { (char *)"Font_GetFaceName", (PyCFunction) _wrap_Font_GetFaceName, METH_VARARGS | METH_KEYWORDS },
18621 { (char *)"Font_GetEncoding", (PyCFunction) _wrap_Font_GetEncoding, METH_VARARGS | METH_KEYWORDS },
18622 { (char *)"Font_GetNativeFontInfo", (PyCFunction) _wrap_Font_GetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18623 { (char *)"Font_IsFixedWidth", (PyCFunction) _wrap_Font_IsFixedWidth, METH_VARARGS | METH_KEYWORDS },
18624 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoDesc, METH_VARARGS | METH_KEYWORDS },
18625 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_GetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18626 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS },
18627 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS },
18628 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS },
18629 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS },
18630 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS },
18631 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS },
18632 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS },
18633 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS },
18634 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS },
18635 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS },
18636 { (char *)"Font_GetFamilyString", (PyCFunction) _wrap_Font_GetFamilyString, METH_VARARGS | METH_KEYWORDS },
18637 { (char *)"Font_GetStyleString", (PyCFunction) _wrap_Font_GetStyleString, METH_VARARGS | METH_KEYWORDS },
18638 { (char *)"Font_GetWeightString", (PyCFunction) _wrap_Font_GetWeightString, METH_VARARGS | METH_KEYWORDS },
18639 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18640 { (char *)"Font_GetNoAntiAliasing", (PyCFunction) _wrap_Font_GetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS },
18641 { (char *)"Font_GetDefaultEncoding", (PyCFunction) _wrap_Font_GetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18642 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS },
18643 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS },
18644 { (char *)"new_FontEnumerator", (PyCFunction) _wrap_new_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18645 { (char *)"delete_FontEnumerator", (PyCFunction) _wrap_delete_FontEnumerator, METH_VARARGS | METH_KEYWORDS },
18646 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS },
18647 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS },
18648 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS },
18649 { (char *)"FontEnumerator_GetEncodings", (PyCFunction) _wrap_FontEnumerator_GetEncodings, METH_VARARGS | METH_KEYWORDS },
18650 { (char *)"FontEnumerator_GetFacenames", (PyCFunction) _wrap_FontEnumerator_GetFacenames, METH_VARARGS | METH_KEYWORDS },
18651 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS },
18652 { (char *)"LanguageInfo_Language_set", (PyCFunction) _wrap_LanguageInfo_Language_set, METH_VARARGS | METH_KEYWORDS },
18653 { (char *)"LanguageInfo_Language_get", (PyCFunction) _wrap_LanguageInfo_Language_get, METH_VARARGS | METH_KEYWORDS },
18654 { (char *)"LanguageInfo_CanonicalName_set", (PyCFunction) _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS | METH_KEYWORDS },
18655 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction) _wrap_LanguageInfo_CanonicalName_get, METH_VARARGS | METH_KEYWORDS },
18656 { (char *)"LanguageInfo_Description_set", (PyCFunction) _wrap_LanguageInfo_Description_set, METH_VARARGS | METH_KEYWORDS },
18657 { (char *)"LanguageInfo_Description_get", (PyCFunction) _wrap_LanguageInfo_Description_get, METH_VARARGS | METH_KEYWORDS },
18658 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS },
18659 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS },
18660 { (char *)"delete_Locale", (PyCFunction) _wrap_delete_Locale, METH_VARARGS | METH_KEYWORDS },
18661 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS },
18662 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS },
18663 { (char *)"Locale_GetSystemLanguage", (PyCFunction) _wrap_Locale_GetSystemLanguage, METH_VARARGS | METH_KEYWORDS },
18664 { (char *)"Locale_GetSystemEncoding", (PyCFunction) _wrap_Locale_GetSystemEncoding, METH_VARARGS | METH_KEYWORDS },
18665 { (char *)"Locale_GetSystemEncodingName", (PyCFunction) _wrap_Locale_GetSystemEncodingName, METH_VARARGS | METH_KEYWORDS },
18666 { (char *)"Locale_IsOk", (PyCFunction) _wrap_Locale_IsOk, METH_VARARGS | METH_KEYWORDS },
18667 { (char *)"Locale_GetLocale", (PyCFunction) _wrap_Locale_GetLocale, METH_VARARGS | METH_KEYWORDS },
18668 { (char *)"Locale_GetLanguage", (PyCFunction) _wrap_Locale_GetLanguage, METH_VARARGS | METH_KEYWORDS },
18669 { (char *)"Locale_GetSysName", (PyCFunction) _wrap_Locale_GetSysName, METH_VARARGS | METH_KEYWORDS },
18670 { (char *)"Locale_GetCanonicalName", (PyCFunction) _wrap_Locale_GetCanonicalName, METH_VARARGS | METH_KEYWORDS },
18671 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS },
18672 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS },
18673 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS },
18674 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18675 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS },
18676 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS },
18677 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS },
18678 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS },
18679 { (char *)"Locale_GetName", (PyCFunction) _wrap_Locale_GetName, METH_VARARGS | METH_KEYWORDS },
18680 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS },
18681 { (char *)"GetLocale", (PyCFunction) _wrap_GetLocale, METH_VARARGS | METH_KEYWORDS },
18682 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS },
18683 { (char *)"new_EncodingConverter", (PyCFunction) _wrap_new_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18684 { (char *)"delete_EncodingConverter", (PyCFunction) _wrap_delete_EncodingConverter, METH_VARARGS | METH_KEYWORDS },
18685 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS },
18686 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS },
18687 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS },
18688 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS },
18689 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS },
18690 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS },
18691 { (char *)"delete_DC", (PyCFunction) _wrap_delete_DC, METH_VARARGS | METH_KEYWORDS },
18692 { (char *)"DC_BeginDrawing", (PyCFunction) _wrap_DC_BeginDrawing, METH_VARARGS | METH_KEYWORDS },
18693 { (char *)"DC_EndDrawing", (PyCFunction) _wrap_DC_EndDrawing, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18694 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18695 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18696 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18697 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18698 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18699 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18700 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18701 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18702 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18703 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18704 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18705 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18706 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18707 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18708 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18709 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18710 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS },
18711 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18712 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18713 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS },
18714 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18715 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18716 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18717 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18718 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS },
18719 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18720 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18721 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18722 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18723 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18724 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18725 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18726 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18727 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18728 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc 18729 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS },
d6c14a4c
RD
18730 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS },
18731 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS },
18732 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS },
18733 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS },
18734 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18735 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS },
18736 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS },
18737 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS },
18738 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS },
18739 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS },
18740 { (char *)"DC_Clear", (PyCFunction) _wrap_DC_Clear, METH_VARARGS | METH_KEYWORDS },
18741 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS },
18742 { (char *)"DC_EndDoc", (PyCFunction) _wrap_DC_EndDoc, METH_VARARGS | METH_KEYWORDS },
18743 { (char *)"DC_StartPage", (PyCFunction) _wrap_DC_StartPage, METH_VARARGS | METH_KEYWORDS },
18744 { (char *)"DC_EndPage", (PyCFunction) _wrap_DC_EndPage, METH_VARARGS | METH_KEYWORDS },
18745 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS },
18746 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS },
18747 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS },
18748 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS },
18749 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18750 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18751 { (char *)"DC_DestroyClippingRegion", (PyCFunction) _wrap_DC_DestroyClippingRegion, METH_VARARGS | METH_KEYWORDS },
18752 { (char *)"DC_GetClippingBox", (PyCFunction) _wrap_DC_GetClippingBox, METH_VARARGS | METH_KEYWORDS },
18753 { (char *)"DC_GetClippingRect", (PyCFunction) _wrap_DC_GetClippingRect, METH_VARARGS | METH_KEYWORDS },
18754 { (char *)"DC_GetCharHeight", (PyCFunction) _wrap_DC_GetCharHeight, METH_VARARGS | METH_KEYWORDS },
18755 { (char *)"DC_GetCharWidth", (PyCFunction) _wrap_DC_GetCharWidth, METH_VARARGS | METH_KEYWORDS },
18756 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS },
18757 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS },
18758 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS },
18759 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS },
18760 { (char *)"DC_GetSize", (PyCFunction) _wrap_DC_GetSize, METH_VARARGS | METH_KEYWORDS },
18761 { (char *)"DC_GetSizeTuple", (PyCFunction) _wrap_DC_GetSizeTuple, METH_VARARGS | METH_KEYWORDS },
18762 { (char *)"DC_GetSizeMM", (PyCFunction) _wrap_DC_GetSizeMM, METH_VARARGS | METH_KEYWORDS },
18763 { (char *)"DC_GetSizeMMTuple", (PyCFunction) _wrap_DC_GetSizeMMTuple, METH_VARARGS | METH_KEYWORDS },
18764 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS },
18765 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS },
18766 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS },
18767 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS },
18768 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS },
18769 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS },
18770 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS },
18771 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS },
18772 { (char *)"DC_CanDrawBitmap", (PyCFunction) _wrap_DC_CanDrawBitmap, METH_VARARGS | METH_KEYWORDS },
18773 { (char *)"DC_CanGetTextExtent", (PyCFunction) _wrap_DC_CanGetTextExtent, METH_VARARGS | METH_KEYWORDS },
18774 { (char *)"DC_GetDepth", (PyCFunction) _wrap_DC_GetDepth, METH_VARARGS | METH_KEYWORDS },
18775 { (char *)"DC_GetPPI", (PyCFunction) _wrap_DC_GetPPI, METH_VARARGS | METH_KEYWORDS },
18776 { (char *)"DC_Ok", (PyCFunction) _wrap_DC_Ok, METH_VARARGS | METH_KEYWORDS },
18777 { (char *)"DC_GetBackgroundMode", (PyCFunction) _wrap_DC_GetBackgroundMode, METH_VARARGS | METH_KEYWORDS },
18778 { (char *)"DC_GetBackground", (PyCFunction) _wrap_DC_GetBackground, METH_VARARGS | METH_KEYWORDS },
18779 { (char *)"DC_GetBrush", (PyCFunction) _wrap_DC_GetBrush, METH_VARARGS | METH_KEYWORDS },
18780 { (char *)"DC_GetFont", (PyCFunction) _wrap_DC_GetFont, METH_VARARGS | METH_KEYWORDS },
18781 { (char *)"DC_GetPen", (PyCFunction) _wrap_DC_GetPen, METH_VARARGS | METH_KEYWORDS },
18782 { (char *)"DC_GetTextBackground", (PyCFunction) _wrap_DC_GetTextBackground, METH_VARARGS | METH_KEYWORDS },
18783 { (char *)"DC_GetTextForeground", (PyCFunction) _wrap_DC_GetTextForeground, METH_VARARGS | METH_KEYWORDS },
18784 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS },
18785 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS },
18786 { (char *)"DC_GetMapMode", (PyCFunction) _wrap_DC_GetMapMode, METH_VARARGS | METH_KEYWORDS },
18787 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS },
18788 { (char *)"DC_GetUserScale", (PyCFunction) _wrap_DC_GetUserScale, METH_VARARGS | METH_KEYWORDS },
18789 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS },
18790 { (char *)"DC_GetLogicalScale", (PyCFunction) _wrap_DC_GetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18791 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS },
18792 { (char *)"DC_GetLogicalOrigin", (PyCFunction) _wrap_DC_GetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
18793 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction) _wrap_DC_GetLogicalOriginTuple, METH_VARARGS | METH_KEYWORDS },
18794 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18795 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18796 { (char *)"DC_GetDeviceOrigin", (PyCFunction) _wrap_DC_GetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
18797 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction) _wrap_DC_GetDeviceOriginTuple, METH_VARARGS | METH_KEYWORDS },
18798 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18799 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18800 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS },
18801 { (char *)"DC_GetLogicalFunction", (PyCFunction) _wrap_DC_GetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18802 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS },
18803 { (char *)"DC_SetOptimization", (PyCFunction) _wrap_DC_SetOptimization, METH_VARARGS | METH_KEYWORDS },
18804 { (char *)"DC_GetOptimization", (PyCFunction) _wrap_DC_GetOptimization, METH_VARARGS | METH_KEYWORDS },
18805 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS },
d6c14a4c 18806 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS },
d55e5bfc
RD
18807 { (char *)"DC_ResetBoundingBox", (PyCFunction) _wrap_DC_ResetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18808 { (char *)"DC_MinX", (PyCFunction) _wrap_DC_MinX, METH_VARARGS | METH_KEYWORDS },
18809 { (char *)"DC_MaxX", (PyCFunction) _wrap_DC_MaxX, METH_VARARGS | METH_KEYWORDS },
18810 { (char *)"DC_MinY", (PyCFunction) _wrap_DC_MinY, METH_VARARGS | METH_KEYWORDS },
18811 { (char *)"DC_MaxY", (PyCFunction) _wrap_DC_MaxY, METH_VARARGS | METH_KEYWORDS },
18812 { (char *)"DC_GetBoundingBox", (PyCFunction) _wrap_DC_GetBoundingBox, METH_VARARGS | METH_KEYWORDS },
18813 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS },
18814 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS },
18815 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS },
18816 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS },
18817 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS },
18818 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS },
18819 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS },
18820 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS },
18821 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
18822 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS },
18823 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS },
18824 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS },
18825 { (char *)"new_BufferedDCInternalBuffer", _wrap_new_BufferedDCInternalBuffer, METH_VARARGS },
18826 { (char *)"delete_BufferedDC", (PyCFunction) _wrap_delete_BufferedDC, METH_VARARGS | METH_KEYWORDS },
18827 { (char *)"BufferedDC_UnMask", (PyCFunction) _wrap_BufferedDC_UnMask, METH_VARARGS | METH_KEYWORDS },
18828 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS },
18829 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS },
18830 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS },
18831 { (char *)"new_ScreenDC", (PyCFunction) _wrap_new_ScreenDC, METH_VARARGS | METH_KEYWORDS },
18832 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS },
18833 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18834 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction) _wrap_ScreenDC_EndDrawingOnTop, METH_VARARGS | METH_KEYWORDS },
18835 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS },
18836 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS },
18837 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS },
18838 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS },
18839 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS },
18840 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS },
18841 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS },
18842 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS },
18843 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS },
18844 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS },
18845 { (char *)"PostScriptDC_GetPrintData", (PyCFunction) _wrap_PostScriptDC_GetPrintData, METH_VARARGS | METH_KEYWORDS },
18846 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS },
18847 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS },
18848 { (char *)"PostScriptDC_GetResolution", (PyCFunction) _wrap_PostScriptDC_GetResolution, METH_VARARGS | METH_KEYWORDS },
18849 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS },
18850 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS },
18851 { (char *)"delete_MetaFile", (PyCFunction) _wrap_delete_MetaFile, METH_VARARGS | METH_KEYWORDS },
18852 { (char *)"MetaFile_Ok", (PyCFunction) _wrap_MetaFile_Ok, METH_VARARGS | METH_KEYWORDS },
18853 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS },
18854 { (char *)"MetaFile_GetSize", (PyCFunction) _wrap_MetaFile_GetSize, METH_VARARGS | METH_KEYWORDS },
18855 { (char *)"MetaFile_GetWidth", (PyCFunction) _wrap_MetaFile_GetWidth, METH_VARARGS | METH_KEYWORDS },
18856 { (char *)"MetaFile_GetHeight", (PyCFunction) _wrap_MetaFile_GetHeight, METH_VARARGS | METH_KEYWORDS },
18857 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS },
18858 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS },
18859 { (char *)"MetaFileDC_Close", (PyCFunction) _wrap_MetaFileDC_Close, METH_VARARGS | METH_KEYWORDS },
18860 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS },
18861 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS },
18862 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS },
18863 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS },
18864 { (char *)"delete_ImageList", (PyCFunction) _wrap_delete_ImageList, METH_VARARGS | METH_KEYWORDS },
18865 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS },
18866 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS },
18867 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS },
18868 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS },
18869 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS },
18870 { (char *)"ImageList_GetImageCount", (PyCFunction) _wrap_ImageList_GetImageCount, METH_VARARGS | METH_KEYWORDS },
18871 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS },
18872 { (char *)"ImageList_RemoveAll", (PyCFunction) _wrap_ImageList_RemoveAll, METH_VARARGS | METH_KEYWORDS },
18873 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS },
18874 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS },
18875 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS },
18876 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS },
18877 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS },
18878 { (char *)"PenList_GetCount", (PyCFunction) _wrap_PenList_GetCount, METH_VARARGS | METH_KEYWORDS },
18879 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS },
18880 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS },
18881 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS },
18882 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS },
18883 { (char *)"BrushList_GetCount", (PyCFunction) _wrap_BrushList_GetCount, METH_VARARGS | METH_KEYWORDS },
18884 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS },
18885 { (char *)"new_ColourDatabase", (PyCFunction) _wrap_new_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18886 { (char *)"delete_ColourDatabase", (PyCFunction) _wrap_delete_ColourDatabase, METH_VARARGS | METH_KEYWORDS },
18887 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS },
18888 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS },
18889 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS },
18890 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS },
18891 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS },
18892 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS },
18893 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS },
18894 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS },
18895 { (char *)"FontList_GetCount", (PyCFunction) _wrap_FontList_GetCount, METH_VARARGS | METH_KEYWORDS },
18896 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS },
18897 { (char *)"new_Effects", (PyCFunction) _wrap_new_Effects, METH_VARARGS | METH_KEYWORDS },
18898 { (char *)"Effects_GetHighlightColour", (PyCFunction) _wrap_Effects_GetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18899 { (char *)"Effects_GetLightShadow", (PyCFunction) _wrap_Effects_GetLightShadow, METH_VARARGS | METH_KEYWORDS },
18900 { (char *)"Effects_GetFaceColour", (PyCFunction) _wrap_Effects_GetFaceColour, METH_VARARGS | METH_KEYWORDS },
18901 { (char *)"Effects_GetMediumShadow", (PyCFunction) _wrap_Effects_GetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18902 { (char *)"Effects_GetDarkShadow", (PyCFunction) _wrap_Effects_GetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18903 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS },
18904 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS },
18905 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS },
18906 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS },
18907 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS },
18908 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS },
18909 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS },
18910 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS },
18911 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS },
18912 { NULL, NULL }
18913};
18914
18915
18916/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
18917
18918static void *_p_wxControlTo_p_wxWindow(void *x) {
18919 return (void *)((wxWindow *) ((wxControl *) x));
18920}
18921static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
18922 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
18923}
18924static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
18925 return (void *)((wxWindow *) ((wxMenuBar *) x));
18926}
18927static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
18928 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
18929}
18930static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
18931 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
18932}
18933static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
18934 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
18935}
18936static void *_p_wxPenTo_p_wxObject(void *x) {
18937 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
18938}
18939static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
18940 return (void *)((wxObject *) ((wxRegionIterator *) x));
18941}
18942static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
18943 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
18944}
18945static void *_p_wxSizerItemTo_p_wxObject(void *x) {
18946 return (void *)((wxObject *) ((wxSizerItem *) x));
18947}
18948static void *_p_wxColourDatabaseTo_p_wxObject(void *x) {
18949 return (void *)((wxObject *) ((wxColourDatabase *) x));
18950}
18951static void *_p_wxScrollEventTo_p_wxObject(void *x) {
18952 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
18953}
18954static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
18955 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
18956}
18957static void *_p_wxIconTo_p_wxObject(void *x) {
18958 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
18959}
18960static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
18961 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
18962}
18963static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
18964 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
18965}
18966static void *_p_wxSizerTo_p_wxObject(void *x) {
18967 return (void *)((wxObject *) ((wxSizer *) x));
18968}
18969static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
18970 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
18971}
18972static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
18973 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
18974}
18975static void *_p_wxPenListTo_p_wxObject(void *x) {
18976 return (void *)((wxObject *) ((wxPenList *) x));
18977}
18978static void *_p_wxEventTo_p_wxObject(void *x) {
18979 return (void *)((wxObject *) ((wxEvent *) x));
18980}
18981static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
18982 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
18983}
18984static void *_p_wxGridSizerTo_p_wxObject(void *x) {
18985 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
18986}
18987static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
18988 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
18989}
18990static void *_p_wxPaintEventTo_p_wxObject(void *x) {
18991 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
18992}
18993static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
18994 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
18995}
18996static void *_p_wxDCTo_p_wxObject(void *x) {
18997 return (void *)((wxObject *) ((wxDC *) x));
18998}
18999static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
19000 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
19001}
19002static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
19003 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
19004}
19005static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
19006 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
19007}
19008static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
19009 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
19010}
19011static void *_p_wxControlTo_p_wxObject(void *x) {
19012 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
19013}
19014static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
19015 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
19016}
19017static void *_p_wxClientDCTo_p_wxObject(void *x) {
19018 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
19019}
19020static void *_p_wxFSFileTo_p_wxObject(void *x) {
19021 return (void *)((wxObject *) ((wxFSFile *) x));
19022}
19023static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
19024 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
19025}
19026static void *_p_wxRegionTo_p_wxObject(void *x) {
19027 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
19028}
19029static void *_p_wxPySizerTo_p_wxObject(void *x) {
19030 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
19031}
19032static void *_p_wxWindowDCTo_p_wxObject(void *x) {
19033 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
19034}
19035static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
19036 return (void *)((wxObject *) ((wxGDIObject *) x));
19037}
19038static void *_p_wxEffectsTo_p_wxObject(void *x) {
19039 return (void *)((wxObject *) ((wxEffects *) x));
19040}
19041static void *_p_wxPyEventTo_p_wxObject(void *x) {
19042 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
19043}
19044static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
19045 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
19046}
19047static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
19048 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
19049}
19050static void *_p_wxShowEventTo_p_wxObject(void *x) {
19051 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
19052}
19053static void *_p_wxMenuItemTo_p_wxObject(void *x) {
19054 return (void *)((wxObject *) ((wxMenuItem *) x));
19055}
19056static void *_p_wxIdleEventTo_p_wxObject(void *x) {
19057 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
19058}
19059static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
19060 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
19061}
19062static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
19063 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
19064}
19065static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
19066 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
19067}
19068static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
19069 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
19070}
19071static void *_p_wxSizeEventTo_p_wxObject(void *x) {
19072 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
19073}
19074static void *_p_wxMoveEventTo_p_wxObject(void *x) {
19075 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
19076}
19077static void *_p_wxActivateEventTo_p_wxObject(void *x) {
19078 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
19079}
19080static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
19081 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
19082}
19083static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
19084 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
19085}
19086static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
19087 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
19088}
19089static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
19090 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
19091}
19092static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
19093 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
19094}
19095static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
19096 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
19097}
19098static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
19099 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
19100}
19101static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
19102 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
19103}
19104static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
19105 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
19106}
19107static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
19108 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
19109}
19110static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
19111 return (void *)((wxObject *) ((wxImageHandler *) x));
19112}
19113static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
19114 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
19115}
19116static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
19117 return (void *)((wxObject *) ((wxEvtHandler *) x));
19118}
19119static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
19120 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19121}
19122static void *_p_wxPaintDCTo_p_wxObject(void *x) {
19123 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
19124}
19125static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
19126 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
19127}
19128static void *_p_wxScreenDCTo_p_wxObject(void *x) {
19129 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
19130}
19131static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
19132 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
19133}
19134static void *_p_wxImageTo_p_wxObject(void *x) {
19135 return (void *)((wxObject *) ((wxImage *) x));
19136}
19137static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
19138 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
19139}
19140static void *_p_wxPaletteTo_p_wxObject(void *x) {
19141 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
19142}
19143static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
19144 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
19145}
19146static void *_p_wxImageListTo_p_wxObject(void *x) {
19147 return (void *)((wxObject *) ((wxImageList *) x));
19148}
19149static void *_p_wxCursorTo_p_wxObject(void *x) {
19150 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
19151}
19152static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
19153 return (void *)((wxObject *) ((wxEncodingConverter *) x));
19154}
19155static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
19156 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
19157}
19158static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
19159 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
19160}
19161static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
19162 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
19163}
19164static void *_p_wxKeyEventTo_p_wxObject(void *x) {
19165 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
19166}
19167static void *_p_wxWindowTo_p_wxObject(void *x) {
19168 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
19169}
19170static void *_p_wxMenuTo_p_wxObject(void *x) {
19171 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
19172}
19173static void *_p_wxMenuBarTo_p_wxObject(void *x) {
19174 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
19175}
19176static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
19177 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
19178}
19179static void *_p_wxBrushListTo_p_wxObject(void *x) {
19180 return (void *)((wxObject *) ((wxBrushList *) x));
19181}
d55e5bfc
RD
19182static void *_p_wxFileSystemTo_p_wxObject(void *x) {
19183 return (void *)((wxObject *) ((wxFileSystem *) x));
19184}
19185static void *_p_wxBitmapTo_p_wxObject(void *x) {
19186 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
19187}
19188static void *_p_wxMaskTo_p_wxObject(void *x) {
19189 return (void *)((wxObject *) ((wxMask *) x));
19190}
19191static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
19192 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
19193}
19194static void *_p_wxMenuEventTo_p_wxObject(void *x) {
19195 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
19196}
19197static void *_p_wxPyAppTo_p_wxObject(void *x) {
19198 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
19199}
19200static void *_p_wxCloseEventTo_p_wxObject(void *x) {
19201 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
19202}
19203static void *_p_wxMouseEventTo_p_wxObject(void *x) {
19204 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
19205}
19206static void *_p_wxEraseEventTo_p_wxObject(void *x) {
19207 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
19208}
19209static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
19210 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
19211}
19212static void *_p_wxCommandEventTo_p_wxObject(void *x) {
19213 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
19214}
19215static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
19216 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
19217}
19218static void *_p_wxFocusEventTo_p_wxObject(void *x) {
19219 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
19220}
19221static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
19222 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
19223}
19224static void *_p_wxFontTo_p_wxObject(void *x) {
19225 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
19226}
19227static void *_p_wxBrushTo_p_wxObject(void *x) {
19228 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
19229}
19230static void *_p_wxMetaFileTo_p_wxObject(void *x) {
19231 return (void *)((wxObject *) ((wxMetaFile *) x));
19232}
19233static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
19234 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
19235}
19236static void *_p_wxColourTo_p_wxObject(void *x) {
19237 return (void *)((wxObject *) ((wxColour *) x));
19238}
19239static void *_p_wxFontListTo_p_wxObject(void *x) {
19240 return (void *)((wxObject *) ((wxFontList *) x));
19241}
19242static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
19243 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
19244}
19245static void *_p_wxValidatorTo_p_wxObject(void *x) {
19246 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
19247}
19248static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
19249 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
19250}
19251static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
19252 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
19253}
19254static void *_p_wxScreenDCTo_p_wxDC(void *x) {
19255 return (void *)((wxDC *) ((wxScreenDC *) x));
19256}
19257static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
19258 return (void *)((wxDC *) ((wxMirrorDC *) x));
19259}
19260static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
19261 return (void *)((wxDC *) ((wxMemoryDC *) x));
19262}
19263static void *_p_wxWindowDCTo_p_wxDC(void *x) {
19264 return (void *)((wxDC *) ((wxWindowDC *) x));
19265}
19266static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
19267 return (void *)((wxDC *) ((wxMetaFileDC *) x));
19268}
19269static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
19270 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
19271}
19272static void *_p_wxClientDCTo_p_wxDC(void *x) {
19273 return (void *)((wxDC *) ((wxClientDC *) x));
19274}
19275static void *_p_wxPaintDCTo_p_wxDC(void *x) {
19276 return (void *)((wxDC *) ((wxPaintDC *) x));
19277}
19278static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
19279 return (void *)((wxDC *) ((wxPostScriptDC *) x));
19280}
19281static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
19282 return (void *)((wxDC *) ((wxPrinterDC *) x));
19283}
d55e5bfc
RD
19284static void *_p_wxIconTo_p_wxGDIObject(void *x) {
19285 return (void *)((wxGDIObject *) ((wxIcon *) x));
19286}
19287static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
19288 return (void *)((wxGDIObject *) ((wxPalette *) x));
19289}
19290static void *_p_wxPenTo_p_wxGDIObject(void *x) {
19291 return (void *)((wxGDIObject *) ((wxPen *) x));
19292}
19293static void *_p_wxFontTo_p_wxGDIObject(void *x) {
19294 return (void *)((wxGDIObject *) ((wxFont *) x));
19295}
19296static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
19297 return (void *)((wxGDIObject *) ((wxCursor *) x));
19298}
19299static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
19300 return (void *)((wxGDIObject *) ((wxBitmap *) x));
19301}
19302static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
19303 return (void *)((wxGDIObject *) ((wxRegion *) x));
19304}
19305static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
19306 return (void *)((wxGDIObject *) ((wxBrush *) x));
19307}
d55e5bfc
RD
19308static 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}};
19309static 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}};
19310static 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}};
19311static 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}};
19312static 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}};
19313static 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}};
19314static 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}};
19315static 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}};
19316static 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}};
19317static 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}};
19318static 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}};
19319static 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}};
19320static 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}};
19321static 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}};
19322static 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}};
19323static 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}};
19324static 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}};
19325static 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}};
19326static 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}};
19327static 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}};
19328static 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}};
19329static 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 19330static 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
19331static 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}};
19332static 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}};
19333static 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}};
19334static 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}};
19335static 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}};
19336static 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}};
19337static 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}};
19338static 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}};
19339static 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}};
19340static 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}};
19341static 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}};
19342static 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}};
19343static 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 19344static 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
19345static 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}};
19346static 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}};
19347static 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 19348static 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 19349static 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
19350static 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}};
19351static 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}};
19352static 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}};
19353static 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 19354static 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
19355static 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}};
19356static 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}};
19357static 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
19358static 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}};
19359static 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}};
19360static 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}};
19361static 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}};
19362static 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}};
19363
19364static swig_type_info *swig_types_initial[] = {
19365_swigt__p_wxPostScriptDC,
19366_swigt__p_wxBrush,
19367_swigt__p_wxColour,
19368_swigt__p_wxDC,
19369_swigt__p_wxMirrorDC,
19370_swigt__p_byte,
19371_swigt__p_wxPyFontEnumerator,
19372_swigt__p_char,
19373_swigt__p_wxIconLocation,
19374_swigt__p_wxImage,
19375_swigt__p_wxMetaFileDC,
19376_swigt__p_wxMask,
19377_swigt__p_wxSize,
19378_swigt__p_wxFont,
19379_swigt__p_wxWindow,
19380_swigt__p_double,
19381_swigt__p_wxMemoryDC,
19382_swigt__p_wxFontMapper,
19383_swigt__p_wxEffects,
19384_swigt__p_wxNativeEncodingInfo,
19385_swigt__p_wxPalette,
19386_swigt__p_wxBitmap,
19387_swigt__p_wxObject,
19388_swigt__p_wxRegionIterator,
19389_swigt__p_wxRect,
19390_swigt__p_wxString,
19391_swigt__p_wxPrinterDC,
19392_swigt__p_wxIconBundle,
19393_swigt__p_wxPoint,
19394_swigt__p_wxDash,
19395_swigt__p_wxScreenDC,
19396_swigt__p_wxCursor,
19397_swigt__p_wxClientDC,
19398_swigt__p_wxBufferedDC,
19399_swigt__p_wxImageList,
19400_swigt__p_unsigned_char,
19401_swigt__p_wxGDIObject,
19402_swigt__p_wxIcon,
19403_swigt__p_wxLocale,
19404_swigt__p_wxRegion,
d55e5bfc 19405_swigt__p_wxLanguageInfo,
d6c14a4c 19406_swigt__p_wxConfigBase,
d55e5bfc
RD
19407_swigt__p_wxWindowDC,
19408_swigt__p_wxPrintData,
19409_swigt__p_wxBrushList,
19410_swigt__p_wxFontList,
19411_swigt__p_wxPen,
19412_swigt__p_wxBufferedPaintDC,
19413_swigt__p_wxPaintDC,
19414_swigt__p_wxPenList,
d55e5bfc
RD
19415_swigt__p_int,
19416_swigt__p_wxMetaFile,
19417_swigt__p_wxNativeFontInfo,
19418_swigt__p_wxEncodingConverter,
19419_swigt__p_wxColourDatabase,
194200
19421};
19422
19423
19424/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
19425
19426static swig_const_info swig_const_table[] = {
19427{0}};
19428
19429#ifdef __cplusplus
19430}
19431#endif
19432
19433#ifdef __cplusplus
19434extern "C"
19435#endif
19436SWIGEXPORT(void) SWIG_init(void) {
19437 static PyObject *SWIG_globals = 0;
19438 static int typeinit = 0;
19439 PyObject *m, *d;
19440 int i;
19441 if (!SWIG_globals) SWIG_globals = SWIG_newvarlink();
19442 m = Py_InitModule((char *) SWIG_name, SwigMethods);
19443 d = PyModule_GetDict(m);
19444
19445 if (!typeinit) {
19446 for (i = 0; swig_types_initial[i]; i++) {
19447 swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]);
19448 }
19449 typeinit = 1;
19450 }
19451 SWIG_InstallConstants(d,swig_const_table);
19452
19453 PyDict_SetItemString(d,"OutRegion", SWIG_FromInt((int)wxOutRegion));
19454 PyDict_SetItemString(d,"PartRegion", SWIG_FromInt((int)wxPartRegion));
19455 PyDict_SetItemString(d,"InRegion", SWIG_FromInt((int)wxInRegion));
19456 PyDict_SetItemString(d,"FONTFAMILY_DEFAULT", SWIG_FromInt((int)wxFONTFAMILY_DEFAULT));
19457 PyDict_SetItemString(d,"FONTFAMILY_DECORATIVE", SWIG_FromInt((int)wxFONTFAMILY_DECORATIVE));
19458 PyDict_SetItemString(d,"FONTFAMILY_ROMAN", SWIG_FromInt((int)wxFONTFAMILY_ROMAN));
19459 PyDict_SetItemString(d,"FONTFAMILY_SCRIPT", SWIG_FromInt((int)wxFONTFAMILY_SCRIPT));
19460 PyDict_SetItemString(d,"FONTFAMILY_SWISS", SWIG_FromInt((int)wxFONTFAMILY_SWISS));
19461 PyDict_SetItemString(d,"FONTFAMILY_MODERN", SWIG_FromInt((int)wxFONTFAMILY_MODERN));
19462 PyDict_SetItemString(d,"FONTFAMILY_TELETYPE", SWIG_FromInt((int)wxFONTFAMILY_TELETYPE));
19463 PyDict_SetItemString(d,"FONTFAMILY_MAX", SWIG_FromInt((int)wxFONTFAMILY_MAX));
19464 PyDict_SetItemString(d,"FONTFAMILY_UNKNOWN", SWIG_FromInt((int)wxFONTFAMILY_UNKNOWN));
19465 PyDict_SetItemString(d,"FONTSTYLE_NORMAL", SWIG_FromInt((int)wxFONTSTYLE_NORMAL));
19466 PyDict_SetItemString(d,"FONTSTYLE_ITALIC", SWIG_FromInt((int)wxFONTSTYLE_ITALIC));
19467 PyDict_SetItemString(d,"FONTSTYLE_SLANT", SWIG_FromInt((int)wxFONTSTYLE_SLANT));
19468 PyDict_SetItemString(d,"FONTSTYLE_MAX", SWIG_FromInt((int)wxFONTSTYLE_MAX));
19469 PyDict_SetItemString(d,"FONTWEIGHT_NORMAL", SWIG_FromInt((int)wxFONTWEIGHT_NORMAL));
19470 PyDict_SetItemString(d,"FONTWEIGHT_LIGHT", SWIG_FromInt((int)wxFONTWEIGHT_LIGHT));
19471 PyDict_SetItemString(d,"FONTWEIGHT_BOLD", SWIG_FromInt((int)wxFONTWEIGHT_BOLD));
19472 PyDict_SetItemString(d,"FONTWEIGHT_MAX", SWIG_FromInt((int)wxFONTWEIGHT_MAX));
19473 PyDict_SetItemString(d,"FONTFLAG_DEFAULT", SWIG_FromInt((int)wxFONTFLAG_DEFAULT));
19474 PyDict_SetItemString(d,"FONTFLAG_ITALIC", SWIG_FromInt((int)wxFONTFLAG_ITALIC));
19475 PyDict_SetItemString(d,"FONTFLAG_SLANT", SWIG_FromInt((int)wxFONTFLAG_SLANT));
19476 PyDict_SetItemString(d,"FONTFLAG_LIGHT", SWIG_FromInt((int)wxFONTFLAG_LIGHT));
19477 PyDict_SetItemString(d,"FONTFLAG_BOLD", SWIG_FromInt((int)wxFONTFLAG_BOLD));
19478 PyDict_SetItemString(d,"FONTFLAG_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_ANTIALIASED));
19479 PyDict_SetItemString(d,"FONTFLAG_NOT_ANTIALIASED", SWIG_FromInt((int)wxFONTFLAG_NOT_ANTIALIASED));
19480 PyDict_SetItemString(d,"FONTFLAG_UNDERLINED", SWIG_FromInt((int)wxFONTFLAG_UNDERLINED));
19481 PyDict_SetItemString(d,"FONTFLAG_STRIKETHROUGH", SWIG_FromInt((int)wxFONTFLAG_STRIKETHROUGH));
19482 PyDict_SetItemString(d,"FONTFLAG_MASK", SWIG_FromInt((int)wxFONTFLAG_MASK));
19483 PyDict_SetItemString(d,"FONTENCODING_SYSTEM", SWIG_FromInt((int)wxFONTENCODING_SYSTEM));
19484 PyDict_SetItemString(d,"FONTENCODING_DEFAULT", SWIG_FromInt((int)wxFONTENCODING_DEFAULT));
19485 PyDict_SetItemString(d,"FONTENCODING_ISO8859_1", SWIG_FromInt((int)wxFONTENCODING_ISO8859_1));
19486 PyDict_SetItemString(d,"FONTENCODING_ISO8859_2", SWIG_FromInt((int)wxFONTENCODING_ISO8859_2));
19487 PyDict_SetItemString(d,"FONTENCODING_ISO8859_3", SWIG_FromInt((int)wxFONTENCODING_ISO8859_3));
19488 PyDict_SetItemString(d,"FONTENCODING_ISO8859_4", SWIG_FromInt((int)wxFONTENCODING_ISO8859_4));
19489 PyDict_SetItemString(d,"FONTENCODING_ISO8859_5", SWIG_FromInt((int)wxFONTENCODING_ISO8859_5));
19490 PyDict_SetItemString(d,"FONTENCODING_ISO8859_6", SWIG_FromInt((int)wxFONTENCODING_ISO8859_6));
19491 PyDict_SetItemString(d,"FONTENCODING_ISO8859_7", SWIG_FromInt((int)wxFONTENCODING_ISO8859_7));
19492 PyDict_SetItemString(d,"FONTENCODING_ISO8859_8", SWIG_FromInt((int)wxFONTENCODING_ISO8859_8));
19493 PyDict_SetItemString(d,"FONTENCODING_ISO8859_9", SWIG_FromInt((int)wxFONTENCODING_ISO8859_9));
19494 PyDict_SetItemString(d,"FONTENCODING_ISO8859_10", SWIG_FromInt((int)wxFONTENCODING_ISO8859_10));
19495 PyDict_SetItemString(d,"FONTENCODING_ISO8859_11", SWIG_FromInt((int)wxFONTENCODING_ISO8859_11));
19496 PyDict_SetItemString(d,"FONTENCODING_ISO8859_12", SWIG_FromInt((int)wxFONTENCODING_ISO8859_12));
19497 PyDict_SetItemString(d,"FONTENCODING_ISO8859_13", SWIG_FromInt((int)wxFONTENCODING_ISO8859_13));
19498 PyDict_SetItemString(d,"FONTENCODING_ISO8859_14", SWIG_FromInt((int)wxFONTENCODING_ISO8859_14));
19499 PyDict_SetItemString(d,"FONTENCODING_ISO8859_15", SWIG_FromInt((int)wxFONTENCODING_ISO8859_15));
19500 PyDict_SetItemString(d,"FONTENCODING_ISO8859_MAX", SWIG_FromInt((int)wxFONTENCODING_ISO8859_MAX));
19501 PyDict_SetItemString(d,"FONTENCODING_KOI8", SWIG_FromInt((int)wxFONTENCODING_KOI8));
19502 PyDict_SetItemString(d,"FONTENCODING_KOI8_U", SWIG_FromInt((int)wxFONTENCODING_KOI8_U));
19503 PyDict_SetItemString(d,"FONTENCODING_ALTERNATIVE", SWIG_FromInt((int)wxFONTENCODING_ALTERNATIVE));
19504 PyDict_SetItemString(d,"FONTENCODING_BULGARIAN", SWIG_FromInt((int)wxFONTENCODING_BULGARIAN));
19505 PyDict_SetItemString(d,"FONTENCODING_CP437", SWIG_FromInt((int)wxFONTENCODING_CP437));
19506 PyDict_SetItemString(d,"FONTENCODING_CP850", SWIG_FromInt((int)wxFONTENCODING_CP850));
19507 PyDict_SetItemString(d,"FONTENCODING_CP852", SWIG_FromInt((int)wxFONTENCODING_CP852));
19508 PyDict_SetItemString(d,"FONTENCODING_CP855", SWIG_FromInt((int)wxFONTENCODING_CP855));
19509 PyDict_SetItemString(d,"FONTENCODING_CP866", SWIG_FromInt((int)wxFONTENCODING_CP866));
19510 PyDict_SetItemString(d,"FONTENCODING_CP874", SWIG_FromInt((int)wxFONTENCODING_CP874));
19511 PyDict_SetItemString(d,"FONTENCODING_CP932", SWIG_FromInt((int)wxFONTENCODING_CP932));
19512 PyDict_SetItemString(d,"FONTENCODING_CP936", SWIG_FromInt((int)wxFONTENCODING_CP936));
19513 PyDict_SetItemString(d,"FONTENCODING_CP949", SWIG_FromInt((int)wxFONTENCODING_CP949));
19514 PyDict_SetItemString(d,"FONTENCODING_CP950", SWIG_FromInt((int)wxFONTENCODING_CP950));
19515 PyDict_SetItemString(d,"FONTENCODING_CP1250", SWIG_FromInt((int)wxFONTENCODING_CP1250));
19516 PyDict_SetItemString(d,"FONTENCODING_CP1251", SWIG_FromInt((int)wxFONTENCODING_CP1251));
19517 PyDict_SetItemString(d,"FONTENCODING_CP1252", SWIG_FromInt((int)wxFONTENCODING_CP1252));
19518 PyDict_SetItemString(d,"FONTENCODING_CP1253", SWIG_FromInt((int)wxFONTENCODING_CP1253));
19519 PyDict_SetItemString(d,"FONTENCODING_CP1254", SWIG_FromInt((int)wxFONTENCODING_CP1254));
19520 PyDict_SetItemString(d,"FONTENCODING_CP1255", SWIG_FromInt((int)wxFONTENCODING_CP1255));
19521 PyDict_SetItemString(d,"FONTENCODING_CP1256", SWIG_FromInt((int)wxFONTENCODING_CP1256));
19522 PyDict_SetItemString(d,"FONTENCODING_CP1257", SWIG_FromInt((int)wxFONTENCODING_CP1257));
19523 PyDict_SetItemString(d,"FONTENCODING_CP12_MAX", SWIG_FromInt((int)wxFONTENCODING_CP12_MAX));
19524 PyDict_SetItemString(d,"FONTENCODING_UTF7", SWIG_FromInt((int)wxFONTENCODING_UTF7));
19525 PyDict_SetItemString(d,"FONTENCODING_UTF8", SWIG_FromInt((int)wxFONTENCODING_UTF8));
19526 PyDict_SetItemString(d,"FONTENCODING_EUC_JP", SWIG_FromInt((int)wxFONTENCODING_EUC_JP));
19527 PyDict_SetItemString(d,"FONTENCODING_UTF16BE", SWIG_FromInt((int)wxFONTENCODING_UTF16BE));
19528 PyDict_SetItemString(d,"FONTENCODING_UTF16LE", SWIG_FromInt((int)wxFONTENCODING_UTF16LE));
19529 PyDict_SetItemString(d,"FONTENCODING_UTF32BE", SWIG_FromInt((int)wxFONTENCODING_UTF32BE));
19530 PyDict_SetItemString(d,"FONTENCODING_UTF32LE", SWIG_FromInt((int)wxFONTENCODING_UTF32LE));
19531 PyDict_SetItemString(d,"FONTENCODING_MACROMAN", SWIG_FromInt((int)wxFONTENCODING_MACROMAN));
19532 PyDict_SetItemString(d,"FONTENCODING_MACJAPANESE", SWIG_FromInt((int)wxFONTENCODING_MACJAPANESE));
19533 PyDict_SetItemString(d,"FONTENCODING_MACCHINESETRAD", SWIG_FromInt((int)wxFONTENCODING_MACCHINESETRAD));
19534 PyDict_SetItemString(d,"FONTENCODING_MACKOREAN", SWIG_FromInt((int)wxFONTENCODING_MACKOREAN));
19535 PyDict_SetItemString(d,"FONTENCODING_MACARABIC", SWIG_FromInt((int)wxFONTENCODING_MACARABIC));
19536 PyDict_SetItemString(d,"FONTENCODING_MACHEBREW", SWIG_FromInt((int)wxFONTENCODING_MACHEBREW));
19537 PyDict_SetItemString(d,"FONTENCODING_MACGREEK", SWIG_FromInt((int)wxFONTENCODING_MACGREEK));
19538 PyDict_SetItemString(d,"FONTENCODING_MACCYRILLIC", SWIG_FromInt((int)wxFONTENCODING_MACCYRILLIC));
19539 PyDict_SetItemString(d,"FONTENCODING_MACDEVANAGARI", SWIG_FromInt((int)wxFONTENCODING_MACDEVANAGARI));
19540 PyDict_SetItemString(d,"FONTENCODING_MACGURMUKHI", SWIG_FromInt((int)wxFONTENCODING_MACGURMUKHI));
19541 PyDict_SetItemString(d,"FONTENCODING_MACGUJARATI", SWIG_FromInt((int)wxFONTENCODING_MACGUJARATI));
19542 PyDict_SetItemString(d,"FONTENCODING_MACORIYA", SWIG_FromInt((int)wxFONTENCODING_MACORIYA));
19543 PyDict_SetItemString(d,"FONTENCODING_MACBENGALI", SWIG_FromInt((int)wxFONTENCODING_MACBENGALI));
19544 PyDict_SetItemString(d,"FONTENCODING_MACTAMIL", SWIG_FromInt((int)wxFONTENCODING_MACTAMIL));
19545 PyDict_SetItemString(d,"FONTENCODING_MACTELUGU", SWIG_FromInt((int)wxFONTENCODING_MACTELUGU));
19546 PyDict_SetItemString(d,"FONTENCODING_MACKANNADA", SWIG_FromInt((int)wxFONTENCODING_MACKANNADA));
19547 PyDict_SetItemString(d,"FONTENCODING_MACMALAJALAM", SWIG_FromInt((int)wxFONTENCODING_MACMALAJALAM));
19548 PyDict_SetItemString(d,"FONTENCODING_MACSINHALESE", SWIG_FromInt((int)wxFONTENCODING_MACSINHALESE));
19549 PyDict_SetItemString(d,"FONTENCODING_MACBURMESE", SWIG_FromInt((int)wxFONTENCODING_MACBURMESE));
19550 PyDict_SetItemString(d,"FONTENCODING_MACKHMER", SWIG_FromInt((int)wxFONTENCODING_MACKHMER));
19551 PyDict_SetItemString(d,"FONTENCODING_MACTHAI", SWIG_FromInt((int)wxFONTENCODING_MACTHAI));
19552 PyDict_SetItemString(d,"FONTENCODING_MACLAOTIAN", SWIG_FromInt((int)wxFONTENCODING_MACLAOTIAN));
19553 PyDict_SetItemString(d,"FONTENCODING_MACGEORGIAN", SWIG_FromInt((int)wxFONTENCODING_MACGEORGIAN));
19554 PyDict_SetItemString(d,"FONTENCODING_MACARMENIAN", SWIG_FromInt((int)wxFONTENCODING_MACARMENIAN));
19555 PyDict_SetItemString(d,"FONTENCODING_MACCHINESESIMP", SWIG_FromInt((int)wxFONTENCODING_MACCHINESESIMP));
19556 PyDict_SetItemString(d,"FONTENCODING_MACTIBETAN", SWIG_FromInt((int)wxFONTENCODING_MACTIBETAN));
19557 PyDict_SetItemString(d,"FONTENCODING_MACMONGOLIAN", SWIG_FromInt((int)wxFONTENCODING_MACMONGOLIAN));
19558 PyDict_SetItemString(d,"FONTENCODING_MACETHIOPIC", SWIG_FromInt((int)wxFONTENCODING_MACETHIOPIC));
19559 PyDict_SetItemString(d,"FONTENCODING_MACCENTRALEUR", SWIG_FromInt((int)wxFONTENCODING_MACCENTRALEUR));
19560 PyDict_SetItemString(d,"FONTENCODING_MACVIATNAMESE", SWIG_FromInt((int)wxFONTENCODING_MACVIATNAMESE));
19561 PyDict_SetItemString(d,"FONTENCODING_MACARABICEXT", SWIG_FromInt((int)wxFONTENCODING_MACARABICEXT));
19562 PyDict_SetItemString(d,"FONTENCODING_MACSYMBOL", SWIG_FromInt((int)wxFONTENCODING_MACSYMBOL));
19563 PyDict_SetItemString(d,"FONTENCODING_MACDINGBATS", SWIG_FromInt((int)wxFONTENCODING_MACDINGBATS));
19564 PyDict_SetItemString(d,"FONTENCODING_MACTURKISH", SWIG_FromInt((int)wxFONTENCODING_MACTURKISH));
19565 PyDict_SetItemString(d,"FONTENCODING_MACCROATIAN", SWIG_FromInt((int)wxFONTENCODING_MACCROATIAN));
19566 PyDict_SetItemString(d,"FONTENCODING_MACICELANDIC", SWIG_FromInt((int)wxFONTENCODING_MACICELANDIC));
19567 PyDict_SetItemString(d,"FONTENCODING_MACROMANIAN", SWIG_FromInt((int)wxFONTENCODING_MACROMANIAN));
19568 PyDict_SetItemString(d,"FONTENCODING_MACCELTIC", SWIG_FromInt((int)wxFONTENCODING_MACCELTIC));
19569 PyDict_SetItemString(d,"FONTENCODING_MACGAELIC", SWIG_FromInt((int)wxFONTENCODING_MACGAELIC));
19570 PyDict_SetItemString(d,"FONTENCODING_MACKEYBOARD", SWIG_FromInt((int)wxFONTENCODING_MACKEYBOARD));
19571 PyDict_SetItemString(d,"FONTENCODING_MACMIN", SWIG_FromInt((int)wxFONTENCODING_MACMIN));
19572 PyDict_SetItemString(d,"FONTENCODING_MACMAX", SWIG_FromInt((int)wxFONTENCODING_MACMAX));
19573 PyDict_SetItemString(d,"FONTENCODING_MAX", SWIG_FromInt((int)wxFONTENCODING_MAX));
19574 PyDict_SetItemString(d,"FONTENCODING_UTF16", SWIG_FromInt((int)wxFONTENCODING_UTF16));
19575 PyDict_SetItemString(d,"FONTENCODING_UTF32", SWIG_FromInt((int)wxFONTENCODING_UTF32));
19576 PyDict_SetItemString(d,"FONTENCODING_UNICODE", SWIG_FromInt((int)wxFONTENCODING_UNICODE));
19577 PyDict_SetItemString(d,"FONTENCODING_GB2312", SWIG_FromInt((int)wxFONTENCODING_GB2312));
19578 PyDict_SetItemString(d,"FONTENCODING_BIG5", SWIG_FromInt((int)wxFONTENCODING_BIG5));
19579 PyDict_SetItemString(d,"FONTENCODING_SHIFT_JIS", SWIG_FromInt((int)wxFONTENCODING_SHIFT_JIS));
19580
19581 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
19582
19583 PyDict_SetItemString(d,"LANGUAGE_DEFAULT", SWIG_FromInt((int)wxLANGUAGE_DEFAULT));
19584 PyDict_SetItemString(d,"LANGUAGE_UNKNOWN", SWIG_FromInt((int)wxLANGUAGE_UNKNOWN));
19585 PyDict_SetItemString(d,"LANGUAGE_ABKHAZIAN", SWIG_FromInt((int)wxLANGUAGE_ABKHAZIAN));
19586 PyDict_SetItemString(d,"LANGUAGE_AFAR", SWIG_FromInt((int)wxLANGUAGE_AFAR));
19587 PyDict_SetItemString(d,"LANGUAGE_AFRIKAANS", SWIG_FromInt((int)wxLANGUAGE_AFRIKAANS));
19588 PyDict_SetItemString(d,"LANGUAGE_ALBANIAN", SWIG_FromInt((int)wxLANGUAGE_ALBANIAN));
19589 PyDict_SetItemString(d,"LANGUAGE_AMHARIC", SWIG_FromInt((int)wxLANGUAGE_AMHARIC));
19590 PyDict_SetItemString(d,"LANGUAGE_ARABIC", SWIG_FromInt((int)wxLANGUAGE_ARABIC));
19591 PyDict_SetItemString(d,"LANGUAGE_ARABIC_ALGERIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_ALGERIA));
19592 PyDict_SetItemString(d,"LANGUAGE_ARABIC_BAHRAIN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_BAHRAIN));
19593 PyDict_SetItemString(d,"LANGUAGE_ARABIC_EGYPT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_EGYPT));
19594 PyDict_SetItemString(d,"LANGUAGE_ARABIC_IRAQ", SWIG_FromInt((int)wxLANGUAGE_ARABIC_IRAQ));
19595 PyDict_SetItemString(d,"LANGUAGE_ARABIC_JORDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_JORDAN));
19596 PyDict_SetItemString(d,"LANGUAGE_ARABIC_KUWAIT", SWIG_FromInt((int)wxLANGUAGE_ARABIC_KUWAIT));
19597 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LEBANON", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LEBANON));
19598 PyDict_SetItemString(d,"LANGUAGE_ARABIC_LIBYA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_LIBYA));
19599 PyDict_SetItemString(d,"LANGUAGE_ARABIC_MOROCCO", SWIG_FromInt((int)wxLANGUAGE_ARABIC_MOROCCO));
19600 PyDict_SetItemString(d,"LANGUAGE_ARABIC_OMAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_OMAN));
19601 PyDict_SetItemString(d,"LANGUAGE_ARABIC_QATAR", SWIG_FromInt((int)wxLANGUAGE_ARABIC_QATAR));
19602 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SAUDI_ARABIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SAUDI_ARABIA));
19603 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SUDAN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SUDAN));
19604 PyDict_SetItemString(d,"LANGUAGE_ARABIC_SYRIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_SYRIA));
19605 PyDict_SetItemString(d,"LANGUAGE_ARABIC_TUNISIA", SWIG_FromInt((int)wxLANGUAGE_ARABIC_TUNISIA));
19606 PyDict_SetItemString(d,"LANGUAGE_ARABIC_UAE", SWIG_FromInt((int)wxLANGUAGE_ARABIC_UAE));
19607 PyDict_SetItemString(d,"LANGUAGE_ARABIC_YEMEN", SWIG_FromInt((int)wxLANGUAGE_ARABIC_YEMEN));
19608 PyDict_SetItemString(d,"LANGUAGE_ARMENIAN", SWIG_FromInt((int)wxLANGUAGE_ARMENIAN));
19609 PyDict_SetItemString(d,"LANGUAGE_ASSAMESE", SWIG_FromInt((int)wxLANGUAGE_ASSAMESE));
19610 PyDict_SetItemString(d,"LANGUAGE_AYMARA", SWIG_FromInt((int)wxLANGUAGE_AYMARA));
19611 PyDict_SetItemString(d,"LANGUAGE_AZERI", SWIG_FromInt((int)wxLANGUAGE_AZERI));
19612 PyDict_SetItemString(d,"LANGUAGE_AZERI_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_AZERI_CYRILLIC));
19613 PyDict_SetItemString(d,"LANGUAGE_AZERI_LATIN", SWIG_FromInt((int)wxLANGUAGE_AZERI_LATIN));
19614 PyDict_SetItemString(d,"LANGUAGE_BASHKIR", SWIG_FromInt((int)wxLANGUAGE_BASHKIR));
19615 PyDict_SetItemString(d,"LANGUAGE_BASQUE", SWIG_FromInt((int)wxLANGUAGE_BASQUE));
19616 PyDict_SetItemString(d,"LANGUAGE_BELARUSIAN", SWIG_FromInt((int)wxLANGUAGE_BELARUSIAN));
19617 PyDict_SetItemString(d,"LANGUAGE_BENGALI", SWIG_FromInt((int)wxLANGUAGE_BENGALI));
19618 PyDict_SetItemString(d,"LANGUAGE_BHUTANI", SWIG_FromInt((int)wxLANGUAGE_BHUTANI));
19619 PyDict_SetItemString(d,"LANGUAGE_BIHARI", SWIG_FromInt((int)wxLANGUAGE_BIHARI));
19620 PyDict_SetItemString(d,"LANGUAGE_BISLAMA", SWIG_FromInt((int)wxLANGUAGE_BISLAMA));
19621 PyDict_SetItemString(d,"LANGUAGE_BRETON", SWIG_FromInt((int)wxLANGUAGE_BRETON));
19622 PyDict_SetItemString(d,"LANGUAGE_BULGARIAN", SWIG_FromInt((int)wxLANGUAGE_BULGARIAN));
19623 PyDict_SetItemString(d,"LANGUAGE_BURMESE", SWIG_FromInt((int)wxLANGUAGE_BURMESE));
19624 PyDict_SetItemString(d,"LANGUAGE_CAMBODIAN", SWIG_FromInt((int)wxLANGUAGE_CAMBODIAN));
19625 PyDict_SetItemString(d,"LANGUAGE_CATALAN", SWIG_FromInt((int)wxLANGUAGE_CATALAN));
19626 PyDict_SetItemString(d,"LANGUAGE_CHINESE", SWIG_FromInt((int)wxLANGUAGE_CHINESE));
19627 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SIMPLIFIED", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SIMPLIFIED));
19628 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TRADITIONAL", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TRADITIONAL));
19629 PyDict_SetItemString(d,"LANGUAGE_CHINESE_HONGKONG", SWIG_FromInt((int)wxLANGUAGE_CHINESE_HONGKONG));
19630 PyDict_SetItemString(d,"LANGUAGE_CHINESE_MACAU", SWIG_FromInt((int)wxLANGUAGE_CHINESE_MACAU));
19631 PyDict_SetItemString(d,"LANGUAGE_CHINESE_SINGAPORE", SWIG_FromInt((int)wxLANGUAGE_CHINESE_SINGAPORE));
19632 PyDict_SetItemString(d,"LANGUAGE_CHINESE_TAIWAN", SWIG_FromInt((int)wxLANGUAGE_CHINESE_TAIWAN));
19633 PyDict_SetItemString(d,"LANGUAGE_CORSICAN", SWIG_FromInt((int)wxLANGUAGE_CORSICAN));
19634 PyDict_SetItemString(d,"LANGUAGE_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_CROATIAN));
19635 PyDict_SetItemString(d,"LANGUAGE_CZECH", SWIG_FromInt((int)wxLANGUAGE_CZECH));
19636 PyDict_SetItemString(d,"LANGUAGE_DANISH", SWIG_FromInt((int)wxLANGUAGE_DANISH));
19637 PyDict_SetItemString(d,"LANGUAGE_DUTCH", SWIG_FromInt((int)wxLANGUAGE_DUTCH));
19638 PyDict_SetItemString(d,"LANGUAGE_DUTCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_DUTCH_BELGIAN));
19639 PyDict_SetItemString(d,"LANGUAGE_ENGLISH", SWIG_FromInt((int)wxLANGUAGE_ENGLISH));
19640 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_UK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_UK));
19641 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_US", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_US));
19642 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_AUSTRALIA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_AUSTRALIA));
19643 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BELIZE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BELIZE));
19644 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_BOTSWANA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_BOTSWANA));
19645 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CANADA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CANADA));
19646 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_CARIBBEAN", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_CARIBBEAN));
19647 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_DENMARK", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_DENMARK));
19648 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_EIRE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_EIRE));
19649 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_JAMAICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_JAMAICA));
19650 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_NEW_ZEALAND", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_NEW_ZEALAND));
19651 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_PHILIPPINES", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_PHILIPPINES));
19652 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_SOUTH_AFRICA", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_SOUTH_AFRICA));
19653 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_TRINIDAD", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_TRINIDAD));
19654 PyDict_SetItemString(d,"LANGUAGE_ENGLISH_ZIMBABWE", SWIG_FromInt((int)wxLANGUAGE_ENGLISH_ZIMBABWE));
19655 PyDict_SetItemString(d,"LANGUAGE_ESPERANTO", SWIG_FromInt((int)wxLANGUAGE_ESPERANTO));
19656 PyDict_SetItemString(d,"LANGUAGE_ESTONIAN", SWIG_FromInt((int)wxLANGUAGE_ESTONIAN));
19657 PyDict_SetItemString(d,"LANGUAGE_FAEROESE", SWIG_FromInt((int)wxLANGUAGE_FAEROESE));
19658 PyDict_SetItemString(d,"LANGUAGE_FARSI", SWIG_FromInt((int)wxLANGUAGE_FARSI));
19659 PyDict_SetItemString(d,"LANGUAGE_FIJI", SWIG_FromInt((int)wxLANGUAGE_FIJI));
19660 PyDict_SetItemString(d,"LANGUAGE_FINNISH", SWIG_FromInt((int)wxLANGUAGE_FINNISH));
19661 PyDict_SetItemString(d,"LANGUAGE_FRENCH", SWIG_FromInt((int)wxLANGUAGE_FRENCH));
19662 PyDict_SetItemString(d,"LANGUAGE_FRENCH_BELGIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_BELGIAN));
19663 PyDict_SetItemString(d,"LANGUAGE_FRENCH_CANADIAN", SWIG_FromInt((int)wxLANGUAGE_FRENCH_CANADIAN));
19664 PyDict_SetItemString(d,"LANGUAGE_FRENCH_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_FRENCH_LUXEMBOURG));
19665 PyDict_SetItemString(d,"LANGUAGE_FRENCH_MONACO", SWIG_FromInt((int)wxLANGUAGE_FRENCH_MONACO));
19666 PyDict_SetItemString(d,"LANGUAGE_FRENCH_SWISS", SWIG_FromInt((int)wxLANGUAGE_FRENCH_SWISS));
19667 PyDict_SetItemString(d,"LANGUAGE_FRISIAN", SWIG_FromInt((int)wxLANGUAGE_FRISIAN));
19668 PyDict_SetItemString(d,"LANGUAGE_GALICIAN", SWIG_FromInt((int)wxLANGUAGE_GALICIAN));
19669 PyDict_SetItemString(d,"LANGUAGE_GEORGIAN", SWIG_FromInt((int)wxLANGUAGE_GEORGIAN));
19670 PyDict_SetItemString(d,"LANGUAGE_GERMAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN));
19671 PyDict_SetItemString(d,"LANGUAGE_GERMAN_AUSTRIAN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_AUSTRIAN));
19672 PyDict_SetItemString(d,"LANGUAGE_GERMAN_BELGIUM", SWIG_FromInt((int)wxLANGUAGE_GERMAN_BELGIUM));
19673 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LIECHTENSTEIN", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LIECHTENSTEIN));
19674 PyDict_SetItemString(d,"LANGUAGE_GERMAN_LUXEMBOURG", SWIG_FromInt((int)wxLANGUAGE_GERMAN_LUXEMBOURG));
19675 PyDict_SetItemString(d,"LANGUAGE_GERMAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_GERMAN_SWISS));
19676 PyDict_SetItemString(d,"LANGUAGE_GREEK", SWIG_FromInt((int)wxLANGUAGE_GREEK));
19677 PyDict_SetItemString(d,"LANGUAGE_GREENLANDIC", SWIG_FromInt((int)wxLANGUAGE_GREENLANDIC));
19678 PyDict_SetItemString(d,"LANGUAGE_GUARANI", SWIG_FromInt((int)wxLANGUAGE_GUARANI));
19679 PyDict_SetItemString(d,"LANGUAGE_GUJARATI", SWIG_FromInt((int)wxLANGUAGE_GUJARATI));
19680 PyDict_SetItemString(d,"LANGUAGE_HAUSA", SWIG_FromInt((int)wxLANGUAGE_HAUSA));
19681 PyDict_SetItemString(d,"LANGUAGE_HEBREW", SWIG_FromInt((int)wxLANGUAGE_HEBREW));
19682 PyDict_SetItemString(d,"LANGUAGE_HINDI", SWIG_FromInt((int)wxLANGUAGE_HINDI));
19683 PyDict_SetItemString(d,"LANGUAGE_HUNGARIAN", SWIG_FromInt((int)wxLANGUAGE_HUNGARIAN));
19684 PyDict_SetItemString(d,"LANGUAGE_ICELANDIC", SWIG_FromInt((int)wxLANGUAGE_ICELANDIC));
19685 PyDict_SetItemString(d,"LANGUAGE_INDONESIAN", SWIG_FromInt((int)wxLANGUAGE_INDONESIAN));
19686 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUA", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUA));
19687 PyDict_SetItemString(d,"LANGUAGE_INTERLINGUE", SWIG_FromInt((int)wxLANGUAGE_INTERLINGUE));
19688 PyDict_SetItemString(d,"LANGUAGE_INUKTITUT", SWIG_FromInt((int)wxLANGUAGE_INUKTITUT));
19689 PyDict_SetItemString(d,"LANGUAGE_INUPIAK", SWIG_FromInt((int)wxLANGUAGE_INUPIAK));
19690 PyDict_SetItemString(d,"LANGUAGE_IRISH", SWIG_FromInt((int)wxLANGUAGE_IRISH));
19691 PyDict_SetItemString(d,"LANGUAGE_ITALIAN", SWIG_FromInt((int)wxLANGUAGE_ITALIAN));
19692 PyDict_SetItemString(d,"LANGUAGE_ITALIAN_SWISS", SWIG_FromInt((int)wxLANGUAGE_ITALIAN_SWISS));
19693 PyDict_SetItemString(d,"LANGUAGE_JAPANESE", SWIG_FromInt((int)wxLANGUAGE_JAPANESE));
19694 PyDict_SetItemString(d,"LANGUAGE_JAVANESE", SWIG_FromInt((int)wxLANGUAGE_JAVANESE));
19695 PyDict_SetItemString(d,"LANGUAGE_KANNADA", SWIG_FromInt((int)wxLANGUAGE_KANNADA));
19696 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI));
19697 PyDict_SetItemString(d,"LANGUAGE_KASHMIRI_INDIA", SWIG_FromInt((int)wxLANGUAGE_KASHMIRI_INDIA));
19698 PyDict_SetItemString(d,"LANGUAGE_KAZAKH", SWIG_FromInt((int)wxLANGUAGE_KAZAKH));
19699 PyDict_SetItemString(d,"LANGUAGE_KERNEWEK", SWIG_FromInt((int)wxLANGUAGE_KERNEWEK));
19700 PyDict_SetItemString(d,"LANGUAGE_KINYARWANDA", SWIG_FromInt((int)wxLANGUAGE_KINYARWANDA));
19701 PyDict_SetItemString(d,"LANGUAGE_KIRGHIZ", SWIG_FromInt((int)wxLANGUAGE_KIRGHIZ));
19702 PyDict_SetItemString(d,"LANGUAGE_KIRUNDI", SWIG_FromInt((int)wxLANGUAGE_KIRUNDI));
19703 PyDict_SetItemString(d,"LANGUAGE_KONKANI", SWIG_FromInt((int)wxLANGUAGE_KONKANI));
19704 PyDict_SetItemString(d,"LANGUAGE_KOREAN", SWIG_FromInt((int)wxLANGUAGE_KOREAN));
19705 PyDict_SetItemString(d,"LANGUAGE_KURDISH", SWIG_FromInt((int)wxLANGUAGE_KURDISH));
19706 PyDict_SetItemString(d,"LANGUAGE_LAOTHIAN", SWIG_FromInt((int)wxLANGUAGE_LAOTHIAN));
19707 PyDict_SetItemString(d,"LANGUAGE_LATIN", SWIG_FromInt((int)wxLANGUAGE_LATIN));
19708 PyDict_SetItemString(d,"LANGUAGE_LATVIAN", SWIG_FromInt((int)wxLANGUAGE_LATVIAN));
19709 PyDict_SetItemString(d,"LANGUAGE_LINGALA", SWIG_FromInt((int)wxLANGUAGE_LINGALA));
19710 PyDict_SetItemString(d,"LANGUAGE_LITHUANIAN", SWIG_FromInt((int)wxLANGUAGE_LITHUANIAN));
19711 PyDict_SetItemString(d,"LANGUAGE_MACEDONIAN", SWIG_FromInt((int)wxLANGUAGE_MACEDONIAN));
19712 PyDict_SetItemString(d,"LANGUAGE_MALAGASY", SWIG_FromInt((int)wxLANGUAGE_MALAGASY));
19713 PyDict_SetItemString(d,"LANGUAGE_MALAY", SWIG_FromInt((int)wxLANGUAGE_MALAY));
19714 PyDict_SetItemString(d,"LANGUAGE_MALAYALAM", SWIG_FromInt((int)wxLANGUAGE_MALAYALAM));
19715 PyDict_SetItemString(d,"LANGUAGE_MALAY_BRUNEI_DARUSSALAM", SWIG_FromInt((int)wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM));
19716 PyDict_SetItemString(d,"LANGUAGE_MALAY_MALAYSIA", SWIG_FromInt((int)wxLANGUAGE_MALAY_MALAYSIA));
19717 PyDict_SetItemString(d,"LANGUAGE_MALTESE", SWIG_FromInt((int)wxLANGUAGE_MALTESE));
19718 PyDict_SetItemString(d,"LANGUAGE_MANIPURI", SWIG_FromInt((int)wxLANGUAGE_MANIPURI));
19719 PyDict_SetItemString(d,"LANGUAGE_MAORI", SWIG_FromInt((int)wxLANGUAGE_MAORI));
19720 PyDict_SetItemString(d,"LANGUAGE_MARATHI", SWIG_FromInt((int)wxLANGUAGE_MARATHI));
19721 PyDict_SetItemString(d,"LANGUAGE_MOLDAVIAN", SWIG_FromInt((int)wxLANGUAGE_MOLDAVIAN));
19722 PyDict_SetItemString(d,"LANGUAGE_MONGOLIAN", SWIG_FromInt((int)wxLANGUAGE_MONGOLIAN));
19723 PyDict_SetItemString(d,"LANGUAGE_NAURU", SWIG_FromInt((int)wxLANGUAGE_NAURU));
19724 PyDict_SetItemString(d,"LANGUAGE_NEPALI", SWIG_FromInt((int)wxLANGUAGE_NEPALI));
19725 PyDict_SetItemString(d,"LANGUAGE_NEPALI_INDIA", SWIG_FromInt((int)wxLANGUAGE_NEPALI_INDIA));
19726 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_BOKMAL", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_BOKMAL));
19727 PyDict_SetItemString(d,"LANGUAGE_NORWEGIAN_NYNORSK", SWIG_FromInt((int)wxLANGUAGE_NORWEGIAN_NYNORSK));
19728 PyDict_SetItemString(d,"LANGUAGE_OCCITAN", SWIG_FromInt((int)wxLANGUAGE_OCCITAN));
19729 PyDict_SetItemString(d,"LANGUAGE_ORIYA", SWIG_FromInt((int)wxLANGUAGE_ORIYA));
19730 PyDict_SetItemString(d,"LANGUAGE_OROMO", SWIG_FromInt((int)wxLANGUAGE_OROMO));
19731 PyDict_SetItemString(d,"LANGUAGE_PASHTO", SWIG_FromInt((int)wxLANGUAGE_PASHTO));
19732 PyDict_SetItemString(d,"LANGUAGE_POLISH", SWIG_FromInt((int)wxLANGUAGE_POLISH));
19733 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE));
19734 PyDict_SetItemString(d,"LANGUAGE_PORTUGUESE_BRAZILIAN", SWIG_FromInt((int)wxLANGUAGE_PORTUGUESE_BRAZILIAN));
19735 PyDict_SetItemString(d,"LANGUAGE_PUNJABI", SWIG_FromInt((int)wxLANGUAGE_PUNJABI));
19736 PyDict_SetItemString(d,"LANGUAGE_QUECHUA", SWIG_FromInt((int)wxLANGUAGE_QUECHUA));
19737 PyDict_SetItemString(d,"LANGUAGE_RHAETO_ROMANCE", SWIG_FromInt((int)wxLANGUAGE_RHAETO_ROMANCE));
19738 PyDict_SetItemString(d,"LANGUAGE_ROMANIAN", SWIG_FromInt((int)wxLANGUAGE_ROMANIAN));
19739 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN));
19740 PyDict_SetItemString(d,"LANGUAGE_RUSSIAN_UKRAINE", SWIG_FromInt((int)wxLANGUAGE_RUSSIAN_UKRAINE));
19741 PyDict_SetItemString(d,"LANGUAGE_SAMOAN", SWIG_FromInt((int)wxLANGUAGE_SAMOAN));
19742 PyDict_SetItemString(d,"LANGUAGE_SANGHO", SWIG_FromInt((int)wxLANGUAGE_SANGHO));
19743 PyDict_SetItemString(d,"LANGUAGE_SANSKRIT", SWIG_FromInt((int)wxLANGUAGE_SANSKRIT));
19744 PyDict_SetItemString(d,"LANGUAGE_SCOTS_GAELIC", SWIG_FromInt((int)wxLANGUAGE_SCOTS_GAELIC));
19745 PyDict_SetItemString(d,"LANGUAGE_SERBIAN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN));
19746 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_CYRILLIC));
19747 PyDict_SetItemString(d,"LANGUAGE_SERBIAN_LATIN", SWIG_FromInt((int)wxLANGUAGE_SERBIAN_LATIN));
19748 PyDict_SetItemString(d,"LANGUAGE_SERBO_CROATIAN", SWIG_FromInt((int)wxLANGUAGE_SERBO_CROATIAN));
19749 PyDict_SetItemString(d,"LANGUAGE_SESOTHO", SWIG_FromInt((int)wxLANGUAGE_SESOTHO));
19750 PyDict_SetItemString(d,"LANGUAGE_SETSWANA", SWIG_FromInt((int)wxLANGUAGE_SETSWANA));
19751 PyDict_SetItemString(d,"LANGUAGE_SHONA", SWIG_FromInt((int)wxLANGUAGE_SHONA));
19752 PyDict_SetItemString(d,"LANGUAGE_SINDHI", SWIG_FromInt((int)wxLANGUAGE_SINDHI));
19753 PyDict_SetItemString(d,"LANGUAGE_SINHALESE", SWIG_FromInt((int)wxLANGUAGE_SINHALESE));
19754 PyDict_SetItemString(d,"LANGUAGE_SISWATI", SWIG_FromInt((int)wxLANGUAGE_SISWATI));
19755 PyDict_SetItemString(d,"LANGUAGE_SLOVAK", SWIG_FromInt((int)wxLANGUAGE_SLOVAK));
19756 PyDict_SetItemString(d,"LANGUAGE_SLOVENIAN", SWIG_FromInt((int)wxLANGUAGE_SLOVENIAN));
19757 PyDict_SetItemString(d,"LANGUAGE_SOMALI", SWIG_FromInt((int)wxLANGUAGE_SOMALI));
19758 PyDict_SetItemString(d,"LANGUAGE_SPANISH", SWIG_FromInt((int)wxLANGUAGE_SPANISH));
19759 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ARGENTINA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ARGENTINA));
19760 PyDict_SetItemString(d,"LANGUAGE_SPANISH_BOLIVIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_BOLIVIA));
19761 PyDict_SetItemString(d,"LANGUAGE_SPANISH_CHILE", SWIG_FromInt((int)wxLANGUAGE_SPANISH_CHILE));
19762 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COLOMBIA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COLOMBIA));
19763 PyDict_SetItemString(d,"LANGUAGE_SPANISH_COSTA_RICA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_COSTA_RICA));
19764 PyDict_SetItemString(d,"LANGUAGE_SPANISH_DOMINICAN_REPUBLIC", SWIG_FromInt((int)wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC));
19765 PyDict_SetItemString(d,"LANGUAGE_SPANISH_ECUADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_ECUADOR));
19766 PyDict_SetItemString(d,"LANGUAGE_SPANISH_EL_SALVADOR", SWIG_FromInt((int)wxLANGUAGE_SPANISH_EL_SALVADOR));
19767 PyDict_SetItemString(d,"LANGUAGE_SPANISH_GUATEMALA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_GUATEMALA));
19768 PyDict_SetItemString(d,"LANGUAGE_SPANISH_HONDURAS", SWIG_FromInt((int)wxLANGUAGE_SPANISH_HONDURAS));
19769 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MEXICAN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MEXICAN));
19770 PyDict_SetItemString(d,"LANGUAGE_SPANISH_MODERN", SWIG_FromInt((int)wxLANGUAGE_SPANISH_MODERN));
19771 PyDict_SetItemString(d,"LANGUAGE_SPANISH_NICARAGUA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_NICARAGUA));
19772 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PANAMA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PANAMA));
19773 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PARAGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PARAGUAY));
19774 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PERU", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PERU));
19775 PyDict_SetItemString(d,"LANGUAGE_SPANISH_PUERTO_RICO", SWIG_FromInt((int)wxLANGUAGE_SPANISH_PUERTO_RICO));
19776 PyDict_SetItemString(d,"LANGUAGE_SPANISH_URUGUAY", SWIG_FromInt((int)wxLANGUAGE_SPANISH_URUGUAY));
19777 PyDict_SetItemString(d,"LANGUAGE_SPANISH_US", SWIG_FromInt((int)wxLANGUAGE_SPANISH_US));
19778 PyDict_SetItemString(d,"LANGUAGE_SPANISH_VENEZUELA", SWIG_FromInt((int)wxLANGUAGE_SPANISH_VENEZUELA));
19779 PyDict_SetItemString(d,"LANGUAGE_SUNDANESE", SWIG_FromInt((int)wxLANGUAGE_SUNDANESE));
19780 PyDict_SetItemString(d,"LANGUAGE_SWAHILI", SWIG_FromInt((int)wxLANGUAGE_SWAHILI));
19781 PyDict_SetItemString(d,"LANGUAGE_SWEDISH", SWIG_FromInt((int)wxLANGUAGE_SWEDISH));
19782 PyDict_SetItemString(d,"LANGUAGE_SWEDISH_FINLAND", SWIG_FromInt((int)wxLANGUAGE_SWEDISH_FINLAND));
19783 PyDict_SetItemString(d,"LANGUAGE_TAGALOG", SWIG_FromInt((int)wxLANGUAGE_TAGALOG));
19784 PyDict_SetItemString(d,"LANGUAGE_TAJIK", SWIG_FromInt((int)wxLANGUAGE_TAJIK));
19785 PyDict_SetItemString(d,"LANGUAGE_TAMIL", SWIG_FromInt((int)wxLANGUAGE_TAMIL));
19786 PyDict_SetItemString(d,"LANGUAGE_TATAR", SWIG_FromInt((int)wxLANGUAGE_TATAR));
19787 PyDict_SetItemString(d,"LANGUAGE_TELUGU", SWIG_FromInt((int)wxLANGUAGE_TELUGU));
19788 PyDict_SetItemString(d,"LANGUAGE_THAI", SWIG_FromInt((int)wxLANGUAGE_THAI));
19789 PyDict_SetItemString(d,"LANGUAGE_TIBETAN", SWIG_FromInt((int)wxLANGUAGE_TIBETAN));
19790 PyDict_SetItemString(d,"LANGUAGE_TIGRINYA", SWIG_FromInt((int)wxLANGUAGE_TIGRINYA));
19791 PyDict_SetItemString(d,"LANGUAGE_TONGA", SWIG_FromInt((int)wxLANGUAGE_TONGA));
19792 PyDict_SetItemString(d,"LANGUAGE_TSONGA", SWIG_FromInt((int)wxLANGUAGE_TSONGA));
19793 PyDict_SetItemString(d,"LANGUAGE_TURKISH", SWIG_FromInt((int)wxLANGUAGE_TURKISH));
19794 PyDict_SetItemString(d,"LANGUAGE_TURKMEN", SWIG_FromInt((int)wxLANGUAGE_TURKMEN));
19795 PyDict_SetItemString(d,"LANGUAGE_TWI", SWIG_FromInt((int)wxLANGUAGE_TWI));
19796 PyDict_SetItemString(d,"LANGUAGE_UIGHUR", SWIG_FromInt((int)wxLANGUAGE_UIGHUR));
19797 PyDict_SetItemString(d,"LANGUAGE_UKRAINIAN", SWIG_FromInt((int)wxLANGUAGE_UKRAINIAN));
19798 PyDict_SetItemString(d,"LANGUAGE_URDU", SWIG_FromInt((int)wxLANGUAGE_URDU));
19799 PyDict_SetItemString(d,"LANGUAGE_URDU_INDIA", SWIG_FromInt((int)wxLANGUAGE_URDU_INDIA));
19800 PyDict_SetItemString(d,"LANGUAGE_URDU_PAKISTAN", SWIG_FromInt((int)wxLANGUAGE_URDU_PAKISTAN));
19801 PyDict_SetItemString(d,"LANGUAGE_UZBEK", SWIG_FromInt((int)wxLANGUAGE_UZBEK));
19802 PyDict_SetItemString(d,"LANGUAGE_UZBEK_CYRILLIC", SWIG_FromInt((int)wxLANGUAGE_UZBEK_CYRILLIC));
19803 PyDict_SetItemString(d,"LANGUAGE_UZBEK_LATIN", SWIG_FromInt((int)wxLANGUAGE_UZBEK_LATIN));
19804 PyDict_SetItemString(d,"LANGUAGE_VIETNAMESE", SWIG_FromInt((int)wxLANGUAGE_VIETNAMESE));
19805 PyDict_SetItemString(d,"LANGUAGE_VOLAPUK", SWIG_FromInt((int)wxLANGUAGE_VOLAPUK));
19806 PyDict_SetItemString(d,"LANGUAGE_WELSH", SWIG_FromInt((int)wxLANGUAGE_WELSH));
19807 PyDict_SetItemString(d,"LANGUAGE_WOLOF", SWIG_FromInt((int)wxLANGUAGE_WOLOF));
19808 PyDict_SetItemString(d,"LANGUAGE_XHOSA", SWIG_FromInt((int)wxLANGUAGE_XHOSA));
19809 PyDict_SetItemString(d,"LANGUAGE_YIDDISH", SWIG_FromInt((int)wxLANGUAGE_YIDDISH));
19810 PyDict_SetItemString(d,"LANGUAGE_YORUBA", SWIG_FromInt((int)wxLANGUAGE_YORUBA));
19811 PyDict_SetItemString(d,"LANGUAGE_ZHUANG", SWIG_FromInt((int)wxLANGUAGE_ZHUANG));
19812 PyDict_SetItemString(d,"LANGUAGE_ZULU", SWIG_FromInt((int)wxLANGUAGE_ZULU));
19813 PyDict_SetItemString(d,"LANGUAGE_USER_DEFINED", SWIG_FromInt((int)wxLANGUAGE_USER_DEFINED));
19814 PyDict_SetItemString(d,"LOCALE_CAT_NUMBER", SWIG_FromInt((int)wxLOCALE_CAT_NUMBER));
19815 PyDict_SetItemString(d,"LOCALE_CAT_DATE", SWIG_FromInt((int)wxLOCALE_CAT_DATE));
19816 PyDict_SetItemString(d,"LOCALE_CAT_MONEY", SWIG_FromInt((int)wxLOCALE_CAT_MONEY));
19817 PyDict_SetItemString(d,"LOCALE_CAT_MAX", SWIG_FromInt((int)wxLOCALE_CAT_MAX));
19818 PyDict_SetItemString(d,"LOCALE_THOUSANDS_SEP", SWIG_FromInt((int)wxLOCALE_THOUSANDS_SEP));
19819 PyDict_SetItemString(d,"LOCALE_DECIMAL_POINT", SWIG_FromInt((int)wxLOCALE_DECIMAL_POINT));
19820 PyDict_SetItemString(d,"LOCALE_LOAD_DEFAULT", SWIG_FromInt((int)wxLOCALE_LOAD_DEFAULT));
19821 PyDict_SetItemString(d,"LOCALE_CONV_ENCODING", SWIG_FromInt((int)wxLOCALE_CONV_ENCODING));
19822 PyDict_SetItemString(d,"CONVERT_STRICT", SWIG_FromInt((int)wxCONVERT_STRICT));
19823 PyDict_SetItemString(d,"CONVERT_SUBSTITUTE", SWIG_FromInt((int)wxCONVERT_SUBSTITUTE));
19824 PyDict_SetItemString(d,"PLATFORM_CURRENT", SWIG_FromInt((int)wxPLATFORM_CURRENT));
19825 PyDict_SetItemString(d,"PLATFORM_UNIX", SWIG_FromInt((int)wxPLATFORM_UNIX));
19826 PyDict_SetItemString(d,"PLATFORM_WINDOWS", SWIG_FromInt((int)wxPLATFORM_WINDOWS));
19827 PyDict_SetItemString(d,"PLATFORM_OS2", SWIG_FromInt((int)wxPLATFORM_OS2));
19828 PyDict_SetItemString(d,"PLATFORM_MAC", SWIG_FromInt((int)wxPLATFORM_MAC));
19829 PyDict_SetItemString(d,"IMAGELIST_DRAW_NORMAL", SWIG_FromInt((int)wxIMAGELIST_DRAW_NORMAL));
19830 PyDict_SetItemString(d,"IMAGELIST_DRAW_TRANSPARENT", SWIG_FromInt((int)wxIMAGELIST_DRAW_TRANSPARENT));
19831 PyDict_SetItemString(d,"IMAGELIST_DRAW_SELECTED", SWIG_FromInt((int)wxIMAGELIST_DRAW_SELECTED));
19832 PyDict_SetItemString(d,"IMAGELIST_DRAW_FOCUSED", SWIG_FromInt((int)wxIMAGELIST_DRAW_FOCUSED));
19833 PyDict_SetItemString(d,"IMAGE_LIST_NORMAL", SWIG_FromInt((int)wxIMAGE_LIST_NORMAL));
19834 PyDict_SetItemString(d,"IMAGE_LIST_SMALL", SWIG_FromInt((int)wxIMAGE_LIST_SMALL));
19835 PyDict_SetItemString(d,"IMAGE_LIST_STATE", SWIG_FromInt((int)wxIMAGE_LIST_STATE));
19836 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals);
19837 SWIG_addvarlink(SWIG_globals,(char*)"NORMAL_FONT",_wrap_NORMAL_FONT_get, _wrap_NORMAL_FONT_set);
19838 SWIG_addvarlink(SWIG_globals,(char*)"SMALL_FONT",_wrap_SMALL_FONT_get, _wrap_SMALL_FONT_set);
19839 SWIG_addvarlink(SWIG_globals,(char*)"ITALIC_FONT",_wrap_ITALIC_FONT_get, _wrap_ITALIC_FONT_set);
19840 SWIG_addvarlink(SWIG_globals,(char*)"SWISS_FONT",_wrap_SWISS_FONT_get, _wrap_SWISS_FONT_set);
19841 SWIG_addvarlink(SWIG_globals,(char*)"RED_PEN",_wrap_RED_PEN_get, _wrap_RED_PEN_set);
19842 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_PEN",_wrap_CYAN_PEN_get, _wrap_CYAN_PEN_set);
19843 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_PEN",_wrap_GREEN_PEN_get, _wrap_GREEN_PEN_set);
19844 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_PEN",_wrap_BLACK_PEN_get, _wrap_BLACK_PEN_set);
19845 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_PEN",_wrap_WHITE_PEN_get, _wrap_WHITE_PEN_set);
19846 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_PEN",_wrap_TRANSPARENT_PEN_get, _wrap_TRANSPARENT_PEN_set);
19847 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_DASHED_PEN",_wrap_BLACK_DASHED_PEN_get, _wrap_BLACK_DASHED_PEN_set);
19848 SWIG_addvarlink(SWIG_globals,(char*)"GREY_PEN",_wrap_GREY_PEN_get, _wrap_GREY_PEN_set);
19849 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_PEN",_wrap_MEDIUM_GREY_PEN_get, _wrap_MEDIUM_GREY_PEN_set);
19850 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_PEN",_wrap_LIGHT_GREY_PEN_get, _wrap_LIGHT_GREY_PEN_set);
19851 SWIG_addvarlink(SWIG_globals,(char*)"BLUE_BRUSH",_wrap_BLUE_BRUSH_get, _wrap_BLUE_BRUSH_set);
19852 SWIG_addvarlink(SWIG_globals,(char*)"GREEN_BRUSH",_wrap_GREEN_BRUSH_get, _wrap_GREEN_BRUSH_set);
19853 SWIG_addvarlink(SWIG_globals,(char*)"WHITE_BRUSH",_wrap_WHITE_BRUSH_get, _wrap_WHITE_BRUSH_set);
19854 SWIG_addvarlink(SWIG_globals,(char*)"BLACK_BRUSH",_wrap_BLACK_BRUSH_get, _wrap_BLACK_BRUSH_set);
19855 SWIG_addvarlink(SWIG_globals,(char*)"TRANSPARENT_BRUSH",_wrap_TRANSPARENT_BRUSH_get, _wrap_TRANSPARENT_BRUSH_set);
19856 SWIG_addvarlink(SWIG_globals,(char*)"CYAN_BRUSH",_wrap_CYAN_BRUSH_get, _wrap_CYAN_BRUSH_set);
19857 SWIG_addvarlink(SWIG_globals,(char*)"RED_BRUSH",_wrap_RED_BRUSH_get, _wrap_RED_BRUSH_set);
19858 SWIG_addvarlink(SWIG_globals,(char*)"GREY_BRUSH",_wrap_GREY_BRUSH_get, _wrap_GREY_BRUSH_set);
19859 SWIG_addvarlink(SWIG_globals,(char*)"MEDIUM_GREY_BRUSH",_wrap_MEDIUM_GREY_BRUSH_get, _wrap_MEDIUM_GREY_BRUSH_set);
19860 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY_BRUSH",_wrap_LIGHT_GREY_BRUSH_get, _wrap_LIGHT_GREY_BRUSH_set);
19861 SWIG_addvarlink(SWIG_globals,(char*)"BLACK",_wrap_BLACK_get, _wrap_BLACK_set);
19862 SWIG_addvarlink(SWIG_globals,(char*)"WHITE",_wrap_WHITE_get, _wrap_WHITE_set);
19863 SWIG_addvarlink(SWIG_globals,(char*)"RED",_wrap_RED_get, _wrap_RED_set);
19864 SWIG_addvarlink(SWIG_globals,(char*)"BLUE",_wrap_BLUE_get, _wrap_BLUE_set);
19865 SWIG_addvarlink(SWIG_globals,(char*)"GREEN",_wrap_GREEN_get, _wrap_GREEN_set);
19866 SWIG_addvarlink(SWIG_globals,(char*)"CYAN",_wrap_CYAN_get, _wrap_CYAN_set);
19867 SWIG_addvarlink(SWIG_globals,(char*)"LIGHT_GREY",_wrap_LIGHT_GREY_get, _wrap_LIGHT_GREY_set);
19868 SWIG_addvarlink(SWIG_globals,(char*)"STANDARD_CURSOR",_wrap_STANDARD_CURSOR_get, _wrap_STANDARD_CURSOR_set);
19869 SWIG_addvarlink(SWIG_globals,(char*)"HOURGLASS_CURSOR",_wrap_HOURGLASS_CURSOR_get, _wrap_HOURGLASS_CURSOR_set);
19870 SWIG_addvarlink(SWIG_globals,(char*)"CROSS_CURSOR",_wrap_CROSS_CURSOR_get, _wrap_CROSS_CURSOR_set);
19871 SWIG_addvarlink(SWIG_globals,(char*)"NullBitmap",_wrap_NullBitmap_get, _wrap_NullBitmap_set);
19872 SWIG_addvarlink(SWIG_globals,(char*)"NullIcon",_wrap_NullIcon_get, _wrap_NullIcon_set);
19873 SWIG_addvarlink(SWIG_globals,(char*)"NullCursor",_wrap_NullCursor_get, _wrap_NullCursor_set);
19874 SWIG_addvarlink(SWIG_globals,(char*)"NullPen",_wrap_NullPen_get, _wrap_NullPen_set);
19875 SWIG_addvarlink(SWIG_globals,(char*)"NullBrush",_wrap_NullBrush_get, _wrap_NullBrush_set);
19876 SWIG_addvarlink(SWIG_globals,(char*)"NullPalette",_wrap_NullPalette_get, _wrap_NullPalette_set);
19877 SWIG_addvarlink(SWIG_globals,(char*)"NullFont",_wrap_NullFont_get, _wrap_NullFont_set);
19878 SWIG_addvarlink(SWIG_globals,(char*)"NullColour",_wrap_NullColour_get, _wrap_NullColour_set);
19879 SWIG_addvarlink(SWIG_globals,(char*)"TheFontList",_wrap_TheFontList_get, _wrap_TheFontList_set);
19880 SWIG_addvarlink(SWIG_globals,(char*)"ThePenList",_wrap_ThePenList_get, _wrap_ThePenList_set);
19881 SWIG_addvarlink(SWIG_globals,(char*)"TheBrushList",_wrap_TheBrushList_get, _wrap_TheBrushList_set);
19882 SWIG_addvarlink(SWIG_globals,(char*)"TheColourDatabase",_wrap_TheColourDatabase_get, _wrap_TheColourDatabase_set);
19883
19884 // Work around a chicken/egg problem in drawlist.cpp
19885 wxPyDrawList_SetAPIPtr();
19886
19887}
19888